def is_ancestor(self, other):
    if isinstance(other, ir.Expr):
        other = other.op()
    return self.equals(other)
def is_ancestor(self, other):
    if isinstance(other, ir.Expr):
        other = other.op()
    return self.equals(other)