[Soot-list] What is the purpose of UseBox and DefBox?

周书林 zhoushulin1992 at gmail.com
Wed Jan 31 11:50:18 EST 2018


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()).  ".

And in "Analyzing Java Programs with Soot", it present an example
for getUseBoxes() and getDefBoxes() as follows:

For an unit : x =y op z;
getUseBoxes() returns {y, z, y op z}
getDefBoxes() returns {x}

But I could also get this information by getting the LeftOp and RightOp of
this AssignStmt.

So, what is the meaning of  UseBox and DefBox?

Hope for your help.

Sincerely,
Sep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20180201/8651a5c0/attachment.html>


More information about the Soot-list mailing list