mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 05:43:39 +00:00
fix assertion
This commit is contained in:
parent
f04345724c
commit
15ebbbda2c
1 changed files with 3 additions and 3 deletions
|
@ -743,10 +743,10 @@ namespace polysat {
|
||||||
LOG("Lemma: " << show_deref(lemma));
|
LOG("Lemma: " << show_deref(lemma));
|
||||||
for (sat::literal lit : *lemma) {
|
for (sat::literal lit : *lemma) {
|
||||||
LOG(" Literal " << lit << " is: " << m_constraints.lookup(lit));
|
LOG(" Literal " << lit << " is: " << m_constraints.lookup(lit));
|
||||||
// TODO: fully evaluated constraints must be put onto the stack as propagations.
|
|
||||||
signed_constraint c = m_constraints.lookup(lit);
|
signed_constraint c = m_constraints.lookup(lit);
|
||||||
SASSERT(m_bvars.is_assigned(lit) && !c.is_currently_false(*this));
|
// Check that fully evaluated constraints are on the stack
|
||||||
SASSERT(m_bvars.is_assigned(lit) && !c.is_currently_true(*this));
|
SASSERT(m_bvars.is_assigned(lit) || !c.is_currently_false(*this));
|
||||||
|
SASSERT(m_bvars.is_assigned(lit) || !c.is_currently_true(*this));
|
||||||
}
|
}
|
||||||
SASSERT(lemma->size() > 0);
|
SASSERT(lemma->size() > 0);
|
||||||
clause* cl = m_constraints.store(std::move(lemma));
|
clause* cl = m_constraints.store(std::move(lemma));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue