@@ -47,17 +47,17 @@ void uninitializedt::get_tracking(goto_programt::const_targett i_it)
47
47
{
48
48
std::list<exprt> objects=objects_read (*i_it);
49
49
50
- forall_expr_list (o_it, objects)
50
+ for ( const auto &object : objects)
51
51
{
52
- if (o_it-> id ()== ID_symbol)
52
+ if (object. id () == ID_symbol)
53
53
{
54
- const irep_idt &identifier= to_symbol_expr (*o_it ).get_identifier ();
54
+ const irep_idt &identifier = to_symbol_expr (object ).get_identifier ();
55
55
const std::set<irep_idt> &uninitialized=
56
56
uninitialized_analysis[i_it].uninitialized ;
57
57
if (uninitialized.find (identifier)!=uninitialized.end ())
58
58
tracking.insert (identifier);
59
59
}
60
- else if (o_it-> id ()== ID_dereference)
60
+ else if (object. id () == ID_dereference)
61
61
{
62
62
}
63
63
}
@@ -142,11 +142,11 @@ void uninitializedt::add_assertions(goto_programt &goto_program)
142
142
uninitialized_analysis[i_it].uninitialized ;
143
143
144
144
// check tracking variables
145
- forall_expr_list (it, read )
145
+ for ( const auto &object : read )
146
146
{
147
- if (it-> id ()== ID_symbol)
147
+ if (object. id () == ID_symbol)
148
148
{
149
- const irep_idt &identifier= to_symbol_expr (*it ).get_identifier ();
149
+ const irep_idt &identifier = to_symbol_expr (object ).get_identifier ();
150
150
151
151
if (uninitialized.find (identifier)!=uninitialized.end ())
152
152
{
@@ -169,11 +169,11 @@ void uninitializedt::add_assertions(goto_programt &goto_program)
169
169
}
170
170
171
171
// set tracking variables
172
- forall_expr_list (it, written)
172
+ for ( const auto &object : written)
173
173
{
174
- if (it-> id ()== ID_symbol)
174
+ if (object. id () == ID_symbol)
175
175
{
176
- const irep_idt &identifier= to_symbol_expr (*it ).get_identifier ();
176
+ const irep_idt &identifier = to_symbol_expr (object ).get_identifier ();
177
177
178
178
if (tracking.find (identifier)!=tracking.end ())
179
179
{
0 commit comments