public class JvmTaintCpa extends SimpleCpa
JvmTaintCpa
computes abstract states containing JvmTaintSource
s which can
reach the given code location.Constructor and Description |
---|
JvmTaintCpa(java.util.Map<Signature,java.util.Set<JvmTaintSource>> signaturesToSources,
java.util.Map<MethodSignature,JvmTaintTransformer> taintTransformers)
Create a taint CPA.
|
JvmTaintCpa(java.util.Set<? extends JvmTaintSource> sources)
Create a taint CPA.
|
JvmTaintCpa(java.util.Set<? extends JvmTaintSource> sources,
java.util.Map<MethodSignature,JvmTaintTransformer> taintTransformers)
Create a taint CPA.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Map<Signature,java.util.Set<JvmTaintSource>> |
createSourcesMap(java.util.Set<? extends JvmTaintSource> sources)
Since the used data structure is a map that uses the fqn as key, which is a parameter of the
TaintSource s, this method constructs the map correctly starting from a set of sources. |
getAbstractDomain, getMergeOperator, getPrecisionAdjustment, getStopOperator, getTransferRelation
public JvmTaintCpa(java.util.Set<? extends JvmTaintSource> sources)
sources
- a set of taint sourcespublic JvmTaintCpa(java.util.Set<? extends JvmTaintSource> sources, java.util.Map<MethodSignature,JvmTaintTransformer> taintTransformers)
sources
- a set of taint sourcestaintTransformers
- a mapping from method signature to a transformer object applied to the
taint state when that method is invokedpublic JvmTaintCpa(java.util.Map<Signature,java.util.Set<JvmTaintSource>> signaturesToSources, java.util.Map<MethodSignature,JvmTaintTransformer> taintTransformers)
signaturesToSources
- a mapping from method signature to taint sourcestaintTransformers
- a mapping from method signature to a transformer object applied to the
taint state when that method is invokedpublic static java.util.Map<Signature,java.util.Set<JvmTaintSource>> createSourcesMap(java.util.Set<? extends JvmTaintSource> sources)
TaintSource
s, this method constructs the map correctly starting from a set of sources.