Repository navigation
[API Coherence] Report for 2026-10-24 - Solver APIs #11293
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11318. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Analyzed the Solver API family (non-units, trail, levels, congruence closure, set_initial_value, cube, translate, from_string/from_file, consequences, import_model_converter, user propagator) across C++, Python, Java, .NET, JS/TS, OCaml and Go. The Rust
z3crate was not cloned in this run (no network/clone step performed), so it is not covered.Cached issues from previous runs: none (cache empty). Resolved: 0.
Findings
Most of the solver API is coherent across languages. The Java, JS and OCaml bindings use different names (e.g. JS
nonUnits/trailLevels, OCamlget_levels), but the functionality is present.Medium
Z3_solver_propagate_*is exposed in C++, Python, Java (UserPropagatorBase.java), .NET (UserPropagator.cs) and Go (propagator.go). In OCaml (src/api/ml/z3.ml/z3.mli) there is no match. JS/TS has only a mention of "propagat" intypes.ts, and noZ3_solver_propagate_initcall inhigh-level.ts, so it appears to be unsupported. Fix: add propagator wrappers to OCaml; evaluate JS.import_model_convertermissing in JS/TS and OCaml. Present in C++, Python, .NET, Go and Java (Solver.java). Fix: addimportModelConverter(src)in JSSolverandimport_model_converterin OCamlSolver.Low
trailLevels()vs C APIget_levels; JSunits()/nonUnits()returnAstVector, while OCaml returnsExpr.expr list.Progress
Solver family: done (~1 of ~15 families, ~7%).
Next runs: Arrays, BitVectors, Floating point, Sequences/Strings, Optimize, Tactics/Goals, Fixedpoint, Rust crate comparison.
All reactions