We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f62596 commit e4b8c44Copy full SHA for e4b8c44
jbmc/src/java_bytecode/replace_java_nondet.cpp
@@ -93,10 +93,9 @@ get_nondet_instruction_info(const goto_programt::const_targett &instr)
93
return nondet_instruction_infot();
94
}
95
const auto &code = instr->code;
96
- if(code.get_statement() != ID_function_call)
97
- {
98
- return nondet_instruction_infot();
99
- }
+ INVARIANT(
+ code.get_statement() == ID_function_call,
+ "function_call should have ID_function_call");
100
const auto &function_call = to_code_function_call(code);
101
return is_nondet_returning_object(function_call);
102
0 commit comments