Skip to content

Commit e4b8c44

Browse files
Clean-up in gen_nondet_instruction_info
1 parent 1f62596 commit e4b8c44

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

jbmc/src/java_bytecode/replace_java_nondet.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ get_nondet_instruction_info(const goto_programt::const_targett &instr)
9393
return nondet_instruction_infot();
9494
}
9595
const auto &code = instr->code;
96-
if(code.get_statement() != ID_function_call)
97-
{
98-
return nondet_instruction_infot();
99-
}
96+
INVARIANT(
97+
code.get_statement() == ID_function_call,
98+
"function_call should have ID_function_call");
10099
const auto &function_call = to_code_function_call(code);
101100
return is_nondet_returning_object(function_call);
102101
}

0 commit comments

Comments
 (0)