def __eq__(self, other):
    return (isinstance(other, ArrayRef) and (other.a == self.a) and (other.i == self.i))
def __eq__(self, other):
    return (isinstance(other, ArrayRef) and (other.a == self.a) and (other.i == self.i))