Repository navigation
[API Coherence] Report for 2026-11-12 - Solver APIs (initial pass) #11667
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11687. |
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
Cache memory was empty, so this is the first run. This run covered Solver APIs only: 12
Z3_solver_*functions, checked across C++, Python, .NET, Java, TypeScript, OCaml and Go. The Rustz3.rscrate was not analysed.Functions checked:
get_units,get_non_units,get_levels,get_trail,cube,congruence_root/next/explain,set_initial_value,from_file/from_string,get_consequences,propagate_init,to_string,translate,to_dimacs.Previously cached issues resolved: none, because there were none.
Findings
These are grep-level checks and have not been checked in depth.
Native.solverXxx, and TypeScript usesunits()/nonUnits()/trail()/trailLevels().Z3_solver_get_consequenceshas no wrapper in theSolversignature ofz3.mli. Java, .NET, Python, C++, Go and TypeScript have one. Suggested fix: addget_consequences : solver -> Expr.expr list -> Expr.expr list -> (status * Expr.expr list).trailLevels(), while the C API, Python, .NET and OCaml useget_levelsorgetLevels. This is unverified and probably just a naming difference.Z3_solver_propagate_*) appears to be missing from OCaml'sSolversignature, and Java does not appear to wrapsolverPropagateInitinSolver.java. I did not check where it lives.Progress
Roughly 1 of about 15 API families analysed (about 7%).
Next runs: Optimize, Tactics/Goals/Probes, Fixedpoint, BitVector, Arrays, Floating-point, Sequences/Strings, Datatypes, and Rust (
z3.rs).All reactions