Class ContextInsensitiveSSAInterpreter
java.lang.Object
com.ibm.wala.ipa.callgraph.cha.ContextInsensitiveCHAContextInterpreter
com.ibm.wala.ipa.callgraph.propagation.rta.ContextInsensitiveRTAInterpreter
com.ibm.wala.ipa.callgraph.propagation.cfa.ContextInsensitiveSSAInterpreter
- All Implemented Interfaces:
CHAContextInterpreter
,RTAContextInterpreter
,SSAContextInterpreter
- Direct Known Subclasses:
AstContextInsensitiveSSAContextInterpreter
public class ContextInsensitiveSSAInterpreter
extends ContextInsensitiveRTAInterpreter
implements SSAContextInterpreter
Default implementation of SSAContextInterpreter for context-insensitive analysis.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionContextInsensitiveSSAInterpreter
(AnalysisOptions options, IAnalysisCacheView cache) -
Method Summary
Modifier and TypeMethodDescriptionint
getNumberOfStatements
(CGNode node) boolean
recordFactoryType
(CGNode node, IClass klass) record that the "factory" method of a node should be interpreted to allocate a particular class.Methods inherited from class com.ibm.wala.ipa.callgraph.propagation.rta.ContextInsensitiveRTAInterpreter
getAnalysisCache, iterateFieldsRead, iterateFieldsWritten, iterateNewSites
Methods inherited from class com.ibm.wala.ipa.callgraph.cha.ContextInsensitiveCHAContextInterpreter
iterateCallSites, understands
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.ipa.callgraph.cha.CHAContextInterpreter
iterateCallSites, understands
Methods inherited from interface com.ibm.wala.ipa.callgraph.propagation.rta.RTAContextInterpreter
iterateFieldsRead, iterateFieldsWritten, iterateNewSites
-
Field Details
-
options
-
-
Constructor Details
-
ContextInsensitiveSSAInterpreter
-
-
Method Details
-
getIR
- Specified by:
getIR
in interfaceSSAContextInterpreter
- Returns:
- the IR that models the method context, or null if it's an unmodelled native method
-
getIRView
- Specified by:
getIRView
in interfaceSSAContextInterpreter
-
getNumberOfStatements
- Specified by:
getNumberOfStatements
in interfaceSSAContextInterpreter
- Returns:
- the number of the statements in the IR, or -1 if it's an unmodelled native method.
-
recordFactoryType
Description copied from interface:RTAContextInterpreter
record that the "factory" method of a node should be interpreted to allocate a particular class.TODO: this is a little ugly, is there a better place to move this?
- Specified by:
recordFactoryType
in interfaceRTAContextInterpreter
- Overrides:
recordFactoryType
in classContextInsensitiveRTAInterpreter
- Returns:
- true iff a NEW type was recorded, false if the type was previously recorded.
-
getCFG
- Specified by:
getCFG
in interfaceSSAContextInterpreter
-
getDU
- Specified by:
getDU
in interfaceSSAContextInterpreter
- Returns:
- DefUse for the IR that models the method context, or null if it's an unmodelled native method
-