Repository navigation
[API Coherence] Report for 2026-11-15 - Solver extended APIs #11712
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11736. |
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 extended Solver API family (15 C functions: consequences, cube, units, non_units, trail, translate, import_model_converter, set_initial_value, to_string, next_split, levels, from_string, get_proof, reason_unknown, propagate_register). Compared across C++, Python, .NET, Java, JS/TS, OCaml and Go. Rust (external crate) was not analyzed this run. Cache was empty, so no previously cached issues were re-verified.
Method: grep-based symbol matching, not full signature comparison. It was spot-checked by hand for the JS, OCaml and Java gaps below.
Findings
Medium
Z3_solver_import_model_converteris missing from JS/TS and OCaml. It is present in C++, Python, .NET, Java and Go. Suggested fix: addimportModelConverter(src)to the JSSolverinsrc/api/js/src/high-level/andSolver.import_model_convertertosrc/api/ml/z3.mlandz3.mli.Z3_solver_next_splitis exposed only asUserPropagatorBase.nextSplitin Java. There is noSolver-level equivalent. It is present in C++, Python, .NET and Go, and absent from JS and OCaml. This is likely by design, since it is a user-propagator callback. Worth confirming.Low
Z3_solver_propagate_register) are not exposed in JS or OCaml. This is a larger feature gap that may be intentional.Progress
Roughly 1 of about 20 API families (about 5%) has been analyzed.
Next run: Optimize/Fixedpoint APIs, Array theory, Floating-point APIs, Sequence/String APIs. Also analyze the Rust crate.
All reactions