You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[API Coherence] Report for 2026-11-25 - Solver and Optimize APIs
#11849
First run (cache was empty). Analyzed the Solver and Optimize C API families: about 24 functions across Java, .NET, C++, Python, TypeScript, OCaml and Go. Rust was not analyzed because cloning prove-rs/z3.rs was blocked (HTTP 403). Previously cached issues resolved: 0 (none existed).
Method: grep of Z3_* / Native.* / Z3native.* call sites in each binding. Findings are call-site based and have not been checked by hand against each binding's public API, so treat them as leads.
Medium priority
Go: Z3_optimize_get_statistics and Z3_optimize_set_initial_value are not wrapped. Both exist in Java, .NET, C++, Python and TS (set_initial_value is also in OCaml? No, see item 3). Fix: add Optimize.Statistics() and Optimize.SetInitialValue(var, value) to src/api/go/optimize.go.
OCaml Optimize: Z3_optimize_get_unsat_core and Z3_optimize_assert_and_track have no Z3native call in z3.ml. Both are present in Java, .NET, C++, Python, TS and Go. Fix: add Optimize.get_unsat_core and Optimize.assert_and_track to z3.ml and z3.mli.
OCaml: Z3_optimize_set_initial_value is missing. It is present in Java, .NET, C++, Python and TS.
C++: Z3_optimize_get_reason_unknown is not wrapped in z3++.h. Present in Java, .NET, Python, TS, OCaml and Go. Fix: add optimize::reason_unknown().
Low priority
OCaml and TS: Z3_solver_import_model_converter is not wrapped. Present in Java, .NET, C++, Python and Go.
Java: Z3_solver_to_string is not called through Native.Solver.toString() exists at Solver.java:610, so this may simply use a different native call. Needs a manual check.
Java Optimize: no translate wrapper.Z3_optimize_translate is present in OCaml, TS and Go. Needs a manual check.
Z3_solver_propagate_init is not wrapped in Java, TS, OCaml or Go. It is present in .NET, C++ and Python. This is the user-propagator feature, and the gap is probably intentional.
Progress
Roughly 25 of about 200 API areas covered (about 12%). Analyzed so far: Solver and Optimize.
Next: Fixedpoint/Datalog, Arrays and Sets, FloatingPoint, Sequences/Strings and Regex, Tactics/Goals/Probes. Rust to be done once the clone works.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
github.com
To allow these domains, add them to the network.allowed list in your workflow frontmatter:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Summary
First run (cache was empty). Analyzed the Solver and Optimize C API families: about 24 functions across Java, .NET, C++, Python, TypeScript, OCaml and Go. Rust was not analyzed because cloning
prove-rs/z3.rswas blocked (HTTP 403). Previously cached issues resolved: 0 (none existed).Method: grep of
Z3_*/Native.*/Z3native.*call sites in each binding. Findings are call-site based and have not been checked by hand against each binding's public API, so treat them as leads.Medium priority
Z3_optimize_get_statisticsandZ3_optimize_set_initial_valueare not wrapped. Both exist in Java, .NET, C++, Python and TS (set_initial_valueis also in OCaml? No, see item 3). Fix: addOptimize.Statistics()andOptimize.SetInitialValue(var, value)tosrc/api/go/optimize.go.Optimize:Z3_optimize_get_unsat_coreandZ3_optimize_assert_and_trackhave noZ3nativecall inz3.ml. Both are present in Java, .NET, C++, Python, TS and Go. Fix: addOptimize.get_unsat_coreandOptimize.assert_and_tracktoz3.mlandz3.mli.Z3_optimize_set_initial_valueis missing. It is present in Java, .NET, C++, Python and TS.Z3_optimize_get_reason_unknownis not wrapped inz3++.h. Present in Java, .NET, Python, TS, OCaml and Go. Fix: addoptimize::reason_unknown().Low priority
Z3_solver_import_model_converteris not wrapped. Present in Java, .NET, C++, Python and Go.Z3_solver_to_stringis not called throughNative.Solver.toString()exists atSolver.java:610, so this may simply use a different native call. Needs a manual check.Optimize: notranslatewrapper.Z3_optimize_translateis present in OCaml, TS and Go. Needs a manual check.Z3_solver_propagate_initis not wrapped in Java, TS, OCaml or Go. It is present in .NET, C++ and Python. This is the user-propagator feature, and the gap is probably intentional.Progress
Roughly 25 of about 200 API areas covered (about 12%). Analyzed so far: Solver and Optimize.
Next: Fixedpoint/Datalog, Arrays and Sets, FloatingPoint, Sequences/Strings and Regex, Tactics/Goals/Probes. Rust to be done once the clone works.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
github.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.
All reactions