3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00

Fix for fp.fma encoding. Relates to #872.

This commit is contained in:
Christoph M. Wintersteiger 2017-07-24 20:54:29 +01:00
parent 9d6be286d0
commit f1c0ac72e7
2 changed files with 70 additions and 49 deletions

View file

@ -886,7 +886,7 @@ void mpf_manager::fma(mpf_rounding_mode rm, mpf const & x, mpf const & y, mpf co
unsigned extra = 0;
// Result could overflow into 4.xxx ...
SASSERT(m_mpz_manager.lt(o.significand, m_powers2(2 * x.sbits + 2)));
if(m_mpz_manager.ge(o.significand, m_powers2(2 * x.sbits + 1)))
if (m_mpz_manager.ge(o.significand, m_powers2(2 * x.sbits + 1)))
{
extra++;
o.exponent++;