3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 02:45:51 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-03-09 19:31:30 -08:00
parent c7bbf2f8de
commit 5bc0fb47a8
3 changed files with 24 additions and 1 deletions

View file

@ -10006,7 +10006,7 @@ def is_string_value(a):
def StringVal(s, ctx=None):
"""create a string expression"""
ctx = _get_ctx(ctx)
return SeqRef(Z3_mk_string(ctx.ref(), s), ctx)
return SeqRef(Z3_mk_lstring(ctx.ref(), len(s), s), ctx)
def String(name, ctx=None):
"""Return a string constant named `name`. If `ctx=None`, then the global context is used.