API reference
C API Coverage Report (Z3 5.3.3)¶
Every exported function across Z3's nine C headers is checked against z3.h with cc -Werror and confirmed exported by libz3 on linux-64, linux-aarch64, and osx-arm64.
Summary¶
| Status | Count | Meaning |
|---|---|---|
auto |
618 | Generated public Mojo method or global function |
manual |
151 | Hand-written public wrapper (apn_mojo, overloads, multi-output calls, safe callbacks) |
lifecycle |
40 | Automatic RAII inc_ref, dec_ref, del, or error-handler setup |
excluded |
8 | Kept raw-only (callable via from z3_mojo.c import c_api) |
| Total | 817 | All 817 bound in z3_mojo.c, 0 unresolved |
Breakdown by Header¶
| Header | Total | auto |
manual |
lifecycle |
excluded |
|---|---|---|---|---|---|
z3_algebraic.h |
21 | 21 | 0 | 0 | 0 |
z3_api.h |
585 | 423 | 127 | 31 | 4 |
z3_ast_containers.h |
21 | 17 | 0 | 4 | 0 |
z3_fixedpoint.h |
30 | 24 | 0 | 2 | 4 |
z3_fpa.h |
81 | 81 | 0 | 0 | 0 |
z3_optimization.h |
30 | 14 | 14 | 2 | 0 |
z3_polynomial.h |
1 | 1 | 0 | 0 | 0 |
z3_rcf.h |
37 | 26 | 10 | 1 | 0 |
z3_spacer.h |
11 | 11 | 0 | 0 | 0 |
Explicit Raw-Only Exclusions (bindgen/overrides.toml)¶
These functions are fully bound in Low-Level C API (from z3_mojo.c import c_api) and intentionally omitted from the safe high-level wrappers:
| Z3 C Function | Reason |
|---|---|
Z3_dec_ref |
Manual AST refcounting for Z3_mk_context_rc; available via c_api() |
Z3_fixedpoint_add_callback |
Raw C callback registration (void* + 3 handlers); available via c_api() |
Z3_fixedpoint_init |
Raw C void* state pointer for fixedpoint callbacks; available via c_api() |
Z3_fixedpoint_set_reduce_app_callback |
Raw C callback registration; available via c_api() |
Z3_fixedpoint_set_reduce_assign_callback |
Raw C callback registration; available via c_api() |
Z3_inc_ref |
Manual AST refcounting for Z3_mk_context_rc; available via c_api() |
Z3_mk_context_rc |
Public Context uses Z3_mk_context; manual AST RC is available via c_api() |
Z3_set_proof_check_callback |
Raw C callback registration (void* + Z3_proof_check_eh); available via c_api() |