Skip to content

Commit

Permalink
Revert "bugfix: must do .update() after remove_returns"
Browse files Browse the repository at this point in the history
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."
  • Loading branch information
tautschnig committed Feb 26, 2019
1 parent b8678a4 commit c96f812
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/goto-instrument/goto_instrument_parse_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,6 @@ int goto_instrument_parse_optionst::doit()
if(cmdline.isset("check-call-sequence"))
{
do_remove_returns();

// recalculate numbers, etc.
goto_model.goto_functions.update();

check_call_sequence(goto_model);
return CPROVER_EXIT_SUCCESS;
}
Expand Down Expand Up @@ -1456,9 +1452,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
{
do_indirect_call_and_rtti_removal();

// recalculate numbers, etc.
goto_model.goto_functions.update();

status() << "Performing a reachability slice" << eom;
if(cmdline.isset("property"))
reachability_slicer(goto_model, cmdline.get_values("property"));
Expand All @@ -1470,9 +1463,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
{
do_indirect_call_and_rtti_removal();

// recalculate numbers, etc.
goto_model.goto_functions.update();

status() << "Performing a function pointer reachability slice" << eom;
function_path_reachability_slicer(
goto_model, cmdline.get_comma_separated_values("fp-reachability-slice"));
Expand All @@ -1484,9 +1474,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
do_indirect_call_and_rtti_removal();
do_remove_returns();

// recalculate numbers, etc.
goto_model.goto_functions.update();

status() << "Performing a full slice" << eom;
if(cmdline.isset("property"))
property_slicer(goto_model, cmdline.get_values("property"));
Expand Down

0 comments on commit c96f812

Please sign in to comment.