Interface ICodeOptimizer
- All Known Implementing Classes:
AddNopStmt,ConstantTagFolding,DeadCodeEliminator
public interface ICodeOptimizer
Interface for all code optimization implementations
- Author:
- Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(InfoflowConfiguration config) Initializes the code optimizer.voidrun(InfoflowManager manager, Collection<soot.SootMethod> entryPoints, ISourceSinkManager sourcesSinks, ITaintPropagationWrapper taintWrapper) Runs the coe optimization
-
Method Details
-
initialize
Initializes the code optimizer. This method is called before any actual optimizations are carried out.- Parameters:
config- The data flow analyzer's configuration
-
run
void run(InfoflowManager manager, Collection<soot.SootMethod> entryPoints, ISourceSinkManager sourcesSinks, ITaintPropagationWrapper taintWrapper) Runs the coe optimization- 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
-