Class InterproceduralConstantValuePropagator

java.lang.Object
soot.Transformer
soot.SceneTransformer
soot.jimple.infoflow.codeOptimization.InterproceduralConstantValuePropagator

public class InterproceduralConstantValuePropagator extends soot.SceneTransformer
  • Field Details

    • methodSideEffects

      protected final Map<soot.SootMethod,Boolean> methodSideEffects
    • methodSinks

      protected final com.google.common.cache.LoadingCache<soot.SootMethod,Boolean> methodSinks
    • exceptionClass

      protected soot.SootClass exceptionClass
    • exceptionThrowers

      protected final Map<soot.SootClass,soot.SootMethod> exceptionThrowers
  • Constructor Details

    • InterproceduralConstantValuePropagator

      public InterproceduralConstantValuePropagator(InfoflowManager manager)
      Creates a new instance of the InterproceduralConstantValuePropagator class
      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 the InterproceduralConstantValuePropagator class
      Parameters:
      manager - The data flow manager for interacting with the solver
      excludedMethods - 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 methods
      taintWrapper - 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

      protected void internalTransform(String phaseName, Map<String,String> options)
      Specified by:
      internalTransform in class soot.SceneTransformer