Decompiled Code For MEDIAN( C876:G876 )
The expression
=MEDIAN( C876:G876 )
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() { double d; return get$6(d = 3.0); } public final double dbl() { return get$0(); } final double get$6(double d) { double d_0_ = -1.7976931348623157E308; double d_1_ = 1.0; d_0_ = d_1_ > d ? d_0_ : get$7(d_1_, d_0_); d_1_++; d_0_ = d_1_ > d ? d_0_ : get$8(d_1_, d_0_); d_1_++; d_0_ = d_1_ > d ? d_0_ : get$9(d_1_, d_0_); d_1_++; d_0_ = d_1_ > d ? d_0_ : get$10(d_1_, d_0_); d_1_++; d_0_ = d_1_ > d ? d_0_ : get$11(d_1_, d_0_); d_1_++; return d_0_; } final double get$7(double d, double d_2_) { double d_3_ = 1.7976931348623157E308; double d_4_ = 0.0; d_3_ = get$1() > d_2_ ? RuntimeDouble_v2.min(get$1(), d_3_) : d_3_; d_4_ = get$1() <= d_2_ ? d_4_ + 1.0 : d_4_; d_3_ = get$2() > d_2_ ? RuntimeDouble_v2.min(get$2(), d_3_) : d_3_; d_4_ = get$2() <= d_2_ ? d_4_ + 1.0 : d_4_; d_3_ = get$3() > d_2_ ? RuntimeDouble_v2.min(get$3(), d_3_) : d_3_; d_4_ = get$3() <= d_2_ ? d_4_ + 1.0 : d_4_; d_3_ = get$4() > d_2_ ? RuntimeDouble_v2.min(get$4(), d_3_) : d_3_; d_4_ = get$4() <= d_2_ ? d_4_ + 1.0 : d_4_; d_3_ = get$5() > d_2_ ? RuntimeDouble_v2.min(get$5(), d_3_) : d_3_; d_4_ = get$5() <= d_2_ ? d_4_ + 1.0 : d_4_; return d_4_ >= d ? d_2_ : d_3_; } final double get$8(double d, double d_5_) { double d_6_ = 1.7976931348623157E308; double d_7_ = 0.0; d_6_ = get$1() > d_5_ ? RuntimeDouble_v2.min(get$1(), d_6_) : d_6_; d_7_ = get$1() <= d_5_ ? d_7_ + 1.0 : d_7_; d_6_ = get$2() > d_5_ ? RuntimeDouble_v2.min(get$2(), d_6_) : d_6_; d_7_ = get$2() <= d_5_ ? d_7_ + 1.0 : d_7_; d_6_ = get$3() > d_5_ ? RuntimeDouble_v2.min(get$3(), d_6_) : d_6_; d_7_ = get$3() <= d_5_ ? d_7_ + 1.0 : d_7_; d_6_ = get$4() > d_5_ ? RuntimeDouble_v2.min(get$4(), d_6_) : d_6_; d_7_ = get$4() <= d_5_ ? d_7_ + 1.0 : d_7_; d_6_ = get$5() > d_5_ ? RuntimeDouble_v2.min(get$5(), d_6_) : d_6_; d_7_ = get$5() <= d_5_ ? d_7_ + 1.0 : d_7_; return d_7_ >= d ? d_5_ : d_6_; } final double get$9(double d, double d_8_) { double d_9_ = 1.7976931348623157E308; double d_10_ = 0.0; d_9_ = get$1() > d_8_ ? RuntimeDouble_v2.min(get$1(), d_9_) : d_9_; d_10_ = get$1() <= d_8_ ? d_10_ + 1.0 : d_10_; d_9_ = get$2() > d_8_ ? RuntimeDouble_v2.min(get$2(), d_9_) : d_9_; d_10_ = get$2() <= d_8_ ? d_10_ + 1.0 : d_10_; d_9_ = get$3() > d_8_ ? RuntimeDouble_v2.min(get$3(), d_9_) : d_9_; d_10_ = get$3() <= d_8_ ? d_10_ + 1.0 : d_10_; d_9_ = get$4() > d_8_ ? RuntimeDouble_v2.min(get$4(), d_9_) : d_9_; d_10_ = get$4() <= d_8_ ? d_10_ + 1.0 : d_10_; d_9_ = get$5() > d_8_ ? RuntimeDouble_v2.min(get$5(), d_9_) : d_9_; d_10_ = get$5() <= d_8_ ? d_10_ + 1.0 : d_10_; return d_10_ >= d ? d_8_ : d_9_; } final double get$10(double d, double d_11_) { double d_12_ = 1.7976931348623157E308; double d_13_ = 0.0; d_12_ = get$1() > d_11_ ? RuntimeDouble_v2.min(get$1(), d_12_) : d_12_; d_13_ = get$1() <= d_11_ ? d_13_ + 1.0 : d_13_; d_12_ = get$2() > d_11_ ? RuntimeDouble_v2.min(get$2(), d_12_) : d_12_; d_13_ = get$2() <= d_11_ ? d_13_ + 1.0 : d_13_; d_12_ = get$3() > d_11_ ? RuntimeDouble_v2.min(get$3(), d_12_) : d_12_; d_13_ = get$3() <= d_11_ ? d_13_ + 1.0 : d_13_; d_12_ = get$4() > d_11_ ? RuntimeDouble_v2.min(get$4(), d_12_) : d_12_; d_13_ = get$4() <= d_11_ ? d_13_ + 1.0 : d_13_; d_12_ = get$5() > d_11_ ? RuntimeDouble_v2.min(get$5(), d_12_) : d_12_; d_13_ = get$5() <= d_11_ ? d_13_ + 1.0 : d_13_; return d_13_ >= d ? d_11_ : d_12_; } final double get$11(double d, double d_14_) { double d_15_ = 1.7976931348623157E308; double d_16_ = 0.0; d_15_ = get$1() > d_14_ ? RuntimeDouble_v2.min(get$1(), d_15_) : d_15_; d_16_ = get$1() <= d_14_ ? d_16_ + 1.0 : d_16_; d_15_ = get$2() > d_14_ ? RuntimeDouble_v2.min(get$2(), d_15_) : d_15_; d_16_ = get$2() <= d_14_ ? d_16_ + 1.0 : d_16_; d_15_ = get$3() > d_14_ ? RuntimeDouble_v2.min(get$3(), d_15_) : d_15_; d_16_ = get$3() <= d_14_ ? d_16_ + 1.0 : d_16_; d_15_ = get$4() > d_14_ ? RuntimeDouble_v2.min(get$4(), d_15_) : d_15_; d_16_ = get$4() <= d_14_ ? d_16_ + 1.0 : d_16_; d_15_ = get$5() > d_14_ ? RuntimeDouble_v2.min(get$5(), d_15_) : d_15_; d_16_ = get$5() <= d_14_ ? d_16_ + 1.0 : d_16_; return d_16_ >= d ? d_14_ : d_15_; } final double get$1() { return $inputs.dbl(0); } final double get$2() { return $inputs.dbl(1); } final double get$3() { return $inputs.dbl(2); } final double get$4() { return $inputs.dbl(3); } final double get$5() { return $inputs.dbl(4); } }