mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 11:07:51 +00:00
remove literal polarity from dependencies
This commit is contained in:
parent
5398429c21
commit
658f079efd
5 changed files with 34 additions and 33 deletions
|
@ -68,14 +68,14 @@ namespace polysat {
|
|||
for (auto const& e : cs) {
|
||||
if (std::holds_alternative<dependency>(e)) {
|
||||
auto d = *std::get_if<dependency>(&e);
|
||||
lemma.push_back(~d);
|
||||
lemma.push_back(d);
|
||||
}
|
||||
else if (std::holds_alternative<signed_constraint>(e)) {
|
||||
auto sc = *std::get_if<signed_constraint>(&e);
|
||||
if (c.eval(sc) != l_false)
|
||||
return;
|
||||
auto d = c.propagate(~sc, c.explain_eval(sc));
|
||||
lemma.push_back(~d);
|
||||
lemma.push_back(d);
|
||||
}
|
||||
else
|
||||
UNREACHABLE();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue