Function declarations. More...
class Parameter Function declarations can have Parameters associated with them. More...Function declarations.
Definition at line 30 of file FuncDecl.cs.
◆ Apply()Create expression that applies function to arguments.
Definition at line 355 of file FuncDecl.cs.
357Debug.Assert(
args==
null||
args.All(a => a !=
null));
Expr this[params Expr[] args
Create expression that applies function to arguments.
Context Context
Access Context object
◆ Equals() override bool Equals ( object o ) inlineObject comparison.
Definition at line 57 of file FuncDecl.cs.
59FuncDecl casted = o as FuncDecl;
60 if(casted ==
null)
return false;
61 return this== casted;
◆ GetHashCode() override int GetHashCode ( ) inlineA hash code.
Definition at line 67 of file FuncDecl.cs.
69 returnbase.GetHashCode();
◆ operator!=()Comparison operator.
Definition at line 49 of file FuncDecl.cs.
◆ operator==()Comparison operator.
Definition at line 36 of file FuncDecl.cs.
38 returnObject.ReferenceEquals(a, b) ||
39(!Object.ReferenceEquals(a,
null) &&
40!Object.ReferenceEquals(b,
null) &&
41a.Context.nCtx == b.Context.nCtx &&
42Native.Z3_is_eq_func_decl(a.Context.nCtx, a.NativeObject, b.NativeObject) != 0);
◆ ToString() override string ToString ( ) inlineA string representations of the function declaration.
Definition at line 75 of file FuncDecl.cs.
77 returnNative.Z3_func_decl_to_string(
Context.nCtx, NativeObject);
◆ Translate()Translates (copies) the function declaration to the Context ctx .
Definition at line 329 of file FuncDecl.cs.
331 return(FuncDecl) base.Translate(ctx);
Referenced by FuncDecl.Translate().
◆ argsCreate expression that applies function to arguments.
Definition at line 340 of file FuncDecl.cs.
344Debug.Assert(
args==
null||
args.All(a => a !=
null));
Expr Apply(params Expr[] args)
Create expression that applies function to arguments.
Referenced by FuncDecl.Apply().
◆ Arity ◆ DeclKindThe kind of the function declaration.
Definition at line 136 of file FuncDecl.cs.
Z3_decl_kind
The different kinds of interpreted function kinds.
◆ DomainThe domain of the function declaration
Definition at line 108 of file FuncDecl.cs.
115Sort[] res =
newSort[n];
116 for(uint i = 0; i < n; i++)
117res[i] = Sort.Create(
Context, Native.Z3_get_domain(
Context.nCtx, NativeObject, i));
uint DomainSize
The size of the domain of the function declaration Arity
◆ DomainSizeThe size of the domain of the function declaration
Definition at line 100 of file FuncDecl.cs.
102 get{
returnNative.Z3_get_domain_size(
Context.nCtx, NativeObject); }
◆ IdReturns a unique identifier for the function declaration.
Definition at line 83 of file FuncDecl.cs.
85 get{
returnNative.Z3_get_func_decl_id(
Context.nCtx, NativeObject); }
◆ NameThe name of the function declaration
Definition at line 144 of file FuncDecl.cs.
148 returnSymbol.Create(
Context, Native.Z3_get_decl_name(
Context.nCtx, NativeObject));
◆ NumParametersThe number of parameters of the function declaration
Definition at line 155 of file FuncDecl.cs.
157 get{
returnNative.Z3_get_decl_num_parameters(
Context.nCtx, NativeObject); }
◆ ParametersThe parameters of the function declaration
Definition at line 163 of file FuncDecl.cs.
169Parameter[] res =
newParameter[num];
170 for(uint i = 0; i < num; i++)
176res[i] =
newParameter(k, Native.Z3_get_decl_int_parameter(
Context.nCtx, NativeObject, i));
179res[i] =
newParameter(k, Native.Z3_get_decl_double_parameter(
Context.nCtx, NativeObject, i));
182res[i] =
newParameter(k, Symbol.Create(
Context, Native.Z3_get_decl_symbol_parameter(
Context.nCtx, NativeObject, i)));
185res[i] =
newParameter(k, Sort.Create(
Context, Native.Z3_get_decl_sort_parameter(
Context.nCtx, NativeObject, i)));
188res[i] =
newParameter(k,
newAST(
Context, Native.Z3_get_decl_ast_parameter(
Context.nCtx, NativeObject, i)));
191res[i] =
newParameter(k,
newFuncDecl(
Context, Native.Z3_get_decl_func_decl_parameter(
Context.nCtx, NativeObject, i)));
194res[i] =
newParameter(k, Native.Z3_get_decl_rational_parameter(
Context.nCtx, NativeObject, i));
197 throw newZ3Exception(
"Unknown function declaration parameter kind encountered");
uint NumParameters
The number of parameters of the function declaration
Z3_parameter_kind
The different kinds of parameters that can be associated with function symbols.
◆ RangeThe range of the function declaration
Definition at line 125 of file FuncDecl.cs.
129 returnSort.Create(
Context, Native.Z3_get_range(
Context.nCtx, NativeObject));
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4