3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-06 23:35:46 +00:00
This commit is contained in:
Jakob Rath 2022-12-01 10:05:14 +01:00
parent aee07d0496
commit bcde2844b2
5 changed files with 36 additions and 4 deletions

View file

@ -62,6 +62,8 @@ namespace polysat {
insert(m_solver->lit2cnstr(lit));
}
// TODO: in the final version, we may also skip assumptions (and even literals propagated at the base level),
// provided we correctly track external dependencies/level for the clause.
void clause_builder::insert(signed_constraint c) {
SASSERT(c);
if (c.is_always_false()) // filter out trivial constraints such as "4 < 2"