[Soot-list] Function Graph using Soot

Eric Bodden eric.bodden at uni-paderborn.de
Tue Dec 11 10:39:32 EST 2018


Hi Paulos.

It seems like you are confusing call-graphs with control-flow graphs.

In a call-graph, methods appear as nodes. In a control-flow graph, individual statements appear as nodes.

In Soot you can create a control-flow graph e.g. using “new ExceptionalUnitGraphy(myMethodBody)”.

Cheers
Eric

> On 10. Dec 2018, at 23:44, paulos milaszewicz <paularas at windowslive.com> wrote:
> 
> Hello all,
> 
> Taking a look at the tutorials in Github on how to run Soot on Eclipse to create graphs, it can be easily understood how to make a Control Flow Graph of a class using the existing example code.
> 
> However with this already existing example every function called from the Main is depicted as a node, and any internal functionality is not shown in the graph.
> 
> I took a look at the documentation but could not find a straightforward explanation on how to also visualise what these called functions do internally (in other words create mini graphs for each function that is called). 
> 
> I have a feeling that it must be pretty easy but cannot figure out what code must be added or which options must be used when running Soot.
> 
> 
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list



More information about the Soot-list mailing list