Skip to content

Commit 17b86f2

Browse files
committed
Perform remove_returns pass before constant_propagator
The constant_propagator does not handle returns and gives unexpected results for examples including returns. Carrying out the remove_returns pass before contant propagation should resolve this issue.
1 parent f680e0f commit 17b86f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,7 @@ void goto_instrument_parse_optionst::instrument_goto_program()
12851285
if(cmdline.isset("constant-propagator"))
12861286
{
12871287
do_indirect_call_and_rtti_removal();
1288+
remove_returns(goto_model);
12881289

12891290
log.status() << "Propagating Constants" << messaget::eom;
12901291

0 commit comments

Comments
 (0)