[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A weird NopStmt
Hi,
When i use the soot.examples.printclass.Main to print out the
jimpled class for one of my simple java file, I found there
are 2 nop statement. When I use the beta3, there were not these
NopStmt within the jimple body. So, my PDG construction got
crashed here on these 2 NopStmt. I am wondering what is the
purpose of these 2 NopStmts.
Thansk,
Liang
------
r0 := @parameter0: java.lang.String[];
i0 = 5666;
$r4 = new Change;
specialinvoke $r4.<Change: void <init>()>();
r1 = $r4;
$r5 = new ComputerJob;
specialinvoke $r5.<ComputerJob: void <init>(java.lang.String,int)>("Comp Sci", 66000);
r2 = $r5;
$r6 = virtualinvoke r2.<Job: java.lang.String Name()>();
--> nop;
$i2 = virtualinvoke r2.<Job: int PayLevel()>();
--> nop;
virtualinvoke r2.<ComputerJob: void JobDescription()>();
virtualinvoke r1.<Change: void improve(Job,int)>(r2, i0);
r3 = r2;
$i3 = r3.<Job: int payLevel>;
i1 = $i3 + i0;
$r7 = <java.lang.System: java.io.PrintStream out>;
virtualinvoke $r7.<java.io.PrintStream: void println(int)>(i1);
return;