mirror of
https://github.com/Z3Prover/z3
synced 2025-06-03 12:51:22 +00:00
expose recursive functions with own op-code over API
This commit is contained in:
parent
c0b455e010
commit
c9fa00aec1
2 changed files with 6 additions and 0 deletions
|
@ -1329,6 +1329,9 @@ extern "C" {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mk_c(c)->recfun().get_family_id() == _d->get_family_id())
|
||||||
|
return Z3_OP_RECURSIVE;
|
||||||
|
|
||||||
return Z3_OP_UNINTERPRETED;
|
return Z3_OP_UNINTERPRETED;
|
||||||
Z3_CATCH_RETURN(Z3_OP_UNINTERPRETED);
|
Z3_CATCH_RETURN(Z3_OP_UNINTERPRETED);
|
||||||
}
|
}
|
||||||
|
|
|
@ -996,6 +996,8 @@ typedef enum
|
||||||
information is exposed. Tools may use the string representation of the
|
information is exposed. Tools may use the string representation of the
|
||||||
function declaration to obtain more information.
|
function declaration to obtain more information.
|
||||||
|
|
||||||
|
- Z3_OP_RECURSIVE: function declared as recursive
|
||||||
|
|
||||||
- Z3_OP_UNINTERPRETED: kind used for uninterpreted symbols.
|
- Z3_OP_UNINTERPRETED: kind used for uninterpreted symbols.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -1320,6 +1322,7 @@ typedef enum {
|
||||||
Z3_OP_FPA_BV2RM,
|
Z3_OP_FPA_BV2RM,
|
||||||
|
|
||||||
Z3_OP_INTERNAL,
|
Z3_OP_INTERNAL,
|
||||||
|
Z3_OP_RECURSIVE,
|
||||||
|
|
||||||
Z3_OP_UNINTERPRETED
|
Z3_OP_UNINTERPRETED
|
||||||
} Z3_decl_kind;
|
} Z3_decl_kind;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue