[Soot-list] Trying to get all reachable methods
Manjiri Namjoshi
manjiri.namjoshi at googlemail.com
Fri Aug 15 13:50:59 EDT 2008
Yes, it worked, thank you !
2008/8/15 Eric Bodden <eric.bodden at mail.mcgill.ca>
> Hi Manjiri.
>
> You have to call update() on ReachableMethods:
>
> /** Causes the QueueReader objects to be filled up with any methods
> * that have become reachable since the last call. */
> public void update() {
> ...
>
>
> Eric
>
> 2008/8/14 Manjiri Namjoshi <manjiri.namjoshi at googlemail.com>:
> > Hello,
> >
> > I am new to call graph and soot.
> > I am interested to get all Reachable Methods from methodA:
> >
> > void methodA() {
> > methodB();
> > }
> >
> > void methodB() {
> > methodC();
> > }
> >
> > void methodC() {
> > }
> >
> > Iterator edgesListIt = cg.edgesOutOf(sootMethod);
> > Targets targets = new Targets(edgesListIt);
> >
> > ReachableMethods reachableMethods = new ReachableMethods(cg,
> > targets);
> > QueueReader queueReader = reachableMethods.listener();
> >
> > sootMethod is methodA and cg is the call graph.
> >
> > The queueReader is only containing methodB. But, i am interested to get
> > methodC as well.
> >
> > Thank You.
> >
> > Sincerely,
> > Manjiri
> >
> >
> >
> > _______________________________________________
> > Soot-list mailing list
> > Soot-list at sable.mcgill.ca
> > http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
> >
> >
>
>
>
> --
> Eric Bodden
> Sable Research Group
> McGill University, Montréal, Canada
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20080815/cab08247/attachment.htm
More information about the Soot-list
mailing list