Class AbstractDemandPointsTo
java.lang.Object
com.ibm.wala.demandpa.alg.AbstractDemandPointsTo
- All Implemented Interfaces:
IDemandPointerAnalysis
- Direct Known Subclasses:
DemandRefinementPointsTo
,SimpleDemandPointsTo
Abstract super class for demand points-to analysis. Implements basic methods for tracking how
much traversal has been done.
- Author:
- Manu Sridharan
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CallGraph
protected final IClassHierarchy
protected final HeapModel
protected final MemoryAccessMap
protected int
protected final AnalysisOptions
-
Constructor Summary
ConstructorDescriptionAbstractDemandPointsTo
(CallGraph cg, HeapModel model, MemoryAccessMap mam, IClassHierarchy cha, AnalysisOptions options) -
Method Summary
Modifier and TypeMethodDescriptionint
int
protected void
protected void
setNumNodesTraversed
(int traversed) protected void
setTraversalBudget
(int traversalBudget) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.wala.demandpa.alg.IDemandPointerAnalysis
getPointsTo
-
Field Details
-
cg
-
heapModel
-
mam
-
cha
-
options
-
numNodesTraversed
protected int numNodesTraversed
-
-
Constructor Details
-
AbstractDemandPointsTo
public AbstractDemandPointsTo(CallGraph cg, HeapModel model, MemoryAccessMap mam, IClassHierarchy cha, AnalysisOptions options)
-
-
Method Details
-
getTraversalBudget
public int getTraversalBudget() -
setTraversalBudget
protected void setTraversalBudget(int traversalBudget) -
getHeapModel
- Specified by:
getHeapModel
in interfaceIDemandPointerAnalysis
-
incrementNumNodesTraversed
protected void incrementNumNodesTraversed() -
setNumNodesTraversed
protected void setNumNodesTraversed(int traversed) -
getNumNodesTraversed
public int getNumNodesTraversed() -
getBaseCallGraph
- Specified by:
getBaseCallGraph
in interfaceIDemandPointerAnalysis
-
getClassHierarchy
- Specified by:
getClassHierarchy
in interfaceIDemandPointerAnalysis
-