<div dir="ltr"><font face="georgia,serif">Hi all;<br><br>I am new to Soot. I am using LoopNestTree to find the loop.<br><br>// Note that I will be working with loops which have simple termination<br>// condition and incerement/decrement values<br>for(int i = 0;i<5;i++)<br>    System.out.println(i);<br><br>But, What I want for my work is:<br>for the above loop I want<br>Start_i = 0;<br>End_i = 5;<br>Incr_i = 1;<br><br>Is there any way of getting this info.<br><br>I am getting the loop termination conditions using getLoopExits().<br>I think I can extract the End_i using that.<br><br></font><div style="text-align:left"><font face="georgia,serif">#Jimple for reference</font><br><br><font face="georgia,serif">       i = 0;</font><br><br><font face="georgia,serif">     label1:</font><br><font face="georgia,serif">        if i >= 5 goto label2;</font><br><font face="georgia,serif">        $r0 = <java.lang.System: java.io.PrintStream out>;</font><br><font face="georgia,serif">        virtualinvoke $r0.<java.io.PrintStream: void println(int)>(i);</font><br><font face="georgia,serif">        i = i + 1;</font><br><font face="georgia,serif">        goto label1;</font><br><br><font face="georgia,serif">     label2:</font><br><font face="georgia,serif">        return;</font><br></div><font face="georgia,serif"><br>Thanks,<br>--Nikhil</font></div>