mirror of
https://github.com/Z3Prover/z3
synced 2025-08-26 04:56:03 +00:00
clause_builder should not fail on always-true literals
Otherwise, e.g. when adding axioms, the caller would have to check each literal before adding it.
This commit is contained in:
parent
ebc4df1ece
commit
e005838129
5 changed files with 21 additions and 4 deletions
|
@ -160,6 +160,7 @@ namespace polysat {
|
|||
}
|
||||
c_lemma.push(c.blit());
|
||||
clause_ref lemma = c_lemma.build();
|
||||
SASSERT(lemma);
|
||||
cm().store(lemma.get(), s);
|
||||
if (s.m_bvars.value(c.blit()) == l_undef)
|
||||
s.assign_propagate(c.blit(), *lemma);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue