mirror of
https://github.com/Z3Prover/z3
synced 2025-04-27 02:45:51 +00:00
parent
c7bbf2f8de
commit
5bc0fb47a8
3 changed files with 24 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue