protected final int resultWidth() {
    int width = 0;

    for (int i = 0; i < resultCount; i++) {
      width += results[i].getType().getCategory();
    }

    return width;
  }
Gets the width of the results (where a category-2 value counts as two).

@return {@code >= 0;} the result width
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/code/BaseMachine.java