private static boolean compareInsns(BasicBlock a, BasicBlock b) {
    return a.getInsns().contentEquals(b.getInsns());
  }
Helper method to compare the contents of two blocks.

@param a {@code non-null;} a block to compare
@param b {@code non-null;} another block to compare
@return {@code true} iff the two blocks' instructions are the same
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/back/IdenticalBlockCombiner.java