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

Fix FPA rounding mode for FP string numerals. Fixes #2851.

This commit is contained in:
Christoph M. Wintersteiger 2020-01-09 17:10:33 +00:00
parent f4966795f9
commit 580faa72aa
No known key found for this signature in database
GPG key ID: BCF6360F86294467

View file

@ -82,7 +82,7 @@ extern "C" {
// avoid expanding floats into huge rationals.
fpa_util & fu = mk_c(c)->fpautil();
scoped_mpf t(fu.fm());
fu.fm().set(t, fu.get_ebits(_ty), fu.get_sbits(_ty), MPF_ROUND_TOWARD_ZERO, n);
fu.fm().set(t, fu.get_ebits(_ty), fu.get_sbits(_ty), MPF_ROUND_NEAREST_TEVEN, n);
a = fu.mk_value(t);
mk_c(c)->save_ast_trail(a);
}