def METHOD_NAME(e):
    res = []
    if isinstance(e, LoopIR.Read):
        res += [e.name]
        for ei in e.idx:
            res += METHOD_NAME(ei)
    elif isinstance(e, LoopIR.USub):
        res += METHOD_NAME(e.arg)
    elif isinstance(e, LoopIR.BinOp):
        res += METHOD_NAME(e.lhs)
        res += METHOD_NAME(e.rhs)
    elif isinstance(e, LoopIR.BuiltIn):
        for ei in e.args:
            res += METHOD_NAME(ei)
    elif isinstance(e, (LoopIR.WindowExpr, LoopIR.StrideExpr)):
        res += [e.name]
    return res