Class InfoflowConfiguration.SolverConfiguration

java.lang.Object
soot.jimple.infoflow.InfoflowConfiguration.SolverConfiguration
Enclosing class:
InfoflowConfiguration

public static class InfoflowConfiguration.SolverConfiguration extends Object
Class containing the configuration options for the IFDS data flow solver
Author:
Steven Arzt
  • Constructor Details

    • SolverConfiguration

      public SolverConfiguration()
  • Method Details

    • merge

      public void merge(InfoflowConfiguration.SolverConfiguration solverConfig)
      Copies the settings of the given configuration into this configuration object
      Parameters:
      solverConfig - The other configuration object
    • getDataFlowSolver

      public InfoflowConfiguration.DataFlowSolver 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

      public void setDataFlowSolver(InfoflowConfiguration.DataFlowSolver solver)
      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

      public InfoflowConfiguration.SparsePropagationStrategy 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • 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