Skip to content

Commit

Permalink
Add high-level binding for string length
Browse files Browse the repository at this point in the history
Signed-off-by: Yage Hu <me@huyage.dev>
  • Loading branch information
yagehu committed Oct 18, 2024
1 parent 7b00b99 commit 397b32b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions z3/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,11 @@ impl<'ctx> String<'ctx> {
concat(Z3_mk_seq_concat, String<'ctx>);
}

unop! {
/// Gets the length of `Self`.
length(Z3_mk_seq_length, Int<'ctx>);
}

binop! {
/// Checks whether `Self` contains a substring
contains(Z3_mk_seq_contains, Bool<'ctx>);
Expand Down

0 comments on commit 397b32b

Please sign in to comment.