Skip to content

Commit 032b299

Browse files
committed
JBMC: remove return values on a per-function basis
1 parent 7884958 commit 032b299

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/jbmc/jbmc_parse_options.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,8 @@ void jbmc_parse_optionst::process_goto_function(
649649
remove_instanceof(goto_function, symbol_table);
650650
// Java virtual functions -> explicit dispatch tables:
651651
remove_virtual_functions(function);
652+
// remove returns
653+
remove_returns(function);
652654
}
653655

654656
catch(const char *e)
@@ -686,9 +688,6 @@ bool jbmc_parse_optionst::process_goto_functions(
686688
// instrument library preconditions
687689
instrument_preconditions(goto_model);
688690

689-
// remove returns, gcc vectors, complex
690-
remove_returns(goto_model);
691-
692691
// Similar removal of java nondet statements:
693692
// TODO Should really get this from java_bytecode_language somehow, but we
694693
// don't have an instance of that here.

0 commit comments

Comments
 (0)