private static boolean nodeNeedsUniquePredecessor(SsaBasicBlock block) {
    /*
     * Any block with that has both multiple successors and multiple
     * predecessors needs a new predecessor node.
     */

    int countPredecessors = block.getPredecessors().cardinality();
    int countSuccessors = block.getSuccessors().cardinality();

    return (countPredecessors > 1 && countSuccessors > 1);
  }
@param block {@code non-null;} block in question
@return {@code true} if this node needs to have a unique predecessor created for it
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaConverter.java