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