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