Skip to content

Commit

Permalink
Clean-up in gen_nondet_instruction_info
Browse files Browse the repository at this point in the history
  • Loading branch information
romainbrenguier committed Jul 17, 2018
1 parent 1f62596 commit e4b8c44
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions jbmc/src/java_bytecode/replace_java_nondet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ get_nondet_instruction_info(const goto_programt::const_targett &instr)
return nondet_instruction_infot();
}
const auto &code = instr->code;
if(code.get_statement() != ID_function_call)
{
return nondet_instruction_infot();
}
INVARIANT(
code.get_statement() == ID_function_call,
"function_call should have ID_function_call");
const auto &function_call = to_code_function_call(code);
return is_nondet_returning_object(function_call);
}
Expand Down

0 comments on commit e4b8c44

Please sign in to comment.