Class LastCallToken

  • All Implemented Interfaces:
    ContextSensitivityToken, it.unive.lisa.interprocedural.ScopeId

    public class LastCallToken
    extends java.lang.Object
    implements ContextSensitivityToken
    A context sensitive token representing a single ScopeToken. The token that is kept is always the last pushed one, enabling the analysis of infinite call chains by lubbing results obtained starting from the same call site, regardless of the call stack. This corresponds to having a KDepthToken with k = 1.
    • Method Detail

      • getSingleton

        public static LastCallToken getSingleton()
        Return an empty token.
        Returns:
        an empty token
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • isStartingId

        public boolean isStartingId()
        Specified by:
        isStartingId in interface it.unive.lisa.interprocedural.ScopeId