Class FalseEdge

  • All Implemented Interfaces:
    Edge<Statement,​Edge,​CFG>

    public class FalseEdge
    extends Edge
    An edge connecting two statements, that is traversed when the condition expressed in the source state does not hold. The abstract analysis state gets modified by assuming that the statement where this edge originates does not hold.
    • Constructor Detail

      • FalseEdge

        public FalseEdge​(Statement source,
                         Statement destination)
        Builds the edge.
        Parameters:
        source - the source statement
        destination - the destination statement
    • Method Detail

      • toString

        public java.lang.String toString()
        Specified by:
        toString in class Edge
      • canBeSimplified

        public boolean canBeSimplified()
        Description copied from interface: Edge
        Yields true if and only if this edge could be simplified if one of the nodes connected to it is simplified (i.e., removed from the graph).
        Returns:
        whether or not this edge can be simplified
      • newInstance

        public FalseEdge newInstance​(Statement source,
                                     Statement destination)
        Description copied from interface: Edge
        Builds a new instance of this edge, connecting the given nodes.
        Parameters:
        source - the source node
        destination - the destination node
        Returns:
        a new instance of this edge, connecting the given nodes