mirror of
https://github.com/Z3Prover/z3
synced 2026-05-04 01:15:15 +00:00
Implement register_on_clause for OCaml and TypeScript bindings
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
c4f85493a7
commit
234913bf56
11 changed files with 159 additions and 14 deletions
|
|
@ -2019,6 +2019,11 @@ struct
|
|||
List.iter (fun e -> Z3native.ast_vector_push (gc x) term_vec e) terms;
|
||||
List.iter (fun e -> Z3native.ast_vector_push (gc x) guard_vec e) guards;
|
||||
Z3native.solver_solve_for (gc x) x var_vec term_vec guard_vec
|
||||
|
||||
let register_on_clause (s:solver) (callback: Expr.expr option -> int list -> Expr.expr list -> unit) =
|
||||
Z3native.solver_register_on_clause (gc s) s (fun proof_hint deps lits ->
|
||||
let lits_list = AST.ASTVector.to_expr_list lits in
|
||||
callback proof_hint deps lits_list)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue