[Soot-list] Problem with finding loops

Hodjat Asghari-Esfeden hasgh001 at ucr.edu
Sat Nov 12 01:26:40 EST 2016


Hi all,

I'm new to Soot. I wanted to find all block ids existed within a loop, I'm
using LoopFinder class. After detecting the loops, none of the methods work
nicely, for example, toString() method gives me something like:
soot.jimple.toolkits.annotation.logic.Loop at b4e4c940

And here is that piece of code:
LoopFinder myLoopFinder = new LoopFinder();
     myLoopFinder.transform(myList.get(j).retrieveActiveBody());

     Collection<Loop> myLoops = myLoopFinder.loops();
     for (Loop loop : myLoops) {
            System.out.println("Found a loop: " + loop.toString());
        }

Any help is appreciated.

Sincerely,
Hodjat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20161111/34af0101/attachment.html 


More information about the Soot-list mailing list