File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -68,20 +68,17 @@ void goto_symext::symex_atomic_end(statet &state)
68
68
state.source );
69
69
}
70
70
71
- for (goto_symex_statet::written_in_atomic_sectiont::const_iterator
72
- w_it=state.written_in_atomic_section .begin ();
73
- w_it!=state.written_in_atomic_section .end ();
74
- ++w_it)
71
+ for (const auto &pair : state.written_in_atomic_section )
75
72
{
76
- ssa_exprt w=w_it-> first ;
73
+ ssa_exprt w=pair. first ;
77
74
w.set_level_2 (state.level2 .current_count (w.get_identifier ()));
78
75
79
76
// guard is the disjunction over writes
80
- PRECONDITION (!w_it-> second .empty ());
81
- guardt write_guard (w_it-> second .front ());
77
+ PRECONDITION (!pair. second .empty ());
78
+ guardt write_guard (pair. second .front ());
82
79
for (std::list<guardt>::const_iterator
83
- it=++(w_it-> second .begin ());
84
- it!=w_it-> second .end ();
80
+ it=++(pair. second .begin ());
81
+ it!=pair. second .end ();
85
82
++it)
86
83
write_guard|=*it;
87
84
exprt write_guard_expr=write_guard.as_expr ();
You can’t perform that action at this time.
0 commit comments