@@ -249,8 +249,8 @@ dfcc_instrument_loopt::add_prehead_instructions(
249
249
{
250
250
pre_loop_head_instrs.add (
251
251
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 ));
254
254
}
255
255
256
256
// initial_invariant = <loop_invariant>;
@@ -276,8 +276,8 @@ dfcc_instrument_loopt::add_prehead_instructions(
276
276
// in_base_case = true;
277
277
pre_loop_head_instrs.add (
278
278
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 ));
281
281
}
282
282
283
283
{
@@ -417,11 +417,11 @@ dfcc_instrument_loopt::add_step_instructions(
417
417
loop_head_location);
418
418
step_instrs.add (
419
419
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 ));
422
422
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 ));
425
425
}
426
426
427
427
goto_convertt converter (symbol_table, log .get_message_handler ());
@@ -490,8 +490,8 @@ void dfcc_instrument_loopt::add_body_instructions(
490
490
491
491
{
492
492
// 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 ));
495
495
}
496
496
497
497
{
0 commit comments