Class QuantifiedFormula

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

public class QuantifiedFormula
extends Term
Represents a quantified formula in SMTLIB 2. This class represents the SMTLIB 2 construct
 (forall ((var_1 sort_1) ... (var_n sort_n)) ...)
 
or
 (exists ((var_1 sort_1) ... (var_n sort_n)) ...)
 
. A quantified formula is created by Script.quantifier(int, TermVariable[], Term, Term[][]).
Author:
hoenicke
  • Field Details

  • Method Details

    • getQuantifier

      public int getQuantifier()
      Returns:
      the quantifier
    • getVariables

      public TermVariable[] getVariables()
      Get the quantified variables.
      Returns:
      the variables
    • getSubformula

      public Term getSubformula()
      Get the formula under the quantifier.
      Returns:
      the sub-formula.
    • 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.
    • hashQuantifier

      public static final int hashQuantifier​(int quant, TermVariable[] vars, Term f)
    • 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