Repository navigation
[API Coherence] Report for 2026-11-20 - Solver APIs #11789
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11807. |
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 the Solver API family: ~20 C API functions (consequences, cube, units/non_units, trail/levels, translate, from_file/from_string, to_dimacs, congruence_*, set_initial_value, solve_for, register_on_clause, next_split) across C#, Java, C++, Python, TypeScript, OCaml, Go. Rust (external z3.rs) not cloned this run.
Previously cached issues resolved: none (no cache).
Findings
Medium
1.
Z3_solver_solve_formissing in .NETSolver.solveFor), TypeScript (solveFor), Go (SolveFor), OCaml (Solver.solve_for)src/api/dotnet/Solver.cshas no SolveFor)SolveFor(Expr[] variables, Expr[] terms, BoolExpr[] guards)toSolver.cs.2.
Z3_solver_register_on_clausemissing as Solver-level API in Java: Java hasOnClause.javaclass, so functionally covered; naming differs from other languages (low risk).Low
3.
Z3_solver_next_splitmissing in TypeScript (available in .NET, Java viaUserPropagatorBase.nextSplit, C++, Python, Go). TypeScript has no user-propagator wrapper for it.4. Naming inconsistency: DIMACS export is
toDimacs(Java),dimacs(TS),Dimacs(Go),to_dimacs(OCaml); trail levelsgetLevelsvstrailLevels(TS). Minor.Coherent areas
consequences, cube, units, non_units, translate, from_file, from_string, get_levels, congruence_root/next/explain, set_initial_value are present in all of C#, Java, C++, Python, TS, OCaml, Go.
Progress
Solver APIs ≈ 1 of ~12 families (~8%).
Next: Arrays, BitVectors, Floating-point, Optimize, Rust crate comparison.
All reactions