mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +00:00
FPA theory bug fixes.
Also removed unnecessary intermediate variables. Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
2cd4edf1a2
commit
8b40d4a735
4 changed files with 85 additions and 60 deletions
|
@ -193,7 +193,7 @@ extern "C" {
|
|||
// floats are separated from all others to avoid huge rationals.
|
||||
float_util & fu = mk_c(c)->float_util();
|
||||
scoped_mpf tmp(fu.fm());
|
||||
if (mk_c(c)->float_util().is_numeral(to_expr(a), tmp)) {
|
||||
if (mk_c(c)->float_util().is_value(to_expr(a), tmp)) {
|
||||
return mk_c(c)->mk_external_string(fu.fm().to_string(tmp));
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue