[Soot-list] Visiting all method calls

Earlence Fernandes earlenceferns at gmail.com
Tue Jul 28 18:02:14 EDT 2015


Hi,

Yes, using retrieveActiveBody works better. Any idea on the Reachable
Methods vs. Listing all Invoke expressions? I am guessing that using
reachable methods is more precise since it will not give me any dead code

-earlence

On Tue, Jul 28, 2015 at 11:04 AM, Marc Miltenberger <
Marc.Miltenberger at cased.de> wrote:

> Hi there,
>   as far es I know, both are correct usages.
>
>   getActiveBody might fail if the method has not been loaded yet (with
> retrieveActiveBody) or if the method has not have an implementation at
> all such as interface methods or native methods.
>
> Marc
>
> Am 28.07.2015 um 19:59 schrieb Earlence Fernandes:
> > I am writing a pack that generates a list of all method calls made by a
> > program. Currently, my strategy is to use a SceneTransformer (wjtp) that
> > will simply useScene.v().getReachableMethods() (for a given set of entry
> > points I defined when setting up the pack). Is this the correct use?
> >
> > Another strategy is to write a BodyTransformer that will iterate each
> > Stmt in a body and then determine if it's a method call.
> >
> > Which strategy is the correct one?
> >
> > Also, I tried iterating Stmts from a SceneTransformer using
> > getActiveBody but sometimes that throws a runtime exception saying that
> > there is no active body.
> >
> > -Earlence
> >
> >
> > _______________________________________________
> > Soot-list mailing list
> > Soot-list at CS.McGill.CA
> > https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>
> _______________________________________________
> Soot-list mailing list
> Soot-list at CS.McGill.CA
> https://mailman.CS.McGill.CA/mailman/listinfo/soot-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20150728/eb9e277b/attachment.html 


More information about the Soot-list mailing list