Class InterproceduralConstantValuePropagator
java.lang.Object
soot.Transformer
soot.SceneTransformer
soot.jimple.infoflow.codeOptimization.InterproceduralConstantValuePropagator
public class InterproceduralConstantValuePropagator
extends soot.SceneTransformer
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of theInterproceduralConstantValuePropagatorclassInterproceduralConstantValuePropagator(InfoflowManager manager, Collection<soot.SootMethod> excludedMethods, ISourceSinkManager sourceSinkManager, ITaintPropagationWrapper taintWrapper) Creates a new instance of theInterproceduralConstantValuePropagatorclass -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinternalTransform(String phaseName, Map<String, String> options) voidsetExcludeSystemClasses(boolean excludeSystemClasses) Sets whether methods in system classes shall be excluded from constraint propagationvoidsetRemoveSideEffectFreeMethods(boolean removeSideEffectFreeMethods) Sets whether side-effect free methods that do not call sinks shall be removedMethods inherited from class soot.SceneTransformer
transform, transform, transform
-
Field Details
-
methodSideEffects
-
methodSinks
-
exceptionClass
protected soot.SootClass exceptionClass -
exceptionThrowers
-
-
Constructor Details
-
InterproceduralConstantValuePropagator
Creates a new instance of theInterproceduralConstantValuePropagatorclass- Parameters:
manager- The data flow manager for interacting with the solver
-
InterproceduralConstantValuePropagator
public InterproceduralConstantValuePropagator(InfoflowManager manager, Collection<soot.SootMethod> excludedMethods, ISourceSinkManager sourceSinkManager, ITaintPropagationWrapper taintWrapper) Creates a new instance of theInterproceduralConstantValuePropagatorclass- Parameters:
manager- The data flow manager for interacting with the solverexcludedMethods- The methods that shall be excluded. If one of these methods calls another method with a constant argument, this argument will not be propagated into the callee.sourceSinkManager- The SourceSinkManager to be used for not propagating constants out of source methodstaintWrapper- The taint wrapper to be used for not breaking dummy values that will later be replaced by artificial taints
-
-
Method Details
-
setRemoveSideEffectFreeMethods
public void setRemoveSideEffectFreeMethods(boolean removeSideEffectFreeMethods) Sets whether side-effect free methods that do not call sinks shall be removed- Parameters:
removeSideEffectFreeMethods- The if side-effect free methods that do not call sinks shall be removed, otherwise false
-
setExcludeSystemClasses
public void setExcludeSystemClasses(boolean excludeSystemClasses) Sets whether methods in system classes shall be excluded from constraint propagation- Parameters:
excludeSystemClasses- True if methods in system classes shall be excluded from constraint propagation, otherwise false
-
internalTransform
- Specified by:
internalTransformin classsoot.SceneTransformer
-