3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-02-23 00:37:36 +00:00

Add datatype_update_field to C++, Python, TypeScript, and OCaml bindings

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-04 21:57:57 +00:00
parent d9bb80cf89
commit ac39c021bf
5 changed files with 61 additions and 0 deletions

View file

@ -961,6 +961,9 @@ struct
let g j = Z3native.get_datatype_sort_constructor_accessor (Sort.gc x) x i j in
List.init ds g) in
List.init n f
let update_field (ctx:context) (field_access:FuncDecl.func_decl) (t:Expr.expr) (v:Expr.expr) =
Z3native.datatype_update_field ctx field_access t v
end