code: private boolean isCompletelyCoveredBy(int[] isCovered, List<RuleInterval> intervals) {
      for (RuleInterval i : intervals) {
        for (int j = i.getStart(); j < i.getEnd(); j++) {
            if (isCovered[j] == 0) {
              return false;
            }
        }
      }
      return true;
    }
docs: Checks if the cover is complete.
  
  @param isCovered the cover.
  @param intervals set of rule intervals.
  @return true if the set complete.