public static IntList indexListFromLabelList(BasicBlockList ropBlocks, IntList labelList) {

    IntList result = new IntList(labelList.size());

    for (int i = 0, sz = labelList.size(); i < sz; i++) {
      result.add(ropBlocks.indexOfLabel(labelList.get(i)));
    }

    return result;
  }
Builds an IntList of block indices from a basic block list and a list of labels taken from Rop
form.

@param ropBlocks Rop blocks
@param labelList list of rop block labels
@return IntList of block indices
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaMethod.java