3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-19 08:43:18 +00:00
This commit is contained in:
Nikolaj Bjorner 2021-09-16 10:10:50 +01:00
parent 689c5b4e12
commit c25fd71bf4
5 changed files with 44 additions and 35 deletions

View file

@ -103,7 +103,7 @@ namespace polysat {
}
void conflict_core::insert(signed_constraint c) {
LOG("inserting: " << c);
LOG("inserting: " << c << " " << c.is_always_true() << " " << c->is_marked() << " " << c->has_bvar());
// Skip trivial constraints
// (e.g., constant ones such as "4 > 1"... only true ones should appear, otherwise the lemma would be a tautology)
if (c.is_always_true())
@ -164,6 +164,7 @@ namespace polysat {
remove_literal(sat::literal(var));
if (core_has_neg)
remove_literal(~sat::literal(var));
unset_bmark(var);
for (sat::literal lit : cl)
if (lit.var() != var)