|
16 | 16 | (globalThis){ |
17 | 17 | "use strict"; |
18 | 18 | var runtime = globalThis.jsoo_runtime; |
19 | | - function f(_a_, param){ |
| 19 | + function f(a, param){ |
20 | 20 | /*<<compiler/tests-full/m1.ml:1:14>>*/ return 0; |
21 | 21 | /*<<compiler/tests-full/m1.ml:1:16>>*/ } |
22 | 22 | var Shapes_M1 = /*<<?>>*/ [0, f]; |
|
62 | 62 | ? f(a0) |
63 | 63 | : runtime.caml_call_gen(f, [a0]); |
64 | 64 | } |
| 65 | + function caml_call2(f, a0, a1){ |
| 66 | + return (f.l >= 0 ? f.l : f.l = f.length) === 2 |
| 67 | + ? f(a0, a1) |
| 68 | + : runtime.caml_call_gen(f, [a0, a1]); |
| 69 | + } |
65 | 70 | var |
66 | 71 | global_data = runtime.caml_get_global_data(), |
67 | 72 | Shapes_M2 = global_data.Shapes__M2, |
|
72 | 77 | < caml_call1(Stdlib_Random[5], 2) |
73 | 78 | ? Shapes_M1[1] |
74 | 79 | : function |
75 | | - (_a_, param){ |
| 80 | + (a, param){ |
76 | 81 | /*<<compiler/tests-full/m3.ml:1:59>>*/ return Shapes_M2[1].call |
77 | 82 | (null, 0) /*<<compiler/tests-full/m3.ml:1:66>>*/ ; |
78 | 83 | }; |
79 | 84 | } |
80 | 85 | var |
81 | | - x = /*<<compiler/tests-full/m3.ml:4:8>>*/ f(0)(0, 0), |
82 | | - Shapes_M3 = /*<<compiler/tests-full/m3.ml:4:18>>*/ [0, f, x]; |
| 86 | + x = /*<<compiler/tests-full/m3.ml:3:8>>*/ caml_call2(f(0), 0, 0), |
| 87 | + Shapes_M3 = /*<<compiler/tests-full/m3.ml:3:18>>*/ [0, f, x]; |
83 | 88 | runtime.caml_register_global(3, Shapes_M3, "Shapes__M3"); |
84 | 89 | return; |
85 | 90 | /*<<?>>*/ } |
|
0 commit comments