Package com.microsoft.z3
Class FuncDecl
- java.lang.Object
-
- com.microsoft.z3.Z3Object
-
- com.microsoft.z3.AST
-
- com.microsoft.z3.FuncDecl
-
- All Implemented Interfaces:
Comparable<AST>
public class FuncDecl extends AST
Function declarations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classFuncDecl.ParameterFunction declarations can have Parameters associated with them.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Exprapply(Expr... args)Create expression that applies function to arguments.booleanequals(Object o)Object comparison.intgetArity()The arity of the function declarationZ3_decl_kindgetDeclKind()The kind of the function declaration.Sort[]getDomain()The domain of the function declarationintgetDomainSize()The size of the domain of the function declarationintgetId()Returns a unique identifier for the function declaration.SymbolgetName()The name of the function declarationintgetNumParameters()The number of parameters of the function declarationFuncDecl.Parameter[]getParameters()The parameters of the function declarationSortgetRange()The range of the function declarationStringtoString()A string representation of the AST.FuncDecltranslate(Context ctx)Translates (copies) the function declaration to the Contextctx.-
Methods inherited from class com.microsoft.z3.AST
compareTo, getASTKind, getSExpr, hashCode, isApp, isExpr, isFuncDecl, isQuantifier, isSort, isVar
-
Methods inherited from class com.microsoft.z3.Z3Object
arrayLength, arrayToNative
-
-
-
-
Method Detail
-
equals
public boolean equals(Object o)
Object comparison.
-
toString
public String toString()
Description copied from class:ASTA string representation of the AST.
-
getId
public int getId()
Returns a unique identifier for the function declaration.
-
translate
public FuncDecl translate(Context ctx)
Translates (copies) the function declaration to the Contextctx.- Overrides:
translatein classAST- Parameters:
ctx- A context- Returns:
- A copy of the function declaration which is associated with
ctx - Throws:
Z3Exception- on error
-
getArity
public int getArity()
The arity of the function declaration
-
getDomainSize
public int getDomainSize()
The size of the domain of the function declaration- See Also:
getArity()
-
getDomain
public Sort[] getDomain()
The domain of the function declaration
-
getRange
public Sort getRange()
The range of the function declaration
-
getDeclKind
public Z3_decl_kind getDeclKind()
The kind of the function declaration.
-
getName
public Symbol getName()
The name of the function declaration
-
getNumParameters
public int getNumParameters()
The number of parameters of the function declaration
-
getParameters
public FuncDecl.Parameter[] getParameters()
The parameters of the function declaration
-
-