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 Summary
-
Method Summary
Modifier and Type Method Description intgetQuantifier()SortgetSort()Returns the SMTLIB sort of this term.TermgetSubformula()Get the formula under the quantifier.TermVariable[]getVariables()Get the quantified variables.static inthashQuantifier(int quant, TermVariable[] vars, Term f)voidtoStringHelper(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
-
Field Details
-
EXISTS
public static final int EXISTS- See Also:
- Constant Field Values
-
FORALL
public static final int FORALL- See Also:
- Constant Field Values
-
-
Method Details
-
getQuantifier
public int getQuantifier()- Returns:
- the quantifier
-
getVariables
Get the quantified variables.- Returns:
- the variables
-
getSubformula
Get the formula under the quantifier.- Returns:
- the sub-formula.
-
getSort
Description copied from class:TermReturns the SMTLIB sort of this term. -
hashQuantifier
-
toStringHelper
public void toStringHelper(java.util.ArrayDeque<java.lang.Object> mTodo)Description copied from class:TermConvert 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:
toStringHelperin classTerm- Parameters:
mTodo- The stack where to put the strings and sub terms.- See Also:
PrintTerm
-