3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-26 02:25:32 +00:00
Expose diff function,
expose allchar in Java API
expose op codes for replace/re/all
This commit is contained in:
Nikolaj Bjorner 2021-12-20 10:17:06 -08:00
parent f01d096fb5
commit 7a6070506d
7 changed files with 62 additions and 1 deletions

View file

@ -11065,6 +11065,11 @@ def Range(lo, hi, ctx=None):
hi = _coerce_seq(hi, ctx)
return ReRef(Z3_mk_re_range(lo.ctx_ref(), lo.ast, hi.ast), lo.ctx)
def Diff(a, b, ctx=None):
"""Create the difference regular epression
"""
return ReRef(Z3_mk_re_diff(a.ctx_ref(), a.ast, b.ast), a.ctx)
def AllChar(regex_sort, ctx=None):
"""Create a regular expression that accepts all single character strings
"""