@@ -249,8 +249,8 @@ dfcc_instrument_loopt::add_prehead_instructions(
249249 {
250250 pre_loop_head_instrs.add (
251251 goto_programt::make_decl (entered_loop, loop_head_location));
252- pre_loop_head_instrs.add (
253- goto_programt::make_assignment ( entered_loop, false_exprt{}));
252+ pre_loop_head_instrs.add (goto_programt::make_assignment (
253+ entered_loop, false_exprt{}, loop_head_location ));
254254 }
255255
256256 // initial_invariant = <loop_invariant>;
@@ -276,8 +276,8 @@ dfcc_instrument_loopt::add_prehead_instructions(
276276 // in_base_case = true;
277277 pre_loop_head_instrs.add (
278278 goto_programt::make_decl (in_base_case, loop_head_location));
279- pre_loop_head_instrs.add (
280- goto_programt::make_assignment ( in_base_case, true_exprt{}));
279+ pre_loop_head_instrs.add (goto_programt::make_assignment (
280+ in_base_case, true_exprt{}, loop_head_location ));
281281 }
282282
283283 {
@@ -417,11 +417,11 @@ dfcc_instrument_loopt::add_step_instructions(
417417 loop_head_location);
418418 step_instrs.add (
419419 goto_programt::make_decl (in_loop_havoc_block, loop_head_location));
420- step_instrs.add (
421- goto_programt::make_assignment ( in_loop_havoc_block, true_exprt{}));
420+ step_instrs.add (goto_programt::make_assignment (
421+ in_loop_havoc_block, true_exprt{}, loop_head_location ));
422422 step_instrs.destructive_append (havoc_instrs);
423- step_instrs.add (
424- goto_programt::make_assignment ( in_loop_havoc_block, false_exprt{}));
423+ step_instrs.add (goto_programt::make_assignment (
424+ in_loop_havoc_block, false_exprt{}, loop_head_location ));
425425 }
426426
427427 goto_convertt converter (symbol_table, log.get_message_handler ());
@@ -490,8 +490,8 @@ void dfcc_instrument_loopt::add_body_instructions(
490490
491491 {
492492 // Record that we entered the loop with `entered_loop = true`.
493- pre_loop_latch_instrs.add (
494- goto_programt::make_assignment ( entered_loop, true_exprt{}));
493+ pre_loop_latch_instrs.add (goto_programt::make_assignment (
494+ entered_loop, true_exprt{}, loop_head_location ));
495495 }
496496
497497 {
0 commit comments