[Soot-list] First Use Point of an invocation

Amir Mehrabi mehrabi at comp.iust.ac.ir
Mon Jun 14 15:24:01 EDT 2010


Hi all
I use CombinedDUAnalysisto finding first use point of an invocation.
for example:

10.    a=object.invokeA(params...);
20.   ...
30.    ...
40.    anotherObject.invokeB(a);                      <= first use point of 
invocation A
50.   ...

to find first use point at line number 40, I use CombinedDUAnalysis like 
this:
// stmt is equivalent of invocation A in  jimple
UnitGraph graph = new ExceptionalUnitGraph(body);
        CombinedDUAnalysis anlysis = (CombinedDUAnalysis) 
CombinedDUAnalysis.v(graph);
uses = anlysis.getUsesOf(stmt);
but the problem is if there is more than one invocation that interleaved 
this method does not work!!!
and cannot FIRST use point

Does any one knows why?
Regards
Amir Mehrabi-Jorshary
Iran University of Science and Technology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100614/cb6f7403/attachment.html 


More information about the Soot-list mailing list