Skip to content

Commit

Permalink
update ml api
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Feb 1, 2023
1 parent 1289937 commit d51d518
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/api/ml/z3.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,10 @@ module Simplifier =
struct
type simplifier = Z3native.simplifier
let gc = Z3native.context_of_simplifier
let mk_simplifier = Z3native.mk_simplifier

let get_help (x:simplifier) = Z3native.simplifier_get_help (gc x) x

let get_param_descrs (x:simplifier) = Z3native.simplifier_get_param_descrs (gc x) x

let get_num_simplifiers = Z3native.get_num_simplifiers

Expand All @@ -1747,8 +1750,9 @@ struct
let f i = Z3native.get_simplifier_name ctx i in
mk_list f n

let get_help (x:simplifier) = Z3native.simplifier_get_help (gc x) x
let get_param_descrs (x:simplifier) = Z3native.simplifier_get_param_descrs (gc x) x
let get_simplifier_description (ctx:context) (s:string) = Z3native.simplifier_get_descr

let mk_simplifier = Z3native.mk_simplifier

let and_then (ctx:context) (t1:simplifier) (t2:simplifier) (ts:simplifier list) =
let f p c = (match p with
Expand All @@ -1758,6 +1762,7 @@ struct
| None -> Z3native.simplifier_and_then ctx t1 t2
| Some(x) -> let o = Z3native.simplifier_and_then ctx t2 x in
Z3native.simplifier_and_then ctx t1 o

let using_params = Z3native.simplifier_using_params
let with_ = using_params

Expand Down
1 change: 1 addition & 0 deletions src/api/ml/z3.mli
Original file line number Diff line number Diff line change
Expand Up @@ -3130,6 +3130,7 @@ sig

(** Create a simplifier that applies a simplifier using the given set of parameters. *)
val using_params : context -> simplifier -> Params.params -> simplifier
val with_ : context -> simplifier -> Params.params -> simplifier

end

Expand Down

0 comments on commit d51d518

Please sign in to comment.