private void outputInstructions() {
    BasicBlockList blocks = method.getBlocks();
    int[] order = this.order;
    int len = order.length;

    // Process the blocks in output order.
    for (int i = 0; i < len; i++) {
      int nextI = i + 1;
      int nextLabel = (nextI == order.length) ? -1 : order[nextI];
      outputBlock(blocks.labelToBlock(order[i]), nextLabel);
    }
  }
Performs initial creation of output instructions based on the original blocks.
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/RopTranslator.java