Class ContextInsensitivePathBuilder

All Implemented Interfaces:
IAbstractionPathBuilder, IMemoryBoundedSolver

public class ContextInsensitivePathBuilder extends ConcurrentAbstractionPathBuilder
Class for reconstructing abstraction paths from sinks to source. This builder is context-insensitive which makes it faster, but also less precise than ContextSensitivePathBuilder.
Author:
Steven Arzt
  • Constructor Details

    • ContextInsensitivePathBuilder

      public ContextInsensitivePathBuilder(InfoflowManager manager, InterruptableExecutor executor)
      Creates a new instance of the ContextSensitivePathBuilder class
      Parameters:
      manager - The data flow manager that gives access to the icfg and other objects
      executor - The executor in which to run the path reconstruction tasks
  • Method Details

    • getTaintPathTask

      protected Runnable getTaintPathTask(AbstractionAtSink abs)
      Description copied from class: ConcurrentAbstractionPathBuilder
      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.
      Specified by:
      getTaintPathTask in class ConcurrentAbstractionPathBuilder
      Parameters:
      abs - The abstraction for which to compute the result paths
    • triggerComputationForNeighbors

      protected boolean triggerComputationForNeighbors()
      Description copied from class: ConcurrentAbstractionPathBuilder
      Specifies whether the class shall create separate path reconstruction tasks for the neighbors of the abstractions that arrive at the sink
      Specified by:
      triggerComputationForNeighbors in class ConcurrentAbstractionPathBuilder
      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
    • 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.