Skip to content

Commit d1dbd23

Browse files
committed
Revert "bugfix: must do .update() after remove_returns"
This reverts commit abbb389. In diffblue#2089 a broad cleanup of redundant calls to .update() was done. Let's stay in this spirit and call .update() when necessary, and not "just to be safe."
1 parent b02b2fd commit d1dbd23

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -448,10 +448,6 @@ int goto_instrument_parse_optionst::doit()
448448
if(cmdline.isset("check-call-sequence"))
449449
{
450450
do_remove_returns();
451-
452-
// recalculate numbers, etc.
453-
goto_model.goto_functions.update();
454-
455451
check_call_sequence(goto_model);
456452
return CPROVER_EXIT_SUCCESS;
457453
}
@@ -1456,9 +1452,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
14561452
{
14571453
do_indirect_call_and_rtti_removal();
14581454

1459-
// recalculate numbers, etc.
1460-
goto_model.goto_functions.update();
1461-
14621455
status() << "Performing a reachability slice" << eom;
14631456
if(cmdline.isset("property"))
14641457
reachability_slicer(goto_model, cmdline.get_values("property"));
@@ -1470,9 +1463,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
14701463
{
14711464
do_indirect_call_and_rtti_removal();
14721465

1473-
// recalculate numbers, etc.
1474-
goto_model.goto_functions.update();
1475-
14761466
status() << "Performing a function pointer reachability slice" << eom;
14771467
function_path_reachability_slicer(
14781468
goto_model, cmdline.get_comma_separated_values("fp-reachability-slice"));
@@ -1484,9 +1474,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
14841474
do_indirect_call_and_rtti_removal();
14851475
do_remove_returns();
14861476

1487-
// recalculate numbers, etc.
1488-
goto_model.goto_functions.update();
1489-
14901477
status() << "Performing a full slice" << eom;
14911478
if(cmdline.isset("property"))
14921479
property_slicer(goto_model, cmdline.get_values("property"));

0 commit comments

Comments
 (0)