3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-01-02 22:54:49 -08:00
parent e10ecad5dc
commit 1147037a99

View file

@ -9015,12 +9015,13 @@ def Empty(s):
>>> print(e)
""
>>> e2 = String("")
>>> print(e == e2)
>>> print(e.eq(e2))
True
>>> e3 = Empty(SeqSort(IntSort()))
>>> 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):
"""Create a singleton sequence"""