Skip to content

Commit 11e9394

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 727f7e6 commit 11e9394

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
@@ -447,10 +447,6 @@ int goto_instrument_parse_optionst::doit()
447447
if(cmdline.isset("check-call-sequence"))
448448
{
449449
do_remove_returns();
450-
451-
// recalculate numbers, etc.
452-
goto_model.goto_functions.update();
453-
454450
check_call_sequence(goto_model);
455451
return CPROVER_EXIT_SUCCESS;
456452
}
@@ -1447,9 +1443,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
14471443
{
14481444
do_indirect_call_and_rtti_removal();
14491445

1450-
// recalculate numbers, etc.
1451-
goto_model.goto_functions.update();
1452-
14531446
status() << "Performing a reachability slice" << eom;
14541447
if(cmdline.isset("property"))
14551448
reachability_slicer(goto_model, cmdline.get_values("property"));
@@ -1461,9 +1454,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
14611454
{
14621455
do_indirect_call_and_rtti_removal();
14631456

1464-
// recalculate numbers, etc.
1465-
goto_model.goto_functions.update();
1466-
14671457
status() << "Performing a function pointer reachability slice" << eom;
14681458
function_path_reachability_slicer(
14691459
goto_model, cmdline.get_comma_separated_values("fp-reachability-slice"));
@@ -1475,9 +1465,6 @@ void goto_instrument_parse_optionst::instrument_goto_program()
14751465
do_indirect_call_and_rtti_removal();
14761466
do_remove_returns();
14771467

1478-
// recalculate numbers, etc.
1479-
goto_model.goto_functions.update();
1480-
14811468
status() << "Performing a full slice" << eom;
14821469
if(cmdline.isset("property"))
14831470
property_slicer(goto_model, cmdline.get_values("property"));

0 commit comments

Comments
 (0)