mirror of
https://github.com/Z3Prover/z3
synced 2025-06-19 20:33:38 +00:00
added debug assertion
Signed-off-by: Christoph M. Wintersteiger <cwinter@microsoft.com>
This commit is contained in:
parent
aba79802cf
commit
4da56aa4df
1 changed files with 1 additions and 0 deletions
|
@ -4128,6 +4128,7 @@ class Datatype:
|
||||||
"""
|
"""
|
||||||
if __debug__:
|
if __debug__:
|
||||||
_z3_assert(isinstance(name, str), "String expected")
|
_z3_assert(isinstance(name, str), "String expected")
|
||||||
|
_z3_assert(name != "")
|
||||||
return self.declare_core(name, "is_" + name, *args)
|
return self.declare_core(name, "is_" + name, *args)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue