private int getCountPhiInsns() {
    int countPhiInsns;

    int sz = insns.size();
    for (countPhiInsns = 0; countPhiInsns < sz; countPhiInsns++) {
      SsaInsn insn = insns.get(countPhiInsns);
      if (!(insn instanceof PhiInsn)) {
        break;
      }
    }

    return countPhiInsns;
  }
Gets the number of phi insns at the top of this basic block.

@return count of phi insns
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaBasicBlock.java