public class RegionAnalysis
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Hashtable<Block,Region> |
m_block2region |
protected BlockGraph |
m_blockCFG |
protected UnitGraph |
m_cfg |
protected SootClass |
m_class |
protected SootMethod |
m_method |
protected Body |
m_methodBody |
protected java.util.Hashtable<java.lang.Integer,Region> |
m_regions |
protected java.util.List<Region> |
m_regionsList |
protected BlockGraph |
m_reverseBlockCFG |
protected UnitGraph |
m_reverseCFG |
protected Region |
m_topLevelRegion |
Constructor and Description |
---|
RegionAnalysis(UnitGraph cfg,
SootMethod m,
SootClass c) |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
CFGtoString(DirectedGraph<Block> cfg,
boolean blockDetail) |
protected Region |
createRegion(int id)
Create a region
|
java.util.Hashtable<Block,Region> |
getBlock2RegionMap() |
BlockGraph |
getBlockCFG() |
DominatorTree<Block> |
getDominatorTree() |
DominatorTree<Block> |
getPostDominatorTree() |
java.util.List<Region> |
getRegions() |
Region |
getTopLevelRegion() |
java.util.Hashtable<Unit,Region> |
getUnit2RegionMap() |
void |
reset() |
protected SootClass m_class
protected SootMethod m_method
protected Body m_methodBody
protected UnitGraph m_cfg
protected UnitGraph m_reverseCFG
protected BlockGraph m_blockCFG
protected BlockGraph m_reverseBlockCFG
protected java.util.Hashtable<java.lang.Integer,Region> m_regions
protected java.util.List<Region> m_regionsList
protected Region m_topLevelRegion
public RegionAnalysis(UnitGraph cfg, SootMethod m, SootClass c)
public java.util.List<Region> getRegions()
public BlockGraph getBlockCFG()
public DominatorTree<Block> getPostDominatorTree()
public DominatorTree<Block> getDominatorTree()
public void reset()
protected Region createRegion(int id)
public Region getTopLevelRegion()
public static java.lang.String CFGtoString(DirectedGraph<Block> cfg, boolean blockDetail)