def _scan_real_end_loop(bytecode, setuploop_inst):
    start = setuploop_inst.next
    end = start + setuploop_inst.arg
    offset = start
    depth = 0
    while offset < end:
        inst = bytecode[offset]
        depth += inst.block_effect
        if depth < 0:
            return inst.next
        offset = inst.next
Find the end of loop.
dataset/ETHPy150Open numba/numba/numba/looplifting.py/_scan_real_end_loop