Repository navigation
[API Coherence] Report for 2026-11-06 - Solver APIs #11575
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11593. |
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 across C++, Python, .NET, Java, TypeScript, OCaml and Go. This was a first run (no cache), and I checked 23
Z3_solver_*functions. I did not analyze Rust (the external z3.rs repo wasn't cloned in this run). Previously cached issues resolved: none, because none were cached.Coverage was checked by grepping each binding for the C function or its wrapper. Most of the solver surface is covered everywhere: reason_unknown, proof, translate, set_params, statistics, unsat_core, consequences, cube, non_units, trail, levels, from_string, congruence_root, set_initial_value, check_assumptions, assert_and_track, assertions and num_scopes.
Medium priority gaps
Z3_solver_get_helpis missing in the TypeScript high-level API and in C++.Solver::help()exists in neither, although it does exist for Tactic, Simplifier, Optimize and Fixedpoint. It is present in Python, .NET, Java, OCaml and Go. Suggested fix: addSolver.help()tosrc/api/js/src/high-level/high-level.tsand toz3++.h.Z3_solver_get_param_descrsis missing in the TypeScript high-level API. It is present in the other languages. Suggested fix: add aSolver.paramDescrs()equivalent.Z3_solver_import_model_converteris missing in TypeScript and OCaml. It is present in C++, Python, .NET, Java and Go. Suggested fix: addimportModelConverter(other)and the OCaml equivalent.Low priority gaps
Z3_solver_propagate_init(the user-propagator entry point) is not exposed as a high-level wrapper in TypeScript or OCaml. A Java grep found nosolverPropagateInitcall, but this was not verified againstUserPropagatorBase, so the Java status is unconfirmed. Go exposes it throughpropagator.go. Suggested fix: add a user-propagator API to TypeScript and OCaml.Progress
All reactions