3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

Bugfix for mpf is_normal.

Fixes #17
This commit is contained in:
Christoph M. Wintersteiger 2015-03-30 08:02:57 +01:00
parent 5540d738ab
commit 99ea0a8c19

View file

@ -1350,11 +1350,11 @@ bool mpf_manager::is_ninf(mpf const & x) {
}
bool mpf_manager::is_normal(mpf const & x) {
return !is_zero(x) && has_bot_exp(x);
return !(has_top_exp(x) || is_denormal(x));
}
bool mpf_manager::is_denormal(mpf const & x) {
return has_bot_exp(x);
return !is_zero(x) && has_bot_exp(x);
}
bool mpf_manager::is_int(mpf const & x) {