3
0
Fork 0
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:
Nuno Lopes 2024-12-16 12:12:24 +00:00 committed by GitHub
parent 6f24123f0c
commit c250209a3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();