[Soot-list] SOOT goto label

Bernhard Berger berber at tzi.de
Mon Mar 30 09:40:47 EDT 2015


Hi Christian,

a Jimple-goto has only a single successor. I would suggest using a control flow graph (UnitGraph in soot). You can use a ExceptionUnitGraph for example if you want to take exceptional control flow into account.

Regards,
Bernhard

> Am 30.03.2015 um 15:35 schrieb <christian.grosse at comhem.se> <christian.grosse at comhem.se>:
> 
> Hi everyone,
>  
> Is there a way to get all targets (or labels) for goto stmts (JGotoStmt) in a SootMethod object? For example, if I am parsing a SootMethod object and I run into a JGotoStmt that has a target in a previous stmt, can I get this information before I start to parse all stmts in the SootMethod object? Or do I have to do a first sweep, to collect all targets and their asociated stmt’s and then start to parse the SootMethod object? A two pass solution I guess...
>  
> Best regards,
> Christian G.
>  
>  
> _______________________________________________
> 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/20150330/49e09655/attachment.html 


More information about the Soot-list mailing list