mirror of
https://github.com/Z3Prover/z3
synced 2025-07-31 16:33:18 +00:00
seq API
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e10ecad5dc
commit
1147037a99
1 changed files with 3 additions and 2 deletions
|
@ -9015,12 +9015,13 @@ def Empty(s):
|
||||||
>>> print(e)
|
>>> print(e)
|
||||||
""
|
""
|
||||||
>>> e2 = String("")
|
>>> e2 = String("")
|
||||||
>>> print(e == e2)
|
>>> print(e.eq(e2))
|
||||||
True
|
True
|
||||||
>>> e3 = Empty(SeqSort(IntSort()))
|
>>> e3 = Empty(SeqSort(IntSort()))
|
||||||
>>> print(e3)
|
>>> print(e3)
|
||||||
|
seq.empty
|
||||||
"""
|
"""
|
||||||
return SeqRef(Z3_mk_seq_empty(s.ctx_ref(), s.as_ast()), s.ctx)
|
return SeqRef(Z3_mk_seq_empty(s.ctx_ref(), s.ast), s.ctx)
|
||||||
|
|
||||||
def Unit(a):
|
def Unit(a):
|
||||||
"""Create a singleton sequence"""
|
"""Create a singleton sequence"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue