private static boolean allDefsInFragment(int[] defs, LinkedHashSet<Integer> fragmentInstructions) {
    for (int def : defs) {
      if (!fragmentInstructions.contains(def)) return false;
    }

    return true;
  }
private static boolean allDefsInFragment(int[] defs, LinkedHashSet<Integer> fragmentInstructions)