3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-04-25 21:33:33 +00:00
This commit is contained in:
Jakob Rath 2024-03-20 12:16:24 +01:00
parent f47fbdd714
commit 91a9feb5a8
4 changed files with 6 additions and 5 deletions

View file

@ -38,13 +38,14 @@ namespace polysat {
if (l_false == operator()(idx))
return l_false;
}
// found conflict but no applicable saturation -> give up
if (has_conflict)
return l_undef;
return l_true;
}
lbool saturation::operator()(constraint_id idx) {
auto sc = c.get_constraint(idx);
// auto sc = c.get_constraint(idx);
auto vars = c.find_conflict_variables(idx);
for (auto v : vars)
if (resolve(v, idx))
@ -95,7 +96,7 @@ namespace polysat {
}
else
UNREACHABLE();
}
}
c.add_axiom(name, lemma.begin(), lemma.end(), is_redundant);
SASSERT(c.inconsistent());
}