mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 12:07:52 +00:00
reconnect saturation
This commit is contained in:
parent
6abe0c9be8
commit
1020f38e1a
5 changed files with 30 additions and 11 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue