3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-26 13:06:05 +00:00

fix missing dependency, expose inefficiency

This commit is contained in:
Nikolaj Bjorner 2021-12-19 12:32:20 -08:00
parent c1d5111159
commit 2afc58cc08
4 changed files with 39 additions and 3 deletions

View file

@ -111,8 +111,14 @@ namespace polysat {
return;
LOG("Conflict: " << cl);
SASSERT(empty());
for (auto lit : cl)
insert(~s.lit2cnstr(lit));
for (auto lit : cl) {
auto c = s.lit2cnstr(lit);
if (c.bvalue(s) != l_false) {
SASSERT(c.is_currently_false(s));
c->set_var_dependent();
}
insert(~c);
}
SASSERT(!empty());
}