File tree 4 files changed +7
-14
lines changed
4 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -306,9 +306,6 @@ void remove_exceptionst::add_exception_dispatch_sequence(
306
306
// Jump to the universal handler or function end, as appropriate.
307
307
// This will appear after the GOTO-based dynamic dispatch below
308
308
goto_programt::targett default_dispatch=goto_program.insert_after (instr_it);
309
- default_dispatch->make_goto ();
310
- default_dispatch->source_location =instr_it->source_location ;
311
- default_dispatch->function =instr_it->function ;
312
309
313
310
// find the symbol corresponding to the caught exceptions
314
311
symbol_exprt exc_thrown =
@@ -356,7 +353,9 @@ void remove_exceptionst::add_exception_dispatch_sequence(
356
353
}
357
354
}
358
355
359
- default_dispatch->set_target (default_target);
356
+ default_dispatch->make_goto (default_target);
357
+ default_dispatch->source_location =instr_it->source_location ;
358
+ default_dispatch->function =instr_it->function ;
360
359
361
360
// add dead instructions
362
361
for (const auto &local : locals)
Original file line number Diff line number Diff line change @@ -212,16 +212,12 @@ void acceleratet::insert_looping_path(
212
212
++loop_body;
213
213
214
214
goto_programt::targett jump=program.insert_before (loop_body);
215
- jump->make_goto ();
216
- jump->guard =side_effect_expr_nondett (bool_typet ());
217
- jump->targets .push_back (loop_body);
215
+ jump->make_goto (loop_body, side_effect_expr_nondett (bool_typet ()));
218
216
219
217
program.destructive_insert (loop_body, looping_path);
220
218
221
219
jump=program.insert_before (loop_body);
222
- jump->make_goto ();
223
- jump->guard =true_exprt ();
224
- jump->targets .push_back (back_jump);
220
+ jump->make_goto (back_jump, true_exprt ());
225
221
226
222
for (goto_programt::targett t=loop_header;
227
223
t!=loop_body;
Original file line number Diff line number Diff line change @@ -56,8 +56,7 @@ void branch(
56
56
t1->function =f_it->first ;
57
57
58
58
goto_programt::targett t2=body.insert_after (t1);
59
- t2->make_goto ();
60
- t2->targets =i_it->targets ;
59
+ t2->make_goto (i_it->get_target ());
61
60
62
61
goto_programt::targett t3=body.insert_after (t2);
63
62
t3->make_function_call (
Original file line number Diff line number Diff line change @@ -237,7 +237,6 @@ class goto_programt
237
237
code.make_nil ();
238
238
}
239
239
240
- void make_goto () { clear (GOTO); }
241
240
void make_return () { clear (RETURN); }
242
241
void make_skip () { clear (SKIP); }
243
242
void make_location (const source_locationt &l)
@@ -256,7 +255,7 @@ class goto_programt
256
255
257
256
void make_goto (targett _target)
258
257
{
259
- make_goto ( );
258
+ clear (GOTO );
260
259
targets.push_back (_target);
261
260
}
262
261
You can’t perform that action at this time.
0 commit comments