Skip to content

Commit 3f202fa

Browse files
author
thk123
committed
Add support for reading nop operations
Previously this fell through to a naked codet("nop"). This would crash in the symex phase. This correctly converts it into an appropriate skip
1 parent 7a205f0 commit 3f202fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/java_bytecode/java_bytecode_convert_method.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -2324,6 +2324,10 @@ codet java_bytecode_convert_methodt::convert_instructions(
23242324
results[1]=op[0];
23252325
results[0]=op[1];
23262326
}
2327+
else if(statement=="nop")
2328+
{
2329+
c=code_skipt();
2330+
}
23272331
else
23282332
{
23292333
c=codet(statement);

0 commit comments

Comments
 (0)