mirror of
https://github.com/Z3Prover/z3
synced 2025-08-24 03:57:51 +00:00
some fixes
This commit is contained in:
parent
cf80225fee
commit
e5289f84a0
5 changed files with 13 additions and 8 deletions
|
@ -50,14 +50,13 @@ namespace polysat {
|
|||
// p <= 0, e.g., p == 0
|
||||
if (q.is_zero() && p.is_unilinear()) {
|
||||
// a*x + b == 0
|
||||
pvar v = q.var();
|
||||
pvar v = p.var();
|
||||
s.push_cjust(v, { this, is_positive });
|
||||
|
||||
rational a = q.hi().val();
|
||||
rational b = q.lo().val();
|
||||
rational a = p.hi().val();
|
||||
rational b = p.lo().val();
|
||||
s.m_viable.intersect_eq(a, v, b, is_positive);
|
||||
|
||||
|
||||
rational val;
|
||||
if (s.m_viable.find_viable(v, val) == dd::find_t::singleton)
|
||||
s.propagate(v, val, { this, is_positive });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue