@@ -130,13 +130,13 @@ exprt path_symex_statet::expand_structs_and_arrays(const exprt &src)
130130 if (to_integer (array_type.size (), size))
131131 throw " failed to convert array size" ;
132132
133- unsigned long long size_int=integer2unsigned (size);
133+ std:: size_t size_int=integer2size_t (size);
134134
135135 array_exprt result (array_type);
136136 result.operands ().resize (size_int);
137137
138138 // split it up into elements
139- for (unsigned long long i=0 ; i<size_int; ++i)
139+ for (std:: size_t i=0 ; i<size_int; ++i)
140140 {
141141 exprt index=from_integer (i, array_type.size ().type ());
142142 exprt new_src=index_exprt (src, index, subtype);
@@ -168,14 +168,14 @@ exprt path_symex_statet::expand_structs_and_arrays(const exprt &src)
168168 if (to_integer (vector_type.size (), size))
169169 throw " failed to convert vector size" ;
170170
171- unsigned long long int size_int=integer2unsigned (size);
171+ std:: size_t size_int=integer2size_t (size);
172172
173173 vector_exprt result (vector_type);
174174 exprt::operandst &operands=result.operands ();
175175 operands.resize (size_int);
176176
177177 // split it up into elements
178- for (unsigned long long i=0 ; i<size_int; ++i)
178+ for (std:: size_t i=0 ; i<size_int; ++i)
179179 {
180180 exprt index=from_integer (i, vector_type.size ().type ());
181181 exprt new_src=index_exprt (src, index, subtype);
@@ -227,12 +227,12 @@ exprt path_symex_statet::array_theory(const exprt &src, bool propagate)
227227 if (to_integer (array_type.size (), size))
228228 throw " failed to convert array size" ;
229229
230- unsigned long long size_int=integer2unsigned (size);
230+ std:: size_t size_int=integer2size_t (size);
231231
232232 exprt result=nil_exprt ();
233233
234234 // split it up
235- for (unsigned long long i=0 ; i<size_int; ++i)
235+ for (std:: size_t i=0 ; i<size_int; ++i)
236236 {
237237 exprt index=from_integer (i, index_expr.index ().type ());
238238 exprt new_src=index_exprt (index_expr.array (), index, subtype);
0 commit comments