@@ -447,6 +447,10 @@ int goto_instrument_parse_optionst::doit()
447
447
if (cmdline.isset (" check-call-sequence" ))
448
448
{
449
449
do_remove_returns ();
450
+
451
+ // recalculate numbers, etc.
452
+ goto_model.goto_functions .update ();
453
+
450
454
check_call_sequence (goto_model);
451
455
return CPROVER_EXIT_SUCCESS;
452
456
}
@@ -1443,6 +1447,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
1443
1447
{
1444
1448
do_indirect_call_and_rtti_removal ();
1445
1449
1450
+ // recalculate numbers, etc.
1451
+ goto_model.goto_functions .update ();
1452
+
1446
1453
status () << " Performing a reachability slice" << eom;
1447
1454
if (cmdline.isset (" property" ))
1448
1455
reachability_slicer (goto_model, cmdline.get_values (" property" ));
@@ -1454,6 +1461,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
1454
1461
{
1455
1462
do_indirect_call_and_rtti_removal ();
1456
1463
1464
+ // recalculate numbers, etc.
1465
+ goto_model.goto_functions .update ();
1466
+
1457
1467
status () << " Performing a function pointer reachability slice" << eom;
1458
1468
function_path_reachability_slicer (
1459
1469
goto_model, cmdline.get_comma_separated_values (" fp-reachability-slice" ));
@@ -1465,6 +1475,9 @@ void goto_instrument_parse_optionst::instrument_goto_program()
1465
1475
do_indirect_call_and_rtti_removal ();
1466
1476
do_remove_returns ();
1467
1477
1478
+ // recalculate numbers, etc.
1479
+ goto_model.goto_functions .update ();
1480
+
1468
1481
status () << " Performing a full slice" << eom;
1469
1482
if (cmdline.isset (" property" ))
1470
1483
property_slicer (goto_model, cmdline.get_values (" property" ));
0 commit comments