@@ -287,24 +287,24 @@ constant_exprt smt2_convt::parse_literal(
287
287
src.get_sub ()[0 ].id ()==" _" &&
288
288
src.get_sub ()[1 ].id ()==" +oo" ) // (_ +oo e s)
289
289
{
290
- unsigned e= unsafe_string2unsigned (src.get_sub ()[2 ].id_string ());
291
- unsigned s= unsafe_string2unsigned (src.get_sub ()[3 ].id_string ());
290
+ std:: size_t e = unsafe_string2size_t (src.get_sub ()[2 ].id_string ());
291
+ std:: size_t s = unsafe_string2size_t (src.get_sub ()[3 ].id_string ());
292
292
return ieee_floatt::plus_infinity (ieee_float_spect (s, e)).to_expr ();
293
293
}
294
294
else if (src.get_sub ().size ()==4 &&
295
295
src.get_sub ()[0 ].id ()==" _" &&
296
296
src.get_sub ()[1 ].id ()==" -oo" ) // (_ -oo e s)
297
297
{
298
- unsigned e= unsafe_string2unsigned (src.get_sub ()[2 ].id_string ());
299
- unsigned s= unsafe_string2unsigned (src.get_sub ()[3 ].id_string ());
298
+ std:: size_t e = unsafe_string2size_t (src.get_sub ()[2 ].id_string ());
299
+ std:: size_t s = unsafe_string2size_t (src.get_sub ()[3 ].id_string ());
300
300
return ieee_floatt::minus_infinity (ieee_float_spect (s, e)).to_expr ();
301
301
}
302
302
else if (src.get_sub ().size ()==4 &&
303
303
src.get_sub ()[0 ].id ()==" _" &&
304
304
src.get_sub ()[1 ].id ()==" NaN" ) // (_ NaN e s)
305
305
{
306
- unsigned e= unsafe_string2unsigned (src.get_sub ()[2 ].id_string ());
307
- unsigned s= unsafe_string2unsigned (src.get_sub ()[3 ].id_string ());
306
+ std:: size_t e = unsafe_string2size_t (src.get_sub ()[2 ].id_string ());
307
+ std:: size_t s = unsafe_string2size_t (src.get_sub ()[3 ].id_string ());
308
308
return ieee_floatt::NaN (ieee_float_spect (s, e)).to_expr ();
309
309
}
310
310
@@ -4333,7 +4333,7 @@ void smt2_convt::find_symbols(const exprt &expr)
4333
4333
<< " -> " << type2id (expr.type ()) << " \n "
4334
4334
<< " (define-fun " << function << " (" ;
4335
4335
4336
- for (unsigned i= 0 ; i< expr.operands ().size (); i++)
4336
+ for (std:: size_t i = 0 ; i < expr.operands ().size (); i++)
4337
4337
{
4338
4338
if (i!=0 )
4339
4339
out << " " ;
@@ -4347,7 +4347,7 @@ void smt2_convt::find_symbols(const exprt &expr)
4347
4347
out << ' ' ;
4348
4348
4349
4349
exprt tmp1=expr;
4350
- for (unsigned i= 0 ; i< tmp1.operands ().size (); i++)
4350
+ for (std:: size_t i = 0 ; i < tmp1.operands ().size (); i++)
4351
4351
tmp1.operands ()[i]=
4352
4352
smt2_symbolt (" op" +std::to_string (i), tmp1.operands ()[i].type ());
4353
4353
@@ -4751,7 +4751,7 @@ exprt smt2_convt::letify_rec(
4751
4751
exprt &expr,
4752
4752
std::vector<exprt> &let_order,
4753
4753
const seen_expressionst &map,
4754
- unsigned i)
4754
+ std:: size_t i)
4755
4755
{
4756
4756
if (i>=let_order.size ())
4757
4757
return substitute_let (expr, map);
0 commit comments