Package soot.jimple.infoflow
Class InfoflowConfiguration.SolverConfiguration
java.lang.Object
soot.jimple.infoflow.InfoflowConfiguration.SolverConfiguration
- Enclosing class:
- InfoflowConfiguration
Class containing the configuration options for the IFDS data flow solver
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the data flow solver to be used for the taint analysisintGets the maximum length over which an abstraction may be propagated before the abstractions is droppedintGets the maximum number of callees permitted per call site.intGets the maximum number of abstractions that shall be recorded per join point.intGets the sleep time of garbage colletorsGets the propagation strategy used in sparsePropagationinthashCode()booleanReturns whether the analysis will follow function returns further up the call stack than where the sources started.voidmerge(InfoflowConfiguration.SolverConfiguration solverConfig) Copies the settings of the given configuration into this configuration objectvoidSets the data flow solver to be used for the taint analysisvoidsetFollowReturnsPastSources(boolean followreturns) If true, the analysis will follow function returns further up the call stack than where the sources started.voidsetMaxAbstractionPathLength(int maxAbstractionPathLength) Sets the maximum length over which an abstraction may be propagated before the abstractions is droppedvoidsetMaxCalleesPerCallSite(int maxCalleesPerCallSite) Sets the maximum number of callees permitted per call site.voidsetMaxJoinPointAbstractions(int maxJoinPointAbstractions) Sets the maximum number of abstractions that shall be recorded per join point.voidsetSingleJoinPointAbstraction(boolean singleJointAbstraction) Sets the maximum number of join point abstractions to a single abstraction.voidsetSleepTime(int sleeptime) Sets the sleep time of garbage colletorsvoidsetSparsePropagationStrategy(InfoflowConfiguration.SparsePropagationStrategy sparsePropagationStrategy) Sets the data flow solver to be used for the taint analysis
-
Constructor Details
-
SolverConfiguration
public SolverConfiguration()
-
-
Method Details
-
merge
Copies the settings of the given configuration into this configuration object- Parameters:
solverConfig- The other configuration object
-
getDataFlowSolver
Gets the data flow solver to be used for the taint analysis- Returns:
- The data flow solver to be used for the taint analysis
-
setDataFlowSolver
Sets the data flow solver to be used for the taint analysis- Parameters:
solver- The data flow solver to be used for the taint analysis
-
getSparsePropagationStrategy
Gets the propagation strategy used in sparsePropagation- Returns:
- The data flow solver to be used for the taint analysis
-
setSparsePropagationStrategy
public void setSparsePropagationStrategy(InfoflowConfiguration.SparsePropagationStrategy sparsePropagationStrategy) Sets the data flow solver to be used for the taint analysis- Parameters:
sparsePropagationStrategy- The propagation strategy used for sparsification
-
getMaxJoinPointAbstractions
public int getMaxJoinPointAbstractions()Gets the maximum number of abstractions that shall be recorded per join point. In other words, enabling this option disables the recording of neighbors beyond the given count. This greatly reduces the memory requirements of the analysis. On the other hand, if data is tainted from two different sources, only some of them will be reported.- Returns:
- The maximum number of abstractions per join point, or -1 to record an arbitrary number of join point abstractions
-
setMaxJoinPointAbstractions
public void setMaxJoinPointAbstractions(int maxJoinPointAbstractions) Sets the maximum number of abstractions that shall be recorded per join point. In other words, enabling this option disables the recording of neighbors beyond the given count. This greatly reduces the memory requirements of the analysis. On the other hand, if data is tainted from two different sources, only some of them will be reported.- Parameters:
maxJoinPointAbstractions- The maximum number of abstractions per join point, or -1 to record an arbitrary number of join point abstractions
-
getMaxCalleesPerCallSite
public int getMaxCalleesPerCallSite()Gets the maximum number of callees permitted per call site. If a call site has more callees than this limit, the call site is ignored completely. Use this limit to reduce the impact of imprecise call graphs.- Returns:
- The maximum number of callees per call site
-
setMaxCalleesPerCallSite
public void setMaxCalleesPerCallSite(int maxCalleesPerCallSite) Sets the maximum number of callees permitted per call site. If a call site has more callees than this limit, the call site is ignored completely. Use this limit to reduce the impact of imprecise call graphs.- Parameters:
maxCalleesPerCallSite- The maximum number of callees per call site
-
setSingleJoinPointAbstraction
public void setSingleJoinPointAbstraction(boolean singleJointAbstraction) Sets the maximum number of join point abstractions to a single abstraction.- Parameters:
singleJointAbstraction- True to configure the solver to register only a single join point abstraction
-
getMaxAbstractionPathLength
public int getMaxAbstractionPathLength()Gets the maximum length over which an abstraction may be propagated before the abstractions is dropped- Returns:
- The maximum length over which an abstraction may be propagated
-
setMaxAbstractionPathLength
public void setMaxAbstractionPathLength(int maxAbstractionPathLength) Sets the maximum length over which an abstraction may be propagated before the abstractions is dropped- Parameters:
maxAbstractionPathLength- The maximum length over which an abstraction may be propagated
-
setSleepTime
public void setSleepTime(int sleeptime) Sets the sleep time of garbage colletors- Parameters:
sleeptime- The interval in second for the path edge collection
-
getSleepTime
public int getSleepTime()Gets the sleep time of garbage colletors- Returns:
- The interval in second for the path edge collection
-
hashCode
public int hashCode() -
equals
-
isFollowReturnsPastSources
public boolean isFollowReturnsPastSources()Returns whether the analysis will follow function returns further up the call stack than where the sources started. -
setFollowReturnsPastSources
public void setFollowReturnsPastSources(boolean followreturns) If true, the analysis will follow function returns further up the call stack than where the sources started.- Parameters:
followreturns- the new value
-