3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Bugfix for fp.rem(0, 0).

Fixes #70.
This commit is contained in:
Christoph M. Wintersteiger 2015-05-06 12:24:18 +01:00
parent 73eb7cbf5c
commit 53b479e1c3
2 changed files with 8 additions and 8 deletions

View file

@ -1161,10 +1161,10 @@ void mpf_manager::rem(mpf const & x, mpf const & y, mpf & o) {
mk_nan(x.ebits, x.sbits, o);
else if (is_inf(y))
set(o, x);
else if (is_zero(x))
set(o, x);
else if (is_zero(y))
mk_nan(x.ebits, x.sbits, o);
else if (is_zero(x))
set(o, x);
else {
o.ebits = x.ebits;
o.sbits = x.sbits;