[Soot-list] Intra-procedural Constant Propagation Analysis

Eric Bodden eric.bodden at uni-paderborn.de
Tue Oct 30 14:35:42 EDT 2018


Hi Nitin.

Did you look at the CallGraph class?
https://www.sable.mcgill.ca/soot/doc/soot/jimple/toolkits/callgraph/CallGraph.html

You would want to compute edgesOutOf using the main SootMethod and then transitively proceed from there.

If you don’t mind me asking: what is such sorting useful for? It seems like a very unusual use case.

Cheers
Eric

> On 24. Oct 2018, at 16:01, Nitin Bhagwat <n.bhagwat123 at gmail.com> wrote:
> 
> Hello
> I want to do topological sort on my call graph and the source of the graph should be main and want to iterate over only those functions/methods which are called from the main. What would be my target as I want to iterate over all functions/methods which are called from main. Could you please tell me how to iterate my call graphs with the given constraints so that I can do topological sort on the targetted functions/methods.
> 
> -- 
> Thanks and Regards
> 
> Nitin Bhagwat
> 
> 
> 
> 
> 
> Every 3000 sheets of paper cost us a tree. Let's consider our environmental responsibility before printing this e-mail - Save paper.
> 
> 
> _______________________________________________
> 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