3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-04-04 23:55:44 -07:00
parent 8118292def
commit eacde16b3e
5 changed files with 14 additions and 14 deletions

View file

@ -1189,6 +1189,8 @@ void mpf_manager::to_sbv_mpq(mpf_rounding_mode rm, const mpf & x, scoped_mpq & o
set(t, x);
unpack(t, true);
if (t.exponent() >= INT_MAX)
throw default_exception("exponents over 31 bits are not supported");
SASSERT(t.exponent() < INT_MAX);