mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 10:14:42 +00:00
More float -> fpa renaming
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
dd17f3c7d6
commit
5e5758bb25
16 changed files with 158 additions and 156 deletions
|
@ -59,7 +59,7 @@ extern "C" {
|
|||
RETURN_Z3(0);
|
||||
}
|
||||
sort * _ty = to_sort(ty);
|
||||
bool is_float = mk_c(c)->float_util().is_float(_ty);
|
||||
bool is_float = mk_c(c)->fpa_util().is_float(_ty);
|
||||
std::string fixed_num;
|
||||
char const* m = n;
|
||||
while (*m) {
|
||||
|
@ -79,7 +79,7 @@ extern "C" {
|
|||
if (_ty->get_family_id() == mk_c(c)->get_fpa_fid())
|
||||
{
|
||||
// avoid expanding floats into huge rationals.
|
||||
float_util & fu = mk_c(c)->float_util();
|
||||
fpa_util & fu = mk_c(c)->fpa_util();
|
||||
scoped_mpf t(fu.fm());
|
||||
fu.fm().set(t, fu.get_ebits(_ty), fu.get_sbits(_ty), MPF_ROUND_TOWARD_ZERO, n);
|
||||
a = fu.mk_value(t);
|
||||
|
@ -149,7 +149,7 @@ extern "C" {
|
|||
return
|
||||
mk_c(c)->autil().is_numeral(e) ||
|
||||
mk_c(c)->bvutil().is_numeral(e) ||
|
||||
mk_c(c)->float_util().is_value(e);
|
||||
mk_c(c)->fpa_util().is_value(e);
|
||||
Z3_CATCH_RETURN(Z3_FALSE);
|
||||
}
|
||||
|
||||
|
@ -191,9 +191,9 @@ extern "C" {
|
|||
}
|
||||
else {
|
||||
// floats are separated from all others to avoid huge rationals.
|
||||
float_util & fu = mk_c(c)->float_util();
|
||||
fpa_util & fu = mk_c(c)->fpa_util();
|
||||
scoped_mpf tmp(fu.fm());
|
||||
if (mk_c(c)->float_util().is_value(to_expr(a), tmp)) {
|
||||
if (mk_c(c)->fpa_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