File tree 1 file changed +9
-8
lines changed
1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -298,17 +298,18 @@ static void remove_java_nondet(
298
298
// Check each instruction.
299
299
// `process_target` may modify the list in place, and returns the next
300
300
// iterator to look at.
301
+ // Can't use forall_goto_program_instructions because we don't want to
302
+ // increment the iterator by one after every iteration.
301
303
for (auto instruction_iterator=std::begin (goto_program.instructions ),
302
304
end=std::end (goto_program.instructions );
303
- instruction_iterator!=end;
304
- instruction_iterator=process_target (
305
- message_handler,
306
- symbol_table,
307
- max_nondet_array_length,
308
- goto_program,
309
- instruction_iterator))
305
+ instruction_iterator!=end;)
310
306
{
311
- // Loop body deliberately empty.
307
+ instruction_iterator=process_target (
308
+ message_handler,
309
+ symbol_table,
310
+ max_nondet_array_length,
311
+ goto_program,
312
+ instruction_iterator);
312
313
}
313
314
}
314
315
You can’t perform that action at this time.
0 commit comments