3
0
Fork 0
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:
Nikolaj Bjorner 2019-08-15 10:18:50 -07:00
parent 892aa12660
commit 0734c5f3f3

View file

@ -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.