mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 17:45:32 +00:00
Added default operator to array interface.
This commit is contained in:
parent
a7a0deed3f
commit
68c086c589
1 changed files with 6 additions and 0 deletions
|
@ -3906,6 +3906,12 @@ class ArrayRef(ExprRef):
|
|||
arg = self.domain().cast(arg)
|
||||
return _to_expr_ref(Z3_mk_select(self.ctx_ref(), self.as_ast(), arg.as_ast()), self.ctx)
|
||||
|
||||
def default(self):
|
||||
return _to_expr_ref(Z3_mk_array_default(self.ctx_ref(), self.as_ast()), self.ctx)
|
||||
|
||||
|
||||
|
||||
|
||||
def is_array(a):
|
||||
"""Return `True` if `a` is a Z3 array expression.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue