mirror of
https://github.com/Z3Prover/z3
synced 2025-05-05 23:05:46 +00:00
fixes
This commit is contained in:
parent
689c5b4e12
commit
c25fd71bf4
5 changed files with 44 additions and 35 deletions
|
@ -78,17 +78,16 @@ namespace polysat {
|
|||
signed_constraint c = find_replacement(c2, v, core);
|
||||
if (!c)
|
||||
continue;
|
||||
|
||||
if (!c->contains_var(v)) {
|
||||
core.keep(c); // adds propagation of c to the search stack
|
||||
// NOTE: more variables than just 'v' might have been removed here (see polysat::test_p3).
|
||||
// c alone (+ variables) is now enough to represent the conflict.
|
||||
core.reset();
|
||||
core.set(c);
|
||||
return l_true;
|
||||
}
|
||||
else
|
||||
if (c->contains_var(v))
|
||||
return l_undef;
|
||||
if (!c->has_bvar() || l_undef == c.bvalue(s()))
|
||||
core.keep(c); // adds propagation of c to the search stack
|
||||
|
||||
// NOTE: more variables than just 'v' might have been removed here (see polysat::test_p3).
|
||||
// c alone (+ variables) is now enough to represent the conflict.
|
||||
core.reset();
|
||||
core.set(c);
|
||||
return l_true;
|
||||
}
|
||||
return l_false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue