3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-03-20 20:05:51 +00:00

Add missing API bindings: Python BvNand/BvNor/BvXnor, Go MkAsArray/MkRecFuncDecl/AddRecDef/Model.Translate, TS Array.fromFunc/Model.translate, OCaml Model.translate

Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-03-02 00:21:57 +00:00
parent 8fad12fe18
commit 28fbe33114
8 changed files with 106 additions and 0 deletions

View file

@ -1692,6 +1692,8 @@ struct
let av = Z3native.model_get_sort_universe (gc x) x s in
AST.ASTVector.to_expr_list av
let translate (x:model) (to_ctx:context) = Z3native.model_translate (gc x) x to_ctx
let to_string (x:model) = Z3native.model_to_string (gc x) x
end

View file

@ -3057,6 +3057,10 @@ sig
@return A list of expressions, where each is an element of the universe of the sort *)
val sort_universe : model -> Sort.sort -> Expr.expr list
(** Translate the model to a different context.
@return A new model in the target context *)
val translate : model -> context -> model
(** Conversion of models to strings.
@return A string representation of the model. *)
val to_string : model -> string