Get started

Release notes

5.3.3.0

First public release, targeting Mojo 1.2.0, Z3 5.3.3, and APN Mojo 1.0.2.

  • Generated from a pinned release. z3-version.toml pins Z3 5.3.3 across linux-64, linux-aarch64, and osx-arm64, with pixi run bump, generate, api-diff, check-api, and .github/workflows/z3-update.yml.
  • Two public API layers.
  • Pythonic API (from z3_mojo import ...): Pythonic Z3 classes, constructors (Solver(ctx), Optimize(ctx), Goal(ctx), Tactic(name, ctx), Probe(name, ctx), Fixedpoint(ctx)), operators on Ast, Probe, and RcfNum, sat/unsat/unknown constants, safe callback traits (UserPropagator, ClauseHandler/OnClause, ModelHandler/ Optimize.set_on_model), 360+ z3.z3 free functions across all theories (including Z3 5.x FiniteFields, FiniteSets, Complex, Orders, and polymorphic datatypes), and all 769 safe C-API methods (618 generated, 151 hand-written) covering 809/817 C functions (99.0%) and all 10 enums (370 entries).
  • Low-level C API (from z3_mojo.c import c_api, ...): All 817 exported functions across Z3's nine C headers verified against z3.h with cc -Werror, plus all 29 raw Z3_* handle types, 10 enums, and FFI helpers (c_bytes, to_string, null, to_c_uint32, to_c_int32).
  • Safe lifetimes and exact numbers. Child handles keep their Context alive through ArcPointer[_ContextOwner] (including across translate calls), callback state is heap-pinned to its Solver/Optimize handle with exception safety across C, Z3 error codes raise Mojo Error("z3: ..."), and integers/rationals convert losslessly to and from apn_mojo.Integer and apn_mojo.Rational.
  • Tests and packaging. Ships with unit tests for the generator, raw C layer, core Mojo API, Pythonic surface, and callbacks, seven runnable examples (pixi run docs-test), differential checks against z3-solver==5.3.3.0, strict MkDocs documentation, and a modular-community conda recipe (recipes/z3_mojo/recipe.yaml).
z3_mojo v5.3.3.0 for Mojo 1.2 and Z3 5.3.3 · Apache License 2.0 with LLVM Exceptions · Source on GitHub