public class BoolectorFormulaCreator extends FormulaCreator<Long,Long,Long,Long>
environment| Modifier and Type | Method and Description |
|---|---|
Long |
callFunctionImpl(Long pDeclaration,
List<Long> pArgs) |
Object |
convertValue(Long pF)
Convert the formula into a Java object as far as possible, i.e., try to match a primitive or
simple type like Boolean, BigInteger, or Rational.
|
Object |
convertValue(Long key,
Long term)
Convert the formula into a Java object as far as possible, i.e., try to match a primitive or
simple type.
|
Long |
declareUFImpl(String name,
Long pReturnType,
List<Long> pArgTypes) |
<T extends Formula> |
encapsulate(FormulaType<T> pType,
Long pTerm) |
protected <TI extends Formula,TE extends Formula> |
encapsulateArray(Long pTerm,
FormulaType<TI> pIndexType,
FormulaType<TE> pElementType) |
BitvectorFormula |
encapsulateBitvector(Long pTerm) |
BooleanFormula |
encapsulateBoolean(Long pTerm) |
Long |
extractInfo(Formula pT) |
protected <TI extends Formula,TE extends Formula> |
getArrayFormulaElementType(ArrayFormula<TI,TE> pArray) |
protected <TI extends Formula,TE extends Formula> |
getArrayFormulaIndexType(ArrayFormula<TI,TE> pArray) |
Long |
getArrayType(Long pIndexType,
Long pElementType) |
Long |
getBitvectorType(int pBitwidth) |
protected Long |
getBooleanVarDeclarationImpl(Long pTFormulaInfo) |
protected Table<String,Long,Long> |
getCache()
Returns current variables cache.
|
Long |
getFloatingPointType(FormulaType.FloatingPointType pType) |
FormulaType<?> |
getFormulaType(Long pFormula) |
<T extends Formula> |
getFormulaType(T pFormula)
Returns the type of the given Formula.
|
Long |
makeVariable(Long type,
String varName) |
<R> R |
visit(FormulaVisitor<R> visitor,
Formula formula,
Long f) |
callFunction, encapsulateFloatingPoint, encapsulateWithTypeOf, extractInfo, extractVariablesAndUFs, extractVariablesAndUFs, extractVariablesAndUFs, getBooleanVarDeclaration, getBoolType, getEnv, getIntegerType, getRationalType, transformRecursively, transformRecursively, visit, visitRecursively, visitRecursivelypublic <T extends Formula> FormulaType<T> getFormulaType(T pFormula)
FormulaCreatorgetFormulaType in class FormulaCreator<Long,Long,Long,Long>public Long extractInfo(Formula pT)
extractInfo in class FormulaCreator<Long,Long,Long,Long>public FormulaType<?> getFormulaType(Long pFormula)
getFormulaType in class FormulaCreator<Long,Long,Long,Long>public <T extends Formula> T encapsulate(FormulaType<T> pType, Long pTerm)
encapsulate in class FormulaCreator<Long,Long,Long,Long>public BooleanFormula encapsulateBoolean(Long pTerm)
encapsulateBoolean in class FormulaCreator<Long,Long,Long,Long>public BitvectorFormula encapsulateBitvector(Long pTerm)
encapsulateBitvector in class FormulaCreator<Long,Long,Long,Long>protected <TI extends Formula,TE extends Formula> ArrayFormula<TI,TE> encapsulateArray(Long pTerm, FormulaType<TI> pIndexType, FormulaType<TE> pElementType)
encapsulateArray in class FormulaCreator<Long,Long,Long,Long>public Long getBitvectorType(int pBitwidth)
getBitvectorType in class FormulaCreator<Long,Long,Long,Long>public Long getFloatingPointType(FormulaType.FloatingPointType pType)
getFloatingPointType in class FormulaCreator<Long,Long,Long,Long>public Long getArrayType(Long pIndexType, Long pElementType)
getArrayType in class FormulaCreator<Long,Long,Long,Long>public Long makeVariable(Long type, String varName)
makeVariable in class FormulaCreator<Long,Long,Long,Long>public <R> R visit(FormulaVisitor<R> visitor, Formula formula, Long f)
public Long callFunctionImpl(Long pDeclaration, List<Long> pArgs)
callFunctionImpl in class FormulaCreator<Long,Long,Long,Long>public Long declareUFImpl(String name, Long pReturnType, List<Long> pArgTypes)
declareUFImpl in class FormulaCreator<Long,Long,Long,Long>public Object convertValue(Long key, Long term)
FormulaCreatorconvertValue in class FormulaCreator<Long,Long,Long,Long>key - an additonal formula where the type can be received from.term - the formula to be converted.public Object convertValue(Long pF)
FormulaCreatorIf the formula is not a simple constant expression, we simple return null.
convertValue in class FormulaCreator<Long,Long,Long,Long>pF - the formula to be converted.protected Long getBooleanVarDeclarationImpl(Long pTFormulaInfo)
getBooleanVarDeclarationImpl in class FormulaCreator<Long,Long,Long,Long>protected Table<String,Long,Long> getCache()
protected <TI extends Formula,TE extends Formula> FormulaType<TE> getArrayFormulaElementType(ArrayFormula<TI,TE> pArray)
getArrayFormulaElementType in class FormulaCreator<Long,Long,Long,Long>protected <TI extends Formula,TE extends Formula> FormulaType<TI> getArrayFormulaIndexType(ArrayFormula<TI,TE> pArray)
getArrayFormulaIndexType in class FormulaCreator<Long,Long,Long,Long>