3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-23 11:37:54 +00:00

insert_eval?

This commit is contained in:
Jakob Rath 2023-01-05 17:41:08 +01:00
parent aeb6138c25
commit 1002538565
2 changed files with 7 additions and 3 deletions

View file

@ -904,6 +904,10 @@ namespace polysat {
if (m_bvars.is_true(lit)) // may happen if we only use the clause to justify a new constraint; it is not a real lemma
return std::nullopt;
if (!m_bvars.is_assigned(lit)) {
DEBUG_CODE({
if (lit2cnstr(lit).eval(*this) != l_undef)
LOG("WARNING: missed evaluation of literal: " << lit_pp(*this, lit));
});
SASSERT(!is_propagation);
is_propagation = true;
continue;