mirror of
https://github.com/Z3Prover/z3
synced 2026-02-12 20:04:08 +00:00
handle exception internally, avoid passing rationals to integer operations
This commit is contained in:
parent
5b175c1bcd
commit
fe5d17d515
2 changed files with 12 additions and 2 deletions
|
|
@ -586,6 +586,8 @@ namespace sls {
|
|||
if (mx == 0)
|
||||
continue;
|
||||
auto valmx = divide(x, val, mx);
|
||||
if (p > 1 && !is_int(x))
|
||||
continue;
|
||||
auto r = root_of(p, valmx);
|
||||
add_update(x, r - value(x));
|
||||
if (p % 2 == 0)
|
||||
|
|
@ -1786,7 +1788,9 @@ namespace sls {
|
|||
// val / mx = x^p
|
||||
if (mx == 0)
|
||||
continue;
|
||||
auto valmx = divide(x, val, mx);
|
||||
if (p > 1 && !is_int(x))
|
||||
continue;
|
||||
auto valmx = divide(x, val, mx);
|
||||
auto r = root_of(p, valmx);
|
||||
add_update(x, r - value(x));
|
||||
if (p % 2 == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue