Class ConstantTagFolding
java.lang.Object
soot.jimple.infoflow.collections.codeOptimization.ConstantTagFolding
- All Implemented Interfaces:
ICodeOptimizer
Folds in the constant of a
ConstantValueTag into the code- Author:
- Tim Lange
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidinitialize(InfoflowConfiguration config) Initializes the code optimizer.voidrun(InfoflowManager manager, Collection<soot.SootMethod> entryPoints, ISourceSinkManager sourcesSinks, ITaintPropagationWrapper taintWrapper) Runs the coe optimization
-
Constructor Details
-
ConstantTagFolding
public ConstantTagFolding()
-
-
Method Details
-
getRuntime
public int getRuntime() -
getReplacedStatementCount
public int getReplacedStatementCount() -
initialize
Description copied from interface:ICodeOptimizerInitializes the code optimizer. This method is called before any actual optimizations are carried out.- Specified by:
initializein interfaceICodeOptimizer- 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:ICodeOptimizerRuns the coe optimization- Specified by:
runin interfaceICodeOptimizer- Parameters:
manager- The data flow manager for interacting with the solverentryPoints- The set of entry points for the data flow analysissourcesSinks- The SourceSinkManagertaintWrapper- The taint wrapper
-