@@ -992,7 +992,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
992
992
// now do full inlining, if requested
993
993
if (cmdline.isset (" inline" ))
994
994
{
995
- do_indirect_call_and_rtti_removal ();
995
+ do_indirect_call_and_rtti_removal (/* force= */ true );
996
996
997
997
if (cmdline.isset (" show-custom-bitvector-analysis" ) ||
998
998
cmdline.isset (" custom-bitvector-analysis" ))
@@ -1003,7 +1003,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
1003
1003
}
1004
1004
1005
1005
status () << " Performing full inlining" << eom;
1006
- goto_inline (goto_model, get_message_handler ());
1006
+ goto_inline (goto_model, get_message_handler (), true );
1007
1007
}
1008
1008
1009
1009
if (cmdline.isset (" show-custom-bitvector-analysis" ) ||
@@ -1111,27 +1111,12 @@ void goto_instrument_parse_optionst::instrument_goto_program()
1111
1111
if (cmdline.isset (" partial-inline" ))
1112
1112
{
1113
1113
do_indirect_call_and_rtti_removal ();
1114
- do_partial_inlining ();
1115
1114
1116
- goto_model.goto_functions .update ();
1117
- goto_model.goto_functions .compute_loop_numbers ();
1118
- }
1119
-
1120
- // now do full inlining, if requested
1121
- if (cmdline.isset (" inline" ))
1122
- {
1123
- do_indirect_call_and_rtti_removal (/* force=*/ true );
1115
+ status () << " Partial inlining" << eom;
1116
+ goto_partial_inline (goto_functions, ns, ui_message_handler, 0 , true );
1124
1117
1125
- if (cmdline.isset (" show-custom-bitvector-analysis" ) ||
1126
- cmdline.isset (" custom-bitvector-analysis" ))
1127
- {
1128
- do_remove_returns ();
1129
- thread_exit_instrumentation (goto_model);
1130
- mutex_init_instrumentation (goto_model);
1131
- }
1132
-
1133
- status () << " Performing full inlining" << eom;
1134
- goto_inline (goto_model, get_message_handler (), true );
1118
+ goto_functions.update ();
1119
+ goto_functions.compute_loop_numbers ();
1135
1120
}
1136
1121
1137
1122
if (cmdline.isset (" constant-propagator" ))
0 commit comments