mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
Update api_ast.cpp
This commit is contained in:
parent
6f24123f0c
commit
c250209a3f
1 changed files with 14 additions and 0 deletions
|
@ -425,6 +425,20 @@ extern "C" {
|
|||
RETURN_Z3(of_app(reinterpret_cast<app*>(a)));
|
||||
}
|
||||
|
||||
bool Z3_API Z3_is_ground(Z3_context c, Z3_ast a) {
|
||||
LOG_Z3_is_ground(c, a);
|
||||
RESET_ERROR_CODE();
|
||||
CHECK_IS_EXPR(a, 0);
|
||||
return is_ground(to_expr(a));
|
||||
}
|
||||
|
||||
unsigned Z3_API Z3_get_depth(Z3_context c, Z3_ast a) {
|
||||
LOG_Z3_get_depth(c, a);
|
||||
RESET_ERROR_CODE();
|
||||
CHECK_IS_EXPR(a, 0);
|
||||
return get_depth(to_expr(a));
|
||||
}
|
||||
|
||||
Z3_func_decl Z3_API Z3_to_func_decl(Z3_context c, Z3_ast a) {
|
||||
LOG_Z3_to_func_decl(c, a);
|
||||
RESET_ERROR_CODE();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue