@@ -176,10 +176,12 @@ void goto_unwindt::unwind(
176
176
if (unwind_strategy==PARTIAL)
177
177
{
178
178
goto_programt::targett t=rest_program.add_instruction ();
179
+ unwind_log.insert (t, loop_head->location_number );
180
+
179
181
t->make_skip ();
180
182
t->source_location =loop_head->source_location ;
181
183
t->function =loop_head->function ;
182
- unwind_log. insert (t, loop_head->location_number ) ;
184
+ t-> location_number = loop_head->location_number ;
183
185
}
184
186
else if (unwind_strategy==REST)
185
187
{
@@ -216,6 +218,7 @@ void goto_unwindt::unwind(
216
218
217
219
new_t ->source_location =loop_head->source_location ;
218
220
new_t ->function =loop_head->function ;
221
+ new_t ->location_number =loop_head->location_number ;
219
222
unwind_log.insert (new_t , loop_head->location_number );
220
223
}
221
224
@@ -242,6 +245,7 @@ void goto_unwindt::unwind(
242
245
t_goto->source_location =loop_exit->source_location ;
243
246
t_goto->function =loop_exit->function ;
244
247
t_goto->guard =true_exprt ();
248
+ t_goto->location_number =loop_exit->location_number ;
245
249
}
246
250
247
251
// add a skip before the loop exit
@@ -252,6 +256,7 @@ void goto_unwindt::unwind(
252
256
t_skip->make_skip ();
253
257
t_skip->source_location =loop_head->source_location ;
254
258
t_skip->function =loop_head->function ;
259
+ t_skip->location_number =loop_head->location_number ;
255
260
256
261
// where to go for the next iteration
257
262
goto_programt::targett loop_iter=t_skip;
@@ -293,6 +298,7 @@ void goto_unwindt::unwind(
293
298
t_skip->make_skip ();
294
299
t_skip->source_location =loop_head->source_location ;
295
300
t_skip->function =loop_head->function ;
301
+ t_skip->location_number =loop_head->location_number ;
296
302
297
303
// redirect gotos into loop body
298
304
Forall_goto_program_instructions (i_it, goto_program)
0 commit comments