@@ -175,12 +175,12 @@ void instrumentert::cfg_visitort::visit_cfg_function(
175175
176176#ifdef LOCAL_MAY
177177 local_may_aliast local_may (
178- instrumenter.goto_functions .function_map [ function] );
178+ instrumenter.goto_functions .function_map . at ( function) );
179179#endif
180180
181181 /* goes through the function */
182182 Forall_goto_program_instructions (i_it,
183- instrumenter.goto_functions .function_map [ function] .body )
183+ instrumenter.goto_functions .function_map . at ( function) .body )
184184 {
185185 goto_programt::instructiont &instruction=*i_it;
186186
@@ -274,15 +274,15 @@ void instrumentert::cfg_visitort::visit_cfg_function(
274274 egraph.map_data_dp .insert (new_dp);
275275 data_dp.print (instrumenter.message );
276276
277- if (instrumenter.goto_functions .function_map [ function]
277+ if (instrumenter.goto_functions .function_map . at ( function)
278278 .body .instructions .empty ())
279279 {
280280 /* empty set of ending edges */
281281 }
282282 else
283283 {
284284 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 ();
286286 --it;
287287 ending_vertex=in_pos[it];
288288 }
@@ -319,7 +319,7 @@ void inline instrumentert::cfg_visitort::visit_cfg_reference_function(
319319
320320 /* gets the body of the function */
321321 goto_programt::instructionst &body=instrumenter.goto_functions
322- .function_map [ id_function] .body .instructions ;
322+ .function_map . at ( id_function) .body .instructions ;
323323
324324 if (body.empty ())
325325 return ;
@@ -502,7 +502,7 @@ void inline instrumentert::cfg_visitort::visit_cfg_duplicate(
502502{
503503 instrumenter.message .status () << " Duplication..." << messaget::eom;
504504 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 ) ;
506506
507507 bool found_pos=false ;
508508 goto_programt::const_targett new_targ=targ;
@@ -1300,15 +1300,12 @@ bool instrumentert::is_cfg_spurious(const event_grapht::critical_cyclet &cyc)
13001300 }
13011301
13021302 /* now test whether this part of the code can exist */
1303- goto_functionst::function_mapt map ;
1303+ goto_functionst this_interleaving ;
13041304 goto_function_templatet<goto_programt> one_interleaving;
13051305 one_interleaving.body .copy_from (interleaving);
1306- map .insert (std::make_pair (
1306+ this_interleaving. function_map .insert (std::make_pair (
13071307 goto_functionst::entry_point (),
13081308 std::move (one_interleaving)));
1309-
1310- goto_functionst this_interleaving;
1311- this_interleaving.function_map =std::move (map);
13121309 optionst no_option;
13131310 null_message_handlert no_message;
13141311
0 commit comments