mirror of
https://github.com/Z3Prover/z3
synced 2025-06-09 23:53:25 +00:00
Allow building AC functions without requiring arity check from API
This commit is contained in:
parent
806a4772bc
commit
7d364bf786
2 changed files with 5 additions and 6 deletions
|
@ -763,8 +763,6 @@ class FuncDeclRef(AstRef):
|
|||
>>> f.domain(1)
|
||||
Real
|
||||
"""
|
||||
if z3_debug():
|
||||
_z3_assert(i < self.arity(), "Index out of bounds")
|
||||
return _to_sort_ref(Z3_get_domain(self.ctx_ref(), self.ast, i), self.ctx)
|
||||
|
||||
def range(self):
|
||||
|
@ -834,8 +832,6 @@ class FuncDeclRef(AstRef):
|
|||
"""
|
||||
args = _get_args(args)
|
||||
num = len(args)
|
||||
if z3_debug():
|
||||
_z3_assert(num == self.arity(), "Incorrect number of arguments to %s" % self)
|
||||
_args = (Ast * num)()
|
||||
saved = []
|
||||
for i in range(num):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue