mirror of
https://github.com/Z3Prover/z3
synced 2025-04-30 04:15:51 +00:00
use get_value/get_ivalue API instead of self-rolled from arith_solver
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ee12e3fb52
commit
5335097768
4 changed files with 23 additions and 90 deletions
|
@ -399,7 +399,7 @@ namespace arith {
|
|||
theory_var v = mk_evar(n);
|
||||
theory_var v1 = mk_evar(p);
|
||||
|
||||
if (!can_get_ivalue(v1))
|
||||
if (!is_registered_var(v1))
|
||||
continue;
|
||||
lp::impq r1 = get_ivalue(v1);
|
||||
rational r2;
|
||||
|
@ -419,7 +419,7 @@ namespace arith {
|
|||
TRACE("arith", tout << "unbounded " << expr_ref(n, m) << "\n";);
|
||||
continue;
|
||||
}
|
||||
if (!can_get_ivalue(v))
|
||||
if (!is_registered_var(v))
|
||||
continue;
|
||||
lp::impq val_v = get_ivalue(v);
|
||||
if (val_v.y.is_zero() && val_v.x == div(r1.x, r2)) continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue