3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-05 23:05:46 +00:00

build_lemma returns clause_builder; adjust reason in revert_bool_decision

This commit is contained in:
Jakob Rath 2021-09-07 15:02:29 +02:00
parent 733c21bb20
commit 24f96acf4f
8 changed files with 83 additions and 75 deletions

View file

@ -54,6 +54,7 @@ namespace polysat {
if (!c2.is_currently_false(s()))
continue;
// TODO: separate method for this; then try_explain1 and try_explain* for multi-steps; replace the false constraint in the core.
// c1 is true, c2 is false
LOG("c1: " << c1);
LOG("c2: " << c2);
@ -71,7 +72,7 @@ namespace polysat {
premises.push_back(c1);
premises.push_back(c2);
if (!c->contains_var(v)) {
core.reset();
core.reset(); // TODO: doesn't work; this removes the premises as well... / instead: remove the false one.
core.insert(c, std::move(premises));
return true;
} else {