Function declaration (aka function definition). It is the signature of interpreted and uninterpreted functions in Z3. The basic building block in Z3 is the function application. More...
func_decl (context &c) func_decl (context &c, Z3_func_decl n) operator Z3_func_decl () const unsigned id () const retrieve unique identifier for func_decl. More...Function declaration (aka function definition). It is the signature of interpreted and uninterpreted functions in Z3. The basic building block in Z3 is the function application.
Definition at line 760 of file z3++.h.
◆ func_decl() [1/2] ◆ func_decl() [2/2] ◆ accessors()Definition at line 4210 of file z3++.h.
4212assert(s.is_datatype());
4215 for(; idx < n; ++idx) {
4217 if(
id() == f.id())
4223 for(
unsignedi = 0; i < n; ++i)
unsigned Z3_API Z3_get_datatype_sort_num_constructors(Z3_context c, Z3_sort t)
Return number of constructors for datatype.
Z3_func_decl Z3_API Z3_get_datatype_sort_constructor(Z3_context c, Z3_sort t, unsigned idx)
Return idx'th constructor.
Z3_func_decl Z3_API Z3_get_datatype_sort_constructor_accessor(Z3_context c, Z3_sort t, unsigned idx_c, unsigned idx_a)
Return idx_a'th accessor for the idx_c'th constructor.
ast_vector_tpl< func_decl > func_decl_vector
◆ arity() ◆ decl_kind()Definition at line 775 of file z3++.h.
Z3_decl_kind Z3_API Z3_get_decl_kind(Z3_context c, Z3_func_decl d)
Return declaration kind corresponding to declaration.
Referenced by expr::is_and(), expr::is_distinct(), expr::is_eq(), expr::is_false(), expr::is_implies(), expr::is_ite(), expr::is_not(), expr::is_or(), expr::is_true(), and expr::is_xor().
◆ domain() sort domain ( unsigned i ) const inlineDefinition at line 772 of file z3++.h.
Z3_error_code check_error() const
Z3_sort Z3_API Z3_get_domain(Z3_context c, Z3_func_decl d, unsigned i)
Return the sort of the i-th parameter of the given function declaration.
Referenced by FuncDeclRef::__call__(), and func_decl::operator()().
◆ id()retrieve unique identifier for func_decl.
Definition at line 769 of file z3++.h.
unsigned Z3_API Z3_get_func_decl_id(Z3_context c, Z3_func_decl f)
Return a unique identifier for f.
Referenced by func_decl::accessors().
◆ is_const() ◆ name() ◆ num_parameters() unsigned num_parameters ( ) const inlineDefinition at line 776 of file z3++.h.
unsigned Z3_API Z3_get_decl_num_parameters(Z3_context c, Z3_func_decl d)
Return the number of parameters associated with a declaration.
Referenced by parameter::parameter().
◆ operator Z3_func_decl() operator Z3_func_decl ( ) const inlineDefinition at line 764 of file z3++.h.
System.IntPtr Z3_func_decl
◆ operator()() [1/11] expr operator() ( ) const inlineDefinition at line 3850 of file z3++.h.
3853 returnexpr(
ctx(), r);
Z3_error_code check_error() const
Auxiliary method used to check for API usage errors.
Z3_ast Z3_API Z3_mk_app(Z3_context c, Z3_func_decl d, unsigned num_args, Z3_ast const args[])
Create a constant or function application.
◆ operator()() [2/11] expr operator() ( expr const & a ) const inlineDefinition at line 3855 of file z3++.h.
3860 returnexpr(
ctx(), r);
friend void check_context(object const &a, object const &b)
◆ operator()() [3/11]Definition at line 3868 of file z3++.h.
3870 Z3_astargs[2] = { a1, a2 };
3873 returnexpr(
ctx(), r);
◆ operator()() [4/11]Definition at line 3889 of file z3++.h.
3891 Z3_astargs[3] = { a1, a2, a3 };
3894 returnexpr(
ctx(), r);
◆ operator()() [5/11]Definition at line 3896 of file z3++.h.
3898 Z3_astargs[4] = { a1, a2, a3, a4 };
3901 returnexpr(
ctx(), r);
◆ operator()() [6/11]Definition at line 3903 of file z3++.h.
3905 Z3_astargs[5] = { a1, a2, a3, a4, a5 };
3908 returnexpr(
ctx(), r);
◆ operator()() [7/11] expr operator() ( expr const & a1, int a2 ) const inlineDefinition at line 3875 of file z3++.h.
3880 returnexpr(
ctx(), r);
expr num_val(int n, sort const &s)
sort domain(unsigned i) const
◆ operator()() [8/11]Definition at line 3840 of file z3++.h.
3841array<Z3_ast> _args(args.size());
3842 for(
unsignedi = 0; i < args.size(); i++) {
3848 returnexpr(
ctx(), r);
◆ operator()() [9/11] expr operator() ( int a ) const inlineDefinition at line 3862 of file z3++.h.
3866 returnexpr(
ctx(), r);
◆ operator()() [10/11] expr operator() ( int a1, expr const & a2 ) const inlineDefinition at line 3882 of file z3++.h.
3887 returnexpr(
ctx(), r);
◆ operator()() [11/11] expr operator() ( unsigned n, expr const * args ) const inlineDefinition at line 3829 of file z3++.h.
3830array<Z3_ast> _args(n);
3831 for(
unsignedi = 0; i < n; i++) {
3837 returnexpr(
ctx(), r);
◆ range()Definition at line 773 of file z3++.h.
Z3_sort Z3_API Z3_get_range(Z3_context c, Z3_func_decl d)
Return the range of the given declaration.
Referenced by func_decl::accessors().
◆ transitive_closure()Definition at line 779 of file z3++.h.
Z3_func_decl Z3_API Z3_mk_transitive_closure(Z3_context c, Z3_func_decl f)
create transitive closure of binary relation.
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