Skip to content

Commit e4ef59e

Browse files
committed
Use do_remove_returns instead of remove_returns
This ensures that this pass is done only once and is shown in the logging.
1 parent d45be72 commit e4ef59e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

regression/goto-instrument/constant-propagation-function-call/test.desc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ main.c
33
--constant-propagator
44
^EXIT=10$
55
^SIGNAL=0$
6+
Removing returns
67
VERIFICATION FAILED
78
ASSIGN main\:\:1\:\:a \:\= 4
89
ASSERT ¬\(main::1::b ≥ 0\) ∨ main::1::b ≥ 5

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1285,7 +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);
1288+
do_remove_returns();
12891289

12901290
log.status() << "Propagating Constants" << messaget::eom;
12911291

0 commit comments

Comments
 (0)