Interface FastSolverLinkedNode<D,N>

All Superinterfaces:
Cloneable
All Known Implementing Classes:
Abstraction

public interface FastSolverLinkedNode<D,N> extends Cloneable
Common interface for all abstractions processed by the IFDS solver
Author:
Steven Arzt
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addNeighbor(D originalAbstraction)
    Links this node to a neighbor node, i.e., to an abstraction that would have been merged with this one of paths were not being tracked.
    Clones this data flow abstraction
    clone(N currentUnit, N callSite)
    Clones this data flow abstraction with the current statement and corresponding call site set
    If this abstraction supports alias analysis, this returns the active copy of the current abstraction.
    int
    Gets the number of neighbors already registered with this abstraction
    int
    Gets the length of the path over which this node was propagated
    Gets the predecessor of this node
    void
    setPredecessor(D predecessor)
    Explicitly sets the predecessor of this node.
  • Method Details

    • addNeighbor

      boolean addNeighbor(D originalAbstraction)
      Links this node to a neighbor node, i.e., to an abstraction that would have been merged with this one of paths were not being tracked.
      Returns:
      True if the neighbor was added, false if it was rejected
    • getNeighborCount

      int getNeighborCount()
      Gets the number of neighbors already registered with this abstraction
      Returns:
      The number of neighbors already registered with this abstraction
    • setPredecessor

      void setPredecessor(D predecessor)
      Explicitly sets the predecessor of this node.
      Parameters:
      predecessor - The predecessor node to set
    • getPredecessor

      D getPredecessor()
      Gets the predecessor of this node
      Returns:
      The predecessor of this node is applicable, null for source nodes
    • clone

      D clone()
      Clones this data flow abstraction
      Returns:
      A clone of the current data flow abstraction
    • clone

      D clone(N currentUnit, N callSite)
      Clones this data flow abstraction with the current statement and corresponding call site set
      Returns:
      A clone of the current data flow abstraction
    • getActiveCopy

      D getActiveCopy()
      If this abstraction supports alias analysis, this returns the active copy of the current abstraction. Otherwise, "this" is returned.
      Returns:
      The active copy if supported, otherwise the "this" reference
    • getPathLength

      int getPathLength()
      Gets the length of the path over which this node was propagated
      Returns:
      The length of the path over which this node was propagated