2021-07-16 15:24:41 Hail: INFO: Running Hail version 0.2.69-6d2bd28a8849 2021-07-16 15:24:41 SparkContext: WARN: Using an existing SparkContext; some configuration may not take effect. 2021-07-16 15:24:42 root: INFO: RegionPool: initialized for thread 16: Thread-5 2021-07-16 15:24:43 root: INFO: RegionPool: FREE: 64.0K allocated (64.0K blocks / 0 chunks), regions.size = 1, 0 current java objects, thread 16: Thread-5 2021-07-16 15:24:43 root: INFO: timing SparkBackend.parse_value_ir total 1.385s self 1.385s children 0.000ms %children 0.00% 2021-07-16 15:24:43 root: INFO: RegionPool: initialized for thread 16: Thread-5 2021-07-16 15:24:43 root: INFO: starting execution of query hail_query_1 of initial size 6303 2021-07-16 15:24:44 root: INFO: optimize optimize: relationalLowerer, initial IR: before: IR size 6303: (ToArray (StreamMap __uid_47 (ToStream False (GetField rows (TableCollect (TableHead 1 (TableMapRows (TableParallelize 1 (Let __cse_1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_3 (I64 1) (Let __cse_5 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_1)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (Ref __cse_1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_3) (ApplyIR toInt64 () Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 () Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_3) (ApplyIR toInt64 () Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_3)))) (Let __cse_170 (Literal NDArray[Int64,1] ) (Let __cse_6 (I64 1) (Let __cse_7 (NDArraySlice (Ref __cse_170) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_6) (ApplyIR toInt64 () Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 () Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_6) (ApplyIR toInt64 () Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_6)))) (Let __cse_8 (NDArrayMap __uid_5 (ApplyIR sub () NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_5) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_5))) (ApplyIR toInt64 () Int64 (I32 1)))) (ApplyIR toInt64 () Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_7) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_7)))))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 () Int64 (I32 0))))) (Let __cse_9 (ApplyIR div () NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_8)) (ApplyIR toFloat64 () Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_8))))) (Let __cse_19 (NDArrayMap __uid_6 (ApplyIR div () NDArray[Float64,1] (Ref __cse_9) (ApplyIR sub () NDArray[Float64,1] (ApplyIR toFloat64 () Float64 (I32 1)) (Ref __cse_9))) (Apply log () Float64 (Ref __uid_6))) (Let __cse_56 (I64 1) (Let __cse_102 (I64 1) (Let __cse_148 (I64 1) (Let __cse_150 (ApplyIR toInt64 () Int64 (I32 4)) (Let __cse_149 (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 () Int32 (Ref __cse_150)) (I32 1))) (Let __cse_165 (Literal NDArray[Float64,2] ) (Let __cse_151 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_152 (MakeNDArray 8 (ToArray (StreamMap __uid_16 (ToStream False (Ref __cse_151)) (Ref __uid_16))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (Ref __cse_151))))) (True)) (Let __cse_164 (NDArrayMap __uid_17 (ApplyIR sub () NDArray[Int32,2] (NDArrayReshape (Ref __cse_152) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 -1)) (ApplyIR toInt64 () Int64 (I32 1)))) (NDArrayReshape (Ref __cse_152) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 1)) (ApplyIR toInt64 () Int64 (I32 -1))))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __uid_17) (I32 0)))) (Let __cse_155 (I64 1) (Let __cse_160 (I64 1) (Let __cse_163 (NDArraySlice (Ref __cse_164) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_155) (ApplyIR toInt64 () Int64 (I32 0))) (I64 0) (Let __cse_153 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_154 (MakeNDArray 8 (ToArray (StreamMap __uid_16 (ToStream False (Ref __cse_153)) (Ref __uid_16))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (Ref __cse_153))))) (True)) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_17 (ApplyIR sub () NDArray[Int32,2] (NDArrayReshape (Ref __cse_154) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 -1)) (ApplyIR toInt64 () Int64 (I32 1)))) (NDArrayReshape (Ref __cse_154) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 1)) (ApplyIR toInt64 () Int64 (I32 -1))))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __uid_17) (I32 0)))))) (ApplyIR toInt64 () Int64 (I32 1)))))) (If (ApplyComparisonOp GT (Ref __cse_155) (ApplyIR toInt64 () Int64 (I32 0))) (Let __cse_156 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_157 (MakeNDArray 8 (ToArray (StreamMap __uid_16 (ToStream False (Ref __cse_156)) (Ref __uid_16))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (Ref __cse_156))))) (True)) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_17 (ApplyIR sub () NDArray[Int32,2] (NDArrayReshape (Ref __cse_157) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 -1)) (ApplyIR toInt64 () Int64 (I32 1)))) (NDArrayReshape (Ref __cse_157) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 1)) (ApplyIR toInt64 () Int64 (I32 -1))))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __uid_17) (I32 0)))))))) (I64 -1)) (Ref __cse_155)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_160) (ApplyIR toInt64 () Int64 (I32 0))) (I64 0) (Let __cse_158 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_159 (MakeNDArray 8 (ToArray (StreamMap __uid_16 (ToStream False (Ref __cse_158)) (Ref __uid_16))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (Ref __cse_158))))) (True)) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (NDArrayMap __uid_17 (ApplyIR sub () NDArray[Int32,2] (NDArrayReshape (Ref __cse_159) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 -1)) (ApplyIR toInt64 () Int64 (I32 1)))) (NDArrayReshape (Ref __cse_159) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 1)) (ApplyIR toInt64 () Int64 (I32 -1))))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __uid_17) (I32 0)))))) (ApplyIR toInt64 () Int64 (I32 1)))))) (If (ApplyComparisonOp GT (Ref __cse_160) (ApplyIR toInt64 () Int64 (I32 0))) (Let __cse_161 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_162 (MakeNDArray 8 (ToArray (StreamMap __uid_16 (ToStream False (Ref __cse_161)) (Ref __uid_16))) (MakeTuple (0) (ApplyIR toInt64 () Int64 (ArrayLen (CastToArray (Ref __cse_161))))) (True)) (GetTupleElement 1 (NDArrayShape (NDArrayMap __uid_17 (ApplyIR sub () NDArray[Int32,2] (NDArrayReshape (Ref __cse_162) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 -1)) (ApplyIR toInt64 () Int64 (I32 1)))) (NDArrayReshape (Ref __cse_162) (MakeTuple (0 1) (ApplyIR toInt64 () Int64 (I32 1)) (ApplyIR toInt64 () Int64 (I32 -1))))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __uid_17) (I32 0)))))))) (I64 -1)) (Ref __cse_160)))) (Let __cse_166 (I64 1) (Let __cse_167 (I64 1) (Let __cse_168 (NDArraySlice (Ref __cse_165) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_166) (ApplyIR toInt64 () Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] ))) (ApplyIR toInt64 () Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_166) (ApplyIR toInt64 () Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 -1)) (Ref __cse_166)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_167) (ApplyIR toInt64 () Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Literal NDArray[Float64,2] ))) (ApplyIR toInt64 () Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_167) (ApplyIR toInt64 () Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 -1)) (Ref __cse_167)))) (Let __cse_169 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_173 (I64 1) (Let __cse_176 (I64 1) (Let __cse_179 (I64 1) (Let __cse_180 (I64 1) (Let __cse_181 (I64 1) (Let __cse_183 (I64 1) (Let __cse_184 (I64 1) (Let __cse_185 (I64 1) (Let __cse_187 (I64 1) (Let __cse_188 (I64 1) (MakeStruct (rows (MakeArray Array[Struct{__uid_46:NDArray[Float64,1]}] (MakeStruct (__uid_46 (TailLoop __uid_29 ( __uid_30 __uid_31 __uid_32 __uid_33 __uid_34) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (NDArraySlice (Ref __cse_19) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_56) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_10 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_12 (I64 1) (Let __cse_14 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_10)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_10))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_12) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_12) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_12)))) (Let __cse_15 (I64 1) (Let __cse_16 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_15) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_15) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_15)))) (Let __cse_17 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_14) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_14))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_16) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_16)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_18 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_17)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_17))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_18) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_18))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))))))))) (If (ApplyComparisonOp GTEQ (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_19)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_20 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_22 (I64 1) (Let __cse_24 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_20)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_20))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_22) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_22) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_22)))) (Let __cse_25 (I64 1) (Let __cse_26 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_25) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_25) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_25)))) (Let __cse_27 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_24) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_24))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_26) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_26)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_28 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_27)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_27))))) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_28) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_28))) (Apply log ( ) Float64 (Ref __uid_6)))))))))))) (Let __cse_29 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_31 (I64 1) (Let __cse_33 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_29)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_29))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_31) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_31) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_31)))) (Let __cse_34 (I64 1) (Let __cse_35 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_34) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_34) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_34)))) (Let __cse_36 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_33) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_33))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_35) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_35)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_37 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_36)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_36))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_37) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_37))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))))))))) (If (ApplyComparisonOp GTEQ (ApplyIR toInt64 ( ) Int64 (I32 1)) (ApplyIR toInt64 ( ) Int64 (I32 0))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (Let __cse_38 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_40 (I64 1) (Let __cse_42 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_38)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_38))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_40) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_140 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_140)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_140))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (If (ApplyComparisonOp GT (Ref __cse_40) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_142 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_142)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_142))))) (True))))) (I64 -1)) (Ref __cse_40)))) (Let __cse_43 (I64 1) (Let __cse_44 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_43) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_43) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_43)))) (Let __cse_45 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_42) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_42))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_44) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_44)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_46 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_45)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_45))))) (If (ApplyComparisonOp GTEQ (ApplyBinaryPrimOp Add (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_46) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_46))) (Apply log ( ) Float64 (Ref __uid_6)))))) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_47 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_49 (I64 1) (Let __cse_51 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_47)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_47))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_49) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_49) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_49)))) (Let __cse_52 (I64 1) (Let __cse_53 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_52) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_52) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_52)))) (Let __cse_54 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_51) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_51))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_53) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_53)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_55 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_54)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_54))))) (ApplyBinaryPrimOp Add (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_55) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_55))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))))))))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (I64 -1)))))))))))) (Ref __cse_56)))) (ApplyIR sub ( ) NDArray[Float64,1] (NDArraySlice (Ref __cse_19) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_19)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1))))))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0)))))) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_140 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_140)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_140))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_142 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_142)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_142))))) (True))))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1))))))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))))))) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1))))))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0)))))) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (I64 1)))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1)))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (I64 1))))))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))))))))) (Apply log ( ) Float64 (Ref __uid_6))))) (Let __cse_66 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_68 (I64 1) (Let __cse_70 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_66)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_66))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_68) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_68) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_68)))) (Let __cse_71 (I64 1) (Let __cse_72 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_71) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_71) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_71)))) (Let __cse_73 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_70) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_70))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_72) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_72)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_74 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_73)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_73))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_74) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_74))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))))))))) (If (ApplyComparisonOp GTEQ (ApplyIR toInt64 ( ) Int64 (I32 1)) (ApplyIR toInt64 ( ) Int64 (I32 0))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (Let __cse_75 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_77 (I64 1) (Let __cse_79 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_75)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_75))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_77) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_77) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_77)))) (Let __cse_80 (I64 1) (Let __cse_81 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_80) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_80) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_80)))) (Let __cse_82 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_79) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_79))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_81) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_81)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_83 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_82)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_82))))) (If (ApplyComparisonOp GTEQ (ApplyBinaryPrimOp Add (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_83) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_83))) (Apply log ( ) Float64 (Ref __uid_6)))))) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_84 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_86 (I64 1) (Let __cse_88 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_84)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_84))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_86) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_140 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_140)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_140))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (If (ApplyComparisonOp GT (Ref __cse_86) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_142 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_142)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_142))))) (True))))) (I64 -1)) (Ref __cse_86)))) (Let __cse_89 (I64 1) (Let __cse_90 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_89) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_89) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_89)))) (Let __cse_91 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_88) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_88))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_90) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_90)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_92 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_91)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_91))))) (ApplyBinaryPrimOp Add (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_92) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_92))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))))))))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (I64 -1)))))))))))) (If (ApplyComparisonOp GT (Ref __cse_102) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_93 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_95 (I64 1) (Let __cse_97 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_93)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_93))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_95) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_95) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_95)))) (Let __cse_98 (I64 1) (Let __cse_99 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_98) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_98) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_98)))) (Let __cse_100 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_97) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_97))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_99) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_99)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_101 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_100)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_100))))) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_101) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_101))) (Apply log ( ) Float64 (Ref __uid_6)))))))))))) (I64 -1)) (Ref __cse_102)))) (NDArraySlice (Ref __cse_19) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_148) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_103 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_105 (I64 1) (Let __cse_107 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_103)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_103))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_105) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_105) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_105)))) (Let __cse_108 (I64 1) (Let __cse_109 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_108) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_108) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_108)))) (Let __cse_110 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_107) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_107))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_109) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_109)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_111 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_110)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_110))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_111) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_111))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))))))))) (If (ApplyComparisonOp GTEQ (ApplyIR toInt64 ( ) Int64 (I32 -1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_19)))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_112 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_114 (I64 1) (Let __cse_116 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_112)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_112))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_114) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_114) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_114)))) (Let __cse_117 (I64 1) (Let __cse_118 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_117) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_117) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_117)))) (Let __cse_119 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_116) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_116))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_118) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_118)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_120 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_119)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_119))))) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_120) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_120))) (Apply log ( ) Float64 (Ref __uid_6)))))))))))) (Let __cse_121 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_123 (I64 1) (Let __cse_125 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_121)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_121))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_123) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_123) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_123)))) (Let __cse_126 (I64 1) (Let __cse_127 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_126) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_126) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_126)))) (Let __cse_128 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_125) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_125))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_127) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_127)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_129 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_128)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_128))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_129) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_129))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))))))))) (If (ApplyComparisonOp GTEQ (ApplyIR toInt64 ( ) Int64 (I32 -1)) (ApplyIR toInt64 ( ) Int64 (I32 0))) (ApplyIR toInt64 ( ) Int64 (I32 -1)) (Let __cse_130 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_132 (I64 1) (Let __cse_134 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_130)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_130))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_132) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_132) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))))))) (True)))) (I64 -1)) (Ref __cse_132)))) (Let __cse_135 (I64 1) (Let __cse_136 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_135) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_135) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_135)))) (Let __cse_137 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_134) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_134))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_136) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_136)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_138 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_137)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_137))))) (If (ApplyComparisonOp GTEQ (ApplyBinaryPrimOp Add (ApplyIR toInt64 ( ) Int64 (I32 -1)) (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_138) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_138))) (Apply log ( ) Float64 (Ref __uid_6)))))) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_139 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __cse_141 (I64 1) (Let __cse_143 (NDArraySlice (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_139)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_139))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_141) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_140 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_140)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_140))))) (True)))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (If (ApplyComparisonOp GT (Ref __cse_141) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_142 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (NDArrayShape (MakeNDArray 1 (ToArray (StreamMap __uid_3 (ToStream False (Ref __cse_142)) (Ref __uid_3))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_142))))) (True))))) (I64 -1)) (Ref __cse_141)))) (Let __cse_144 (I64 1) (Let __cse_145 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_144) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_144) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 -1)) (Ref __cse_144)))) (Let __cse_146 (NDArrayMap __uid_5 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_4 (NDArrayReshape (Ref __cse_143) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __cse_143))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_4))) (NDArrayReshape (Ref __cse_145) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_145)))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_5) (ApplyIR toInt64 ( ) Int64 (I32 0))))) (Let __cse_147 (ApplyIR div ( ) NDArray[Float64,1] (NDArrayAgg (1) (Ref __cse_146)) (ApplyIR toFloat64 ( ) Float64 (GetTupleElement 1 (NDArrayShape (Ref __cse_146))))) (ApplyBinaryPrimOp Add (GetTupleElement 0 (NDArrayShape (NDArrayMap __uid_6 (ApplyIR div ( ) NDArray[Float64,1] (Ref __cse_147) (ApplyIR sub ( ) NDArray[Float64,1] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_147))) (Apply log ( ) Float64 (Ref __uid_6))))) (ApplyIR toInt64 ( ) Int64 (I32 -1)))))))))) (If (ApplyComparisonOp GT (I64 1) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (I64 -1)))))))))))) (Ref __cse_148))))) (NDArrayReshape (NDArrayMap __uid_8 (MakeNDArray 2 (ToArray (StreamMap __uid_7 (ToStream False (Ref __cse_149)) (Ref __uid_7))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_149))))) (True)) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (MakeTuple (0) (Ref __cse_150))))) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (MakeNDArray 4 (ToArray (StreamMap __uid_11 (ToStream False (Literal Array[Float64] )) (Ref __uid_11))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (I32 1))) (True)) (MakeNDArray 5 (ToArray (StreamMap __uid_12 (ToStream False (Literal Array[Int32] )) (ApplyIR toFloat64 ( ) Float64 (Ref __uid_12)))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (I32 1))) (True)) (MakeNDArray 6 (ToArray (StreamMap __uid_13 (ToStream False (Literal Array[Float64] )) (Ref __uid_13))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (I32 4))) (True)))) (NDArrayConcat 2 (MakeArray Array[NDArray[Float64,3]] (NDArrayConcat 0 (ToArray (StreamMap __uid_18 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __cse_165)))) (I32 1)))) (NDArrayReshape (Ref __cse_163) (MakeTuple (0 1 2) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 0 (NDArrayShape (Ref __cse_163))) (GetTupleElement 1 (NDArrayShape (Ref __cse_163)))))))) (ApplyIR mul ( ) NDArray[Float64,3] (NDArrayConcat 1 (ToArray (StreamMap __uid_21 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __cse_164)))) (I32 1)))) (NDArrayReshape (Ref __cse_168) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __cse_168))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 1 (NDArrayShape (Ref __cse_168)))))))) (ApplyIR toFloat64 ( ) Float64 (I32 -1))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 2)) (NDArrayMap __uid_28 (ApplyIR sub ( ) NDArray[Int64,2] (NDArrayMap __uid_27 (NDArrayReshape (MakeNDArray 12 (ToArray (StreamMap __uid_26 (ToStream False (Ref __cse_169)) (Ref __uid_26))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_169))))) (True)) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 1)) (ApplyIR toInt64 ( ) Int64 (I32 -1)))) (ApplyIR toInt64 ( ) Int64 (Ref __uid_27))) (NDArrayReshape (Ref __cse_170) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 -1)) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (Apply toFloat64 ( ) Float64 (ApplyComparisonOp GTEQ (Ref __uid_28) (ApplyIR toInt64 ( ) Int64 (I32 0)))))) (ApplyIR toFloat64 ( ) Float64 (I32 1))) (F64 1.0E-5) (Let __cse_171 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (Let __cse_178 (NDArraySlice (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_171) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_171))) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_173) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_173) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (I64 -1)) (Ref __cse_173)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_176) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_176) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (I64 -1)) (Ref __cse_176)))) (Let __cse_182 (NDArraySlice (Ref __uid_32) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_179) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_179) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_179)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_180) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_180) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_180)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_181) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_181) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_181)))) (Let __cse_186 (NDArraySlice (Ref __uid_32) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_183) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_183) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_183)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_184) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_184) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_184)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_185) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_185) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_185)))) (Let __cse_189 (NDArraySlice (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_171)) (Ref __uid_33)) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_187) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_187) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (I64 -1)) (Ref __cse_187)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_188) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_188) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (I64 -1)) (Ref __cse_188)))) (Let __cse_190 (NDArrayMap __uid_43 (NDArrayReshape (Apply linear_solve ( ) NDArray[Float64,2] (NDArrayAgg (0 1) (ApplyIR mul ( ) NDArray[Float64,4] (ApplyIR mul ( ) NDArray[Float64,4] (NDArrayReshape (Ref __cse_178) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_178))) (GetTupleElement 1 (NDArrayShape (Ref __cse_178))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (NDArrayReshape (Ref __cse_182) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_182))) (GetTupleElement 1 (NDArrayShape (Ref __cse_182))) (GetTupleElement 2 (NDArrayShape (Ref __cse_182))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (NDArrayReshape (Ref __cse_186) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_186))) (GetTupleElement 1 (NDArrayShape (Ref __cse_186))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 2 (NDArrayShape (Ref __cse_186))))))) (NDArrayReshape (NDArrayAgg (0 1) (ApplyIR mul ( ) NDArray[Float64,3] (NDArrayReshape (Ref __cse_189) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __cse_189))) (GetTupleElement 1 (NDArrayShape (Ref __cse_189))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (Ref __uid_32))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 -1)) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (I32 -1)))) (Apply abs ( ) Float64 (Ref __uid_43))) (If (ApplyComparisonOp LT (ApplyIR max ( ) Float64 (ToArray (StreamFilter __uid_45 (ToStream False (ToArray (StreamMap __uid_44 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __cse_190)))) (I32 1)))) (NDArrayRef 16 (Ref __cse_190) (ApplyIR toInt64 ( ) Int64 (Ref __uid_44)))))) (ApplyUnaryPrimOp Bang (IsNA (Ref __uid_45)))))) (Ref __uid_34)) (Let __cse_191 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (Let __cse_193 (I64 1) (Let __cse_196 (I64 1) (Let __cse_198 (NDArraySlice (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_191) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_191))) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_193) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_193) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (I64 -1)) (Ref __cse_193)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_196) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_196) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))))))) (I64 -1)) (Ref __cse_196)))) (Let __cse_199 (I64 1) (Let __cse_200 (I64 1) (Let __cse_201 (I64 1) (Let __cse_202 (NDArraySlice (Ref __uid_32) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_199) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_199) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_199)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_200) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_200) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_200)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_201) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_201) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_201)))) (Let __cse_203 (I64 1) (Let __cse_204 (I64 1) (Let __cse_205 (I64 1) (Let __cse_206 (NDArraySlice (Ref __uid_32) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_203) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_203) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_203)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_204) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_204) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_204)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_205) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_205) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_205)))) (Let __cse_207 (I64 1) (Let __cse_208 (I64 1) (Let __cse_209 (NDArraySlice (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_191)) (Ref __uid_33)) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_207) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_207) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (I64 -1)) (Ref __cse_207)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_208) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_208) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (I64 -1)) (Ref __cse_208)))) (Let __cse_210 (ApplyIR add ( ) NDArray[Float64,1] (Ref __uid_30) (NDArrayReshape (Apply linear_solve ( ) NDArray[Float64,2] (NDArrayAgg (0 1) (ApplyIR mul ( ) NDArray[Float64,4] (ApplyIR mul ( ) NDArray[Float64,4] (NDArrayReshape (Ref __cse_198) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_198))) (GetTupleElement 1 (NDArrayShape (Ref __cse_198))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (NDArrayReshape (Ref __cse_202) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_202))) (GetTupleElement 1 (NDArrayShape (Ref __cse_202))) (GetTupleElement 2 (NDArrayShape (Ref __cse_202))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (NDArrayReshape (Ref __cse_206) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_206))) (GetTupleElement 1 (NDArrayShape (Ref __cse_206))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 2 (NDArrayShape (Ref __cse_206))))))) (NDArrayReshape (NDArrayAgg (0 1) (ApplyIR mul ( ) NDArray[Float64,3] (NDArrayReshape (Ref __cse_209) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __cse_209))) (GetTupleElement 1 (NDArrayShape (Ref __cse_209))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (Ref __uid_32))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 -1)) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (I32 -1))))) (Let __cse_211 (ToArray (StreamMap __uid_41 (ToStream False (ToArray (StreamZip TakeMinLength ( __uid_39 __uid_40) (ToStream False (ToArray (StreamMap __uid_37 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __cse_210)))) (I32 1)))) (NDArrayRef 13 (Ref __cse_210) (ApplyIR toInt64 ( ) Int64 (Ref __uid_37)))))) (ToStream False (ToArray (StreamMap __uid_38 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __uid_31)))) (I32 1)))) (NDArrayRef 14 (Ref __uid_31) (ApplyIR toInt64 ( ) Int64 (Ref __uid_38)))))) (MakeTuple (0 1) (Ref __uid_39) (Ref __uid_40))))) (ApplySpecial max_ignore_missing ( ) Float64 (GetTupleElement 0 (Ref __uid_41)) (GetTupleElement 1 (Ref __uid_41))))) (MakeNDArray 15 (ToArray (StreamMap __uid_42 (ToStream False (Ref __cse_211)) (Ref __uid_42))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_211))))) (True))))))))))))))))))) (Let __cse_212 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (Let __cse_214 (I64 1) (Let __cse_217 (I64 1) (Let __cse_219 (NDArraySlice (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_212) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_212))) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_214) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_213 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_213) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_213))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (If (ApplyComparisonOp GT (Ref __cse_214) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_215 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_215) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_215)))))) (I64 -1)) (Ref __cse_214)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_217) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (Let __cse_216 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_216) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_216))))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (If (ApplyComparisonOp GT (Ref __cse_217) (ApplyIR toInt64 ( ) Int64 (I32 0))) (Let __cse_218 (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36)))))) (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (Ref __cse_218) (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_218)))))) (I64 -1)) (Ref __cse_217)))) (Let __cse_220 (I64 1) (Let __cse_221 (I64 1) (Let __cse_222 (I64 1) (Let __cse_223 (NDArraySlice (Ref __uid_32) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_220) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_220) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_220)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_221) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_221) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_221)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_222) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_222) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_222)))) (Let __cse_224 (I64 1) (Let __cse_225 (I64 1) (Let __cse_226 (I64 1) (Let __cse_227 (NDArraySlice (Ref __uid_32) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_224) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_224) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_224)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_225) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_225) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_225)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_226) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_226) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 2 (NDArrayShape (Ref __uid_32))) (I64 -1)) (Ref __cse_226)))) (Let __cse_228 (I64 1) (Let __cse_229 (I64 1) (Let __cse_230 (NDArraySlice (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __cse_212)) (Ref __uid_33)) (MakeTuple (0 1) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_228) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_228) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 0 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (I64 -1)) (Ref __cse_228)) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (Ref __cse_229) (ApplyIR toInt64 ( ) Int64 (I32 0))) (I64 0) (ApplyBinaryPrimOp Subtract (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (If (ApplyComparisonOp GT (Ref __cse_229) (ApplyIR toInt64 ( ) Int64 (I32 0))) (GetTupleElement 1 (NDArrayShape (ApplyIR mul ( ) NDArray[Float64,2] (ApplyIR sub ( ) NDArray[Float64,2] (ApplyIR toFloat64 ( ) Float64 (I32 1)) (NDArrayMap __uid_35 (ApplyIR mul ( ) NDArray[Float64,2] (Ref __uid_33) (NDArrayMatMul (Ref __uid_32) (Ref __uid_30))) (If (ApplyComparisonOp GT (Ref __uid_35) (ApplyIR toFloat64 ( ) Float64 (I32 0))) (ApplyBinaryPrimOp FloatingPointDivide (ApplyIR toFloat64 ( ) Float64 (I32 1)) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __uid_35))))) (Let __uid_36 (Apply exp ( ) Float64 (Ref __uid_35)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __uid_36) (ApplyBinaryPrimOp Add (ApplyIR toFloat64 ( ) Float64 (I32 1)) (Ref __uid_36))))))) (Ref __uid_33)))) (I64 -1)) (Ref __cse_229)))) (Let __cse_231 (ApplyIR add ( ) NDArray[Float64,1] (Ref __uid_30) (NDArrayReshape (Apply linear_solve ( ) NDArray[Float64,2] (NDArrayAgg (0 1) (ApplyIR mul ( ) NDArray[Float64,4] (ApplyIR mul ( ) NDArray[Float64,4] (NDArrayReshape (Ref __cse_219) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_219))) (GetTupleElement 1 (NDArrayShape (Ref __cse_219))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (NDArrayReshape (Ref __cse_223) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_223))) (GetTupleElement 1 (NDArrayShape (Ref __cse_223))) (GetTupleElement 2 (NDArrayShape (Ref __cse_223))) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (NDArrayReshape (Ref __cse_227) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __cse_227))) (GetTupleElement 1 (NDArrayShape (Ref __cse_227))) (ApplyIR toInt64 ( ) Int64 (I32 1)) (GetTupleElement 2 (NDArrayShape (Ref __cse_227))))))) (NDArrayReshape (NDArrayAgg (0 1) (ApplyIR mul ( ) NDArray[Float64,3] (NDArrayReshape (Ref __cse_230) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __cse_230))) (GetTupleElement 1 (NDArrayShape (Ref __cse_230))) (ApplyIR toInt64 ( ) Int64 (I32 1)))) (Ref __uid_32))) (MakeTuple (0 1) (ApplyIR toInt64 ( ) Int64 (I32 -1)) (ApplyIR toInt64 ( ) Int64 (I32 1))))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (I32 -1))))) (Let __cse_232 (ToArray (StreamMap __uid_41 (ToStream False (ToArray (StreamZip TakeMinLength ( __uid_39 __uid_40) (ToStream False (ToArray (StreamMap __uid_37 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __cse_231)))) (I32 1)))) (NDArrayRef 13 (Ref __cse_231) (ApplyIR toInt64 ( ) Int64 (Ref __uid_37)))))) (ToStream False (ToArray (StreamMap __uid_38 (ToStream False (ToArray (StreamRange False (I32 0) (ApplyIR toInt32 ( ) Int32 (GetTupleElement 0 (NDArrayShape (Ref __uid_31)))) (I32 1)))) (NDArrayRef 14 (Ref __uid_31) (ApplyIR toInt64 ( ) Int64 (Ref __uid_38)))))) (MakeTuple (0 1) (Ref __uid_39) (Ref __uid_40))))) (ApplySpecial max_ignore_missing ( ) Float64 (GetTupleElement 0 (Ref __uid_41)) (GetTupleElement 1 (Ref __uid_41))))) (Recur __uid_29 NDArray[Float64,1] (MakeNDArray 15 (ToArray (StreamMap __uid_42 (ToStream False (Ref __cse_232)) (Ref __uid_42))) (MakeTuple (0) (ApplyIR toInt64 ( ) Int64 (ArrayLen (CastToArray (Ref __cse_232))))) (True)) (Ref __uid_31) (Ref __uid_32) (Ref __uid_33) (Ref __uid_34))))))))))))))))))))))))))))))) (global (MakeStruct))))))))))))))))))))))))))))))))))))))) (InsertFields (SelectFields (__uid_46) (SelectFields (__uid_46) (Ref row))) None)))))) (GetField __uid_46 (Ref __uid_47)))) 2021-07-16 15:24:46 root: INFO: optimize optimize: relationalLowerer, initial IR: after: IR size 2553: (ToArray (StreamMap __iruid_3928 (ToStream False (GetField rows (TableCollect (TableHead 1 (TableParallelize 1 (Let __iruid_3929 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3930 (NDArraySlice (MakeNDArray 1 (Ref __iruid_3929) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3929)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_3931 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_3932 (NDArrayMap __iruid_3933 (NDArrayMap2 __iruid_3934 __iruid_3935 (NDArrayMap __iruid_3936 (NDArrayReshape (Ref __iruid_3930) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3930))) (I64 1))) (Cast Int64 (Ref __iruid_3936))) (NDArrayReshape (Ref __iruid_3931) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3931))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3934) (Ref __iruid_3935))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3933) (I64 0)))) (Let __iruid_3937 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_3932)))) (Let __iruid_3938 (NDArrayMap __iruid_3939 (NDArrayAgg (1) (Ref __iruid_3932)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3939) (Ref __iruid_3937))) (Let __iruid_3940 (NDArrayMap __iruid_3941 (NDArrayMap2 __iruid_3942 __iruid_3943 (Ref __iruid_3938) (NDArrayMap __iruid_3944 (Ref __iruid_3938) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_3944))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3942) (Ref __iruid_3943))) (Apply log () Float64 (Ref __iruid_3941))) (Let __iruid_3945 (ToArray (StreamRange False (I32 0) (I32 4) (I32 1))) (Let __iruid_3946 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3947 (MakeNDArray 8 (Ref __iruid_3946) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3946)))) (True)) (Let __iruid_3948 (NDArrayMap __iruid_3949 (NDArrayMap2 __iruid_3950 __iruid_3951 (NDArrayReshape (Ref __iruid_3947) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_3947) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_3950) (Ref __iruid_3951))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3949) (I32 0)))) (Let __iruid_3952 (NDArraySlice (Ref __iruid_3948) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (Let __iruid_3953 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3954 (MakeNDArray 8 (Ref __iruid_3953) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3953)))) (True)) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_3955 __iruid_3956 (NDArrayReshape (Ref __iruid_3954) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_3954) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_3955) (Ref __iruid_3956))))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (Let __iruid_3957 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3958 (MakeNDArray 8 (Ref __iruid_3957) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3957)))) (True)) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_3959 __iruid_3960 (NDArrayReshape (Ref __iruid_3958) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_3958) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_3959) (Ref __iruid_3960))))))) (I64 1)))) (Let __iruid_3961 (NDArraySlice (Literal NDArray[Float64,2] ) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 1)))) (Let __iruid_3962 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeStruct (rows (MakeArray Array[Struct{__uid_46:NDArray[Float64,1]}] (MakeStruct (__uid_46 (TailLoop __iruid_3963 (__iruid_3964 __iruid_3965 __iruid_3966 __iruid_3967 __iruid_3968) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (NDArraySlice (Ref __iruid_3940) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (If (ApplyComparisonOp GTEQ (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3940)))) (Let __iruid_3969 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3970 (NDArraySlice (MakeNDArray 1 (Ref __iruid_3969) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3969)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_3971 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_3972 (NDArrayMap __iruid_3973 (NDArrayMap2 __iruid_3974 __iruid_3975 (NDArrayMap __iruid_3976 (NDArrayReshape (Ref __iruid_3970) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3970))) (I64 1))) (Cast Int64 (Ref __iruid_3976))) (NDArrayReshape (Ref __iruid_3971) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3971))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3974) (Ref __iruid_3975))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3973) (I64 0)))) (Let __iruid_3977 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_3972)))) (Let __iruid_3978 (NDArrayMap __iruid_3979 (NDArrayAgg (1) (Ref __iruid_3972)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3979) (Ref __iruid_3977))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_3980 __iruid_3981 (Ref __iruid_3978) (NDArrayMap __iruid_3982 (Ref __iruid_3978) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_3982))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3980) (Ref __iruid_3981))))))))))) (I64 1)) (I64 1)))) (NDArrayMap2 __iruid_3983 __iruid_3984 (NDArraySlice (Ref __iruid_3940) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3940)))) (GetTupleElement 0 (NDArrayShape (Let __iruid_3985 (Cast Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_3986 __iruid_3987 (NDArrayMap __iruid_3988 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (Let __iruid_3989 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (If (IsNA (Ref __iruid_3989)) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3989))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_3988))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3986) (Ref __iruid_3987)))))) (Let __iruid_3990 (Cast Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_3991 __iruid_3992 (NDArrayMap __iruid_3993 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_3993))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3991) (Ref __iruid_3992)))))) (NDArrayMap2 __iruid_3994 __iruid_3995 (NDArrayMap __iruid_3996 (NDArrayAgg (1) (NDArrayMap __iruid_3997 (NDArrayMap2 __iruid_3998 __iruid_3999 (NDArrayMap __iruid_4000 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4000))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3998) (Ref __iruid_3999))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3997) (I64 0))))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3996) (Ref __iruid_3985))) (NDArrayMap __iruid_4001 (NDArrayAgg (1) (NDArrayMap __iruid_4002 (NDArrayMap2 __iruid_4003 __iruid_4004 (NDArrayMap __iruid_4005 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4005))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4003) (Ref __iruid_4004))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4002) (I64 0))))) (ApplyBinaryPrimOp Subtract (F64 1.0) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4001) (Ref __iruid_3990)))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3994) (Ref __iruid_3995))))))) (I64 1)) (Let __iruid_4006 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4007 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4006) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4006)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4008 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4009 (NDArrayMap __iruid_4010 (NDArrayMap2 __iruid_4011 __iruid_4012 (NDArrayMap __iruid_4013 (NDArrayReshape (Ref __iruid_4007) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4007))) (I64 1))) (Cast Int64 (Ref __iruid_4013))) (NDArrayReshape (Ref __iruid_4008) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4008))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4011) (Ref __iruid_4012))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4010) (I64 0)))) (Let __iruid_4014 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4009)))) (Let __iruid_4015 (NDArrayMap __iruid_4016 (NDArrayAgg (1) (Ref __iruid_4009)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4016) (Ref __iruid_4014))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4017 __iruid_4018 (Ref __iruid_4015) (NDArrayMap __iruid_4019 (Ref __iruid_4015) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4019))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4017) (Ref __iruid_4018))))))))))) (I64 1)))) (NDArraySlice (Ref __iruid_3940) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (If (ApplyComparisonOp GTEQ (I64 -1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3940)))) (Let __iruid_4020 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4021 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4020) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4020)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4022 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4023 (NDArrayMap __iruid_4024 (NDArrayMap2 __iruid_4025 __iruid_4026 (NDArrayMap __iruid_4027 (NDArrayReshape (Ref __iruid_4021) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4021))) (I64 1))) (Cast Int64 (Ref __iruid_4027))) (NDArrayReshape (Ref __iruid_4022) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4022))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4025) (Ref __iruid_4026))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4024) (I64 0)))) (Let __iruid_4028 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4023)))) (Let __iruid_4029 (NDArrayMap __iruid_4030 (NDArrayAgg (1) (Ref __iruid_4023)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4030) (Ref __iruid_4028))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4031 __iruid_4032 (Ref __iruid_4029) (NDArrayMap __iruid_4033 (Ref __iruid_4029) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4033))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4031) (Ref __iruid_4032))))))))))) (Let __iruid_4034 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4035 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4034) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4034)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4036 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4037 (NDArrayMap __iruid_4038 (NDArrayMap2 __iruid_4039 __iruid_4040 (NDArrayMap __iruid_4041 (NDArrayReshape (Ref __iruid_4035) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4035))) (I64 1))) (Cast Int64 (Ref __iruid_4041))) (NDArrayReshape (Ref __iruid_4036) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4036))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4039) (Ref __iruid_4040))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4038) (I64 0)))) (Let __iruid_4042 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4037)))) (Let __iruid_4043 (NDArrayMap __iruid_4044 (NDArrayAgg (1) (Ref __iruid_4037)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4044) (Ref __iruid_4042))) (If (ApplyComparisonOp GTEQ (ApplyBinaryPrimOp Add (I64 -1) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4045 __iruid_4046 (Ref __iruid_4043) (NDArrayMap __iruid_4047 (Ref __iruid_4043) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4047))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4045) (Ref __iruid_4046)))))) (I64 0)) (Let __iruid_4048 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4049 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4048) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4048)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4050 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (If (IsNA (Ref __iruid_4050)) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4050))))))) (I64 1)))) (Let __iruid_4051 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4052 (NDArrayMap __iruid_4053 (NDArrayMap2 __iruid_4054 __iruid_4055 (NDArrayMap __iruid_4056 (NDArrayReshape (Ref __iruid_4049) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4049))) (I64 1))) (Cast Int64 (Ref __iruid_4056))) (NDArrayReshape (Ref __iruid_4051) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4051))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4054) (Ref __iruid_4055))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4053) (I64 0)))) (Let __iruid_4057 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4052)))) (Let __iruid_4058 (NDArrayMap __iruid_4059 (NDArrayAgg (1) (Ref __iruid_4052)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4059) (Ref __iruid_4057))) (ApplyBinaryPrimOp Add (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4060 __iruid_4061 (Ref __iruid_4058) (NDArrayMap __iruid_4062 (Ref __iruid_4058) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4062))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4060) (Ref __iruid_4061))))) (I64 -1)))))))) (I64 0))))))))) (I64 1)))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3983) (Ref __iruid_3984))) (NDArrayReshape (NDArrayMap __iruid_4063 (MakeNDArray 2 (Ref __iruid_3945) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3945)))) (True)) (F64 0.0)) (Literal Tuple[Int64] )))) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (MakeNDArray 4 (Literal Array[Float64] ) (Literal Tuple[Int64] ) (True)) (MakeNDArray 5 (ToArray (StreamMap __iruid_4064 (ToStream False (Literal Array[Int32] )) (Cast Float64 (Ref __iruid_4064)))) (Literal Tuple[Int64] ) (True)) (MakeNDArray 6 (Literal Array[Float64] ) (Literal Tuple[Int64] ) (True)))) (NDArrayConcat 2 (MakeArray Array[NDArray[Float64,3]] (NDArrayConcat 0 (ToArray (StreamMap __iruid_4065 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] )))) (I32 1)) (NDArrayReshape (Ref __iruid_3952) (MakeTuple (0 1 2) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3952))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3952)))))))) (NDArrayMap __iruid_4066 (NDArrayConcat 1 (ToArray (StreamMap __iruid_4067 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_3948)))) (I32 1)) (NDArrayReshape (Ref __iruid_3961) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3961))) (I64 1) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3961)))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4066) (F64 -1.0))))) (NDArrayMap __iruid_4068 (NDArrayMap2 __iruid_4069 __iruid_4070 (NDArrayMap __iruid_4071 (NDArrayReshape (MakeNDArray 12 (Ref __iruid_3962) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3962)))) (True)) (Literal Tuple[Int64,Int64] )) (Cast Int64 (Ref __iruid_4071))) (NDArrayReshape (Literal NDArray[Int64,1] ) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_4069) (Ref __iruid_4070))) (ApplyBinaryPrimOp Subtract (ApplyBinaryPrimOp Multiply (F64 2.0) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4068) (I64 0)))) (F64 1.0))) (F64 1.0E-5) (Let __iruid_4072 (NDArrayMap __iruid_4073 (NDArrayMap2 __iruid_4074 __iruid_4075 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4074) (Ref __iruid_4075))) (If (ApplyComparisonOp GT (Ref __iruid_4073) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4073))))) (Let __iruid_4076 (Apply exp () Float64 (Ref __iruid_4073)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4076) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4076)))))) (Let __iruid_4077 (NDArraySlice (NDArrayMap2 __iruid_4078 __iruid_4079 (Ref __iruid_4072) (NDArrayMap __iruid_4080 (Ref __iruid_4072) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4080))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4078) (Ref __iruid_4079))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4081 __iruid_4082 (NDArrayMap __iruid_4083 (NDArrayMap2 __iruid_4084 __iruid_4085 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4084) (Ref __iruid_4085))) (If (ApplyComparisonOp GT (Ref __iruid_4083) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4083))))) (Let __iruid_4086 (Apply exp () Float64 (Ref __iruid_4083)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4086) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4086)))))) (NDArrayMap __iruid_4087 (NDArrayMap2 __iruid_4088 __iruid_4089 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4088) (Ref __iruid_4089))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4087) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4087))))) (Let __iruid_4090 (Apply exp () Float64 (Ref __iruid_4087)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4090) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4090))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4081) (Ref __iruid_4082))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4091 __iruid_4092 (NDArrayMap __iruid_4093 (NDArrayMap2 __iruid_4094 __iruid_4095 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4094) (Ref __iruid_4095))) (If (ApplyComparisonOp GT (Ref __iruid_4093) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4093))))) (Let __iruid_4096 (Apply exp () Float64 (Ref __iruid_4093)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4096) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4096)))))) (NDArrayMap __iruid_4097 (NDArrayMap2 __iruid_4098 __iruid_4099 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4098) (Ref __iruid_4099))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4097) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4097))))) (Let __iruid_4100 (Apply exp () Float64 (Ref __iruid_4097)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4100) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4100))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4091) (Ref __iruid_4092))))) (I64 1)))) (Let __iruid_4101 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4102 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4103 (NDArraySlice (NDArrayMap2 __iruid_4104 __iruid_4105 (NDArrayMap __iruid_4106 (Ref __iruid_4072) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4106))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4104) (Ref __iruid_4105))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4107 __iruid_4108 (NDArrayMap __iruid_4109 (NDArrayMap2 __iruid_4110 __iruid_4111 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4110) (Ref __iruid_4111))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4109) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4109))))) (Let __iruid_4112 (Apply exp () Float64 (Ref __iruid_4109)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4112) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4112))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4107) (Ref __iruid_4108))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4113 __iruid_4114 (NDArrayMap __iruid_4115 (NDArrayMap2 __iruid_4116 __iruid_4117 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4116) (Ref __iruid_4117))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4115) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4115))))) (Let __iruid_4118 (Apply exp () Float64 (Ref __iruid_4115)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4118) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4118))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4113) (Ref __iruid_4114))))) (I64 1)))) (Let __iruid_4119 (NDArrayMap __iruid_4120 (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4121 __iruid_4122 (NDArrayMap2 __iruid_4123 __iruid_4124 (NDArrayReshape (Ref __iruid_4077) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4077))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4077))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_4101) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4101))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4101))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4101))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4123) (Ref __iruid_4124))) (NDArrayReshape (Ref __iruid_4102) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4102))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4102))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4102))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4121) (Ref __iruid_4122)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4125 __iruid_4126 (NDArrayReshape (Ref __iruid_4103) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4103))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4103))) (I64 1))) (Ref __iruid_3966) (ApplyBinaryPrimOp Multiply (Ref __iruid_4125) (Ref __iruid_4126)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (Apply abs () Float64 (Ref __iruid_4120))) (If (ApplyComparisonOp LT (StreamFold2 (__iruid_4130 __iruid_4131) __iruid_4127 (StreamFilter __iruid_4128 (StreamMap __iruid_4129 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4119)))) (I32 1)) (NDArrayRef 16 (Ref __iruid_4119) (Cast Int64 (Ref __iruid_4129)))) (ApplyUnaryPrimOp Bang (IsNA (Ref __iruid_4128)))) (NA Float64) (True) (If (Ref __iruid_4131) (Ref __iruid_4127) (Apply max () Float64 (Ref __iruid_4130) (Ref __iruid_4127))) (False) (Ref __iruid_4130)) (Ref __iruid_3968)) (Let __iruid_4132 (NDArrayMap __iruid_4133 (NDArrayMap2 __iruid_4134 __iruid_4135 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4134) (Ref __iruid_4135))) (If (ApplyComparisonOp GT (Ref __iruid_4133) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4133))))) (Let __iruid_4136 (Apply exp () Float64 (Ref __iruid_4133)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4136) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4136)))))) (Let __iruid_4137 (NDArraySlice (NDArrayMap2 __iruid_4138 __iruid_4139 (Ref __iruid_4132) (NDArrayMap __iruid_4140 (Ref __iruid_4132) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4140))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4138) (Ref __iruid_4139))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4141 __iruid_4142 (NDArrayMap __iruid_4143 (NDArrayMap2 __iruid_4144 __iruid_4145 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4144) (Ref __iruid_4145))) (If (ApplyComparisonOp GT (Ref __iruid_4143) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4143))))) (Let __iruid_4146 (Apply exp () Float64 (Ref __iruid_4143)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4146) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4146)))))) (NDArrayMap __iruid_4147 (NDArrayMap2 __iruid_4148 __iruid_4149 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4148) (Ref __iruid_4149))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4147) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4147))))) (Let __iruid_4150 (Apply exp () Float64 (Ref __iruid_4147)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4150) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4150))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4141) (Ref __iruid_4142))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4151 __iruid_4152 (NDArrayMap __iruid_4153 (NDArrayMap2 __iruid_4154 __iruid_4155 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4154) (Ref __iruid_4155))) (If (ApplyComparisonOp GT (Ref __iruid_4153) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4153))))) (Let __iruid_4156 (Apply exp () Float64 (Ref __iruid_4153)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4156) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4156)))))) (NDArrayMap __iruid_4157 (NDArrayMap2 __iruid_4158 __iruid_4159 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4158) (Ref __iruid_4159))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4157) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4157))))) (Let __iruid_4160 (Apply exp () Float64 (Ref __iruid_4157)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4160) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4160))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4151) (Ref __iruid_4152))))) (I64 1)))) (Let __iruid_4161 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4162 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4163 (NDArraySlice (NDArrayMap2 __iruid_4164 __iruid_4165 (NDArrayMap __iruid_4166 (Ref __iruid_4132) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4166))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4164) (Ref __iruid_4165))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4167 __iruid_4168 (NDArrayMap __iruid_4169 (NDArrayMap2 __iruid_4170 __iruid_4171 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4170) (Ref __iruid_4171))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4169) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4169))))) (Let __iruid_4172 (Apply exp ( ) Float64 (Ref __iruid_4169)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4172) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4172))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4167) (Ref __iruid_4168))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4173 __iruid_4174 (NDArrayMap __iruid_4175 (NDArrayMap2 __iruid_4176 __iruid_4177 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4176) (Ref __iruid_4177))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4175) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4175))))) (Let __iruid_4178 (Apply exp ( ) Float64 (Ref __iruid_4175)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4178) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4178))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4173) (Ref __iruid_4174))))) (I64 1)))) (Let __iruid_4179 (NDArrayMap2 __iruid_4180 __iruid_4181 (Ref __iruid_3964) (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4182 __iruid_4183 (NDArrayMap2 __iruid_4184 __iruid_4185 (NDArrayReshape (Ref __iruid_4137) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4137))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4137))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_4161) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4161))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4161))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4161))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4184) (Ref __iruid_4185))) (NDArrayReshape (Ref __iruid_4162) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4162))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4162))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4162))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4182) (Ref __iruid_4183)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4186 __iruid_4187 (NDArrayReshape (Ref __iruid_4163) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4163))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4163))) (I64 1))) (Ref __iruid_3966) (ApplyBinaryPrimOp Multiply (Ref __iruid_4186) (Ref __iruid_4187)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (ApplyBinaryPrimOp Add (Ref __iruid_4180) (Ref __iruid_4181))) (Let __iruid_4188 (ToArray (StreamZip TakeMinLength (__iruid_4189 __iruid_4190) (StreamMap __iruid_4191 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4179)))) (I32 1)) (NDArrayRef 13 (Ref __iruid_4179) (Cast Int64 (Ref __iruid_4191)))) (StreamMap __iruid_4192 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_3965)))) (I32 1)) (NDArrayRef 14 (Ref __iruid_3965) (Cast Int64 (Ref __iruid_4192)))) (Let __iruid_4193 (MakeTuple (0 1) (Ref __iruid_4189) (Ref __iruid_4190)) (ApplySpecial max_ignore_missing () Float64 (GetTupleElement 0 (Ref __iruid_4193)) (GetTupleElement 1 (Ref __iruid_4193)))))) (MakeNDArray 15 (Ref __iruid_4188) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4188)))) (True))))))))) (Let __iruid_4194 (NDArrayMap __iruid_4195 (NDArrayMap2 __iruid_4196 __iruid_4197 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4196) (Ref __iruid_4197))) (If (ApplyComparisonOp GT (Ref __iruid_4195) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4195))))) (Let __iruid_4198 (Apply exp () Float64 (Ref __iruid_4195)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4198) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4198)))))) (Let __iruid_4199 (NDArraySlice (NDArrayMap2 __iruid_4200 __iruid_4201 (Ref __iruid_4194) (NDArrayMap __iruid_4202 (Ref __iruid_4194) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4202))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4200) (Ref __iruid_4201))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4203 (NDArrayMap __iruid_4204 (NDArrayMap2 __iruid_4205 __iruid_4206 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4205) (Ref __iruid_4206))) (If (ApplyComparisonOp GT (Ref __iruid_4204) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4204))))) (Let __iruid_4207 (Apply exp () Float64 (Ref __iruid_4204)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4207) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4207)))))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4208 __iruid_4209 (Ref __iruid_4203) (NDArrayMap __iruid_4210 (Ref __iruid_4203) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4210))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4208) (Ref __iruid_4209)))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4211 (NDArrayMap __iruid_4212 (NDArrayMap2 __iruid_4213 __iruid_4214 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4213) (Ref __iruid_4214))) (If (ApplyComparisonOp GT (Ref __iruid_4212) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4212))))) (Let __iruid_4215 (Apply exp () Float64 (Ref __iruid_4212)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4215) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4215)))))) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4216 __iruid_4217 (Ref __iruid_4211) (NDArrayMap __iruid_4218 (Ref __iruid_4211) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4218))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4216) (Ref __iruid_4217)))))) (I64 1)))) (Let __iruid_4219 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4220 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4221 (NDArraySlice (NDArrayMap2 __iruid_4222 __iruid_4223 (NDArrayMap __iruid_4224 (Ref __iruid_4194) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4224))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4222) (Ref __iruid_4223))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4225 __iruid_4226 (NDArrayMap __iruid_4227 (NDArrayMap2 __iruid_4228 __iruid_4229 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4228) (Ref __iruid_4229))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4227) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4227))))) (Let __iruid_4230 (Apply exp ( ) Float64 (Ref __iruid_4227)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4230) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4230))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4225) (Ref __iruid_4226))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4231 __iruid_4232 (NDArrayMap __iruid_4233 (NDArrayMap2 __iruid_4234 __iruid_4235 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4234) (Ref __iruid_4235))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4233) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4233))))) (Let __iruid_4236 (Apply exp ( ) Float64 (Ref __iruid_4233)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4236) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4236))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4231) (Ref __iruid_4232))))) (I64 1)))) (Let __iruid_4237 (NDArrayMap2 __iruid_4238 __iruid_4239 (Ref __iruid_3964) (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4240 __iruid_4241 (NDArrayMap2 __iruid_4242 __iruid_4243 (NDArrayReshape (Ref __iruid_4199) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4199))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4199))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_4219) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4219))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4219))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4219))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4242) (Ref __iruid_4243))) (NDArrayReshape (Ref __iruid_4220) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4220))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4220))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4220))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4240) (Ref __iruid_4241)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4244 __iruid_4245 (NDArrayReshape (Ref __iruid_4221) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4221))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4221))) (I64 1))) (Ref __iruid_3966) (ApplyBinaryPrimOp Multiply (Ref __iruid_4244) (Ref __iruid_4245)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (ApplyBinaryPrimOp Add (Ref __iruid_4238) (Ref __iruid_4239))) (Let __iruid_4246 (ToArray (StreamZip TakeMinLength (__iruid_4247 __iruid_4248) (StreamMap __iruid_4249 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4237)))) (I32 1)) (NDArrayRef 13 (Ref __iruid_4237) (Cast Int64 (Ref __iruid_4249)))) (StreamMap __iruid_4250 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_3965)))) (I32 1)) (NDArrayRef 14 (Ref __iruid_3965) (Cast Int64 (Ref __iruid_4250)))) (Let __iruid_4251 (MakeTuple (0 1) (Ref __iruid_4247) (Ref __iruid_4248)) (ApplySpecial max_ignore_missing () Float64 (GetTupleElement 0 (Ref __iruid_4251)) (GetTupleElement 1 (Ref __iruid_4251)))))) (Recur __iruid_3963 NDArray[Float64,1] (MakeNDArray 15 (Ref __iruid_4246) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4246)))) (True)) (Ref __iruid_3965) (Ref __iruid_3966) (Ref __iruid_3967) (Ref __iruid_3968))))))))))))))))))))) (global (Literal Struct{} )))))))))))))))))))))) (GetField __uid_46 (Ref __iruid_3928)))) 2021-07-16 15:24:46 root: INFO: optimize optimize: relationalLowerer, after LowerMatrixToTable: before: IR size 2553: (ToArray (StreamMap __iruid_3928 (ToStream False (GetField rows (TableCollect (TableHead 1 (TableParallelize 1 (Let __iruid_3929 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3930 (NDArraySlice (MakeNDArray 1 (Ref __iruid_3929) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3929)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_3931 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_3932 (NDArrayMap __iruid_3933 (NDArrayMap2 __iruid_3934 __iruid_3935 (NDArrayMap __iruid_3936 (NDArrayReshape (Ref __iruid_3930) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3930))) (I64 1))) (Cast Int64 (Ref __iruid_3936))) (NDArrayReshape (Ref __iruid_3931) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3931))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3934) (Ref __iruid_3935))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3933) (I64 0)))) (Let __iruid_3937 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_3932)))) (Let __iruid_3938 (NDArrayMap __iruid_3939 (NDArrayAgg (1) (Ref __iruid_3932)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3939) (Ref __iruid_3937))) (Let __iruid_3940 (NDArrayMap __iruid_3941 (NDArrayMap2 __iruid_3942 __iruid_3943 (Ref __iruid_3938) (NDArrayMap __iruid_3944 (Ref __iruid_3938) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_3944))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3942) (Ref __iruid_3943))) (Apply log () Float64 (Ref __iruid_3941))) (Let __iruid_3945 (ToArray (StreamRange False (I32 0) (I32 4) (I32 1))) (Let __iruid_3946 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3947 (MakeNDArray 8 (Ref __iruid_3946) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3946)))) (True)) (Let __iruid_3948 (NDArrayMap __iruid_3949 (NDArrayMap2 __iruid_3950 __iruid_3951 (NDArrayReshape (Ref __iruid_3947) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_3947) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_3950) (Ref __iruid_3951))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3949) (I32 0)))) (Let __iruid_3952 (NDArraySlice (Ref __iruid_3948) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (Let __iruid_3953 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3954 (MakeNDArray 8 (Ref __iruid_3953) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3953)))) (True)) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_3955 __iruid_3956 (NDArrayReshape (Ref __iruid_3954) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_3954) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_3955) (Ref __iruid_3956))))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (Let __iruid_3957 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3958 (MakeNDArray 8 (Ref __iruid_3957) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3957)))) (True)) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_3959 __iruid_3960 (NDArrayReshape (Ref __iruid_3958) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_3958) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_3959) (Ref __iruid_3960))))))) (I64 1)))) (Let __iruid_3961 (NDArraySlice (Literal NDArray[Float64,2] ) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 1)))) (Let __iruid_3962 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeStruct (rows (MakeArray Array[Struct{__uid_46:NDArray[Float64,1]}] (MakeStruct (__uid_46 (TailLoop __iruid_3963 (__iruid_3964 __iruid_3965 __iruid_3966 __iruid_3967 __iruid_3968) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (NDArraySlice (Ref __iruid_3940) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (If (ApplyComparisonOp GTEQ (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3940)))) (Let __iruid_3969 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_3970 (NDArraySlice (MakeNDArray 1 (Ref __iruid_3969) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3969)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_3971 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_3972 (NDArrayMap __iruid_3973 (NDArrayMap2 __iruid_3974 __iruid_3975 (NDArrayMap __iruid_3976 (NDArrayReshape (Ref __iruid_3970) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3970))) (I64 1))) (Cast Int64 (Ref __iruid_3976))) (NDArrayReshape (Ref __iruid_3971) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3971))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3974) (Ref __iruid_3975))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3973) (I64 0)))) (Let __iruid_3977 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_3972)))) (Let __iruid_3978 (NDArrayMap __iruid_3979 (NDArrayAgg (1) (Ref __iruid_3972)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3979) (Ref __iruid_3977))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_3980 __iruid_3981 (Ref __iruid_3978) (NDArrayMap __iruid_3982 (Ref __iruid_3978) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_3982))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3980) (Ref __iruid_3981))))))))))) (I64 1)) (I64 1)))) (NDArrayMap2 __iruid_3983 __iruid_3984 (NDArraySlice (Ref __iruid_3940) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3940)))) (GetTupleElement 0 (NDArrayShape (Let __iruid_3985 (Cast Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_3986 __iruid_3987 (NDArrayMap __iruid_3988 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (Let __iruid_3989 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (If (IsNA (Ref __iruid_3989)) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3989))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_3988))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3986) (Ref __iruid_3987)))))) (Let __iruid_3990 (Cast Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_3991 __iruid_3992 (NDArrayMap __iruid_3993 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_3993))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3991) (Ref __iruid_3992)))))) (NDArrayMap2 __iruid_3994 __iruid_3995 (NDArrayMap __iruid_3996 (NDArrayAgg (1) (NDArrayMap __iruid_3997 (NDArrayMap2 __iruid_3998 __iruid_3999 (NDArrayMap __iruid_4000 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4000))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3998) (Ref __iruid_3999))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_3997) (I64 0))))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3996) (Ref __iruid_3985))) (NDArrayMap __iruid_4001 (NDArrayAgg (1) (NDArrayMap __iruid_4002 (NDArrayMap2 __iruid_4003 __iruid_4004 (NDArrayMap __iruid_4005 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4005))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4003) (Ref __iruid_4004))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4002) (I64 0))))) (ApplyBinaryPrimOp Subtract (F64 1.0) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4001) (Ref __iruid_3990)))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_3994) (Ref __iruid_3995))))))) (I64 1)) (Let __iruid_4006 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4007 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4006) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4006)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4008 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4009 (NDArrayMap __iruid_4010 (NDArrayMap2 __iruid_4011 __iruid_4012 (NDArrayMap __iruid_4013 (NDArrayReshape (Ref __iruid_4007) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4007))) (I64 1))) (Cast Int64 (Ref __iruid_4013))) (NDArrayReshape (Ref __iruid_4008) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4008))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4011) (Ref __iruid_4012))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4010) (I64 0)))) (Let __iruid_4014 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4009)))) (Let __iruid_4015 (NDArrayMap __iruid_4016 (NDArrayAgg (1) (Ref __iruid_4009)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4016) (Ref __iruid_4014))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4017 __iruid_4018 (Ref __iruid_4015) (NDArrayMap __iruid_4019 (Ref __iruid_4015) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4019))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4017) (Ref __iruid_4018))))))))))) (I64 1)))) (NDArraySlice (Ref __iruid_3940) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (If (ApplyComparisonOp GTEQ (I64 -1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3940)))) (Let __iruid_4020 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4021 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4020) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4020)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4022 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4023 (NDArrayMap __iruid_4024 (NDArrayMap2 __iruid_4025 __iruid_4026 (NDArrayMap __iruid_4027 (NDArrayReshape (Ref __iruid_4021) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4021))) (I64 1))) (Cast Int64 (Ref __iruid_4027))) (NDArrayReshape (Ref __iruid_4022) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4022))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4025) (Ref __iruid_4026))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4024) (I64 0)))) (Let __iruid_4028 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4023)))) (Let __iruid_4029 (NDArrayMap __iruid_4030 (NDArrayAgg (1) (Ref __iruid_4023)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4030) (Ref __iruid_4028))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4031 __iruid_4032 (Ref __iruid_4029) (NDArrayMap __iruid_4033 (Ref __iruid_4029) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4033))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4031) (Ref __iruid_4032))))))))))) (Let __iruid_4034 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4035 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4034) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4034)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4036 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4037 (NDArrayMap __iruid_4038 (NDArrayMap2 __iruid_4039 __iruid_4040 (NDArrayMap __iruid_4041 (NDArrayReshape (Ref __iruid_4035) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4035))) (I64 1))) (Cast Int64 (Ref __iruid_4041))) (NDArrayReshape (Ref __iruid_4036) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4036))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4039) (Ref __iruid_4040))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4038) (I64 0)))) (Let __iruid_4042 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4037)))) (Let __iruid_4043 (NDArrayMap __iruid_4044 (NDArrayAgg (1) (Ref __iruid_4037)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4044) (Ref __iruid_4042))) (If (ApplyComparisonOp GTEQ (ApplyBinaryPrimOp Add (I64 -1) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4045 __iruid_4046 (Ref __iruid_4043) (NDArrayMap __iruid_4047 (Ref __iruid_4043) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4047))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4045) (Ref __iruid_4046)))))) (I64 0)) (Let __iruid_4048 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4049 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4048) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4048)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4050 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (If (IsNA (Ref __iruid_4050)) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4050))))))) (I64 1)))) (Let __iruid_4051 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4052 (NDArrayMap __iruid_4053 (NDArrayMap2 __iruid_4054 __iruid_4055 (NDArrayMap __iruid_4056 (NDArrayReshape (Ref __iruid_4049) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4049))) (I64 1))) (Cast Int64 (Ref __iruid_4056))) (NDArrayReshape (Ref __iruid_4051) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4051))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4054) (Ref __iruid_4055))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4053) (I64 0)))) (Let __iruid_4057 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4052)))) (Let __iruid_4058 (NDArrayMap __iruid_4059 (NDArrayAgg (1) (Ref __iruid_4052)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4059) (Ref __iruid_4057))) (ApplyBinaryPrimOp Add (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4060 __iruid_4061 (Ref __iruid_4058) (NDArrayMap __iruid_4062 (Ref __iruid_4058) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4062))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4060) (Ref __iruid_4061))))) (I64 -1)))))))) (I64 0))))))))) (I64 1)))) (ApplyBinaryPrimOp Subtract (Ref __iruid_3983) (Ref __iruid_3984))) (NDArrayReshape (NDArrayMap __iruid_4063 (MakeNDArray 2 (Ref __iruid_3945) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3945)))) (True)) (F64 0.0)) (Literal Tuple[Int64] )))) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (MakeNDArray 4 (Literal Array[Float64] ) (Literal Tuple[Int64] ) (True)) (MakeNDArray 5 (ToArray (StreamMap __iruid_4064 (ToStream False (Literal Array[Int32] )) (Cast Float64 (Ref __iruid_4064)))) (Literal Tuple[Int64] ) (True)) (MakeNDArray 6 (Literal Array[Float64] ) (Literal Tuple[Int64] ) (True)))) (NDArrayConcat 2 (MakeArray Array[NDArray[Float64,3]] (NDArrayConcat 0 (ToArray (StreamMap __iruid_4065 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] )))) (I32 1)) (NDArrayReshape (Ref __iruid_3952) (MakeTuple (0 1 2) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3952))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3952)))))))) (NDArrayMap __iruid_4066 (NDArrayConcat 1 (ToArray (StreamMap __iruid_4067 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_3948)))) (I32 1)) (NDArrayReshape (Ref __iruid_3961) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3961))) (I64 1) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3961)))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4066) (F64 -1.0))))) (NDArrayMap __iruid_4068 (NDArrayMap2 __iruid_4069 __iruid_4070 (NDArrayMap __iruid_4071 (NDArrayReshape (MakeNDArray 12 (Ref __iruid_3962) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_3962)))) (True)) (Literal Tuple[Int64,Int64] )) (Cast Int64 (Ref __iruid_4071))) (NDArrayReshape (Literal NDArray[Int64,1] ) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_4069) (Ref __iruid_4070))) (ApplyBinaryPrimOp Subtract (ApplyBinaryPrimOp Multiply (F64 2.0) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4068) (I64 0)))) (F64 1.0))) (F64 1.0E-5) (Let __iruid_4072 (NDArrayMap __iruid_4073 (NDArrayMap2 __iruid_4074 __iruid_4075 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4074) (Ref __iruid_4075))) (If (ApplyComparisonOp GT (Ref __iruid_4073) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4073))))) (Let __iruid_4076 (Apply exp () Float64 (Ref __iruid_4073)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4076) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4076)))))) (Let __iruid_4077 (NDArraySlice (NDArrayMap2 __iruid_4078 __iruid_4079 (Ref __iruid_4072) (NDArrayMap __iruid_4080 (Ref __iruid_4072) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4080))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4078) (Ref __iruid_4079))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4081 __iruid_4082 (NDArrayMap __iruid_4083 (NDArrayMap2 __iruid_4084 __iruid_4085 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4084) (Ref __iruid_4085))) (If (ApplyComparisonOp GT (Ref __iruid_4083) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4083))))) (Let __iruid_4086 (Apply exp () Float64 (Ref __iruid_4083)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4086) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4086)))))) (NDArrayMap __iruid_4087 (NDArrayMap2 __iruid_4088 __iruid_4089 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4088) (Ref __iruid_4089))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4087) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4087))))) (Let __iruid_4090 (Apply exp () Float64 (Ref __iruid_4087)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4090) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4090))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4081) (Ref __iruid_4082))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4091 __iruid_4092 (NDArrayMap __iruid_4093 (NDArrayMap2 __iruid_4094 __iruid_4095 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4094) (Ref __iruid_4095))) (If (ApplyComparisonOp GT (Ref __iruid_4093) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4093))))) (Let __iruid_4096 (Apply exp () Float64 (Ref __iruid_4093)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4096) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4096)))))) (NDArrayMap __iruid_4097 (NDArrayMap2 __iruid_4098 __iruid_4099 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4098) (Ref __iruid_4099))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4097) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4097))))) (Let __iruid_4100 (Apply exp () Float64 (Ref __iruid_4097)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4100) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4100))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4091) (Ref __iruid_4092))))) (I64 1)))) (Let __iruid_4101 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4102 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4103 (NDArraySlice (NDArrayMap2 __iruid_4104 __iruid_4105 (NDArrayMap __iruid_4106 (Ref __iruid_4072) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4106))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4104) (Ref __iruid_4105))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4107 __iruid_4108 (NDArrayMap __iruid_4109 (NDArrayMap2 __iruid_4110 __iruid_4111 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4110) (Ref __iruid_4111))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4109) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4109))))) (Let __iruid_4112 (Apply exp () Float64 (Ref __iruid_4109)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4112) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4112))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4107) (Ref __iruid_4108))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4113 __iruid_4114 (NDArrayMap __iruid_4115 (NDArrayMap2 __iruid_4116 __iruid_4117 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4116) (Ref __iruid_4117))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4115) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4115))))) (Let __iruid_4118 (Apply exp () Float64 (Ref __iruid_4115)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4118) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4118))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4113) (Ref __iruid_4114))))) (I64 1)))) (Let __iruid_4119 (NDArrayMap __iruid_4120 (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4121 __iruid_4122 (NDArrayMap2 __iruid_4123 __iruid_4124 (NDArrayReshape (Ref __iruid_4077) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4077))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4077))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_4101) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4101))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4101))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4101))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4123) (Ref __iruid_4124))) (NDArrayReshape (Ref __iruid_4102) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4102))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4102))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4102))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4121) (Ref __iruid_4122)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4125 __iruid_4126 (NDArrayReshape (Ref __iruid_4103) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4103))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4103))) (I64 1))) (Ref __iruid_3966) (ApplyBinaryPrimOp Multiply (Ref __iruid_4125) (Ref __iruid_4126)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (Apply abs () Float64 (Ref __iruid_4120))) (If (ApplyComparisonOp LT (StreamFold2 (__iruid_4130 __iruid_4131) __iruid_4127 (StreamFilter __iruid_4128 (StreamMap __iruid_4129 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4119)))) (I32 1)) (NDArrayRef 16 (Ref __iruid_4119) (Cast Int64 (Ref __iruid_4129)))) (ApplyUnaryPrimOp Bang (IsNA (Ref __iruid_4128)))) (NA Float64) (True) (If (Ref __iruid_4131) (Ref __iruid_4127) (Apply max () Float64 (Ref __iruid_4130) (Ref __iruid_4127))) (False) (Ref __iruid_4130)) (Ref __iruid_3968)) (Let __iruid_4132 (NDArrayMap __iruid_4133 (NDArrayMap2 __iruid_4134 __iruid_4135 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4134) (Ref __iruid_4135))) (If (ApplyComparisonOp GT (Ref __iruid_4133) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4133))))) (Let __iruid_4136 (Apply exp () Float64 (Ref __iruid_4133)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4136) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4136)))))) (Let __iruid_4137 (NDArraySlice (NDArrayMap2 __iruid_4138 __iruid_4139 (Ref __iruid_4132) (NDArrayMap __iruid_4140 (Ref __iruid_4132) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4140))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4138) (Ref __iruid_4139))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4141 __iruid_4142 (NDArrayMap __iruid_4143 (NDArrayMap2 __iruid_4144 __iruid_4145 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4144) (Ref __iruid_4145))) (If (ApplyComparisonOp GT (Ref __iruid_4143) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4143))))) (Let __iruid_4146 (Apply exp () Float64 (Ref __iruid_4143)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4146) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4146)))))) (NDArrayMap __iruid_4147 (NDArrayMap2 __iruid_4148 __iruid_4149 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4148) (Ref __iruid_4149))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4147) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4147))))) (Let __iruid_4150 (Apply exp () Float64 (Ref __iruid_4147)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4150) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4150))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4141) (Ref __iruid_4142))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4151 __iruid_4152 (NDArrayMap __iruid_4153 (NDArrayMap2 __iruid_4154 __iruid_4155 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4154) (Ref __iruid_4155))) (If (ApplyComparisonOp GT (Ref __iruid_4153) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4153))))) (Let __iruid_4156 (Apply exp () Float64 (Ref __iruid_4153)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4156) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4156)))))) (NDArrayMap __iruid_4157 (NDArrayMap2 __iruid_4158 __iruid_4159 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4158) (Ref __iruid_4159))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4157) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4157))))) (Let __iruid_4160 (Apply exp () Float64 (Ref __iruid_4157)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4160) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4160))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4151) (Ref __iruid_4152))))) (I64 1)))) (Let __iruid_4161 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4162 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4163 (NDArraySlice (NDArrayMap2 __iruid_4164 __iruid_4165 (NDArrayMap __iruid_4166 (Ref __iruid_4132) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4166))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4164) (Ref __iruid_4165))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4167 __iruid_4168 (NDArrayMap __iruid_4169 (NDArrayMap2 __iruid_4170 __iruid_4171 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4170) (Ref __iruid_4171))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4169) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4169))))) (Let __iruid_4172 (Apply exp ( ) Float64 (Ref __iruid_4169)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4172) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4172))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4167) (Ref __iruid_4168))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4173 __iruid_4174 (NDArrayMap __iruid_4175 (NDArrayMap2 __iruid_4176 __iruid_4177 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4176) (Ref __iruid_4177))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4175) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4175))))) (Let __iruid_4178 (Apply exp ( ) Float64 (Ref __iruid_4175)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4178) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4178))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4173) (Ref __iruid_4174))))) (I64 1)))) (Let __iruid_4179 (NDArrayMap2 __iruid_4180 __iruid_4181 (Ref __iruid_3964) (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4182 __iruid_4183 (NDArrayMap2 __iruid_4184 __iruid_4185 (NDArrayReshape (Ref __iruid_4137) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4137))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4137))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_4161) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4161))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4161))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4161))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4184) (Ref __iruid_4185))) (NDArrayReshape (Ref __iruid_4162) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4162))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4162))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4162))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4182) (Ref __iruid_4183)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4186 __iruid_4187 (NDArrayReshape (Ref __iruid_4163) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4163))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4163))) (I64 1))) (Ref __iruid_3966) (ApplyBinaryPrimOp Multiply (Ref __iruid_4186) (Ref __iruid_4187)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (ApplyBinaryPrimOp Add (Ref __iruid_4180) (Ref __iruid_4181))) (Let __iruid_4188 (ToArray (StreamZip TakeMinLength (__iruid_4189 __iruid_4190) (StreamMap __iruid_4191 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4179)))) (I32 1)) (NDArrayRef 13 (Ref __iruid_4179) (Cast Int64 (Ref __iruid_4191)))) (StreamMap __iruid_4192 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_3965)))) (I32 1)) (NDArrayRef 14 (Ref __iruid_3965) (Cast Int64 (Ref __iruid_4192)))) (Let __iruid_4193 (MakeTuple (0 1) (Ref __iruid_4189) (Ref __iruid_4190)) (ApplySpecial max_ignore_missing () Float64 (GetTupleElement 0 (Ref __iruid_4193)) (GetTupleElement 1 (Ref __iruid_4193)))))) (MakeNDArray 15 (Ref __iruid_4188) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4188)))) (True))))))))) (Let __iruid_4194 (NDArrayMap __iruid_4195 (NDArrayMap2 __iruid_4196 __iruid_4197 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4196) (Ref __iruid_4197))) (If (ApplyComparisonOp GT (Ref __iruid_4195) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4195))))) (Let __iruid_4198 (Apply exp () Float64 (Ref __iruid_4195)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4198) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4198)))))) (Let __iruid_4199 (NDArraySlice (NDArrayMap2 __iruid_4200 __iruid_4201 (Ref __iruid_4194) (NDArrayMap __iruid_4202 (Ref __iruid_4194) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4202))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4200) (Ref __iruid_4201))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4203 (NDArrayMap __iruid_4204 (NDArrayMap2 __iruid_4205 __iruid_4206 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4205) (Ref __iruid_4206))) (If (ApplyComparisonOp GT (Ref __iruid_4204) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4204))))) (Let __iruid_4207 (Apply exp () Float64 (Ref __iruid_4204)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4207) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4207)))))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4208 __iruid_4209 (Ref __iruid_4203) (NDArrayMap __iruid_4210 (Ref __iruid_4203) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4210))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4208) (Ref __iruid_4209)))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4211 (NDArrayMap __iruid_4212 (NDArrayMap2 __iruid_4213 __iruid_4214 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4213) (Ref __iruid_4214))) (If (ApplyComparisonOp GT (Ref __iruid_4212) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4212))))) (Let __iruid_4215 (Apply exp () Float64 (Ref __iruid_4212)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4215) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4215)))))) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4216 __iruid_4217 (Ref __iruid_4211) (NDArrayMap __iruid_4218 (Ref __iruid_4211) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4218))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4216) (Ref __iruid_4217)))))) (I64 1)))) (Let __iruid_4219 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4220 (NDArraySlice (Ref __iruid_3966) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_3966))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_3966))) (I64 1)))) (Let __iruid_4221 (NDArraySlice (NDArrayMap2 __iruid_4222 __iruid_4223 (NDArrayMap __iruid_4224 (Ref __iruid_4194) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4224))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4222) (Ref __iruid_4223))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4225 __iruid_4226 (NDArrayMap __iruid_4227 (NDArrayMap2 __iruid_4228 __iruid_4229 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4228) (Ref __iruid_4229))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4227) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4227))))) (Let __iruid_4230 (Apply exp ( ) Float64 (Ref __iruid_4227)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4230) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4230))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4225) (Ref __iruid_4226))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4231 __iruid_4232 (NDArrayMap __iruid_4233 (NDArrayMap2 __iruid_4234 __iruid_4235 (Ref __iruid_3967) (NDArrayMatMul (Ref __iruid_3966) (Ref __iruid_3964)) (ApplyBinaryPrimOp Multiply (Ref __iruid_4234) (Ref __iruid_4235))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_4233) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_4233))))) (Let __iruid_4236 (Apply exp ( ) Float64 (Ref __iruid_4233)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4236) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_4236))))))) (Ref __iruid_3967) (ApplyBinaryPrimOp Multiply (Ref __iruid_4231) (Ref __iruid_4232))))) (I64 1)))) (Let __iruid_4237 (NDArrayMap2 __iruid_4238 __iruid_4239 (Ref __iruid_3964) (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4240 __iruid_4241 (NDArrayMap2 __iruid_4242 __iruid_4243 (NDArrayReshape (Ref __iruid_4199) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4199))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4199))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_4219) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4219))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4219))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4219))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4242) (Ref __iruid_4243))) (NDArrayReshape (Ref __iruid_4220) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4220))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4220))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4220))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_4240) (Ref __iruid_4241)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_4244 __iruid_4245 (NDArrayReshape (Ref __iruid_4221) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4221))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4221))) (I64 1))) (Ref __iruid_3966) (ApplyBinaryPrimOp Multiply (Ref __iruid_4244) (Ref __iruid_4245)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (ApplyBinaryPrimOp Add (Ref __iruid_4238) (Ref __iruid_4239))) (Let __iruid_4246 (ToArray (StreamZip TakeMinLength (__iruid_4247 __iruid_4248) (StreamMap __iruid_4249 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4237)))) (I32 1)) (NDArrayRef 13 (Ref __iruid_4237) (Cast Int64 (Ref __iruid_4249)))) (StreamMap __iruid_4250 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_3965)))) (I32 1)) (NDArrayRef 14 (Ref __iruid_3965) (Cast Int64 (Ref __iruid_4250)))) (Let __iruid_4251 (MakeTuple (0 1) (Ref __iruid_4247) (Ref __iruid_4248)) (ApplySpecial max_ignore_missing () Float64 (GetTupleElement 0 (Ref __iruid_4251)) (GetTupleElement 1 (Ref __iruid_4251)))))) (Recur __iruid_3963 NDArray[Float64,1] (MakeNDArray 15 (Ref __iruid_4246) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4246)))) (True)) (Ref __iruid_3965) (Ref __iruid_3966) (Ref __iruid_3967) (Ref __iruid_3968))))))))))))))))))))) (global (Literal Struct{} )))))))))))))))))))))) (GetField __uid_46 (Ref __iruid_3928)))) 2021-07-16 15:24:46 root: INFO: optimize optimize: relationalLowerer, after LowerMatrixToTable: after: IR size 2553: (ToArray (StreamMap __iruid_4900 (ToStream False (GetField rows (TableCollect (TableHead 1 (TableParallelize 1 (Let __iruid_4901 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4902 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4901) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4901)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4903 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4904 (NDArrayMap __iruid_4905 (NDArrayMap2 __iruid_4906 __iruid_4907 (NDArrayMap __iruid_4908 (NDArrayReshape (Ref __iruid_4902) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4902))) (I64 1))) (Cast Int64 (Ref __iruid_4908))) (NDArrayReshape (Ref __iruid_4903) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4903))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4906) (Ref __iruid_4907))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4905) (I64 0)))) (Let __iruid_4909 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4904)))) (Let __iruid_4910 (NDArrayMap __iruid_4911 (NDArrayAgg (1) (Ref __iruid_4904)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4911) (Ref __iruid_4909))) (Let __iruid_4912 (NDArrayMap __iruid_4913 (NDArrayMap2 __iruid_4914 __iruid_4915 (Ref __iruid_4910) (NDArrayMap __iruid_4916 (Ref __iruid_4910) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4916))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4914) (Ref __iruid_4915))) (Apply log () Float64 (Ref __iruid_4913))) (Let __iruid_4917 (ToArray (StreamRange False (I32 0) (I32 4) (I32 1))) (Let __iruid_4918 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4919 (MakeNDArray 8 (Ref __iruid_4918) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4918)))) (True)) (Let __iruid_4920 (NDArrayMap __iruid_4921 (NDArrayMap2 __iruid_4922 __iruid_4923 (NDArrayReshape (Ref __iruid_4919) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_4919) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_4922) (Ref __iruid_4923))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4921) (I32 0)))) (Let __iruid_4924 (NDArraySlice (Ref __iruid_4920) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4925 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4926 (MakeNDArray 8 (Ref __iruid_4925) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4925)))) (True)) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4927 __iruid_4928 (NDArrayReshape (Ref __iruid_4926) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_4926) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_4927) (Ref __iruid_4928))))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4929 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4930 (MakeNDArray 8 (Ref __iruid_4929) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4929)))) (True)) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4931 __iruid_4932 (NDArrayReshape (Ref __iruid_4930) (Literal Tuple[Int64,Int64] )) (NDArrayReshape (Ref __iruid_4930) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_4931) (Ref __iruid_4932))))))) (I64 1)))) (Let __iruid_4933 (NDArraySlice (Literal NDArray[Float64,2] ) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Literal NDArray[Float64,2] ))) (I64 1)))) (Let __iruid_4934 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeStruct (rows (MakeArray Array[Struct{__uid_46:NDArray[Float64,1]}] (MakeStruct (__uid_46 (TailLoop __iruid_4935 (__iruid_4936 __iruid_4937 __iruid_4938 __iruid_4939 __iruid_4940) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (NDArraySlice (Ref __iruid_4912) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (If (ApplyComparisonOp GTEQ (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4912)))) (Let __iruid_4941 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4942 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4941) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4941)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4943 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4944 (NDArrayMap __iruid_4945 (NDArrayMap2 __iruid_4946 __iruid_4947 (NDArrayMap __iruid_4948 (NDArrayReshape (Ref __iruid_4942) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4942))) (I64 1))) (Cast Int64 (Ref __iruid_4948))) (NDArrayReshape (Ref __iruid_4943) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4943))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4946) (Ref __iruid_4947))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4945) (I64 0)))) (Let __iruid_4949 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4944)))) (Let __iruid_4950 (NDArrayMap __iruid_4951 (NDArrayAgg (1) (Ref __iruid_4944)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4951) (Ref __iruid_4949))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4952 __iruid_4953 (Ref __iruid_4950) (NDArrayMap __iruid_4954 (Ref __iruid_4950) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4954))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4952) (Ref __iruid_4953))))))))))) (I64 1)) (I64 1)))) (NDArrayMap2 __iruid_4955 __iruid_4956 (NDArraySlice (Ref __iruid_4912) (MakeTuple (0) (MakeTuple (0 1 2) (If (ApplyComparisonOp GTEQ (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4912)))) (GetTupleElement 0 (NDArrayShape (Let __iruid_4957 (Cast Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4958 __iruid_4959 (NDArrayMap __iruid_4960 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (Let __iruid_4961 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (If (IsNA (Ref __iruid_4961)) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4961))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4960))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4958) (Ref __iruid_4959)))))) (Let __iruid_4962 (Cast Float64 (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_4963 __iruid_4964 (NDArrayMap __iruid_4965 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4965))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4963) (Ref __iruid_4964)))))) (NDArrayMap2 __iruid_4966 __iruid_4967 (NDArrayMap __iruid_4968 (NDArrayAgg (1) (NDArrayMap __iruid_4969 (NDArrayMap2 __iruid_4970 __iruid_4971 (NDArrayMap __iruid_4972 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4972))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4970) (Ref __iruid_4971))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4969) (I64 0))))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4968) (Ref __iruid_4957))) (NDArrayMap __iruid_4973 (NDArrayAgg (1) (NDArrayMap __iruid_4974 (NDArrayMap2 __iruid_4975 __iruid_4976 (NDArrayMap __iruid_4977 (NDArrayReshape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (MakeNDArray 1 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))))) (I64 1))) (Cast Int64 (Ref __iruid_4977))) (NDArrayReshape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4975) (Ref __iruid_4976))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4974) (I64 0))))) (ApplyBinaryPrimOp Subtract (F64 1.0) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4973) (Ref __iruid_4962)))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4966) (Ref __iruid_4967))))))) (I64 1)) (Let __iruid_4978 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4979 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4978) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4978)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4980 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4981 (NDArrayMap __iruid_4982 (NDArrayMap2 __iruid_4983 __iruid_4984 (NDArrayMap __iruid_4985 (NDArrayReshape (Ref __iruid_4979) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4979))) (I64 1))) (Cast Int64 (Ref __iruid_4985))) (NDArrayReshape (Ref __iruid_4980) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4980))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4983) (Ref __iruid_4984))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4982) (I64 0)))) (Let __iruid_4986 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4981)))) (Let __iruid_4987 (NDArrayMap __iruid_4988 (NDArrayAgg (1) (Ref __iruid_4981)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4988) (Ref __iruid_4986))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_4989 __iruid_4990 (Ref __iruid_4987) (NDArrayMap __iruid_4991 (Ref __iruid_4987) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_4991))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_4989) (Ref __iruid_4990))))))))))) (I64 1)))) (NDArraySlice (Ref __iruid_4912) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (If (ApplyComparisonOp GTEQ (I64 -1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4912)))) (Let __iruid_4992 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_4993 (NDArraySlice (MakeNDArray 1 (Ref __iruid_4992) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4992)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_4994 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_4995 (NDArrayMap __iruid_4996 (NDArrayMap2 __iruid_4997 __iruid_4998 (NDArrayMap __iruid_4999 (NDArrayReshape (Ref __iruid_4993) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4993))) (I64 1))) (Cast Int64 (Ref __iruid_4999))) (NDArrayReshape (Ref __iruid_4994) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4994))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4997) (Ref __iruid_4998))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_4996) (I64 0)))) (Let __iruid_5000 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_4995)))) (Let __iruid_5001 (NDArrayMap __iruid_5002 (NDArrayAgg (1) (Ref __iruid_4995)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5002) (Ref __iruid_5000))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5003 __iruid_5004 (Ref __iruid_5001) (NDArrayMap __iruid_5005 (Ref __iruid_5001) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5005))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5003) (Ref __iruid_5004))))))))))) (Let __iruid_5006 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_5007 (NDArraySlice (MakeNDArray 1 (Ref __iruid_5006) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_5006)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (If (IsNA (ToArray (StreamRange False (I32 1) (I32 3) (I32 1)))) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (StreamLen (StreamRange False (I32 1) (I32 3) (I32 1))))))) (I64 1)))) (Let __iruid_5008 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_5009 (NDArrayMap __iruid_5010 (NDArrayMap2 __iruid_5011 __iruid_5012 (NDArrayMap __iruid_5013 (NDArrayReshape (Ref __iruid_5007) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5007))) (I64 1))) (Cast Int64 (Ref __iruid_5013))) (NDArrayReshape (Ref __iruid_5008) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5008))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_5011) (Ref __iruid_5012))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_5010) (I64 0)))) (Let __iruid_5014 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_5009)))) (Let __iruid_5015 (NDArrayMap __iruid_5016 (NDArrayAgg (1) (Ref __iruid_5009)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5016) (Ref __iruid_5014))) (If (ApplyComparisonOp GTEQ (ApplyBinaryPrimOp Add (I64 -1) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5017 __iruid_5018 (Ref __iruid_5015) (NDArrayMap __iruid_5019 (Ref __iruid_5015) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5019))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5017) (Ref __iruid_5018)))))) (I64 0)) (Let __iruid_5020 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (Let __iruid_5021 (NDArraySlice (MakeNDArray 1 (Ref __iruid_5020) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_5020)))) (True)) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (Let __iruid_5022 (ToArray (StreamRange False (I32 1) (I32 3) (I32 1))) (GetTupleElement 0 (If (IsNA (Ref __iruid_5022)) (NA Tuple[Int64]) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_5022))))))) (I64 1)))) (Let __iruid_5023 (NDArraySlice (Literal NDArray[Int64,1] ) (MakeTuple (0) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Literal NDArray[Int64,1] ))) (I64 1)))) (Let __iruid_5024 (NDArrayMap __iruid_5025 (NDArrayMap2 __iruid_5026 __iruid_5027 (NDArrayMap __iruid_5028 (NDArrayReshape (Ref __iruid_5021) (MakeTuple (0 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5021))) (I64 1))) (Cast Int64 (Ref __iruid_5028))) (NDArrayReshape (Ref __iruid_5023) (MakeTuple (0 1) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5023))))) (ApplyBinaryPrimOp Subtract (Ref __iruid_5026) (Ref __iruid_5027))) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_5025) (I64 0)))) (Let __iruid_5029 (Cast Float64 (GetTupleElement 1 (NDArrayShape (Ref __iruid_5024)))) (Let __iruid_5030 (NDArrayMap __iruid_5031 (NDArrayAgg (1) (Ref __iruid_5024)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5031) (Ref __iruid_5029))) (ApplyBinaryPrimOp Add (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5032 __iruid_5033 (Ref __iruid_5030) (NDArrayMap __iruid_5034 (Ref __iruid_5030) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5034))) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5032) (Ref __iruid_5033))))) (I64 -1)))))))) (I64 0))))))))) (I64 1)))) (ApplyBinaryPrimOp Subtract (Ref __iruid_4955) (Ref __iruid_4956))) (NDArrayReshape (NDArrayMap __iruid_5035 (MakeNDArray 2 (Ref __iruid_4917) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4917)))) (True)) (F64 0.0)) (Literal Tuple[Int64] )))) (NDArrayConcat 0 (MakeArray Array[NDArray[Float64,1]] (MakeNDArray 4 (Literal Array[Float64] ) (Literal Tuple[Int64] ) (True)) (MakeNDArray 5 (ToArray (StreamMap __iruid_5036 (ToStream False (Literal Array[Int32] )) (Cast Float64 (Ref __iruid_5036)))) (Literal Tuple[Int64] ) (True)) (MakeNDArray 6 (Literal Array[Float64] ) (Literal Tuple[Int64] ) (True)))) (NDArrayConcat 2 (MakeArray Array[NDArray[Float64,3]] (NDArrayConcat 0 (ToArray (StreamMap __iruid_5037 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Literal NDArray[Float64,2] )))) (I32 1)) (NDArrayReshape (Ref __iruid_4924) (MakeTuple (0 1 2) (I64 1) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4924))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4924)))))))) (NDArrayMap __iruid_5038 (NDArrayConcat 1 (ToArray (StreamMap __iruid_5039 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4920)))) (I32 1)) (NDArrayReshape (Ref __iruid_4933) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4933))) (I64 1) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4933)))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5038) (F64 -1.0))))) (NDArrayMap __iruid_5040 (NDArrayMap2 __iruid_5041 __iruid_5042 (NDArrayMap __iruid_5043 (NDArrayReshape (MakeNDArray 12 (Ref __iruid_4934) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_4934)))) (True)) (Literal Tuple[Int64,Int64] )) (Cast Int64 (Ref __iruid_5043))) (NDArrayReshape (Literal NDArray[Int64,1] ) (Literal Tuple[Int64,Int64] )) (ApplyBinaryPrimOp Subtract (Ref __iruid_5041) (Ref __iruid_5042))) (ApplyBinaryPrimOp Subtract (ApplyBinaryPrimOp Multiply (F64 2.0) (Apply toFloat64 () Float64 (ApplyComparisonOp GTEQ (Ref __iruid_5040) (I64 0)))) (F64 1.0))) (F64 1.0E-5) (Let __iruid_5044 (NDArrayMap __iruid_5045 (NDArrayMap2 __iruid_5046 __iruid_5047 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5046) (Ref __iruid_5047))) (If (ApplyComparisonOp GT (Ref __iruid_5045) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5045))))) (Let __iruid_5048 (Apply exp () Float64 (Ref __iruid_5045)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5048) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5048)))))) (Let __iruid_5049 (NDArraySlice (NDArrayMap2 __iruid_5050 __iruid_5051 (Ref __iruid_5044) (NDArrayMap __iruid_5052 (Ref __iruid_5044) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5052))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5050) (Ref __iruid_5051))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5053 __iruid_5054 (NDArrayMap __iruid_5055 (NDArrayMap2 __iruid_5056 __iruid_5057 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5056) (Ref __iruid_5057))) (If (ApplyComparisonOp GT (Ref __iruid_5055) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5055))))) (Let __iruid_5058 (Apply exp () Float64 (Ref __iruid_5055)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5058) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5058)))))) (NDArrayMap __iruid_5059 (NDArrayMap2 __iruid_5060 __iruid_5061 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5060) (Ref __iruid_5061))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5059) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5059))))) (Let __iruid_5062 (Apply exp () Float64 (Ref __iruid_5059)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5062) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5062))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5053) (Ref __iruid_5054))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_5063 __iruid_5064 (NDArrayMap __iruid_5065 (NDArrayMap2 __iruid_5066 __iruid_5067 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5066) (Ref __iruid_5067))) (If (ApplyComparisonOp GT (Ref __iruid_5065) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5065))))) (Let __iruid_5068 (Apply exp () Float64 (Ref __iruid_5065)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5068) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5068)))))) (NDArrayMap __iruid_5069 (NDArrayMap2 __iruid_5070 __iruid_5071 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5070) (Ref __iruid_5071))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5069) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5069))))) (Let __iruid_5072 (Apply exp () Float64 (Ref __iruid_5069)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5072) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5072))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5063) (Ref __iruid_5064))))) (I64 1)))) (Let __iruid_5073 (NDArraySlice (Ref __iruid_4938) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4938))) (I64 1)))) (Let __iruid_5074 (NDArraySlice (Ref __iruid_4938) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4938))) (I64 1)))) (Let __iruid_5075 (NDArraySlice (NDArrayMap2 __iruid_5076 __iruid_5077 (NDArrayMap __iruid_5078 (Ref __iruid_5044) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5078))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5076) (Ref __iruid_5077))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5079 __iruid_5080 (NDArrayMap __iruid_5081 (NDArrayMap2 __iruid_5082 __iruid_5083 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5082) (Ref __iruid_5083))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5081) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5081))))) (Let __iruid_5084 (Apply exp () Float64 (Ref __iruid_5081)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5084) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5084))))))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5079) (Ref __iruid_5080))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_5085 __iruid_5086 (NDArrayMap __iruid_5087 (NDArrayMap2 __iruid_5088 __iruid_5089 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5088) (Ref __iruid_5089))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5087) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5087))))) (Let __iruid_5090 (Apply exp () Float64 (Ref __iruid_5087)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5090) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5090))))))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5085) (Ref __iruid_5086))))) (I64 1)))) (Let __iruid_5091 (NDArrayMap __iruid_5092 (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_5093 __iruid_5094 (NDArrayMap2 __iruid_5095 __iruid_5096 (NDArrayReshape (Ref __iruid_5049) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5049))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5049))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_5073) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5073))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5073))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_5073))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5095) (Ref __iruid_5096))) (NDArrayReshape (Ref __iruid_5074) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5074))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5074))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_5074))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5093) (Ref __iruid_5094)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_5097 __iruid_5098 (NDArrayReshape (Ref __iruid_5075) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5075))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5075))) (I64 1))) (Ref __iruid_4938) (ApplyBinaryPrimOp Multiply (Ref __iruid_5097) (Ref __iruid_5098)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (Apply abs () Float64 (Ref __iruid_5092))) (If (ApplyComparisonOp LT (StreamFold2 (__iruid_5102 __iruid_5103) __iruid_5099 (StreamFilter __iruid_5100 (StreamMap __iruid_5101 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_5091)))) (I32 1)) (NDArrayRef 16 (Ref __iruid_5091) (Cast Int64 (Ref __iruid_5101)))) (ApplyUnaryPrimOp Bang (IsNA (Ref __iruid_5100)))) (NA Float64) (True) (If (Ref __iruid_5103) (Ref __iruid_5099) (Apply max () Float64 (Ref __iruid_5102) (Ref __iruid_5099))) (False) (Ref __iruid_5102)) (Ref __iruid_4940)) (Let __iruid_5104 (NDArrayMap __iruid_5105 (NDArrayMap2 __iruid_5106 __iruid_5107 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5106) (Ref __iruid_5107))) (If (ApplyComparisonOp GT (Ref __iruid_5105) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5105))))) (Let __iruid_5108 (Apply exp () Float64 (Ref __iruid_5105)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5108) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5108)))))) (Let __iruid_5109 (NDArraySlice (NDArrayMap2 __iruid_5110 __iruid_5111 (Ref __iruid_5104) (NDArrayMap __iruid_5112 (Ref __iruid_5104) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5112))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5110) (Ref __iruid_5111))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5113 __iruid_5114 (NDArrayMap __iruid_5115 (NDArrayMap2 __iruid_5116 __iruid_5117 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5116) (Ref __iruid_5117))) (If (ApplyComparisonOp GT (Ref __iruid_5115) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5115))))) (Let __iruid_5118 (Apply exp () Float64 (Ref __iruid_5115)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5118) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5118)))))) (NDArrayMap __iruid_5119 (NDArrayMap2 __iruid_5120 __iruid_5121 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5120) (Ref __iruid_5121))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5119) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5119))))) (Let __iruid_5122 (Apply exp () Float64 (Ref __iruid_5119)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5122) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5122))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5113) (Ref __iruid_5114))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_5123 __iruid_5124 (NDArrayMap __iruid_5125 (NDArrayMap2 __iruid_5126 __iruid_5127 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5126) (Ref __iruid_5127))) (If (ApplyComparisonOp GT (Ref __iruid_5125) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5125))))) (Let __iruid_5128 (Apply exp () Float64 (Ref __iruid_5125)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5128) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5128)))))) (NDArrayMap __iruid_5129 (NDArrayMap2 __iruid_5130 __iruid_5131 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5130) (Ref __iruid_5131))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5129) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5129))))) (Let __iruid_5132 (Apply exp () Float64 (Ref __iruid_5129)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5132) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5132))))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5123) (Ref __iruid_5124))))) (I64 1)))) (Let __iruid_5133 (NDArraySlice (Ref __iruid_4938) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4938))) (I64 1)))) (Let __iruid_5134 (NDArraySlice (Ref __iruid_4938) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4938))) (I64 1)))) (Let __iruid_5135 (NDArraySlice (NDArrayMap2 __iruid_5136 __iruid_5137 (NDArrayMap __iruid_5138 (Ref __iruid_5104) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5138))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5136) (Ref __iruid_5137))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5139 __iruid_5140 (NDArrayMap __iruid_5141 (NDArrayMap2 __iruid_5142 __iruid_5143 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5142) (Ref __iruid_5143))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5141) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5141))))) (Let __iruid_5144 (Apply exp ( ) Float64 (Ref __iruid_5141)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5144) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5144))))))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5139) (Ref __iruid_5140))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_5145 __iruid_5146 (NDArrayMap __iruid_5147 (NDArrayMap2 __iruid_5148 __iruid_5149 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5148) (Ref __iruid_5149))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5147) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5147))))) (Let __iruid_5150 (Apply exp ( ) Float64 (Ref __iruid_5147)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5150) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5150))))))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5145) (Ref __iruid_5146))))) (I64 1)))) (Let __iruid_5151 (NDArrayMap2 __iruid_5152 __iruid_5153 (Ref __iruid_4936) (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_5154 __iruid_5155 (NDArrayMap2 __iruid_5156 __iruid_5157 (NDArrayReshape (Ref __iruid_5109) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5109))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5109))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_5133) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5133))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5133))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_5133))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5156) (Ref __iruid_5157))) (NDArrayReshape (Ref __iruid_5134) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5134))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5134))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_5134))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5154) (Ref __iruid_5155)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_5158 __iruid_5159 (NDArrayReshape (Ref __iruid_5135) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5135))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5135))) (I64 1))) (Ref __iruid_4938) (ApplyBinaryPrimOp Multiply (Ref __iruid_5158) (Ref __iruid_5159)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (ApplyBinaryPrimOp Add (Ref __iruid_5152) (Ref __iruid_5153))) (Let __iruid_5160 (ToArray (StreamZip TakeMinLength (__iruid_5161 __iruid_5162) (StreamMap __iruid_5163 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_5151)))) (I32 1)) (NDArrayRef 13 (Ref __iruid_5151) (Cast Int64 (Ref __iruid_5163)))) (StreamMap __iruid_5164 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4937)))) (I32 1)) (NDArrayRef 14 (Ref __iruid_4937) (Cast Int64 (Ref __iruid_5164)))) (Let __iruid_5165 (MakeTuple (0 1) (Ref __iruid_5161) (Ref __iruid_5162)) (ApplySpecial max_ignore_missing () Float64 (GetTupleElement 0 (Ref __iruid_5165)) (GetTupleElement 1 (Ref __iruid_5165)))))) (MakeNDArray 15 (Ref __iruid_5160) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_5160)))) (True))))))))) (Let __iruid_5166 (NDArrayMap __iruid_5167 (NDArrayMap2 __iruid_5168 __iruid_5169 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5168) (Ref __iruid_5169))) (If (ApplyComparisonOp GT (Ref __iruid_5167) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5167))))) (Let __iruid_5170 (Apply exp () Float64 (Ref __iruid_5167)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5170) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5170)))))) (Let __iruid_5171 (NDArraySlice (NDArrayMap2 __iruid_5172 __iruid_5173 (Ref __iruid_5166) (NDArrayMap __iruid_5174 (Ref __iruid_5166) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5174))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5172) (Ref __iruid_5173))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (Let __iruid_5175 (NDArrayMap __iruid_5176 (NDArrayMap2 __iruid_5177 __iruid_5178 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5177) (Ref __iruid_5178))) (If (ApplyComparisonOp GT (Ref __iruid_5176) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5176))))) (Let __iruid_5179 (Apply exp () Float64 (Ref __iruid_5176)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5179) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5179)))))) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5180 __iruid_5181 (Ref __iruid_5175) (NDArrayMap __iruid_5182 (Ref __iruid_5175) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5182))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5180) (Ref __iruid_5181)))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (Let __iruid_5183 (NDArrayMap __iruid_5184 (NDArrayMap2 __iruid_5185 __iruid_5186 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5185) (Ref __iruid_5186))) (If (ApplyComparisonOp GT (Ref __iruid_5184) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp () Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5184))))) (Let __iruid_5187 (Apply exp () Float64 (Ref __iruid_5184)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5187) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5187)))))) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_5188 __iruid_5189 (Ref __iruid_5183) (NDArrayMap __iruid_5190 (Ref __iruid_5183) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5190))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5188) (Ref __iruid_5189)))))) (I64 1)))) (Let __iruid_5191 (NDArraySlice (Ref __iruid_4938) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4938))) (I64 1)))) (Let __iruid_5192 (NDArraySlice (Ref __iruid_4938) (MakeTuple (0 1 2) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (Ref __iruid_4938))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 2 (NDArrayShape (Ref __iruid_4938))) (I64 1)))) (Let __iruid_5193 (NDArraySlice (NDArrayMap2 __iruid_5194 __iruid_5195 (NDArrayMap __iruid_5196 (Ref __iruid_5166) (ApplyBinaryPrimOp Subtract (F64 1.0) (Ref __iruid_5196))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5194) (Ref __iruid_5195))) (MakeTuple (0 1) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 0 (NDArrayShape (NDArrayMap2 __iruid_5197 __iruid_5198 (NDArrayMap __iruid_5199 (NDArrayMap2 __iruid_5200 __iruid_5201 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5200) (Ref __iruid_5201))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5199) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5199))))) (Let __iruid_5202 (Apply exp ( ) Float64 (Ref __iruid_5199)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5202) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5202))))))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5197) (Ref __iruid_5198))))) (I64 1)) (MakeTuple (0 1 2) (I64 0) (GetTupleElement 1 (NDArrayShape (NDArrayMap2 __iruid_5203 __iruid_5204 (NDArrayMap __iruid_5205 (NDArrayMap2 __iruid_5206 __iruid_5207 (Ref __iruid_4939) (NDArrayMatMul (Ref __iruid_4938) (Ref __iruid_4936)) (ApplyBinaryPrimOp Multiply (Ref __iruid_5206) (Ref __iruid_5207))) (ApplyBinaryPrimOp Subtract (F64 1.0) (If (ApplyComparisonOp GT (Ref __iruid_5205) (F64 0.0)) (ApplyBinaryPrimOp FloatingPointDivide (F64 1.0) (ApplyBinaryPrimOp Add (F64 1.0) (Apply exp ( ) Float64 (ApplyUnaryPrimOp Negate (Ref __iruid_5205))))) (Let __iruid_5208 (Apply exp ( ) Float64 (Ref __iruid_5205)) (ApplyBinaryPrimOp FloatingPointDivide (Ref __iruid_5208) (ApplyBinaryPrimOp Add (F64 1.0) (Ref __iruid_5208))))))) (Ref __iruid_4939) (ApplyBinaryPrimOp Multiply (Ref __iruid_5203) (Ref __iruid_5204))))) (I64 1)))) (Let __iruid_5209 (NDArrayMap2 __iruid_5210 __iruid_5211 (Ref __iruid_4936) (NDArrayReshape (Apply linear_solve () NDArray[Float64,2] (NDArrayAgg (0 1) (NDArrayMap2 __iruid_5212 __iruid_5213 (NDArrayMap2 __iruid_5214 __iruid_5215 (NDArrayReshape (Ref __iruid_5171) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5171))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5171))) (I64 1) (I64 1))) (NDArrayReshape (Ref __iruid_5191) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5191))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5191))) (GetTupleElement 2 (NDArrayShape (Ref __iruid_5191))) (I64 1))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5214) (Ref __iruid_5215))) (NDArrayReshape (Ref __iruid_5192) (MakeTuple (0 1 2 3) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5192))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5192))) (I64 1) (GetTupleElement 2 (NDArrayShape (Ref __iruid_5192))))) (ApplyBinaryPrimOp Multiply (Ref __iruid_5212) (Ref __iruid_5213)))) (NDArrayReshape (NDArrayAgg (0 1) (NDArrayMap2 __iruid_5216 __iruid_5217 (NDArrayReshape (Ref __iruid_5193) (MakeTuple (0 1 2) (GetTupleElement 0 (NDArrayShape (Ref __iruid_5193))) (GetTupleElement 1 (NDArrayShape (Ref __iruid_5193))) (I64 1))) (Ref __iruid_4938) (ApplyBinaryPrimOp Multiply (Ref __iruid_5216) (Ref __iruid_5217)))) (Literal Tuple[Int64,Int64] ))) (Literal Tuple[Int64] )) (ApplyBinaryPrimOp Add (Ref __iruid_5210) (Ref __iruid_5211))) (Let __iruid_5218 (ToArray (StreamZip TakeMinLength (__iruid_5219 __iruid_5220) (StreamMap __iruid_5221 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_5209)))) (I32 1)) (NDArrayRef 13 (Ref __iruid_5209) (Cast Int64 (Ref __iruid_5221)))) (StreamMap __iruid_5222 (StreamRange False (I32 0) (Cast Int32 (GetTupleElement 0 (NDArrayShape (Ref __iruid_4937)))) (I32 1)) (NDArrayRef 14 (Ref __iruid_4937) (Cast Int64 (Ref __iruid_5222)))) (Let __iruid_5223 (MakeTuple (0 1) (Ref __iruid_5219) (Ref __iruid_5220)) (ApplySpecial max_ignore_missing () Float64 (GetTupleElement 0 (Ref __iruid_5223)) (GetTupleElement 1 (Ref __iruid_5223)))))) (Recur __iruid_4935 NDArray[Float64,1] (MakeNDArray 15 (Ref __iruid_5218) (MakeTuple (0) (Cast Int64 (ArrayLen (Ref __iruid_5218)))) (True)) (Ref __iruid_4937) (Ref __iruid_4938) (Ref __iruid_4939) (Ref __iruid_4940))))))))))))))))))))) (global (Literal Struct{} )))))))))))))))))))))) (GetField __uid_46 (Ref __iruid_4900)))) 2021-07-16 15:24:46 root: INFO: interpreting non compilable node: TableCollect 2021-07-16 15:24:51 root: INFO: encoder cache miss (0 hits, 1 misses, 0.000) 2021-07-16 15:24:51 root: INFO: instruction count: 3: __C2906FSContainer. 2021-07-16 15:24:51 root: INFO: instruction count: 3: __C2906FSContainer. 2021-07-16 15:24:51 root: INFO: instruction count: 3: __C2907etypeEncode. 2021-07-16 15:24:51 root: INFO: instruction count: 5: __C2907etypeEncode.apply 2021-07-16 15:24:51 root: INFO: instruction count: 89: __C2907etypeEncode.__m2908ENCODE_o_tuple_of_r_tuple_of_ENDANDr_tuple_of_r_int64ENDANDr_ndarray_of_r_int64ANDr_array_of_r_int32ANDr_array_of_r_float64ANDr_tuple_of_r_int64ANDr_int64ENDANDr_array_of_r_float64ANDr_tuple_of_r_int64ENDANDr_ndarray_of_r_float64ANDr_tuple_of_r_int64ANDr_int64ENDANDr_tuple_of_r_int64ENDEND_TO_r_struct_of_r_struct_of_ENDANDr_struct_of_r_int64ENDANDr_ndarray_of_r_int64ANDr_array_of_r_int32ANDr_array_of_r_float64ANDr_struct_of_r_int64ANDr_int64ENDANDr_array_of_r_float64ANDr_struct_of_r_int64ENDANDr_ndarray_of_r_float64ANDr_struct_of_r_int64ANDr_int64ENDANDr_struct_of_r_int64ENDEND 2021-07-16 15:24:51 root: INFO: instruction count: 3: __C2907etypeEncode.__m2909ENCODE_o_tuple_of_END_TO_r_struct_of_END 2021-07-16 15:24:51 root: INFO: instruction count: 13: __C2907etypeEncode.__m2910ENCODE_o_tuple_of_r_int64END_TO_r_struct_of_r_int64END 2021-07-16 15:24:51 root: INFO: instruction count: 6: __C2907etypeEncode.__m2911ENCODE_o_int64_TO_r_int64 2021-07-16 15:24:51 root: INFO: instruction count: 74: __C2907etypeEncode.__m2912ENCODE_o_ndarray_of_r_int64_TO_r_ndarray_of_r_int64 2021-07-16 15:24:51 root: INFO: instruction count: 49: __C2907etypeEncode.__m2913ENCODE_o_array_of_r_int32_TO_r_array_of_r_int32 2021-07-16 15:24:51 root: INFO: instruction count: 6: __C2907etypeEncode.__m2914ENCODE_o_int32_TO_r_int32 2021-07-16 15:24:51 root: INFO: instruction count: 49: __C2907etypeEncode.__m2915ENCODE_o_array_of_r_float64_TO_r_array_of_r_float64 2021-07-16 15:24:51 root: INFO: instruction count: 6: __C2907etypeEncode.__m2916ENCODE_o_float64_TO_r_float64 2021-07-16 15:24:51 root: INFO: instruction count: 23: __C2907etypeEncode.__m2917ENCODE_o_tuple_of_r_int64ANDr_int64END_TO_r_struct_of_r_int64ANDr_int64END 2021-07-16 15:24:51 root: INFO: instruction count: 115: __C2907etypeEncode.__m2918ENCODE_o_ndarray_of_r_float64_TO_r_ndarray_of_r_float64 2021-07-16 15:24:51 MemoryStore: INFO: Block broadcast_0 stored as values in memory (estimated size 5.0 KiB, free 366.3 MiB) 2021-07-16 15:24:51 MemoryStore: INFO: Block broadcast_0_piece0 stored as bytes in memory (estimated size 4.3 KiB, free 366.3 MiB) 2021-07-16 15:24:51 BlockManagerInfo: INFO: Added broadcast_0_piece0 in memory on 192.168.8.102:39401 (size: 4.3 KiB, free: 366.3 MiB) 2021-07-16 15:24:51 SparkContext: INFO: Created broadcast 0 from broadcast at SparkBackend.scala:278 2021-07-16 15:24:51 root: INFO: instruction count: 3: __C1FSContainer. 2021-07-16 15:24:51 root: INFO: instruction count: 3: __C1FSContainer. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2Compiled. 2021-07-16 15:24:53 root: INFO: instruction count: 90: __C2Compiled.apply 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m3split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 565: __C2Compiled.__m18split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 82: __C2Compiled.__m22pcndarray_construct_by_copying_array 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m23split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m35split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 63: __C2Compiled.__m60split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m65setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m69setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 7: __C2Compiled.__m75ord_gteq 2021-07-16 15:24:53 root: INFO: instruction count: 14: __C2Compiled.__m76ord_gteqNonnull 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2Compiled.__m77toFloat64 2021-07-16 15:24:53 root: INFO: instruction count: 404: __C2Compiled.__m99split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 6: __C2Compiled.__m113log 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m120split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m135split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 543: __C2Compiled.__m156split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 7: __C2Compiled.__m165ord_gteq 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m166ord_gteqNonnull 2021-07-16 15:24:53 root: INFO: instruction count: 450: __C2Compiled.__m185split_MakeTuple 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m187split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m224split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m289split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 588: __C2Compiled.__m304split_TailLoop 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m354split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 446: __C2Compiled.__m369split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m373split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m385split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 106: __C2Compiled.__m406split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 483: __C2Compiled.__m452split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 206: __C2Compiled.__m454split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m456split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m466split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m480split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m495split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m505split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m519split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m531split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 223: __C2Compiled.__m569split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 190: __C2Compiled.__m571split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m573split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m583split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m597split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m609split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m619split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m629split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m643split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m655split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m693split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m703split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m717split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m729split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m739split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m749split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m763split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m775split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m794split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m804split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m818split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m830split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m840split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m850split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m864split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m876split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m924split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 446: __C2Compiled.__m939split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m943split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m955split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 106: __C2Compiled.__m976split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 540: __C2Compiled.__m1021split_If 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m1023split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 446: __C2Compiled.__m1038split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m1042split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m1054split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 106: __C2Compiled.__m1075split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m1120split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m1137split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 129: __C2Compiled.__m1149split_StreamLen 2021-07-16 15:24:53 root: INFO: instruction count: 325: __C2Compiled.__m1165split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 338: __C2Compiled.__m1197split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m1213split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 462: __C2Compiled.__m1228split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 239: __C2Compiled.__m1232split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 106: __C2Compiled.__m1258split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m1324setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 82: __C2Compiled.__m1338pcndarray_construct_by_copying_array 2021-07-16 15:24:53 root: INFO: instruction count: 150: __C2Compiled.__m1339split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 190: __C2Compiled.__m1361split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m1373setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 190: __C2Compiled.__m1389split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 7: __C2Compiled.__m1468ord_gt 2021-07-16 15:24:53 root: INFO: instruction count: 14: __C2Compiled.__m1469ord_gtNonnull 2021-07-16 15:24:53 root: INFO: instruction count: 6: __C2Compiled.__m1470exp 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m1486split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m1563split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m1676split_NDArrayShape 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m1717split_NDArrayShape 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m1769setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m1772setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 12: __C2Compiled.__m1809setup_null 2021-07-16 15:24:53 root: INFO: instruction count: 618: __C2Compiled.__m1828linear_solve 2021-07-16 15:24:53 root: INFO: instruction count: 6: __C2Compiled.__m1903abs 2021-07-16 15:24:53 root: INFO: instruction count: 369: __C2Compiled.__m1916split_StreamFold2 2021-07-16 15:24:53 root: INFO: instruction count: 6: __C2Compiled.__m1934max 2021-07-16 15:24:53 root: INFO: instruction count: 7: __C2Compiled.__m1937ord_lt 2021-07-16 15:24:53 root: INFO: instruction count: 14: __C2Compiled.__m1938ord_ltNonnull 2021-07-16 15:24:53 root: INFO: instruction count: 525: __C2Compiled.__m1979split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m1986split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m2063split_NDArrayMap2 2021-07-16 15:24:53 root: INFO: instruction count: 441: __C2Compiled.__m2160split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m2178split_NDArrayShape 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m2219split_NDArrayShape 2021-07-16 15:24:53 root: INFO: instruction count: 706: __C2Compiled.__m2269split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 685: __C2Compiled.__m2390split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 274: __C2Compiled.__m2485split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 274: __C2Compiled.__m2536split_Let 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m2623split_NDArrayShape 2021-07-16 15:24:53 root: INFO: instruction count: 277: __C2Compiled.__m2664split_NDArrayShape 2021-07-16 15:24:53 root: INFO: instruction count: 685: __C2Compiled.__m2833split_ToArray 2021-07-16 15:24:53 root: INFO: instruction count: 9: __C2Compiled.setPartitionIndex 2021-07-16 15:24:53 root: INFO: instruction count: 4: __C2Compiled.addPartitionRegion 2021-07-16 15:24:53 root: INFO: instruction count: 4: __C2Compiled.setPool 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2Compiled.addFS 2021-07-16 15:24:53 root: INFO: instruction count: 246: __C2Compiled.addLiterals 2021-07-16 15:24:53 root: INFO: instruction count: 93: __C2Compiled.__m2892DECODE_r_struct_of_r_struct_of_ENDANDr_struct_of_r_int64ENDANDr_ndarray_of_r_int64ANDr_array_of_r_int32ANDr_array_of_r_float64ANDr_struct_of_r_int64ANDr_int64ENDANDr_array_of_r_float64ANDr_struct_of_r_int64ENDANDr_ndarray_of_r_float64ANDr_struct_of_r_int64ANDr_int64ENDANDr_struct_of_r_int64ENDEND_TO_o_tuple_of_r_tuple_of_ENDANDr_tuple_of_r_int64ENDANDr_ndarray_of_r_int64ANDr_array_of_r_int32ANDr_array_of_r_float64ANDr_tuple_of_r_int64ANDr_int64ENDANDr_array_of_r_float64ANDr_tuple_of_r_int64ENDANDr_ndarray_of_r_float64ANDr_tuple_of_r_int64ANDr_int64ENDANDr_tuple_of_r_int64ENDEND 2021-07-16 15:24:53 root: INFO: instruction count: 8: __C2Compiled.__m2893INPLACE_DECODE_r_struct_of_END_TO_r_tuple_of_END 2021-07-16 15:24:53 root: INFO: instruction count: 15: __C2Compiled.__m2894INPLACE_DECODE_r_struct_of_r_int64END_TO_r_tuple_of_r_int64END 2021-07-16 15:24:53 root: INFO: instruction count: 10: __C2Compiled.__m2895INPLACE_DECODE_r_int64_TO_r_int64 2021-07-16 15:24:53 root: INFO: instruction count: 177: __C2Compiled.__m2896INPLACE_DECODE_r_ndarray_of_r_int64_TO_r_ndarray_of_r_int64 2021-07-16 15:24:53 root: INFO: instruction count: 64: __C2Compiled.__m2898INPLACE_DECODE_r_array_of_r_int32_TO_r_array_of_r_int32 2021-07-16 15:24:53 root: INFO: instruction count: 10: __C2Compiled.__m2899INPLACE_DECODE_r_int32_TO_r_int32 2021-07-16 15:24:53 root: INFO: instruction count: 64: __C2Compiled.__m2900INPLACE_DECODE_r_array_of_r_float64_TO_r_array_of_r_float64 2021-07-16 15:24:53 root: INFO: instruction count: 10: __C2Compiled.__m2901INPLACE_DECODE_r_float64_TO_r_float64 2021-07-16 15:24:53 root: INFO: instruction count: 22: __C2Compiled.__m2902INPLACE_DECODE_r_struct_of_r_int64ANDr_int64END_TO_r_tuple_of_r_int64ANDr_int64END 2021-07-16 15:24:53 root: INFO: instruction count: 242: __C2Compiled.__m2903INPLACE_DECODE_r_ndarray_of_r_float64_TO_r_ndarray_of_r_float64 2021-07-16 15:24:53 root: INFO: instruction count: 253: __C2Compiled.__m18split_Letregion28_39 2021-07-16 15:24:53 root: INFO: instruction count: 238: __C2Compiled.__m60split_Letregion84_101 2021-07-16 15:24:53 root: INFO: instruction count: 166: __C2Compiled.__m60split_Letregion102_109 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m60split_Letregion123_130 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m60split_Letregion115_122 2021-07-16 15:24:53 root: INFO: instruction count: 119: __C2Compiled.__m60split_Letregion35_42 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m60split_Letregion47_66 2021-07-16 15:24:53 root: INFO: instruction count: 680: __C2Compiled.__m60split_Letregion0_148 2021-07-16 15:24:53 root: INFO: instruction count: 252: __C2Compiled.__m99split_Letregion17_29 2021-07-16 15:24:53 root: INFO: instruction count: 311: __C2Compiled.__m99split_Letregion0_14 2021-07-16 15:24:53 root: INFO: instruction count: 316: __C2Compiled.__m156split_Letregion148_163 2021-07-16 15:24:53 root: INFO: instruction count: 592: __C2Compiled.__m156split_Letregion147_191 2021-07-16 15:24:53 root: INFO: instruction count: 542: __C2Compiled.__m156split_Letregion102_130 2021-07-16 15:24:53 root: INFO: instruction count: 140: __C2Compiled.__m156split_Letregion98_101 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m156split_Letregion85_97 2021-07-16 15:24:53 root: INFO: instruction count: 493: __C2Compiled.__m156split_Letregion63_195 2021-07-16 15:24:53 root: INFO: instruction count: 312: __C2Compiled.__m185split_MakeTupleregion230_250 2021-07-16 15:24:53 root: INFO: instruction count: 238: __C2Compiled.__m185split_MakeTupleregion204_221 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m185split_MakeTupleregion222_229 2021-07-16 15:24:53 root: INFO: instruction count: 454: __C2Compiled.__m185split_MakeTupleregion146_254 2021-07-16 15:24:53 root: INFO: instruction count: 387: __C2Compiled.__m185split_MakeTupleregion115_256 2021-07-16 15:24:53 root: INFO: instruction count: 238: __C2Compiled.__m185split_MakeTupleregion89_106 2021-07-16 15:24:53 root: INFO: instruction count: 166: __C2Compiled.__m185split_MakeTupleregion107_114 2021-07-16 15:24:53 root: INFO: instruction count: 144: __C2Compiled.__m185split_MakeTupleregion267_274 2021-07-16 15:24:53 root: INFO: instruction count: 500: __C2Compiled.__m185split_MakeTupleregion43_275 2021-07-16 15:24:53 root: INFO: instruction count: 426: __C2Compiled.__m304split_TailLoopregion455_476 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m304split_TailLoopregion485_505 2021-07-16 15:24:53 root: INFO: instruction count: 273: __C2Compiled.__m304split_TailLoopregion523_547 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m304split_TailLoopregion477_484 2021-07-16 15:24:53 root: INFO: instruction count: 297: __C2Compiled.__m304split_TailLoopregion552_569 2021-07-16 15:24:53 root: INFO: instruction count: 253: __C2Compiled.__m304split_TailLoopregion610_630 2021-07-16 15:24:53 root: INFO: instruction count: 357: __C2Compiled.__m304split_TailLoopregion724_741 2021-07-16 15:24:53 root: INFO: instruction count: 253: __C2Compiled.__m304split_TailLoopregion782_802 2021-07-16 15:24:53 root: INFO: instruction count: 197: __C2Compiled.__m304split_TailLoopregion1197_1204 2021-07-16 15:24:53 root: INFO: instruction count: 177: __C2Compiled.__m304split_TailLoopregion1181_1188 2021-07-16 15:24:53 root: INFO: instruction count: 138: __C2Compiled.__m304split_TailLoopregion1149_1156 2021-07-16 15:24:53 root: INFO: instruction count: 478: __C2Compiled.__m304split_TailLoopregion1116_1206 2021-07-16 15:24:53 root: INFO: instruction count: 573: __C2Compiled.__m304split_TailLoopregion1370_1412 2021-07-16 15:24:53 root: INFO: instruction count: 324: __C2Compiled.__m304split_TailLoopregion1081_1098 2021-07-16 15:24:53 root: INFO: instruction count: 457: __C2Compiled.__m304split_TailLoopregion992_1009 2021-07-16 15:24:53 root: INFO: instruction count: 324: __C2Compiled.__m304split_TailLoopregion974_991 2021-07-16 15:24:53 root: INFO: instruction count: 276: __C2Compiled.__m304split_TailLoopregion1290_1307 2021-07-16 15:24:53 root: INFO: instruction count: 194: __C2Compiled.__m304split_TailLoopregion853_884 2021-07-16 15:24:53 root: INFO: instruction count: 194: __C2Compiled.__m304split_TailLoopregion1239_1270 2021-07-16 15:24:53 root: INFO: instruction count: 193: __C2Compiled.__m304split_TailLoopregion1441_1443 2021-07-16 15:24:53 root: INFO: instruction count: 197: __C2Compiled.__m304split_TailLoopregion1099_1111 2021-07-16 15:24:53 root: INFO: instruction count: 181: __C2Compiled.__m304split_TailLoopregion1068_1080 2021-07-16 15:24:53 root: INFO: instruction count: 209: __C2Compiled.__m304split_TailLoopregion901_912 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m304split_TailLoopregion1362_1369 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m304split_TailLoopregion1036_1051 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m304split_TailLoopregion1112_1115 2021-07-16 15:24:53 root: INFO: instruction count: 126: __C2Compiled.__m304split_TailLoopregion806_813 2021-07-16 15:24:53 root: INFO: instruction count: 123: __C2Compiled.__m304split_TailLoopregion1207_1214 2021-07-16 15:24:53 root: INFO: instruction count: 121: __C2Compiled.__m304split_TailLoopregion949_957 2021-07-16 15:24:53 root: INFO: instruction count: 120: __C2Compiled.__m304split_TailLoopregion1282_1289 2021-07-16 15:24:53 root: INFO: instruction count: 115: __C2Compiled.__m304split_TailLoopregion930_948 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m304split_TailLoopregion1437_1440 2021-07-16 15:24:53 root: INFO: instruction count: 98: __C2Compiled.__m304split_TailLoopregion1413_1428 2021-07-16 15:24:53 root: INFO: instruction count: 115: __C2Compiled.__m304split_TailLoopregion913_929 2021-07-16 15:24:53 root: INFO: instruction count: 222: __C2Compiled.__m304split_TailLoopregion1308_1325 2021-07-16 15:24:53 root: INFO: instruction count: 82: __C2Compiled.__m304split_TailLoopregion1345_1353 2021-07-16 15:24:53 root: INFO: instruction count: 109: __C2Compiled.__m304split_TailLoopregion1326_1344 2021-07-16 15:24:53 root: INFO: instruction count: 120: __C2Compiled.__m304split_TailLoopregion836_852 2021-07-16 15:24:53 root: INFO: instruction count: 77: __C2Compiled.__m304split_TailLoopregion825_835 2021-07-16 15:24:53 root: INFO: instruction count: 71: __C2Compiled.__m304split_TailLoopregion1226_1233 2021-07-16 15:24:53 root: INFO: instruction count: 55: __C2Compiled.__m304split_TailLoopregion1429_1436 2021-07-16 15:24:53 root: INFO: instruction count: 58: __C2Compiled.__m304split_TailLoopregion1354_1361 2021-07-16 15:24:53 root: INFO: instruction count: 80: __C2Compiled.__m304split_TailLoopregion1215_1225 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m304split_TailLoopregion1052_1059 2021-07-16 15:24:53 root: INFO: instruction count: 50: __C2Compiled.__m304split_TailLoopregion893_900 2021-07-16 15:24:53 root: INFO: instruction count: 73: __C2Compiled.__m304split_TailLoopregion814_824 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion1060_1067 2021-07-16 15:24:53 root: INFO: instruction count: 298: __C2Compiled.__m304split_TailLoopregion1562_1579 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m304split_TailLoopregion1553_1560 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m304split_TailLoopregion1580_1587 2021-07-16 15:24:53 root: INFO: instruction count: 119: __C2Compiled.__m304split_TailLoopregion1546_1549 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m304split_TailLoopregion1710_1728 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m304split_TailLoopregion1737_1757 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m304split_TailLoopregion1729_1736 2021-07-16 15:24:53 root: INFO: instruction count: 140: __C2Compiled.__m304split_TailLoopregion1771_1774 2021-07-16 15:24:53 root: INFO: instruction count: 297: __C2Compiled.__m304split_TailLoopregion1805_1822 2021-07-16 15:24:53 root: INFO: instruction count: 253: __C2Compiled.__m304split_TailLoopregion1863_1883 2021-07-16 15:24:53 root: INFO: instruction count: 357: __C2Compiled.__m304split_TailLoopregion1961_1978 2021-07-16 15:24:53 root: INFO: instruction count: 253: __C2Compiled.__m304split_TailLoopregion2019_2039 2021-07-16 15:24:53 root: INFO: instruction count: 691: __C2Compiled.__m304split_TailLoopregion1803_1893 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m304split_TailLoopregion1478_1526 2021-07-16 15:24:53 root: INFO: instruction count: 622: __C2Compiled.__m304split_TailLoopregion714_804 2021-07-16 15:24:53 root: INFO: instruction count: 513: __C2Compiled.__m304split_TailLoopregion1960_2041 2021-07-16 15:24:53 root: INFO: instruction count: 683: __C2Compiled.__m304split_TailLoopregion805_1452 2021-07-16 15:24:53 root: INFO: instruction count: 639: __C2Compiled.__m304split_TailLoopregion550_632 2021-07-16 15:24:53 root: INFO: instruction count: 573: __C2Compiled.__m304split_TailLoopregion2466_2508 2021-07-16 15:24:53 root: INFO: instruction count: 848: __C2Compiled.__m304split_TailLoopregion1527_1626 2021-07-16 15:24:53 root: INFO: instruction count: 609: __C2Compiled.__m304split_TailLoopregion1701_1802 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m304split_TailLoopregion397_445 2021-07-16 15:24:53 root: INFO: instruction count: 397: __C2Compiled.__m304split_TailLoopregion446_549 2021-07-16 15:24:53 root: INFO: instruction count: 373: __C2Compiled.__m304split_TailLoopregion1923_1938 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m304split_TailLoopregion1652_1700 2021-07-16 15:24:53 root: INFO: instruction count: 324: __C2Compiled.__m304split_TailLoopregion2290_2307 2021-07-16 15:24:53 root: INFO: instruction count: 467: __C2Compiled.__m304split_TailLoopregion2207_2224 2021-07-16 15:24:53 root: INFO: instruction count: 255: __C2Compiled.__m304split_TailLoopregion2569_2572 2021-07-16 15:24:53 root: INFO: instruction count: 209: __C2Compiled.__m304split_TailLoopregion2120_2131 2021-07-16 15:24:53 root: INFO: instruction count: 197: __C2Compiled.__m304split_TailLoopregion2681_2688 2021-07-16 15:24:53 root: INFO: instruction count: 241: __C2Compiled.__m304split_TailLoopregion2541_2550 2021-07-16 15:24:53 root: INFO: instruction count: 190: __C2Compiled.__m304split_TailLoopregion1628_1635 2021-07-16 15:24:53 root: INFO: instruction count: 190: __C2Compiled.__m304split_TailLoopregion1454_1461 2021-07-16 15:24:53 root: INFO: instruction count: 190: __C2Compiled.__m304split_TailLoopregion373_380 2021-07-16 15:24:53 root: INFO: instruction count: 177: __C2Compiled.__m304split_TailLoopregion2665_2672 2021-07-16 15:24:53 root: INFO: instruction count: 191: __C2Compiled.__m304split_TailLoopregion1951_1958 2021-07-16 15:24:53 root: INFO: instruction count: 191: __C2Compiled.__m304split_TailLoopregion661_668 2021-07-16 15:24:53 root: INFO: instruction count: 405: __C2Compiled.__m304split_TailLoopregion2551_2568 2021-07-16 15:24:53 root: INFO: instruction count: 417: __C2Compiled.__m304split_TailLoopregion669_685 2021-07-16 15:24:53 root: INFO: instruction count: 276: __C2Compiled.__m304split_TailLoopregion2390_2407 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m304split_TailLoopregion2458_2465 2021-07-16 15:24:53 root: INFO: instruction count: 166: __C2Compiled.__m304split_TailLoopregion1918_1921 2021-07-16 15:24:53 root: INFO: instruction count: 166: __C2Compiled.__m304split_TailLoopregion710_713 2021-07-16 15:24:53 root: INFO: instruction count: 210: __C2Compiled.__m304split_TailLoopregion2528_2540 2021-07-16 15:24:53 root: INFO: instruction count: 138: __C2Compiled.__m304split_TailLoopregion2633_2640 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m304split_TailLoopregion2321_2324 2021-07-16 15:24:53 root: INFO: instruction count: 161: __C2Compiled.__m304split_TailLoopregion633_648 2021-07-16 15:24:53 root: INFO: instruction count: 153: __C2Compiled.__m304split_TailLoopregion1894_1909 2021-07-16 15:24:53 root: INFO: instruction count: 153: __C2Compiled.__m304split_TailLoopregion686_701 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m304split_TailLoopregion2408_2416 2021-07-16 15:24:53 root: INFO: instruction count: 126: __C2Compiled.__m304split_TailLoopregion2043_2050 2021-07-16 15:24:53 root: INFO: instruction count: 123: __C2Compiled.__m304split_TailLoopregion2328_2335 2021-07-16 15:24:53 root: INFO: instruction count: 124: __C2Compiled.__m304split_TailLoopregion2382_2389 2021-07-16 15:24:53 root: INFO: instruction count: 121: __C2Compiled.__m304split_TailLoopregion2164_2172 2021-07-16 15:24:53 root: INFO: instruction count: 119: __C2Compiled.__m304split_TailLoopregion2422_2440 2021-07-16 15:24:53 root: INFO: instruction count: 123: __C2Compiled.__m304split_TailLoopregion2242_2260 2021-07-16 15:24:53 root: INFO: instruction count: 117: __C2Compiled.__m304split_TailLoopregion2354_2373 2021-07-16 15:24:53 root: INFO: instruction count: 91: __C2Compiled.__m304split_TailLoopregion2689_2691 2021-07-16 15:24:53 root: INFO: instruction count: 100: __C2Compiled.__m304split_TailLoopregion1939_1950 2021-07-16 15:24:53 root: INFO: instruction count: 100: __C2Compiled.__m304split_TailLoopregion649_660 2021-07-16 15:24:53 root: INFO: instruction count: 82: __C2Compiled.__m304split_TailLoopregion2441_2449 2021-07-16 15:24:53 root: INFO: instruction count: 119: __C2Compiled.__m304split_TailLoopregion2145_2163 2021-07-16 15:24:53 root: INFO: instruction count: 324: __C2Compiled.__m304split_TailLoopregion2189_2206 2021-07-16 15:24:53 root: INFO: instruction count: 66: __C2Compiled.__m304split_TailLoopregion2673_2680 2021-07-16 15:24:53 root: INFO: instruction count: 197: __C2Compiled.__m304split_TailLoopregion2308_2320 2021-07-16 15:24:53 root: INFO: instruction count: 74: __C2Compiled.__m304split_TailLoopregion2051_2062 2021-07-16 15:24:53 root: INFO: instruction count: 55: __C2Compiled.__m304split_TailLoopregion2609_2616 2021-07-16 15:24:53 root: INFO: instruction count: 181: __C2Compiled.__m304split_TailLoopregion2277_2289 2021-07-16 15:24:53 root: INFO: instruction count: 78: __C2Compiled.__m304split_TailLoopregion2063_2074 2021-07-16 15:24:53 root: INFO: instruction count: 63: __C2Compiled.__m304split_TailLoopregion2087_2097 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m304split_TailLoopregion2657_2664 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m304split_TailLoopregion2649_2656 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m304split_TailLoopregion2641_2648 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m304split_TailLoopregion2625_2632 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m304split_TailLoopregion2617_2624 2021-07-16 15:24:53 root: INFO: instruction count: 58: __C2Compiled.__m304split_TailLoopregion2450_2457 2021-07-16 15:24:53 root: INFO: instruction count: 56: __C2Compiled.__m304split_TailLoopregion2705_2712 2021-07-16 15:24:53 root: INFO: instruction count: 61: __C2Compiled.__m304split_TailLoopregion2697_2704 2021-07-16 15:24:53 root: INFO: instruction count: 57: __C2Compiled.__m304split_TailLoopregion2579_2586 2021-07-16 15:24:53 root: INFO: instruction count: 54: __C2Compiled.__m304split_TailLoopregion2509_2519 2021-07-16 15:24:53 root: INFO: instruction count: 68: __C2Compiled.__m304split_TailLoopregion2132_2140 2021-07-16 15:24:53 root: INFO: instruction count: 45: __C2Compiled.__m304split_TailLoopregion2520_2527 2021-07-16 15:24:53 root: INFO: instruction count: 50: __C2Compiled.__m304split_TailLoopregion1910_1917 2021-07-16 15:24:53 root: INFO: instruction count: 50: __C2Compiled.__m304split_TailLoopregion702_709 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion2713_2715 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion2595_2597 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m304split_TailLoopregion2587_2594 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion2573_2575 2021-07-16 15:24:53 root: INFO: instruction count: 77: __C2Compiled.__m304split_TailLoopregion2343_2353 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m304split_TailLoopregion2261_2268 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion1644_1651 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion1636_1643 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion1470_1477 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion1462_1469 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion389_396 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion381_388 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion2269_2276 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion2173_2180 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m304split_TailLoopregion2112_2119 2021-07-16 15:24:53 root: INFO: instruction count: 42: __C2Compiled.__m304split_TailLoopregion2181_2188 2021-07-16 15:24:53 root: INFO: instruction count: 41: __C2Compiled.__m304split_TailLoopregion2098_2104 2021-07-16 15:24:53 root: INFO: instruction count: 39: __C2Compiled.__m304split_TailLoopregion2105_2111 2021-07-16 15:24:53 root: INFO: instruction count: 71: __C2Compiled.__m304split_TailLoopregion2229_2236 2021-07-16 15:24:53 root: INFO: instruction count: 67: __C2Compiled.__m304split_TailLoopregion2075_2082 2021-07-16 15:24:53 root: INFO: instruction count: 30: __C2Compiled.__m304split_TailLoopregion2378_2381 2021-07-16 15:24:53 root: INFO: instruction count: 28: __C2Compiled.__m304split_TailLoopregion2374_2377 2021-07-16 15:24:53 root: INFO: instruction count: 30: __C2Compiled.__m304split_TailLoopregion2336_2338 2021-07-16 15:24:53 root: INFO: instruction count: 1190: __C2Compiled.__m304split_TailLoopregion373_2733 2021-07-16 15:24:53 root: INFO: instruction count: 238: __C2Compiled.__m304split_TailLoopregion345_362 2021-07-16 15:24:53 root: INFO: instruction count: 166: __C2Compiled.__m304split_TailLoopregion363_370 2021-07-16 15:24:53 root: INFO: instruction count: 159: __C2Compiled.__m304split_TailLoopregion2745_2752 2021-07-16 15:24:53 root: INFO: instruction count: 541: __C2Compiled.__m304split_TailLoopregion303_2754 2021-07-16 15:24:53 root: INFO: instruction count: 364: __C2Compiled.__m304split_TailLoopregion261_2755 2021-07-16 15:24:53 root: INFO: instruction count: 908: __C2Compiled.__m304split_TailLoopregion220_2759 2021-07-16 15:24:53 root: INFO: instruction count: 813: __C2Compiled.__m304split_TailLoopregion182_2763 2021-07-16 15:24:53 root: INFO: instruction count: 773: __C2Compiled.__m304split_TailLoopregion145_2765 2021-07-16 15:24:53 root: INFO: instruction count: 835: __C2Compiled.__m304split_TailLoopregion120_2775 2021-07-16 15:24:53 root: INFO: instruction count: 217: __C2Compiled.__m304split_TailLoopregion105_112 2021-07-16 15:24:53 root: INFO: instruction count: 975: __C2Compiled.__m304split_TailLoopregion68_2781 2021-07-16 15:24:53 root: INFO: instruction count: 228: __C2Compiled.__m304split_TailLoopregion55_2785 2021-07-16 15:24:53 root: INFO: instruction count: 192: __C2Compiled.__m304split_TailLoopregion14_25 2021-07-16 15:24:53 root: INFO: instruction count: 355: __C2Compiled.__m369split_Letregion8_29 2021-07-16 15:24:53 root: INFO: instruction count: 392: __C2Compiled.__m406split_Letregion141_167 2021-07-16 15:24:53 root: INFO: instruction count: 332: __C2Compiled.__m406split_Letregion122_140 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m406split_Letregion179_186 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m406split_Letregion116_119 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m406split_Letregion171_178 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m406split_Letregion103_115 2021-07-16 15:24:53 root: INFO: instruction count: 125: __C2Compiled.__m406split_Letregion66_81 2021-07-16 15:24:53 root: INFO: instruction count: 109: __C2Compiled.__m406split_Letregion41_48 2021-07-16 15:24:53 root: INFO: instruction count: 723: __C2Compiled.__m406split_Letregion0_188 2021-07-16 15:24:53 root: INFO: instruction count: 172: __C2Compiled.__m452split_NDArrayMap2region42_58 2021-07-16 15:24:53 root: INFO: instruction count: 184: __C2Compiled.__m452split_NDArrayMap2region1_15 2021-07-16 15:24:53 root: INFO: instruction count: 273: __C2Compiled.__m454split_NDArrayMap2region33_53 2021-07-16 15:24:53 root: INFO: instruction count: 211: __C2Compiled.__m454split_NDArrayMap2region93_108 2021-07-16 15:24:53 root: INFO: instruction count: 186: __C2Compiled.__m454split_NDArrayMap2region13_24 2021-07-16 15:24:53 root: INFO: instruction count: 152: __C2Compiled.__m454split_NDArrayMap2region191_198 2021-07-16 15:24:53 root: INFO: instruction count: 142: __C2Compiled.__m454split_NDArrayMap2region183_190 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m454split_NDArrayMap2region174_177 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m454split_NDArrayMap2region161_173 2021-07-16 15:24:53 root: INFO: instruction count: 133: __C2Compiled.__m454split_NDArrayMap2region148_160 2021-07-16 15:24:53 root: INFO: instruction count: 115: __C2Compiled.__m454split_NDArrayMap2region85_92 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m454split_NDArrayMap2region109_112 2021-07-16 15:24:53 root: INFO: instruction count: 118: __C2Compiled.__m454split_NDArrayMap2region120_139 2021-07-16 15:24:53 root: INFO: instruction count: 772: __C2Compiled.__m454split_NDArrayMap2region12_217 2021-07-16 15:24:53 root: INFO: instruction count: 346: __C2Compiled.__m569split_Letregion399_424 2021-07-16 15:24:53 root: INFO: instruction count: 480: __C2Compiled.__m569split_Letregion370_428 2021-07-16 15:24:53 root: INFO: instruction count: 263: __C2Compiled.__m569split_Letregion37_57 2021-07-16 15:24:53 root: INFO: instruction count: 250: __C2Compiled.__m569split_Letregion213_230 2021-07-16 15:24:53 root: INFO: instruction count: 214: __C2Compiled.__m569split_Letregion348_365 2021-07-16 15:24:53 root: INFO: instruction count: 211: __C2Compiled.__m569split_Letregion282_297 2021-07-16 15:24:53 root: INFO: instruction count: 211: __C2Compiled.__m569split_Letregion101_116 2021-07-16 15:24:53 root: INFO: instruction count: 186: __C2Compiled.__m569split_Letregion193_204 2021-07-16 15:24:53 root: INFO: instruction count: 186: __C2Compiled.__m569split_Letregion17_28 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m569split_Letregion257_273 2021-07-16 15:24:53 root: INFO: instruction count: 133: __C2Compiled.__m569split_Letregion335_347 2021-07-16 15:24:53 root: INFO: instruction count: 228: __C2Compiled.__m569split_Letregion172_184 2021-07-16 15:24:53 root: INFO: instruction count: 113: __C2Compiled.__m569split_Letregion274_281 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m569split_Letregion366_369 2021-07-16 15:24:53 root: INFO: instruction count: 115: __C2Compiled.__m569split_Letregion93_100 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m569split_Letregion298_301 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m569split_Letregion117_120 2021-07-16 15:24:53 root: INFO: instruction count: 113: __C2Compiled.__m569split_Letregion132_150 2021-07-16 15:24:53 root: INFO: instruction count: 117: __C2Compiled.__m569split_Letregion58_74 2021-07-16 15:24:53 root: INFO: instruction count: 110: __C2Compiled.__m569split_Letregion237_256 2021-07-16 15:24:53 root: INFO: instruction count: 137: __C2Compiled.__m569split_Letregion121_131 2021-07-16 15:24:53 root: INFO: instruction count: 79: __C2Compiled.__m569split_Letregion185_192 2021-07-16 15:24:53 root: INFO: instruction count: 75: __C2Compiled.__m569split_Letregion205_212 2021-07-16 15:24:53 root: INFO: instruction count: 75: __C2Compiled.__m569split_Letregion29_36 2021-07-16 15:24:53 root: INFO: instruction count: 91: __C2Compiled.__m569split_Letregion303_310 2021-07-16 15:24:53 root: INFO: instruction count: 73: __C2Compiled.__m569split_Letregion437_439 2021-07-16 15:24:53 root: INFO: instruction count: 73: __C2Compiled.__m569split_Letregion429_431 2021-07-16 15:24:53 root: INFO: instruction count: 58: __C2Compiled.__m569split_Letregion440_447 2021-07-16 15:24:53 root: INFO: instruction count: 721: __C2Compiled.__m569split_Letregion16_452 2021-07-16 15:24:53 root: INFO: instruction count: 273: __C2Compiled.__m571split_NDArrayMap2region33_53 2021-07-16 15:24:53 root: INFO: instruction count: 211: __C2Compiled.__m571split_NDArrayMap2region93_108 2021-07-16 15:24:53 root: INFO: instruction count: 186: __C2Compiled.__m571split_NDArrayMap2region13_24 2021-07-16 15:24:53 root: INFO: instruction count: 152: __C2Compiled.__m571split_NDArrayMap2region191_198 2021-07-16 15:24:53 root: INFO: instruction count: 142: __C2Compiled.__m571split_NDArrayMap2region183_190 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m571split_NDArrayMap2region174_177 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m571split_NDArrayMap2region161_173 2021-07-16 15:24:53 root: INFO: instruction count: 133: __C2Compiled.__m571split_NDArrayMap2region148_160 2021-07-16 15:24:53 root: INFO: instruction count: 115: __C2Compiled.__m571split_NDArrayMap2region85_92 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m571split_NDArrayMap2region109_112 2021-07-16 15:24:53 root: INFO: instruction count: 118: __C2Compiled.__m571split_NDArrayMap2region120_139 2021-07-16 15:24:53 root: INFO: instruction count: 772: __C2Compiled.__m571split_NDArrayMap2region12_217 2021-07-16 15:24:53 root: INFO: instruction count: 355: __C2Compiled.__m939split_Letregion8_29 2021-07-16 15:24:53 root: INFO: instruction count: 392: __C2Compiled.__m976split_Letregion141_167 2021-07-16 15:24:53 root: INFO: instruction count: 332: __C2Compiled.__m976split_Letregion122_140 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m976split_Letregion179_186 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m976split_Letregion116_119 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m976split_Letregion171_178 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m976split_Letregion103_115 2021-07-16 15:24:53 root: INFO: instruction count: 125: __C2Compiled.__m976split_Letregion66_81 2021-07-16 15:24:53 root: INFO: instruction count: 109: __C2Compiled.__m976split_Letregion41_48 2021-07-16 15:24:53 root: INFO: instruction count: 723: __C2Compiled.__m976split_Letregion0_188 2021-07-16 15:24:53 root: INFO: instruction count: 355: __C2Compiled.__m1038split_Letregion8_29 2021-07-16 15:24:53 root: INFO: instruction count: 392: __C2Compiled.__m1075split_Letregion141_167 2021-07-16 15:24:53 root: INFO: instruction count: 332: __C2Compiled.__m1075split_Letregion122_140 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m1075split_Letregion179_186 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m1075split_Letregion116_119 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m1075split_Letregion171_178 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m1075split_Letregion103_115 2021-07-16 15:24:53 root: INFO: instruction count: 125: __C2Compiled.__m1075split_Letregion66_81 2021-07-16 15:24:53 root: INFO: instruction count: 109: __C2Compiled.__m1075split_Letregion41_48 2021-07-16 15:24:53 root: INFO: instruction count: 723: __C2Compiled.__m1075split_Letregion0_188 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m1165split_Letregion147_154 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m1165split_Letregion126_129 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m1165split_Letregion139_146 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m1165split_Letregion113_125 2021-07-16 15:24:53 root: INFO: instruction count: 131: __C2Compiled.__m1165split_Letregion76_91 2021-07-16 15:24:53 root: INFO: instruction count: 133: __C2Compiled.__m1165split_Letregion100_112 2021-07-16 15:24:53 root: INFO: instruction count: 111: __C2Compiled.__m1165split_Letregion55_62 2021-07-16 15:24:53 root: INFO: instruction count: 692: __C2Compiled.__m1165split_Letregion15_168 2021-07-16 15:24:53 root: INFO: instruction count: 441: __C2Compiled.__m1197split_Letregion19_49 2021-07-16 15:24:53 root: INFO: instruction count: 355: __C2Compiled.__m1228split_Letregion8_29 2021-07-16 15:24:53 root: INFO: instruction count: 394: __C2Compiled.__m1258split_Letregion141_167 2021-07-16 15:24:53 root: INFO: instruction count: 332: __C2Compiled.__m1258split_Letregion122_140 2021-07-16 15:24:53 root: INFO: instruction count: 155: __C2Compiled.__m1258split_Letregion179_186 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m1258split_Letregion116_119 2021-07-16 15:24:53 root: INFO: instruction count: 134: __C2Compiled.__m1258split_Letregion171_178 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m1258split_Letregion103_115 2021-07-16 15:24:53 root: INFO: instruction count: 125: __C2Compiled.__m1258split_Letregion66_81 2021-07-16 15:24:53 root: INFO: instruction count: 109: __C2Compiled.__m1258split_Letregion41_48 2021-07-16 15:24:53 root: INFO: instruction count: 723: __C2Compiled.__m1258split_Letregion0_188 2021-07-16 15:24:53 root: INFO: instruction count: 242: __C2Compiled.__m1361split_ToArrayregion14_29 2021-07-16 15:24:53 root: INFO: instruction count: 731: __C2Compiled.__m1361split_ToArrayregion13_92 2021-07-16 15:24:53 root: INFO: instruction count: 242: __C2Compiled.__m1389split_ToArrayregion14_29 2021-07-16 15:24:53 root: INFO: instruction count: 731: __C2Compiled.__m1389split_ToArrayregion13_92 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m1486split_NDArrayMap2region363_370 2021-07-16 15:24:53 root: INFO: instruction count: 479: __C2Compiled.__m1486split_NDArrayMap2region295_371 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1486split_NDArrayMap2region82_100 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1486split_NDArrayMap2region212_230 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1486split_NDArrayMap2region109_129 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1486split_NDArrayMap2region231_238 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1486split_NDArrayMap2region101_108 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1486split_NDArrayMap2region239_259 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1486split_NDArrayMap2region197_200 2021-07-16 15:24:53 root: INFO: instruction count: 228: __C2Compiled.__m1486split_NDArrayMap2region260_277 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m1486split_NDArrayMap2region278_290 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m1486split_NDArrayMap2region291_294 2021-07-16 15:24:53 root: INFO: instruction count: 283: __C2Compiled.__m1486split_NDArrayMap2region130_142 2021-07-16 15:24:53 root: INFO: instruction count: 90: __C2Compiled.__m1486split_NDArrayMap2region204_211 2021-07-16 15:24:53 root: INFO: instruction count: 926: __C2Compiled.__m1486split_NDArrayMap2region73_382 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m1486split_NDArrayMap2region24_72 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m1563split_NDArrayMap2region363_370 2021-07-16 15:24:53 root: INFO: instruction count: 479: __C2Compiled.__m1563split_NDArrayMap2region295_371 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1563split_NDArrayMap2region82_100 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1563split_NDArrayMap2region212_230 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1563split_NDArrayMap2region109_129 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1563split_NDArrayMap2region231_238 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1563split_NDArrayMap2region101_108 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1563split_NDArrayMap2region239_259 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1563split_NDArrayMap2region197_200 2021-07-16 15:24:53 root: INFO: instruction count: 228: __C2Compiled.__m1563split_NDArrayMap2region260_277 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m1563split_NDArrayMap2region278_290 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m1563split_NDArrayMap2region291_294 2021-07-16 15:24:53 root: INFO: instruction count: 283: __C2Compiled.__m1563split_NDArrayMap2region130_142 2021-07-16 15:24:53 root: INFO: instruction count: 90: __C2Compiled.__m1563split_NDArrayMap2region204_211 2021-07-16 15:24:53 root: INFO: instruction count: 926: __C2Compiled.__m1563split_NDArrayMap2region73_382 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m1563split_NDArrayMap2region24_72 2021-07-16 15:24:53 root: INFO: instruction count: 345: __C2Compiled.__m1676split_NDArrayShaperegion166_214 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1676split_NDArrayShaperegion83_101 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1676split_NDArrayShaperegion110_130 2021-07-16 15:24:53 root: INFO: instruction count: 288: __C2Compiled.__m1676split_NDArrayShaperegion131_148 2021-07-16 15:24:53 root: INFO: instruction count: 640: __C2Compiled.__m1676split_NDArrayShaperegion73_216 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m1676split_NDArrayShaperegion24_72 2021-07-16 15:24:53 root: INFO: instruction count: 345: __C2Compiled.__m1717split_NDArrayShaperegion166_214 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1717split_NDArrayShaperegion83_101 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1717split_NDArrayShaperegion110_130 2021-07-16 15:24:53 root: INFO: instruction count: 288: __C2Compiled.__m1717split_NDArrayShaperegion131_148 2021-07-16 15:24:53 root: INFO: instruction count: 640: __C2Compiled.__m1717split_NDArrayShaperegion73_216 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m1717split_NDArrayShaperegion24_72 2021-07-16 15:24:53 root: INFO: instruction count: 369: __C2Compiled.__m1828linear_solveregion45_65 2021-07-16 15:24:53 root: INFO: instruction count: 284: __C2Compiled.__m1828linear_solveregion66_80 2021-07-16 15:24:53 root: INFO: instruction count: 297: __C2Compiled.__m1979split_Letregion2_19 2021-07-16 15:24:53 root: INFO: instruction count: 140: __C2Compiled.__m1979split_Letregion56_59 2021-07-16 15:24:53 root: INFO: instruction count: 759: __C2Compiled.__m1979split_Letregion0_82 2021-07-16 15:24:53 root: INFO: instruction count: 191: __C2Compiled.__m1979split_Letregion111_118 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m1986split_NDArrayMap2region363_370 2021-07-16 15:24:53 root: INFO: instruction count: 479: __C2Compiled.__m1986split_NDArrayMap2region295_371 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1986split_NDArrayMap2region82_100 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m1986split_NDArrayMap2region212_230 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1986split_NDArrayMap2region109_129 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1986split_NDArrayMap2region231_238 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1986split_NDArrayMap2region101_108 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m1986split_NDArrayMap2region239_259 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m1986split_NDArrayMap2region197_200 2021-07-16 15:24:53 root: INFO: instruction count: 228: __C2Compiled.__m1986split_NDArrayMap2region260_277 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m1986split_NDArrayMap2region278_290 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m1986split_NDArrayMap2region291_294 2021-07-16 15:24:53 root: INFO: instruction count: 283: __C2Compiled.__m1986split_NDArrayMap2region130_142 2021-07-16 15:24:53 root: INFO: instruction count: 90: __C2Compiled.__m1986split_NDArrayMap2region204_211 2021-07-16 15:24:53 root: INFO: instruction count: 926: __C2Compiled.__m1986split_NDArrayMap2region73_382 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m1986split_NDArrayMap2region24_72 2021-07-16 15:24:53 root: INFO: instruction count: 114: __C2Compiled.__m2063split_NDArrayMap2region363_370 2021-07-16 15:24:53 root: INFO: instruction count: 479: __C2Compiled.__m2063split_NDArrayMap2region295_371 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2063split_NDArrayMap2region82_100 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2063split_NDArrayMap2region212_230 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2063split_NDArrayMap2region109_129 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m2063split_NDArrayMap2region231_238 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m2063split_NDArrayMap2region101_108 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2063split_NDArrayMap2region239_259 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m2063split_NDArrayMap2region197_200 2021-07-16 15:24:53 root: INFO: instruction count: 228: __C2Compiled.__m2063split_NDArrayMap2region260_277 2021-07-16 15:24:53 root: INFO: instruction count: 149: __C2Compiled.__m2063split_NDArrayMap2region278_290 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m2063split_NDArrayMap2region291_294 2021-07-16 15:24:53 root: INFO: instruction count: 283: __C2Compiled.__m2063split_NDArrayMap2region130_142 2021-07-16 15:24:53 root: INFO: instruction count: 90: __C2Compiled.__m2063split_NDArrayMap2region204_211 2021-07-16 15:24:53 root: INFO: instruction count: 926: __C2Compiled.__m2063split_NDArrayMap2region73_382 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m2063split_NDArrayMap2region24_72 2021-07-16 15:24:53 root: INFO: instruction count: 357: __C2Compiled.__m2160split_Letregion38_55 2021-07-16 15:24:53 root: INFO: instruction count: 178: __C2Compiled.__m2160split_Letregion99_116 2021-07-16 15:24:53 root: INFO: instruction count: 593: __C2Compiled.__m2160split_Letregion37_118 2021-07-16 15:24:53 root: INFO: instruction count: 291: __C2Compiled.__m2160split_Letregion0_15 2021-07-16 15:24:53 root: INFO: instruction count: 345: __C2Compiled.__m2178split_NDArrayShaperegion166_214 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2178split_NDArrayShaperegion83_101 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2178split_NDArrayShaperegion110_130 2021-07-16 15:24:53 root: INFO: instruction count: 288: __C2Compiled.__m2178split_NDArrayShaperegion131_148 2021-07-16 15:24:53 root: INFO: instruction count: 640: __C2Compiled.__m2178split_NDArrayShaperegion73_216 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m2178split_NDArrayShaperegion24_72 2021-07-16 15:24:53 root: INFO: instruction count: 345: __C2Compiled.__m2219split_NDArrayShaperegion166_214 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2219split_NDArrayShaperegion83_101 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2219split_NDArrayShaperegion110_130 2021-07-16 15:24:53 root: INFO: instruction count: 288: __C2Compiled.__m2219split_NDArrayShaperegion131_148 2021-07-16 15:24:53 root: INFO: instruction count: 640: __C2Compiled.__m2219split_NDArrayShaperegion73_216 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m2219split_NDArrayShaperegion24_72 2021-07-16 15:24:53 root: INFO: instruction count: 525: __C2Compiled.__m2269split_Letregion425_459 2021-07-16 15:24:53 root: INFO: instruction count: 324: __C2Compiled.__m2269split_Letregion247_264 2021-07-16 15:24:53 root: INFO: instruction count: 210: __C2Compiled.__m2269split_Letregion489_501 2021-07-16 15:24:53 root: INFO: instruction count: 197: __C2Compiled.__m2269split_Letregion636_643 2021-07-16 15:24:53 root: INFO: instruction count: 324: __C2Compiled.__m2269split_Letregion147_164 2021-07-16 15:24:53 root: INFO: instruction count: 241: __C2Compiled.__m2269split_Letregion502_511 2021-07-16 15:24:53 root: INFO: instruction count: 177: __C2Compiled.__m2269split_Letregion620_627 2021-07-16 15:24:53 root: INFO: instruction count: 181: __C2Compiled.__m2269split_Letregion234_246 2021-07-16 15:24:53 root: INFO: instruction count: 188: __C2Compiled.__m2269split_Letregion512_529 2021-07-16 15:24:53 root: INFO: instruction count: 209: __C2Compiled.__m2269split_Letregion74_85 2021-07-16 15:24:53 root: INFO: instruction count: 276: __C2Compiled.__m2269split_Letregion354_371 2021-07-16 15:24:53 root: INFO: instruction count: 138: __C2Compiled.__m2269split_Letregion588_595 2021-07-16 15:24:53 root: INFO: instruction count: 141: __C2Compiled.__m2269split_Letregion278_281 2021-07-16 15:24:53 root: INFO: instruction count: 140: __C2Compiled.__m2269split_Letregion421_424 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m2269split_Letregion372_380 2021-07-16 15:24:53 root: INFO: instruction count: 126: __C2Compiled.__m2269split_Letregion2_9 2021-07-16 15:24:53 root: INFO: instruction count: 123: __C2Compiled.__m2269split_Letregion285_292 2021-07-16 15:24:53 root: INFO: instruction count: 124: __C2Compiled.__m2269split_Letregion346_353 2021-07-16 15:24:53 root: INFO: instruction count: 123: __C2Compiled.__m2269split_Letregion386_404 2021-07-16 15:24:53 root: INFO: instruction count: 119: __C2Compiled.__m2269split_Letregion199_217 2021-07-16 15:24:53 root: INFO: instruction count: 107: __C2Compiled.__m2269split_Letregion465_480 2021-07-16 15:24:53 root: INFO: instruction count: 117: __C2Compiled.__m2269split_Letregion315_334 2021-07-16 15:24:53 root: INFO: instruction count: 91: __C2Compiled.__m2269split_Letregion647_649 2021-07-16 15:24:53 root: INFO: instruction count: 91: __C2Compiled.__m2269split_Letregion644_646 2021-07-16 15:24:53 root: INFO: instruction count: 352: __C2Compiled.__m2269split_Letregion165_181 2021-07-16 15:24:53 root: INFO: instruction count: 123: __C2Compiled.__m2269split_Letregion99_117 2021-07-16 15:24:53 root: INFO: instruction count: 66: __C2Compiled.__m2269split_Letregion628_635 2021-07-16 15:24:53 root: INFO: instruction count: 115: __C2Compiled.__m2269split_Letregion182_198 2021-07-16 15:24:53 root: INFO: instruction count: 197: __C2Compiled.__m2269split_Letregion265_277 2021-07-16 15:24:53 root: INFO: instruction count: 73: __C2Compiled.__m2269split_Letregion293_303 2021-07-16 15:24:53 root: INFO: instruction count: 55: __C2Compiled.__m2269split_Letregion564_571 2021-07-16 15:24:53 root: INFO: instruction count: 88: __C2Compiled.__m2269split_Letregion22_33 2021-07-16 15:24:53 root: INFO: instruction count: 74: __C2Compiled.__m2269split_Letregion10_21 2021-07-16 15:24:53 root: INFO: instruction count: 60: __C2Compiled.__m2269split_Letregion405_412 2021-07-16 15:24:53 root: INFO: instruction count: 181: __C2Compiled.__m2269split_Letregion134_146 2021-07-16 15:24:53 root: INFO: instruction count: 63: __C2Compiled.__m2269split_Letregion44_54 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m2269split_Letregion612_619 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m2269split_Letregion604_611 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m2269split_Letregion596_603 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m2269split_Letregion580_587 2021-07-16 15:24:53 root: INFO: instruction count: 49: __C2Compiled.__m2269split_Letregion572_579 2021-07-16 15:24:53 root: INFO: instruction count: 56: __C2Compiled.__m2269split_Letregion661_668 2021-07-16 15:24:53 root: INFO: instruction count: 61: __C2Compiled.__m2269split_Letregion653_660 2021-07-16 15:24:53 root: INFO: instruction count: 54: __C2Compiled.__m2269split_Letregion413_420 2021-07-16 15:24:53 root: INFO: instruction count: 57: __C2Compiled.__m2269split_Letregion536_543 2021-07-16 15:24:53 root: INFO: instruction count: 68: __C2Compiled.__m2269split_Letregion86_94 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m2269split_Letregion481_488 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m2269split_Letregion669_671 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m2269split_Letregion552_554 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m2269split_Letregion544_551 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m2269split_Letregion531_533 2021-07-16 15:24:53 root: INFO: instruction count: 50: __C2Compiled.__m2269split_Letregion1_1 2021-07-16 15:24:53 root: INFO: instruction count: 77: __C2Compiled.__m2269split_Letregion304_314 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m2269split_Letregion218_225 2021-07-16 15:24:53 root: INFO: instruction count: 48: __C2Compiled.__m2269split_Letregion118_125 2021-07-16 15:24:53 root: INFO: instruction count: 50: __C2Compiled.__m2269split_Letregion66_73 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m2269split_Letregion226_233 2021-07-16 15:24:53 root: INFO: instruction count: 46: __C2Compiled.__m2269split_Letregion126_133 2021-07-16 15:24:53 root: INFO: instruction count: 298: __C2Compiled.__m2485split_Letregion168_185 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2485split_Letregion75_93 2021-07-16 15:24:53 root: INFO: instruction count: 273: __C2Compiled.__m2485split_Letregion140_164 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m2485split_Letregion94_101 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m2485split_Letregion186_193 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2485split_Letregion102_122 2021-07-16 15:24:53 root: INFO: instruction count: 140: __C2Compiled.__m2485split_Letregion136_139 2021-07-16 15:24:53 root: INFO: instruction count: 611: __C2Compiled.__m2485split_Letregion65_216 2021-07-16 15:24:53 root: INFO: instruction count: 702: __C2Compiled.__m2485split_Letregion24_223 2021-07-16 15:24:53 root: INFO: instruction count: 298: __C2Compiled.__m2536split_Letregion168_185 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2536split_Letregion75_93 2021-07-16 15:24:53 root: INFO: instruction count: 273: __C2Compiled.__m2536split_Letregion140_164 2021-07-16 15:24:53 root: INFO: instruction count: 168: __C2Compiled.__m2536split_Letregion94_101 2021-07-16 15:24:53 root: INFO: instruction count: 165: __C2Compiled.__m2536split_Letregion186_193 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2536split_Letregion102_122 2021-07-16 15:24:53 root: INFO: instruction count: 140: __C2Compiled.__m2536split_Letregion136_139 2021-07-16 15:24:53 root: INFO: instruction count: 611: __C2Compiled.__m2536split_Letregion65_216 2021-07-16 15:24:53 root: INFO: instruction count: 702: __C2Compiled.__m2536split_Letregion24_223 2021-07-16 15:24:53 root: INFO: instruction count: 345: __C2Compiled.__m2623split_NDArrayShaperegion166_214 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2623split_NDArrayShaperegion83_101 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2623split_NDArrayShaperegion110_130 2021-07-16 15:24:53 root: INFO: instruction count: 288: __C2Compiled.__m2623split_NDArrayShaperegion131_148 2021-07-16 15:24:53 root: INFO: instruction count: 640: __C2Compiled.__m2623split_NDArrayShaperegion73_216 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m2623split_NDArrayShaperegion24_72 2021-07-16 15:24:53 root: INFO: instruction count: 345: __C2Compiled.__m2664split_NDArrayShaperegion166_214 2021-07-16 15:24:53 root: INFO: instruction count: 347: __C2Compiled.__m2664split_NDArrayShaperegion83_101 2021-07-16 15:24:53 root: INFO: instruction count: 317: __C2Compiled.__m2664split_NDArrayShaperegion110_130 2021-07-16 15:24:53 root: INFO: instruction count: 288: __C2Compiled.__m2664split_NDArrayShaperegion131_148 2021-07-16 15:24:53 root: INFO: instruction count: 640: __C2Compiled.__m2664split_NDArrayShaperegion73_216 2021-07-16 15:24:53 root: INFO: instruction count: 662: __C2Compiled.__m2664split_NDArrayShaperegion24_72 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2919__m18split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2929__m60split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2957__m99split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C2968__m156split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3016__m185split_MakeTupleSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3055__m304split_TailLoopSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3697__m369split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3710__m406split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3742__m452split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3766__m454split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3826__m569split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C3944__m571split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4004__m939split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4017__m976split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4049__m1021split_IfSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4050__m1038split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4063__m1075split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4095__m1165split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4125__m1197split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4126__m1228split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4139__m1258split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4171__m1361split_ToArraySpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4188__m1389split_ToArraySpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4205__m1486split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4272__m1563split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4339__m1676split_NDArrayShapeSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4376__m1717split_NDArrayShapeSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4413__m1828linear_solveSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4426__m1979split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4478__m1986split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4545__m2063split_NDArrayMap2Spills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4612__m2160split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4653__m2178split_NDArrayShapeSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4690__m2219split_NDArrayShapeSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4727__m2269split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4869__m2390split_ToArraySpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4870__m2485split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4923__m2536split_LetSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C4976__m2623split_NDArrayShapeSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C5013__m2664split_NDArrayShapeSpills. 2021-07-16 15:24:53 root: INFO: instruction count: 3: __C5050__m2833split_ToArraySpills. 2021-07-16 15:24:53 root: INFO: RegionPool: REPORT_THRESHOLD: 259.4K allocated (192.0K blocks / 67.4K chunks), regions.size = 3, 0 current java objects, thread 16: Thread-5 2021-07-16 15:24:53 root: INFO: Imported LAPACK version 3.7.1 with underscore names 2021-07-16 15:24:53 root: ERROR: error while applying lowering 'InterpretNonCompilable' 2021-07-16 15:24:53 root: INFO: RegionPool: FREE: 308.1K allocated (192.0K blocks / 116.1K chunks), regions.size = 3, 0 current java objects, thread 16: Thread-5 2021-07-16 15:24:53 root: ERROR: HailException: Incompatible NDArrayshapes: [ 123 2 ] vs [ 0 0 ] From is.hail.utils.HailException: Incompatible NDArrayshapes: [ 123 2 ] vs [ 0 0 ] at __C2Compiled.__m304split_TailLoopregion485_505(Emit.scala:2957) at __C2Compiled.__m304split_TailLoopregion446_549(Emit.scala) at __C2Compiled.__m304split_TailLoopregion373_2733(Emit.scala) at __C2Compiled.__m304split_TailLoopregion303_2754(Emit.scala) at __C2Compiled.__m304split_TailLoopregion261_2755(Emit.scala) at __C2Compiled.__m304split_TailLoopregion220_2759(Emit.scala) at __C2Compiled.__m304split_TailLoopregion182_2763(Emit.scala) at __C2Compiled.__m304split_TailLoopregion145_2765(Emit.scala) at __C2Compiled.__m304split_TailLoopregion120_2775(Emit.scala) at __C2Compiled.__m304split_TailLoopregion68_2781(Emit.scala) at __C2Compiled.__m304split_TailLoopregion55_2785(Emit.scala) at __C2Compiled.__m304split_TailLoop(Emit.scala) at __C2Compiled.__m156split_Letregion147_191(Emit.scala) at __C2Compiled.__m156split_Letregion63_195(Emit.scala:0) at __C2Compiled.__m156split_Let(Emit.scala) at __C2Compiled.__m99split_Let(Emit.scala) at __C2Compiled.__m60split_Let(Emit.scala) at __C2Compiled.__m18split_Let(Emit.scala) at __C2Compiled.apply(Emit.scala) at is.hail.expr.ir.CompileAndEvaluate$.$anonfun$_apply$3(CompileAndEvaluate.scala:42) at scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.java:23) at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81) at is.hail.expr.ir.CompileAndEvaluate$._apply(CompileAndEvaluate.scala:42) at is.hail.expr.ir.TableParallelize.execute(TableIR.scala:1177) at is.hail.expr.ir.TableSubset.execute(TableIR.scala:1378) at is.hail.expr.ir.TableSubset.execute$(TableIR.scala:1377) at is.hail.expr.ir.TableHead.execute(TableIR.scala:1386) at is.hail.expr.ir.Interpret$.run(Interpret.scala:778) at is.hail.expr.ir.Interpret$.alreadyLowered(Interpret.scala:56) at is.hail.expr.ir.InterpretNonCompilable$.interpretAndCoerce$1(InterpretNonCompilable.scala:16) at is.hail.expr.ir.InterpretNonCompilable$.rewrite$1(InterpretNonCompilable.scala:53) at is.hail.expr.ir.InterpretNonCompilable$.$anonfun$apply$1(InterpretNonCompilable.scala:25) at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38) at scala.collection.TraversableLike.map(TraversableLike.scala:238) at scala.collection.TraversableLike.map$(TraversableLike.scala:231) at scala.collection.AbstractTraversable.map(Traversable.scala:108) at is.hail.expr.ir.InterpretNonCompilable$.rewriteChildren$1(InterpretNonCompilable.scala:25) at is.hail.expr.ir.InterpretNonCompilable$.rewrite$1(InterpretNonCompilable.scala:54) at is.hail.expr.ir.InterpretNonCompilable$.$anonfun$apply$1(InterpretNonCompilable.scala:25) at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38) at scala.collection.TraversableLike.map(TraversableLike.scala:238) at scala.collection.TraversableLike.map$(TraversableLike.scala:231) at scala.collection.AbstractTraversable.map(Traversable.scala:108) at is.hail.expr.ir.InterpretNonCompilable$.rewriteChildren$1(InterpretNonCompilable.scala:25) at is.hail.expr.ir.InterpretNonCompilable$.rewrite$1(InterpretNonCompilable.scala:54) at is.hail.expr.ir.InterpretNonCompilable$.$anonfun$apply$1(InterpretNonCompilable.scala:25) at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38) at scala.collection.TraversableLike.map(TraversableLike.scala:238) at scala.collection.TraversableLike.map$(TraversableLike.scala:231) at scala.collection.AbstractTraversable.map(Traversable.scala:108) at is.hail.expr.ir.InterpretNonCompilable$.rewriteChildren$1(InterpretNonCompilable.scala:25) at is.hail.expr.ir.InterpretNonCompilable$.rewrite$1(InterpretNonCompilable.scala:54) at is.hail.expr.ir.InterpretNonCompilable$.$anonfun$apply$1(InterpretNonCompilable.scala:25) at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:238) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38) at scala.collection.TraversableLike.map(TraversableLike.scala:238) at scala.collection.TraversableLike.map$(TraversableLike.scala:231) at scala.collection.AbstractTraversable.map(Traversable.scala:108) at is.hail.expr.ir.InterpretNonCompilable$.rewriteChildren$1(InterpretNonCompilable.scala:25) at is.hail.expr.ir.InterpretNonCompilable$.rewrite$1(InterpretNonCompilable.scala:54) at is.hail.expr.ir.InterpretNonCompilable$.apply(InterpretNonCompilable.scala:58) at is.hail.expr.ir.lowering.InterpretNonCompilablePass$.transform(LoweringPass.scala:67) at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$3(LoweringPass.scala:15) at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81) at is.hail.expr.ir.lowering.LoweringPass.$anonfun$apply$1(LoweringPass.scala:15) at is.hail.utils.ExecutionTimer.time(ExecutionTimer.scala:81) at is.hail.expr.ir.lowering.LoweringPass.apply(LoweringPass.scala:13) at is.hail.expr.ir.lowering.LoweringPass.apply$(LoweringPass.scala:12) at is.hail.expr.ir.lowering.InterpretNonCompilablePass$.apply(LoweringPass.scala:62) at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1(LoweringPipeline.scala:14) at is.hail.expr.ir.lowering.LoweringPipeline.$anonfun$apply$1$adapted(LoweringPipeline.scala:12) at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) at scala.collection.mutable.WrappedArray.foreach(WrappedArray.scala:38) at is.hail.expr.ir.lowering.LoweringPipeline.apply(LoweringPipeline.scala:12) at is.hail.expr.ir.CompileAndEvaluate$._apply(CompileAndEvaluate.scala:29) at is.hail.backend.spark.SparkBackend._execute(SparkBackend.scala:381) at is.hail.backend.spark.SparkBackend.$anonfun$execute$1(SparkBackend.scala:365) at is.hail.expr.ir.ExecuteContext$.$anonfun$scoped$3(ExecuteContext.scala:47) at is.hail.utils.package$.using(package.scala:627) at is.hail.expr.ir.ExecuteContext$.$anonfun$scoped$2(ExecuteContext.scala:47) at is.hail.utils.package$.using(package.scala:627) at is.hail.annotations.RegionPool$.scoped(RegionPool.scala:13) at is.hail.expr.ir.ExecuteContext$.scoped(ExecuteContext.scala:46) at is.hail.backend.spark.SparkBackend.withExecuteContext(SparkBackend.scala:275) at is.hail.backend.spark.SparkBackend.execute(SparkBackend.scala:362) at is.hail.backend.spark.SparkBackend.$anonfun$executeJSON$1(SparkBackend.scala:406) at is.hail.utils.ExecutionTimer$.time(ExecutionTimer.scala:52) at is.hail.backend.spark.SparkBackend.executeJSON(SparkBackend.scala:404) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244) at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357) at py4j.Gateway.invoke(Gateway.java:282) at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132) at py4j.commands.CallCommand.execute(CallCommand.java:79) at py4j.GatewayConnection.run(GatewayConnection.java:238) at java.lang.Thread.run(Thread.java:748) 2021-07-16 15:24:54 SparkContext: INFO: Invoking stop() from shutdown hook 2021-07-16 15:24:54 AbstractConnector: INFO: Stopped Spark@5c672bdb{HTTP/1.1, (http/1.1)}{0.0.0.0:4040} 2021-07-16 15:24:54 SparkUI: INFO: Stopped Spark web UI at http://192.168.8.102:4040 2021-07-16 15:24:54 MapOutputTrackerMasterEndpoint: INFO: MapOutputTrackerMasterEndpoint stopped! 2021-07-16 15:24:54 MemoryStore: INFO: MemoryStore cleared 2021-07-16 15:24:54 BlockManager: INFO: BlockManager stopped 2021-07-16 15:24:54 BlockManagerMaster: INFO: BlockManagerMaster stopped 2021-07-16 15:24:54 OutputCommitCoordinator$OutputCommitCoordinatorEndpoint: INFO: OutputCommitCoordinator stopped! 2021-07-16 15:24:54 SparkContext: INFO: Successfully stopped SparkContext 2021-07-16 15:24:54 ShutdownHookManager: INFO: Shutdown hook called 2021-07-16 15:24:54 ShutdownHookManager: INFO: Deleting directory /tmp/spark-d9703fb7-06b7-4eb6-9886-50e9502c4659 2021-07-16 15:24:54 ShutdownHookManager: INFO: Deleting directory /tmp/spark-fa0b0d35-0b0b-4e99-9f88-3b73bffff956 2021-07-16 15:24:54 ShutdownHookManager: INFO: Deleting directory /tmp/spark-fa0b0d35-0b0b-4e99-9f88-3b73bffff956/pyspark-e55bc7c8-ecd5-4c80-93b8-cd9719508d0e