public int getInstructionCount() {
    int sz = size();
    int result = 0;

    for (int i = 0; i < sz; i++) {
      BasicBlock one = (BasicBlock) getOrNull0(i);
      if (one != null) {
        result += one.getInsns().size();
      }
    }

    return result;
  }
Gets the total instruction count for this instance. This is the sum of the instruction counts
of each block.

@return {@code >= 0;} the total instruction count
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/BasicBlockList.java