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

Merge pull request #18 from wintersteiger/unstable

Bugfix for mpf is_normal.
This commit is contained in:
Christoph M. Wintersteiger 2015-03-30 10:29:54 +01:00
commit 637554dcf5

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) {