@@ -175,12 +175,12 @@ void instrumentert::cfg_visitort::visit_cfg_function(
175
175
176
176
#ifdef LOCAL_MAY
177
177
local_may_aliast local_may (
178
- instrumenter.goto_functions .function_map [ function] );
178
+ instrumenter.goto_functions .function_map . at ( function) );
179
179
#endif
180
180
181
181
/* goes through the function */
182
182
Forall_goto_program_instructions (i_it,
183
- instrumenter.goto_functions .function_map [ function] .body )
183
+ instrumenter.goto_functions .function_map . at ( function) .body )
184
184
{
185
185
goto_programt::instructiont &instruction=*i_it;
186
186
@@ -274,15 +274,15 @@ void instrumentert::cfg_visitort::visit_cfg_function(
274
274
egraph.map_data_dp .insert (new_dp);
275
275
data_dp.print (instrumenter.message );
276
276
277
- if (instrumenter.goto_functions .function_map [ function]
277
+ if (instrumenter.goto_functions .function_map . at ( function)
278
278
.body .instructions .empty ())
279
279
{
280
280
/* empty set of ending edges */
281
281
}
282
282
else
283
283
{
284
284
goto_programt::instructionst::iterator it=instrumenter
285
- .goto_functions .function_map [ function] .body .instructions .end ();
285
+ .goto_functions .function_map . at ( function) .body .instructions .end ();
286
286
--it;
287
287
ending_vertex=in_pos[it];
288
288
}
@@ -319,7 +319,7 @@ void inline instrumentert::cfg_visitort::visit_cfg_reference_function(
319
319
320
320
/* gets the body of the function */
321
321
goto_programt::instructionst &body=instrumenter.goto_functions
322
- .function_map [ id_function] .body .instructions ;
322
+ .function_map . at ( id_function) .body .instructions ;
323
323
324
324
if (body.empty ())
325
325
return ;
@@ -502,7 +502,7 @@ void inline instrumentert::cfg_visitort::visit_cfg_duplicate(
502
502
{
503
503
instrumenter.message .status () << " Duplication..." << messaget::eom;
504
504
const goto_functionst::goto_functiont &fun=
505
- instrumenter.goto_functions .function_map [ i_it->function ] ;
505
+ instrumenter.goto_functions .function_map . at ( i_it->function ) ;
506
506
507
507
bool found_pos=false ;
508
508
goto_programt::const_targett new_targ=targ;
@@ -1300,15 +1300,12 @@ bool instrumentert::is_cfg_spurious(const event_grapht::critical_cyclet &cyc)
1300
1300
}
1301
1301
1302
1302
/* now test whether this part of the code can exist */
1303
- goto_functionst::function_mapt map ;
1303
+ goto_functionst this_interleaving ;
1304
1304
goto_function_templatet<goto_programt> one_interleaving;
1305
1305
one_interleaving.body .copy_from (interleaving);
1306
- map .insert (std::make_pair (
1306
+ this_interleaving. function_map .insert (std::make_pair (
1307
1307
goto_functionst::entry_point (),
1308
1308
std::move (one_interleaving)));
1309
-
1310
- goto_functionst this_interleaving;
1311
- this_interleaving.function_map =std::move (map);
1312
1309
optionst no_option;
1313
1310
null_message_handlert no_message;
1314
1311
0 commit comments