AFC - Abacus Formula Compiler for Java

Decompiled Code For SUMIF( C3:C8, C11, E3:E8 )

The expression

=SUMIF( C3:C8, C11, E3:E8 )

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.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 = 0.0;
        if (get$2(18.0))
            d += 105.0;
        if (get$2(12.0))
            d += 96.0;
        if (get$2(13.0))
            d += 105.0;
        if (get$2(14.0))
            d += 75.0;
        if (get$2(9.0))
            d += 76.8;
        if (get$2(8.0))
            d += 45.0;
        return d;
    }

    final boolean get$2(double d) {
        if (d > 10.0)
            return true;
        return false;
    }
}