@_infer_type.register(irast.Statement)
def __infer_statement(ir, schema):
    return infer_type(ir.expr, schema)
@_infer_type.register(irast.Statement)
def __infer_statement(ir, schema):
    return infer_type(ir.expr, schema)