Class AnnotatedTerm

java.lang.Object
de.uni_freiburg.informatik.ultimate.logic.Term
de.uni_freiburg.informatik.ultimate.logic.AnnotatedTerm

public class AnnotatedTerm
extends Term
Representation of annotated terms in SMTLIB 2. This class stores terms of the form
 (! ... :key_1 value_1 ... :key_n value_n)
 
An annotated term is created by Script.annotate(Term, Annotation...).
Author:
hoenicke
  • Field Summary

    Fields inherited from class de.uni_freiburg.informatik.ultimate.logic.Term

    mTmpCtr
  • Method Summary

    Modifier and Type Method Description
    Annotation[] getAnnotations()
    Get all annotations stored in this term.
    Sort getSort()
    Returns the SMTLIB sort of this term.
    Term getSubterm()
    Get the term that is annotated by the annotations stored in this term.
    static int hashAnnotations​(Annotation[] annots, Term subTerm)  
    void toStringHelper​(java.util.ArrayDeque<java.lang.Object> mTodo)
    Convert a term to a string in a stack based fashion.

    Methods inherited from class de.uni_freiburg.informatik.ultimate.logic.Term

    getFreeVars, getTheory, hashCode, toString, toStringDirect

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getSort

      public Sort getSort()
      Description copied from class: Term
      Returns the SMTLIB sort of this term.
      Specified by:
      getSort in class Term
      Returns:
      the sort of the term.
    • getSubterm

      public Term getSubterm()
      Get the term that is annotated by the annotations stored in this term.
      Returns:
      The subterm of this term.
    • getAnnotations

      public Annotation[] getAnnotations()
      Get all annotations stored in this term. The resulting array should not be modified!
      Returns:
      The annotations stored in this term.
    • hashAnnotations

      public static int hashAnnotations​(Annotation[] annots, Term subTerm)
    • toStringHelper

      public void toStringHelper​(java.util.ArrayDeque<java.lang.Object> mTodo)
      Description copied from class: Term
      Convert a term to a string in a stack based fashion. This is used for internal purposes. External users can just use toString() or toStringDirect().
      Specified by:
      toStringHelper in class Term
      Parameters:
      mTodo - The stack where to put the strings and sub terms.
      See Also:
      PrintTerm