kumi 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +2 -2
- data/golden/array_element/expected/schema_ruby.rb +1 -1
- data/golden/array_index/expected/schema_ruby.rb +1 -1
- data/golden/array_operations/expected/schema_ruby.rb +1 -1
- data/golden/cascade_logic/expected/lir_02_inlined.txt +8 -8
- data/golden/cascade_logic/expected/schema_ruby.rb +1 -1
- data/golden/chained_fusion/expected/lir_02_inlined.txt +36 -36
- data/golden/chained_fusion/expected/lir_03_cse.txt +23 -23
- data/golden/chained_fusion/expected/lir_04_1_loop_fusion.txt +25 -25
- data/golden/chained_fusion/expected/lir_04_loop_invcm.txt +23 -23
- data/golden/chained_fusion/expected/lir_06_const_prop.txt +23 -23
- data/golden/chained_fusion/expected/schema_javascript.mjs +23 -23
- data/golden/chained_fusion/expected/schema_ruby.rb +28 -28
- data/golden/element_arrays/expected/schema_ruby.rb +1 -1
- data/golden/empty_and_null_inputs/expected/lir_02_inlined.txt +18 -18
- data/golden/empty_and_null_inputs/expected/lir_03_cse.txt +17 -17
- data/golden/empty_and_null_inputs/expected/lir_04_1_loop_fusion.txt +17 -17
- data/golden/empty_and_null_inputs/expected/lir_04_loop_invcm.txt +17 -17
- data/golden/empty_and_null_inputs/expected/lir_06_const_prop.txt +17 -17
- data/golden/empty_and_null_inputs/expected/schema_javascript.mjs +13 -13
- data/golden/empty_and_null_inputs/expected/schema_ruby.rb +18 -18
- data/golden/game_of_life/expected/lir_00_unoptimized.txt +33 -33
- data/golden/game_of_life/expected/lir_01_hoist_scalar_references.txt +33 -33
- data/golden/game_of_life/expected/lir_02_inlined.txt +1370 -1370
- data/golden/game_of_life/expected/lir_03_cse.txt +448 -448
- data/golden/game_of_life/expected/lir_04_1_loop_fusion.txt +448 -448
- data/golden/game_of_life/expected/lir_04_loop_invcm.txt +448 -448
- data/golden/game_of_life/expected/lir_06_const_prop.txt +448 -448
- data/golden/game_of_life/expected/schema_javascript.mjs +85 -85
- data/golden/game_of_life/expected/schema_ruby.rb +86 -86
- data/golden/hash_keys/expected/schema_ruby.rb +1 -1
- data/golden/hash_keys/schema.kumi +4 -5
- data/golden/hash_value/expected/schema_ruby.rb +1 -1
- data/golden/hierarchical_complex/expected/lir_02_inlined.txt +15 -15
- data/golden/hierarchical_complex/expected/lir_03_cse.txt +1 -1
- data/golden/hierarchical_complex/expected/lir_04_1_loop_fusion.txt +1 -1
- data/golden/hierarchical_complex/expected/lir_04_loop_invcm.txt +1 -1
- data/golden/hierarchical_complex/expected/lir_06_const_prop.txt +1 -1
- data/golden/hierarchical_complex/expected/schema_javascript.mjs +1 -1
- data/golden/hierarchical_complex/expected/schema_ruby.rb +2 -2
- data/golden/inline_rename_scope_leak/expected/ast.txt +48 -0
- data/golden/inline_rename_scope_leak/expected/input_plan.txt +10 -0
- data/golden/inline_rename_scope_leak/expected/lir_00_unoptimized.txt +35 -0
- data/golden/inline_rename_scope_leak/expected/lir_01_hoist_scalar_references.txt +35 -0
- data/golden/inline_rename_scope_leak/expected/lir_02_inlined.txt +49 -0
- data/golden/inline_rename_scope_leak/expected/lir_03_cse.txt +49 -0
- data/golden/inline_rename_scope_leak/expected/lir_04_1_loop_fusion.txt +49 -0
- data/golden/inline_rename_scope_leak/expected/lir_04_loop_invcm.txt +49 -0
- data/golden/inline_rename_scope_leak/expected/lir_06_const_prop.txt +49 -0
- data/golden/inline_rename_scope_leak/expected/nast.txt +31 -0
- data/golden/inline_rename_scope_leak/expected/schema_javascript.mjs +51 -0
- data/golden/inline_rename_scope_leak/expected/schema_ruby.rb +82 -0
- data/golden/inline_rename_scope_leak/expected/snast.txt +31 -0
- data/golden/inline_rename_scope_leak/expected.json +7 -0
- data/golden/inline_rename_scope_leak/input.json +4 -0
- data/golden/inline_rename_scope_leak/schema.kumi +24 -0
- data/golden/input_reference/expected/schema_ruby.rb +1 -1
- data/golden/interleaved_fusion/expected/lir_02_inlined.txt +35 -35
- data/golden/interleaved_fusion/expected/lir_03_cse.txt +26 -26
- data/golden/interleaved_fusion/expected/lir_04_1_loop_fusion.txt +27 -26
- data/golden/interleaved_fusion/expected/lir_04_loop_invcm.txt +26 -26
- data/golden/interleaved_fusion/expected/lir_06_const_prop.txt +26 -26
- data/golden/interleaved_fusion/expected/schema_javascript.mjs +23 -23
- data/golden/interleaved_fusion/expected/schema_ruby.rb +29 -29
- data/golden/let_inline/expected/schema_ruby.rb +1 -1
- data/golden/loop_fusion/expected/lir_02_inlined.txt +17 -17
- data/golden/loop_fusion/expected/lir_03_cse.txt +14 -14
- data/golden/loop_fusion/expected/lir_04_1_loop_fusion.txt +14 -14
- data/golden/loop_fusion/expected/lir_04_loop_invcm.txt +14 -14
- data/golden/loop_fusion/expected/lir_06_const_prop.txt +14 -14
- data/golden/loop_fusion/expected/schema_javascript.mjs +12 -12
- data/golden/loop_fusion/expected/schema_ruby.rb +16 -16
- data/golden/min_reduce_scope/expected/schema_ruby.rb +1 -1
- data/golden/mixed_dimensions/expected/lir_02_inlined.txt +5 -5
- data/golden/mixed_dimensions/expected/lir_03_cse.txt +5 -5
- data/golden/mixed_dimensions/expected/lir_04_1_loop_fusion.txt +5 -5
- data/golden/mixed_dimensions/expected/lir_04_loop_invcm.txt +5 -5
- data/golden/mixed_dimensions/expected/lir_06_const_prop.txt +5 -5
- data/golden/mixed_dimensions/expected/schema_javascript.mjs +3 -3
- data/golden/mixed_dimensions/expected/schema_ruby.rb +6 -6
- data/golden/multirank_hoisting/expected/lir_02_inlined.txt +48 -48
- data/golden/multirank_hoisting/expected/lir_03_cse.txt +35 -35
- data/golden/multirank_hoisting/expected/lir_04_1_loop_fusion.txt +35 -35
- data/golden/multirank_hoisting/expected/lir_04_loop_invcm.txt +35 -35
- data/golden/multirank_hoisting/expected/lir_06_const_prop.txt +35 -35
- data/golden/multirank_hoisting/expected/schema_javascript.mjs +34 -34
- data/golden/multirank_hoisting/expected/schema_ruby.rb +36 -36
- data/golden/nested_hash/expected/schema_ruby.rb +1 -1
- data/golden/reduction_broadcast/expected/lir_02_inlined.txt +30 -30
- data/golden/reduction_broadcast/expected/lir_03_cse.txt +22 -22
- data/golden/reduction_broadcast/expected/lir_04_1_loop_fusion.txt +22 -22
- data/golden/reduction_broadcast/expected/lir_04_loop_invcm.txt +22 -22
- data/golden/reduction_broadcast/expected/lir_06_const_prop.txt +22 -22
- data/golden/reduction_broadcast/expected/schema_javascript.mjs +18 -18
- data/golden/reduction_broadcast/expected/schema_ruby.rb +23 -23
- data/golden/roll/expected/lir_00_unoptimized.txt +8 -8
- data/golden/roll/expected/lir_01_hoist_scalar_references.txt +8 -8
- data/golden/roll/expected/lir_02_inlined.txt +8 -8
- data/golden/roll/expected/lir_03_cse.txt +8 -8
- data/golden/roll/expected/lir_04_1_loop_fusion.txt +8 -8
- data/golden/roll/expected/lir_04_loop_invcm.txt +8 -8
- data/golden/roll/expected/lir_06_const_prop.txt +8 -8
- data/golden/roll/expected/schema_ruby.rb +1 -1
- data/golden/shift/expected/lir_00_unoptimized.txt +12 -12
- data/golden/shift/expected/lir_01_hoist_scalar_references.txt +12 -12
- data/golden/shift/expected/lir_02_inlined.txt +12 -12
- data/golden/shift/expected/lir_03_cse.txt +12 -12
- data/golden/shift/expected/lir_04_1_loop_fusion.txt +12 -12
- data/golden/shift/expected/lir_04_loop_invcm.txt +12 -12
- data/golden/shift/expected/lir_06_const_prop.txt +12 -12
- data/golden/shift/expected/schema_ruby.rb +1 -1
- data/golden/shift_2d/expected/lir_00_unoptimized.txt +48 -48
- data/golden/shift_2d/expected/lir_01_hoist_scalar_references.txt +48 -48
- data/golden/shift_2d/expected/lir_02_inlined.txt +48 -48
- data/golden/shift_2d/expected/lir_03_cse.txt +48 -48
- data/golden/shift_2d/expected/lir_04_1_loop_fusion.txt +48 -48
- data/golden/shift_2d/expected/lir_04_loop_invcm.txt +48 -48
- data/golden/shift_2d/expected/lir_06_const_prop.txt +48 -48
- data/golden/shift_2d/expected/schema_ruby.rb +1 -1
- data/golden/simple_math/expected/schema_ruby.rb +1 -1
- data/golden/streaming_basics/expected/lir_02_inlined.txt +25 -25
- data/golden/streaming_basics/expected/lir_03_cse.txt +13 -13
- data/golden/streaming_basics/expected/lir_04_1_loop_fusion.txt +13 -13
- data/golden/streaming_basics/expected/lir_04_loop_invcm.txt +13 -13
- data/golden/streaming_basics/expected/lir_06_const_prop.txt +13 -13
- data/golden/streaming_basics/expected/schema_javascript.mjs +13 -13
- data/golden/streaming_basics/expected/schema_ruby.rb +14 -14
- data/golden/tuples/expected/lir_00_unoptimized.txt +4 -4
- data/golden/tuples/expected/lir_01_hoist_scalar_references.txt +4 -4
- data/golden/tuples/expected/lir_02_inlined.txt +4 -4
- data/golden/tuples/expected/lir_03_cse.txt +4 -4
- data/golden/tuples/expected/lir_04_1_loop_fusion.txt +4 -4
- data/golden/tuples/expected/lir_04_loop_invcm.txt +4 -4
- data/golden/tuples/expected/lir_06_const_prop.txt +4 -4
- data/golden/tuples/expected/schema_ruby.rb +1 -1
- data/golden/tuples_and_arrays/expected/lir_00_unoptimized.txt +1 -1
- data/golden/tuples_and_arrays/expected/lir_01_hoist_scalar_references.txt +1 -1
- data/golden/tuples_and_arrays/expected/lir_02_inlined.txt +17 -17
- data/golden/tuples_and_arrays/expected/lir_03_cse.txt +14 -14
- data/golden/tuples_and_arrays/expected/lir_04_1_loop_fusion.txt +14 -14
- data/golden/tuples_and_arrays/expected/lir_04_loop_invcm.txt +14 -14
- data/golden/tuples_and_arrays/expected/lir_06_const_prop.txt +14 -14
- data/golden/tuples_and_arrays/expected/schema_javascript.mjs +13 -13
- data/golden/tuples_and_arrays/expected/schema_ruby.rb +14 -14
- data/golden/us_tax_2024/expected/ast.txt +865 -0
- data/golden/us_tax_2024/expected/input_plan.txt +61 -0
- data/golden/us_tax_2024/expected/lir_00_unoptimized.txt +901 -0
- data/golden/us_tax_2024/expected/lir_01_hoist_scalar_references.txt +901 -0
- data/golden/us_tax_2024/expected/lir_02_inlined.txt +5178 -0
- data/golden/us_tax_2024/expected/lir_03_cse.txt +2499 -0
- data/golden/us_tax_2024/expected/lir_04_1_loop_fusion.txt +2519 -0
- data/golden/us_tax_2024/expected/lir_04_loop_invcm.txt +2499 -0
- data/golden/us_tax_2024/expected/lir_06_const_prop.txt +2499 -0
- data/golden/us_tax_2024/expected/nast.txt +976 -0
- data/golden/us_tax_2024/expected/schema_javascript.mjs +584 -0
- data/golden/us_tax_2024/expected/schema_ruby.rb +639 -0
- data/golden/us_tax_2024/expected/snast.txt +976 -0
- data/golden/us_tax_2024/expected.json +1 -0
- data/golden/us_tax_2024/input.json +168 -0
- data/golden/us_tax_2024/schema.kumi +203 -0
- data/golden/with_constants/expected/schema_ruby.rb +1 -1
- data/lib/kumi/core/analyzer/passes/lir/inline_declarations_pass.rb +227 -107
- data/lib/kumi/version.rb +1 -1
- metadata +33 -1
@@ -22,13 +22,13 @@
|
|
22
22
|
(Declaration final_value_per_point
|
23
23
|
%t14 = load_input "points" :: array
|
24
24
|
loop points id=L3 in %t14 as el=%points_el_15, idx=%points_i_16
|
25
|
-
%
|
26
|
-
%
|
25
|
+
%t37 = load_field points_el_15["x"] :: integer
|
26
|
+
%t38 = const 100 :: integer
|
27
27
|
%t34 = load_field points_el_15["y"] :: integer
|
28
|
-
%
|
29
|
-
%t35 = select %
|
30
|
-
%t19 = make_tuple(%t35, %
|
31
|
-
%t20 =
|
28
|
+
%t39 = call core.gt(%t37, %t38) :: boolean
|
29
|
+
%t35 = select %t39, %t37, %t34 :: integer
|
30
|
+
%t19 = make_tuple(%t35, %t37) :: tuple<integer>
|
31
|
+
%t20 = fold %t19 fn="agg.max" :: integer
|
32
32
|
yield %t20
|
33
33
|
end_loop
|
34
34
|
)
|
@@ -36,14 +36,14 @@
|
|
36
36
|
%acc_21 = decl_acc :: integer
|
37
37
|
%t22 = load_input "points" :: array
|
38
38
|
loop points id=L4 in %t22 as el=%points_el_23, idx=%points_i_24
|
39
|
-
%
|
40
|
-
%
|
41
|
-
%
|
42
|
-
%
|
43
|
-
%
|
44
|
-
%
|
45
|
-
%
|
46
|
-
%acc_21 = acc_add agg.sum(%acc_21, %
|
39
|
+
%t51 = load_field points_el_23["x"] :: integer
|
40
|
+
%t52 = const 100 :: integer
|
41
|
+
%t48 = load_field points_el_23["y"] :: integer
|
42
|
+
%t53 = call core.gt(%t51, %t52) :: boolean
|
43
|
+
%t49 = select %t53, %t51, %t48 :: integer
|
44
|
+
%t43 = make_tuple(%t49, %t51) :: tuple<integer>
|
45
|
+
%t44 = fold %t43 fn="agg.max" :: integer
|
46
|
+
%acc_21 = acc_add agg.sum(%acc_21, %t44) :: integer
|
47
47
|
end_loop
|
48
48
|
%t26 = acc_load %acc_21 :: integer
|
49
49
|
yield %t26
|
@@ -22,13 +22,13 @@
|
|
22
22
|
(Declaration final_value_per_point
|
23
23
|
%t14 = load_input "points" :: array
|
24
24
|
loop points id=L3 in %t14 as el=%points_el_15, idx=%points_i_16
|
25
|
-
%
|
26
|
-
%
|
25
|
+
%t37 = load_field points_el_15["x"] :: integer
|
26
|
+
%t38 = const 100 :: integer
|
27
27
|
%t34 = load_field points_el_15["y"] :: integer
|
28
|
-
%
|
29
|
-
%t35 = select %
|
30
|
-
%t19 = make_tuple(%t35, %
|
31
|
-
%t20 =
|
28
|
+
%t39 = call core.gt(%t37, %t38) :: boolean
|
29
|
+
%t35 = select %t39, %t37, %t34 :: integer
|
30
|
+
%t19 = make_tuple(%t35, %t37) :: tuple<integer>
|
31
|
+
%t20 = fold %t19 fn="agg.max" :: integer
|
32
32
|
yield %t20
|
33
33
|
end_loop
|
34
34
|
)
|
@@ -36,14 +36,14 @@
|
|
36
36
|
%acc_21 = decl_acc :: integer
|
37
37
|
%t22 = load_input "points" :: array
|
38
38
|
loop points id=L4 in %t22 as el=%points_el_23, idx=%points_i_24
|
39
|
-
%
|
40
|
-
%
|
41
|
-
%
|
42
|
-
%
|
43
|
-
%
|
44
|
-
%
|
45
|
-
%
|
46
|
-
%acc_21 = acc_add agg.sum(%acc_21, %
|
39
|
+
%t51 = load_field points_el_23["x"] :: integer
|
40
|
+
%t52 = const 100 :: integer
|
41
|
+
%t48 = load_field points_el_23["y"] :: integer
|
42
|
+
%t53 = call core.gt(%t51, %t52) :: boolean
|
43
|
+
%t49 = select %t53, %t51, %t48 :: integer
|
44
|
+
%t43 = make_tuple(%t49, %t51) :: tuple<integer>
|
45
|
+
%t44 = fold %t43 fn="agg.max" :: integer
|
46
|
+
%acc_21 = acc_add agg.sum(%acc_21, %t44) :: integer
|
47
47
|
end_loop
|
48
48
|
%t26 = acc_load %acc_21 :: integer
|
49
49
|
yield %t26
|
@@ -21,29 +21,29 @@
|
|
21
21
|
)
|
22
22
|
(Declaration final_value_per_point
|
23
23
|
%t14 = load_input "points" :: array
|
24
|
-
%
|
24
|
+
%t38 = const 100 :: integer
|
25
25
|
loop points id=L3 in %t14 as el=%points_el_15, idx=%points_i_16
|
26
|
-
%
|
26
|
+
%t37 = load_field points_el_15["x"] :: integer
|
27
27
|
%t34 = load_field points_el_15["y"] :: integer
|
28
|
-
%
|
29
|
-
%t35 = select %
|
30
|
-
%t19 = make_tuple(%t35, %
|
31
|
-
%t20 =
|
28
|
+
%t39 = call core.gt(%t37, %t38) :: boolean
|
29
|
+
%t35 = select %t39, %t37, %t34 :: integer
|
30
|
+
%t19 = make_tuple(%t35, %t37) :: tuple<integer>
|
31
|
+
%t20 = fold %t19 fn="agg.max" :: integer
|
32
32
|
yield %t20
|
33
33
|
end_loop
|
34
34
|
)
|
35
35
|
(Declaration grand_total
|
36
36
|
%acc_21 = decl_acc :: integer
|
37
37
|
%t22 = load_input "points" :: array
|
38
|
-
%
|
38
|
+
%t52 = const 100 :: integer
|
39
39
|
loop points id=L4 in %t22 as el=%points_el_23, idx=%points_i_24
|
40
|
-
%
|
41
|
-
%
|
42
|
-
%
|
43
|
-
%
|
44
|
-
%
|
45
|
-
%
|
46
|
-
%acc_21 = acc_add agg.sum(%acc_21, %
|
40
|
+
%t51 = load_field points_el_23["x"] :: integer
|
41
|
+
%t48 = load_field points_el_23["y"] :: integer
|
42
|
+
%t53 = call core.gt(%t51, %t52) :: boolean
|
43
|
+
%t49 = select %t53, %t51, %t48 :: integer
|
44
|
+
%t43 = make_tuple(%t49, %t51) :: tuple<integer>
|
45
|
+
%t44 = fold %t43 fn="agg.max" :: integer
|
46
|
+
%acc_21 = acc_add agg.sum(%acc_21, %t44) :: integer
|
47
47
|
end_loop
|
48
48
|
%t26 = acc_load %acc_21 :: integer
|
49
49
|
yield %t26
|
@@ -21,29 +21,29 @@
|
|
21
21
|
)
|
22
22
|
(Declaration final_value_per_point
|
23
23
|
%t14 = load_input "points" :: array
|
24
|
-
%
|
24
|
+
%t38 = const 100 :: integer
|
25
25
|
loop points id=L3 in %t14 as el=%points_el_15, idx=%points_i_16
|
26
|
-
%
|
26
|
+
%t37 = load_field points_el_15["x"] :: integer
|
27
27
|
%t34 = load_field points_el_15["y"] :: integer
|
28
|
-
%
|
29
|
-
%t35 = select %
|
30
|
-
%t19 = make_tuple(%t35, %
|
31
|
-
%t20 =
|
28
|
+
%t39 = call core.gt(%t37, %t38) :: boolean
|
29
|
+
%t35 = select %t39, %t37, %t34 :: integer
|
30
|
+
%t19 = make_tuple(%t35, %t37) :: tuple<integer>
|
31
|
+
%t20 = fold %t19 fn="agg.max" :: integer
|
32
32
|
yield %t20
|
33
33
|
end_loop
|
34
34
|
)
|
35
35
|
(Declaration grand_total
|
36
36
|
%acc_21 = decl_acc :: integer
|
37
37
|
%t22 = load_input "points" :: array
|
38
|
-
%
|
38
|
+
%t52 = const 100 :: integer
|
39
39
|
loop points id=L4 in %t22 as el=%points_el_23, idx=%points_i_24
|
40
|
-
%
|
41
|
-
%
|
42
|
-
%
|
43
|
-
%
|
44
|
-
%
|
45
|
-
%
|
46
|
-
%acc_21 = acc_add agg.sum(%acc_21, %
|
40
|
+
%t51 = load_field points_el_23["x"] :: integer
|
41
|
+
%t48 = load_field points_el_23["y"] :: integer
|
42
|
+
%t53 = call core.gt(%t51, %t52) :: boolean
|
43
|
+
%t49 = select %t53, %t51, %t48 :: integer
|
44
|
+
%t43 = make_tuple(%t49, %t51) :: tuple<integer>
|
45
|
+
%t44 = fold %t43 fn="agg.max" :: integer
|
46
|
+
%acc_21 = acc_add agg.sum(%acc_21, %t44) :: integer
|
47
47
|
end_loop
|
48
48
|
%t26 = acc_load %acc_21 :: integer
|
49
49
|
yield %t26
|
@@ -27,13 +27,13 @@ export function _selected_value(input) {
|
|
27
27
|
export function _final_value_per_point(input) {
|
28
28
|
let out = [];
|
29
29
|
let t14 = input["points"];
|
30
|
-
const
|
30
|
+
const t38 = 100;
|
31
31
|
t14.forEach((points_el_15, points_i_16) => {
|
32
|
-
let
|
32
|
+
let t37 = points_el_15["x"];
|
33
33
|
let t34 = points_el_15["y"];
|
34
|
-
let
|
35
|
-
let t35 =
|
36
|
-
let t19 = [t35,
|
34
|
+
let t39 = t37 > t38;
|
35
|
+
let t35 = t39 ? t37 : t34;
|
36
|
+
let t19 = [t35, t37];
|
37
37
|
let t20 = Math.max(...t19);
|
38
38
|
out.push(t20);
|
39
39
|
});
|
@@ -43,15 +43,15 @@ export function _final_value_per_point(input) {
|
|
43
43
|
export function _grand_total(input) {
|
44
44
|
let acc_21 = 0;
|
45
45
|
let t22 = input["points"];
|
46
|
-
const
|
46
|
+
const t52 = 100;
|
47
47
|
t22.forEach((points_el_23, points_i_24) => {
|
48
|
-
let
|
49
|
-
let
|
50
|
-
let
|
51
|
-
let
|
52
|
-
let
|
53
|
-
let
|
54
|
-
acc_21 +=
|
48
|
+
let t51 = points_el_23["x"];
|
49
|
+
let t48 = points_el_23["y"];
|
50
|
+
let t53 = t51 > t52;
|
51
|
+
let t49 = t53 ? t51 : t48;
|
52
|
+
let t43 = [t49, t51];
|
53
|
+
let t44 = Math.max(...t43);
|
54
|
+
acc_21 += t44;
|
55
55
|
});
|
56
56
|
return acc_21;
|
57
57
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Autogenerated by Kumi Codegen
|
2
|
-
module Kumi::Compiled::
|
2
|
+
module Kumi::Compiled::KUMI_1c841aefa943ccbd3b89bd507f1dd9fcea9c3504ba5f4692de88de403a644386
|
3
3
|
def self.from(input_data = nil)
|
4
4
|
instance = Object.new
|
5
5
|
instance.extend(self)
|
@@ -57,13 +57,13 @@ module Kumi::Compiled::KUMI_891c764845b8c48158e2ba4637dc0ee94765e885752ebff413ce
|
|
57
57
|
def _final_value_per_point(input = @input)
|
58
58
|
out = []
|
59
59
|
t14 = input["points"] || input[:points]
|
60
|
-
|
60
|
+
t38 = 100
|
61
61
|
t14.each_with_index do |points_el_15, points_i_16|
|
62
|
-
|
62
|
+
t37 = points_el_15["x"] || points_el_15[:x]
|
63
63
|
t34 = points_el_15["y"] || points_el_15[:y]
|
64
|
-
|
65
|
-
t35 =
|
66
|
-
t19 = [t35,
|
64
|
+
t39 = t37 > t38
|
65
|
+
t35 = t39 ? t37 : t34
|
66
|
+
t19 = [t35, t37]
|
67
67
|
t20 = t19.max
|
68
68
|
out << t20
|
69
69
|
end
|
@@ -73,15 +73,15 @@ module Kumi::Compiled::KUMI_891c764845b8c48158e2ba4637dc0ee94765e885752ebff413ce
|
|
73
73
|
def _grand_total(input = @input)
|
74
74
|
acc_21 = 0
|
75
75
|
t22 = input["points"] || input[:points]
|
76
|
-
|
76
|
+
t52 = 100
|
77
77
|
t22.each_with_index do |points_el_23, points_i_24|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
acc_21 +=
|
78
|
+
t51 = points_el_23["x"] || points_el_23[:x]
|
79
|
+
t48 = points_el_23["y"] || points_el_23[:y]
|
80
|
+
t53 = t51 > t52
|
81
|
+
t49 = t53 ? t51 : t48
|
82
|
+
t43 = [t49, t51]
|
83
|
+
t44 = t43.max
|
84
|
+
acc_21 += t44
|
85
85
|
end
|
86
86
|
acc_21
|
87
87
|
end
|