[Soot-list] How to get inter-procedural control flow by using soot?

Marc-Andre Laverdiere-Papineau marc-andre.laverdiere-papineau at polymtl.ca
Fri Oct 19 12:36:57 EDT 2012


Hello,

Ideally, you should get a call graph (e.g. Spark) and use the call graph 
APIs to know the destination edges at a given point in your program.

On 2012-10-19 03:44, tina wrote:
> Hi,
>
>           I want to use soot to get inter-procedural control flow. I saw
> there is a class called InterProceduralAnalyses
> in“soot-2.5.0\soot\dava\toolkits\base\AST”, but I don’t know how to use
> this class.
>
> Therefore, I want to get inter-procedural control flow in another way. I
> tried to get main method control flow , if unit in this control flow
> contains “virtualinvoke” and invoke target project method not library
> functions, then get the method control flow, finally I can get an
> inter-procedural control flow.
>
>           Later, I found some problems. First, how to get the target
> project method list, as I know, Scene also contains library functions,
> how to distinguish them. Second, if I know which unit is the entry of
> submethod, how to use this unit to get the submethod’s UnitGraph.
>
> regards
>
> Tina
>
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>


-- 
Marc-André Laverdière-Papineau
Étudiant au doctorat - PhD Student




More information about the Soot-list mailing list