We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 036f1b1 commit 36ed947Copy full SHA for 36ed947
jbmc/src/java_bytecode/java_bytecode_convert_method.cpp
@@ -1068,10 +1068,9 @@ codet java_bytecode_convert_methodt::convert_instructions(
1068
if(i_it->statement=="jsr" ||
1069
i_it->statement=="jsr_w")
1070
{
1071
- assert(
1072
- next!=instructions.end() &&
1073
- "jsr without valid return address?");
1074
auto next = std::next(i_it);
+ DATA_INVARIANT(
+ next != instructions.end(), "jsr should have valid return address");
1075
targets.insert(next->address);
1076
jsr_ret_targets.push_back(next->address);
1077
}
0 commit comments