mirror of
https://github.com/Z3Prover/z3
synced 2026-03-21 20:18:50 +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:
parent
8fad12fe18
commit
28fbe33114
8 changed files with 106 additions and 0 deletions
|
|
@ -511,3 +511,9 @@ func (m *Model) SortUniverse(sort *Sort) []*Expr {
|
|||
}
|
||||
return astVectorToExprs(m.ctx, vec)
|
||||
}
|
||||
|
||||
// Translate creates a copy of the model in the target context.
|
||||
func (m *Model) Translate(target *Context) *Model {
|
||||
ptr := C.Z3_model_translate(m.ctx.ptr, m.ptr, target.ptr)
|
||||
return newModel(target, ptr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue