Package pascal.taie.analysis.pta.plugin
Class ConstraintChecker
java.lang.Object
pascal.taie.analysis.pta.plugin.ConstraintChecker
- All Implemented Interfaces:
Plugin
This class is for debugging/testing purpose.
Solver
needs to satisfy
some important constraints:
onNewMethod(m)
must happen beforeonNewCSMethod(csM)
for any context-sensitive methodcsM
for m.onNewMethod(m)
must happen beforeonNewPointsToSet(csV, pts)
for any context-sensitive variablecsV
inm
, andonNewCSMethod(csM)
must happen beforeonNewPointsToSet(csV, pts)
for any context-sensitive variablecsV
incsM
.
This class checks the constraints and issues warnings when they are unsatisfied.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onNewCSMethod
(CSMethod csMethod) Invoked when a new reachable context-sensitive method is discovered.void
onNewMethod
(JMethod method) Invoked when a new reachable method is discovered.void
onNewPointsToSet
(CSVar csVar, PointsToSet pts) Invoked when set of new objects flow to a context-sensitive variable.void
Sets pointer analysis solver which will be used later by the plugin.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pascal.taie.analysis.pta.plugin.Plugin
onFinish, onNewCallEdge, onNewStmt, onStart, onUnresolvedCall
-
Constructor Details
-
ConstraintChecker
public ConstraintChecker()
-
-
Method Details
-
setSolver
Description copied from interface:Plugin
Sets pointer analysis solver which will be used later by the plugin. -
onNewMethod
Description copied from interface:Plugin
Invoked when a new reachable method is discovered.- Specified by:
onNewMethod
in interfacePlugin
- Parameters:
method
- new reachable method
-
onNewCSMethod
Description copied from interface:Plugin
Invoked when a new reachable context-sensitive method is discovered.- Specified by:
onNewCSMethod
in interfacePlugin
- Parameters:
csMethod
- new reachable context-sensitive method
-
onNewPointsToSet
Description copied from interface:Plugin
Invoked when set of new objects flow to a context-sensitive variable.- Specified by:
onNewPointsToSet
in interfacePlugin
- Parameters:
csVar
- variable whose points-to set changespts
- set of new objects
-