Class BatchPathBuilder

java.lang.Object
soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
soot.jimple.infoflow.data.pathBuilders.BatchPathBuilder
All Implemented Interfaces:
IAbstractionPathBuilder, IMemoryBoundedSolver
Direct Known Subclasses:
DefaultPathBuilderFactory.ShutdownBatchPathBuilder

public class BatchPathBuilder extends AbstractAbstractionPathBuilder
Path builder that forwards all its requests to another path builder in batches. This builder waits for each batch to complete before submitting another batch. Use this path builder to reduce the memory consumption of the path building process by keeping less paths in memory at the same time.
Author:
Steven Arzt
  • Field Details

  • Constructor Details

  • Method Details

    • computeTaintPaths

      public void computeTaintPaths(Set<AbstractionAtSink> res)
      Description copied from interface: IAbstractionPathBuilder
      Computes the path of tainted data between the source and the sink
      Parameters:
      res - The data flow tracker results
    • getResults

      public InfoflowResults getResults()
      Description copied from interface: IAbstractionPathBuilder
      Gets the constructed result paths
      Returns:
      The constructed result paths
    • runIncrementalPathComputation

      public void runIncrementalPathComputation()
      Description copied from interface: IAbstractionPathBuilder
      Incrementally runs the path builder after some paths have already been computed. This method is usually called after the taint propagation has finished when incremental path building has been used in between.
    • forceTerminate

      public void forceTerminate(ISolverTerminationReason reason)
      Description copied from interface: IMemoryBoundedSolver
      Forces the solver to terminate its tasks and stop processing new tasks. This will kill the solver.
      Parameters:
      reason - The reason why the solver is terminated
    • isTerminated

      public boolean isTerminated()
      Description copied from interface: IMemoryBoundedSolver
      Checks whether this solver is terminated, either by forced termination, or because it has finished all of its work.
      Returns:
      True if this solver is terminated, otherwise false
    • isKilled

      public boolean isKilled()
      Description copied from interface: IMemoryBoundedSolver
      Checks whether this solver was killed before it could complete its tasks
      Returns:
      True if this solver was killed before it could complete its tasks, otherwise false
    • getTerminationReason

      public ISolverTerminationReason getTerminationReason()
      Description copied from interface: IMemoryBoundedSolver
      In case this solver was killed before it could complete its task, this method returns the reason for the abortion. Otherwise, this method returns null.
      Returns:
      The reason for the abortion in case the solver was killed, otherwise null
    • reset

      public void reset()
      Description copied from interface: IMemoryBoundedSolver
      Resets the solver to its initial state after it has been forcefully terminated. After calling this method, the solver is expected to accept new tasks.
    • addStatusListener

      public void addStatusListener(IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification listener)
      Description copied from interface: IMemoryBoundedSolver
      Adds a new listener that will be notified of status changes in the solver
      Parameters:
      listener - The listener that will be notified when the status of the solver changes
    • setBatchSize

      public void setBatchSize(int batchSize)
      Sets the number of paths that shall be part of one batch, i.e., that shall be forwarded to the inner path builder at the same time
      Parameters:
      batchSize - The number of paths in one batch