mirror of
https://github.com/Z3Prover/z3
synced 2025-07-03 11:25:40 +00:00
Merge pull request #18 from wintersteiger/unstable
Bugfix for mpf is_normal.
This commit is contained in:
commit
637554dcf5
1 changed files with 2 additions and 2 deletions
|
@ -1350,11 +1350,11 @@ bool mpf_manager::is_ninf(mpf const & x) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool mpf_manager::is_normal(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) {
|
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) {
|
bool mpf_manager::is_int(mpf const & x) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue