Repository navigation
[API Coherence] Report for 2026-11-14 - Solver APIs #11697
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11712. |
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, covering about 30
Z3_solver_*functions across C++, Python, Java, .NET, TypeScript, OCaml and Go. The checks were grep-based name matches, not a line-by-line review. The cache was empty (first run), so there were no cached issues to re-verify. Rust (prove-rs/z3.rs) was not cloned or analyzed this run.Coverage
Present in nearly all bindings: push/pop, check, unsat core, proof, statistics, reason_unknown, translate, set_params, get_levels, get_trail, get_non_units, cube, assert_and_track, add_simplifier, get_consequences, set_initial_value, congruence_root.
Findings
Medium
Z3_solver_solve_foris missing in .NET.SolveForhas no match insrc/api/dotnet/*.cs. It exists in C++, Python, Java, Go, TypeScript (solveForintypes.ts:1373) and the OCaml native layer. Suggested fix: addSolver.SolveFor(IEnumerable<Expr> vars, IEnumerable<Expr> terms, IEnumerable<BoolExpr> guards)toSolver.csandNativeSolver.cs.solver_propagate_init,solver_next_splitandsolver_import_model_converterinhigh-level.ts.z3.ml/z3.mli.importModelConverterfirst; the user-propagator API is a larger task.Low
Solver.set_parametersexists inz3.mli, but a grep forsolver_set_paramsinz3.mlreturns only one hit. No inconsistency was confirmed; this needs a manual look.Progress
All reactions