mirror of
https://github.com/Z3Prover/z3
synced 2025-04-06 17:44:08 +00:00
parent
0acc042bf7
commit
9cf99e26a6
|
@ -4490,11 +4490,15 @@ def K(dom, v):
|
||||||
return ArrayRef(Z3_mk_const_array(ctx.ref(), dom.ast, v.as_ast()), ctx)
|
return ArrayRef(Z3_mk_const_array(ctx.ref(), dom.ast, v.as_ast()), ctx)
|
||||||
|
|
||||||
def Ext(a, b):
|
def Ext(a, b):
|
||||||
"""Return extensionality index for arrays.
|
"""Return extensionality index for one-dimensional arrays.
|
||||||
|
>> a, b = Consts('a b', SetSort(IntSort()))
|
||||||
|
>> Ext(a, b)
|
||||||
|
Ext(a, b)
|
||||||
"""
|
"""
|
||||||
|
ctx = a.ctx
|
||||||
if __debug__:
|
if __debug__:
|
||||||
_z3_assert(is_array(a) and is_array(b))
|
_z3_assert(is_array(a) and is_array(b), "arguments must be arrays")
|
||||||
return _to_expr_ref(Z3_mk_array_ext(ctx.ref(), a.as_ast(), b.as_ast()));
|
return _to_expr_ref(Z3_mk_array_ext(ctx.ref(), a.as_ast(), b.as_ast()), ctx)
|
||||||
|
|
||||||
def is_select(a):
|
def is_select(a):
|
||||||
"""Return `True` if `a` is a Z3 array select application.
|
"""Return `True` if `a` is a Z3 array select application.
|
||||||
|
|
Loading…
Reference in a new issue