public class FlowGraphBuilder extends Object
| Constructor and Description |
|---|
FlowGraphBuilder(com.ibm.wala.ipa.cha.IClassHierarchy cha,
com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache,
boolean supportPointerAnalysis) |
| Modifier and Type | Method and Description |
|---|---|
FlowGraph |
buildFlowGraph()
This is the main entry point of the flow graph builder.
|
void |
visitFunction(FlowGraph flowgraph,
com.ibm.wala.classLoader.IMethod method) |
void |
visitProgram(FlowGraph flowgraph) |
public FlowGraphBuilder(com.ibm.wala.ipa.cha.IClassHierarchy cha,
com.ibm.wala.ipa.callgraph.IAnalysisCacheView cache,
boolean supportPointerAnalysis)
public FlowGraph buildFlowGraph()
It creates a new, empty flow graph, adds nodes for a small number of special primitive
functions such as Object and Function and sets up flow
edges to make them flow into the corresponding global variables. Then it iterates over
all functions in the class hierarchy and all their IR instructions, and adds the
flow edges induced by these instructions.
public void visitProgram(FlowGraph flowgraph)
public void visitFunction(FlowGraph flowgraph, com.ibm.wala.classLoader.IMethod method)
Copyright © 2017. All rights reserved.