3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-05-25 11:26:21 +00:00

Expose other mk_seq_replace variants in OCaml bindings (#9586)

Also update the documentation for the base `mk_seq_replace` function to
match the new inline documentation style.
This commit is contained in:
Filipe Marques 2026-05-21 18:28:48 +01:00 committed by GitHub
parent 1323530001
commit ce6abd65db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 1 deletions

View file

@ -1297,6 +1297,9 @@ struct
let mk_seq_contains = Z3native.mk_seq_contains
let mk_seq_extract = Z3native.mk_seq_extract
let mk_seq_replace = Z3native.mk_seq_replace
let mk_seq_replace_all = Z3native.mk_seq_replace_all
let mk_seq_replace_re = Z3native.mk_seq_replace_re
let mk_seq_replace_re_all = Z3native.mk_seq_replace_re_all
let mk_seq_at = Z3native.mk_seq_at
let mk_seq_length = Z3native.mk_seq_length
let mk_seq_nth = Z3native.mk_seq_nth

View file

@ -1987,9 +1987,22 @@ sig
(** extract sub-sequence starting at index given by second argument and of length provided by third argument *)
val mk_seq_extract : context -> Expr.expr -> Expr.expr -> Expr.expr -> Expr.expr
(** replace first occurrence of second argument by third *)
(** [mk_seq_replace ctx seq target replacement] replaces the first occurrence
of [target] within [seq] with [replacement]. *)
val mk_seq_replace : context -> Expr.expr -> Expr.expr -> Expr.expr -> Expr.expr
(** [mk_seq_replace_all ctx seq target replacement] replaces all occurrences
of [target] within [seq] with [replacement]. *)
val mk_seq_replace_all : context -> Expr.expr -> Expr.expr -> Expr.expr -> Expr.expr
(** [mk_seq_replace_re ctx seq re replacement] replaces the first occurrence
matching the regular expression [re] within [seq] with [replacement]. *)
val mk_seq_replace_re : context -> Expr.expr -> Expr.expr -> Expr.expr -> Expr.expr
(** [mk_seq_replace_re_all ctx seq re replacement] replaces all occurrences
matching the regular expression [re] within [seq] with [replacement]. *)
val mk_seq_replace_re_all : context -> Expr.expr -> Expr.expr -> Expr.expr -> Expr.expr
(** a unit sequence at index provided by second argument *)
val mk_seq_at : context -> Expr.expr -> Expr.expr -> Expr.expr