Package org.sosy_lab.java_smt.api
Class FormulaType<T extends Formula>
java.lang.Object
org.sosy_lab.java_smt.api.FormulaType<T>
- Type Parameters:
T- Formula class corresponding to the given formula type.
- Direct Known Subclasses:
FormulaType.ArrayFormulaType,FormulaType.BitvectorType,FormulaType.EnumerationFormulaType,FormulaType.FloatingPointType,FormulaType.NumeralType
Type of a formula.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classFormulaType.ArrayFormulaType<TI extends Formula,TE extends Formula> static final classstatic final classstatic final classstatic classFormulaType.NumeralType<T extends NumeralFormula> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormulaType<BooleanFormula>static final FormulaType<FloatingPointRoundingModeFormula>static final FormulaType<NumeralFormula.IntegerFormula>static final FormulaType<NumeralFormula.RationalFormula>static final FormulaType<RegexFormula>static final FormulaType<StringFormula> -
Method Summary
Modifier and TypeMethodDescriptionstatic FormulaType<?>fromString(String t) Parse a string and return the corresponding type.static <TD extends Formula,TR extends Formula>
FormulaType.ArrayFormulaType<TD,TR> getArrayType(FormulaType<TD> pDomainSort, FormulaType<TR> pRangeSort) static FormulaType.BitvectorTypegetBitvectorTypeWithSize(int size) getEnumerationType(String pName, Set<String> pElements) getFloatingPointType(int exponentSize, int mantissaSize) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisSLType()booleanabstract Stringreturn the correctly formatted SMTLIB2 type declaration.abstract StringtoString()
-
Field Details
-
RationalType
-
IntegerType
-
BooleanType
-
FloatingPointRoundingModeType
-
StringType
-
RegexType
-
-
Method Details
-
isArrayType
public boolean isArrayType() -
isBitvectorType
public boolean isBitvectorType() -
isBooleanType
public boolean isBooleanType() -
isFloatingPointType
public boolean isFloatingPointType() -
isFloatingPointRoundingModeType
public boolean isFloatingPointRoundingModeType() -
isNumeralType
public boolean isNumeralType() -
isRationalType
public boolean isRationalType() -
isIntegerType
public boolean isIntegerType() -
isSLType
public boolean isSLType() -
isStringType
public boolean isStringType() -
isRegexType
public boolean isRegexType() -
isEnumerationType
public boolean isEnumerationType() -
toString
-
toSMTLIBString
return the correctly formatted SMTLIB2 type declaration. -
getBitvectorTypeWithSize
-
getFloatingPointType
public static FormulaType.FloatingPointType getFloatingPointType(int exponentSize, int mantissaSize) -
getSinglePrecisionFloatingPointType
-
getDoublePrecisionFloatingPointType
-
getArrayType
public static <TD extends Formula,TR extends Formula> FormulaType.ArrayFormulaType<TD,TR> getArrayType(FormulaType<TD> pDomainSort, FormulaType<TR> pRangeSort) -
getEnumerationType
public static FormulaType.EnumerationFormulaType getEnumerationType(String pName, Set<String> pElements) -
fromString
Parse a string and return the corresponding type. This method is the counterpart oftoString().
-