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:
parent
ebc4df1ece
commit
e005838129
5 changed files with 21 additions and 4 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue