Repository navigation
[API Coherence] Report for 2026-10-02 - Datatype update_field, n-ary Array select/store, Re-verification #11011
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11032. |
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
This run focused on: Datatype update_field API, n-ary Array select/store API, and a spot-check re-verification of 7 previously cached high/medium-priority issues (Go error handler, C++/Go Pattern construction, C++/Go/TS as-array introspection, TS TupleSort/EnumSort, and the multi-language Model construction gap).
Z3_datatype_update_field,Z3_mk_select_n,Z3_mk_store_n, plus targeted greps for 7 cached issuesResolution Updates
No previously cached issues were resolved this run. Spot-checked the following and confirmed they are still open:
Z3_mk_patternconstructionZ3_is_as_array/Z3_get_as_array_func_decl)Z3_mk_model,Z3_add_func_interp,Z3_add_const_interp,Z3_func_interp_add_entry)Fully Coherent (No Gaps Found)
Z3_mk_select_n/Z3_mk_store_n): fully coherent across C++ (select/storewith index vectors), Python (Select/Storen-ary forms), .NET (MkSelect/MkStorewith array args), Java (mkSelectN/mkStoreN), OCaml (mk_select_n/mk_store_n), Go (MkSelectN/MkStoreN), and TypeScript (array.select/.storewith multiple args). No gap.Z3_datatype_update_field): implemented in C++ (expr::update_field), Python (DatatypeRef.update_field), .NET (Context.MkUpdateFieldviaNative.Z3_datatype_update_field), Java (Context.mkUpdateField), OCaml (Datatype.update_field), TypeScript (datatype_update_fieldlow-level call used by high-level API), and Rust (prove-rs/z3.rs'sz3/src/ast/datatype.rswrapsZ3_datatype_update_field). Only Go is missing this wrapper — see new finding below.High Priority Issues
(carried over from prior runs, still unresolved — see full list in Progress section)
Z3_get_numeral_string/int64/uint64/double/numerator/denominator)Z3_mk_pattern)New Finding (Medium Priority)
Go missing
datatype_update_fieldwrapperWhat:
Z3_datatype_update_field(functional update of a single field in a datatype/record value) has no Go wrapper.Available in: C++ (
expr::update_field), Python (DatatypeRef.update_field), .NET (Context.MkUpdateField), Java (Context.mkUpdateField), OCaml (Datatype.update_field), TypeScript/JS (datatype_update_field), Rust (prove-rs/z3.rs,z3/src/ast/datatype.rs)Missing in: Go
Suggested fix: Add
func (c *Context) MkUpdateField(fieldAccess *FuncDecl, t *Expr, newValue *Expr) *Exprtosrc/api/go/datatype.go, wrappingC.Z3_datatype_update_field.File:
src/api/go/datatype.goPriority: Medium (functional record-update is a convenience feature; equivalent behavior achievable via constructor rebuild but with more boilerplate)
Verified: Checked current codebase 2026-10-02 — confirmed missing (no
UpdateField/update_field/datatype_update_fieldmatches anywhere insrc/api/go/*.go).Progress
del_context/memory lifecycle idioms,Z3_substituteedge cases (substitute with map vs list across languages), Datatype recursive/mutual accessor edge cases, and continue periodic regression spot-checks of previously "fully coherent" familiesFull Pending Issues List (for reference)
All reactions