Repository navigation
[API Coherence] Report for 2026-11-10 - Solver & Optimize APIs #11628
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11647. |
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: Solver APIs (reason_unknown, units/non_units, trail, translate, levels, initial value, congruence_root, cube, consequences) and Optimize APIs (translate, reason_unknown, statistics, from_string, assert_and_track).
~25 C API functions checked across Java, .NET, C++, Python, TypeScript, OCaml, Go. Rust was not analyzed this run (external repo not cloned). Cache was empty (first run); no prior issues to re-verify.
Result: Solver APIs are coherent in all languages. Optimize has three gaps.
Medium Priority
Z3_optimize_get_statisticsnot wrapped insrc/api/go/optimize.go. Present in C, C++, Java, .NET, Python, JS, OCaml. Fix: addOptimize.GetStatistics()returning a Statistics type.Z3_optimize_assert_and_tracknot wrapped inOptimizemodule (src/api/ml/z3.ml~line 2197, plusz3.mli). Present in Java, .NET, C++, Python, JS, Go. Fix: addOptimize.assert_and_track.Z3_optimize_translatenot wrapped insrc/api/java/Optimize.java(Java's Solver has translate). Present in C++, Python, JS, OCaml, Go. Fix: addOptimize.translate(Context). .NET appeared to lack it as well in the grep scan (not individually verified).Low Priority
optimizehas noZ3_optimize_get_reason_unknownwrapper by name (grep found none; not deeply verified).Progress
~25 / ~200 API functions analyzed (~12%).
Next: Arrays, Floating-point, Sequences/strings, Quantifiers/Patterns, Tactics/Probes, then Rust.
All reactions