3
0
Fork 0
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:
Nikolaj Bjorner 2023-01-22 14:39:58 -08:00
parent 806a4772bc
commit 7d364bf786
2 changed files with 5 additions and 6 deletions

View file

@ -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):