[Soot-list] Limiting the scope of Soot?

Kishen Das kishen.das at gmail.com
Mon Aug 9 14:40:25 EDT 2010


I don't think there is any straightforward way of doing this.

Richard suggested me a way of getting reachable methods --

*
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
.");
}*
*
*
*So, from this we can create our own trimmed version from the original
complete call graph.*
*I am also looking for some simple way of doing this.*
*
*
*Kishen
*
On Mon, Aug 9, 2010 at 1:19 PM, Hal Hildebrand <hal.hildebrand at gmail.com>wrote:

> Things seem to be going quite well, thanks to the help I've gotten from
> this list.  In theory, I seem to have found the magic incantations to
> provide the entry points I need to make the call graph calculation work like
> I think it should.  However, now I'm running into a perhaps familiar
> problem, which is that I would like Soot to only operate on the classes I'm
> directing it too, not the entire set of JRE classes + this small set. I'm
> finding that I must set the whole program mode in order to work with the
> call graph, but I'm curious as why the entire JRE is being pulled in through
> the transformations.  I'm sure I must be doing something rather wrong.
>
> Sorry for such a naive question, but I was hoping there's some way to
> exclude what amounts to class path context for the analyzed library in
> question from the actual transformations n' such.  I certainly understand
> why Soot needs the rest of the system for context, but I'm wondering what I
> have to do to exclude it from transformations I don't want to happen any
> way...
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.cs.mcgill.ca/pipermail/soot-list/attachments/20100809/20f4f431/attachment.html 


More information about the Soot-list mailing list