3
0
Fork 0
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:
Jakob Rath 2022-01-18 10:22:24 +01:00
parent ebc4df1ece
commit e005838129
5 changed files with 21 additions and 4 deletions

View file

@ -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);