File tree 2 files changed +7
-11
lines changed
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -388,10 +388,8 @@ void code_contractst::operator()()
388
388
goto_functions.function_map .find (CPROVER_PREFIX " initialize" );
389
389
assert (i_it!=goto_functions.function_map .end ());
390
390
391
- for (std::unordered_set<irep_idt>::const_iterator it = summarized.begin ();
392
- it != summarized.end ();
393
- ++it)
394
- add_contract_check (*it, i_it->second .body );
391
+ for (const auto &contract : summarized)
392
+ add_contract_check (contract, i_it->second .body );
395
393
396
394
// remove skips
397
395
remove_skip (i_it->second .body );
Original file line number Diff line number Diff line change @@ -1195,20 +1195,18 @@ void linkingt::do_type_dependencies(
1195
1195
1196
1196
while (!queue.empty ())
1197
1197
{
1198
- irep_idt id= queue.top ();
1198
+ irep_idt id = queue.top ();
1199
1199
queue.pop ();
1200
1200
1201
1201
const std::unordered_set<irep_idt> &u = used_by[id];
1202
1202
1203
- for (std::unordered_set<irep_idt>::const_iterator d_it = u.begin ();
1204
- d_it != u.end ();
1205
- d_it++)
1206
- if (needs_to_be_renamed.insert (*d_it).second )
1203
+ for (const auto &dep : u)
1204
+ if (needs_to_be_renamed.insert (dep).second )
1207
1205
{
1208
- queue.push (*d_it );
1206
+ queue.push (dep );
1209
1207
#ifdef DEBUG
1210
1208
debug () << " LINKING: needs to be renamed (dependency): "
1211
- << *d_it << eom;
1209
+ << dep << eom;
1212
1210
#endif
1213
1211
}
1214
1212
}
You can’t perform that action at this time.
0 commit comments