Repository navigation
[API Coherence] Report for 2026-11-03 - Solver APIs (advanced/introspection) #11525
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11542. |
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
First run (cache empty). Analyzed ~16
Z3_solver_*functions (levels, cube, units, non-units, trail, initial value, consequences, from_file, to_string, translate, reason_unknown, import_model_converter, congruence_root, next_split, register_on_clause, propagate_register) across C++, Java, .NET, Python, TypeScript, OCaml, Go. Rust (external z3.rs) was not analyzed this run. Cached issues resolved: 0 (none existed).Method: grep/name-based comparison, so I may have missed differently-named wrappers.
Findings
Medium
getUnits,getNonUnits,getTrail,importModelConverter, andZ3_solver_next_splithave no wrapper insrc/api/js/src/high-level/high-level.ts. Present in C++, Python, .NET, Go, and (units/trail) Java and OCaml. Suggested fix: addunits(),nonUnits(),trail()toSolver.import_model_converter. It has units, trail, cube, consequences, andregister_on_clause, but not this. It is present in C++, Python, .NET, Java, and Go. Fix: addSolver.import_model_converter : solver -> solver -> unit.Z3_solver_next_splitand apropagate-related wrapper for it. It is present in C++, Python, .NET, and Go. Fix: add the wrapper toSolver.javaor the user propagator class.Low
OnClauseis inpropagator.go, not the Solver, so discoverability differs. Naming is otherwise consistent.get_levelsreturnsint arraywhile other languages use vectors or lists. This is a convention difference only.next_splitandsolver_propagate_*parity.register_on_clauseexists in TypeScript.Verified against the current codebase on 2026-11-03.
Progress
Roughly 5% of the API surface analyzed (Solver advanced APIs).
Next run: Solver core, Context creation, BitVector, Array theory, Floating-point, Rust comparison.
All reactions