2727
2828void inv_object_storet::output (std::ostream &out) const
2929{
30- for (unsigned i=0 ; i<entries.size (); i++)
30+ for (std:: size_t i=0 ; i<entries.size (); i++)
3131 out << " STORE " << i << " : " << to_string (i, " " ) << ' \n ' ;
3232}
3333
@@ -61,7 +61,7 @@ unsigned inv_object_storet::add(const exprt &expr)
6161
6262 assert (s!=" " );
6363
64- unsigned n=map.number (s);
64+ mapt::number_type n=map.number (s);
6565
6666 if (n>=entries.size ())
6767 {
@@ -188,11 +188,11 @@ void invariant_sett::add(
188188 unsigned f_r=eq_set.find (p.first );
189189 unsigned s_r=eq_set.find (p.second );
190190
191- for (unsigned f=0 ; f<eq_set.size (); f++)
191+ for (std:: size_t f=0 ; f<eq_set.size (); f++)
192192 {
193193 if (eq_set.find (f)==f_r)
194194 {
195- for (unsigned s=0 ; s<eq_set.size (); s++)
195+ for (std:: size_t s=0 ; s<eq_set.size (); s++)
196196 if (eq_set.find (s)==s_r)
197197 dest.insert (std::pair<unsigned , unsigned >(f, s));
198198 }
@@ -209,7 +209,7 @@ void invariant_sett::add_eq(const std::pair<unsigned, unsigned> &p)
209209 bool constant_seen=false ;
210210 mp_integer c;
211211
212- for (unsigned i=0 ; i<eq_set.size (); i++)
212+ for (std:: size_t i=0 ; i<eq_set.size (); i++)
213213 {
214214 if (eq_set.find (i)==r)
215215 {
@@ -319,12 +319,12 @@ void invariant_sett::output(
319319 INVARIANT_STRUCTURED (
320320 object_store!=nullptr , nullptr_exceptiont, " Object store is null" );
321321
322- for (unsigned i=0 ; i<eq_set.size (); i++)
322+ for (std:: size_t i=0 ; i<eq_set.size (); i++)
323323 if (eq_set.is_root (i) &&
324324 eq_set.count (i)>=2 )
325325 {
326326 bool first=true ;
327- for (unsigned j=0 ; j<eq_set.size (); j++)
327+ for (std:: size_t j=0 ; j<eq_set.size (); j++)
328328 if (eq_set.find (j)==i)
329329 {
330330 if (first)
@@ -367,7 +367,7 @@ void invariant_sett::add_type_bounds(const exprt &expr, const typet &type)
367367
368368 if (type.id ()==ID_unsignedbv)
369369 {
370- unsigned op_width=to_unsignedbv_type (type).get_width ();
370+ std:: size_t op_width=to_unsignedbv_type (type).get_width ();
371371
372372 if (op_width<=8 )
373373 {
@@ -852,7 +852,7 @@ exprt invariant_sett::get_constant(const exprt &expr) const
852852 unsigned r=eq_set.find (a);
853853
854854 // is it a constant?
855- for (unsigned i=0 ; i<eq_set.size (); i++)
855+ for (std:: size_t i=0 ; i<eq_set.size (); i++)
856856 if (eq_set.find (i)==r)
857857 {
858858 const exprt &e=object_store->get_expr (i);
@@ -938,8 +938,8 @@ bool invariant_sett::make_union(const invariant_sett &other)
938938 eq_set.intersection (other.eq_set );
939939
940940 // inequalities
941- unsigned old_ne_set=ne_set.size ();
942- unsigned old_le_set=le_set.size ();
941+ std:: size_t old_ne_set=ne_set.size ();
942+ std:: size_t old_le_set=le_set.size ();
943943
944944 intersection (ne_set, other.ne_set );
945945 intersection (le_set, other.le_set );
0 commit comments