Class StatementStore<A extends AbstractState<A,​H,​V>,​H extends HeapDomain<H>,​V extends ValueDomain<V>>

    • Constructor Detail

      • StatementStore

        public StatementStore​(AnalysisState<A,​H,​V> state)
        Builds the store.
        Parameters:
        state - an instance of the underlying lattice
    • Method Detail

      • put

        public AnalysisState<A,​H,​V> put​(Statement st,
                                                    AnalysisState<A,​H,​V> state)
        Stores the given state for the given statement. This is a "forced" update, without performing any lattice operation if a mapping for the given expression already exists.
        Parameters:
        st - the statement whose state needs to be set
        state - the state to set
        Returns:
        the previous state mapped to expression, or null
      • top

        public StatementStore<A,​H,​V> top()
        Description copied from interface: Lattice
        Yields the top element of this lattice. The returned element should be unique across different calls to this method, since Lattice.isTop() uses reference equality by default. If the value returned by this method is not a singleton, override Lattice.isTop() accordingly to provide a coherent test.
        Returns:
        the top element
      • isTop

        public boolean isTop()
        Description copied from interface: Lattice
        Yields true if and only if this object represents the top of the lattice. The default implementation of this method uses reference equality between this and the value returned by Lattice.top(), thus assuming that the top element is a singleton. If this is not the case, override this method accordingly to provide a coherent test.
        Returns:
        true if this is the top of the lattice
      • bottom

        public StatementStore<A,​H,​V> bottom()
        Description copied from interface: Lattice
        Yields the bottom element of this lattice. The returned element should be unique across different calls to this method, since Lattice.isBottom() uses reference equality by default. If the value returned by this method is not a singleton, override Lattice.isBottom() accordingly to provide a coherent test.
        Returns:
        the bottom element
      • isBottom

        public boolean isBottom()
        Description copied from interface: Lattice
        Yields true if and only if this object represents the bottom of the lattice. The default implementation of this method uses reference equality between this and the value returned by Lattice.bottom(), thus assuming that the bottom element is a singleton. If this is not the case, override this method accordingly to provide a coherent test.
        Returns:
        true if this is the bottom of the lattice