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.FloatingPointType,FormulaType.NumeralType
@Immutable public abstract class FormulaType<T extends Formula> extends Object
Type of a formula.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFormulaType.ArrayFormulaType<TI extends Formula,TE extends Formula>static classFormulaType.BitvectorTypestatic classFormulaType.FloatingPointTypestatic classFormulaType.NumeralType<T extends NumeralFormula>
-
Field Summary
Fields Modifier and Type Field Description static FormulaType<BooleanFormula>BooleanTypestatic FormulaType<FloatingPointRoundingModeFormula>FloatingPointRoundingModeTypestatic FormulaType<NumeralFormula.IntegerFormula>IntegerTypestatic FormulaType<NumeralFormula.RationalFormula>RationalType
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static 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)static FormulaType.FloatingPointTypegetDoublePrecisionFloatingPointType()static FormulaType.FloatingPointTypegetFloatingPointType(int exponentSize, int mantissaSize)static FormulaType.FloatingPointTypegetSinglePrecisionFloatingPointType()booleanisArrayType()booleanisBitvectorType()booleanisBooleanType()booleanisFloatingPointRoundingModeType()booleanisFloatingPointType()booleanisIntegerType()booleanisNumeralType()booleanisRationalType()booleanisSLType()abstract StringtoString()
-
-
-
Field Detail
-
RationalType
public static final FormulaType<NumeralFormula.RationalFormula> RationalType
-
IntegerType
public static final FormulaType<NumeralFormula.IntegerFormula> IntegerType
-
BooleanType
public static final FormulaType<BooleanFormula> BooleanType
-
FloatingPointRoundingModeType
public static final FormulaType<FloatingPointRoundingModeFormula> FloatingPointRoundingModeType
-
-
Method Detail
-
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()
-
getBitvectorTypeWithSize
public static FormulaType.BitvectorType getBitvectorTypeWithSize(int size)
-
getFloatingPointType
public static FormulaType.FloatingPointType getFloatingPointType(int exponentSize, int mantissaSize)
-
getSinglePrecisionFloatingPointType
public static FormulaType.FloatingPointType getSinglePrecisionFloatingPointType()
-
getDoublePrecisionFloatingPointType
public static FormulaType.FloatingPointType getDoublePrecisionFloatingPointType()
-
getArrayType
public static <TD extends Formula,TR extends Formula> FormulaType.ArrayFormulaType<TD,TR> getArrayType(FormulaType<TD> pDomainSort, FormulaType<TR> pRangeSort)
-
fromString
public static FormulaType<?> fromString(String t)
Parse a string and return the corresponding type. This method is the counterpart oftoString().
-
-