public final class AnalysisUtil
extends java.lang.Object
This class has been developed as part of a student project "Studienarbeit" by Markus Herhoffer. It has been adapted and integrated into the WALA project by Juergen Graf.
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<IExplodedBasicBlock> |
extractInvokeBlocks(ControlFlowGraph<SSAInstruction,IExplodedBasicBlock> cfg)
Returns a Set of all blocks that invoke another method.
|
static int[] |
getParameterNumbers(SSAAbstractInvokeInstruction invokeInstruction)
Returns an array of
int with the parameter's var nums of the invoked method in invokeInstruction. |
static boolean |
isFakeRoot(CallGraph CG,
CGNode node)
Checks if a node is FakeRoot
|
public static boolean isFakeRoot(CallGraph CG, CGNode node)
node - the node to checkpublic static int[] getParameterNumbers(SSAAbstractInvokeInstruction invokeInstruction)
int with the parameter's var nums of the invoked method in invokeInstruction.invokeInstruction - The instruction that invokes the method.int with all parameter's var nums including the this pointer.public static java.util.Set<IExplodedBasicBlock> extractInvokeBlocks(ControlFlowGraph<SSAInstruction,IExplodedBasicBlock> cfg)
cfg - The Control Flow Graph to analyze