public class CFG
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.HashMap<SootMethod,int[]> |
methodsToVEM |
Constructor and Description |
---|
CFG(method_info m)
Constructs a new control flow graph for the given method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
jimplify(soot.coffi.cp_info[] constant_pool,
int this_class,
soot.coffi.BootstrapMethods_attribute bootstrap_methods_attribute,
JimpleBody listBody)
Main.v() entry point for converting list of Instructions to Jimple statements;
performs flow analysis, constructs Jimple statements, and fixes jumps.
|
soot.coffi.Instruction |
reconstructInstructions()
Reconstructs the instruction stream by appending the Instruction
lists associated with each basic block.
|
public static java.util.HashMap<SootMethod,int[]> methodsToVEM
public CFG(method_info m)
m
- the method in question.method_info
public soot.coffi.Instruction reconstructInstructions()
Note that this joins up the basic block Instruction lists, and so they will no longer end with null after this.
public boolean jimplify(soot.coffi.cp_info[] constant_pool, int this_class, soot.coffi.BootstrapMethods_attribute bootstrap_methods_attribute, JimpleBody listBody)
constant_pool
- constant pool of ClassFile.this_class
- constant pool index of the CONSTANT_Class_info object for
this' class.bootstrap_methods_attribute
- Stmt