Example #1
0
    public static Expression?Clean(Expression?expression)
    {
        Expression?expand = ExpressionCleaner.Clean(expression, MetaEvaluator.PartialEval, false);

        Expression?simplified = OverloadingSimplifier.Simplify(expand);

        return(simplified);
    }
Example #2
0
    public static Expression?Clean(Expression?expression, bool filter, HeavyProfiler.Tracer?log)
    {
        Expression?clean = ExpressionCleaner.Clean(expression);

        log.Switch("OvrLdSmp");
        Expression?simplified = OverloadingSimplifier.Simplify(clean);

        log.Switch("QrFlr");
        Expression?filtered = QueryFilterer.Filter(simplified, filter);

        return(filtered);
    }