MCPcopy Create free account
hub / github.com/Z3Prover/z3 / is_array

Function is_array

src/api/python/z3/z3.py:4801–4812  ·  view source on GitHub ↗

Return `True` if `a` is a Z3 array expression. >>> a = Array('a', IntSort(), IntSort()) >>> is_array(a) True >>> is_array(Store(a, 0, 1)) True >>> is_array(a[0]) False

(a : Any)

Source from the content-addressed store, hash-verified

4799
4800
4801def is_array(a : Any) -> bool:
4802 """Return `True` if `a` is a Z3 array expression.
4803
4804 >>> a = Array('a', IntSort(), IntSort())
4805 >>> is_array(a)
4806 True
4807 >>> is_array(Store(a, 0, 1))
4808 True
4809 >>> is_array(a[0])
4810 False
4811 """
4812 return isinstance(a, ArrayRef)
4813
4814
4815def is_const_array(a):

Callers 12

is_arrayMethod · 0.85
get_array_range_recMethod · 0.85
check_proof_sortsMethod · 0.85
MapFunction · 0.85
ExtFunction · 0.85
array_domainMethod · 0.85
array_rangeMethod · 0.85
operator[]Method · 0.85
validate_checkMethod · 0.85
collect_shared_varsMethod · 0.85
new_diseq_ehMethod · 0.85
internalize_ehMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected