mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 18:31:49 +00:00
fix is-array-sort test again
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
892aa12660
commit
0734c5f3f3
|
@ -4298,7 +4298,7 @@ def is_array(a):
|
|||
return isinstance(a, ArrayRef)
|
||||
|
||||
def is_array_sort(a):
|
||||
return _ast_kind(a.ctx, a.sort()) == Z3_ARRAY_SORT
|
||||
return Z3_get_sort_kind(a.ctx.ref(), Z3_get_sort(a.ctx.ref(), a.ast)) == Z3_ARRAY_SORT
|
||||
|
||||
def is_const_array(a):
|
||||
"""Return `True` if `a` is a Z3 constant array.
|
||||
|
|
Loading…
Reference in a new issue