Class ConcurrentAbstractionPathBuilder

java.lang.Object
soot.jimple.infoflow.data.pathBuilders.AbstractAbstractionPathBuilder
soot.jimple.infoflow.data.pathBuilders.ConcurrentAbstractionPathBuilder
All Implemented Interfaces:
IAbstractionPathBuilder, IMemoryBoundedSolver
Direct Known Subclasses:
ContextInsensitivePathBuilder, ContextInsensitiveSourceFinder, ContextSensitivePathBuilder

public abstract class ConcurrentAbstractionPathBuilder extends AbstractAbstractionPathBuilder
  • Field Details

  • Constructor Details

  • Method Details

    • getTaintPathTask

      protected abstract Runnable getTaintPathTask(AbstractionAtSink abs)
      Gets the task that computes the result paths for a single abstraction. If the concrete path building algorithm does not want to handle the given abstraction, it can return null to not execute anything.
      Parameters:
      abs - The abstraction for which to compute the result paths
    • 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
    • triggerComputationForNeighbors

      protected abstract boolean triggerComputationForNeighbors()
      Specifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sink
      Returns:
      True if separate path reconstruction tasks shall be started for each neighbor of each abstraction that reaches a sink, false if only the abstraction itself shall trigger a path reconstruction task
    • 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
    • scheduleDependentTask

      protected void scheduleDependentTask(Runnable task)
      Schedules the given task for execution
      Parameters:
      task - The task to execute
    • getResults

      public InfoflowResults getResults()
      Description copied from interface: IAbstractionPathBuilder
      Gets the constructed result paths
      Returns:
      The constructed result paths
    • 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
    • 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.
    • 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
    • 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