Package proguard.dexfile.ir.ts
Class Cfg
- java.lang.Object
-
- proguard.dexfile.ir.ts.Cfg
-
public class Cfg extends java.lang.Object
TODO DOC
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Cfg.DfsVisitor
static interface
Cfg.FrameVisitor<T>
static interface
Cfg.OnAssignCallBack
static interface
Cfg.OnUseCallBack
static interface
Cfg.TravelCallBack
-
Constructor Summary
Constructors Constructor Description Cfg()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
collectTos(Stmt stmt, java.util.Set<Stmt> tos)
static int[]
countLocalReads(IrMethod method)
static void
createCFG(IrMethod jm)
static void
createCfgWithoutEx(IrMethod jm)
static <T> void
dfs(StmtList stmts, Cfg.FrameVisitor<T> sv)
static void
dfsVisit(IrMethod method, Cfg.DfsVisitor visitor)
static boolean
isThrow(Stmt s)
static boolean
notThrow(Stmt s)
static int
reIndexLocal(IrMethod method)
static void
reIndexLocalAndLabel(IrMethod irMethod)
static void
travel(Value value, Cfg.OnUseCallBack callback)
static void
travel(StmtList stmts, Cfg.TravelCallBack callback, boolean travelPhi)
static void
travel(Stmt p, Cfg.TravelCallBack callback, boolean travelPhi)
static Value
travelMod(Value value, Cfg.OnUseCallBack callback)
static void
travelMod(StmtList stmts, Cfg.TravelCallBack callback, boolean travelPhi)
static void
travelMod(Stmt p, Cfg.TravelCallBack callback, boolean travelPhi)
-
-
-
Method Detail
-
countLocalReads
public static int[] countLocalReads(IrMethod method)
-
reIndexLocalAndLabel
public static void reIndexLocalAndLabel(IrMethod irMethod)
-
notThrow
public static boolean notThrow(Stmt s)
-
isThrow
public static boolean isThrow(Stmt s)
-
createCfgWithoutEx
public static void createCfgWithoutEx(IrMethod jm)
-
createCFG
public static void createCFG(IrMethod jm)
-
dfsVisit
public static void dfsVisit(IrMethod method, Cfg.DfsVisitor visitor)
-
dfs
public static <T> void dfs(StmtList stmts, Cfg.FrameVisitor<T> sv)
-
travelMod
public static Value travelMod(Value value, Cfg.OnUseCallBack callback)
-
travel
public static void travel(Value value, Cfg.OnUseCallBack callback)
-
travelMod
public static void travelMod(Stmt p, Cfg.TravelCallBack callback, boolean travelPhi)
-
travel
public static void travel(Stmt p, Cfg.TravelCallBack callback, boolean travelPhi)
-
travel
public static void travel(StmtList stmts, Cfg.TravelCallBack callback, boolean travelPhi)
-
travelMod
public static void travelMod(StmtList stmts, Cfg.TravelCallBack callback, boolean travelPhi)
-
reIndexLocal
public static int reIndexLocal(IrMethod method)
- Parameters:
method
-- Returns:
- size of locals
-
-