mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
change signed projection to include root object.
This commit is contained in:
parent
80642e5a7c
commit
c18a42cf5b
2 changed files with 14 additions and 3 deletions
|
@ -1744,7 +1744,16 @@ namespace nlsat {
|
|||
solve_eq(x, eq_index, ps);
|
||||
}
|
||||
else {
|
||||
project_pairs(x, eq_index, ps);
|
||||
add_zero_assumption(p);
|
||||
|
||||
for (unsigned j = 0; j < ps.size(); ++j) {
|
||||
if (j == eq_index)
|
||||
continue;
|
||||
p = ps.get(j);
|
||||
int s = sign(p);
|
||||
atom::kind k = (s == 0)?(atom::EQ):((s < 0)?(atom::LT):(atom::GT));
|
||||
add_simple_assumption(k, p, false);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue