private int labelToResultIndex(int label) {
    int sz = result.size();
    for (int i = 0; i < sz; i++) {
      BasicBlock one = result.get(i);
      if (one.getLabel() == label) {
        return i;
      }
    }

    return -1;
  }
Searches {@link #result} for a block with the given label. Returns its index if found, or
returns {@code -1} if there is no such block.

@param label the label to look for
@return {@code >= -1;} the index for the block with the given label or {@code -1} if there is
    no such block
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/Ropper.java