public static PredicateTreeAnalyzerResult analyzePredicateTree(Predicate predicate) {
        AnalyzerContext context = new AnalyzerContext();
        int treeSize = aggregatePredicateStatistics(predicate, false, context);
        int minFeature = ((int)Math.ceil(findMinFeature(predicate, false, context))) + (context.hasNegationPredicate ? 1 : 0);
        return new PredicateTreeAnalyzerResult(minFeature, treeSize, context.subTreeSizes);
    }
@Test
    void require_that_not_ranges_dont_count_towards_minfeature_calculation() {
        Predicate p =
                and(
                        feature("foo").inRange(0, 10),
                        not(feature("foo").inRange(0, 10)),
                        feature("bar").inRange(0, 10),
                        not(feature("bar").inRange(0, 10)));
        PredicateTreeAnalyzerResult r = PredicateTreeAnalyzer.analyzePredicateTree(p);
        assertEquals(3, r.minFeature);
        assertEquals(6, r.treeSize);
    }