3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-14 23:05:26 +00:00

add > operator as shorthand for Array

This commit is contained in:
Nikolaj Bjorner 2025-08-13 10:24:12 -07:00
parent 3abb091336
commit 57a60c832b

View file

@ -653,6 +653,10 @@ class SortRef(AstRef):
"""
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):
""" Hash code. """
return AstRef.__hash__(self)