@@ -185,42 +185,29 @@ template <class bodyT>
185
185
void goto_functions_templatet<bodyT>::compute_location_numbers()
186
186
{
187
187
unsigned nr=0 ;
188
-
189
- for (typename function_mapt::iterator
190
- it=function_map.begin ();
191
- it!=function_map.end ();
192
- it++)
193
- it->second .body .compute_location_numbers (nr);
188
+ for (auto &named_function : function_map)
189
+ named_function.second .body .compute_location_numbers (nr);
194
190
}
195
191
196
192
template <class bodyT >
197
193
void goto_functions_templatet<bodyT>::compute_incoming_edges()
198
194
{
199
- for (typename function_mapt::iterator
200
- it=function_map.begin ();
201
- it!=function_map.end ();
202
- it++)
203
- it->second .body .compute_incoming_edges ();
195
+ for (auto &named_function : function_map)
196
+ named_function.second .body .compute_incoming_edges ();
204
197
}
205
198
206
199
template <class bodyT >
207
200
void goto_functions_templatet<bodyT>::compute_target_numbers()
208
201
{
209
- for (typename function_mapt::iterator
210
- it=function_map.begin ();
211
- it!=function_map.end ();
212
- it++)
213
- it->second .body .compute_target_numbers ();
202
+ for (auto &named_function : function_map)
203
+ named_function.second .body .compute_target_numbers ();
214
204
}
215
205
216
206
template <class bodyT >
217
207
void goto_functions_templatet<bodyT>::compute_loop_numbers()
218
208
{
219
- for (typename function_mapt::iterator
220
- it=function_map.begin ();
221
- it!=function_map.end ();
222
- it++)
223
- it->second .body .compute_loop_numbers ();
209
+ for (auto &named_function : function_map)
210
+ named_function.second .body .compute_loop_numbers ();
224
211
}
225
212
226
213
#endif // CPROVER_GOTO_PROGRAMS_GOTO_FUNCTIONS_TEMPLATE_H
0 commit comments