[Soot-list] branch target in jimple
Eric Bodden
eric.bodden at mail.mcgill.ca
Mon Apr 10 19:20:26 EDT 2006
Hello.
Those labels are encoded in the unit graph AFAIK. So just get a
unitgraph for the method you care about and then iterate over all nodes.
Then you can use getSuccsOf for goto statements to see what they jump
to.
Eric
> -----Original Message-----
> From: soot-list-bounces at sable.mcgill.ca
> [mailto:soot-list-bounces at sable.mcgill.ca] On Behalf Of Arnab De
> Sent: Monday, April 10, 2006 2:33 PM
> To: soot-list at sable.mcgill.ca
> Subject: [Soot-list] branch target in jimple
>
> hi,
> is it possible (using some soot api) to tell whether a
> particular statement is a target of a branch? in the text of
> jimple, i can see labels in the targets, but i cannot find
> out how to get those labels using a soot api.
> thanks and regards,
> arnab.
>
> --
> Arnab De
> ME (CSE)
> Computer Science & Automation Dept.
> IISc, Bangalore.
> --------------------------------------------------------------
> ----------
> Gravitaton can't be held responsible for people falling in love.
> --Einstein
> --------------------------------------------------------------
> ----------
>
More information about the Soot-list
mailing list