[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New impl. of method call analysis



The new call graph interface and code is mostly documented in two
places:

1) The PLDI03 tutorial that comes with the tutorials in the Soot
distribution, and on-line at http://www.sable.mcgill.ca/soot/tutorial/,
contains a section on the call graph, and is a recommended read in
general for anyone upgrading to Soot 2.x.

2) The code itself has Javadoc comments.

Ondrej

On Sun, Jul 13, 2003 at 01:05:15PM +0100, Eric Bodden wrote:
>    Hi!
>     
>    I am currently planning to implement an Eclipse plugin, extending the
>    given SOOT plugin in such a way that a call graph can be built, which then
>    again can be queried through a popup menu in the editor to finally
>    retrieve a visual representation of the invoke graph (probably you
>    remember our standalone application at http://janalyzer.bodden.de which
>    does exactly the same).
>    Since the SOOT plugin fior Eclipse uses the latest SOOT version, which I
>    think is a good progress, I now have some questions about how the
>    interface changed regarding call graph production. In earlier versions I
>    was basically performing:
>    --
>         InvokeGraph callGraph = ClassHierarchyAnalysis.newInvokeGraph();
>         Scene.v().setActiveInvokeGraph( callGraph );
>    --
>    And to query the graph:
>    --
>         callGraph.getTransitiveTargetsOf( aMethod );
>    --
>    etc.
>    So what would be the respective code snippet for that in Soot 2.0.1? And
>    since VTA is not longer available: Is there an introductory guide anywhere
>    on how to perform something similar using the new SPARK implementation?
>     
>    Thank you very much,
>    Eric Bodden
>     
>    --
>    Eric Bodden
>    IBM Java Performance Laboratory, Hursley, UK