Package soot.jimple.infoflow.aliasing
Class LazyAliasingStrategy
java.lang.Object
soot.jimple.infoflow.aliasing.AbstractAliasStrategy
soot.jimple.infoflow.aliasing.AbstractInteractiveAliasStrategy
soot.jimple.infoflow.aliasing.LazyAliasingStrategy
- All Implemented Interfaces:
IAliasingStrategy
Aliasing strategy that relies on taints being propagated everywhere for true
lazy alias checking
- Author:
- Steven Arzt
-
Field Summary
Fields inherited from class soot.jimple.infoflow.aliasing.AbstractAliasStrategy
manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Performs a clean up, i.e., removes all generated data from memoryIf this aliasing strategy uses an additional IFDS solver, it is returned by this method.booleanhasProcessedMethod(soot.SootMethod method) Checks whether this aliasing strategy has already computed aliases in the given method or not.voidinjectCallingContext(Abstraction abs, IInfoflowSolver fSolver, soot.SootMethod callee, soot.Unit callSite, Abstraction source, Abstraction d1) Notifies the aliasing strategy that a method has been called in the taint analysis.booleanGets whether this aliasing strategy is flow sensitivebooleanGets whether this aliasing strategy is interactive, i.e. computes aliases on demand.booleanGets whether this analysis is lazy, i.e., needs all taints to be propagated into all methods, even if the respective access path is not even visible inside the callee (but an alias may be visible).booleanmayAlias(AccessPath ap1, AccessPath ap2) Gets whether the two given access path may aliasbooleanGets whether this algorithm requires the analysis to be triggered again when returning from a callee.Methods inherited from class soot.jimple.infoflow.aliasing.AbstractInteractiveAliasStrategy
computeAliasTaints
-
Constructor Details
-
LazyAliasingStrategy
-
-
Method Details
-
isInteractive
public boolean isInteractive()Description copied from interface:IAliasingStrategyGets whether this aliasing strategy is interactive, i.e. computes aliases on demand.- Returns:
- True if this is an on-demand aliasing strategy, otherwise false
-
mayAlias
Description copied from interface:IAliasingStrategyGets whether the two given access path may alias- Parameters:
ap1- The first access pathap2- The second access path- Returns:
- True if the two access paths can potentially point ot the same runtime object, otherwise false
-
injectCallingContext
public void injectCallingContext(Abstraction abs, IInfoflowSolver fSolver, soot.SootMethod callee, soot.Unit callSite, Abstraction source, Abstraction d1) Description copied from interface:IAliasingStrategyNotifies the aliasing strategy that a method has been called in the taint analysis. This may be helpful for interprocedural alias analyses.- Parameters:
abs- The abstraction on the callee's start unitfSolver- The forward solver propagating the taintscallee- The calleecallSite- The call sitesource- The abstraction at the call sited1- The abstraction at the caller method's entry point
-
isFlowSensitive
public boolean isFlowSensitive()Description copied from interface:IAliasingStrategyGets whether this aliasing strategy is flow sensitive- Returns:
- True if the aliasing strategy is flow sensitive, otherwise false
-
requiresAnalysisOnReturn
public boolean requiresAnalysisOnReturn()Description copied from interface:IAliasingStrategyGets whether this algorithm requires the analysis to be triggered again when returning from a callee.- Returns:
- True if the alias analysis must be triggered again when returning from a method, otherwise false
-
hasProcessedMethod
public boolean hasProcessedMethod(soot.SootMethod method) Description copied from interface:IAliasingStrategyChecks whether this aliasing strategy has already computed aliases in the given method or not. Strategies that do not want to implement this method should always return true.- Specified by:
hasProcessedMethodin interfaceIAliasingStrategy- Overrides:
hasProcessedMethodin classAbstractAliasStrategy- Parameters:
method- The method to check- Returns:
- True if this aliasing strategy has already computed aliases in the given method, otherwise false.
-
isLazyAnalysis
public boolean isLazyAnalysis()Description copied from interface:IAliasingStrategyGets whether this analysis is lazy, i.e., needs all taints to be propagated into all methods, even if the respective access path is not even visible inside the callee (but an alias may be visible).- Returns:
- True if the alias analysis requires all taints to be propagated into all methods
-
getSolver
Description copied from interface:IAliasingStrategyIf this aliasing strategy uses an additional IFDS solver, it is returned by this method. If this IFDS problem does not have a an additional solver, null is returned.- Returns:
- The additional IFDS solver used by this aliasing strategy if applicable, null otherwise
-
cleanup
public void cleanup()Description copied from interface:IAliasingStrategyPerforms a clean up, i.e., removes all generated data from memory
-