mirror of
https://github.com/Z3Prover/z3
synced 2026-03-02 03:36:53 +00:00
Add missing API bindings: importModelConverter, OnClause, and user propagator
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
43dee82caa
commit
0de7af9112
8 changed files with 672 additions and 0 deletions
|
|
@ -350,6 +350,13 @@ func (s *Solver) SolveFor(variables []*Expr, terms []*Expr, guards []*Expr) {
|
|||
C.Z3_solver_solve_for(s.ctx.ptr, s.ptr, varVec, termVec, guardVec)
|
||||
}
|
||||
|
||||
// ImportModelConverter imports the model converter from src into this solver.
|
||||
// This transfers model simplifications from one solver instance to another,
|
||||
// useful when combining results from multiple solver instances.
|
||||
func (dst *Solver) ImportModelConverter(src *Solver) {
|
||||
C.Z3_solver_import_model_converter(dst.ctx.ptr, src.ptr, dst.ptr)
|
||||
}
|
||||
|
||||
// Model represents a Z3 model (satisfying assignment).
|
||||
type Model struct {
|
||||
ctx *Context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue