mirror of
https://github.com/Z3Prover/z3
synced 2025-08-15 07:15:26 +00:00
add > operator as shorthand for Array
This commit is contained in:
parent
3abb091336
commit
57a60c832b
1 changed files with 4 additions and 0 deletions
|
@ -653,6 +653,10 @@ class SortRef(AstRef):
|
||||||
"""
|
"""
|
||||||
return not Z3_is_eq_sort(self.ctx_ref(), self.ast, other.ast)
|
return not Z3_is_eq_sort(self.ctx_ref(), self.ast, other.ast)
|
||||||
|
|
||||||
|
def __gt__(self, other):
|
||||||
|
"""Create the function space Array(self, other)"""
|
||||||
|
return ArraySort(self, other)
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
""" Hash code. """
|
""" Hash code. """
|
||||||
return AstRef.__hash__(self)
|
return AstRef.__hash__(self)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue