3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-24 12:07:52 +00:00

reconnect saturation

This commit is contained in:
Jakob Rath 2022-09-21 16:47:16 +02:00
parent 6abe0c9be8
commit 1020f38e1a
5 changed files with 30 additions and 11 deletions

View file

@ -681,12 +681,12 @@ namespace polysat {
SASSERT(lemma);
LOG("Lemma: " << *lemma);
for (sat::literal lit : *lemma) {
LOG(" Literal " << lit << " is: " << lit_pp(*this, lit));
LOG(" " << lit_pp(*this, lit));
SASSERT(m_bvars.value(lit) == l_false || lit2cnstr(lit).is_currently_false(*this));
}
// find second-highest level of the literals in the lemma
unsigned max_level = 0; // could be simplified if we're sure that always max_level == m_level
unsigned max_level = 0;
unsigned jump_level = 0;
for (auto lit : *lemma) {
if (!m_bvars.is_assigned(lit))
@ -699,7 +699,6 @@ namespace polysat {
jump_level = lit_level;
}
}
SASSERT(max_level == m_level); // not required; see comment on max_level
jump_level = std::max(jump_level, base_level());