# Golden test output of GoldenGenExpressionTest/TestExprAccumulator
ExpressionFromAccumulator<AccumulatorAvg>
(avgOfArray(newArray(getField(s1, "bar"), 9.25L)) ?: null) 
# Golden test output of GoldenGenExpressionTest/TestExprAccumulator
ExpressionFromAccumulator<AccumulatorMax>

    let [
        l3.0 = getField(s1, "arr") 
    ] 
    in 
        if (typeMatch(l3.0, 1088) ?: true) 
        then null 
        elif isArray(l3.0) 
        then (maxOfArray(move(l3.0)) ?: null) 
        else move(l3.0) 

# Golden test output of GoldenGenExpressionTest/TestExprAccumulator
ExpressionFromAccumulator<AccumulatorMin>
(minOfArray(newArray(getField(s1, "bar"), 9.25L)) ?: null) 
# Golden test output of GoldenGenExpressionTest/TestExprAccumulator
ExpressionFromAccumulator<AccumulatorStdDevPop>

    let [
        l6.0 = getField(s1, "arr") 
    ] 
    in 
        if (typeMatch(l6.0, 1088) ?: true) 
        then null 
        elif isArray(l6.0) 
        then (stdDevPop(move(l6.0)) ?: null) 
        elif isNumber(move(l6.0)) 
        then 0 
        else null 

# Golden test output of GoldenGenExpressionTest/TestExprAccumulator
ExpressionFromAccumulator<AccumulatorStdDevSamp>

    let [
        l9.0 = 
            let [
                l10.0 = getField(s1, "arr") 
            ] 
            in 
                if (typeMatch(l10.0, 1088) ?: true) 
                then null 
                elif isArray(l10.0) 
                then (stdDevSamp(move(l10.0)) ?: null) 
                else null 
    ] 
    in 
        if (typeMatch(l9.0, 1088) ?: true) 
        then null 
        elif !(isNumber(l9.0)) 
        then fail(5155300, "$trunc only supports numeric types") 
        elif ((4 != trunc(4)) ?: true) 
        then fail(5155301, "$trunc requires "place" argument to be an integer between -20 and 100") 
        else trunc(move(l9.0), 4) 

# Golden test output of GoldenGenExpressionTest/TestExprAccumulator
ExpressionFromAccumulator<AccumulatorSum>
(sumOfArray(newArray(getField(s1, "bar"), 9.25L)) ?: null) 
