@@ -287,24 +287,24 @@ constant_exprt smt2_convt::parse_literal(
287287 src.get_sub ()[0 ].id ()==" _" &&
288288 src.get_sub ()[1 ].id ()==" +oo" ) // (_ +oo e s)
289289 {
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 ());
292292 return ieee_floatt::plus_infinity (ieee_float_spect (s, e)).to_expr ();
293293 }
294294 else if (src.get_sub ().size ()==4 &&
295295 src.get_sub ()[0 ].id ()==" _" &&
296296 src.get_sub ()[1 ].id ()==" -oo" ) // (_ -oo e s)
297297 {
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 ());
300300 return ieee_floatt::minus_infinity (ieee_float_spect (s, e)).to_expr ();
301301 }
302302 else if (src.get_sub ().size ()==4 &&
303303 src.get_sub ()[0 ].id ()==" _" &&
304304 src.get_sub ()[1 ].id ()==" NaN" ) // (_ NaN e s)
305305 {
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 ());
308308 return ieee_floatt::NaN (ieee_float_spect (s, e)).to_expr ();
309309 }
310310
@@ -4333,7 +4333,7 @@ void smt2_convt::find_symbols(const exprt &expr)
43334333 << " -> " << type2id (expr.type ()) << " \n "
43344334 << " (define-fun " << function << " (" ;
43354335
4336- for (unsigned i= 0 ; i< expr.operands ().size (); i++)
4336+ for (std:: size_t i = 0 ; i < expr.operands ().size (); i++)
43374337 {
43384338 if (i!=0 )
43394339 out << " " ;
@@ -4347,7 +4347,7 @@ void smt2_convt::find_symbols(const exprt &expr)
43474347 out << ' ' ;
43484348
43494349 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++)
43514351 tmp1.operands ()[i]=
43524352 smt2_symbolt (" op" +std::to_string (i), tmp1.operands ()[i].type ());
43534353
@@ -4751,7 +4751,7 @@ exprt smt2_convt::letify_rec(
47514751 exprt &expr,
47524752 std::vector<exprt> &let_order,
47534753 const seen_expressionst &map,
4754- unsigned i)
4754+ std:: size_t i)
47554755{
47564756 if (i>=let_order.size ())
47574757 return substitute_let (expr, map);
0 commit comments