<div dir="ltr">Hi pat,<div><br></div><div>Thank you, I got it !</div><div><br></div><div>Sincerely</div><div>Sep</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-01 1:24 GMT+08:00 Patrick Lam <span dir="ltr"><<a href="mailto:plam@sable.mcgill.ca" target="_blank">plam@sable.mcgill.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">A Box is like a pointer. If you want to pass a Use u to some other function, well, in Java you can't say &u (and you probably don't want to), but you can say getUseBoxes().<br>
<br>
pat<div><div class="h5"><br>
<br>
On 2018-01-31 11:50 AM, 周书林 wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
I am newbie in Soot. I am quite confused with UseBox and DefBox. In Soot Survivors Guide, it says "Through a Unit we can retrieve values used (getUseBoxes()), values defined (getDefBoxes()) or even both (getUseAndDefBoxes()). ".<br>
<br>
And in "Analyzing Java Programs with Soot", it present an example for getUseBoxes() and getDefBoxes() as follows:<br>
<br>
For an unit : x =y op z;<br>
getUseBoxes() returns {y, z, y op z}<br>
getDefBoxes() returns {x}<br>
<br>
But I could also get this information by getting the LeftOp and RightOp of this AssignStmt.<br>
<br>
So, what is the meaning of UseBox and DefBox?<br>
<br>
Hope for your help.<br>
<br>
Sincerely,<br>
Sep<br>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
Soot-list mailing list<br>
<a href="mailto:Soot-list@CS.McGill.CA" target="_blank">Soot-list@CS.McGill.CA</a><br>
<a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" rel="noreferrer" target="_blank">https://mailman.CS.McGill.CA/m<wbr>ailman/listinfo/soot-list</a><br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
Soot-list mailing list<br>
<a href="mailto:Soot-list@CS.McGill.CA" target="_blank">Soot-list@CS.McGill.CA</a><br>
<a href="https://mailman.CS.McGill.CA/mailman/listinfo/soot-list" rel="noreferrer" target="_blank">https://mailman.CS.McGill.CA/m<wbr>ailman/listinfo/soot-list</a><br>
</blockquote></div><br></div>