int (BasicBlock block, int index) { InstructionSequence seq = block.getSeq(); while (++index < seq.length()) { switch (seq.getInstr(index).opcode) { case opc_nop, opc_istore, opc_lstore, opc_fstore, opc_dstore, opc_astore -> { continue; } } return block.getOriginalOffset(index); } List<BasicBlock> successors = block.getSuccessors(); if (successors.size() == 1) { return successors.get(0).getOriginalOffset(0); } return -1; }