Repository navigation
[API Coherence] Report for 2026-10-29 - Solver, Optimize APIs #11433
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11453. |
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, Optimize APIs (C API baseline vs Java, .NET, C++, Python, TypeScript, OCaml, Go). Rust (external crate) not cloned this run.
~45 C API functions checked via name-based search. Previously cached issues: none (first run).
Method note: automated name matching; findings below were spot-checked with grep, but maintainers should confirm before acting.
Medium priority
src/api/ml/z3.ml,Optimizemodule). Present in Java, .NET, C++, Python, TS. Suggest wrappers forZ3_optimize_get_unsat_core,Z3_optimize_assert_and_track,Z3_optimize_set_initial_value.Z3_optimize_set_initial_valuemissing in Go (src/api/go/), present elsewhere.Z3_optimize_translatemissing in Java and .NET; present in Python, C++, TS.Z3_solver_import_model_convertermissing in OCaml and TypeScript.reason_unknownmissing in C++ (z3++.hoptimize class has noreason_unknown(); solver and fixedpoint do). AlsoZ3_optimize_get_param_descrsnot wrapped in C++, Go, TS.Low priority
Z3_solver_get_help/Z3_solver_get_param_descrsmissing in TS;Z3_solver_get_helpmissing in C++ (Z3_optimize_get_helpmissing in TS).Z3_solver_interruptnot wrapped in C++, TS; .NET only has context-levelZ3_interrupt.Z3_solver_propagate_register(user propagator) absent in Java and OCaml solver wrappers (Java likely uses its own UserPropagatorBase mechanism; verify).Z3_optimize_register_model_ehabsent in all languages.Solver.toString/getNumScopesdirect Native calls by that name (Java usesZ3_solver_to_stringvia toString — grep showed 0 for camelCase name; verify).Progress
Roughly 2 of ~15 API families (~13%). Next: Fixedpoint, Tactics/Probes/Simplifiers, Arrays, Floating-point, Sequences/Strings, Rust crate comparison.
All reactions