File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -406,23 +406,23 @@ constant_exprt smt2_convt::parse_literal(
406
406
{
407
407
std::size_t e = unsafe_string2size_t (src.get_sub ()[2 ].id_string ());
408
408
std::size_t s = unsafe_string2size_t (src.get_sub ()[3 ].id_string ());
409
- return ieee_floatt::plus_infinity (ieee_float_spect (s, e)).to_expr ();
409
+ return ieee_floatt::plus_infinity (ieee_float_spect (s - 1 , e)).to_expr ();
410
410
}
411
411
else if (src.get_sub ().size ()==4 &&
412
412
src.get_sub ()[0 ].id ()==" _" &&
413
413
src.get_sub ()[1 ].id ()==" -oo" ) // (_ -oo e s)
414
414
{
415
415
std::size_t e = unsafe_string2size_t (src.get_sub ()[2 ].id_string ());
416
416
std::size_t s = unsafe_string2size_t (src.get_sub ()[3 ].id_string ());
417
- return ieee_floatt::minus_infinity (ieee_float_spect (s, e)).to_expr ();
417
+ return ieee_floatt::minus_infinity (ieee_float_spect (s - 1 , e)).to_expr ();
418
418
}
419
419
else if (src.get_sub ().size ()==4 &&
420
420
src.get_sub ()[0 ].id ()==" _" &&
421
421
src.get_sub ()[1 ].id ()==" NaN" ) // (_ NaN e s)
422
422
{
423
423
std::size_t e = unsafe_string2size_t (src.get_sub ()[2 ].id_string ());
424
424
std::size_t s = unsafe_string2size_t (src.get_sub ()[3 ].id_string ());
425
- return ieee_floatt::NaN (ieee_float_spect (s, e)).to_expr ();
425
+ return ieee_floatt::NaN (ieee_float_spect (s - 1 , e)).to_expr ();
426
426
}
427
427
428
428
if (type.id ()==ID_signedbv ||
You can’t perform that action at this time.
0 commit comments