<div dir="ltr"><br clear="all"><div>Hi,</div><div>Following is my java code in which x,y, z are &quot;<b><i>int&quot;</i></b> variables. When i convert it to Jimple via terminal using &quot;-f J&quot;, the resulted Jimple code has corresponding variables but of type &quot;<b>byte</b>&quot; . For y in the statement <b style="font-style:italic">y = x+2, </b>a new variable is created and is of type <b>int</b>. So how can i know where all y has been updated? </div><div>Java Code</div><div>==========</div><div>public class SimpleArithmeticTest {<br></div><div><div>      public static int main(){ </div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>int y = 2;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>int x = 5;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>y = x + 2;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>return y;</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>}</div></div><div>}</div><div>Jimple Code</div><div>===========</div><div><div>public class SimpleArithmeticTest extends java.lang.Object</div><div>{</div><div><br></div><div>    public void &lt;init&gt;()</div><div>    {</div><div>        SimpleArithmeticTest r0;</div><div><br></div><div>        r0 := @this: SimpleArithmeticTest;</div><div>        specialinvoke r0.&lt;java.lang.Object: void &lt;init&gt;()&gt;();</div><div>        return;</div><div>    }</div><div><br></div><div>    public static int main()</div><div>    {</div><div>        byte b0, b1;</div><div>        int i2;</div><div><br></div><div>        b0 = 2;</div><div>        b1 = 5;</div><div>        i2 = b1 + 2;</div><div>        return i2;</div><div>    }</div><div>}</div></div> <br><div class="gmail_signature"><font face="&#39;comic sans ms&#39;, sans-serif"><font color="#3333ff">----------------</font></font></div><div class="gmail_signature"><font face="&#39;comic sans ms&#39;, sans-serif"><b><font color="#3333ff">thanks,</font><br><div style="text-align:left"><b style="color:rgb(51,51,51)">Priyanka </b></div></b><br></font></div>
</div>