[Soot-list] Stmt

Patrick Lam plam at cs.mcgill.ca
Mon Sep 19 22:49:54 EDT 2011


On 09/19/11 22:44, 左小强   wrote:
> Hi,
> 
> I'm learning soot for some research purposes. Very thanks for your 
> answering.
> 
> Now there is a question. Given a Jimple statement, how can I determine 
> whether there's a GoStmt jumping to this statement? Is it possible that 
> I just look at the statement itself to determine? Or do I have to scan 
> each GoStmt first and then obtain the information?

Create a BriefUnitGraph or some other type of UnitGraph and then check
getPreds. This is the basic notion of a control-flow graph.

pat



More information about the Soot-list mailing list