Class ConstantTagFolding

java.lang.Object
soot.jimple.infoflow.collections.codeOptimization.ConstantTagFolding
All Implemented Interfaces:
ICodeOptimizer

public class ConstantTagFolding extends Object implements ICodeOptimizer
Folds in the constant of a ConstantValueTag into the code
Author:
Tim Lange
  • Constructor Details

    • ConstantTagFolding

      public ConstantTagFolding()
  • Method Details

    • getRuntime

      public int getRuntime()
    • getReplacedStatementCount

      public int getReplacedStatementCount()
    • initialize

      public void initialize(InfoflowConfiguration config)
      Description copied from interface: ICodeOptimizer
      Initializes the code optimizer. This method is called before any actual optimizations are carried out.
      Specified by:
      initialize in interface ICodeOptimizer
      Parameters:
      config - The data flow analyzer's configuration
    • run

      public void run(InfoflowManager manager, Collection<soot.SootMethod> entryPoints, ISourceSinkManager sourcesSinks, ITaintPropagationWrapper taintWrapper)
      Description copied from interface: ICodeOptimizer
      Runs the coe optimization
      Specified by:
      run in interface ICodeOptimizer
      Parameters:
      manager - The data flow manager for interacting with the solver
      entryPoints - The set of entry points for the data flow analysis
      sourcesSinks - The SourceSinkManager
      taintWrapper - The taint wrapper