3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-14 19:24:44 +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

@ -138,6 +138,7 @@ namespace polysat {
cb.push_new(~premise);
cb.push_new(conseq);
clause_ref just = cb.build();
SASSERT(just);
s.add_clause(*just);
s.propagate();
SASSERT(s.m_bvars.is_true(conseq.blit()));