@@ -42,7 +42,7 @@ irep_idt escape_domaint::get_function(const exprt &lhs)
42
42
43
43
void escape_domaint::assign_lhs_cleanup (
44
44
const exprt &lhs,
45
- const std::set<irep_idt> &cleanup_functions)
45
+ const id_sett &cleanup_functions)
46
46
{
47
47
if (lhs.id ()==ID_symbol)
48
48
{
@@ -61,7 +61,7 @@ void escape_domaint::assign_lhs_cleanup(
61
61
62
62
void escape_domaint::assign_lhs_aliases (
63
63
const exprt &lhs,
64
- const std::set<irep_idt> &alias_set)
64
+ const id_sett &alias_set)
65
65
{
66
66
if (lhs.id ()==ID_symbol)
67
67
{
@@ -82,7 +82,7 @@ void escape_domaint::assign_lhs_aliases(
82
82
83
83
void escape_domaint::get_rhs_cleanup (
84
84
const exprt &rhs,
85
- std::set<irep_idt> &cleanup_functions)
85
+ id_sett &cleanup_functions)
86
86
{
87
87
if (rhs.id ()==ID_symbol)
88
88
{
@@ -110,9 +110,7 @@ void escape_domaint::get_rhs_cleanup(
110
110
}
111
111
}
112
112
113
- void escape_domaint::get_rhs_aliases (
114
- const exprt &rhs,
115
- std::set<irep_idt> &alias_set)
113
+ void escape_domaint::get_rhs_aliases (const exprt &rhs, id_sett &alias_set)
116
114
{
117
115
if (rhs.id ()==ID_symbol)
118
116
{
@@ -144,7 +142,7 @@ void escape_domaint::get_rhs_aliases(
144
142
145
143
void escape_domaint::get_rhs_aliases_address_of (
146
144
const exprt &rhs,
147
- std::set<irep_idt> &alias_set)
145
+ id_sett &alias_set)
148
146
{
149
147
if (rhs.id ()==ID_symbol)
150
148
{
@@ -182,11 +180,11 @@ void escape_domaint::transform(
182
180
{
183
181
const code_assignt &code_assign=to_code_assign (instruction.code );
184
182
185
- std::set<irep_idt> cleanup_functions;
183
+ id_sett cleanup_functions;
186
184
get_rhs_cleanup (code_assign.rhs (), cleanup_functions);
187
185
assign_lhs_cleanup (code_assign.lhs (), cleanup_functions);
188
186
189
- std::set<irep_idt> aliases;
187
+ id_sett aliases;
190
188
get_rhs_aliases (code_assign.rhs (), aliases);
191
189
assign_lhs_aliases (code_assign.lhs (), aliases);
192
190
}
@@ -196,15 +194,15 @@ void escape_domaint::transform(
196
194
{
197
195
const code_declt &code_decl=to_code_decl (instruction.code );
198
196
aliases.isolate (code_decl.get_identifier ());
199
- assign_lhs_cleanup (code_decl.symbol (), std::set<irep_idt> ());
197
+ assign_lhs_cleanup (code_decl.symbol (), id_sett ());
200
198
}
201
199
break ;
202
200
203
201
case DEAD:
204
202
{
205
203
const code_deadt &code_dead=to_code_dead (instruction.code );
206
204
aliases.isolate (code_dead.get_identifier ());
207
- assign_lhs_cleanup (code_dead.symbol (), std::set<irep_idt> ());
205
+ assign_lhs_cleanup (code_dead.symbol (), id_sett ());
208
206
}
209
207
break ;
210
208
@@ -229,7 +227,7 @@ void escape_domaint::transform(
229
227
if (!cleanup_function.empty ())
230
228
{
231
229
// may alias other stuff
232
- std::set<irep_idt> lhs_set;
230
+ id_sett lhs_set;
233
231
get_rhs_aliases (lhs, lhs_set);
234
232
235
233
for (const auto &lhs : lhs_set)
@@ -309,8 +307,8 @@ bool escape_domaint::merge(
309
307
310
308
for (const auto &cleanup : b.cleanup_map )
311
309
{
312
- const std::set<irep_idt> &b_cleanup= cleanup.second .cleanup_functions ;
313
- std::set<irep_idt> &a_cleanup= cleanup_map[cleanup.first ].cleanup_functions ;
310
+ const id_sett &b_cleanup = cleanup.second .cleanup_functions ;
311
+ id_sett &a_cleanup = cleanup_map[cleanup.first ].cleanup_functions ;
314
312
auto old_size=a_cleanup.size ();
315
313
a_cleanup.insert (b_cleanup.begin (), b_cleanup.end ());
316
314
if (a_cleanup.size ()!=old_size)
@@ -355,9 +353,7 @@ bool escape_domaint::merge(
355
353
return changed;
356
354
}
357
355
358
- void escape_domaint::check_lhs (
359
- const exprt &lhs,
360
- std::set<irep_idt> &cleanup_functions)
356
+ void escape_domaint::check_lhs (const exprt &lhs, id_sett &cleanup_functions)
361
357
{
362
358
if (lhs.id ()==ID_symbol)
363
359
{
@@ -394,7 +390,7 @@ void escape_analysist::insert_cleanup(
394
390
goto_functionst::goto_functiont &goto_function,
395
391
goto_programt::targett location,
396
392
const exprt &lhs,
397
- const std::set<irep_idt> &cleanup_functions,
393
+ const id_sett &cleanup_functions,
398
394
bool is_object,
399
395
const namespacet &ns)
400
396
{
@@ -446,7 +442,7 @@ void escape_analysist::instrument(
446
442
{
447
443
const code_assignt &code_assign=to_code_assign (instruction.code );
448
444
449
- std::set<irep_idt> cleanup_functions;
445
+ id_sett cleanup_functions;
450
446
operator [](i_it).check_lhs (code_assign.lhs (), cleanup_functions);
451
447
insert_cleanup (
452
448
f_it->second ,
@@ -462,7 +458,7 @@ void escape_analysist::instrument(
462
458
{
463
459
const code_deadt &code_dead=to_code_dead (instruction.code );
464
460
465
- std::set<irep_idt> cleanup_functions1;
461
+ id_sett cleanup_functions1;
466
462
467
463
escape_domaint &d=operator [](i_it);
468
464
@@ -477,7 +473,7 @@ void escape_analysist::instrument(
477
473
m_it->second .cleanup_functions .end ());
478
474
}
479
475
480
- std::set<irep_idt> cleanup_functions2;
476
+ id_sett cleanup_functions2;
481
477
482
478
d.check_lhs (code_dead.symbol (), cleanup_functions2);
483
479
0 commit comments