Package org.smtlib.logic
Class QF_FP
- All Implemented Interfaces:
ILanguage,ILogic,INode,IPos.IPosable
Not an official SMT-LIB logic -- see QF_FP.smt2's own :notes: a jSMTLIB-invented
convenience logic for exercising the FloatingPoint theory in this project's own test
suite without needing the broad ALL logic. Its own :language text ("Closed
quantifier-free formulas ... with free constant symbols") is enforced the same way as
any other quantifier-free, no-UF, no-new-sorts logic in this package.
-
Field Summary
Fields inherited from class org.smtlib.impl.SMTExpr.Logic
attributes, attributesList, logicName, smtConfigFields inherited from class org.smtlib.impl.Pos.Posable
pos -
Constructor Summary
ConstructorsConstructorDescriptionQF_FP(SMT.Configuration smtConfig, IExpr.ISymbol name, Collection<IExpr.IAttribute<?>> attributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckFcnDeclaration(IExpr.IIdentifier id, List<ISort> argSorts, ISort resultSort, IExpr definition) Checks whether the given function declaration is permitted in the language, throwing an exception if notvoidcheckSortDeclaration(IExpr.IIdentifier id, List<ISort.IParameter> params, ISort expr) Checks whether the given sort declaration is permitted in the language, throwing an exception if notvoidvalidExpression(IExpr expression) Checks whether the given expression is permitted in the language, throwing an exception if notMethods inherited from class org.smtlib.logic.Logic
allowedArraySort, allowedArraySorts, checkArraySorts, checkArraySorts, checkBoundArraySorts, isBitVecArray, isBitVecSort, isFreeConstant, isInteger, isLinearInteger, isLinearReal, isRealConst, noExponentiation, noFunctions, nonCoefficients, noQuantifiers, noSorts, restrictionError, sameSort, sortAppMethods inherited from class org.smtlib.impl.SMTExpr.Logic
accept, attributeList, attributes, logicName, valueMethods inherited from class org.smtlib.impl.Pos.Printable
toStringMethods inherited from class org.smtlib.impl.Pos.Posable
equals, hashCode, pos, setPos
-
Constructor Details
-
QF_FP
public QF_FP(SMT.Configuration smtConfig, IExpr.ISymbol name, Collection<IExpr.IAttribute<?>> attributes)
-
-
Method Details
-
validExpression
Description copied from interface:ILanguageChecks whether the given expression is permitted in the language, throwing an exception if not- Specified by:
validExpressionin interfaceILanguage- Overrides:
validExpressionin classSMTExpr.Logic- Throws:
IVisitor.VisitorException
-
checkFcnDeclaration
public void checkFcnDeclaration(IExpr.IIdentifier id, List<ISort> argSorts, ISort resultSort, IExpr definition) throws IVisitor.VisitorException Description copied from interface:ILanguageChecks whether the given function declaration is permitted in the language, throwing an exception if not- Specified by:
checkFcnDeclarationin interfaceILanguage- Overrides:
checkFcnDeclarationin classSMTExpr.Logic- Throws:
IVisitor.VisitorException
-
checkSortDeclaration
public void checkSortDeclaration(IExpr.IIdentifier id, List<ISort.IParameter> params, ISort expr) throws IVisitor.VisitorException Description copied from interface:ILanguageChecks whether the given sort declaration is permitted in the language, throwing an exception if not- Specified by:
checkSortDeclarationin interfaceILanguage- Overrides:
checkSortDeclarationin classSMTExpr.Logic- Throws:
IVisitor.VisitorException
-