@@ -386,12 +386,10 @@ void goto_symext::phi_function(
386
386
diff_guard-=dest_state.guard ;
387
387
}
388
388
389
- for (auto it = all_current_names_range.begin ();
390
- it != all_current_names_range.end ();
391
- ++it)
389
+ for (const auto &ssa : all_current_names_range)
392
390
{
393
- const irep_idt l1_identifier=it-> get_identifier ();
394
- const irep_idt &obj_identifier=it-> get_object_name ();
391
+ const irep_idt l1_identifier = ssa. get_identifier ();
392
+ const irep_idt &obj_identifier = ssa. get_object_name ();
395
393
396
394
if (obj_identifier==guard_identifier)
397
395
continue ; // just a guard, don't bother
@@ -416,11 +414,12 @@ void goto_symext::phi_function(
416
414
// may have been introduced by symex_start_thread (and will
417
415
// only later be removed from level2.current_names by pop_frame
418
416
// once the thread is executed)
419
- if (!it->get_level_0 ().empty () &&
420
- it->get_level_0 ()!=std::to_string (dest_state.source .thread_nr ))
417
+ if (
418
+ !ssa.get_level_0 ().empty () &&
419
+ ssa.get_level_0 () != std::to_string (dest_state.source .thread_nr ))
421
420
continue ;
422
421
423
- exprt goto_state_rhs=*it , dest_state_rhs=*it ;
422
+ exprt goto_state_rhs = ssa , dest_state_rhs = ssa ;
424
423
425
424
{
426
425
const auto p_it = goto_state.propagation .find (l1_identifier);
@@ -466,7 +465,7 @@ void goto_symext::phi_function(
466
465
do_simplify (rhs);
467
466
}
468
467
469
- ssa_exprt new_lhs=*it ;
468
+ ssa_exprt new_lhs = ssa ;
470
469
const bool record_events=dest_state.record_events ;
471
470
dest_state.record_events =false ;
472
471
dest_state.assignment (new_lhs, rhs, ns, true , true );
0 commit comments