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:
commit
637554dcf5
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue