[Soot-list] How to get trimmed Callgraph?

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Sat Jul 10 06:40:06 EDT 2010


I think this is till missing an rm.update(), though.
Eric

--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478    Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt



On 8 July 2010 22:45, Richard L. Halpert <richhal22 at gmail.com> wrote:
> >From a SceneTransformer, you could do this:
>
> ReachableMethods rm = Scene.v().getReachableMethods();
> Iterator appClassesIt = Scene.v().getApplicationClasses().iterator();
> for(SootClass appClass : Scene.v().getApplicationClasses()) {
>   for(Method m : appClass.getMethods())
>     System.out.println(m + (rm.contains(m) ? " is" : " isn't") + "
> reachable.");
> }
>
> -Richard
>
> On Tue, Jul 6, 2010 at 2:21 AM, Kishen Das <kishen.das at gmail.com> wrote:
>>
>> Dear All,
>> I am trying to get a trimmed version of the callgraph.
>> Right now its giving huge bunch of reachable nodes.
>> How can I restrict it to what is there in the current class?
>> Suppose, I have this class Helloworld.java and I just want to know the
>> reachable code, like the methods of this class that are called from the main
>> method of this class.
>> Is there any standard way of doing this?
>> Thanks and Regards,
>> Kishen Das
>> _______________________________________________
>> Soot-list mailing list
>> Soot-list at sable.mcgill.ca
>> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>>
>
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
>


More information about the Soot-list mailing list