AFC - Abacus Formula Compiler for Java

Decompiled Code For DMIN( B2:E8, "Profit", E10:E11 )

The expression

=DMIN( B2:E8, "Profit", E10:E11 )

is compiled to the following class(es):

package org.formulacompiler.gen;
import org.formulacompiler.runtime.Computation;
import org.formulacompiler.runtime.internal.Environment;
import org.formulacompiler.runtime.internal.RuntimeDouble_v2;
import org.formulacompiler.tests.reference.base.Inputs;
import org.formulacompiler.tests.reference.base.Outputs;

final class $Root extends Outputs implements Computation
{
    private final Inputs $inputs;
    final Environment $environment;

    $Root(Inputs inputs, Environment environment) {
        $environment = environment;
        $inputs = inputs;
    }

    final double get$0() {
        return get$1();
    }

    public final double dbl() {
        return get$0();
    }

    final double get$1() {
        double d = 1.7976931348623157E308;
        int i = 0;
        if (get$2("Apple")) {
            i++;
            d = RuntimeDouble_v2.min(d, 105.0);
        }
        if (get$2("Pear")) {
            i++;
            d = RuntimeDouble_v2.min(d, 96.0);
        }
        if (get$2("Cherry")) {
            i++;
            d = RuntimeDouble_v2.min(d, 105.0);
        }
        if (get$2("Apple")) {
            i++;
            d = RuntimeDouble_v2.min(d, 75.0);
        }
        if (get$2("Pear")) {
            i++;
            d = RuntimeDouble_v2.min(d, 76.8);
        }
        if (get$2("Apple")) {
            i++;
            d = RuntimeDouble_v2.min(d, 45.0);
        }
        return i <= 0 ? 0.0 : d;
    }

    final boolean get$2(String string) {
        if (string.equalsIgnoreCase("Nonexistent"))
            return true;
        return false;
    }
}