diff --git a/compiler/tests-full/stdlib.cma.expected.js b/compiler/tests-full/stdlib.cma.expected.js index bf666c55da..b83aab8480 100644 --- a/compiler/tests-full/stdlib.cma.expected.js +++ b/compiler/tests-full/stdlib.cma.expected.js @@ -1,5 +1,6 @@ //# unitInfo: Provides: CamlinternalFormatBasics +//# shape: CamlinternalFormatBasics:[F(2),F(1),F(2)] (function (globalThis){ "use strict"; @@ -304,6 +305,7 @@ //# unitInfo: Provides: Stdlib //# unitInfo: Requires: CamlinternalFormatBasics +//# shape: Stdlib:[F(1),F(1),N,N,N,N,N,N,N,N,N,N,N,N,N,F(2),F(2),F(1),N,N,F(1),N,N,N,N,N,N,F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(2),N,N,N,F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(3),F(1),F(1),F(2),F(2),F(2),F(4),F(4),F(2),F(2),F(2),F(2),F(1),F(1),F(1),F(1),F(2),F(1),F(1),F(3),F(1),F(1),F(4),F(4),F(2),F(1),F(1),F(1),F(2),F(1),F(1),F(1),F(1),F(2),N,F(1),F(2),F(1),F(1),F(1),F(4),F(1),N] (function (globalThis){ "use strict"; @@ -341,11 +343,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); } var global_data = runtime.caml_get_global_data(), @@ -816,8 +813,7 @@ fmt1 = _h_[1], s2 = "%," + str2; /*<>*/ return [0, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt1, fmt2), + CamlinternalFormatBasics[3].call(null, fmt1, fmt2), str1 + s2]; } /*<>*/ /*<>*/ var @@ -980,7 +976,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Either -(function(globalThis){ +//# shape: Stdlib__Either:[F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(3),F(3),F(3),F(3),F(4),F(4)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime; /*<>*/ function caml_call1(f, a0){ @@ -1106,6 +1104,7 @@ //# unitInfo: Provides: Stdlib__Sys //# unitInfo: Requires: Stdlib +//# shape: Stdlib__Sys:[N,F(1),N,N,[N],N,N,N,N,N,N,N,N,N,F(2),N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,F(1),N,N,N,F(1),F(1),[F(2)]] (function (globalThis){ "use strict"; @@ -1210,19 +1209,14 @@ //# unitInfo: Provides: Stdlib__Obj //# unitInfo: Requires: Stdlib, Stdlib__Sys +//# shape: Stdlib__Obj:[F(1),F(2),F(3),N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,[F(1),F(1),F(1)],N] (function (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, cst_Obj_extension_constructor$1 = "Obj.extension_constructor", - caml_obj_tag = runtime.caml_obj_tag; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - var + caml_obj_tag = runtime.caml_obj_tag, global_data = runtime.caml_get_global_data(), Stdlib = global_data.Stdlib, Stdlib_Sys = global_data.Stdlib__Sys; @@ -1245,15 +1239,11 @@ a: { if(is_block(slot) && /*<>*/ caml_obj_tag(slot) === 248){var name = slot[1]; break a;} - var - name = - /*<>*/ caml_call1 - (Stdlib[1], cst_Obj_extension_constructor$0); + var name = Stdlib[1].call(null, cst_Obj_extension_constructor$0); } return /*<>*/ caml_obj_tag(name) === 252 ? slot - : /*<>*/ caml_call1 - (Stdlib[1], cst_Obj_extension_constructor); + : Stdlib[1].call(null, cst_Obj_extension_constructor); /*<>*/ } function name(slot){ /*<>*/ return slot[1]; @@ -1276,8 +1266,7 @@ _f_ = 0 <= l ? 1 : 0, _g_ = _f_ ? l <= max_ephe_length ? 1 : 0 : _f_; if(1 - _g_) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Obj_Ephemeron_create); + /*<>*/ Stdlib[1].call(null, cst_Obj_Ephemeron_create); /*<>*/ return /*<>*/ runtime.caml_ephe_create (l); /*<>*/ } @@ -1289,7 +1278,7 @@ _c_ = 0 <= o ? 1 : 0, _d_ = _c_ ? o < length(e) ? 1 : 0 : _c_, _e_ = 1 - _d_; - return _e_ ? /*<>*/ caml_call1(Stdlib[1], msg) : _e_; + return _e_ ? Stdlib[1].call(null, msg) : _e_; /*<>*/ } function get_key(e, o){ /*<>*/ raise_if_invalid_offset @@ -1336,8 +1325,8 @@ : _a_; /*<>*/ return _b_; } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Obj_Ephemeron_blit_key); + /*<>*/ return Stdlib[1].call + (null, cst_Obj_Ephemeron_blit_key); /*<>*/ } var Stdlib_Obj = @@ -1387,16 +1376,12 @@ //# unitInfo: Provides: Stdlib__Type //# unitInfo: Requires: Stdlib__Obj +//# shape: Stdlib__Type:[[F(1),F(1),F(2)]] (function (globalThis){ "use strict"; - var runtime = globalThis.jsoo_runtime; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } var + runtime = globalThis.jsoo_runtime, global_data = runtime.caml_get_global_data(), Stdlib_Obj = global_data.Stdlib__Obj, cst_Id = "Id", @@ -1408,9 +1393,8 @@ /*<>*/ } function uid(A){ /*<>*/ /*<>*/ var - _b_ = /*<>*/ caml_call1(Stdlib_Obj[22][1], A[1]); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Obj[22][3], _b_); + _b_ = Stdlib_Obj[22][1].call(null, A[1]); + /*<>*/ return Stdlib_Obj[22][3].call(null, _b_); /*<>*/ } function provably_equal(A, B){ /*<>*/ return A[1] === B[1] ? _a_ : 0; @@ -1424,7 +1408,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Atomic -(function(globalThis){ +//# shape: Stdlib__Atomic:[F(1),F(1),F(1),F(2),F(2),F(3),F(2),F(1),F(1)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, @@ -1461,6 +1447,7 @@ //# unitInfo: Provides: CamlinternalLazy //# unitInfo: Requires: Stdlib, Stdlib__Obj +//# shape: CamlinternalLazy:[N,F(1),F(2)] (function (globalThis){ "use strict"; @@ -1543,6 +1530,7 @@ //# unitInfo: Provides: Stdlib__Lazy //# unitInfo: Requires: CamlinternalLazy, Stdlib, Stdlib__Obj +//# shape: Stdlib__Lazy:[N,F(2),F(1),F(1),F(2),F(1),F(1)] (function (globalThis){ "use strict"; @@ -1551,11 +1539,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); } var global_data = runtime.caml_get_global_data(), @@ -1563,8 +1546,7 @@ Stdlib_Obj = global_data.Stdlib__Obj, Undefined = CamlinternalLazy[1]; function force_val(l){ - /*<>*/ return /*<>*/ caml_call2 - (CamlinternalLazy[3], 1, l); + /*<>*/ return CamlinternalLazy[3].call(null, 1, l); /*<>*/ } function from_fun(f){ /*<>*/ /*<>*/ var @@ -1598,7 +1580,7 @@ var _h_ = x[1]; else{ if(246 !== _g_ && 244 !== _g_){var _h_ = x; break a;} - var _h_ = caml_call1(CamlinternalLazy[2], x); + var _h_ = CamlinternalLazy[2].call(null, x); } /*<>*/ return /*<>*/ caml_call1 (f, _h_); @@ -1614,7 +1596,7 @@ var _e_ = x[1]; else{ if(246 !== _d_ && 244 !== _d_){var _e_ = x; break a;} - var _e_ = caml_call1(CamlinternalLazy[2], x); + var _e_ = CamlinternalLazy[2].call(null, x); } /*<>*/ return /*<>*/ caml_call1 (f, _e_); @@ -1625,7 +1607,7 @@ var _b_ = x[1]; else{ if(246 !== _a_ && 244 !== _a_){var _b_ = x; break a;} - var _b_ = caml_call1(CamlinternalLazy[2], x); + var _b_ = CamlinternalLazy[2].call(null, x); } /*<>*/ return from_val ( /*<>*/ caml_call1(f, _b_)); @@ -1640,6 +1622,7 @@ //# unitInfo: Provides: Stdlib__Seq //# unitInfo: Requires: CamlinternalLazy, Stdlib, Stdlib__Atomic, Stdlib__Lazy +//# shape: Stdlib__Seq:[F(1),F(1),F(1),F(2),F(3),F(2),F(3),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(4),F(3),F(3),F(3),F(3),F(1),F(2),F(3),F(2),F(3),F(2),F(2),F(2),F(2),F(3),F(2),F(3),F(3),F(3),F(2),F(2),F(3),F(3),F(3),F(1),N,F(1),F(2),F(3),F(2),F(3),F(3),F(3),F(4),F(3),F(4),F(2),F(3),F(1),F(1),F(2),F(2),F(1),F(1),F(2)] (function (globalThis){ "use strict"; @@ -2059,8 +2042,7 @@ /*<>*/ } function init(n, f){ /*<>*/ if(0 > n) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Seq_init); + /*<>*/ return Stdlib[1].call(null, cst_Seq_init); var _af_ = 0; /*<>*/ return function(_ag_){ /*<>*/ return init_aux(f, _af_, n, _ag_);}; @@ -2154,8 +2136,7 @@ /*<>*/ } function take(n, xs){ /*<>*/ if(n < 0) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Seq_take); + /*<>*/ Stdlib[1].call(null, cst_Seq_take); /*<>*/ return take_aux(n, xs); /*<>*/ } function drop(n, xs){ @@ -2180,7 +2161,7 @@ xs$0 = xs$1; } /*<>*/ } - : /*<>*/ caml_call1(Stdlib[1], cst_Seq_drop); + : Stdlib[1].call(null, cst_Seq_drop); /*<>*/ } function take_while(p, xs, param){ /*<>*/ /*<>*/ var @@ -2241,14 +2222,12 @@ var xs$0 = match[2], x = match[1]; /*<>*/ return [0, x, memoize(xs$0)]; /*<>*/ } - /*<>*/ /*<>*/ var - s = /*<>*/ caml_call1(to_lazy, s$0); + /*<>*/ /*<>*/ var s = to_lazy(s$0); /*<>*/ return function(param){ /*<>*/ var _I_ = runtime.caml_obj_tag(s); if(250 === _I_) return s[1]; if(246 !== _I_ && 244 !== _I_) /*<>*/ return s; - /*<>*/ return /*<>*/ caml_call1 - (CamlinternalLazy[2], s); /*<>*/ }; + /*<>*/ return CamlinternalLazy[2].call(null, s); /*<>*/ }; /*<>*/ } function once(xs){ function f(param){ @@ -2259,10 +2238,10 @@ /*<>*/ return [0, x, once(xs$0)]; /*<>*/ } /*<>*/ /*<>*/ var - action = /*<>*/ caml_call1(Stdlib_Atomic[1], f); + action = Stdlib_Atomic[1].call(null, f); /*<>*/ return function(param){ /*<>*/ /*<>*/ var - f = /*<>*/ caml_call2(Stdlib_Atomic[5], action, failure); + f = Stdlib_Atomic[5].call(null, action, failure); /*<>*/ return /*<>*/ caml_call1(f, 0); /*<>*/ }; /*<>*/ } function zip(xs, ys, param){ @@ -2587,6 +2566,7 @@ //# unitInfo: Provides: Stdlib__Option //# unitInfo: Requires: Stdlib, Stdlib__Seq +//# shape: Stdlib__Option:[N,F(1),F(2),F(1),F(2),F(1),F(2),F(3),F(2),F(1),F(1),F(3),F(3),F(2),F(1),F(1)] (function (globalThis){ "use strict"; @@ -2617,8 +2597,7 @@ /*<>*/ } function get(param){ /*<>*/ if(! param) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_option_is_None); + /*<>*/ return Stdlib[1].call(null, cst_option_is_None); var v = param[1]; /*<>*/ return v; /*<>*/ } @@ -2687,9 +2666,9 @@ function to_seq(param){ /*<>*/ if(! param) /*<>*/ return Stdlib_Seq[20]; - var v = param[1]; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Seq[21], v); + var v = param[1], /*<>*/ _a_ = Stdlib_Seq[21]; + /*<>*/ return function(_b_){ + /*<>*/ return _a_(v, _b_);}; /*<>*/ } var Stdlib_Option = @@ -2717,6 +2696,7 @@ //# unitInfo: Provides: Stdlib__Result //# unitInfo: Requires: Stdlib, Stdlib__Seq +//# shape: Stdlib__Result:[F(1),F(1),F(2),F(1),F(1),F(2),F(1),F(2),F(2),F(3),F(2),F(2),F(1),F(1),F(4),F(4),F(1),F(1),F(1)] (function (globalThis){ "use strict"; @@ -2751,15 +2731,13 @@ /*<>*/ } function get_ok(param){ /*<>*/ if(0 !== param[0]) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_result_is_Error); + /*<>*/ return Stdlib[1].call(null, cst_result_is_Error); var v = param[1]; /*<>*/ return v; /*<>*/ } function get_error(param){ /*<>*/ if(0 === param[0]) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_result_is_Ok); + /*<>*/ return Stdlib[1].call(null, cst_result_is_Ok); var e = param[1]; /*<>*/ return e; /*<>*/ } @@ -2859,9 +2837,9 @@ function to_seq(param){ /*<>*/ if(0 !== param[0]) /*<>*/ return Stdlib_Seq[20]; - var v = param[1]; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Seq[21], v); + var v = param[1], /*<>*/ _a_ = Stdlib_Seq[21]; + /*<>*/ return function(_b_){ + /*<>*/ return _a_(v, _b_);}; /*<>*/ } var Stdlib_Result = @@ -2891,7 +2869,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Bool -(function(globalThis){ +//# shape: Stdlib__Bool:[F(1),F(2),F(2),F(1),F(1),F(1),F(2),F(1)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, caml_hash = runtime.caml_hash; function equal(_d_, _c_){ /*<>*/ return _d_ === _c_ ? 1 : 0;} @@ -2931,6 +2911,7 @@ //# unitInfo: Provides: Stdlib__Char //# unitInfo: Requires: Stdlib +//# shape: Stdlib__Char:[F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(1)] (function (globalThis){ "use strict"; @@ -2939,13 +2920,7 @@ caml_bytes_unsafe_set = runtime.caml_bytes_unsafe_set, caml_create_bytes = runtime.caml_create_bytes, caml_hash = runtime.caml_hash, - caml_string_of_bytes = runtime.caml_string_of_bytes; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - var + caml_string_of_bytes = runtime.caml_string_of_bytes, global_data = runtime.caml_get_global_data(), cst = "\\\\", cst$0 = "\\'", @@ -2958,8 +2933,7 @@ function chr(n){ /*<>*/ if(0 <= n && 255 >= n) /*<>*/ return n; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Char_chr); + /*<>*/ return Stdlib[1].call(null, cst_Char_chr); /*<>*/ } function escaped(c){ /*<>*/ a: @@ -3033,6 +3007,7 @@ //# unitInfo: Provides: Stdlib__Uchar //# unitInfo: Requires: Stdlib +//# shape: Stdlib__Uchar:[N,N,N,N,F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(2),F(1),F(1),F(1)] (function (globalThis){ "use strict"; @@ -3040,18 +3015,7 @@ runtime = globalThis.jsoo_runtime, cst_uchar_ml = "uchar.ml", caml_format_int = runtime.caml_format_int, - caml_maybe_attach_backtrace = runtime.caml_maybe_attach_backtrace; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - var + caml_maybe_attach_backtrace = runtime.caml_maybe_attach_backtrace, global_data = runtime.caml_get_global_data(), err_no_pred = "U+0000 has no predecessor", err_no_succ = "U+10FFFF has no successor", @@ -3065,12 +3029,12 @@ function succ(u){ /*<>*/ return u === 55295 ? hi_bound - : u === 1114111 ? caml_call1(Stdlib[1], err_no_succ) : u + 1 | 0; + : u === 1114111 ? Stdlib[1].call(null, err_no_succ) : u + 1 | 0; /*<>*/ } function pred(u){ /*<>*/ return u === 57344 ? lo_bound - : u === 0 ? caml_call1(Stdlib[1], err_no_pred) : u - 1 | 0; + : u === 0 ? Stdlib[1].call(null, err_no_pred) : u - 1 | 0; /*<>*/ } function is_valid(i){ /*<>*/ var @@ -3086,12 +3050,11 @@ /*<>*/ if(is_valid(i)) /*<>*/ return i; /*<>*/ /*<>*/ var _m_ = - /*<>*/ caml_call2 - (Stdlib[28], + Stdlib[28].call + (null, /*<>*/ caml_format_int("%X", i), cst_is_not_an_Unicode_scalar_v); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], _m_); + /*<>*/ return Stdlib[1].call(null, _m_); /*<>*/ } function is_char(u){ /*<>*/ return u < 256 ? 1 : 0; @@ -3103,14 +3066,12 @@ /*<>*/ if(255 >= u) /*<>*/ return u; /*<>*/ var /*<>*/ _k_ = - /*<>*/ caml_call2 - (Stdlib[28], + Stdlib[28].call + (null, /*<>*/ caml_format_int("%04X", u), cst_is_not_a_latin1_character), - /*<>*/ _l_ = - /*<>*/ caml_call2(Stdlib[28], cst_U, _k_); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], _l_); + /*<>*/ _l_ = Stdlib[28].call(null, cst_U, _k_); + /*<>*/ return Stdlib[1].call(null, _l_); /*<>*/ } function unsafe_to_char(_j_){ /*<>*/ return _j_;} function equal(_i_, _h_){ /*<>*/ return _i_ === _h_ ? 1 : 0;} @@ -3192,6 +3153,7 @@ //# unitInfo: Provides: Stdlib__List //# unitInfo: Requires: Stdlib +//# shape: Stdlib__List:[F(1),F(2),F(2),F(1),F(2),F(1),F(1),F(2),F(2),F(1),F(2),F(2),F(2),F(1),F(1),F(3),F(3),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(3),F(3),F(4),F(4),F(2),F(2),F(3),F(3),F(2),F(2),F(2),F(2),F(1),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(3),F(1),F(1)] (function (globalThis){ "use strict"; @@ -3240,27 +3202,22 @@ /*<>*/ } function hd(param){ /*<>*/ if(! param) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], cst_hd); + /*<>*/ return Stdlib[2].call(null, cst_hd); var a = param[1]; /*<>*/ return a; /*<>*/ } function tl(param){ /*<>*/ if(! param) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], cst_tl); + /*<>*/ return Stdlib[2].call(null, cst_tl); var l = param[2]; /*<>*/ return l; /*<>*/ } function nth(l, n){ /*<>*/ if(0 > n) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_nth); + /*<>*/ return Stdlib[1].call(null, cst_List_nth); var l$0 = l, n$0 = n; /*<>*/ for(;;){ - if(! l$0) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], cst_nth); + if(! l$0) /*<>*/ return Stdlib[2].call(null, cst_nth); var l$1 = l$0[2], a = l$0[1]; /*<>*/ if(0 === n$0) /*<>*/ return a; /*<>*/ /*<>*/ var n$1 = n$0 - 1 | 0; @@ -3270,8 +3227,7 @@ /*<>*/ } function nth_opt(l, n){ /*<>*/ if(0 > n) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_nth$0); + /*<>*/ return Stdlib[1].call(null, cst_List_nth$0); var l$0 = l, n$0 = n; /*<>*/ for(;;){ if(! l$0) /*<>*/ return 0; @@ -3313,8 +3269,7 @@ /*<>*/ } function init(len, f){ /*<>*/ if(0 > len) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_init); + /*<>*/ return Stdlib[1].call(null, cst_List_init); var last = len - 1 | 0, i$1 = 0; if(last < 0) /*<>*/ return 0; if(0 === last) @@ -3356,8 +3311,7 @@ r = param[2], l = param[1], /*<>*/ _I_ = flatten(r); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[37], l, _I_); + /*<>*/ return Stdlib[37].call(null, l, _I_); /*<>*/ } function map(f, param){ /*<>*/ if(! param) /*<>*/ return 0; @@ -3564,7 +3518,7 @@ } } else if(! l2$1){dst[1 + offset] = 0; break a;} - dst[1 + offset] = caml_call1(Stdlib[1], cst_List_map2$0); + dst[1 + offset] = Stdlib[1].call(null, cst_List_map2$0); } /*<>*/ return [0, r1, block]; } @@ -3580,8 +3534,7 @@ } } else if(! l2) /*<>*/ return 0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_map2); + /*<>*/ return Stdlib[1].call(null, cst_List_map2); /*<>*/ } function rev_map2(f, l1, l2){ /*<>*/ var accu = 0, l1$0 = l1, l2$0 = l2; @@ -3602,8 +3555,7 @@ } } else if(! l2$0) /*<>*/ return accu; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_rev_map2); + /*<>*/ return Stdlib[1].call(null, cst_List_rev_map2); } /*<>*/ } function iter2(f, l1, l2){ @@ -3619,8 +3571,7 @@ } } else if(! l2$0) /*<>*/ return 0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_iter2); + /*<>*/ return Stdlib[1].call(null, cst_List_iter2); } /*<>*/ } function fold_left2(f, accu, l1, l2){ @@ -3642,8 +3593,7 @@ } } else if(! l2$0) /*<>*/ return accu$0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_fold_left2); + /*<>*/ return Stdlib[1].call(null, cst_List_fold_left2); } /*<>*/ } function fold_right2(f, l1, l2, accu){ @@ -3655,8 +3605,7 @@ } } else if(! l2) /*<>*/ return accu; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_fold_right2); + /*<>*/ return Stdlib[1].call(null, cst_List_fold_right2); /*<>*/ } function for_all(p, param){ var param$0 = param; @@ -3701,8 +3650,7 @@ } } else if(! l2$0) /*<>*/ return 1; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_for_all2); + /*<>*/ return Stdlib[1].call(null, cst_List_for_all2); } /*<>*/ } function exists2(p, l1, l2){ @@ -3724,8 +3672,7 @@ } } else if(! l2$0) /*<>*/ return 0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_exists2); + /*<>*/ return Stdlib[1].call(null, cst_List_exists2); } /*<>*/ } function mem(x, param){ @@ -4132,8 +4079,7 @@ } } else if(! l2) /*<>*/ return 0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_List_combine); + /*<>*/ return Stdlib[1].call(null, cst_List_combine); /*<>*/ } function merge(cmp, l1, l2){ /*<>*/ if(! l1) /*<>*/ return l2; @@ -4783,7 +4729,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Int -(function(globalThis){ +//# shape: Stdlib__Int:[N,N,N,F(1),N,N,F(1),F(2),F(2),F(2),F(2),F(1),F(2),F(1)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, caml_hash = runtime.caml_hash; function abs(x){ @@ -4835,6 +4783,7 @@ //# unitInfo: Provides: Stdlib__Bytes //# unitInfo: Requires: Stdlib, Stdlib__Char, Stdlib__Int, Stdlib__Seq, Stdlib__Sys, Stdlib__Uchar +//# shape: Stdlib__Bytes:[F(2),F(2),N,F(1),F(1),F(1),F(3),F(3),F(3),F(4),F(5),F(5),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(2),F(2),F(1),F(1),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(2),F(3),F(3),F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(1),F(1),F(2),F(1),F(1),F(1),F(2),F(3),F(1),F(2),F(3),F(1),F(2),F(3),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(1)] (function (globalThis){ "use strict"; @@ -4949,8 +4898,8 @@ (s, ofs, r, 0, len); /*<>*/ return r; } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_sub_Bytes_sub); + /*<>*/ return Stdlib[1].call + (null, cst_String_sub_Bytes_sub); /*<>*/ } function sub_string(b, ofs, len){ /*<>*/ return /*<>*/ caml_string_of_bytes @@ -4966,8 +4915,7 @@ if(a < 0){if(_an_ && ! match) break a;} else if(! _an_ && match) break a; /*<>*/ return c; } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Bytes_extend); + /*<>*/ return Stdlib[1].call(null, cst_Bytes_extend); /*<>*/ } function extend(s, left, right){ /*<>*/ var @@ -4981,10 +4929,8 @@ var dstoff = 0, srcoff = - left | 0; /*<>*/ /*<>*/ var cpylen = - /*<>*/ caml_call2 - (Stdlib_Int[10], - caml_ml_bytes_length(s) - srcoff | 0, - len - dstoff | 0); + Stdlib_Int[10].call + (null, caml_ml_bytes_length(s) - srcoff | 0, len - dstoff | 0); if(0 < cpylen) /*<>*/ /*<>*/ caml_blit_bytes (s, srcoff, r, dstoff, cpylen); @@ -4995,8 +4941,8 @@ (0 <= ofs && 0 <= len && (caml_ml_bytes_length(s) - len | 0) >= ofs) /*<>*/ return /*<>*/ caml_fill_bytes (s, ofs, len, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_fill_Bytes_fill); + /*<>*/ return Stdlib[1].call + (null, cst_String_fill_Bytes_fill); /*<>*/ } function blit(s1, ofs1, s2, ofs2, len){ /*<>*/ if @@ -5008,8 +4954,7 @@ && 0 <= ofs2 && (caml_ml_bytes_length(s2) - len | 0) >= ofs2) /*<>*/ return /*<>*/ caml_blit_bytes (s1, ofs1, s2, ofs2, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Bytes_blit); + /*<>*/ return Stdlib[1].call(null, cst_Bytes_blit); /*<>*/ } function blit_string(s1, ofs1, s2, ofs2, len){ /*<>*/ if @@ -5021,8 +4966,8 @@ && 0 <= ofs2 && (caml_ml_bytes_length(s2) - len | 0) >= ofs2) /*<>*/ return /*<>*/ runtime.caml_blit_string (s1, ofs1, s2, ofs2, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_blit_Bytes_blit_str); + /*<>*/ return Stdlib[1].call + (null, cst_String_blit_Bytes_blit_str); /*<>*/ } function iter(f, a){ /*<>*/ var @@ -5071,10 +5016,7 @@ var tl = param[2], x = (caml_ml_bytes_length(hd) + seplen | 0) + acc | 0, - acc$0 = - acc <= x - ? x - : /*<>*/ caml_call1(Stdlib[1], cst_Bytes_concat); + acc$0 = acc <= x ? x : Stdlib[1].call(null, cst_Bytes_concat); acc = acc$0; param = tl; } @@ -5454,15 +5396,15 @@ function index_from(s, i, c){ /*<>*/ var l = caml_ml_bytes_length(s); if(0 <= i && l >= i) /*<>*/ return index_rec(s, l, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_index_from_Bytes_in); + /*<>*/ return Stdlib[1].call + (null, cst_String_index_from_Bytes_in); /*<>*/ } function index_from_opt(s, i, c){ /*<>*/ var l = caml_ml_bytes_length(s); if(0 <= i && l >= i) /*<>*/ return index_rec_opt(s, l, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_index_from_opt_Byte); + /*<>*/ return Stdlib[1].call + (null, cst_String_index_from_opt_Byte); /*<>*/ } function rindex_rec(s, i, c){ /*<>*/ var i$0 = i; @@ -5483,8 +5425,8 @@ function rindex_from(s, i, c){ /*<>*/ if(-1 <= i && caml_ml_bytes_length(s) > i) /*<>*/ return rindex_rec(s, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_rindex_from_Bytes_r); + /*<>*/ return Stdlib[1].call + (null, cst_String_rindex_from_Bytes_r); /*<>*/ } function rindex_rec_opt(s, i, c){ /*<>*/ var i$0 = i; @@ -5503,8 +5445,8 @@ function rindex_from_opt(s, i, c){ /*<>*/ if(-1 <= i && caml_ml_bytes_length(s) > i) /*<>*/ return rindex_rec_opt(s, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_rindex_from_opt_Byt); + /*<>*/ return Stdlib[1].call + (null, cst_String_rindex_from_opt_Byt); /*<>*/ } function contains_from(s, i, c){ /*<>*/ var l = caml_ml_bytes_length(s); @@ -5519,8 +5461,8 @@ if(_J_ === Stdlib[8]) /*<>*/ return 0; throw caml_maybe_attach_backtrace(_J_, 0); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_contains_from_Bytes); + /*<>*/ return Stdlib[1].call + (null, cst_String_contains_from_Bytes); /*<>*/ } function contains(s, c){ /*<>*/ return contains_from(s, 0, c); @@ -5537,8 +5479,8 @@ if(_G_ === Stdlib[8]) /*<>*/ return 0; throw caml_maybe_attach_backtrace(_G_, 0); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_rcontains_from_Byte); + /*<>*/ return Stdlib[1].call + (null, cst_String_rcontains_from_Byte); /*<>*/ } var compare = runtime.caml_bytes_compare, @@ -5602,19 +5544,17 @@ /*<>*/ var /*<>*/ n = [0, 0], /*<>*/ buf = [0, make(256, 0)]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ Stdlib_Seq[4].call + (null, function(c){ /*<>*/ if(n[1] === caml_ml_bytes_length(buf[1])){ /*<>*/ /*<>*/ var new_len = - /*<>*/ caml_call2 - (Stdlib_Int[10], - 2 * caml_ml_bytes_length(buf[1]) | 0, - Stdlib_Sys[12]); + Stdlib_Int[10].call + (null, 2 * caml_ml_bytes_length(buf[1]) | 0, Stdlib_Sys[12]); if(caml_ml_bytes_length(buf[1]) === new_len) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[2], cst_Bytes_of_seq_cannot_grow_b); + /*<>*/ Stdlib[2].call + (null, cst_Bytes_of_seq_cannot_grow_b); /*<>*/ /*<>*/ var new_buf = make(new_len, 0); /*<>*/ blit(buf[1], 0, new_buf, 0, n[1]); @@ -5768,9 +5708,8 @@ _f_ = [0, cst_bytes_ml, 820, 20]; function dec_ret(n, u){ /*<>*/ /*<>*/ var - _l_ = /*<>*/ caml_call1(Stdlib_Uchar[9], u); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Uchar[21], n, _l_); + _l_ = Stdlib_Uchar[9].call(null, u); + /*<>*/ return Stdlib_Uchar[21].call(null, n, _l_); /*<>*/ } function not_in_x80_to_xBF(b){ /*<>*/ return 2 !== (b >>> 6 | 0) ? 1 : 0; @@ -5812,158 +5751,116 @@ switch(b0 - 237 | 0){ case 0: /*<>*/ /*<>*/ var i$0 = i + 1 | 0; - if(max < i$0) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$0) /*<>*/ return dec_invalid(1); var b1$4 = caml_bytes_unsafe_get(b, i$0); /*<>*/ if(not_in_x80_to_x9F(b1$4)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var i$1 = i$0 + 1 | 0; - if(max < i$1) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + if(max < i$1) /*<>*/ return dec_invalid(2); var b2$3 = caml_bytes_unsafe_get(b, i$1); /*<>*/ return not_in_x80_to_xBF(b2$3) - ? /*<>*/ caml_call1(dec_invalid, 2) + ? dec_invalid(2) : dec_ret(3, utf_8_uchar_3(b0, b1$4, b2$3)); case 3: /*<>*/ /*<>*/ var i$4 = i + 1 | 0; - if(max < i$4) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$4) /*<>*/ return dec_invalid(1); var b1$2 = caml_bytes_unsafe_get(b, i$4); /*<>*/ if(not_in_x90_to_xBF(b1$2)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var i$5 = i$4 + 1 | 0; - if(max < i$5) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + if(max < i$5) /*<>*/ return dec_invalid(2); var b2$1 = caml_bytes_unsafe_get(b, i$5); /*<>*/ if(not_in_x80_to_xBF(b2$1)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); /*<>*/ /*<>*/ var i$6 = i$5 + 1 | 0; - if(max < i$6) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 3); + if(max < i$6) /*<>*/ return dec_invalid(3); var b3$1 = caml_bytes_unsafe_get(b, i$6); /*<>*/ return not_in_x80_to_xBF(b3$1) - ? /*<>*/ caml_call1(dec_invalid, 3) + ? dec_invalid(3) : dec_ret(4, utf_8_uchar_4(b0, b1$2, b2$1, b3$1)); case 7: /*<>*/ /*<>*/ var i$10 = i + 1 | 0; - if(max < i$10) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$10) /*<>*/ return dec_invalid(1); var b1$0 = caml_bytes_unsafe_get(b, i$10); /*<>*/ if(not_in_x80_to_x8F(b1$0)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var i$11 = i$10 + 1 | 0; - if(max < i$11) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + if(max < i$11) /*<>*/ return dec_invalid(2); var b2 = caml_bytes_unsafe_get(b, i$11); /*<>*/ if(not_in_x80_to_xBF(b2)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); /*<>*/ /*<>*/ var i$12 = i$11 + 1 | 0; - if(max < i$12) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 3); + if(max < i$12) /*<>*/ return dec_invalid(3); var b3 = caml_bytes_unsafe_get(b, i$12); /*<>*/ return not_in_x80_to_xBF(b3) - ? /*<>*/ caml_call1(dec_invalid, 3) + ? dec_invalid(3) : dec_ret(4, utf_8_uchar_4(b0, b1$0, b2, b3)); case 1: case 2: break; default: /*<>*/ /*<>*/ var i$7 = i + 1 | 0; - if(max < i$7) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$7) /*<>*/ return dec_invalid(1); var b1$1 = caml_bytes_unsafe_get(b, i$7); /*<>*/ if(not_in_x80_to_xBF(b1$1)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var i$8 = i$7 + 1 | 0; - if(max < i$8) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + if(max < i$8) /*<>*/ return dec_invalid(2); var b2$0 = caml_bytes_unsafe_get(b, i$8); /*<>*/ if(not_in_x80_to_xBF(b2$0)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); /*<>*/ /*<>*/ var i$9 = i$8 + 1 | 0; - if(max < i$9) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 3); + if(max < i$9) /*<>*/ return dec_invalid(3); var b3$0 = caml_bytes_unsafe_get(b, i$9); /*<>*/ return not_in_x80_to_xBF(b3$0) - ? /*<>*/ caml_call1(dec_invalid, 3) + ? dec_invalid(3) : dec_ret(4, utf_8_uchar_4(b0, b1$1, b2$0, b3$0)); } } else if(225 > b0){ /*<>*/ /*<>*/ var i$13 = i + 1 | 0; - if(max < i$13) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$13) /*<>*/ return dec_invalid(1); var b1$5 = caml_bytes_unsafe_get(b, i$13); /*<>*/ if(not_in_xA0_to_xBF(b1$5)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var i$14 = i$13 + 1 | 0; - if(max < i$14) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + if(max < i$14) /*<>*/ return dec_invalid(2); var b2$4 = caml_bytes_unsafe_get(b, i$14); /*<>*/ return not_in_x80_to_xBF(b2$4) - ? /*<>*/ caml_call1(dec_invalid, 2) + ? dec_invalid(2) : dec_ret(3, utf_8_uchar_3(b0, b1$5, b2$4)); } /*<>*/ /*<>*/ var i$2 = i + 1 | 0; - if(max < i$2) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$2) /*<>*/ return dec_invalid(1); var b1$3 = caml_bytes_unsafe_get(b, i$2); /*<>*/ if(not_in_x80_to_xBF(b1$3)) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var i$3 = i$2 + 1 | 0; - if(max < i$3) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + if(max < i$3) /*<>*/ return dec_invalid(2); var b2$2 = caml_bytes_unsafe_get(b, i$3); /*<>*/ return not_in_x80_to_xBF(b2$2) - ? /*<>*/ caml_call1(dec_invalid, 2) + ? dec_invalid(2) : dec_ret(3, utf_8_uchar_3(b0, b1$3, b2$2)); } if(128 > b0) /*<>*/ return dec_ret(1, b0); if(194 <= b0){ /*<>*/ /*<>*/ var i$15 = i + 1 | 0; - if(max < i$15) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(max < i$15) /*<>*/ return dec_invalid(1); var b1 = caml_bytes_unsafe_get(b, i$15); /*<>*/ return not_in_x80_to_xBF(b1) - ? /*<>*/ caml_call1(dec_invalid, 1) + ? dec_invalid(1) : dec_ret(2, (b0 & 31) << 6 | b1 & 63); } } - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + /*<>*/ return dec_invalid(1); /*<>*/ } function set_utf_8_uchar(b, i, u){ /*<>*/ function set(_i_, _h_, _g_){ @@ -5973,8 +5870,7 @@ /*<>*/ var /*<>*/ max = /*<>*/ caml_ml_bytes_length(b) - 1 | 0, - /*<>*/ u$0 = - /*<>*/ caml_call1(Stdlib_Uchar[10], u); + /*<>*/ u$0 = Stdlib_Uchar[10].call(null, u); /*<>*/ if(0 > u$0) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace ([0, Assert_failure, _b_], 1); @@ -6153,37 +6049,33 @@ /*<>*/ /*<>*/ var max = /*<>*/ caml_ml_bytes_length(b) - 1 | 0; if(0 <= i && max >= i){ - if(i === max) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(i === max) /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var hi = unsafe_get_uint16_be(b, i); if(55296 <= hi && 57343 >= hi){ /*<>*/ if(56319 < hi) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); /*<>*/ /*<>*/ var last = i + 3 | 0; - if(max < last) return caml_call1(dec_invalid, (max - i | 0) + 1 | 0); + if(max < last) return dec_invalid((max - i | 0) + 1 | 0); /*<>*/ /*<>*/ var lo = unsafe_get_uint16_be(b, i + 2 | 0); if(56320 <= lo && 57343 >= lo){ var u = ((hi & 1023) << 10 | lo & 1023) + 65536 | 0; /*<>*/ return dec_ret(4, u); } - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); } /*<>*/ return dec_ret(2, hi); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_index_out_of_bounds); + /*<>*/ return Stdlib[1].call + (null, cst_index_out_of_bounds); /*<>*/ } function set_utf_16be_uchar(b, i, u){ /*<>*/ /*<>*/ var max = /*<>*/ caml_ml_bytes_length(b) - 1 | 0; if(0 <= i && max >= i){ /*<>*/ /*<>*/ var - u$0 = /*<>*/ caml_call1(Stdlib_Uchar[10], u); + u$0 = Stdlib_Uchar[10].call(null, u); /*<>*/ if(0 > u$0) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace ([0, Assert_failure, _d_], 1); @@ -6204,8 +6096,8 @@ /*<>*/ unsafe_set_uint16_be(b, i + 2 | 0, lo); /*<>*/ return 4; } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_index_out_of_bounds$0); + /*<>*/ return Stdlib[1].call + (null, cst_index_out_of_bounds$0); /*<>*/ } function is_valid_utf_16be(b){ /*<>*/ var max = caml_ml_bytes_length(b) - 1 | 0, i = 0; @@ -6236,37 +6128,33 @@ /*<>*/ /*<>*/ var max = /*<>*/ caml_ml_bytes_length(b) - 1 | 0; if(0 <= i && max >= i){ - if(i === max) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 1); + if(i === max) /*<>*/ return dec_invalid(1); /*<>*/ /*<>*/ var hi = unsafe_get_uint16_le(b, i); if(55296 <= hi && 57343 >= hi){ /*<>*/ if(56319 < hi) - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); /*<>*/ /*<>*/ var last = i + 3 | 0; - if(max < last) return caml_call1(dec_invalid, (max - i | 0) + 1 | 0); + if(max < last) return dec_invalid((max - i | 0) + 1 | 0); /*<>*/ /*<>*/ var lo = unsafe_get_uint16_le(b, i + 2 | 0); if(56320 <= lo && 57343 >= lo){ var u = ((hi & 1023) << 10 | lo & 1023) + 65536 | 0; /*<>*/ return dec_ret(4, u); } - /*<>*/ return /*<>*/ caml_call1 - (dec_invalid, 2); + /*<>*/ return dec_invalid(2); } /*<>*/ return dec_ret(2, hi); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_index_out_of_bounds$1); + /*<>*/ return Stdlib[1].call + (null, cst_index_out_of_bounds$1); /*<>*/ } function set_utf_16le_uchar(b, i, u){ /*<>*/ /*<>*/ var max = /*<>*/ caml_ml_bytes_length(b) - 1 | 0; if(0 <= i && max >= i){ /*<>*/ /*<>*/ var - u$0 = /*<>*/ caml_call1(Stdlib_Uchar[10], u); + u$0 = Stdlib_Uchar[10].call(null, u); /*<>*/ if(0 > u$0) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace ([0, Assert_failure, _f_], 1); @@ -6287,8 +6175,8 @@ /*<>*/ unsafe_set_uint16_le(b, i + 2 | 0, lo); /*<>*/ return 4; } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_index_out_of_bounds$2); + /*<>*/ return Stdlib[1].call + (null, cst_index_out_of_bounds$2); /*<>*/ } function is_valid_utf_16le(b){ /*<>*/ var max = caml_ml_bytes_length(b) - 1 | 0, i = 0; @@ -6412,6 +6300,7 @@ //# unitInfo: Provides: Stdlib__String //# unitInfo: Requires: Stdlib, Stdlib__Bytes +//# shape: Stdlib__String:[F(2),F(2),N,F(1),F(1),F(5),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(2),F(3),F(2),F(2),F(2),F(3),F(3),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(3),F(3),F(3),F(3),F(2),F(2),F(2),F(2),F(1),F(1),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2)] (function (globalThis){ "use strict"; @@ -6434,11 +6323,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); } var global_data = runtime.caml_get_global_data(), @@ -6449,21 +6333,16 @@ bts = Stdlib_Bytes[44], bos = Stdlib_Bytes[45]; function make(n, c){ - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call2(Stdlib_Bytes[1], n, c)); + /*<>*/ return bts(Stdlib_Bytes[1].call(null, n, c)); /*<>*/ } function init(n, f){ - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call2(Stdlib_Bytes[2], n, f)); + /*<>*/ return bts(Stdlib_Bytes[2].call(null, n, f)); /*<>*/ } var of_bytes = Stdlib_Bytes[6], to_bytes = Stdlib_Bytes[5]; function sub(s, ofs, len){ - /*<>*/ /*<>*/ var - _X_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, - /*<>*/ caml_call3 - (Stdlib_Bytes[7], _X_, ofs, len)); + /*<>*/ /*<>*/ var _X_ = bos(s); + /*<>*/ return bts + (Stdlib_Bytes[7].call(null, _X_, ofs, len)); /*<>*/ } var blit = Stdlib_Bytes[12], cst_String_concat = "String.concat"; function concat(sep, l){ @@ -6481,10 +6360,7 @@ var tl = param[2], x = (caml_ml_string_length(hd) + seplen | 0) + acc | 0, - acc$0 = - acc <= x - ? x - : /*<>*/ caml_call1(Stdlib[1], cst_String_concat); + acc$0 = acc <= x ? x : Stdlib[1].call(null, cst_String_concat); acc = acc$0; param = tl; } @@ -6519,8 +6395,7 @@ /*<>*/ /*<>*/ caml_blit_string (hd$0, 0, dst, pos, caml_ml_string_length(hd$0)); } - /*<>*/ return /*<>*/ caml_call1 - (bts, dst); + /*<>*/ return bts(dst); } } var @@ -6568,42 +6443,28 @@ return 0; /*<>*/ } function map(f, s){ - /*<>*/ /*<>*/ var - _P_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, - /*<>*/ caml_call2(Stdlib_Bytes[17], f, _P_)); + /*<>*/ /*<>*/ var _P_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[17].call(null, f, _P_)); /*<>*/ } function mapi(f, s){ - /*<>*/ /*<>*/ var - _O_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, - /*<>*/ caml_call2(Stdlib_Bytes[18], f, _O_)); + /*<>*/ /*<>*/ var _O_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[18].call(null, f, _O_)); /*<>*/ } function fold_right(f, x, a){ - /*<>*/ /*<>*/ var - _N_ = /*<>*/ caml_call1(bos, x); - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[20], f, _N_, a); + /*<>*/ /*<>*/ var _N_ = bos(x); + /*<>*/ return Stdlib_Bytes[20].call(null, f, _N_, a); /*<>*/ } function fold_left(f, a, x){ - /*<>*/ /*<>*/ var - _M_ = /*<>*/ caml_call1(bos, x); - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[19], f, a, _M_); + /*<>*/ /*<>*/ var _M_ = bos(x); + /*<>*/ return Stdlib_Bytes[19].call(null, f, a, _M_); /*<>*/ } function exists(f, s){ - /*<>*/ /*<>*/ var - _L_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[22], f, _L_); + /*<>*/ /*<>*/ var _L_ = bos(s); + /*<>*/ return Stdlib_Bytes[22].call(null, f, _L_); /*<>*/ } function for_all(f, s){ - /*<>*/ /*<>*/ var - _K_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[21], f, _K_); + /*<>*/ /*<>*/ var _K_ = bos(s); + /*<>*/ return Stdlib_Bytes[21].call(null, f, _K_); /*<>*/ } function is_space(param){ /*<>*/ /*<>*/ var _J_ = param - 9 | 0; @@ -6624,16 +6485,12 @@ ! is_space(caml_string_unsafe_get(s, caml_ml_string_length(s) - 1 | 0))) /*<>*/ return s; - /*<>*/ /*<>*/ var - _I_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[23], _I_)); + /*<>*/ /*<>*/ var _I_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[23].call(null, _I_)); /*<>*/ } function escaped(s){ - /*<>*/ /*<>*/ var - b = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[87], b)); + /*<>*/ /*<>*/ var b = bos(s); + /*<>*/ return bts(Stdlib_Bytes[87].call(null, b)); /*<>*/ } function index_rec(s, lim, i, c){ /*<>*/ var i$0 = i; @@ -6669,15 +6526,15 @@ /*<>*/ var l = caml_ml_string_length(s); if(0 <= i && l >= i) /*<>*/ return index_rec(s, l, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_index_from_Bytes_in); + /*<>*/ return Stdlib[1].call + (null, cst_String_index_from_Bytes_in); /*<>*/ } function index_from_opt(s, i, c){ /*<>*/ var l = caml_ml_string_length(s); if(0 <= i && l >= i) /*<>*/ return index_rec_opt(s, l, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_index_from_opt_Byte); + /*<>*/ return Stdlib[1].call + (null, cst_String_index_from_opt_Byte); /*<>*/ } function rindex_rec(s, i, c){ /*<>*/ var i$0 = i; @@ -6698,8 +6555,8 @@ function rindex_from(s, i, c){ /*<>*/ if(-1 <= i && caml_ml_string_length(s) > i) /*<>*/ return rindex_rec(s, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_rindex_from_Bytes_r); + /*<>*/ return Stdlib[1].call + (null, cst_String_rindex_from_Bytes_r); /*<>*/ } function rindex_rec_opt(s, i, c){ /*<>*/ var i$0 = i; @@ -6718,8 +6575,8 @@ function rindex_from_opt(s, i, c){ /*<>*/ if(-1 <= i && caml_ml_string_length(s) > i) /*<>*/ return rindex_rec_opt(s, i, c); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_rindex_from_opt_Byt); + /*<>*/ return Stdlib[1].call + (null, cst_String_rindex_from_opt_Byt); /*<>*/ } function contains_from(s, i, c){ /*<>*/ var l = caml_ml_string_length(s); @@ -6734,8 +6591,8 @@ if(_F_ === Stdlib[8]) /*<>*/ return 0; throw caml_maybe_attach_backtrace(_F_, 0); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_contains_from_Bytes); + /*<>*/ return Stdlib[1].call + (null, cst_String_contains_from_Bytes); /*<>*/ } function contains(s, c){ /*<>*/ return contains_from(s, 0, c); @@ -6752,32 +6609,24 @@ if(_C_ === Stdlib[8]) /*<>*/ return 0; throw caml_maybe_attach_backtrace(_C_, 0); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_String_rcontains_from_Byte); + /*<>*/ return Stdlib[1].call + (null, cst_String_rcontains_from_Byte); /*<>*/ } function uppercase_ascii(s){ - /*<>*/ /*<>*/ var - _B_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[36], _B_)); + /*<>*/ /*<>*/ var _B_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[36].call(null, _B_)); /*<>*/ } function lowercase_ascii(s){ - /*<>*/ /*<>*/ var - _A_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[37], _A_)); + /*<>*/ /*<>*/ var _A_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[37].call(null, _A_)); /*<>*/ } function capitalize_ascii(s){ - /*<>*/ /*<>*/ var - _z_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[38], _z_)); + /*<>*/ /*<>*/ var _z_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[38].call(null, _z_)); /*<>*/ } function uncapitalize_ascii(s){ - /*<>*/ /*<>*/ var - _y_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[39], _y_)); + /*<>*/ /*<>*/ var _y_ = bos(s); + /*<>*/ return bts(Stdlib_Bytes[39].call(null, _y_)); /*<>*/ } function starts_with(prefix, s){ /*<>*/ var @@ -6841,116 +6690,79 @@ /*<>*/ } var compare = runtime.caml_string_compare; function to_seq(s){ - /*<>*/ /*<>*/ var - _r_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[47], _r_); + /*<>*/ /*<>*/ var _r_ = bos(s); + /*<>*/ return Stdlib_Bytes[47].call(null, _r_); /*<>*/ } function to_seqi(s){ - /*<>*/ /*<>*/ var - _q_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[48], _q_); + /*<>*/ /*<>*/ var _q_ = bos(s); + /*<>*/ return Stdlib_Bytes[48].call(null, _q_); /*<>*/ } function of_seq(g){ - /*<>*/ return /*<>*/ caml_call1 - (bts, /*<>*/ caml_call1(Stdlib_Bytes[49], g)); + /*<>*/ return bts(Stdlib_Bytes[49].call(null, g)); /*<>*/ } function get_utf_8_uchar(s, i){ - /*<>*/ /*<>*/ var - _p_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[50], _p_, i); + /*<>*/ /*<>*/ var _p_ = bos(s); + /*<>*/ return Stdlib_Bytes[50].call(null, _p_, i); /*<>*/ } function is_valid_utf_8(s){ - /*<>*/ /*<>*/ var - _o_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[52], _o_); + /*<>*/ /*<>*/ var _o_ = bos(s); + /*<>*/ return Stdlib_Bytes[52].call(null, _o_); /*<>*/ } function get_utf_16be_uchar(s, i){ - /*<>*/ /*<>*/ var - _n_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[53], _n_, i); + /*<>*/ /*<>*/ var _n_ = bos(s); + /*<>*/ return Stdlib_Bytes[53].call(null, _n_, i); /*<>*/ } function is_valid_utf_16be(s){ - /*<>*/ /*<>*/ var - _m_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[55], _m_); + /*<>*/ /*<>*/ var _m_ = bos(s); + /*<>*/ return Stdlib_Bytes[55].call(null, _m_); /*<>*/ } function get_utf_16le_uchar(s, i){ - /*<>*/ /*<>*/ var - _l_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[56], _l_, i); + /*<>*/ /*<>*/ var _l_ = bos(s); + /*<>*/ return Stdlib_Bytes[56].call(null, _l_, i); /*<>*/ } function is_valid_utf_16le(s){ - /*<>*/ /*<>*/ var - _k_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[58], _k_); + /*<>*/ /*<>*/ var _k_ = bos(s); + /*<>*/ return Stdlib_Bytes[58].call(null, _k_); /*<>*/ } function get_int8(s, i){ - /*<>*/ /*<>*/ var - _j_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[60], _j_, i); + /*<>*/ /*<>*/ var _j_ = bos(s); + /*<>*/ return Stdlib_Bytes[60].call(null, _j_, i); /*<>*/ } function get_uint16_le(s, i){ - /*<>*/ /*<>*/ var - _i_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[63], _i_, i); + /*<>*/ /*<>*/ var _i_ = bos(s); + /*<>*/ return Stdlib_Bytes[63].call(null, _i_, i); /*<>*/ } function get_uint16_be(s, i){ - /*<>*/ /*<>*/ var - _h_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[62], _h_, i); + /*<>*/ /*<>*/ var _h_ = bos(s); + /*<>*/ return Stdlib_Bytes[62].call(null, _h_, i); /*<>*/ } function get_int16_ne(s, i){ - /*<>*/ /*<>*/ var - _g_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[64], _g_, i); + /*<>*/ /*<>*/ var _g_ = bos(s); + /*<>*/ return Stdlib_Bytes[64].call(null, _g_, i); /*<>*/ } function get_int16_le(s, i){ - /*<>*/ /*<>*/ var - _f_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[66], _f_, i); + /*<>*/ /*<>*/ var _f_ = bos(s); + /*<>*/ return Stdlib_Bytes[66].call(null, _f_, i); /*<>*/ } function get_int16_be(s, i){ - /*<>*/ /*<>*/ var - _e_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[65], _e_, i); + /*<>*/ /*<>*/ var _e_ = bos(s); + /*<>*/ return Stdlib_Bytes[65].call(null, _e_, i); /*<>*/ } function get_int32_le(s, i){ - /*<>*/ /*<>*/ var - _d_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[69], _d_, i); + /*<>*/ /*<>*/ var _d_ = bos(s); + /*<>*/ return Stdlib_Bytes[69].call(null, _d_, i); /*<>*/ } function get_int32_be(s, i){ - /*<>*/ /*<>*/ var - _c_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[68], _c_, i); + /*<>*/ /*<>*/ var _c_ = bos(s); + /*<>*/ return Stdlib_Bytes[68].call(null, _c_, i); /*<>*/ } function get_int64_le(s, i){ - /*<>*/ /*<>*/ var - _b_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[72], _b_, i); + /*<>*/ /*<>*/ var _b_ = bos(s); + /*<>*/ return Stdlib_Bytes[72].call(null, _b_, i); /*<>*/ } function get_int64_be(s, i){ - /*<>*/ /*<>*/ var - _a_ = /*<>*/ caml_call1(bos, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[71], _a_, i); + /*<>*/ /*<>*/ var _a_ = bos(s); + /*<>*/ return Stdlib_Bytes[71].call(null, _a_, i); /*<>*/ } var Stdlib_String = @@ -7025,7 +6837,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Unit -(function(globalThis){ +//# shape: Stdlib__Unit:[F(2),F(2),F(1)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, cst = "()"; function equal(_b_, param){ @@ -7045,6 +6859,7 @@ //# unitInfo: Provides: Stdlib__Marshal //# unitInfo: Requires: Stdlib, Stdlib__Bytes +//# shape: Stdlib__Marshal:[F(3),F(5),F(1),F(2),F(2),N,F(2),F(2)] (function (globalThis){ "use strict"; @@ -7052,13 +6867,7 @@ runtime = globalThis.jsoo_runtime, cst_Marshal_from_bytes$1 = "Marshal.from_bytes", caml_marshal_data_size = runtime.caml_marshal_data_size, - caml_ml_bytes_length = runtime.caml_ml_bytes_length; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - var + caml_ml_bytes_length = runtime.caml_ml_bytes_length, global_data = runtime.caml_get_global_data(), Stdlib_Bytes = global_data.Stdlib__Bytes, Stdlib = global_data.Stdlib, @@ -7069,8 +6878,8 @@ (0 <= ofs && 0 <= len && (caml_ml_bytes_length(buff) - len | 0) >= ofs) /*<>*/ return /*<>*/ runtime.caml_output_value_to_buffer (buff, ofs, len, v, flags); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Marshal_to_buffer_substrin); + /*<>*/ return Stdlib[1].call + (null, cst_Marshal_to_buffer_substrin); /*<>*/ } var cst_Marshal_data_size = "Marshal.data_size", @@ -7081,8 +6890,8 @@ (0 <= ofs && (caml_ml_bytes_length(buff) - 16 | 0) >= ofs) /*<>*/ return /*<>*/ caml_marshal_data_size (buff, ofs); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Marshal_data_size); + /*<>*/ return Stdlib[1].call + (null, cst_Marshal_data_size); /*<>*/ } function total_size(buff, ofs){ /*<>*/ return 16 + data_size(buff, ofs) | 0; @@ -7093,18 +6902,16 @@ /*<>*/ /*<>*/ var len = /*<>*/ caml_marshal_data_size(buff, ofs); return (caml_ml_bytes_length(buff) - (16 + len | 0) | 0) < ofs - ? /*<>*/ caml_call1 - (Stdlib[1], cst_Marshal_from_bytes$0) + ? Stdlib[1].call(null, cst_Marshal_from_bytes$0) : /*<>*/ runtime.caml_input_value_from_bytes (buff, ofs); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Marshal_from_bytes); + /*<>*/ return Stdlib[1].call + (null, cst_Marshal_from_bytes); /*<>*/ } function from_string(buff, ofs){ /*<>*/ return from_bytes - ( /*<>*/ caml_call1(Stdlib_Bytes[45], buff), - ofs); + (Stdlib_Bytes[45].call(null, buff), ofs); /*<>*/ } var Stdlib_Marshal = @@ -7124,6 +6931,7 @@ //# unitInfo: Provides: Stdlib__Array //# unitInfo: Requires: Stdlib, Stdlib__Seq +//# shape: Stdlib__Array:[F(2),F(3),F(3),F(2),F(1),F(3),F(1),F(4),F(5),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(3),F(2),F(2),F(3),F(3),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(1),F(1),F(1),[]] (function (globalThis){ "use strict"; @@ -7143,11 +6951,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); } /*<>*/ var global_data = runtime.caml_get_global_data(), @@ -7171,8 +6974,7 @@ function init(l, f){ /*<>*/ if(0 === l) /*<>*/ return [0]; if(0 > l) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_init); + /*<>*/ return Stdlib[1].call(null, cst_Array_init); /*<>*/ var /*<>*/ res = /*<>*/ caml_make_vect @@ -7193,8 +6995,7 @@ /*<>*/ } function make_matrix(sx, sy, init){ /*<>*/ if(sy < 0) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Array_make_matrix); + /*<>*/ Stdlib[1].call(null, cst_Array_make_matrix); /*<>*/ /*<>*/ var res = /*<>*/ caml_make_vect(sx, [0]); if(0 < sy){ @@ -7215,8 +7016,7 @@ /*<>*/ } function init_matrix(sx, sy, f){ /*<>*/ if(sy < 0) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Array_init_matrix); + /*<>*/ Stdlib[1].call(null, cst_Array_init_matrix); /*<>*/ /*<>*/ var res = /*<>*/ caml_make_vect(sx, [0]); if(0 < sy){ @@ -7271,16 +7071,14 @@ (0 <= ofs && 0 <= len && (a.length - 1 - len | 0) >= ofs) /*<>*/ return /*<>*/ caml_array_sub (a, ofs, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_sub); + /*<>*/ return Stdlib[1].call(null, cst_Array_sub); /*<>*/ } function fill(a, ofs, len, v){ /*<>*/ if (0 <= ofs && 0 <= len && (a.length - 1 - len | 0) >= ofs) /*<>*/ return /*<>*/ runtime.caml_array_fill (a, ofs, len, v); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_fill); + /*<>*/ return Stdlib[1].call(null, cst_Array_fill); /*<>*/ } function blit(a1, ofs1, a2, ofs2, len){ /*<>*/ if @@ -7292,8 +7090,7 @@ && 0 <= ofs2 && (a2.length - 1 - len | 0) >= ofs2) /*<>*/ return /*<>*/ runtime.caml_array_blit (a1, ofs1, a2, ofs2, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_blit); + /*<>*/ return Stdlib[1].call(null, cst_Array_blit); /*<>*/ } function iter(f, a){ /*<>*/ var @@ -7313,8 +7110,8 @@ /*<>*/ } function iter2(f, a, b){ /*<>*/ if(a.length - 1 !== b.length - 1) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_iter2_arrays_must_ha); + /*<>*/ return Stdlib[1].call + (null, cst_Array_iter2_arrays_must_ha); /*<>*/ var _ap_ = a.length - 2 | 0, /*<>*/ _ao_ = 0; @@ -7388,8 +7185,8 @@ la = a.length - 1, /*<>*/ lb = b.length - 1; if(la !== lb) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_map2_arrays_must_hav); + /*<>*/ return Stdlib[1].call + (null, cst_Array_map2_arrays_must_hav); if(0 === la) /*<>*/ return [0]; /*<>*/ var /*<>*/ r = @@ -7573,8 +7370,7 @@ function for_all2(p, l1, l2){ /*<>*/ var n1 = l1.length - 1, n2 = l2.length - 1; if(n1 !== n2) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_for_all2); + /*<>*/ return Stdlib[1].call(null, cst_Array_for_all2); var i = 0; /*<>*/ for(;;){ if(i === n1) /*<>*/ return 1; @@ -7588,8 +7384,7 @@ function exists2(p, l1, l2){ /*<>*/ var n1 = l1.length - 1, n2 = l2.length - 1; if(n1 !== n2) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Array_exists2); + /*<>*/ return Stdlib[1].call(null, cst_Array_exists2); var i = 0; /*<>*/ for(;;){ if(i === n1) /*<>*/ return 0; @@ -7697,8 +7492,7 @@ na = a.length - 1, /*<>*/ nb = b.length - 1; if(na !== nb) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Array_combine); + /*<>*/ Stdlib[1].call(null, cst_Array_combine); if(0 === na) /*<>*/ return [0]; /*<>*/ var /*<>*/ x = @@ -8009,8 +7803,8 @@ function of_seq(i$2){ /*<>*/ /*<>*/ var l = - /*<>*/ caml_call3 - (Stdlib_Seq[5], + Stdlib_Seq[5].call + (null, function(acc, x){ /*<>*/ return [0, x, acc]; /*<>*/ }, @@ -8087,6 +7881,7 @@ //# unitInfo: Provides: Stdlib__Float //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__List, Stdlib__Seq +//# shape: Stdlib__Float:[N,N,N,F(1),F(1),N,N,N,N,N,N,N,N,N,F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(1),N,N] (function (globalThis){ "use strict"; @@ -8114,11 +7909,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); } /*<>*/ var global_data = runtime.caml_get_global_data(), @@ -8289,7 +8079,7 @@ _au_ = (ofs + len | 0) < 0 ? 1 : 0, _as_ = _au_ || (a.length - 1 < (ofs + len | 0) ? 1 : 0); } - return _as_ ? /*<>*/ caml_call1(Stdlib[1], msg) : _as_; + return _as_ ? Stdlib[1].call(null, msg) : _as_; /*<>*/ } function make(n, v){ /*<>*/ /*<>*/ var @@ -8299,8 +8089,8 @@ /*<>*/ } function init(l, f){ /*<>*/ if(0 > l) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Float_Array_init); + /*<>*/ return Stdlib[1].call + (null, cst_Float_Array_init); /*<>*/ var /*<>*/ res = /*<>*/ caml_floatarray_create(l), @@ -8320,8 +8110,8 @@ /*<>*/ } function make_matrix(sx, sy, v){ /*<>*/ if(sy < 0) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Float_Array_make_matrix); + /*<>*/ Stdlib[1].call + (null, cst_Float_Array_make_matrix); /*<>*/ /*<>*/ var res = /*<>*/ caml_make_vect @@ -8344,8 +8134,8 @@ /*<>*/ } function init_matrix(sx, sy, f){ /*<>*/ if(sy < 0) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Float_Array_init_matrix); + /*<>*/ Stdlib[1].call + (null, cst_Float_Array_init_matrix); /*<>*/ /*<>*/ var res = /*<>*/ caml_make_vect @@ -8402,11 +8192,7 @@ tl = param[2], hd = param[1], x = hd.length - 1 + acc | 0, - acc$0 = - acc <= x - ? x - : /*<>*/ caml_call1 - (Stdlib[1], cst_Float_Array_concat); + acc$0 = acc <= x ? x : Stdlib[1].call(null, cst_Float_Array_concat); acc = acc$0; param = tl; } @@ -8460,8 +8246,8 @@ (src, sofs, dst, dofs, len); /*<>*/ } function to_list(a){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[11], + /*<>*/ return Stdlib_List[11].call + (null, a.length - 1, function(_ae_){ /*<>*/ return a[1 + _ae_];}); /*<>*/ } @@ -8469,7 +8255,7 @@ /*<>*/ var /*<>*/ result = /*<>*/ caml_floatarray_create - ( /*<>*/ caml_call1(Stdlib_List[1], l)), + (Stdlib_List[1].call(null, l)), i = 0, l$0 = l; /*<>*/ for(;;){ @@ -8499,8 +8285,8 @@ /*<>*/ } function iter2(f, a, b){ /*<>*/ if(a.length - 1 !== b.length - 1) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Float_Array_iter2_arrays_m); + /*<>*/ return Stdlib[1].call + (null, cst_Float_Array_iter2_arrays_m); /*<>*/ var _$_ = a.length - 2 | 0, /*<>*/ ___ = 0; @@ -8556,8 +8342,8 @@ la = a.length - 1, /*<>*/ lb = b.length - 1; if(la !== lb) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Float_Array_map2_arrays_mu); + /*<>*/ return Stdlib[1].call + (null, cst_Float_Array_map2_arrays_mu); /*<>*/ var /*<>*/ r = /*<>*/ caml_floatarray_create(la), @@ -9039,15 +8825,14 @@ function of_seq(i$2){ /*<>*/ var /*<>*/ l = - /*<>*/ caml_call3 - (Stdlib_Seq[5], + Stdlib_Seq[5].call + (null, function(acc, x){ /*<>*/ return [0, x, acc]; /*<>*/ }, 0, i$2), - /*<>*/ len = - /*<>*/ caml_call1(Stdlib_List[1], l), + /*<>*/ len = Stdlib_List[1].call(null, l), /*<>*/ a = /*<>*/ caml_floatarray_create(len), /*<>*/ i$1 = len - 1 | 0, @@ -9230,6 +9015,7 @@ //# unitInfo: Provides: Stdlib__Int32 //# unitInfo: Requires: Stdlib, Stdlib__Sys +//# shape: Stdlib__Int32:[N,N,N,F(2),F(2),F(1),F(1),F(1),N,N,F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(1)] (function (globalThis){ "use strict"; @@ -9265,12 +9051,12 @@ /*<>*/ return n ^ -1; /*<>*/ } var - _a_ = Stdlib_Sys[9], - _b_ = [0, "int32.ml", 69, 6], + match = Stdlib_Sys[9], + _a_ = [0, "int32.ml", 69, 6], minus_one = -1, min_int = -2147483648, max_int = 2147483647; - if(32 === _a_) + if(32 === match) /*<>*/ var /*<>*/ max_int$0 = Stdlib[19], unsigned_to_int = @@ -9282,9 +9068,9 @@ /*<>*/ return 0; /*<>*/ }; else{ - if(64 !== _a_) + if(64 !== match) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace - ([0, Assert_failure, _b_], 1); + ([0, Assert_failure, _a_], 1); var unsigned_to_int = function(n){ @@ -9298,13 +9084,13 @@ function of_string_opt(s){ /*<>*/ try{ /*<>*/ /*<>*/ var - _d_ = [0, /*<>*/ runtime.caml_int_of_string(s)]; - /*<>*/ return _d_; + _c_ = [0, /*<>*/ runtime.caml_int_of_string(s)]; + /*<>*/ return _c_; } - catch(_e_){ - var _c_ = caml_wrap_exception(_e_); - if(_c_[1] === Stdlib[7]) /*<>*/ return 0; - throw caml_maybe_attach_backtrace(_c_, 0); + catch(_d_){ + var _b_ = caml_wrap_exception(_d_); + if(_b_[1] === Stdlib[7]) /*<>*/ return 0; + throw caml_maybe_attach_backtrace(_b_, 0); } /*<>*/ } var compare = caml_int_compare, equal = runtime.caml_equal; @@ -9385,6 +9171,7 @@ //# unitInfo: Provides: Stdlib__Int64 //# unitInfo: Requires: Stdlib +//# shape: Stdlib__Int64:[N,N,N,F(2),F(2),F(1),F(1),F(1),N,N,F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(1)] (function (globalThis){ "use strict"; @@ -9548,6 +9335,7 @@ //# unitInfo: Provides: Stdlib__Nativeint //# unitInfo: Requires: Stdlib, Stdlib__Sys +//# shape: Stdlib__Nativeint:[N,N,N,F(2),F(2),F(1),F(1),F(1),N,N,N,F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(1)] (function (globalThis){ "use strict"; @@ -9695,6 +9483,7 @@ //# unitInfo: Provides: Stdlib__Lexing //# unitInfo: Requires: Stdlib, Stdlib__Bytes, Stdlib__Int, Stdlib__Sys +//# shape: Stdlib__Lexing:[N,F(2),F(2),F(2),F(2),F(2),F(1),F(1),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(3),F(3),F(2),F(2),F(3),F(3)] (function (globalThis){ "use strict"; @@ -9705,30 +9494,10 @@ caml_check_bound = runtime.caml_check_bound, caml_create_bytes = runtime.caml_create_bytes, caml_ml_bytes_length = runtime.caml_ml_bytes_length; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } /*<>*/ function caml_call2(f, a0, a1){ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var global_data = runtime.caml_get_global_data(), @@ -9783,8 +9552,8 @@ if (((lexbuf[3] - lexbuf[5] | 0) + n | 0) <= caml_ml_bytes_length(lexbuf[2])) - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[11], + /*<>*/ Stdlib_Bytes[11].call + (null, lexbuf[2], lexbuf[5], lexbuf[2], @@ -9793,17 +9562,17 @@ else{ /*<>*/ /*<>*/ var newlen = - /*<>*/ caml_call2 - (Stdlib_Int[10], + Stdlib_Int[10].call + (null, 2 * caml_ml_bytes_length(lexbuf[2]) | 0, Stdlib_Sys[12]); if(newlen < ((lexbuf[3] - lexbuf[5] | 0) + n | 0)) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[2], cst_Lexing_lex_refill_cannot_g); + /*<>*/ Stdlib[2].call + (null, cst_Lexing_lex_refill_cannot_g); /*<>*/ /*<>*/ var newbuf = /*<>*/ caml_create_bytes(newlen); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[11], + /*<>*/ Stdlib_Bytes[11].call + (null, lexbuf[2], lexbuf[5], newbuf, @@ -9832,8 +9601,8 @@ } } } - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[11], aux_buffer, 0, lexbuf[2], lexbuf[3], n); + /*<>*/ Stdlib_Bytes[11].call + (null, aux_buffer, 0, lexbuf[2], lexbuf[3], n); lexbuf[3] = lexbuf[3] + n | 0; return 0; }, @@ -9853,8 +9622,8 @@ /*<>*/ return from_function (with_positions, function(buf, n){ - /*<>*/ return /*<>*/ caml_call4 - (Stdlib[84], ic, buf, 0, n); + /*<>*/ return Stdlib[84].call + (null, ic, buf, 0, n); /*<>*/ }); /*<>*/ } function from_string(opt, s){ @@ -9867,7 +9636,7 @@ /*<>*/ lexbuf[9] = 1; return 0; /*<>*/ }, - /*<>*/ caml_call1(Stdlib_Bytes[5], s), + Stdlib_Bytes[5].call(null, s), runtime.caml_ml_string_length(s), 0, 0, @@ -9895,20 +9664,19 @@ /*<>*/ } function lexeme(lexbuf){ /*<>*/ var len = lexbuf[6] - lexbuf[5] | 0; - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[8], lexbuf[2], lexbuf[5], len); + /*<>*/ return Stdlib_Bytes[8].call + (null, lexbuf[2], lexbuf[5], len); /*<>*/ } function sub_lexeme(lexbuf, i1, i2){ /*<>*/ var len = i2 - i1 | 0; - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[8], lexbuf[2], i1, len); + /*<>*/ return Stdlib_Bytes[8].call + (null, lexbuf[2], i1, len); /*<>*/ } function sub_lexeme_opt(lexbuf, i1, i2){ /*<>*/ if(0 > i1) /*<>*/ return 0; var len = i2 - i1 | 0; /*<>*/ return [0, - /*<>*/ caml_call3 - (Stdlib_Bytes[8], lexbuf[2], i1, len)]; + Stdlib_Bytes[8].call(null, lexbuf[2], i1, len)]; /*<>*/ } function sub_lexeme_char(lexbuf, i){ /*<>*/ return /*<>*/ caml_bytes_get @@ -9985,6 +9753,7 @@ //# unitInfo: Provides: Stdlib__Parsing //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__Lexing, Stdlib__Obj +//# shape: Stdlib__Parsing:[F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),N,F(1),N,F(4),F(2),F(1),F(1)] (function (globalThis){ "use strict"; @@ -9999,16 +9768,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } /*<>*/ var undef = undefined, @@ -10050,24 +9809,23 @@ /*<>*/ caml_make_vect(newsize, Stdlib_Lexing[1]), /*<>*/ new_end = /*<>*/ caml_make_vect(newsize, Stdlib_Lexing[1]); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], env[1], 0, new_s, 0, oldsize); + /*<>*/ Stdlib_Array[9].call + (null, env[1], 0, new_s, 0, oldsize); env[1] = new_s; - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], env[2], 0, new_v, 0, oldsize); + /*<>*/ Stdlib_Array[9].call + (null, env[2], 0, new_v, 0, oldsize); env[2] = new_v; - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], env[3], 0, new_start, 0, oldsize); + /*<>*/ Stdlib_Array[9].call + (null, env[3], 0, new_start, 0, oldsize); env[3] = new_start; - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], env[4], 0, new_end, 0, oldsize); + /*<>*/ Stdlib_Array[9].call + (null, env[4], 0, new_end, 0, oldsize); env[4] = new_end; env[5] = newsize; return; /*<>*/ } function clear_parser(param){ - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Array[8], env[2], 0, env[5], 0); + /*<>*/ Stdlib_Array[8].call(null, env[2], 0, env[5], 0); env[8] = 0; return 0; /*<>*/ } @@ -10154,8 +9912,7 @@ } current_lookahead_fun[1] = function(tok){ - /*<>*/ if - (! /*<>*/ caml_call1(Stdlib_Obj[1], tok)) + /*<>*/ if(! Stdlib_Obj[1].call(null, tok)) /*<>*/ return caml_check_bound(tables[2], tok) [1 + tok] === curr_char @@ -10254,6 +10011,7 @@ //# unitInfo: Provides: Stdlib__Set //# unitInfo: Requires: Stdlib, Stdlib__List, Stdlib__Seq +//# shape: Stdlib__Set:[F(1)] (function (globalThis){ "use strict"; @@ -10270,11 +10028,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); } var global_data = runtime.caml_get_global_data(), @@ -10312,8 +10065,7 @@ var hr = 0; if((hr + 2 | 0) < hl){ if(! l) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Set_bal$0); + /*<>*/ return Stdlib[1].call(null, cst_Set_bal$0); /*<>*/ var lr = l[3], lv = l[2], @@ -10322,8 +10074,7 @@ if(_T_ <= height(ll)) /*<>*/ return create(ll, lv, create(lr, v, r)); if(! lr) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Set_bal); + /*<>*/ return Stdlib[1].call(null, cst_Set_bal); /*<>*/ var lrr = lr[3], lrv = lr[2], @@ -10336,8 +10087,7 @@ /*<>*/ return [0, l, v, r, _X_]; } if(! r) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Set_bal$2); + /*<>*/ return Stdlib[1].call(null, cst_Set_bal$2); /*<>*/ var rr = r[3], rv = r[2], @@ -10346,8 +10096,7 @@ if(_V_ <= height(rr)) /*<>*/ return create(create(l, v, rl), rv, rr); if(! rl) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Set_bal$1); + /*<>*/ return Stdlib[1].call(null, cst_Set_bal$1); /*<>*/ var rlr = rl[3], rlv = rl[2], @@ -10454,8 +10203,8 @@ /*<>*/ } function remove_min_elt(param){ /*<>*/ if(! param) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Set_remove_min_elt); + /*<>*/ return Stdlib[1].call + (null, cst_Set_remove_min_elt); var l = param[1]; if(l){ var r = param[3], v = param[2]; @@ -11053,8 +10802,7 @@ (x3, add(x2, add(x1, singleton(x0)))); if(_q_[2]){ /*<>*/ var - /*<>*/ l$0 = - /*<>*/ caml_call2(Stdlib_List[62], Ord[1], l), + /*<>*/ l$0 = Stdlib_List[62].call(null, Ord[1], l), sub = function(n, l){ /*<>*/ if(3 >= n >>> 0) @@ -11113,8 +10861,7 @@ /*<>*/ return [0, create(left, mid, right), l$2]; /*<>*/ }; /*<>*/ return sub - ( /*<>*/ caml_call1(Stdlib_List[1], l$0), - l$0) + (Stdlib_List[1].call(null, l$0), l$0) [1]; } var x4 = _q_[1]; @@ -11122,8 +10869,8 @@ (x4, add(x3, add(x2, add(x1, singleton(x0))))); /*<>*/ } function add_seq(i, m){ - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Seq[5], + /*<>*/ return Stdlib_Seq[5].call + (null, function(s, x){ /*<>*/ return add(x, s); /*<>*/ }, @@ -11264,6 +11011,7 @@ //# unitInfo: Provides: Stdlib__Map //# unitInfo: Requires: Stdlib, Stdlib__List, Stdlib__Seq +//# shape: Stdlib__Map:[F(1)] (function (globalThis){ "use strict"; @@ -11323,8 +11071,7 @@ /*<>*/ if(r) var h$0 = r[5], hr = h$0; else var hr = 0; if((hr + 2 | 0) < hl){ if(! l) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Map_bal$0); + /*<>*/ return Stdlib[1].call(null, cst_Map_bal$0); /*<>*/ var lr = l[4], ld = l[3], @@ -11335,8 +11082,7 @@ /*<>*/ return create (ll, lv, ld, create(lr, x, d, r)); if(! lr) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Map_bal); + /*<>*/ return Stdlib[1].call(null, cst_Map_bal); /*<>*/ var lrr = lr[4], lrd = lr[3], @@ -11351,8 +11097,7 @@ /*<>*/ return [0, l, x, d, r, _J_]; } if(! r) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Map_bal$2); + /*<>*/ return Stdlib[1].call(null, cst_Map_bal$2); /*<>*/ var rr = r[4], rd = r[3], @@ -11363,8 +11108,7 @@ /*<>*/ return create (create(l, x, d, rl), rv, rd, rr); if(! rl) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Map_bal$1); + /*<>*/ return Stdlib[1].call(null, cst_Map_bal$1); /*<>*/ var rlr = rl[4], rld = rl[3], @@ -11609,8 +11353,8 @@ /*<>*/ } function remove_min_binding(param){ /*<>*/ if(! param) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Map_remove_min_elt); + /*<>*/ return Stdlib[1].call + (null, cst_Map_remove_min_elt); var l = param[1]; if(l){ var r = param[4], d = param[3], v = param[2]; @@ -12113,8 +11857,8 @@ /*<>*/ return bindings_aux(0, s); /*<>*/ } function of_list(bs){ - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_List[26], + /*<>*/ return Stdlib_List[26].call + (null, function(m, param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return add(k, v, m); @@ -12123,8 +11867,8 @@ bs); /*<>*/ } function add_seq(i, m){ - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Seq[5], + /*<>*/ return Stdlib_Seq[5].call + (null, function(m, param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return add(k, v, m); @@ -12270,28 +12014,13 @@ //# unitInfo: Provides: Stdlib__Stack //# unitInfo: Requires: Stdlib__List, Stdlib__Seq +//# shape: Stdlib__Stack:[N,F(1),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(3),F(1),F(2),F(1)] (function (globalThis){ "use strict"; - var - runtime = globalThis.jsoo_runtime, - caml_maybe_attach_backtrace = runtime.caml_maybe_attach_backtrace; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } /*<>*/ var + runtime = globalThis.jsoo_runtime, + caml_maybe_attach_backtrace = runtime.caml_maybe_attach_backtrace, global_data = runtime.caml_get_global_data(), Stdlib_Seq = global_data.Stdlib__Seq, Stdlib_List = global_data.Stdlib__List, @@ -12362,17 +12091,17 @@ /*<>*/ return s[2]; /*<>*/ } function iter(f, s){ - /*<>*/ return caml_call2(Stdlib_List[18], f, s[1]); + /*<>*/ return Stdlib_List[18].call(null, f, s[1]); /*<>*/ } function fold(f, acc, s){ - /*<>*/ return caml_call3(Stdlib_List[26], f, acc, s[1]); + /*<>*/ return Stdlib_List[26].call(null, f, acc, s[1]); /*<>*/ } function to_seq(s){ - /*<>*/ return caml_call1(Stdlib_List[64], s[1]); + /*<>*/ return Stdlib_List[64].call(null, s[1]); /*<>*/ } function add_seq(q, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(x){ /*<>*/ return push(x, q); /*<>*/ }, @@ -12410,6 +12139,7 @@ //# unitInfo: Provides: Stdlib__Queue //# unitInfo: Requires: Stdlib__Seq +//# shape: Stdlib__Queue:[N,F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(3),F(2),F(1),F(2),F(1)] (function (globalThis){ "use strict"; @@ -12564,8 +12294,8 @@ /*<>*/ return aux(_a_, _b_);}; /*<>*/ } function add_seq(q, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(x){ /*<>*/ return add(x, q); /*<>*/ }, @@ -12606,6 +12336,7 @@ //# unitInfo: Provides: Stdlib__Buffer //# unitInfo: Requires: Stdlib, Stdlib__Bytes, Stdlib__Seq, Stdlib__String, Stdlib__Sys +//# shape: Stdlib__Buffer:[F(1),F(1),F(1),F(3),F(5),F(2),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(4),F(4),F(3),F(2),F(3),F(1),F(1),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2)] (function (globalThis){ "use strict"; @@ -12631,26 +12362,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var undef = undefined, @@ -12674,20 +12385,19 @@ /*<>*/ return [0, [0, s, n$1], 0, s]; /*<>*/ } function contents(b){ - /*<>*/ return caml_call3 - (Stdlib_Bytes[8], b[1][1], 0, b[2]); + /*<>*/ return Stdlib_Bytes[8].call + (null, b[1][1], 0, b[2]); /*<>*/ } function to_bytes(b){ - /*<>*/ return caml_call3 - (Stdlib_Bytes[7], b[1][1], 0, b[2]); + /*<>*/ return Stdlib_Bytes[7].call + (null, b[1][1], 0, b[2]); /*<>*/ } function sub(b, ofs, len){ /*<>*/ if (0 <= ofs && 0 <= len && (b[2] - len | 0) >= ofs) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[8], b[1][1], ofs, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Buffer_sub); + /*<>*/ return Stdlib_Bytes[8].call + (null, b[1][1], ofs, len); + /*<>*/ return Stdlib[1].call(null, cst_Buffer_sub); /*<>*/ } function blit(src, srcoff, dst, dstoff, len){ /*<>*/ if @@ -12697,10 +12407,9 @@ && (src[2] - len | 0) >= srcoff && 0 <= dstoff && (caml_ml_bytes_length(dst) - len | 0) >= dstoff) - /*<>*/ return /*<>*/ caml_call5 - (Stdlib_Bytes[11], src[1][1], srcoff, dst, dstoff, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Buffer_blit); + /*<>*/ return Stdlib_Bytes[11].call + (null, src[1][1], srcoff, dst, dstoff, len); + /*<>*/ return Stdlib[1].call(null, cst_Buffer_blit); /*<>*/ } function nth(b, ofs){ /*<>*/ var @@ -12710,8 +12419,7 @@ buffer = match[1]; if(0 <= ofs && position > ofs && length >= position) return runtime.caml_bytes_unsafe_get(buffer, ofs); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Buffer_nth); + /*<>*/ return Stdlib[1].call(null, cst_Buffer_nth); /*<>*/ } function length(b){ /*<>*/ return b[2]; @@ -12740,12 +12448,12 @@ if((old_pos + more | 0) <= Stdlib_Sys[12]) new_len[1] = Stdlib_Sys[12]; else - /*<>*/ /*<>*/ caml_call1 - (Stdlib[2], cst_Buffer_add_cannot_grow_buf); + /*<>*/ Stdlib[2].call + (null, cst_Buffer_add_cannot_grow_buf); /*<>*/ /*<>*/ var new_buffer = /*<>*/ caml_create_bytes(new_len[1]); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[11], b[1][1], 0, new_buffer, 0, b[2]); + /*<>*/ Stdlib_Bytes[11].call + (null, b[1][1], 0, new_buffer, 0, b[2]); b[1] = [0, new_buffer, new_len[1]]; return; /*<>*/ } @@ -12778,9 +12486,7 @@ if(b[1][2] <= pos) /*<>*/ resize(b, uchar_utf_8_byte_length_max); /*<>*/ /*<>*/ var - n = - /*<>*/ caml_call3 - (Stdlib_Bytes[51], b[1][1], pos, u); + n = Stdlib_Bytes[51].call(null, b[1][1], pos, u); /*<>*/ if(0 !== n){b[2] = pos + n | 0; return 0;} /*<>*/ resize(b, uchar_utf_8_byte_length_max); } @@ -12791,9 +12497,7 @@ if(b[1][2] <= pos) /*<>*/ resize(b, uchar_utf_16_byte_length_max); /*<>*/ /*<>*/ var - n = - /*<>*/ caml_call3 - (Stdlib_Bytes[54], b[1][1], pos, u); + n = Stdlib_Bytes[54].call(null, b[1][1], pos, u); /*<>*/ if(0 !== n){b[2] = pos + n | 0; return 0;} /*<>*/ resize(b, uchar_utf_16_byte_length_max); } @@ -12804,9 +12508,7 @@ if(b[1][2] <= pos) /*<>*/ resize(b, uchar_utf_16_byte_length_max); /*<>*/ /*<>*/ var - n = - /*<>*/ caml_call3 - (Stdlib_Bytes[57], b[1][1], pos, u); + n = Stdlib_Bytes[57].call(null, b[1][1], pos, u); /*<>*/ if(0 !== n){b[2] = pos + n | 0; return 0;} /*<>*/ resize(b, uchar_utf_16_byte_length_max); } @@ -12820,8 +12522,8 @@ _u_ = len < 0 ? 1 : 0, _t_ = _u_ || ((caml_ml_string_length(s) - len | 0) < offset ? 1 : 0); if(_t_) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Buffer_add_substring_add_s); + /*<>*/ Stdlib[1].call + (null, cst_Buffer_add_substring_add_s); /*<>*/ var position = b[2], /*<>*/ match = b[1], @@ -12830,8 +12532,8 @@ new_position = position + len | 0; if(length < new_position){ /*<>*/ resize(b, len); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[12], s, offset, b[1][1], b[2], len); + /*<>*/ Stdlib_Bytes[12].call + (null, s, offset, b[1][1], b[2], len); } else /*<>*/ /*<>*/ caml_blit_string @@ -12841,10 +12543,7 @@ /*<>*/ } function add_subbytes(b, s, offset, len){ /*<>*/ return add_substring - (b, - /*<>*/ caml_call1(Stdlib_Bytes[44], s), - offset, - len); + (b, Stdlib_Bytes[44].call(null, s), offset, len); /*<>*/ } function add_string(b, s){ /*<>*/ var @@ -12856,8 +12555,8 @@ new_position = position + len | 0; if(length < new_position){ /*<>*/ resize(b, len); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[12], s, 0, b[1][1], b[2], len); + /*<>*/ Stdlib_Bytes[12].call + (null, s, 0, b[1][1], b[2], len); } else /*<>*/ /*<>*/ caml_blit_string @@ -12867,7 +12566,7 @@ /*<>*/ } function add_bytes(b, s){ /*<>*/ return add_string - (b, /*<>*/ caml_call1(Stdlib_Bytes[44], s)); + (b, Stdlib_Bytes[44].call(null, s)); /*<>*/ } function add_buffer(b, bs){ /*<>*/ return add_subbytes(b, bs[1][1], 0, bs[2]); @@ -12877,8 +12576,7 @@ _q_ = to_read$1 < 0 ? 1 : 0, _r_ = _q_ || (Stdlib_Sys[12] < to_read$1 ? 1 : 0); if(_r_) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Buffer_add_channel); + /*<>*/ Stdlib[1].call(null, cst_Buffer_add_channel); if(b[1][2] < (b[2] + to_read$1 | 0)) /*<>*/ resize(b, to_read$1); var @@ -12890,9 +12588,7 @@ /*<>*/ for(;;){ if(0 !== to_read){ /*<>*/ /*<>*/ var - r = - /*<>*/ caml_call4 - (Stdlib[84], ic, buf, ofs, to_read); + r = Stdlib[84].call(null, ic, buf, ofs, to_read); /*<>*/ if(0 !== r){ var already_read$0 = already_read + r | 0, @@ -12912,8 +12608,8 @@ } /*<>*/ } function output_buffer(oc, b){ - /*<>*/ return caml_call4 - (Stdlib[68], oc, b[1][1], 0, b[2]); + /*<>*/ return Stdlib[68].call + (null, oc, b[1][1], 0, b[2]); /*<>*/ } function add_substitute(b, f, s){ /*<>*/ var @@ -12985,8 +12681,7 @@ var val = [0, - /*<>*/ caml_call3 - (Stdlib_String[16], s, start, stop$0 - start | 0), + Stdlib_String[16].call(null, s, start, stop$0 - start | 0), stop$0]; break a; } @@ -13019,8 +12714,8 @@ var val = [0, - /*<>*/ caml_call3 - (Stdlib_String[16], s, new_start, (stop - start | 0) - 1 | 0), + Stdlib_String[16].call + (null, s, new_start, (stop - start | 0) - 1 | 0), stop + 1 | 0]; } } @@ -13050,8 +12745,7 @@ /*<>*/ } function truncate(b, len){ /*<>*/ if(0 <= len && b[2] >= len){b[2] = len; return 0;} - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Buffer_truncate); + /*<>*/ return Stdlib[1].call(null, cst_Buffer_truncate); /*<>*/ } function to_seq(b){ function aux(i, param){ @@ -13086,10 +12780,8 @@ /*<>*/ return aux(_f_, _g_);}; /*<>*/ } function add_seq(b, seq){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], - function(_e_){ /*<>*/ return add_char(b, _e_);}, - seq); + /*<>*/ return Stdlib_Seq[4].call + (null, function(_e_){ /*<>*/ return add_char(b, _e_);}, seq); /*<>*/ } function of_seq(i){ /*<>*/ /*<>*/ var b = create(32); @@ -13244,7 +12936,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Mutex -(function(globalThis){ +//# shape: Stdlib__Mutex:[F(1),F(1),F(1),F(1),F(2)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, @@ -13286,7 +12980,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__Condition -(function(globalThis){ +//# shape: Stdlib__Condition:[F(1),F(2),F(1),F(1)] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, @@ -13303,23 +12999,13 @@ //# unitInfo: Provides: Stdlib__Semaphore //# unitInfo: Requires: Stdlib, Stdlib__Condition, Stdlib__Mutex +//# shape: Stdlib__Semaphore:[[F(1),F(1),F(1),F(1),F(1)],[F(1),F(1),F(1),F(1)]] (function (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, - caml_maybe_attach_backtrace = runtime.caml_maybe_attach_backtrace; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - var + caml_maybe_attach_backtrace = runtime.caml_maybe_attach_backtrace, global_data = runtime.caml_get_global_data(), Stdlib_Mutex = global_data.Stdlib__Mutex, Stdlib_Condition = global_data.Stdlib__Condition, @@ -13329,47 +13015,40 @@ cst_Semaphore_Counting_release = "Semaphore.Counting.release: overflow"; function make(v){ /*<>*/ if(v < 0) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Semaphore_Counting_init_wr); + /*<>*/ Stdlib[1].call + (null, cst_Semaphore_Counting_init_wr); /*<>*/ /*<>*/ var - _c_ = /*<>*/ caml_call1(Stdlib_Condition[1], 0); + _c_ = Stdlib_Condition[1].call(null, 0); /*<>*/ return [0, - /*<>*/ caml_call1(Stdlib_Mutex[1], 0), + Stdlib_Mutex[1].call(null, 0), v, _c_]; /*<>*/ } function release(s){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[2], s[1]); + /*<>*/ Stdlib_Mutex[2].call(null, s[1]); if(s[2] < Stdlib[19]){ s[2] = s[2] + 1 | 0; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Condition[3], s[3]); - return caml_call1(Stdlib_Mutex[4], s[1]); + /*<>*/ Stdlib_Condition[3].call(null, s[3]); + return Stdlib_Mutex[4].call(null, s[1]); } - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[4], s[1]); + /*<>*/ Stdlib_Mutex[4].call(null, s[1]); /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace ([0, Stdlib[11], cst_Semaphore_Counting_release], 1); /*<>*/ } function acquire(s){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[2], s[1]); + /*<>*/ Stdlib_Mutex[2].call(null, s[1]); /*<>*/ for(;;){ if(0 !== s[2]){ s[2] = s[2] - 1 | 0; - return caml_call1(Stdlib_Mutex[4], s[1]); + return Stdlib_Mutex[4].call(null, s[1]); } - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Condition[2], s[3], s[1]); + /*<>*/ Stdlib_Condition[2].call(null, s[3], s[1]); } /*<>*/ } function try_acquire(s){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[2], s[1]); + /*<>*/ Stdlib_Mutex[2].call(null, s[1]); var ret = 0 === s[2] ? 0 : (s[2] = s[2] - 1 | 0, 1); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[4], s[1]); + /*<>*/ Stdlib_Mutex[4].call(null, s[1]); /*<>*/ return ret; /*<>*/ } function get_value(s){ @@ -13379,37 +13058,30 @@ Counting = [0, make, release, acquire, try_acquire, get_value]; function make$0(b){ /*<>*/ var - /*<>*/ _a_ = - /*<>*/ caml_call1(Stdlib_Condition[1], 0), + /*<>*/ _a_ = Stdlib_Condition[1].call(null, 0), _b_ = b ? 1 : 0; /*<>*/ return [0, - /*<>*/ caml_call1(Stdlib_Mutex[1], 0), + Stdlib_Mutex[1].call(null, 0), _b_, _a_]; /*<>*/ } function release$0(s){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[2], s[1]); + /*<>*/ Stdlib_Mutex[2].call(null, s[1]); s[2] = 1; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Condition[3], s[3]); - return caml_call1(Stdlib_Mutex[4], s[1]); + /*<>*/ Stdlib_Condition[3].call(null, s[3]); + return Stdlib_Mutex[4].call(null, s[1]); /*<>*/ } function acquire$0(s){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[2], s[1]); + /*<>*/ Stdlib_Mutex[2].call(null, s[1]); /*<>*/ for(;;){ - if(0 !== s[2]){s[2] = 0; return caml_call1(Stdlib_Mutex[4], s[1]);} - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Condition[2], s[3], s[1]); + if(0 !== s[2]){s[2] = 0; return Stdlib_Mutex[4].call(null, s[1]);} + /*<>*/ Stdlib_Condition[2].call(null, s[3], s[1]); } /*<>*/ } function try_acquire$0(s){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[2], s[1]); + /*<>*/ Stdlib_Mutex[2].call(null, s[1]); var ret = 0 === s[2] ? 0 : (s[2] = 0, 1); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Mutex[4], s[1]); + /*<>*/ Stdlib_Mutex[4].call(null, s[1]); /*<>*/ return ret; /*<>*/ } /*<>*/ var @@ -13423,6 +13095,7 @@ //# unitInfo: Provides: Stdlib__Domain //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__Atomic, Stdlib__Condition, Stdlib__List, Stdlib__Mutex +//# shape: Stdlib__Domain:[F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),N] (function (globalThis){ "use strict"; @@ -13438,21 +13111,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var undef = undefined, @@ -13478,15 +13136,13 @@ /*<>*/ } /*<>*/ create_dls(0); /*<>*/ var - /*<>*/ key_counter = - /*<>*/ caml_call1(Stdlib_Atomic[1], 0), - /*<>*/ parent_keys = - /*<>*/ caml_call1(Stdlib_Atomic[1], 0), + /*<>*/ key_counter = Stdlib_Atomic[1].call(null, 0), + /*<>*/ parent_keys = Stdlib_Atomic[1].call(null, 0), _a_ = [0, "domain.ml", 184, 13]; function new_key(split_from_parent, init_orphan){ /*<>*/ var /*<>*/ idx = - /*<>*/ caml_call2(Stdlib_Atomic[7], key_counter, 1), + Stdlib_Atomic[7].call(null, key_counter, 1), /*<>*/ k = [0, idx, init_orphan]; /*<>*/ if(split_from_parent){ /*<>*/ var @@ -13494,13 +13150,8 @@ /*<>*/ ki = [0, k, split]; /*<>*/ for(;;){ /*<>*/ /*<>*/ var - l = /*<>*/ caml_call1(Stdlib_Atomic[3], parent_keys); - if - (! - (1 - - - /*<>*/ caml_call3 - (Stdlib_Atomic[6], parent_keys, l, [0, ki, l]))) + l = Stdlib_Atomic[3].call(null, parent_keys); + if(! (1 - Stdlib_Atomic[6].call(null, parent_keys, l, [0, ki, l]))) break; } } @@ -13520,8 +13171,7 @@ } /*<>*/ /*<>*/ var new_st = /*<>*/ caml_make_vect(new_sz, none); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], st, 0, new_st, 0, sz); + /*<>*/ Stdlib_Array[9].call(null, st, 0, new_st, 0, sz); /*<>*/ if ( /*<>*/ runtime.caml_domain_dls_compare_and_set (st, new_st)) @@ -13574,7 +13224,7 @@ /*<>*/ } /*<>*/ var /*<>*/ first_domain_spawned = - /*<>*/ caml_call1(Stdlib_Atomic[1], 0), + Stdlib_Atomic[1].call(null, 0), /*<>*/ first_spawn_function = [0, function(param){ @@ -13583,8 +13233,7 @@ cst_first_domain_already_spawn = "first domain already spawned"; function before_first_spawn(f){ /*<>*/ if - ( /*<>*/ caml_call1 - (Stdlib_Atomic[3], first_domain_spawned)) + (Stdlib_Atomic[3].call(null, first_domain_spawned)) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace ([0, Stdlib[6], cst_first_domain_already_spawn], 1); var old_f = first_spawn_function[1]; @@ -13622,12 +13271,9 @@ Stdlib[104][1] = do_at_exit; function spawn(f){ /*<>*/ if - (1 - - - /*<>*/ caml_call1 - (Stdlib_Atomic[3], first_domain_spawned)){ - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Atomic[4], first_domain_spawned, 1); + (1 - Stdlib_Atomic[3].call(null, first_domain_spawned)){ + /*<>*/ Stdlib_Atomic[4].call + (null, first_domain_spawned, 1); /*<>*/ /*<>*/ caml_call1 (first_spawn_function[1], 0); first_spawn_function[1] = @@ -13636,11 +13282,10 @@ /*<>*/ }; } /*<>*/ var - /*<>*/ _b_ = - /*<>*/ caml_call1(Stdlib_Atomic[3], parent_keys), + /*<>*/ _b_ = Stdlib_Atomic[3].call(null, parent_keys), /*<>*/ pk = - /*<>*/ caml_call2 - (Stdlib_List[20], + Stdlib_List[20].call + (null, function(param){ /*<>*/ var split = param[2], k = param[1]; /*<>*/ return [0, @@ -13648,15 +13293,14 @@ /*<>*/ caml_call1(split, get(k))]; /*<>*/ }, _b_), - /*<>*/ _c_ = - /*<>*/ caml_call1(Stdlib_Condition[1], 0), + /*<>*/ _c_ = Stdlib_Condition[1].call(null, 0), /*<>*/ term_sync = - [0, 0, /*<>*/ caml_call1(Stdlib_Mutex[1], 0), _c_]; + [0, 0, Stdlib_Mutex[1].call(null, 0), _c_]; function body(param){ /*<>*/ try{ /*<>*/ create_dls(0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_List[18], + /*<>*/ Stdlib_List[18].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return set(k, v); @@ -13686,14 +13330,12 @@ /*<>*/ for(;;){ var match = term_sync[1]; if(match){var res = match[1]; /*<>*/ return res;} - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Condition[2], term_sync[3], term_sync[2]); + /*<>*/ Stdlib_Condition[2].call + (null, term_sync[3], term_sync[2]); } /*<>*/ } /*<>*/ /*<>*/ var - match = - /*<>*/ caml_call2 - (Stdlib_Mutex[5], term_sync[2], loop); + match = Stdlib_Mutex[5].call(null, term_sync[2], loop); if(0 === match[0]){var x = match[1]; /*<>*/ return x;} var ex = match[1]; /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace @@ -13720,6 +13362,7 @@ //# unitInfo: Provides: CamlinternalFormat //# unitInfo: Requires: CamlinternalFormatBasics, Stdlib, Stdlib__Buffer, Stdlib__Bytes, Stdlib__Char, Stdlib__Int, Stdlib__String, Stdlib__Sys +//# shape: CamlinternalFormat:[F(2),F(1),F(1),F(2),F(1),F(2),F(3),F(3),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2)] (function (globalThis){ "use strict"; @@ -13870,8 +13513,8 @@ _p_ = [0, cst_camlinternalFormat_ml, 826, 22], _q_ = [0, cst_camlinternalFormat_ml, 831, 30]; function create_char_set(param){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Bytes[1], 32, 0); + /*<>*/ return Stdlib_Bytes[1].call + (null, 32, 0); /*<>*/ } function add_in_char_set(char_set, c){ /*<>*/ var @@ -13882,13 +13525,11 @@ (char_set, str_ind) | mask; /*<>*/ return /*<>*/ caml_bytes_set - (char_set, - str_ind, - /*<>*/ caml_call1(Stdlib[29], _cU_)); + (char_set, str_ind, Stdlib[29].call(null, _cU_)); /*<>*/ } function freeze_char_set(char_set){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[6], char_set); + /*<>*/ return Stdlib_Bytes[6].call + (null, char_set); /*<>*/ } function rev_char_set(char_set){ /*<>*/ var @@ -13900,14 +13541,12 @@ /*<>*/ caml_string_get(char_set, i) ^ 255; /*<>*/ /*<>*/ caml_bytes_set - (char_set$0, - i, - /*<>*/ caml_call1(Stdlib[29], _cS_)); + (char_set$0, i, Stdlib[29].call(null, _cS_)); /*<>*/ /*<>*/ var _cT_ = i + 1 | 0; if(31 === i) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], char_set$0); + /*<>*/ return Stdlib_Bytes[44].call + (null, char_set$0); i = _cT_; } /*<>*/ } @@ -14009,12 +13648,11 @@ if(len < min_len){ /*<>*/ var /*<>*/ new_len = - /*<>*/ caml_call2 - (Stdlib_Int[11], len * 2 | 0, min_len), + Stdlib_Int[11].call(null, len * 2 | 0, min_len), /*<>*/ new_str = /*<>*/ caml_create_bytes(new_len); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[11], buf[2], 0, new_str, 0, len); + /*<>*/ Stdlib_Bytes[11].call + (null, buf[2], 0, new_str, 0, len); buf[2] = new_str; } return; @@ -14030,14 +13668,14 @@ /*<>*/ var str_len = caml_ml_string_length(s); /*<>*/ buffer_check_size(buf, str_len); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], s, 0, buf[2], buf[1], str_len); + /*<>*/ Stdlib_String[6].call + (null, s, 0, buf[2], buf[1], str_len); buf[1] = buf[1] + str_len | 0; return; /*<>*/ } function buffer_contents(buf){ - /*<>*/ return caml_call3 - (Stdlib_Bytes[8], buf[2], 0, buf[1]); + /*<>*/ return Stdlib_Bytes[8].call + (null, buf[2], 0, buf[1]); /*<>*/ } function char_of_iconv(iconv){ /*<>*/ switch(iconv){ @@ -14103,9 +13741,7 @@ /*<>*/ return; var width = pad_opt[1]; /*<>*/ return buffer_add_string - (buf, - /*<>*/ caml_call1 - (Stdlib_Int[12], width)); + (buf, Stdlib_Int[12].call(null, width)); /*<>*/ } function bprint_padding(buf, pad){ /*<>*/ if(typeof pad === "number") @@ -14114,9 +13750,7 @@ var n = pad[2], padty = pad[1]; /*<>*/ bprint_padty(buf, padty); /*<>*/ return buffer_add_string - (buf, - /*<>*/ caml_call1 - (Stdlib_Int[12], n)); + (buf, Stdlib_Int[12].call(null, n)); } var padty$0 = pad[1]; /*<>*/ bprint_padty(buf, padty$0); @@ -14127,9 +13761,7 @@ var n = prec[1]; /*<>*/ buffer_add_char(buf, 46); /*<>*/ return buffer_add_string - (buf, - /*<>*/ caml_call1 - (Stdlib_Int[12], n)); + (buf, Stdlib_Int[12].call(null, n)); } if(prec) /*<>*/ return buffer_add_string(buf, cst); @@ -14203,10 +13835,9 @@ /*<>*/ var c = formatting_lit[1], /*<>*/ _cQ_ = - /*<>*/ caml_call2 - (Stdlib_String[1], 1, c); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], cst$7, _cQ_); + Stdlib_String[1].call(null, 1, c); + /*<>*/ return Stdlib[28].call + (null, cst$7, _cQ_); } /*<>*/ } function bprint_char_literal(buf, chr){ @@ -14547,9 +14178,7 @@ print_char = function(buf, i){ /*<>*/ /*<>*/ var - c = - /*<>*/ caml_call1 - (Stdlib[29], i); + c = Stdlib[29].call(null, i); return 37 === c ? (buffer_add_char(buf, 37), buffer_add_char(buf, 37)) : 64 @@ -14569,11 +14198,9 @@ function(c){ /*<>*/ var /*<>*/ after = - /*<>*/ caml_call1 - (Stdlib_Char[1], c + 1 | 0), + Stdlib_Char[1].call(null, c + 1 | 0), /*<>*/ before = - /*<>*/ caml_call1 - (Stdlib_Char[1], c - 1 | 0), + Stdlib_Char[1].call(null, c - 1 | 0), /*<>*/ _cJ_ = is_in_char_set(set$0, c); /*<>*/ if(_cJ_) @@ -14600,16 +14227,9 @@ /*<>*/ for(;;){ if(i >= 256) break; /*<>*/ if - (is_in_char_set - (set, - /*<>*/ caml_call1 - (Stdlib[29], i))){ + (is_in_char_set(set, Stdlib[29].call(null, i))){ /*<>*/ /*<>*/ var - switcher = - /*<>*/ caml_call1 - (Stdlib[29], i) - - 45 - | 0; + switcher = Stdlib[29].call(null, i) - 45 | 0; if(48 < switcher >>> 0){ if(210 <= switcher) break d; } @@ -14622,27 +14242,15 @@ /*<>*/ /*<>*/ var i$1 = i + 1 | 0; /*<>*/ if - (is_in_char_set - (set, - /*<>*/ caml_call1 - (Stdlib[29], i$1))){ + (is_in_char_set(set, Stdlib[29].call(null, i$1))){ /*<>*/ /*<>*/ var - switcher$0 = - /*<>*/ caml_call1 - (Stdlib[29], i$1) - - 45 - | 0; + switcher$0 = Stdlib[29].call(null, i$1) - 45 | 0; if(48 < switcher$0 >>> 0){ if(210 <= switcher$0) break c; } else if (46 < switcher$0 - 1 >>> 0 - && - ! - is_in_char_set - (set, - /*<>*/ caml_call1 - (Stdlib[29], i$1 + 1 | 0))){ + && ! is_in_char_set(set, Stdlib[29].call(null, i$1 + 1 | 0))){ /*<>*/ print_char (buf, i$1 - 1 | 0); /*<>*/ /*<>*/ var @@ -14651,10 +14259,7 @@ continue; } /*<>*/ if - (is_in_char_set - (set, - /*<>*/ caml_call1 - (Stdlib[29], i$1 + 1 | 0))){ + (is_in_char_set(set, Stdlib[29].call(null, i$1 + 1 | 0))){ /*<>*/ var /*<>*/ j = i$1 + 2 | 0, i$3 = i$1 - 1 | 0, @@ -14662,11 +14267,7 @@ /*<>*/ for(;;){ if(256 === j$0) break; /*<>*/ if - (! - is_in_char_set - (set, - /*<>*/ caml_call1 - (Stdlib[29], j$0))) + (! is_in_char_set(set, Stdlib[29].call(null, j$0))) break; /*<>*/ /*<>*/ var j$1 = j$0 + 1 | 0; @@ -15673,8 +15274,9 @@ var fmt = formatting_gen[1][1], _cC_ = fmtty_of_fmt(fmt); else var fmt$0 = formatting_gen[1][1], _cC_ = fmtty_of_fmt(fmt$0); - /*<>*/ return /*<>*/ caml_call2 - (CamlinternalFormatBasics[1], _cC_, _cB_); + /*<>*/ return CamlinternalFormatBasics + [1].call + (null, _cC_, _cB_); case 19: var rest$14 = fmtty$0[1]; /*<>*/ return [13, @@ -15729,8 +15331,9 @@ fmtty$6 = ign[2], /*<>*/ _cD_ = fmtty_of_fmt(fmtty$5); - /*<>*/ return /*<>*/ caml_call2 - (CamlinternalFormatBasics[1], fmtty$6, _cD_); + /*<>*/ return CamlinternalFormatBasics + [1].call + (null, fmtty$6, _cD_); case 10: fmtty$0 = fmtty$5; break; default: fmtty$0 = fmtty$5; @@ -16314,23 +15917,17 @@ sub_fmtty$1 = fmt[2], pad_opt$0 = fmt[1], /*<>*/ _cy_ = - [0, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub_fmtty1)]; + [0, CamlinternalFormatBasics[2].call(null, sub_fmtty1)]; /*<>*/ if ( /*<>*/ caml_notequal - ([0, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub_fmtty$1)], - _cy_)) + ([0, CamlinternalFormatBasics[2].call(null, sub_fmtty$1)], _cy_)) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Type_mismatch, 1); /*<>*/ var /*<>*/ match$29 = type_format_gen (fmt_rest$13, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], fmtty_rest$10)), + CamlinternalFormatBasics[2].call(null, fmtty_rest$10)), fmtty$13 = match$29[2], fmt$14 = match$29[1]; /*<>*/ return [0, @@ -16700,28 +16297,17 @@ sub2_fmtty$2 = sub_fmtty[2], sub1_fmtty$0 = sub_fmtty[1], /*<>*/ _cw_ = - [0, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub1_fmtty)]; + [0, CamlinternalFormatBasics[2].call(null, sub1_fmtty)]; /*<>*/ if ( /*<>*/ caml_notequal - ([0, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub1_fmtty$0)], - _cw_)) + ([0, CamlinternalFormatBasics[2].call(null, sub1_fmtty$0)], _cw_)) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Type_mismatch, 1); /*<>*/ /*<>*/ var - _cx_ = - [0, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub2_fmtty$1)]; + _cx_ = [0, CamlinternalFormatBasics[2].call(null, sub2_fmtty$1)]; /*<>*/ if ( /*<>*/ caml_notequal - ([0, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub2_fmtty$2)], - _cx_)) + ([0, CamlinternalFormatBasics[2].call(null, sub2_fmtty$2)], _cx_)) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Type_mismatch, 1); /*<>*/ var @@ -16736,8 +16322,7 @@ /*<>*/ var /*<>*/ match$9 = type_ignored_format_substituti - ( /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], sub_fmtty_rest$17), + (CamlinternalFormatBasics[2].call(null, sub_fmtty_rest$17), fmt, fmtty_rest$8), fmt$9 = match$9[2], @@ -16815,30 +16400,27 @@ /*<>*/ /*<>*/ var _cv_ = symm(fmtty); /*<>*/ return type_format - (fmt, - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], _cv_)); + (fmt, CamlinternalFormatBasics[2].call(null, _cv_)); /*<>*/ } function fix_padding(padty, width, str){ /*<>*/ var len = caml_ml_string_length(str), /*<>*/ padty$0 = 0 <= width ? padty : 0, /*<>*/ width$0 = - /*<>*/ caml_call1(Stdlib[18], width); + Stdlib[18].call(null, width); if(width$0 <= len) /*<>*/ return str; /*<>*/ var _cu_ = 2 === padty$0 ? 48 : 32, /*<>*/ res = - /*<>*/ caml_call2 - (Stdlib_Bytes[1], width$0, _cu_); + Stdlib_Bytes[1].call(null, width$0, _cu_); /*<>*/ switch(padty$0){ case 0: - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], str, 0, res, 0, len); + /*<>*/ Stdlib_String[6].call + (null, str, 0, res, 0, len); break; case 1: - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], str, 0, res, width$0 - len | 0, len); + /*<>*/ Stdlib_String[6].call + (null, str, 0, res, width$0 - len | 0, len); break; default: a: @@ -16857,13 +16439,8 @@ (res, 0, /*<>*/ caml_string_get(str, 0)); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], - str, - 1, - res, - (width$0 - len | 0) + 1 | 0, - len - 1 | 0); + /*<>*/ Stdlib_String[6].call + (null, str, 1, res, (width$0 - len | 0) + 1 | 0, len - 1 | 0); break; } a: @@ -16883,25 +16460,20 @@ (res, 1, /*<>*/ caml_string_get(str, 1)); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], - str, - 2, - res, - (width$0 - len | 0) + 2 | 0, - len - 2 | 0); + /*<>*/ Stdlib_String[6].call + (null, str, 2, res, (width$0 - len | 0) + 2 | 0, len - 2 | 0); break; } - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], str, 0, res, width$0 - len | 0, len); + /*<>*/ Stdlib_String[6].call + (null, str, 0, res, width$0 - len | 0, len); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], res); + /*<>*/ return Stdlib_Bytes[44].call + (null, res); /*<>*/ } function fix_int_precision(prec, str){ /*<>*/ var /*<>*/ prec$0 = - /*<>*/ caml_call1(Stdlib[18], prec), + Stdlib[18].call(null, prec), /*<>*/ len = /*<>*/ caml_ml_string_length(str), /*<>*/ c = @@ -16927,22 +16499,15 @@ /*<>*/ caml_string_get(str, 1)) break c; /*<>*/ /*<>*/ var - res$1 = - /*<>*/ caml_call2 - (Stdlib_Bytes[1], prec$0 + 2 | 0, 48); + res$1 = Stdlib_Bytes[1].call(null, prec$0 + 2 | 0, 48); /*<>*/ /*<>*/ caml_bytes_set (res$1, 1, /*<>*/ caml_string_get(str, 1)); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], - str, - 2, - res$1, - (prec$0 - len | 0) + 4 | 0, - len - 2 | 0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], res$1); + /*<>*/ Stdlib_String[6].call + (null, str, 2, res$1, (prec$0 - len | 0) + 4 | 0, len - 2 | 0); + /*<>*/ return Stdlib_Bytes[44].call + (null, res$1); } break b; case 0: @@ -16956,32 +16521,23 @@ } if(len >= (prec$0 + 1 | 0)) break a; /*<>*/ /*<>*/ var - res$0 = - /*<>*/ caml_call2 - (Stdlib_Bytes[1], prec$0 + 1 | 0, 48); + res$0 = Stdlib_Bytes[1].call(null, prec$0 + 1 | 0, 48); /*<>*/ /*<>*/ caml_bytes_set (res$0, 0, c); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], - str, - 1, - res$0, - (prec$0 - len | 0) + 2 | 0, - len - 1 | 0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], res$0); + /*<>*/ Stdlib_String[6].call + (null, str, 1, res$0, (prec$0 - len | 0) + 2 | 0, len - 1 | 0); + /*<>*/ return Stdlib_Bytes[44].call + (null, res$0); } if(71 <= c){if(5 < c - 97 >>> 0) break a;} else if(65 > c) break a; } if(len < prec$0){ /*<>*/ /*<>*/ var - res = - /*<>*/ caml_call2 - (Stdlib_Bytes[1], prec$0, 48); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_String[6], str, 0, res, prec$0 - len | 0, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], res); + res = Stdlib_Bytes[1].call(null, prec$0, 48); + /*<>*/ Stdlib_String[6].call + (null, str, 0, res, prec$0 - len | 0, len); + /*<>*/ return Stdlib_Bytes[44].call + (null, res); } } /*<>*/ return str; @@ -16989,31 +16545,27 @@ function string_to_caml_string(str){ /*<>*/ var /*<>*/ str$0 = - /*<>*/ caml_call1 - (Stdlib_String[25], str), + Stdlib_String[25].call(null, str), /*<>*/ l = /*<>*/ caml_ml_string_length(str$0), /*<>*/ res = - /*<>*/ caml_call2 - (Stdlib_Bytes[1], l + 2 | 0, 34); + Stdlib_Bytes[1].call(null, l + 2 | 0, 34); /*<>*/ /*<>*/ caml_blit_string (str$0, 0, res, 1, l); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], res); + /*<>*/ return Stdlib_Bytes[44].call + (null, res); /*<>*/ } function format_of_fconv(fconv, prec){ /*<>*/ var /*<>*/ prec$0 = - /*<>*/ caml_call1(Stdlib[18], prec), + Stdlib[18].call(null, prec), /*<>*/ symb = char_of_fconv(_r_, fconv), /*<>*/ buf = buffer_create(16); /*<>*/ buffer_add_char(buf, 37); /*<>*/ bprint_fconv_flag(buf, fconv); /*<>*/ buffer_add_char(buf, 46); /*<>*/ buffer_add_string - (buf, - /*<>*/ caml_call1 - (Stdlib_Int[12], prec$0)); + (buf, Stdlib_Int[12].call(null, prec$0)); /*<>*/ buffer_add_char(buf, symb); /*<>*/ return buffer_contents(buf); /*<>*/ } @@ -17071,8 +16623,8 @@ i = _cs_; } } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], buf); + /*<>*/ return Stdlib_Bytes[44].call + (null, buf); /*<>*/ } function convert_int(iconv, n){ /*<>*/ switch(iconv){ @@ -17262,11 +16814,7 @@ var _ch_ = 1; } /*<>*/ /*<>*/ var - _ci_ = - _ch_ - ? str - : /*<>*/ caml_call2 - (Stdlib[28], str, cst$17); + _ci_ = _ch_ ? str : Stdlib[28].call(null, str, cst$17); /*<>*/ return caml_special_val(_ci_); } case 6: @@ -17274,8 +16822,8 @@ case 7: /*<>*/ /*<>*/ var _cj_ = hex(0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_String[26], _cj_); + /*<>*/ return Stdlib_String[26].call + (null, _cj_); case 8: /*<>*/ return caml_special_val(hex(0)); default: @@ -17311,21 +16859,15 @@ /*<>*/ return function(c){ /*<>*/ var /*<>*/ str = - /*<>*/ caml_call1 - (Stdlib_Char[2], c), + Stdlib_Char[2].call(null, c), /*<>*/ l = /*<>*/ caml_ml_string_length(str), /*<>*/ res = - /*<>*/ caml_call2 - (Stdlib_Bytes[1], l + 2 | 0, 39); + Stdlib_Bytes[1].call(null, l + 2 | 0, 39); /*<>*/ /*<>*/ caml_blit_string (str, 0, res, 1, l); /*<>*/ /*<>*/ var - new_acc = - [4, - acc$0, - /*<>*/ caml_call1 - (Stdlib_Bytes[44], res)]; + new_acc = [4, acc$0, Stdlib_Bytes[44].call(null, res)]; /*<>*/ return make_printf (k$0, new_acc, rest$0); /*<>*/ }; case 2: @@ -17510,8 +17052,7 @@ /*<>*/ return make_printf (k$0, acc$0, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], _cf_, rest$13)); /*<>*/ }; + CamlinternalFormatBasics[3].call(null, _cf_, rest$13)); /*<>*/ }; case 15: var rest$14 = fmt$0[1]; /*<>*/ return function(f, x){ @@ -17800,8 +17341,7 @@ /*<>*/ return make_from_fmtty (k, acc, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[1], ty, rest$8), + CamlinternalFormatBasics[1].call(null, ty, rest$8), fmt); /*<>*/ }; case 10: var rest$9 = fmtty[1]; @@ -18164,8 +17704,7 @@ /*<>*/ return make_iprintf (k$0, o, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], _bW_, rest$19)); /*<>*/ }; + CamlinternalFormatBasics[3].call(null, _bW_, rest$19)); /*<>*/ }; case 15: /*<>*/ var rest$20 = fmt$0[1], @@ -18359,22 +17898,22 @@ /*<>*/ s = string_of_formatting_lit(fmting_lit); /*<>*/ output_acc(o, p); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[66], o, s); + /*<>*/ return Stdlib[66].call + (null, o, s); case 1: var match = acc$0[2], p$0 = acc$0[1]; if(0 === match[0]){ var acc$1 = match[1]; /*<>*/ output_acc(o, p$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib[66], o, cst$18); + /*<>*/ Stdlib[66].call + (null, o, cst$18); acc$0 = acc$1; } else{ var acc$2 = match[1]; /*<>*/ output_acc(o, p$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib[66], o, cst$19); + /*<>*/ Stdlib[66].call + (null, o, cst$19); acc$0 = acc$2; } break; @@ -18386,24 +17925,23 @@ case 7: var p$4 = acc$0[1]; /*<>*/ output_acc(o, p$4); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[63], o); + /*<>*/ return Stdlib[63].call(null, o); case 8: var msg = acc$0[2], p$5 = acc$0[1]; /*<>*/ output_acc(o, p$5); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], msg); + /*<>*/ return Stdlib[1].call + (null, msg); case 2: case 4: var s$0 = acc$0[2], p$1 = acc$0[1]; /*<>*/ output_acc(o, p$1); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[66], o, s$0); + /*<>*/ return Stdlib[66].call + (null, o, s$0); default: var c = acc$0[2], p$2 = acc$0[1]; /*<>*/ output_acc(o, p$2); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[65], o, c); + /*<>*/ return Stdlib[65].call + (null, o, c); } } /*<>*/ } @@ -18420,22 +17958,22 @@ /*<>*/ s = string_of_formatting_lit(fmting_lit); /*<>*/ bufput_acc(b, p); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, s); + /*<>*/ return Stdlib_Buffer[16].call + (null, b, s); case 1: var match = acc$0[2], p$0 = acc$0[1]; if(0 === match[0]){ var acc$1 = match[1]; /*<>*/ bufput_acc(b, p$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, cst$20); + /*<>*/ Stdlib_Buffer[16].call + (null, b, cst$20); acc$0 = acc$1; } else{ var acc$2 = match[1]; /*<>*/ bufput_acc(b, p$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, cst$21); + /*<>*/ Stdlib_Buffer[16].call + (null, b, cst$21); acc$0 = acc$2; } break; @@ -18449,19 +17987,19 @@ case 8: var msg = acc$0[2], p$4 = acc$0[1]; /*<>*/ bufput_acc(b, p$4); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], msg); + /*<>*/ return Stdlib[1].call + (null, msg); case 2: case 4: var s$0 = acc$0[2], p$1 = acc$0[1]; /*<>*/ bufput_acc(b, p$1); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, s$0); + /*<>*/ return Stdlib_Buffer[16].call + (null, b, s$0); default: var c = acc$0[2], p$2 = acc$0[1]; /*<>*/ bufput_acc(b, p$2); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, c); + /*<>*/ return Stdlib_Buffer[12].call + (null, b, c); } } /*<>*/ } @@ -18478,22 +18016,22 @@ /*<>*/ s = string_of_formatting_lit(fmting_lit); /*<>*/ strput_acc(b, p); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, s); + /*<>*/ return Stdlib_Buffer[16].call + (null, b, s); case 1: var match = acc$0[2], p$0 = acc$0[1]; if(0 === match[0]){ var acc$1 = match[1]; /*<>*/ strput_acc(b, p$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, cst$22); + /*<>*/ Stdlib_Buffer[16].call + (null, b, cst$22); acc$0 = acc$1; } else{ var acc$2 = match[1]; /*<>*/ strput_acc(b, p$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, cst$23); + /*<>*/ Stdlib_Buffer[16].call + (null, b, cst$23); acc$0 = acc$2; } break; @@ -18502,26 +18040,26 @@ /*<>*/ strput_acc(b, p$3); /*<>*/ /*<>*/ var _bv_ = /*<>*/ caml_call1(f, 0); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, _bv_); + /*<>*/ return Stdlib_Buffer[16].call + (null, b, _bv_); case 7: var acc$3 = acc$0[1]; acc$0 = acc$3; break; case 8: var msg = acc$0[2], p$4 = acc$0[1]; /*<>*/ strput_acc(b, p$4); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], msg); + /*<>*/ return Stdlib[1].call + (null, msg); case 2: case 4: var s$0 = acc$0[2], p$1 = acc$0[1]; /*<>*/ strput_acc(b, p$1); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, s$0); + /*<>*/ return Stdlib_Buffer[16].call + (null, b, s$0); default: var c = acc$0[2], p$2 = acc$0[1]; /*<>*/ strput_acc(b, p$2); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, c); + /*<>*/ return Stdlib_Buffer[12].call + (null, b, c); } } /*<>*/ } @@ -18529,16 +18067,12 @@ /*<>*/ var fmt = param[1], /*<>*/ buf = - /*<>*/ caml_call1 - (Stdlib_Buffer[1], 256); + Stdlib_Buffer[1].call(null, 256); function k(acc){ /*<>*/ strput_acc(buf, acc); /*<>*/ /*<>*/ var - _bu_ = - /*<>*/ caml_call1 - (Stdlib_Buffer[2], buf); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], _bu_); + _bu_ = Stdlib_Buffer[2].call(null, buf); + /*<>*/ return Stdlib[2].call(null, _bu_); /*<>*/ } /*<>*/ return make_printf(k, 0, fmt); } @@ -18587,8 +18121,7 @@ } /*<>*/ var /*<>*/ box_name = - /*<>*/ caml_call3 - (Stdlib_String[16], str, wstart, wend - wstart | 0), + Stdlib_String[16].call(null, str, wstart, wend - wstart | 0), /*<>*/ nstart = parse_spaces(wend); a: b: @@ -18613,8 +18146,7 @@ /*<>*/ var /*<>*/ _bs_ = /*<>*/ runtime.caml_int_of_string - ( /*<>*/ caml_call3 - (Stdlib_String[16], str, nstart, nend - nstart | 0)), + (Stdlib_String[16].call(null, str, nstart, nend - nstart | 0)), indent = _bs_; } catch(_bt_){ @@ -18840,8 +18372,8 @@ if(17 === switcher$0){ /*<>*/ var /*<>*/ s = - /*<>*/ caml_call3 - (Stdlib_String[16], + Stdlib_String[16].call + (null, str, str_ind$3 - 2 | 0, (str_ind_3 - str_ind$3 | 0) + 3 | 0), @@ -18869,8 +18401,8 @@ (Stdlib[8], 1); /*<>*/ var /*<>*/ s$0 = - /*<>*/ caml_call3 - (Stdlib_String[16], + Stdlib_String[16].call + (null, str, str_ind$3 - 2 | 0, (str_ind_5 - str_ind$3 | 0) + 3 | 0), @@ -18930,8 +18462,8 @@ (Stdlib[8], 1); /*<>*/ var /*<>*/ s$1 = - /*<>*/ caml_call3 - (Stdlib_String[16], + Stdlib_String[16].call + (null, str, str_ind$4 - 2 | 0, (str_ind_3$0 - str_ind$4 | 0) + 3 | 0), @@ -19454,9 +18986,7 @@ var i = c$0; for(;;){ /*<>*/ add_in_char_set - (char_set, - /*<>*/ caml_call1 - (Stdlib[29], i)); + (char_set, Stdlib[29].call(null, i)); /*<>*/ /*<>*/ var _a$_ = i + 1 | 0; if(c === i) break; @@ -20081,16 +19611,14 @@ /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Stdlib[8], 1); /*<>*/ /*<>*/ var - ind = - /*<>*/ caml_call3 - (Stdlib_String[32], str, str_ind + 1 | 0, 62); + ind = Stdlib_String[32].call(null, str, str_ind + 1 | 0, 62); if(end_ind <= ind) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Stdlib[8], 1); /*<>*/ var /*<>*/ sub_str = - /*<>*/ caml_call3 - (Stdlib_String[16], str, str_ind, (ind - str_ind | 0) + 1 | 0), + Stdlib_String[16].call + (null, str, str_ind, (ind - str_ind | 0) + 1 | 0), fmt_rest$0 = parse(ind + 1 | 0, end_ind)[1], sub_fmt = parse(str_ind, ind + 1 | 0)[1], /*<>*/ sub_format$0 = @@ -20199,10 +19727,7 @@ (str, lit_start), fmt]] : [0, - [11, - /*<>*/ caml_call3 - (Stdlib_String[16], str, lit_start, size), - fmt]]; + [11, Stdlib_String[16].call(null, str, lit_start, size), fmt]]; /*<>*/ } function search_subformat_end(str_ind, end_ind, c){ /*<>*/ var str_ind$0 = str_ind; @@ -20407,8 +19932,7 @@ function incompatible_flag(pct_ind, str_ind, symb, option){ /*<>*/ /*<>*/ var subfmt = - /*<>*/ caml_call3 - (Stdlib_String[16], str, pct_ind, str_ind - pct_ind | 0); + Stdlib_String[16].call(null, str, pct_ind, str_ind - pct_ind | 0); /*<>*/ return /*<>*/ caml_call5 (failwith_message(_Y_), str, pct_ind, option, symb, subfmt); /*<>*/ } @@ -20482,6 +20006,7 @@ //# unitInfo: Provides: Stdlib__Printf //# unitInfo: Requires: CamlinternalFormat, Stdlib, Stdlib__Buffer +//# shape: Stdlib__Printf:[F(2),F(1),F(1),F(1),F(2),F(2),F(2),F(3),F(3),F(2),F(3),F(3),F(2)] (function (globalThis){ "use strict"; @@ -20490,16 +20015,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); } var global_data = runtime.caml_get_global_data(), @@ -20508,11 +20023,11 @@ Stdlib = global_data.Stdlib; function kfprintf(k, o, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], + /*<>*/ return CamlinternalFormat[7].call + (null, function(acc){ - /*<>*/ /*<>*/ caml_call2 - (CamlinternalFormat[9], o, acc); + /*<>*/ CamlinternalFormat[9].call + (null, o, acc); return caml_call1(k, o); /*<>*/ }, 0, @@ -20520,11 +20035,11 @@ } function kbprintf(k, b, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], + /*<>*/ return CamlinternalFormat[7].call + (null, function(acc){ - /*<>*/ /*<>*/ caml_call2 - (CamlinternalFormat[10], b, acc); + /*<>*/ CamlinternalFormat[10].call + (null, b, acc); return caml_call1(k, b); /*<>*/ }, 0, @@ -20532,8 +20047,8 @@ } function ikfprintf(k, oc, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[8], k, oc, fmt); + /*<>*/ return CamlinternalFormat[8].call + (null, k, oc, fmt); } function fprintf(oc, fmt){ /*<>*/ return kfprintf @@ -20561,14 +20076,13 @@ var fmt = param[1]; /*<>*/ function k$0(acc){ /*<>*/ /*<>*/ var - buf = /*<>*/ caml_call1(Stdlib_Buffer[1], 64); - /*<>*/ /*<>*/ caml_call2 - (CamlinternalFormat[11], buf, acc); + buf = Stdlib_Buffer[1].call(null, 64); + /*<>*/ CamlinternalFormat[11].call(null, buf, acc); /*<>*/ return /*<>*/ caml_call1 - (k, /*<>*/ caml_call1(Stdlib_Buffer[2], buf)); + (k, Stdlib_Buffer[2].call(null, buf)); /*<>*/ } - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], k$0, 0, fmt); + /*<>*/ return CamlinternalFormat[7].call + (null, k$0, 0, fmt); } function sprintf(fmt){ /*<>*/ return ksprintf @@ -20600,6 +20114,7 @@ //# unitInfo: Provides: Stdlib__Dynarray //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__List, Stdlib__Printf, Stdlib__Seq, Stdlib__Sys +//# shape: Stdlib__Dynarray:[F(1),F(2),F(2),F(2),F(3),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(3),F(1),F(1),F(1),F(2),F(1),F(2),F(2),F(2),F(2),F(3),F(3),F(2),F(2),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(1),F(2),F(1)] (function (globalThis){ "use strict"; @@ -20629,16 +20144,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var global_data = runtime.caml_get_global_data(), @@ -20761,18 +20266,16 @@ cst_to_seq = "to_seq", cst_to_seq_rev = "to_seq_rev"; function negative_length_requested(f, n){ - /*<>*/ return /*<>*/ caml_call4 - (Stdlib_Printf[10], Stdlib[1], _c_, f, n); + /*<>*/ return /*<>*/ caml_call2 + (Stdlib_Printf[10].call(null, Stdlib[1], _c_), f, n); /*<>*/ } function negative_capacity_requested(f, n){ - /*<>*/ return /*<>*/ caml_call4 - (Stdlib_Printf[10], Stdlib[1], _d_, f, n); + /*<>*/ return /*<>*/ caml_call2 + (Stdlib_Printf[10].call(null, Stdlib[1], _d_), f, n); /*<>*/ } function missing_element(i, length){ - /*<>*/ return /*<>*/ caml_call5 - (Stdlib_Printf[10], - Stdlib[1], - _f_, + /*<>*/ return /*<>*/ caml_call3 + (Stdlib_Printf[10].call(null, Stdlib[1], _f_), invalid_state_description, i, length); @@ -20782,33 +20285,37 @@ ? missing_element(i, length) : 0 === length - ? /*<>*/ caml_call4 - (Stdlib_Printf[10], Stdlib[1], _a_, f, i) - : /*<>*/ caml_call5 - (Stdlib_Printf[10], Stdlib[1], _b_, f, i, length - 1 | 0); + ? /*<>*/ caml_call2 + (Stdlib_Printf[10].call(null, Stdlib[1], _a_), f, i) + : /*<>*/ caml_call3 + (Stdlib_Printf[10].call(null, Stdlib[1], _b_), + f, + i, + length - 1 | 0); /*<>*/ } function check_same_length(f, a, expected){ /*<>*/ var length_a = a[1], - _W_ = expected !== length_a ? 1 : 0; - return _W_ - ? /*<>*/ caml_call5 - (Stdlib_Printf[10], Stdlib[1], _h_, f, expected, length_a) - : _W_; + _X_ = expected !== length_a ? 1 : 0; + return _X_ + ? /*<>*/ caml_call3 + (Stdlib_Printf[10].call(null, Stdlib[1], _h_), + f, + expected, + length_a) + : _X_; /*<>*/ } function check_valid_length(length, arr){ /*<>*/ var capacity = arr.length - 1, - _V_ = capacity < length ? 1 : 0; - return _V_ - ? /*<>*/ caml_call5 - (Stdlib_Printf[10], - Stdlib[1], - _g_, + _W_ = capacity < length ? 1 : 0; + return _W_ + ? /*<>*/ caml_call3 + (Stdlib_Printf[10].call(null, Stdlib[1], _g_), invalid_state_description, length, capacity) - : _V_; + : _W_; /*<>*/ } function unsafe_get(arr, i, length){ /*<>*/ var match = arr[1 + i]; @@ -20824,8 +20331,8 @@ /*<>*/ negative_length_requested(cst_make, n); /*<>*/ return [0, n, - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, n, function(param){ /*<>*/ return [0, x]; @@ -20836,8 +20343,8 @@ /*<>*/ negative_length_requested(cst_init, n); /*<>*/ return [0, n, - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, n, function(i){ /*<>*/ return [0, @@ -20867,8 +20374,8 @@ /*<>*/ check_valid_length(length, arr); /*<>*/ return [0, length, - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, length, function(i){ /*<>*/ /*<>*/ var @@ -20880,8 +20387,8 @@ /*<>*/ var length = a[1], arr = a[2]; /*<>*/ check_valid_length(length, arr); if(0 === length) - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[10], Stdlib[1], _i_, f); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[10].call(null, Stdlib[1], _i_), f); /*<>*/ return unsafe_get(arr, length - 1 | 0, length); /*<>*/ } function find_last(a){ @@ -20907,22 +20414,22 @@ /*<>*/ /*<>*/ var x = pop_last(a); } - catch(_U_){ - var _T_ = caml_wrap_exception(_U_); - if(_T_ === Stdlib[8]) /*<>*/ return 0; - throw caml_maybe_attach_backtrace(_T_, 0); + catch(_V_){ + var _U_ = caml_wrap_exception(_V_); + if(_U_ === Stdlib[8]) /*<>*/ return 0; + throw caml_maybe_attach_backtrace(_U_, 0); } /*<>*/ return [0, x]; /*<>*/ } function remove_last(a){ /*<>*/ var /*<>*/ last = a[1] - 1 | 0, - _R_ = 0 <= last ? 1 : 0, - _S_ = - _R_ + _S_ = 0 <= last ? 1 : 0, + _T_ = + _S_ ? (a[1] = last, caml_check_bound(a[2], last)[1 + last] = 0, 0) - : _R_; - /*<>*/ return _S_; + : _S_; + /*<>*/ return _T_; /*<>*/ } function truncate(a, n){ /*<>*/ if(n < 0) @@ -20933,8 +20440,7 @@ : (a [1] = n, - /*<>*/ caml_call4 - (Stdlib_Array[8], arr, n, length - n | 0, 0)); + Stdlib_Array[8].call(null, arr, n, length - n | 0, 0)); /*<>*/ } function clear(a){ /*<>*/ return truncate(a, 0); @@ -20950,31 +20456,29 @@ /*<>*/ return negative_capacity_requested (cst_ensure_capacity, capacity_request); if(capacity_request <= cur_capacity) /*<>*/ return 0; - if(Stdlib_Sys[13] < capacity_request) - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Printf[10], - Stdlib[1], - _e_, + if(Stdlib_Sys[13] < capacity_request){ + /*<>*/ /*<>*/ var + _O_ = Stdlib_Sys[13]; + /*<>*/ /*<>*/ caml_call3 + (Stdlib_Printf[10].call(null, Stdlib[1], _e_), f$0, capacity_request, - Stdlib_Sys[13]); + _O_); + } /*<>*/ var n = 512 < cur_capacity ? cur_capacity + (cur_capacity / 2 | 0) | 0 : cur_capacity * 2 | 0, - _O_ = Stdlib_Sys[13], - /*<>*/ _P_ = - /*<>*/ caml_call2(Stdlib[17], 8, n), - /*<>*/ _Q_ = - /*<>*/ caml_call2(Stdlib[16], _P_, _O_), + _P_ = Stdlib_Sys[13], + /*<>*/ _Q_ = Stdlib[17].call(null, 8, n), + /*<>*/ _R_ = Stdlib[16].call(null, _Q_, _P_), /*<>*/ new_capacity = - /*<>*/ caml_call2 - (Stdlib[17], _Q_, capacity_request), + Stdlib[17].call(null, _R_, capacity_request), /*<>*/ new_arr = /*<>*/ caml_make_vect(new_capacity, 0); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], arr, 0, new_arr, 0, a[1]); + /*<>*/ Stdlib_Array[9].call + (null, arr, 0, new_arr, 0, a[1]); a[2] = new_arr; if(0 > capacity_request) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace @@ -20991,12 +20495,7 @@ /*<>*/ var _N_ = a[1]; return capacity(a) === _N_ ? 0 - : (a - [2] - = - /*<>*/ caml_call3 - (Stdlib_Array[6], a[2], 0, a[1]), - 0); + : (a[2] = Stdlib_Array[6].call(null, a[2], 0, a[1]), 0); /*<>*/ } function set_capacity(a, n){ /*<>*/ if(n < 0) @@ -21006,16 +20505,16 @@ arr = a[2], /*<>*/ cur_capacity = arr.length - 1; if(n < cur_capacity){ - a[1] = /*<>*/ caml_call2(Stdlib[16], a[1], n); - a[2] = /*<>*/ caml_call3(Stdlib_Array[6], arr, 0, n); + a[1] = Stdlib[16].call(null, a[1], n); + a[2] = Stdlib_Array[6].call(null, arr, 0, n); return 0; } var _L_ = cur_capacity < n ? 1 : 0; if(_L_){ /*<>*/ /*<>*/ var new_arr = /*<>*/ caml_make_vect(n, 0); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], arr, 0, new_arr, 0, a[1]); + /*<>*/ Stdlib_Array[9].call + (null, arr, 0, new_arr, 0, a[1]); a[2] = new_arr; var _M_ = 0; } @@ -21063,8 +20562,8 @@ b); /*<>*/ } function append_seq(a, seq){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(x){ /*<>*/ return add_last(a, x); /*<>*/ }, @@ -21190,8 +20689,8 @@ res = [0, length, - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, length, function(i){ /*<>*/ return [0, @@ -21208,8 +20707,8 @@ res = [0, length, - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, length, function(i){ /*<>*/ return [0, @@ -21336,8 +20835,8 @@ /*<>*/ var length = a.length - 1; /*<>*/ return [0, length, - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, length, function(i){ /*<>*/ return [0, a[1 + i]]; @@ -21348,8 +20847,8 @@ /*<>*/ check_valid_length(length, arr); /*<>*/ /*<>*/ var res = - /*<>*/ caml_call2 - (Stdlib_Array[1], + Stdlib_Array[1].call + (null, length, function(i){ /*<>*/ return unsafe_get(arr, i, length); @@ -21359,8 +20858,8 @@ /*<>*/ } function of_list(li){ /*<>*/ /*<>*/ var a = create(0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_List[18], + /*<>*/ Stdlib_List[18].call + (null, function(x){ /*<>*/ return add_last(a, x); /*<>*/ }, @@ -21498,6 +20997,7 @@ //# unitInfo: Provides: Stdlib__Arg //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__Buffer, Stdlib__Int, Stdlib__List, Stdlib__Printf, Stdlib__String, Stdlib__Sys +//# shape: Stdlib__Arg:[F(3),F(3),F(5),F(5),F(5),F(3),N,N,F(2),F(2),F(2),N,F(1),F(1),F(2),F(2)] (function (globalThis){ "use strict"; @@ -21539,16 +21039,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 4 ? f(a0, a1, a2, a3) : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); - } - /*<>*/ function caml_call6(f, a0, a1, a2, a3, a4, a5){ - return (f.l >= 0 ? f.l : f.l = f.length) == 6 - ? f(a0, a1, a2, a3, a4, a5) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4, a5]); } /*<>*/ var undef = undefined, @@ -21606,21 +21096,18 @@ /*<>*/ var t = l[2], h = l[1], - /*<>*/ _az_ = - /*<>*/ caml_call2(Stdlib[28], prefix, h), + /*<>*/ _az_ = Stdlib[28].call(null, prefix, h), /*<>*/ _aA_ = - /*<>*/ caml_call3 - (Stdlib_List[26], + Stdlib_List[26].call + (null, function(x, y){ /*<>*/ /*<>*/ var - _aB_ = /*<>*/ caml_call2(Stdlib[28], sep, y); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], x, _aB_); + _aB_ = Stdlib[28].call(null, sep, y); + /*<>*/ return Stdlib[28].call(null, x, _aB_); /*<>*/ }, _az_, t); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], _aA_, suffix); + /*<>*/ return Stdlib[28].call(null, _aA_, suffix); /*<>*/ } function help_action(param){ /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace @@ -21654,17 +21141,16 @@ 0]; } /*<>*/ /*<>*/ var - _au_ = /*<>*/ caml_call2(Stdlib[37], add1, add2); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[37], speclist, _au_); + _au_ = Stdlib[37].call(null, add1, add2); + /*<>*/ return Stdlib[37].call(null, speclist, _au_); /*<>*/ } function usage_b(buf, speclist, errmsg){ - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[5], buf, _d_, errmsg); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[5].call(null, buf, _d_), errmsg); /*<>*/ /*<>*/ var _ap_ = add_help(speclist); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[18], + /*<>*/ return Stdlib_List[18].call + (null, function(param){ var doc = param[3], @@ -21674,28 +21160,27 @@ 0 < /*<>*/ caml_ml_string_length(doc) ? 1 : 0; if(! _aq_) return _aq_; if(11 !== spec[0]) - /*<>*/ return /*<>*/ caml_call4 - (Stdlib_Printf[5], buf, _a_, key, doc); + /*<>*/ return /*<>*/ caml_call2 + (Stdlib_Printf[5].call(null, buf, _a_), key, doc); /*<>*/ var l = spec[1], /*<>*/ _ar_ = make_symlist(cst$1, cst$0, cst, l); - /*<>*/ return /*<>*/ caml_call5 - (Stdlib_Printf[5], buf, _b_, key, _ar_, doc); + /*<>*/ return /*<>*/ caml_call3 + (Stdlib_Printf[5].call(null, buf, _b_), key, _ar_, doc); }, _ap_); /*<>*/ } function usage_string(speclist, errmsg){ /*<>*/ /*<>*/ var - b = /*<>*/ caml_call1(Stdlib_Buffer[1], 200); + b = Stdlib_Buffer[1].call(null, 200); /*<>*/ usage_b(b, speclist, errmsg); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[2], b); + /*<>*/ return Stdlib_Buffer[2].call(null, b); /*<>*/ } function usage(speclist, errmsg){ /*<>*/ /*<>*/ var _ao_ = usage_string(speclist, errmsg); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Printf[3], _e_, _ao_); + /*<>*/ return /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _e_), _ao_); /*<>*/ } /*<>*/ var /*<>*/ current = [0, 0], @@ -21766,8 +21251,7 @@ var initpos = current[1]; function convert_error(error){ /*<>*/ var - /*<>*/ b = - /*<>*/ caml_call1(Stdlib_Buffer[1], 200), + /*<>*/ b = Stdlib_Buffer[1].call(null, 200), progname = initpos < argv[1].length - 1 ? caml_check_bound(argv[1], initpos)[1 + initpos] @@ -21776,35 +21260,31 @@ case 0: var s = error[1]; if(s !== cst_help$4 && s !== cst_help$3) - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[5], b, _f_, progname, s); + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[5].call(null, b, _f_), progname, s); break; case 1: var expected = error[3], arg = error[2], opt = error[1]; - /*<>*/ /*<>*/ caml_call6 - (Stdlib_Printf[5], b, _i_, progname, arg, opt, expected); + /*<>*/ /*<>*/ caml_call4 + (Stdlib_Printf[5].call(null, b, _i_), progname, arg, opt, expected); break; case 2: var s$0 = error[1]; - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[5], b, _j_, progname, s$0); + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[5].call(null, b, _j_), progname, s$0); break; default: var s$1 = error[1]; - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[5], b, _k_, progname, s$1); + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[5].call(null, b, _k_), progname, s$1); } /*<>*/ usage_b(b, speclist[1], errmsg); /*<>*/ if (! /*<>*/ caml_equal(error, _g_) && ! /*<>*/ caml_equal(error, _h_)) - /*<>*/ return [0, - Bad, - /*<>*/ caml_call1(Stdlib_Buffer[2], b)]; - /*<>*/ return [0, - Help, - /*<>*/ caml_call1(Stdlib_Buffer[2], b)]; + /*<>*/ return [0, Bad, Stdlib_Buffer[2].call(null, b)]; + /*<>*/ return [0, Help, Stdlib_Buffer[2].call(null, b)]; /*<>*/ } /*<>*/ current[1]++; for(;;){ @@ -21813,8 +21293,7 @@ /*<>*/ var _V_ = current[1], /*<>*/ s = caml_check_bound(argv[1], _V_)[1 + _V_]; - /*<>*/ if - ( /*<>*/ caml_call2(Stdlib_String[11], cst$3, s)){ + /*<>*/ if(Stdlib_String[11].call(null, cst$3, s)){ try{ /*<>*/ var follow$1 = 0, @@ -21827,15 +21306,12 @@ if(_W_ !== Stdlib[8]) throw caml_maybe_attach_backtrace(_W_, 0); /*<>*/ try{ /*<>*/ var - /*<>*/ i = - /*<>*/ caml_call2(Stdlib_String[36], s, 61), + /*<>*/ i = Stdlib_String[36].call(null, s, 61), /*<>*/ len = /*<>*/ caml_ml_string_length(s), /*<>*/ arg = - /*<>*/ caml_call3 - (Stdlib_String[16], s, i + 1 | 0, len - (i + 1 | 0) | 0), - /*<>*/ keyword = - /*<>*/ caml_call3(Stdlib_String[16], s, 0, i), + Stdlib_String[16].call(null, s, i + 1 | 0, len - (i + 1 | 0) | 0), + /*<>*/ keyword = Stdlib_String[16].call(null, s, 0, i), /*<>*/ follow = [0, arg], /*<>*/ _Y_ = assoc3(keyword, speclist[1]), follow$0 = follow, @@ -21890,8 +21366,7 @@ /*<>*/ arg = get_arg$0(0); /*<>*/ try{ /*<>*/ var - /*<>*/ _$_ = - [0, /*<>*/ caml_call1(Stdlib[32], arg)], + /*<>*/ _$_ = [0, Stdlib[32].call(null, arg)], match = _$_; } catch(_ae_){ @@ -21975,16 +21450,15 @@ case 10: var specs = param[1]; /*<>*/ no_arg$0(0); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[18], treat_action$0, specs); + /*<>*/ return Stdlib_List[18].call + (null, treat_action$0, specs); case 11: /*<>*/ var f$4 = param[2], symb = param[1], /*<>*/ arg$5 = get_arg$0(0); /*<>*/ if - ( /*<>*/ caml_call2 - (Stdlib_List[37], arg$5, symb)){ + (Stdlib_List[37].call(null, arg$5, symb)){ /*<>*/ /*<>*/ caml_call1 (f$4, arg$5); /*<>*/ return consume_arg$0(0); @@ -21994,11 +21468,7 @@ /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace ([0, Stop, - [1, - s$0, - arg$5, - /*<>*/ caml_call2 - (Stdlib[28], cst_one_of, _aa_)]], + [1, s$0, arg$5, Stdlib[28].call(null, cst_one_of, _aa_)]], 1); case 12: var f$5 = param[1]; @@ -22018,8 +21488,7 @@ /*<>*/ for(;;){ if(current[1] >= (argv[1].length - 2 | 0)) /*<>*/ return /*<>*/ caml_call1 - (f$6, - /*<>*/ caml_call1(Stdlib_List[10], acc[1])); + (f$6, Stdlib_List[10].call(null, acc[1])); var _ad_ = current[1] + 1 | 0, _ac_ = acc[1]; acc[1] = [0, caml_check_bound(argv[1], _ad_)[1 + _ad_], _ac_]; /*<>*/ consume_arg$0(0); @@ -22037,17 +21506,16 @@ /*<>*/ consume_arg$0(0); /*<>*/ var /*<>*/ before = - /*<>*/ caml_call3 - (Stdlib_Array[6], argv[1], 0, current[1] + 1 | 0), + Stdlib_Array[6].call(null, argv[1], 0, current[1] + 1 | 0), /*<>*/ after = - /*<>*/ caml_call3 - (Stdlib_Array[6], + Stdlib_Array[6].call + (null, argv[1], current[1] + 1 | 0, (argv[1].length - 1 - current[1] | 0) - 1 | 0); argv[1] = - /*<>*/ caml_call1 - (Stdlib_Array[5], [0, before, [0, newarg, [0, after, 0]]]); + Stdlib_Array[5].call + (null, [0, before, [0, newarg, [0, after, 0]]]); return 0; } /*<>*/ }; @@ -22101,17 +21569,15 @@ var exn = caml_wrap_exception(exn$0); if(exn[1] === Bad){ var msg$0 = exn[2]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _l_, msg$0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 2); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _l_), msg$0); + /*<>*/ return Stdlib[99].call(null, 2); } if(exn[1] !== Help) throw caml_maybe_attach_backtrace(exn, 0); var msg$1 = exn[2]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[2], _m_, msg$1); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 0); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[2].call(null, _m_), msg$1); + /*<>*/ return Stdlib[99].call(null, 0); } /*<>*/ } function parse_dynamic(l, f, msg){ @@ -22124,17 +21590,15 @@ var exn = caml_wrap_exception(exn$0); if(exn[1] === Bad){ var msg$0 = exn[2]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _n_, msg$0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 2); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _n_), msg$0); + /*<>*/ return Stdlib[99].call(null, 2); } if(exn[1] !== Help) throw caml_maybe_attach_backtrace(exn, 0); var msg$1 = exn[2]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[2], _o_, msg$1); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 0); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[2].call(null, _o_), msg$1); + /*<>*/ return Stdlib[99].call(null, 0); } /*<>*/ } function parse_expand(l, f, msg){ @@ -22151,17 +21615,15 @@ var exn = caml_wrap_exception(exn$0); if(exn[1] === Bad){ var msg$0 = exn[2]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _p_, msg$0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 2); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _p_), msg$0); + /*<>*/ return Stdlib[99].call(null, 2); } if(exn[1] !== Help) throw caml_maybe_attach_backtrace(exn, 0); var msg$1 = exn[2]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[2], _q_, msg$1); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 0); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[2].call(null, _q_), msg$1); + /*<>*/ return Stdlib[99].call(null, 0); } /*<>*/ } function second_word(s){ @@ -22179,14 +21641,14 @@ /*<>*/ } /*<>*/ try{ /*<>*/ /*<>*/ var - n$0 = /*<>*/ caml_call2(Stdlib_String[36], s, 9); + n$0 = Stdlib_String[36].call(null, s, 9); } catch(_Q_){ var _O_ = caml_wrap_exception(_Q_); if(_O_ !== Stdlib[8]) throw caml_maybe_attach_backtrace(_O_, 0); /*<>*/ try{ /*<>*/ /*<>*/ var - n = /*<>*/ caml_call2(Stdlib_String[36], s, 32); + n = Stdlib_String[36].call(null, s, 32); } catch(_R_){ var _P_ = caml_wrap_exception(_R_); @@ -22200,14 +21662,14 @@ function max_arg_len(cur, param){ var doc = param[3], spec = param[2], kwd = param[1]; /*<>*/ if(11 === spec[0]) - return caml_call2(Stdlib_Int[11], cur, caml_ml_string_length(kwd)); + return Stdlib_Int[11].call(null, cur, caml_ml_string_length(kwd)); var _N_ = caml_ml_string_length(kwd) + second_word(doc) | 0; - return caml_call2(Stdlib_Int[11], cur, _N_); + return Stdlib_Int[11].call(null, cur, _N_); } function replace_leading_tab(s){ /*<>*/ /*<>*/ var seen = [0, 0]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_String[18], + /*<>*/ return Stdlib_String[18].call + (null, function(c){ /*<>*/ if(9 === c && ! seen[1]){ seen[1] = 1; @@ -22222,12 +21684,10 @@ limit = opt ? opt[1] : Stdlib[19], /*<>*/ completed = add_help(speclist), /*<>*/ len = - /*<>*/ caml_call3 - (Stdlib_List[26], max_arg_len, 0, completed), - /*<>*/ len$0 = - /*<>*/ caml_call2(Stdlib_Int[10], len, limit); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[20], + Stdlib_List[26].call(null, max_arg_len, 0, completed), + /*<>*/ len$0 = Stdlib_Int[10].call(null, len, limit); + /*<>*/ return Stdlib_List[20].call + (null, function(ksd){ var kwd = ksd[1], spec = ksd[2]; if(ksd[3] === cst$8) /*<>*/ return ksd; @@ -22236,19 +21696,16 @@ msg$0 = ksd[3], /*<>*/ cutcol$0 = second_word(msg$0), /*<>*/ _K_ = - /*<>*/ caml_call2 - (Stdlib_Int[11], 0, len$0 - cutcol$0 | 0) - + 3 - | 0, + Stdlib_Int[11].call(null, 0, len$0 - cutcol$0 | 0) + 3 | 0, /*<>*/ spaces$0 = - /*<>*/ caml_call2(Stdlib_String[1], _K_, 32), + Stdlib_String[1].call(null, _K_, 32), /*<>*/ _L_ = replace_leading_tab(msg$0), /*<>*/ _M_ = - /*<>*/ caml_call2(Stdlib[28], spaces$0, _L_); + Stdlib[28].call(null, spaces$0, _L_); /*<>*/ return [0, kwd, spec, - /*<>*/ caml_call2(Stdlib[28], cst$7, _M_)]; + Stdlib[28].call(null, cst$7, _M_)]; } /*<>*/ var msg = ksd[3], @@ -22264,36 +21721,30 @@ replace_leading_tab(msg)]; /*<>*/ var /*<>*/ spaces = - /*<>*/ caml_call2(Stdlib_String[1], diff, 32), + Stdlib_String[1].call(null, diff, 32), /*<>*/ _I_ = replace_leading_tab(msg), /*<>*/ prefix = - /*<>*/ caml_call3 - (Stdlib_String[16], _I_, 0, cutcol), + Stdlib_String[16].call(null, _I_, 0, cutcol), /*<>*/ suffix = - /*<>*/ caml_call3 - (Stdlib_String[16], - msg, - cutcol, - caml_ml_string_length(msg) - cutcol | 0), + Stdlib_String[16].call + (null, msg, cutcol, caml_ml_string_length(msg) - cutcol | 0), /*<>*/ _J_ = - /*<>*/ caml_call2(Stdlib[28], spaces, suffix); + Stdlib[28].call(null, spaces, suffix); /*<>*/ return [0, kwd, spec$0, - /*<>*/ caml_call2(Stdlib[28], prefix, _J_)]; + Stdlib[28].call(null, prefix, _J_)]; }, completed); } function read_aux(trim, sep, file){ /*<>*/ var - /*<>*/ ic = - /*<>*/ caml_call1(Stdlib[80], file), - /*<>*/ buf = - /*<>*/ caml_call1(Stdlib_Buffer[1], 200), + /*<>*/ ic = Stdlib[80].call(null, file), + /*<>*/ buf = Stdlib_Buffer[1].call(null, 200), /*<>*/ words = [0, 0]; function stash(param){ /*<>*/ /*<>*/ var - word = /*<>*/ caml_call1(Stdlib_Buffer[2], buf); + word = Stdlib_Buffer[2].call(null, buf); /*<>*/ if(trim){ var len = caml_ml_string_length(word); a: @@ -22301,10 +21752,7 @@ /*<>*/ if (0 < len && 13 === /*<>*/ caml_string_get(word, len - 1 | 0)){ - var - _H_ = - /*<>*/ caml_call3 - (Stdlib_String[16], word, 0, len - 1 | 0); + var _H_ = Stdlib_String[16].call(null, word, 0, len - 1 | 0); break a; } var _H_ = word; @@ -22314,30 +21762,26 @@ else var word$0 = word; words[1] = [0, word$0, words[1]]; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[8], buf); + /*<>*/ return Stdlib_Buffer[8].call(null, buf); /*<>*/ } /*<>*/ try{ for(;;){ /*<>*/ /*<>*/ var - c = /*<>*/ caml_call1(Stdlib[82], ic); + c = Stdlib[82].call(null, ic); if(c === sep) /*<>*/ stash(0); else - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], buf, c); + /*<>*/ Stdlib_Buffer[12].call(null, buf, c); } } catch(_G_){ var _E_ = caml_wrap_exception(_G_); if(_E_ !== Stdlib[12]) throw caml_maybe_attach_backtrace(_E_, 0); - if(0 < /*<>*/ caml_call1(Stdlib_Buffer[7], buf)) - /*<>*/ stash(0); - /*<>*/ /*<>*/ caml_call1(Stdlib[93], ic); + if(0 < Stdlib_Buffer[7].call(null, buf)) /*<>*/ stash(0); + /*<>*/ Stdlib[93].call(null, ic); /*<>*/ /*<>*/ var - _F_ = /*<>*/ caml_call1(Stdlib_List[10], words[1]); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Array[11], _F_); + _F_ = Stdlib_List[10].call(null, words[1]); + /*<>*/ return Stdlib_Array[11].call(null, _F_); } /*<>*/ } var _r_ = 10, _s_ = 1; @@ -22353,16 +21797,15 @@ } function write_aux(sep, file, args){ /*<>*/ /*<>*/ var - oc = /*<>*/ caml_call1(Stdlib[61], file); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[12], + oc = Stdlib[61].call(null, file); + /*<>*/ Stdlib_Array[12].call + (null, function(s){ - /*<>*/ return caml_call4 - (Stdlib_Printf[1], oc, _v_, s, sep); + /*<>*/ return caml_call2 + (Stdlib_Printf[1].call(null, oc, _v_), s, sep); /*<>*/ }, args); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[76], oc); + /*<>*/ return Stdlib[76].call(null, oc); /*<>*/ } var _w_ = 10; /*<>*/ function write_arg(_A_, _B_){ @@ -22398,6 +21841,7 @@ //# unitInfo: Provides: Stdlib__Printexc //# unitInfo: Requires: Stdlib, Stdlib__Atomic, Stdlib__Buffer, Stdlib__Obj, Stdlib__Printf +//# shape: Stdlib__Printexc:[F(1),F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(1),F(2),F(1),F(1),F(1),N,F(1),F(2),F(1),F(1),F(1),F(1),F(1)] (function (globalThis){ "use strict"; @@ -22427,20 +21871,15 @@ ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call6(f, a0, a1, a2, a3, a4, a5){ - return (f.l >= 0 ? f.l : f.l = f.length) == 6 - ? f(a0, a1, a2, a3, a4, a5) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4, a5]); + /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ + return (f.l >= 0 ? f.l : f.l = f.length) == 5 + ? f(a0, a1, a2, a3, a4) + : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } - /*<>*/ function caml_call8(f, a0, a1, a2, a3, a4, a5, a6, a7){ - return (f.l >= 0 ? f.l : f.l = f.length) == 8 - ? f(a0, a1, a2, a3, a4, a5, a6, a7) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4, a5, a6, a7]); + /*<>*/ function caml_call7(f, a0, a1, a2, a3, a4, a5, a6){ + return (f.l >= 0 ? f.l : f.l = f.length) == 7 + ? f(a0, a1, a2, a3, a4, a5, a6) + : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4, a5, a6]); } /*<>*/ var global_data = runtime.caml_get_global_data(), @@ -22471,8 +21910,7 @@ Stdlib = global_data.Stdlib, Stdlib_Buffer = global_data.Stdlib__Buffer, Stdlib_Obj = global_data.Stdlib__Obj, - /*<>*/ printers = - /*<>*/ caml_call1(Stdlib_Atomic[1], 0), + /*<>*/ printers = Stdlib_Atomic[1].call(null, 0), _a_ = [0, [3, 0, 0], "%S"], _b_ = [0, [4, 0, 0, 0, 0], "%d"], _c_ = [0, [11, ", ", [2, 0, [2, 0, 0]]], ", %s%s"], @@ -22524,33 +21962,32 @@ cst_Program_not_linked_with_g_ = cst_Program_not_linked_with_g_$0; function field(x, i){ /*<>*/ /*<>*/ var f = x[1 + i]; - /*<>*/ if - (! /*<>*/ caml_call1(Stdlib_Obj[1], f)) - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Printf[4], _b_, f); + /*<>*/ if(! Stdlib_Obj[1].call(null, f)) + /*<>*/ return /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _b_), f); /*<>*/ /*<>*/ var - _ah_ = Stdlib_Obj[15]; - if( /*<>*/ caml_obj_tag(f) === _ah_) - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Printf[4], _a_, f); + _ak_ = Stdlib_Obj[15]; + if( /*<>*/ caml_obj_tag(f) === _ak_) + /*<>*/ return /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _a_), f); /*<>*/ /*<>*/ var - _ai_ = Stdlib_Obj[16]; - return /*<>*/ caml_obj_tag(f) === _ai_ - ? /*<>*/ caml_call1(Stdlib[35], f) + _al_ = Stdlib_Obj[16]; + return /*<>*/ caml_obj_tag(f) === _al_ + ? Stdlib[35].call(null, f) : cst; /*<>*/ } function other_fields(x, i){ /*<>*/ if(x.length - 1 <= i) /*<>*/ return cst$0; /*<>*/ var - /*<>*/ _af_ = other_fields(x, i + 1 | 0), - /*<>*/ _ag_ = field(x, i); - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Printf[4], _c_, _ag_, _af_); + /*<>*/ _ai_ = other_fields(x, i + 1 | 0), + /*<>*/ _aj_ = field(x, i); + /*<>*/ return /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _c_), _aj_, _ai_); /*<>*/ } function use_printers(x){ /*<>*/ var - param = /*<>*/ caml_call1(Stdlib_Atomic[3], printers); + param = Stdlib_Atomic[3].call(null, printers); /*<>*/ for(;;){ if(! param) /*<>*/ return 0; var tl = param[2], hd = param[1]; @@ -22560,7 +21997,7 @@ /*<>*/ /*<>*/ var val = /*<>*/ caml_call1(hd, x); } - catch(_ae_){break a;} + catch(_ah_){break a;} if(val){var s = val[1]; /*<>*/ return [0, s];} } param = tl; @@ -22574,24 +22011,25 @@ match = t.length - 1; if(2 < match >>> 0) /*<>*/ var - /*<>*/ _aa_ = other_fields(t, 2), - /*<>*/ _ab_ = field(t, 1), - _ad_ = - /*<>*/ caml_call3 - (Stdlib_Printf[4], _d_, _ab_, _aa_); + /*<>*/ _ad_ = other_fields(t, 2), + /*<>*/ _ae_ = field(t, 1), + _ag_ = + /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _d_), _ae_, _ad_); else switch(match){ case 0: - var _ad_ = cst$1; break; + var _ag_ = cst$1; break; case 1: - var _ad_ = cst$2; break; + var _ag_ = cst$2; break; default: /*<>*/ var - /*<>*/ _ac_ = field(t, 1), - _ad_ = - /*<>*/ caml_call2(Stdlib_Printf[4], _e_, _ac_); + /*<>*/ _af_ = field(t, 1), + _ag_ = + /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _e_), _af_); } - var match$0 = [0, constructor, [0, _ad_]]; + var match$0 = [0, constructor, [0, _ag_]]; } else var match$0 = [0, t[1], 0]; @@ -22599,8 +22037,7 @@ /*<>*/ if(! fields_opt) /*<>*/ return constructor$0; var f = fields_opt[1]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], constructor$0, f); + /*<>*/ return Stdlib[28].call(null, constructor$0, f); /*<>*/ } function to_string_default(x){ /*<>*/ if(x === Stdlib[9]) @@ -22608,9 +22045,8 @@ if(x === Stdlib[10]) /*<>*/ return cst_Stack_overflow; if(x[1] === Stdlib[4]){ var match = x[2], char$0 = match[3], line = match[2], file = match[1]; - /*<>*/ return /*<>*/ caml_call6 - (Stdlib_Printf[4], - locfmt, + /*<>*/ return /*<>*/ caml_call5 + (Stdlib_Printf[4].call(null, locfmt), file, line, char$0, @@ -22623,9 +22059,8 @@ char$1 = match$0[3], line$0 = match$0[2], file$0 = match$0[1]; - /*<>*/ return /*<>*/ caml_call6 - (Stdlib_Printf[4], - locfmt, + /*<>*/ return /*<>*/ caml_call5 + (Stdlib_Printf[4].call(null, locfmt), file$0, line$0, char$1, @@ -22639,9 +22074,8 @@ char$2 = match$1[3], line$1 = match$1[2], file$1 = match$1[1]; - /*<>*/ return /*<>*/ caml_call6 - (Stdlib_Printf[4], - locfmt, + /*<>*/ return /*<>*/ caml_call5 + (Stdlib_Printf[4].call(null, locfmt), file$1, line$1, char$2, @@ -22658,17 +22092,16 @@ function print(fct, arg){ /*<>*/ try{ /*<>*/ /*<>*/ var - _$_ = /*<>*/ caml_call1(fct, arg); - /*<>*/ return _$_; + _ac_ = /*<>*/ caml_call1(fct, arg); + /*<>*/ return _ac_; } catch(x$0){ /*<>*/ var x = caml_wrap_exception(x$0), - /*<>*/ ___ = to_string(x); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _f_, ___); - /*<>*/ /*<>*/ caml_call1 - (Stdlib[63], Stdlib[40]); + /*<>*/ _ab_ = to_string(x); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _f_), _ab_); + /*<>*/ Stdlib[63].call(null, Stdlib[40]); /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (x, 0); } @@ -22676,19 +22109,17 @@ function catch$0(fct, arg){ /*<>*/ try{ /*<>*/ /*<>*/ var - _Z_ = /*<>*/ caml_call1(fct, arg); - /*<>*/ return _Z_; + _aa_ = /*<>*/ caml_call1(fct, arg); + /*<>*/ return _aa_; } catch(x$0){ var x = caml_wrap_exception(x$0); - /*<>*/ /*<>*/ caml_call1 - (Stdlib[63], Stdlib[39]); + /*<>*/ Stdlib[63].call(null, Stdlib[39]); /*<>*/ /*<>*/ var - _Y_ = to_string(x); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _g_, _Y_); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[99], 2); + _$_ = to_string(x); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _g_), _$_); + /*<>*/ return Stdlib[99].call(null, 2); } /*<>*/ } function raw_backtrace_entries(bt){ @@ -22704,35 +22135,51 @@ ? 0 === pos ? cst_Raised_at : cst_Re_raised_at : 0 === pos ? cst_Raised_by_primitive_operat : cst_Called_from; /*<>*/ } - /*<>*/ if(0 === slot[0]){ - /*<>*/ var + /*<>*/ if(0 !== slot[0]){ + if(slot[1]) /*<>*/ return 0; + /*<>*/ /*<>*/ var + ___ = info(0); + /*<>*/ return [0, + /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _k_), ___)]; + } + if(slot[3] === slot[6]) + var + _R_ = slot[3], lines = - slot[3] === slot[6] - ? /*<>*/ caml_call2 - (Stdlib_Printf[4], _h_, slot[3]) - : /*<>*/ caml_call3 - (Stdlib_Printf[4], _j_, slot[3], slot[6]), - _R_ = slot[7], - _S_ = slot[4], - _T_ = slot[8] ? cst_inlined : cst$3, - _U_ = slot[2], - _V_ = slot[9], - /*<>*/ _W_ = info(slot[1]); - /*<>*/ return [0, - /*<>*/ caml_call8 - (Stdlib_Printf[4], _i_, _W_, _V_, _U_, _T_, lines, _S_, _R_)]; - } - if(slot[1]) /*<>*/ return 0; - /*<>*/ /*<>*/ var _X_ = info(0); - /*<>*/ return [0, - /*<>*/ caml_call2(Stdlib_Printf[4], _k_, _X_)]; + /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _h_), _R_); + else + var + _Y_ = slot[6], + _Z_ = slot[3], + lines = + /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _j_), _Z_, _Y_); + /*<>*/ var + _S_ = slot[7], + _T_ = slot[4], + _U_ = slot[8] ? cst_inlined : cst$3, + _V_ = slot[2], + _W_ = slot[9], + /*<>*/ _X_ = info(slot[1]); + /*<>*/ return [0, + /*<>*/ caml_call7 + (Stdlib_Printf[4].call(null, _i_), + _X_, + _W_, + _V_, + _U_, + lines, + _T_, + _S_)]; /*<>*/ } function print_raw_backtrace(outchan, raw_backtrace){ /*<>*/ /*<>*/ var backtrace = convert_raw_backtrace(raw_backtrace); if(! backtrace) - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Printf[1], outchan, _m_); + /*<>*/ return Stdlib_Printf[1].call + (null, outchan, _m_); var a = backtrace[1], _P_ = a.length - 2 | 0, _O_ = 0; if(_P_ >= 0){ var i = _O_; @@ -22741,8 +22188,8 @@ match = format_backtrace_slot(i, caml_check_bound(a, i)[1 + i]); if(match){ var str = match[1]; - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], outchan, _l_, str); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, outchan, _l_), str); } /*<>*/ /*<>*/ var _Q_ = i + 1 | 0; @@ -22764,8 +22211,7 @@ /*<>*/ return cst_Program_not_linked_with_g_; /*<>*/ var a = backtrace[1], - /*<>*/ b = - /*<>*/ caml_call1(Stdlib_Buffer[1], 1024), + /*<>*/ b = Stdlib_Buffer[1].call(null, 1024), _M_ = a.length - 2 | 0, /*<>*/ _L_ = 0; if(_M_ >= 0){ @@ -22775,8 +22221,8 @@ match = format_backtrace_slot(i, caml_check_bound(a, i)[1 + i]); if(match){ var str = match[1]; - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[5], b, _n_, str); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[5].call(null, b, _n_), str); } /*<>*/ /*<>*/ var _N_ = i + 1 | 0; @@ -22784,8 +22230,7 @@ i = _N_; } } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[2], b); + /*<>*/ return Stdlib_Buffer[2].call(null, b); /*<>*/ } function backtrace_slot_is_raise(param){ /*<>*/ return 0 === param[0] ? param[1] : param[1]; @@ -22838,11 +22283,10 @@ /*<>*/ for(;;){ /*<>*/ var /*<>*/ old_printers = - /*<>*/ caml_call1(Stdlib_Atomic[3], printers), + Stdlib_Atomic[3].call(null, printers), /*<>*/ new_printers = [0, fn, old_printers], /*<>*/ success = - /*<>*/ caml_call3 - (Stdlib_Atomic[6], printers, old_printers, new_printers), + Stdlib_Atomic[6].call(null, printers, old_printers, new_printers), /*<>*/ _I_ = 1 - success; if(! _I_) /*<>*/ return _I_; } @@ -22879,21 +22323,18 @@ function default_uncaught_exception_han(exn, raw_backtrace){ /*<>*/ /*<>*/ var _F_ = to_string(exn); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _o_, _F_); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _o_), _F_); /*<>*/ print_raw_backtrace(Stdlib[40], raw_backtrace); /*<>*/ /*<>*/ var status = /*<>*/ runtime.caml_ml_debug_info_status(0); if(status < 0){ /*<>*/ var - /*<>*/ _G_ = - /*<>*/ caml_call1(Stdlib[18], status), + /*<>*/ _G_ = Stdlib[18].call(null, status), /*<>*/ _H_ = caml_check_bound(errors, _G_)[1 + _G_]; - /*<>*/ /*<>*/ caml_call1 - (Stdlib[53], _H_); + /*<>*/ Stdlib[53].call(null, _H_); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[63], Stdlib[40]); + /*<>*/ return Stdlib[63].call(null, Stdlib[40]); /*<>*/ } /*<>*/ /*<>*/ var uncaught_exception_handler = [0, default_uncaught_exception_han]; @@ -22924,8 +22365,7 @@ ? empty_backtrace : /*<>*/ caml_get_exception_raw_backtra(0); /*<>*/ try{ - /*<>*/ /*<>*/ caml_call1 - (Stdlib[103], 0); + /*<>*/ Stdlib[103].call(null, 0); } catch(_E_){} /*<>*/ try{ @@ -22941,28 +22381,24 @@ /*<>*/ raw_backtrace$0 = /*<>*/ caml_get_exception_raw_backtra(0), /*<>*/ _x_ = to_string(exn$0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _p_, _x_); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _p_), _x_); /*<>*/ print_raw_backtrace (Stdlib[40], raw_backtrace); /*<>*/ /*<>*/ var _y_ = to_string(exn); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[3], _q_, _y_); + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[3].call(null, _q_), _y_); /*<>*/ print_raw_backtrace (Stdlib[40], raw_backtrace$0); - var - _z_ = /*<>*/ caml_call1(Stdlib[63], Stdlib[40]); + var _z_ = Stdlib[63].call(null, Stdlib[40]); } var _B_ = _z_; } catch(_D_){ var _w_ = caml_wrap_exception(_D_); if(_w_ !== Stdlib[9]) throw caml_maybe_attach_backtrace(_w_, 0); - var - _B_ = - /*<>*/ caml_call1 - (Stdlib[53], cst_Fatal_error_out_of_memory_); + var _B_ = Stdlib[53].call(null, cst_Fatal_error_out_of_memory_); } /*<>*/ return _B_; } @@ -23017,6 +22453,7 @@ //# unitInfo: Provides: Stdlib__Fun //# unitInfo: Requires: Stdlib, Stdlib__Printexc +//# shape: Stdlib__Fun:[F(2),F(3),F(3),F(2),F(2),N] (function (globalThis){ "use strict"; @@ -23057,18 +22494,16 @@ /*<>*/ Finally_raised = [248, "Stdlib.Fun.Finally_raised", runtime.caml_fresh_oo_id(0)], cst_Fun_Finally_raised = "Fun.Finally_raised: "; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Printexc[9], + /*<>*/ Stdlib_Printexc[9].call + (null, function(param){ /*<>*/ if(param[1] !== Finally_raised) /*<>*/ return 0; /*<>*/ var exn = param[2], - /*<>*/ _a_ = - /*<>*/ caml_call1(Stdlib_Printexc[1], exn); + /*<>*/ _a_ = Stdlib_Printexc[1].call(null, exn); /*<>*/ return [0, - /*<>*/ caml_call2 - (Stdlib[28], cst_Fun_Finally_raised, _a_)]; + Stdlib[28].call(null, cst_Fun_Finally_raised, _a_)]; /*<>*/ }); function protect(finally$0, work){ function finally_no_exn(param){ @@ -23079,8 +22514,7 @@ catch(e$0){ /*<>*/ var e = caml_wrap_exception(e$0), - /*<>*/ bt = - /*<>*/ caml_call1(Stdlib_Printexc[12], 0), + /*<>*/ bt = Stdlib_Printexc[12].call(null, 0), /*<>*/ exn = [0, Finally_raised, e]; caml_restore_raw_backtrace(exn, bt); /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace @@ -23094,8 +22528,7 @@ catch(work_exn$0){ /*<>*/ var work_exn = caml_wrap_exception(work_exn$0), - /*<>*/ work_bt = - /*<>*/ caml_call1(Stdlib_Printexc[12], 0); + /*<>*/ work_bt = Stdlib_Printexc[12].call(null, 0); /*<>*/ finally_no_exn(0); caml_restore_raw_backtrace(work_exn, work_bt); /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace @@ -23113,6 +22546,7 @@ //# unitInfo: Provides: Stdlib__Gc //# unitInfo: Requires: Stdlib, Stdlib__Atomic, Stdlib__Domain, Stdlib__Fun, Stdlib__Printf, Stdlib__Sys +//# shape: Stdlib__Gc:[F(1),F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(1),N] (function (globalThis){ "use strict"; @@ -23129,16 +22563,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); } var global_data = runtime.caml_get_global_data(), @@ -23224,53 +22648,70 @@ function eventlog_resume(param){ /*<>*/ return 0; /*<>*/ } function print_stat(c){ - /*<>*/ /*<>*/ var - st = /*<>*/ runtime.caml_gc_stat(0); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], c, _a_, st[4]); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], c, _b_, st[5]); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], c, _c_, st[14]); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], c, _d_, st[17]); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[1], c, _e_); - /*<>*/ /*<>*/ var - l1 = + /*<>*/ var + /*<>*/ st = /*<>*/ runtime.caml_gc_stat(0), + /*<>*/ _z_ = st[4]; + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, c, _a_), _z_); + var _A_ = st[5]; + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, c, _b_), _A_); + var _B_ = st[14]; + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, c, _c_), _B_); + var _C_ = st[17]; + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, c, _d_), _C_); + /*<>*/ Stdlib_Printf[1].call(null, c, _e_); + /*<>*/ var + _D_ = st[1], + /*<>*/ l1 = /*<>*/ caml_ml_string_length - ( /*<>*/ caml_call2(Stdlib_Printf[4], _f_, st[1])); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _g_, l1, st[1]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _h_, l1, st[2]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _i_, l1, st[3]); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[1], c, _j_); - /*<>*/ /*<>*/ var - l2 = + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _f_), _D_)), + _E_ = st[1]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _g_), l1, _E_); + var _F_ = st[2]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _h_), l1, _F_); + var _G_ = st[3]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _i_), l1, _G_); + /*<>*/ Stdlib_Printf[1].call(null, c, _j_); + /*<>*/ var + _H_ = st[15], + /*<>*/ l2 = /*<>*/ caml_ml_string_length - ( /*<>*/ caml_call2(Stdlib_Printf[4], _k_, st[15])); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _l_, l2, st[15]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _m_, l2, st[6]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _n_, l2, st[8]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _o_, l2, st[10]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _p_, l2, st[12]); - /*<>*/ /*<>*/ caml_call4 - (Stdlib_Printf[1], c, _q_, l2, st[13]); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Printf[1], c, _r_); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], c, _s_, st[9]); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Printf[1], c, _t_, st[11]); - return caml_call3(Stdlib_Printf[1], c, _u_, st[7]); + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _k_), _H_)), + _I_ = st[15]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _l_), l2, _I_); + var _J_ = st[6]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _m_), l2, _J_); + var _K_ = st[8]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _n_), l2, _K_); + var _L_ = st[10]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _o_), l2, _L_); + var _M_ = st[12]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _p_), l2, _M_); + var _N_ = st[13]; + /*<>*/ /*<>*/ caml_call2 + (Stdlib_Printf[1].call(null, c, _q_), l2, _N_); + /*<>*/ Stdlib_Printf[1].call(null, c, _r_); + var _O_ = st[9]; + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, c, _s_), _O_); + var _P_ = st[11]; + /*<>*/ /*<>*/ caml_call1 + (Stdlib_Printf[1].call(null, c, _t_), _P_); + var _Q_ = st[7]; + return caml_call1(Stdlib_Printf[1].call(null, c, _u_), _Q_); /*<>*/ } function allocated_bytes(param){ /*<>*/ var @@ -23282,14 +22723,13 @@ /*<>*/ return (mi + ma - pro) * (Stdlib_Sys[9] / 8 | 0); /*<>*/ } function delete_alarm(a){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Atomic[4], a, 0); + /*<>*/ return Stdlib_Atomic[4].call(null, a, 0); /*<>*/ } function create_alarm(f){ /*<>*/ /*<>*/ var - _y_ = /*<>*/ caml_call1(Stdlib_Atomic[1], 1); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Domain[6], + _y_ = Stdlib_Atomic[1].call(null, 1); + /*<>*/ Stdlib_Domain[6].call + (null, function(param){ /*<>*/ return delete_alarm(_y_); /*<>*/ }); @@ -23334,6 +22774,7 @@ //# unitInfo: Provides: Stdlib__In_channel //# unitInfo: Requires: Stdlib, Stdlib__Bytes, Stdlib__Fun, Stdlib__Sys +//# shape: Stdlib__In_channel:[N,F(1),F(1),F(3),F(2),F(2),F(4),F(1),F(1),F(1),F(1),F(1),F(2),F(1),F(1),F(4),F(4),F(4),F(4),F(3),N,N,N,F(2),F(1),F(1)] (function (globalThis){ "use strict"; @@ -23354,21 +22795,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 2 ? f(a0, a1) : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call3(f, a0, a1, a2){ - return (f.l >= 0 ? f.l : f.l = f.length) == 3 - ? f(a0, a1, a2) - : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var global_data = runtime.caml_get_global_data(), @@ -23383,11 +22809,10 @@ function with_open(openfun, s, f){ /*<>*/ /*<>*/ var ic = /*<>*/ caml_call1(openfun, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Fun[5], + /*<>*/ return Stdlib_Fun[5].call + (null, function(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[94], ic); + /*<>*/ return Stdlib[94].call(null, ic); /*<>*/ }, function(param){ /*<>*/ return /*<>*/ caml_call1 @@ -23401,10 +22826,9 @@ /*<>*/ return with_open(Stdlib[79], s, f); /*<>*/ } function with_open_gen(flags, perm, s, f){ + /*<>*/ var _y_ = Stdlib[81]; /*<>*/ return with_open - ( /*<>*/ caml_call2(Stdlib[81], flags, perm), - s, - f); + (function(_z_){ /*<>*/ return _y_(flags, perm, _z_);}, s, f); /*<>*/ } var seek = Stdlib[96][4], @@ -23415,7 +22839,7 @@ function input_char(ic){ /*<>*/ try{ /*<>*/ /*<>*/ var - c = /*<>*/ caml_call1(Stdlib[82], ic); + c = Stdlib[82].call(null, ic); } catch(_x_){ var _w_ = caml_wrap_exception(_x_); @@ -23427,7 +22851,7 @@ function input_byte(ic){ /*<>*/ try{ /*<>*/ /*<>*/ var - n = /*<>*/ caml_call1(Stdlib[87], ic); + n = Stdlib[87].call(null, ic); } catch(_v_){ var _u_ = caml_wrap_exception(_v_); @@ -23439,7 +22863,7 @@ function input_line(ic){ /*<>*/ try{ /*<>*/ /*<>*/ var - s = /*<>*/ caml_call1(Stdlib[83], ic); + s = Stdlib[83].call(null, ic); } catch(_t_){ var _s_ = caml_wrap_exception(_t_); @@ -23464,13 +22888,12 @@ && ( /*<>*/ caml_ba_dim_1(buf) - len | 0) >= ofs) /*<>*/ return /*<>*/ caml_ml_input_bigarray (ic, buf, ofs, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_input_bigarray); + /*<>*/ return Stdlib[1].call + (null, cst_input_bigarray); /*<>*/ } function really_input(ic, buf, pos, len){ /*<>*/ try{ - /*<>*/ /*<>*/ caml_call4 - (Stdlib[85], ic, buf, pos, len); + /*<>*/ Stdlib[85].call(null, ic, buf, pos, len); /*<>*/ return _a_; } catch(_r_){ @@ -23500,13 +22923,13 @@ len = len$0; } } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_really_input_bigarray); + /*<>*/ return Stdlib[1].call + (null, cst_really_input_bigarray); /*<>*/ } function really_input_string(ic, len){ /*<>*/ try{ /*<>*/ /*<>*/ var - s = /*<>*/ caml_call2(Stdlib[86], ic, len); + s = Stdlib[86].call(null, ic, len); } catch(_p_){ var _o_ = caml_wrap_exception(_p_); @@ -23520,9 +22943,7 @@ /*<>*/ for(;;){ if(0 !== len$0){ /*<>*/ /*<>*/ var - r = - /*<>*/ caml_call4 - (Stdlib[84], ic, buf, ofs$0, len$0); + r = Stdlib[84].call(null, ic, buf, ofs$0, len$0); /*<>*/ if(0 !== r){ var len$1 = len$0 - r | 0, ofs$1 = ofs$0 + r | 0; ofs$0 = ofs$1; @@ -23550,12 +22971,11 @@ : ofs < Stdlib_Sys[12] ? Stdlib_Sys[12] - : /*<>*/ caml_call1 - (Stdlib[2], cst_In_channel_input_all_chann), + : Stdlib[2].call(null, cst_In_channel_input_all_chann), /*<>*/ new_buf = /*<>*/ caml_create_bytes(new_len$1); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[11], buf, 0, new_buf, 0, ofs); + /*<>*/ Stdlib_Bytes[11].call + (null, buf, 0, new_buf, 0, ofs); /*<>*/ return new_buf; /*<>*/ } function input_all(ic){ @@ -23563,10 +22983,8 @@ chunk_size = 65536; /*<>*/ try{ /*<>*/ var - /*<>*/ _k_ = - /*<>*/ caml_call1(Stdlib[91], ic), - /*<>*/ _l_ = - /*<>*/ caml_call1(Stdlib[92], ic) - _k_ | 0, + /*<>*/ _k_ = Stdlib[91].call(null, ic), + /*<>*/ _l_ = Stdlib[92].call(null, ic) - _k_ | 0, initial_size = _l_; } catch(_n_){ @@ -23584,17 +23002,16 @@ /*<>*/ nread = read_upto(ic, buf, 0, initial_size$1); if(nread < initial_size$1) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[8], buf, 0, nread); + /*<>*/ return Stdlib_Bytes[8].call + (null, buf, 0, nread); /*<>*/ try{ /*<>*/ /*<>*/ var - c = /*<>*/ caml_call1(Stdlib[82], ic); + c = Stdlib[82].call(null, ic); } catch(_m_){ var _j_ = caml_wrap_exception(_m_); if(_j_ === Stdlib[12]) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], buf); + /*<>*/ return Stdlib_Bytes[44].call(null, buf); throw caml_maybe_attach_backtrace(_j_, 0); } /*<>*/ /*<>*/ var @@ -23611,8 +23028,8 @@ rem = caml_ml_bytes_length(buf$1) - ofs | 0, /*<>*/ r = read_upto(ic, buf$1, ofs, rem); if(r < rem) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Bytes[8], buf$1, 0, ofs + r | 0); + /*<>*/ return Stdlib_Bytes[8].call + (null, buf$1, 0, ofs + r | 0); var ofs$0 = ofs + rem | 0; buf$0 = buf$1; ofs = ofs$0; @@ -23621,7 +23038,7 @@ function input_lines(ic){ /*<>*/ try{ /*<>*/ /*<>*/ var - line = /*<>*/ caml_call1(Stdlib[83], ic); + line = Stdlib[83].call(null, ic); } catch(_h_){ var _e_ = caml_wrap_exception(_h_); @@ -23635,7 +23052,7 @@ /*<>*/ for(;;){ /*<>*/ try{ /*<>*/ /*<>*/ var - line$0 = /*<>*/ caml_call1(Stdlib[83], ic); + line$0 = Stdlib[83].call(null, ic); } catch(_g_){ var _f_ = caml_wrap_exception(_g_); @@ -23655,7 +23072,7 @@ /*<>*/ for(;;){ /*<>*/ try{ /*<>*/ /*<>*/ var - line = /*<>*/ caml_call1(Stdlib[83], ic); + line = Stdlib[83].call(null, ic); } catch(_d_){ var _c_ = caml_wrap_exception(_d_); @@ -23704,6 +23121,7 @@ //# unitInfo: Provides: Stdlib__Out_channel //# unitInfo: Requires: Stdlib, Stdlib__Fun +//# shape: Stdlib__Out_channel:[N,N,F(1),F(1),F(3),F(2),F(2),F(4),F(1),F(1),F(2),F(2),F(2),F(2),F(4),F(4),F(4),F(1),F(1),N,N,N,F(2),F(1),F(2),F(1),F(1)] (function (globalThis){ "use strict"; @@ -23712,11 +23130,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); } var global_data = runtime.caml_get_global_data(), @@ -23730,11 +23143,10 @@ function with_open(openfun, s, f){ /*<>*/ /*<>*/ var oc = /*<>*/ caml_call1(openfun, s); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Fun[5], + /*<>*/ return Stdlib_Fun[5].call + (null, function(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[77], oc); + /*<>*/ return Stdlib[77].call(null, oc); /*<>*/ }, function(param){ /*<>*/ return /*<>*/ caml_call1 @@ -23748,10 +23160,9 @@ /*<>*/ return with_open(Stdlib[60], s, f); /*<>*/ } function with_open_gen(flags, perm, s, f){ + /*<>*/ var _a_ = Stdlib[62]; /*<>*/ return with_open - ( /*<>*/ caml_call2(Stdlib[62], flags, perm), - s, - f); + (function(_b_){ /*<>*/ return _a_(flags, perm, _b_);}, s, f); /*<>*/ } var seek = Stdlib[96][1], @@ -23778,8 +23189,8 @@ >= ofs) /*<>*/ return /*<>*/ runtime.caml_ml_output_bigarray (oc, buf, ofs, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_output_bigarray); + /*<>*/ return Stdlib[1].call + (null, cst_output_bigarray); /*<>*/ } var set_binary_mode = Stdlib[78], @@ -23819,6 +23230,7 @@ //# unitInfo: Provides: Stdlib__Digest //# unitInfo: Requires: Stdlib, Stdlib__Bytes, Stdlib__Char, Stdlib__In_channel, Stdlib__Int, Stdlib__String +//# shape: Stdlib__Digest:[F(2),F(2),F(1),F(1),F(3),F(3),F(2),F(1),F(2),F(1),F(1),F(1),F(1),N,N,N,N] (function (globalThis){ "use strict"; @@ -23837,23 +23249,7 @@ caml_md5_chan = runtime.caml_md5_chan, caml_md5_string = runtime.caml_md5_string, caml_ml_string_length = runtime.caml_ml_string_length, - caml_string_get = runtime.caml_string_get; - /*<>*/ function caml_call1(f, a0){ - return (f.l >= 0 ? f.l : f.l = f.length) == 1 - ? f(a0) - : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - var + caml_string_get = runtime.caml_string_get, global_data = runtime.caml_get_global_data(), Stdlib = global_data.Stdlib, Stdlib_In_channel = global_data.Stdlib__In_channel, @@ -23870,7 +23266,7 @@ /*<>*/ function char_hex(n){ /*<>*/ var _l_ = 10 <= n ? (97 + n | 0) - 10 | 0 : 48 + n | 0; - return caml_call1(Stdlib_Char[1], _l_); + return Stdlib_Char[1].call(null, _l_); /*<>*/ } /*<>*/ var /*<>*/ len = @@ -23891,8 +23287,7 @@ i = _k_; } } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], result); + /*<>*/ return Stdlib_Bytes[44].call(null, result); /*<>*/ } function string_of_hex(s){ /*<>*/ function digit(c){ @@ -23903,11 +23298,10 @@ else if(71 > c) return (c - 65 | 0) + 10 | 0; } else if(9 >= c - 48 >>> 0) return c - 48 | 0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_of_hex); + /*<>*/ return Stdlib[1].call(null, cst_Digest_of_hex); /*<>*/ } - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_String[2], + /*<>*/ return Stdlib_String[2].call + (null, caml_ml_string_length(s) / 2 | 0, function(i){ /*<>*/ var @@ -23920,15 +23314,14 @@ << 4) + _g_ | 0; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Char[1], _h_); + /*<>*/ return Stdlib_Char[1].call(null, _h_); /*<>*/ }); /*<>*/ } function BLAKE2(X){ var _a_ = X[1] < 1 ? 1 : 0, _b_ = _a_ || (64 < X[1] ? 1 : 0); if(_b_) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_BLAKE2_wrong_hash_s); + /*<>*/ Stdlib[1].call + (null, cst_Digest_BLAKE2_wrong_hash_s); var hash_length = X[1], compare = Stdlib_String[10], @@ -23938,8 +23331,7 @@ (hash_length, cst, str, 0, caml_ml_string_length(str)); /*<>*/ } function bytes(b){ - /*<>*/ return string - ( /*<>*/ caml_call1(Stdlib_Bytes[44], b)); + /*<>*/ return string(Stdlib_Bytes[44].call(null, b)); /*<>*/ } function substring(str, ofs, len){ /*<>*/ var _d_ = ofs < 0 ? 1 : 0; @@ -23950,16 +23342,13 @@ _f_ = len < 0 ? 1 : 0, _e_ = _f_ || ((caml_ml_string_length(str) - len | 0) < ofs ? 1 : 0); if(_e_) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_substring); + /*<>*/ Stdlib[1].call(null, cst_Digest_substring); /*<>*/ return /*<>*/ caml_blake2_string (hash_length, cst, str, ofs, len); /*<>*/ } function subbytes(b, ofs, len){ /*<>*/ return substring - ( /*<>*/ caml_call1(Stdlib_Bytes[44], b), - ofs, - len); + (Stdlib_Bytes[44].call(null, b), ofs, len); /*<>*/ } function channel(ic, toread){ /*<>*/ var @@ -23976,19 +23365,14 @@ (ctx, hash_length); /*<>*/ var /*<>*/ _c_ = - /*<>*/ caml_call2 - (Stdlib_Int[10], buf_size, toread$0), + Stdlib_Int[10].call(null, buf_size, toread$0), /*<>*/ n = - /*<>*/ caml_call4 - (Stdlib_In_channel[16], ic, buf, 0, _c_); + Stdlib_In_channel[16].call(null, ic, buf, 0, _c_); /*<>*/ if(0 === n) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Stdlib[12], 1); /*<>*/ /*<>*/ caml_blake2_update - (ctx, - /*<>*/ caml_call1(Stdlib_Bytes[44], buf), - 0, - n); + (ctx, Stdlib_Bytes[44].call(null, buf), 0, n); var toread$1 = toread$0 - n | 0; toread$0 = toread$1; } @@ -23996,46 +23380,37 @@ else /*<>*/ for(;;){ /*<>*/ /*<>*/ var - n$0 = - /*<>*/ caml_call4 - (Stdlib_In_channel[16], ic, buf, 0, buf_size); + n$0 = Stdlib_In_channel[16].call(null, ic, buf, 0, buf_size); /*<>*/ if(0 === n$0) /*<>*/ return /*<>*/ caml_blake2_final (ctx, hash_length); /*<>*/ /*<>*/ caml_blake2_update - (ctx, - /*<>*/ caml_call1(Stdlib_Bytes[44], buf), - 0, - n$0); + (ctx, Stdlib_Bytes[44].call(null, buf), 0, n$0); } /*<>*/ } function file(filename){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_In_channel[5], + /*<>*/ return Stdlib_In_channel[5].call + (null, filename, function(ic){ /*<>*/ return channel(ic, -1); /*<>*/ }); /*<>*/ } function output(chan, digest){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[66], chan, digest); + /*<>*/ return Stdlib[66].call(null, chan, digest); /*<>*/ } function input(chan){ - /*<>*/ return caml_call2 - (Stdlib[86], chan, hash_length); + /*<>*/ return Stdlib[86].call(null, chan, hash_length); /*<>*/ } function to_hex(d){ /*<>*/ if(caml_ml_string_length(d) !== hash_length) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_to_hex); + /*<>*/ Stdlib[1].call(null, cst_Digest_to_hex); /*<>*/ return hex_of_string(d); /*<>*/ } function of_hex(s){ /*<>*/ if (caml_ml_string_length(s) !== (hash_length * 2 | 0)) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_of_hex$0); + /*<>*/ Stdlib[1].call(null, cst_Digest_of_hex$0); /*<>*/ return string_of_hex(s); /*<>*/ } /*<>*/ return [0, @@ -24067,26 +23442,23 @@ (str, 0, caml_ml_string_length(str)); /*<>*/ } function bytes(b){ - /*<>*/ return string - ( /*<>*/ caml_call1(Stdlib_Bytes[44], b)); + /*<>*/ return string(Stdlib_Bytes[44].call(null, b)); /*<>*/ } function substring(str, ofs, len){ /*<>*/ if (0 <= ofs && 0 <= len && (caml_ml_string_length(str) - len | 0) >= ofs) /*<>*/ return /*<>*/ caml_md5_string (str, ofs, len); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_substring$0); + /*<>*/ return Stdlib[1].call + (null, cst_Digest_substring$0); /*<>*/ } function subbytes(b, ofs, len){ /*<>*/ return substring - ( /*<>*/ caml_call1(Stdlib_Bytes[44], b), - ofs, - len); + (Stdlib_Bytes[44].call(null, b), ofs, len); /*<>*/ } function file(filename){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_In_channel[5], + /*<>*/ return Stdlib_In_channel[5].call + (null, filename, function(ic){ /*<>*/ return /*<>*/ caml_md5_chan @@ -24094,23 +23466,19 @@ /*<>*/ }); /*<>*/ } function output(chan, digest){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[66], chan, digest); + /*<>*/ return Stdlib[66].call(null, chan, digest); /*<>*/ } function input(chan){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[86], chan, 16); + /*<>*/ return Stdlib[86].call(null, chan, 16); /*<>*/ } function to_hex(d){ /*<>*/ if(16 !== caml_ml_string_length(d)) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_to_hex$0); + /*<>*/ Stdlib[1].call(null, cst_Digest_to_hex$0); /*<>*/ return hex_of_string(d); /*<>*/ } function of_hex(s){ /*<>*/ if(32 !== caml_ml_string_length(s)) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Digest_from_hex); + /*<>*/ Stdlib[1].call(null, cst_Digest_from_hex); /*<>*/ return string_of_hex(s); /*<>*/ } var @@ -24153,6 +23521,7 @@ //# unitInfo: Provides: Stdlib__Bigarray //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__Sys +//# shape: Stdlib__Bigarray:[N,N,N,N,N,N,N,N,N,N,N,N,N,N,F(1),N,N,N,N,N,N,N,F(1),F(1),F(1),F(1),F(2),F(1),F(2),F(3),F(4)] (function (globalThis){ "use strict"; @@ -24328,8 +23697,7 @@ /*<>*/ var /*<>*/ _ac_ = dims(arr), /*<>*/ _ad_ = - /*<>*/ caml_call3 - (Stdlib_Array[18], caml_mul, 1, _ac_); + Stdlib_Array[18].call(null, caml_mul, 1, _ac_); /*<>*/ return /*<>*/ caml_mul (kind_size_in_bytes( /*<>*/ caml_ba_kind(arr)), _ad_); @@ -24523,8 +23891,8 @@ /*<>*/ /*<>*/ var row = caml_check_bound(data, i)[1 + i]; if(row.length - 1 !== dim2) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_Array2_of_array_n); + /*<>*/ Stdlib[1].call + (null, cst_Bigarray_Array2_of_array_n); /*<>*/ var /*<>*/ _E_ = dim2 - 1 | 0, /*<>*/ _D_ = 0; @@ -24685,8 +24053,8 @@ /*<>*/ /*<>*/ var row = caml_check_bound(data, i)[1 + i]; if(row.length - 1 !== dim2) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_Array3_of_array_n); + /*<>*/ Stdlib[1].call + (null, cst_Bigarray_Array3_of_array_n); /*<>*/ var /*<>*/ _d_ = dim2 - 1 | 0, /*<>*/ _c_ = 0; @@ -24696,8 +24064,8 @@ /*<>*/ /*<>*/ var col = caml_check_bound(row, j)[1 + j]; if(col.length - 1 !== dim3) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_Array3_of_array_n$0); + /*<>*/ Stdlib[1].call + (null, cst_Bigarray_Array3_of_array_n$0); /*<>*/ var /*<>*/ _g_ = dim3 - 1 | 0, /*<>*/ _f_ = 0; @@ -24734,29 +24102,25 @@ /*<>*/ return 0 === /*<>*/ caml_ba_num_dims(a) ? a - : /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_array0_of_genarra); + : Stdlib[1].call(null, cst_Bigarray_array0_of_genarra); /*<>*/ } function array1_of_genarray(a){ /*<>*/ return 1 === /*<>*/ caml_ba_num_dims(a) ? a - : /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_array1_of_genarra); + : Stdlib[1].call(null, cst_Bigarray_array1_of_genarra); /*<>*/ } function array2_of_genarray(a){ /*<>*/ return 2 === /*<>*/ caml_ba_num_dims(a) ? a - : /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_array2_of_genarra); + : Stdlib[1].call(null, cst_Bigarray_array2_of_genarra); /*<>*/ } function array3_of_genarray(a){ /*<>*/ return 3 === /*<>*/ caml_ba_num_dims(a) ? a - : /*<>*/ caml_call1 - (Stdlib[1], cst_Bigarray_array3_of_genarra); + : Stdlib[1].call(null, cst_Bigarray_array3_of_genarra); /*<>*/ } function reshape_0(a){ /*<>*/ return /*<>*/ caml_ba_reshape @@ -24844,6 +24208,7 @@ //# unitInfo: Provides: Stdlib__Random //# unitInfo: Requires: Stdlib, Stdlib__Bigarray, Stdlib__Bytes, Stdlib__Digest, Stdlib__Domain, Stdlib__Int32, Stdlib__Int64, Stdlib__Nativeint, Stdlib__String, Stdlib__Sys +//# shape: Stdlib__Random:[F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(1),F(1),F(1),F(1),N,F(1),F(1),F(1)] (function (globalThis){ "use strict"; @@ -24879,11 +24244,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var global_data = runtime.caml_get_global_data(), @@ -24931,53 +24291,35 @@ function to_binary_string(s){ /*<>*/ /*<>*/ var buf = /*<>*/ caml_create_bytes(37); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Bytes[12], - serialization_prefix, - 0, - buf, - 0, - serialization_prefix_len); + /*<>*/ Stdlib_Bytes[12].call + (null, serialization_prefix, 0, buf, 0, serialization_prefix_len); var i = 0; for(;;){ /*<>*/ /*<>*/ var _y_ = /*<>*/ runtime.caml_ba_get_1(s, i); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Bytes[86], buf, 5 + (i * 8 | 0) | 0, _y_); + /*<>*/ Stdlib_Bytes[86].call + (null, buf, 5 + (i * 8 | 0) | 0, _y_); /*<>*/ /*<>*/ var _z_ = i + 1 | 0; if(3 === i) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Bytes[44], buf); + /*<>*/ return Stdlib_Bytes[44].call(null, buf); i = _z_; } /*<>*/ } function of_binary_string(buf){ /*<>*/ var _v_ = runtime.caml_ml_string_length(buf) !== 37 ? 1 : 0, - _w_ = - _v_ - || - 1 - - - /*<>*/ caml_call2 - (Stdlib_String[11], serialization_prefix, buf); + _w_ = _v_ || 1 - Stdlib_String[11].call(null, serialization_prefix, buf); if(_w_){ /*<>*/ /*<>*/ var _x_ = - /*<>*/ caml_call2 - (Stdlib[28], cst_Random_State_of_binary_str, Stdlib_Sys[46]); - /*<>*/ /*<>*/ caml_call1 - (Stdlib[2], _x_); + Stdlib[28].call(null, cst_Random_State_of_binary_str, Stdlib_Sys[46]); + /*<>*/ Stdlib[2].call(null, _x_); } /*<>*/ var - /*<>*/ i1 = - /*<>*/ caml_call2(Stdlib_String[64], buf, 5), - /*<>*/ i2 = - /*<>*/ caml_call2(Stdlib_String[64], buf, 13), - /*<>*/ i3 = - /*<>*/ caml_call2(Stdlib_String[64], buf, 21), - /*<>*/ i4 = - /*<>*/ caml_call2(Stdlib_String[64], buf, 29); + /*<>*/ i1 = Stdlib_String[64].call(null, buf, 5), + /*<>*/ i2 = Stdlib_String[64].call(null, buf, 13), + /*<>*/ i3 = Stdlib_String[64].call(null, buf, 21), + /*<>*/ i4 = Stdlib_String[64].call(null, buf, 29); /*<>*/ return mk(i1, i2, i3, i4); /*<>*/ } function copy(src){ @@ -24999,8 +24341,7 @@ _t_ = /*<>*/ caml_int64_of_int32 (runtime.caml_check_bound(seed, i)[1 + i]); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_Bytes[86], b, i * 8 | 0, _t_); + /*<>*/ Stdlib_Bytes[86].call(null, b, i * 8 | 0, _t_); /*<>*/ /*<>*/ var _u_ = i + 1 | 0; if(_p_ === i) break; i = _u_; @@ -25009,24 +24350,16 @@ /*<>*/ /*<>*/ caml_bytes_set (b, n * 8 | 0, 1); /*<>*/ /*<>*/ var - d1 = /*<>*/ caml_call1(Stdlib_Digest[4], b); + d1 = Stdlib_Digest[4].call(null, b); /*<>*/ /*<>*/ caml_bytes_set (b, n * 8 | 0, 2); /*<>*/ var - /*<>*/ d2 = - /*<>*/ caml_call1(Stdlib_Digest[4], b), - /*<>*/ _q_ = - /*<>*/ caml_call2(Stdlib_String[64], d2, 8), - /*<>*/ _r_ = - /*<>*/ caml_call2(Stdlib_String[64], d2, 0), - /*<>*/ _s_ = - /*<>*/ caml_call2(Stdlib_String[64], d1, 8); + /*<>*/ d2 = Stdlib_Digest[4].call(null, b), + /*<>*/ _q_ = Stdlib_String[64].call(null, d2, 8), + /*<>*/ _r_ = Stdlib_String[64].call(null, d2, 0), + /*<>*/ _s_ = Stdlib_String[64].call(null, d1, 8); /*<>*/ return set - (s, - /*<>*/ caml_call2(Stdlib_String[64], d1, 0), - _s_, - _r_, - _q_); + (s, Stdlib_String[64].call(null, d1, 0), _s_, _r_, _q_); /*<>*/ } function make(seed){ /*<>*/ /*<>*/ var s = create(0); @@ -25065,13 +24398,11 @@ function int$0(s, bound){ /*<>*/ if(1073741823 >= bound && 0 < bound) return int_aux(s, bound, max_int31); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Random_int); + /*<>*/ return Stdlib[1].call(null, cst_Random_int); /*<>*/ } function full_int(s, bound){ /*<>*/ if(0 >= bound) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Random_full_int); + /*<>*/ return Stdlib[1].call(null, cst_Random_full_int); var _n_ = bound <= 1073741823 @@ -25095,8 +24426,7 @@ /*<>*/ } function int_in_range(s, min, max){ /*<>*/ if(max < min) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Random_int_in_range); + /*<>*/ Stdlib[1].call(null, cst_Random_int_in_range); if(-1073741824 <= min && max <= 1073741823) /*<>*/ return int_in_range_aux (s, min, max, max_int31, 31); @@ -25125,17 +24455,16 @@ function int32(s, bound){ /*<>*/ return /*<>*/ caml_lessequal (bound, 0) - ? /*<>*/ caml_call1(Stdlib[1], cst_Random_int32) + ? Stdlib[1].call(null, cst_Random_int32) : int32aux(s, bound); /*<>*/ } function int32_in_range(s, min, max){ /*<>*/ if ( /*<>*/ caml_greaterthan(min, max)) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Random_int32_in_range); + /*<>*/ return Stdlib[1].call + (null, cst_Random_int32_in_range); /*<>*/ /*<>*/ var - span = - /*<>*/ caml_call1(Stdlib_Int32[6], max - min | 0); + span = Stdlib_Int32[6].call(null, max - min | 0); /*<>*/ if (! /*<>*/ caml_lessequal(span, Stdlib_Int32[1])) /*<>*/ return min + int32aux(s, span) | 0; @@ -25177,18 +24506,18 @@ function int64(s, bound){ /*<>*/ return /*<>*/ caml_lessequal (bound, _g_) - ? /*<>*/ caml_call1(Stdlib[1], cst_Random_int64) + ? Stdlib[1].call(null, cst_Random_int64) : int64aux(s, bound); /*<>*/ } function int64_in_range(s, min, max){ /*<>*/ if ( /*<>*/ caml_greaterthan(min, max)) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Random_int64_in_range); + /*<>*/ return Stdlib[1].call + (null, cst_Random_int64_in_range); /*<>*/ /*<>*/ var span = - /*<>*/ caml_call1 - (Stdlib_Int64[6], /*<>*/ caml_int64_sub(max, min)); + Stdlib_Int64[6].call + (null, /*<>*/ caml_int64_sub(max, min)); /*<>*/ if (! /*<>*/ caml_lessequal(span, Stdlib_Int64[1])) /*<>*/ return /*<>*/ caml_int64_add @@ -25453,6 +24782,7 @@ //# unitInfo: Provides: Stdlib__Hashtbl //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__Atomic, Stdlib__Domain, Stdlib__Int, Stdlib__Random, Stdlib__Seq, Stdlib__String, Stdlib__Sys +//# shape: Stdlib__Hashtbl:[F(2),F(1),F(1),F(1),F(3),F(2),F(2),F(2),F(2),F(2),F(3),F(2),F(2),F(3),F(1),F(1),F(1),F(2),F(1),F(1),F(1),F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(2),F(3),F(4)] (function (globalThis){ "use strict"; @@ -25479,11 +24809,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); } var global_data = runtime.caml_get_global_data(), @@ -25501,9 +24826,9 @@ var Stdlib_String = global_data.Stdlib__String; function ongoing_traversal(h){ /*<>*/ var - _an_ = h.length - 1 < 4 ? 1 : 0, - _ao_ = _an_ || (h[4] < 0 ? 1 : 0); - return _ao_; + _at_ = h.length - 1 < 4 ? 1 : 0, + _au_ = _at_ || (h[4] < 0 ? 1 : 0); + return _au_; /*<>*/ } function flip_ongoing_traversal(h){ /*<>*/ h[4] = - h[4] | 0; @@ -25517,8 +24842,8 @@ /*<>*/ caml_sys_getenv("OCAMLRUNPARAM"), params = _f_; } - catch(_al_){ - var _a_ = caml_wrap_exception(_al_); + catch(_ar_){ + var _a_ = caml_wrap_exception(_ar_); if(_a_ !== Stdlib[8]) throw caml_maybe_attach_backtrace(_a_, 0); /*<>*/ try{ /*<>*/ var @@ -25526,8 +24851,8 @@ /*<>*/ caml_sys_getenv("CAMLRUNPARAM"), _c_ = _e_; } - catch(_am_){ - var _b_ = caml_wrap_exception(_am_); + catch(_as_){ + var _b_ = caml_wrap_exception(_as_); if(_b_ !== Stdlib[8]) throw caml_maybe_attach_backtrace(_b_, 0); var _c_ = cst; } @@ -25535,16 +24860,15 @@ } /*<>*/ var /*<>*/ randomized_default = - /*<>*/ caml_call2(Stdlib_String[15], params, 82), + Stdlib_String[15].call(null, params, 82), /*<>*/ randomized = - /*<>*/ caml_call1 - (Stdlib_Atomic[1], randomized_default); + Stdlib_Atomic[1].call(null, randomized_default); function randomize(param){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Atomic[4], randomized, 1); + /*<>*/ return Stdlib_Atomic[4].call + (null, randomized, 1); /*<>*/ } function is_randomized(param){ - /*<>*/ return caml_call1(Stdlib_Atomic[3], randomized); + /*<>*/ return Stdlib_Atomic[3].call(null, randomized); /*<>*/ } /*<>*/ /*<>*/ var prng_key = @@ -25561,16 +24885,13 @@ /*<>*/ } function create(opt, initial_size){ /*<>*/ var - random = - opt - ? opt[1] - : /*<>*/ caml_call1(Stdlib_Atomic[3], randomized), + random = opt ? opt[1] : Stdlib_Atomic[3].call(null, randomized), /*<>*/ s = power_2_above(16, initial_size); /*<>*/ if(random) /*<>*/ var - /*<>*/ _ak_ = + /*<>*/ _aq_ = /*<>*/ caml_call1(Stdlib_Domain[10][2], prng_key), - seed = /*<>*/ caml_call1(Stdlib_Random[19][4], _ak_); + seed = /*<>*/ caml_call1(Stdlib_Random[19][4], _aq_); else var seed = 0; /*<>*/ return [0, @@ -25580,24 +24901,20 @@ s]; } function clear(h){ - /*<>*/ var _aj_ = 0 < h[1] ? 1 : 0; - return _aj_ + /*<>*/ var _ap_ = 0 < h[1] ? 1 : 0; + return _ap_ ? (h [1] = 0, - /*<>*/ caml_call4 - (Stdlib_Array[8], h[2], 0, h[2].length - 1, 0)) - : _aj_; + Stdlib_Array[8].call(null, h[2], 0, h[2].length - 1, 0)) + : _ap_; /*<>*/ } function reset(h){ /*<>*/ var len = h[2].length - 1; - if - (4 <= h.length - 1 - && len !== /*<>*/ caml_call1(Stdlib[18], h[4])){ + if(4 <= h.length - 1 && len !== Stdlib[18].call(null, h[4])){ h[1] = 0; h[2] = - /*<>*/ caml_make_vect - ( /*<>*/ caml_call1(Stdlib[18], h[4]), 0); + /*<>*/ caml_make_vect(Stdlib[18].call(null, h[4]), 0); return 0; } /*<>*/ return clear(h); @@ -25625,12 +24942,11 @@ /*<>*/ } function copy(h){ /*<>*/ var - _ag_ = h[4], - _ah_ = h[3], - /*<>*/ _ai_ = - /*<>*/ caml_call2 - (Stdlib_Array[14], copy_bucketlist, h[2]); - /*<>*/ return [0, h[1], _ai_, _ah_, _ag_]; + _am_ = h[4], + _an_ = h[3], + /*<>*/ _ao_ = + Stdlib_Array[14].call(null, copy_bucketlist, h[2]); + /*<>*/ return [0, h[1], _ao_, _an_, _am_]; /*<>*/ } function length(h){ /*<>*/ return h[1]; @@ -25640,10 +24956,10 @@ nsize = ndata.length - 1, /*<>*/ ndata_tail = /*<>*/ caml_make_vect(nsize, 0), - _aa_ = odata.length - 2 | 0, - /*<>*/ _$_ = 0; - if(_aa_ >= 0){ - var i$0 = _$_; + _ag_ = odata.length - 2 | 0, + /*<>*/ _af_ = 0; + if(_ag_ >= 0){ + var i$0 = _af_; for(;;){ /*<>*/ var /*<>*/ cell$1 = @@ -25669,40 +24985,40 @@ cell = next; } /*<>*/ /*<>*/ var - _af_ = i$0 + 1 | 0; - if(_aa_ === i$0) break; - i$0 = _af_; + _al_ = i$0 + 1 | 0; + if(_ag_ === i$0) break; + i$0 = _al_; } } if(inplace){ /*<>*/ var - _ac_ = nsize - 1 | 0, - /*<>*/ _ab_ = 0; - if(_ac_ >= 0){ - var i = _ab_; + _ai_ = nsize - 1 | 0, + /*<>*/ _ah_ = 0; + if(_ai_ >= 0){ + var i = _ah_; for(;;){ /*<>*/ /*<>*/ var match$0 = caml_check_bound(ndata_tail, i)[1 + i]; if(match$0) match$0[3] = 0; /*<>*/ /*<>*/ var - _ae_ = i + 1 | 0; - if(_ac_ === i) break; - i = _ae_; + _ak_ = i + 1 | 0; + if(_ai_ === i) break; + i = _ak_; } } - var _ad_ = 0; + var _aj_ = 0; } else - var _ad_ = inplace; - return _ad_; + var _aj_ = inplace; + return _aj_; /*<>*/ } function resize(indexfun, h){ /*<>*/ var odata = h[2], /*<>*/ osize = odata.length - 1, nsize = osize * 2 | 0, - ___ = nsize < Stdlib_Sys[13] ? 1 : 0; - if(! ___) return ___; + _ae_ = nsize < Stdlib_Sys[13] ? 1 : 0; + if(! _ae_) return _ae_; /*<>*/ var /*<>*/ ndata = /*<>*/ caml_make_vect(nsize, 0), @@ -25719,9 +25035,9 @@ old_trav = ongoing_traversal(h); if(1 - old_trav) /*<>*/ flip_ongoing_traversal(h); /*<>*/ try{ - var d = h[2], _W_ = d.length - 2 | 0, _V_ = 0; - if(_W_ >= 0){ - var i = _V_; + var d = h[2], _aa_ = d.length - 2 | 0, _$_ = 0; + if(_aa_ >= 0){ + var i = _$_; for(;;){ var param = caml_check_bound(d, i)[1 + i]; /*<>*/ for(;;){ @@ -25732,13 +25048,13 @@ param = next; } /*<>*/ /*<>*/ var - _Z_ = i + 1 | 0; - if(_W_ === i) break; - i = _Z_; + _ad_ = i + 1 | 0; + if(_aa_ === i) break; + i = _ad_; } } - var _X_ = 1 - old_trav, _Y_ = _X_ ? flip_ongoing_traversal(h) : _X_; - /*<>*/ return _Y_; + var _ab_ = 1 - old_trav, _ac_ = _ab_ ? flip_ongoing_traversal(h) : _ab_; + /*<>*/ return _ac_; } catch(exn$0){ var exn = caml_wrap_exception(exn$0); @@ -25755,9 +25071,9 @@ /*<>*/ old_trav = ongoing_traversal(h); if(1 - old_trav) /*<>*/ flip_ongoing_traversal(h); /*<>*/ try{ - var _R_ = d.length - 2 | 0, _Q_ = 0; - if(_R_ >= 0){ - var i = _Q_; + var _X_ = d.length - 2 | 0, _W_ = 0; + if(_X_ >= 0){ + var i = _W_; for(;;){ /*<>*/ var /*<>*/ slot$0 = caml_check_bound(h[2], i)[1 + i], @@ -25788,13 +25104,13 @@ else /*<>*/ caml_check_bound(h[2], i)[1 + i] = 0; /*<>*/ /*<>*/ var - _U_ = i + 1 | 0; - if(_R_ === i) break; - i = _U_; + ___ = i + 1 | 0; + if(_X_ === i) break; + i = ___; } } - var _S_ = 1 - old_trav, _T_ = _S_ ? flip_ongoing_traversal(h) : _S_; - /*<>*/ return _T_; + var _Y_ = 1 - old_trav, _Z_ = _Y_ ? flip_ongoing_traversal(h) : _Y_; + /*<>*/ return _Z_; } catch(exn$0){ var exn = caml_wrap_exception(exn$0); @@ -25813,10 +25129,10 @@ /*<>*/ var d = h[2], /*<>*/ accu$1 = [0, init], - _N_ = d.length - 2 | 0, - /*<>*/ _M_ = 0; - if(_N_ >= 0){ - var i = _M_; + _T_ = d.length - 2 | 0, + /*<>*/ _S_ = 0; + if(_T_ >= 0){ + var i = _S_; for(;;){ /*<>*/ var accu$2 = accu$1[1], @@ -25836,14 +25152,14 @@ } accu$1[1] = accu; /*<>*/ /*<>*/ var - _P_ = i + 1 | 0; - if(_N_ === i) break; - i = _P_; + _V_ = i + 1 | 0; + if(_T_ === i) break; + i = _V_; } } if(1 - old_trav) /*<>*/ flip_ongoing_traversal(h); - var _O_ = accu$1[1]; - return _O_; + var _U_ = accu$1[1]; + return _U_; } catch(exn$0){ var exn = caml_wrap_exception(exn$0); @@ -25868,20 +25184,19 @@ function stats(h){ /*<>*/ var /*<>*/ mbl = - /*<>*/ caml_call3 - (Stdlib_Array[18], + Stdlib_Array[18].call + (null, function(m, b){ /*<>*/ /*<>*/ var - _L_ = bucket_length(0, b); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Int[11], m, _L_); + _R_ = bucket_length(0, b); + /*<>*/ return Stdlib_Int[11].call(null, m, _R_); /*<>*/ }, 0, h[2]), /*<>*/ histo = /*<>*/ caml_make_vect(mbl + 1 | 0, 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[12], + /*<>*/ Stdlib_Array[12].call + (null, function(b){ /*<>*/ /*<>*/ var l = bucket_length(0, b); @@ -25901,7 +25216,7 @@ var key = buck$0[1], data = buck$0[2], next = buck$0[3]; /*<>*/ return [0, [0, key, data], - function(_K_){ /*<>*/ return aux(i$0, next, _K_);}]; + function(_Q_){ /*<>*/ return aux(i$0, next, _Q_);}]; } if(i$0 === tbl_data.length - 1) /*<>*/ return 0; /*<>*/ var @@ -25912,19 +25227,23 @@ buck$0 = buck$1; } /*<>*/ } - var /*<>*/ _H_ = 0, _I_ = 0; - /*<>*/ return function(_J_){ - /*<>*/ return aux(_I_, _H_, _J_);}; + var /*<>*/ _N_ = 0, _O_ = 0; + /*<>*/ return function(_P_){ + /*<>*/ return aux(_O_, _N_, _P_);}; /*<>*/ } function to_seq_keys(m){ - /*<>*/ /*<>*/ var _F_ = to_seq(m); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[29], function(_G_){ /*<>*/ return _G_[1];}, _F_); + /*<>*/ /*<>*/ var _I_ = to_seq(m); + function _J_(_M_){ /*<>*/ return _M_[1];} + /*<>*/ var _K_ = Stdlib_Seq[29]; + /*<>*/ return function(_L_){ + /*<>*/ return _K_(_J_, _I_, _L_);}; /*<>*/ } function to_seq_values(m){ /*<>*/ /*<>*/ var _D_ = to_seq(m); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[29], function(_E_){ /*<>*/ return _E_[2];}, _D_); + function _E_(_H_){ /*<>*/ return _H_[2];} + /*<>*/ var _F_ = Stdlib_Seq[29]; + /*<>*/ return function(_G_){ + /*<>*/ return _F_(_E_, _D_, _G_);}; /*<>*/ } function MakeSeeded(H){ function key_index(h, key){ @@ -26110,8 +25429,8 @@ } /*<>*/ } function add_seq(tbl, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return add(tbl, k, v); @@ -26119,8 +25438,8 @@ i); /*<>*/ } function replace_seq(tbl, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return replace(tbl, k, v); @@ -26238,8 +25557,7 @@ ? /*<>*/ caml_hash (10, 100, h[3], key) & (h[2].length - 2 | 0) - : /*<>*/ caml_call1 - (Stdlib[1], cst_Hashtbl_unsupported_hash_t); + : Stdlib[1].call(null, cst_Hashtbl_unsupported_hash_t); /*<>*/ } function add(h, key, data){ /*<>*/ var @@ -26416,8 +25734,8 @@ } /*<>*/ } function add_seq(tbl, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return add(tbl, k, v); @@ -26425,8 +25743,8 @@ i); /*<>*/ } function replace_seq(tbl, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return replace(tbl, k, v); @@ -26441,10 +25759,7 @@ /*<>*/ } function rebuild(opt, h){ /*<>*/ var - random = - opt - ? opt[1] - : /*<>*/ caml_call1(Stdlib_Atomic[3], randomized), + random = opt ? opt[1] : Stdlib_Atomic[3].call(null, randomized), /*<>*/ s = power_2_above(16, h[2].length - 1); /*<>*/ if(random) /*<>*/ var @@ -26502,6 +25817,7 @@ //# unitInfo: Provides: Stdlib__Weak //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__Int, Stdlib__Obj, Stdlib__Sys +//# shape: Stdlib__Weak:[F(1),F(1),F(3),F(2),F(2),F(2),F(4),F(5),F(1)] (function (globalThis){ "use strict"; @@ -26530,11 +25846,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 4 ? f(a0, a1, a2, a3) : runtime.caml_call_gen(f, [a0, a1, a2, a3]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var global_data = runtime.caml_get_global_data(), @@ -26555,9 +25866,7 @@ /*<>*/ var _J_ = 0 <= l ? 1 : 0, _K_ = _J_ ? l <= Stdlib_Obj[23][15] ? 1 : 0 : _J_; - if(1 - _K_) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[1], cst_Weak_create); + if(1 - _K_) /*<>*/ Stdlib[1].call(null, cst_Weak_create); /*<>*/ return /*<>*/ runtime.caml_weak_create (l); /*<>*/ } @@ -26569,7 +25878,7 @@ _G_ = 0 <= o ? 1 : 0, _H_ = _G_ ? o < length(e) ? 1 : 0 : _G_, _I_ = 1 - _H_; - return _I_ ? /*<>*/ caml_call1(Stdlib[1], msg) : _I_; + return _I_ ? Stdlib[1].call(null, msg) : _I_; /*<>*/ } function set(e, o, x){ /*<>*/ raise_if_invalid_offset(e, o, cst_Weak_set); @@ -26610,8 +25919,7 @@ : _E_; /*<>*/ return _F_; } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_Weak_blit); + /*<>*/ return Stdlib[1].call(null, cst_Weak_blit); /*<>*/ } function fill(ar, ofs, len, x){ /*<>*/ if @@ -26669,8 +25977,8 @@ /*<>*/ } function fold(f, t, init){ /*<>*/ var i = 0; - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Array[20], + /*<>*/ return Stdlib_Array[20].call + (null, function(b, accu$1){ var i$0 = i, accu = accu$1; /*<>*/ for(;;){ @@ -26694,8 +26002,8 @@ /*<>*/ } function iter(f, t){ /*<>*/ var i = 0; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Array[12], + /*<>*/ return Stdlib_Array[12].call + (null, function(b){ var i$0 = i; /*<>*/ for(;;){ @@ -26728,8 +26036,8 @@ /*<>*/ } function count(t){ /*<>*/ var _v_ = 0; - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_Array[20], + /*<>*/ return Stdlib_Array[20].call + (null, function(_w_, _x_){ /*<>*/ return count_bucket(_v_, _w_, _x_); }, @@ -26757,20 +26065,18 @@ } /*<>*/ /*<>*/ var newsz = - /*<>*/ caml_call2 - (Stdlib_Int[10], - ((3 * sz | 0) / 2 | 0) + 3 | 0, - Stdlib_Sys[13] - 2 | 0); + Stdlib_Int[10].call + (null, ((3 * sz | 0) / 2 | 0) + 3 | 0, Stdlib_Sys[13] - 2 | 0); if(newsz <= sz) - /*<>*/ /*<>*/ caml_call1 - (Stdlib[2], cst_Weak_Make_hash_bucket_cann); + /*<>*/ Stdlib[2].call + (null, cst_Weak_Make_hash_bucket_cann); /*<>*/ var /*<>*/ newbucket$0 = create(newsz), /*<>*/ newhashes = /*<>*/ caml_make_vect(newsz, 0); /*<>*/ blit(bucket$0, 0, newbucket$0, 0, sz); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], hashes, 0, newhashes, 0, sz); + /*<>*/ Stdlib_Array[9].call + (null, hashes, 0, newhashes, 0, sz); /*<>*/ /*<>*/ caml_call3 (setter, newbucket$0, sz, d); /*<>*/ caml_check_bound(newhashes, sz)[1 + sz] = h; @@ -26830,8 +26136,7 @@ /*<>*/ caml_check_bound(t[1], _o_)[1 + _o_] = newbucket; /*<>*/ var /*<>*/ _p_ = - /*<>*/ caml_call3 - (Stdlib_Array[6], hbucket, 0, prev_len), + Stdlib_Array[6].call(null, hbucket, 0, prev_len), _q_ = t[5]; /*<>*/ caml_check_bound(t[2], _q_)[1 + _q_] = _p_; } @@ -26851,14 +26156,14 @@ /*<>*/ var oldlen = t[1].length - 1, /*<>*/ newlen = - /*<>*/ caml_call2 - (Stdlib_Int[10], ((3 * oldlen | 0) / 2 | 0) + 3 | 0, Stdlib_Sys[13]); + Stdlib_Int[10].call + (null, ((3 * oldlen | 0) / 2 | 0) + 3 | 0, Stdlib_Sys[13]); if(oldlen < newlen){ /*<>*/ var /*<>*/ newt = create$0(newlen), i = 0; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[13], + /*<>*/ Stdlib_Array[13].call + (null, function(j, ob){ var oi = i; /*<>*/ for(;;){ @@ -27026,17 +26331,13 @@ function stats(t){ /*<>*/ var len = t[1].length - 1, - /*<>*/ lens = - /*<>*/ caml_call2(Stdlib_Array[14], length, t[1]); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[35], runtime.caml_int_compare, lens); + /*<>*/ lens = Stdlib_Array[14].call(null, length, t[1]); + /*<>*/ Stdlib_Array[35].call + (null, runtime.caml_int_compare, lens); /*<>*/ var /*<>*/ totlen = - /*<>*/ caml_call3 - (Stdlib_Array[18], - function(_g_, _f_){ /*<>*/ return _g_ + _f_ | 0;}, - 0, - lens), + Stdlib_Array[18].call + (null, function(_g_, _f_){ /*<>*/ return _g_ + _f_ | 0;}, 0, lens), /*<>*/ _a_ = len - 1 | 0, _c_ = len / 2 | 0, /*<>*/ _b_ = caml_check_bound(lens, _a_)[1 + _a_], @@ -27069,6 +26370,7 @@ //# unitInfo: Provides: Stdlib__Format //# unitInfo: Requires: CamlinternalFormat, Stdlib, Stdlib__Array, Stdlib__Buffer, Stdlib__Bytes, Stdlib__Domain, Stdlib__Int, Stdlib__List, Stdlib__Queue, Stdlib__Seq, Stdlib__Stack, Stdlib__String +//# shape: Stdlib__Format:[F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(3),F(2),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(2),F(1),F(2),F(1),F(3),F(2),F(3),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),N,F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(1),F(3),F(2),F(3),F(2),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(3),F(2),F(2),F(1),F(2),F(1),N,F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(3),F(2),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(1),F(1),N,F(1),N,F(1),F(1),N,F(1),N,F(1),F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(2),F(1),F(5),F(4),F(4),F(4),F(2),F(4),F(4),F(4),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(3),F(2),F(3),F(2),F(2)] (function (globalThis){ "use strict"; @@ -27092,11 +26394,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); } var undef = undefined, @@ -27138,7 +26435,7 @@ [248, "Stdlib.Format.String_tag", runtime.caml_fresh_oo_id(0)]; function pp_enqueue(state, token){ /*<>*/ state[13] = state[13] + token[3] | 0; - return caml_call2(Stdlib_Queue[3], token, state[28]); + return Stdlib_Queue[3].call(null, token, state[28]); /*<>*/ } var pp_infinity = 1000000010, @@ -27164,10 +26461,10 @@ /*<>*/ } function format_string(state, s){ /*<>*/ /*<>*/ var - _a__ = s !== cst$16 ? 1 : 0; - /*<>*/ return _a__ + _bs_ = s !== cst$16 ? 1 : 0; + /*<>*/ return _bs_ ? format_pp_text(state, caml_ml_string_length(s), s) - : _a__; + : _bs_; /*<>*/ } function break_new_line(state, param, width){ var after = param[3], offset = param[2], before = param[1]; @@ -27177,7 +26474,7 @@ /*<>*/ var indent = (state[6] - width | 0) + offset | 0, /*<>*/ real_indent = - /*<>*/ caml_call2(Stdlib_Int[10], state[8], indent); + Stdlib_Int[10].call(null, state[8], indent); state[10] = real_indent; state[9] = state[6] - state[10] | 0; var n = state[10]; @@ -27198,8 +26495,7 @@ switch(param){ case 0: /*<>*/ /*<>*/ var - match$3 = - /*<>*/ caml_call1(Stdlib_Stack[8], state[3]); + match$3 = Stdlib_Stack[8].call(null, state[3]); if(! match$3) /*<>*/ return; /*<>*/ var tabs = match$3[1][1], @@ -27215,27 +26511,23 @@ tabs[1] = add_tab(state[6] - state[9] | 0, tabs[1]); return; case 1: - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[5], state[2]); + /*<>*/ Stdlib_Stack[5].call(null, state[2]); /*<>*/ return; case 2: - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[5], state[3]); + /*<>*/ Stdlib_Stack[5].call(null, state[3]); /*<>*/ return; case 3: /*<>*/ /*<>*/ var - match$4 = - /*<>*/ caml_call1(Stdlib_Stack[8], state[2]); + match$4 = Stdlib_Stack[8].call(null, state[2]); if(! match$4) /*<>*/ return pp_output_newline(state); var width$0 = match$4[1][2]; /*<>*/ return break_new_line(state, _a_, width$0); case 4: - var _a8_ = state[10] !== (state[6] - state[9] | 0) ? 1 : 0; - if(! _a8_) return _a8_; + var _bq_ = state[10] !== (state[6] - state[9] | 0) ? 1 : 0; + if(! _bq_) return _bq_; /*<>*/ /*<>*/ var - match$1 = - /*<>*/ caml_call1(Stdlib_Queue[6], state[28]); + match$1 = Stdlib_Queue[6].call(null, state[28]); if(! match$1) /*<>*/ return; var match$2 = match$1[1], size = match$2[1], length = match$2[3]; state[12] = state[12] - length | 0; @@ -27243,8 +26535,7 @@ return; default: /*<>*/ /*<>*/ var - match$5 = - /*<>*/ caml_call1(Stdlib_Stack[5], state[5]); + match$5 = Stdlib_Stack[5].call(null, state[5]); if(! match$5) /*<>*/ return; /*<>*/ var tag_name = match$5[1], @@ -27263,7 +26554,7 @@ /*<>*/ off = breaks[2], before = breaks[1], /*<>*/ match$6 = - /*<>*/ caml_call1(Stdlib_Stack[8], state[2]); + Stdlib_Stack[8].call(null, state[2]); if(! match$6) /*<>*/ return; var match$7 = match$6[1], @@ -27307,7 +26598,7 @@ n = param[1], insertion_point = state[6] - state[9] | 0, /*<>*/ match$8 = - /*<>*/ caml_call1(Stdlib_Stack[8], state[3]); + Stdlib_Stack[8].call(null, state[3]); if(! match$8) /*<>*/ return; /*<>*/ var tabs$0 = match$8[1][1], @@ -27318,11 +26609,11 @@ if(param$0){ var tail = param$0[2], head = param$0[1]; if(insertion_point > head){param$0 = tail; continue;} - var _a9_ = head; + var _br_ = head; } else - var _a9_ = first; - var tab = _a9_; + var _br_ = first; + var tab = _br_; break; } } @@ -27340,8 +26631,7 @@ insertion_point$0 = state[6] - state[9] | 0; if(state[8] < insertion_point$0){ /*<>*/ /*<>*/ var - match = - /*<>*/ caml_call1(Stdlib_Stack[8], state[2]); + match = Stdlib_Stack[8].call(null, state[2]); if(match){ var match$0 = match[1], width = match$0[2], box_type = match$0[1]; if(state[9] < width && 3 >= box_type - 1 >>> 0) @@ -27354,25 +26644,25 @@ width$2 = state[9] - off$1 | 0, /*<>*/ box_type$1 = 1 === ty ? 1 : state[9] < size$0 ? ty : 5; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Stack[3], [0, box_type$1, width$2], state[2]); + /*<>*/ return Stdlib_Stack[3].call + (null, [0, box_type$1, width$2], state[2]); case 4: var tbox = param[1]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Stack[3], tbox, state[3]); + /*<>*/ return Stdlib_Stack[3].call + (null, tbox, state[3]); default: /*<>*/ var tag_name$0 = param[1], /*<>*/ marker$0 = /*<>*/ caml_call1(state[24], tag_name$0); /*<>*/ pp_output_string(state, marker$0); - return caml_call2(Stdlib_Stack[3], tag_name$0, state[5]); + return Stdlib_Stack[3].call(null, tag_name$0, state[5]); } } function advance_left(state){ /*<>*/ for(;;){ /*<>*/ /*<>*/ var - match = /*<>*/ caml_call1(Stdlib_Queue[9], state[28]); + match = Stdlib_Queue[9].call(null, state[28]); if(! match) /*<>*/ return 0; /*<>*/ var match$0 = match[1], @@ -27380,12 +26670,11 @@ length = match$0[3], token = match$0[2], pending_count = state[13] - state[12] | 0, - _a6_ = 0 <= size ? 1 : 0, - /*<>*/ _a7_ = - _a6_ || (state[9] <= pending_count ? 1 : 0); - if(! _a7_) /*<>*/ return _a7_; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Queue[5], state[28]); + _bo_ = 0 <= size ? 1 : 0, + /*<>*/ _bp_ = + _bo_ || (state[9] <= pending_count ? 1 : 0); + if(! _bp_) /*<>*/ return _bp_; + /*<>*/ Stdlib_Queue[5].call(null, state[28]); /*<>*/ /*<>*/ var size$0 = 0 <= size ? size : pp_infinity; /*<>*/ format_pp_token(state, size$0, token); @@ -27401,16 +26690,15 @@ (state, [0, size, [0, s], size]); /*<>*/ } function initialize_scan_stack(stack){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[9], stack); + /*<>*/ Stdlib_Stack[9].call(null, stack); /*<>*/ /*<>*/ var queue_elem = [0, unknown, _b_, 0]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Stack[3], [0, -1, queue_elem], stack); + /*<>*/ return Stdlib_Stack[3].call + (null, [0, -1, queue_elem], stack); /*<>*/ } function set_size(state, ty){ /*<>*/ /*<>*/ var - match = /*<>*/ caml_call1(Stdlib_Stack[8], state[1]); + match = Stdlib_Stack[8].call(null, state[1]); if(! match) /*<>*/ return; /*<>*/ var match$0 = match[1], @@ -27418,15 +26706,14 @@ left_total = match$0[1], /*<>*/ size = queue_elem[1]; if(left_total < state[12]) return initialize_scan_stack(state[1]); - var _a5_ = queue_elem[2]; - if(typeof _a5_ !== "number") - switch(_a5_[0]){ + var _bn_ = queue_elem[2]; + if(typeof _bn_ !== "number") + switch(_bn_[0]){ case 3: if(1 - ty){ var x$0 = state[13] + size | 0; queue_elem[1] = x$0; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[5], state[1]); + /*<>*/ Stdlib_Stack[5].call(null, state[1]); } /*<>*/ return; case 1: @@ -27434,8 +26721,7 @@ if(ty){ var x = state[13] + size | 0; queue_elem[1] = x; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[5], state[1]); + /*<>*/ Stdlib_Stack[5].call(null, state[1]); } /*<>*/ return; } @@ -27446,8 +26732,7 @@ if(b) /*<>*/ set_size(state, 1); /*<>*/ /*<>*/ var elem = [0, state[13], token]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Stack[3], elem, state[1]); + /*<>*/ return Stdlib_Stack[3].call(null, elem, state[1]); /*<>*/ } function pp_open_box_gen(state, indent, br_ty){ /*<>*/ state[14] = state[14] + 1 | 0; @@ -27457,35 +26742,34 @@ /*<>*/ elem = [0, size, [3, indent, br_ty], 0]; /*<>*/ return scan_push(state, 0, elem); } - var _a4_ = state[14] === state[15] ? 1 : 0; - if(! _a4_) return _a4_; + var _bm_ = state[14] === state[15] ? 1 : 0; + if(! _bm_) return _bm_; var s = state[16], x = caml_ml_string_length(s); /*<>*/ return enqueue_string_as(state, x, s); /*<>*/ } function pp_close_box(state, param){ - /*<>*/ var _a2_ = 1 < state[14] ? 1 : 0; - if(_a2_){ + /*<>*/ var _bk_ = 1 < state[14] ? 1 : 0; + if(_bk_){ if(state[14] < state[15]){ /*<>*/ pp_enqueue(state, [0, zero, 1, 0]); /*<>*/ set_size(state, 1); /*<>*/ set_size(state, 0); } state[14] = state[14] - 1 | 0; - var _a3_ = 0; + var _bl_ = 0; } else - var _a3_ = _a2_; - return _a3_; + var _bl_ = _bk_; + return _bl_; /*<>*/ } function pp_open_stag(state, tag_name){ /*<>*/ if(state[22]){ - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Stack[3], tag_name, state[4]); + /*<>*/ Stdlib_Stack[3].call(null, tag_name, state[4]); /*<>*/ /*<>*/ caml_call1 (state[26], tag_name); } - var _a1_ = state[23]; - if(! _a1_) return _a1_; + var _bj_ = state[23]; + if(! _bj_) return _bj_; /*<>*/ /*<>*/ var token = [5, tag_name]; /*<>*/ return pp_enqueue(state, [0, zero, token, 0]); @@ -27493,20 +26777,20 @@ function pp_close_stag(state, param){ /*<>*/ if(state[23]) /*<>*/ pp_enqueue(state, [0, zero, 5, 0]); - var _aZ_ = state[22]; - if(_aZ_){ + var _bh_ = state[22]; + if(_bh_){ /*<>*/ /*<>*/ var - match = /*<>*/ caml_call1(Stdlib_Stack[5], state[4]); + match = Stdlib_Stack[5].call(null, state[4]); if(match){ var tag_name = match[1]; /*<>*/ return /*<>*/ caml_call1 (state[27], tag_name); } - var _a0_ = 0; + var _bi_ = 0; } else - var _a0_ = _aZ_; - /*<>*/ return _a0_; + var _bi_ = _bh_; + /*<>*/ return _bi_; /*<>*/ } function pp_set_print_tags(state, b){ /*<>*/ state[22] = b; @@ -27544,24 +26828,20 @@ function pp_rinit(state){ /*<>*/ state[12] = 1; state[13] = 1; - caml_call1(Stdlib_Queue[11], state[28]); + Stdlib_Queue[11].call(null, state[28]); /*<>*/ initialize_scan_stack(state[1]); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[9], state[2]); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[9], state[3]); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[9], state[4]); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Stack[9], state[5]); + /*<>*/ Stdlib_Stack[9].call(null, state[2]); + /*<>*/ Stdlib_Stack[9].call(null, state[3]); + /*<>*/ Stdlib_Stack[9].call(null, state[4]); + /*<>*/ Stdlib_Stack[9].call(null, state[5]); state[10] = 0; state[14] = 0; state[9] = state[6]; /*<>*/ return pp_open_box_gen(state, 0, 3); /*<>*/ } function pp_flush_queue(state, end_with_newline){ - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Stack[13], + /*<>*/ Stdlib_Stack[13].call + (null, function(param){ /*<>*/ return pp_close_stag(state, 0); /*<>*/ }, @@ -27577,8 +26857,8 @@ } /*<>*/ } function pp_print_as_size(state, size, s){ - /*<>*/ var _aY_ = state[14] < state[15] ? 1 : 0; - return _aY_ ? enqueue_string_as(state, size, s) : _aY_; + /*<>*/ var _bg_ = state[14] < state[15] ? 1 : 0; + return _bg_ ? enqueue_string_as(state, size, s) : _bg_; /*<>*/ } function pp_print_as(state, isize, s){ /*<>*/ return pp_print_as_size(state, isize, s); @@ -27589,26 +26869,25 @@ /*<>*/ } function pp_print_bytes(state, s){ /*<>*/ var - /*<>*/ s$0 = - /*<>*/ caml_call1(Stdlib_Bytes[6], s), + /*<>*/ s$0 = Stdlib_Bytes[6].call(null, s), isize = runtime.caml_ml_bytes_length(s); /*<>*/ return pp_print_as_size(state, isize, s$0); /*<>*/ } function pp_print_int(state, i){ /*<>*/ return pp_print_string - (state, /*<>*/ caml_call1(Stdlib_Int[12], i)); + (state, Stdlib_Int[12].call(null, i)); /*<>*/ } function pp_print_float(state, f){ /*<>*/ return pp_print_string - (state, /*<>*/ caml_call1(Stdlib[35], f)); + (state, Stdlib[35].call(null, f)); /*<>*/ } function pp_print_bool(state, b){ /*<>*/ return pp_print_string - (state, /*<>*/ caml_call1(Stdlib[30], b)); + (state, Stdlib[30].call(null, b)); /*<>*/ } function pp_print_char(state, c){ /*<>*/ /*<>*/ var - s = /*<>*/ caml_call2(Stdlib_String[1], 1, c); + s = Stdlib_String[1].call(null, 1, c); /*<>*/ return pp_print_as_size(state, 1, s); /*<>*/ } function pp_print_nothing(state, param){ /*<>*/ return 0; @@ -27639,20 +26918,20 @@ (state[18], 0); /*<>*/ } function pp_force_newline(state, param){ - /*<>*/ var _aX_ = state[14] < state[15] ? 1 : 0; - return _aX_ ? enqueue_advance(state, [0, zero, 3, 0]) : _aX_; + /*<>*/ var _bf_ = state[14] < state[15] ? 1 : 0; + return _bf_ ? enqueue_advance(state, [0, zero, 3, 0]) : _bf_; /*<>*/ } function pp_print_if_newline(state, param){ - /*<>*/ var _aW_ = state[14] < state[15] ? 1 : 0; - return _aW_ ? enqueue_advance(state, [0, zero, 4, 0]) : _aW_; + /*<>*/ var _be_ = state[14] < state[15] ? 1 : 0; + return _be_ ? enqueue_advance(state, [0, zero, 4, 0]) : _be_; /*<>*/ } function pp_print_custom_break(state, fits, breaks){ /*<>*/ var after = fits[3], width = fits[2], before = fits[1], - _aV_ = state[14] < state[15] ? 1 : 0; - if(! _aV_) return _aV_; + _bd_ = state[14] < state[15] ? 1 : 0; + if(! _bd_) return _bd_; /*<>*/ var size = - state[13] | 0, /*<>*/ token = [1, fits, breaks], @@ -27675,33 +26954,33 @@ /*<>*/ } function pp_open_tbox(state, param){ /*<>*/ state[14] = state[14] + 1 | 0; - var _aU_ = state[14] < state[15] ? 1 : 0; - if(! _aU_) return _aU_; + var _bc_ = state[14] < state[15] ? 1 : 0; + if(! _bc_) return _bc_; /*<>*/ /*<>*/ var elem = [0, zero, [4, [0, [0, 0]]], 0]; /*<>*/ return enqueue_advance(state, elem); /*<>*/ } function pp_close_tbox(state, param){ - /*<>*/ var _aR_ = 1 < state[14] ? 1 : 0; - if(_aR_){ - var _aS_ = state[14] < state[15] ? 1 : 0; - if(_aS_){ + /*<>*/ var _a$_ = 1 < state[14] ? 1 : 0; + if(_a$_){ + var _ba_ = state[14] < state[15] ? 1 : 0; + if(_ba_){ /*<>*/ /*<>*/ var elem = [0, zero, 2, 0]; /*<>*/ enqueue_advance(state, elem); state[14] = state[14] - 1 | 0; - var _aT_ = 0; + var _bb_ = 0; } else - var _aT_ = _aS_; + var _bb_ = _ba_; } else - var _aT_ = _aR_; - return _aT_; + var _bb_ = _a$_; + return _bb_; /*<>*/ } function pp_print_tbreak(state, width, offset){ - /*<>*/ var _aQ_ = state[14] < state[15] ? 1 : 0; - if(! _aQ_) return _aQ_; + /*<>*/ var _a__ = state[14] < state[15] ? 1 : 0; + if(! _a__) return _a__; /*<>*/ var size = - state[13] | 0, /*<>*/ elem = [0, size, [2, width, offset], width]; @@ -27711,17 +26990,17 @@ /*<>*/ return pp_print_tbreak(state, 0, 0); /*<>*/ } function pp_set_tab(state, param){ - /*<>*/ var _aP_ = state[14] < state[15] ? 1 : 0; - if(! _aP_) return _aP_; + /*<>*/ var _a9_ = state[14] < state[15] ? 1 : 0; + if(! _a9_) return _a9_; /*<>*/ /*<>*/ var elem = [0, zero, 0, 0]; /*<>*/ return enqueue_advance(state, elem); /*<>*/ } function pp_set_max_boxes(state, n){ /*<>*/ var - _aN_ = 1 < n ? 1 : 0, - _aO_ = _aN_ ? (state[15] = n, 0) : _aN_; - return _aO_; + _a7_ = 1 < n ? 1 : 0, + _a8_ = _a7_ ? (state[15] = n, 0) : _a7_; + return _a8_; /*<>*/ } function pp_get_max_boxes(state, param){ /*<>*/ return state[15]; @@ -27740,10 +27019,10 @@ /*<>*/ return n < 1000000010 ? n : 1000000009; /*<>*/ } function pp_set_max_indent(state, n$0){ - /*<>*/ var _aM_ = 1 < n$0 ? 1 : 0; - if(! _aM_) return _aM_; - var n$1 = state[6] - n$0 | 0, _aL_ = 1 <= n$1 ? 1 : 0; - if(! _aL_) return _aL_; + /*<>*/ var _a6_ = 1 < n$0 ? 1 : 0; + if(! _a6_) return _a6_; + var n$1 = state[6] - n$0 | 0, _a5_ = 1 <= n$1 ? 1 : 0; + if(! _a5_) return _a5_; /*<>*/ /*<>*/ var n = pp_limit(n$1); state[7] = n; state[8] = state[6] - state[7] | 0; @@ -27753,19 +27032,17 @@ /*<>*/ return state[8]; /*<>*/ } function pp_set_margin(state, n){ - /*<>*/ var _aJ_ = 1 <= n ? 1 : 0; - if(! _aJ_) return _aJ_; + /*<>*/ var _a3_ = 1 <= n ? 1 : 0; + if(! _a3_) return _a3_; /*<>*/ /*<>*/ var n$0 = pp_limit(n); state[6] = n$0; if(state[8] <= state[6]) var new_max_indent = state[8]; else /*<>*/ var - /*<>*/ _aK_ = - /*<>*/ caml_call2 - (Stdlib_Int[11], state[6] - state[7] | 0, state[6] / 2 | 0), - new_max_indent = - /*<>*/ caml_call2(Stdlib_Int[11], _aK_, 1); + /*<>*/ _a4_ = + Stdlib_Int[11].call(null, state[6] - state[7] | 0, state[6] / 2 | 0), + new_max_indent = Stdlib_Int[11].call(null, _a4_, 1); /*<>*/ return pp_set_max_indent(state, new_max_indent); /*<>*/ } function validate_geometry(param){ @@ -27796,11 +27073,10 @@ /*<>*/ return pp_set_full_geometry(state, geometry); /*<>*/ var msg = match[1], - /*<>*/ _aI_ = - /*<>*/ caml_call2 - (Stdlib[28], cst_Format_pp_set_geometry, msg); + /*<>*/ _a2_ = + Stdlib[28].call(null, cst_Format_pp_set_geometry, msg); /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace - ([0, Stdlib[6], _aI_], 1); + ([0, Stdlib[6], _a2_], 1); /*<>*/ } function pp_safe_set_geometry(state, max_indent, margin){ /*<>*/ /*<>*/ var @@ -27848,14 +27124,13 @@ (state[17], cst$7, 0, 1); /*<>*/ } /*<>*/ var - /*<>*/ blank_line = - /*<>*/ caml_call2(Stdlib_String[1], 80, 32), + /*<>*/ blank_line = Stdlib_String[1].call(null, 80, 32), _g_ = [3, 0, 3]; function display_blanks(state, n){ /*<>*/ var n$0 = n; /*<>*/ for(;;){ - var _aH_ = 0 < n$0 ? 1 : 0; - if(! _aH_) return _aH_; + var _a1_ = 0 < n$0 ? 1 : 0; + if(! _a1_) return _a1_; if(80 >= n$0) /*<>*/ return /*<>*/ caml_call3 (state[17], blank_line, 0, n$0); @@ -27866,17 +27141,17 @@ } /*<>*/ } function pp_set_formatter_out_channel(state, oc){ - /*<>*/ state[17] = - /*<>*/ caml_call1(Stdlib[69], oc); + /*<>*/ var _aU_ = Stdlib[69]; + state[17] = + function(_aY_, _aZ_, _a0_){ /*<>*/ return _aU_(oc, _aY_, _aZ_, _a0_);}; state[18] = function(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[63], oc); + /*<>*/ return Stdlib[63].call(null, oc); /*<>*/ }; state[19] = - function(_aG_){ /*<>*/ return display_newline(state, _aG_);}; - state[20] = function(_aF_){ /*<>*/ return display_blanks(state, _aF_);}; - state[21] = function(_aE_){ /*<>*/ return display_blanks(state, _aE_);}; + function(_aX_){ /*<>*/ return display_newline(state, _aX_);}; + state[20] = function(_aW_){ /*<>*/ return display_blanks(state, _aW_);}; + state[21] = function(_aV_){ /*<>*/ return display_blanks(state, _aV_);}; return 0; /*<>*/ } function default_pp_mark_open_tag(param){ @@ -27884,50 +27159,41 @@ /*<>*/ return cst$10; /*<>*/ var s = param[2], - /*<>*/ _aD_ = - /*<>*/ caml_call2(Stdlib[28], s, cst$8); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], cst$9, _aD_); + /*<>*/ _aT_ = Stdlib[28].call(null, s, cst$8); + /*<>*/ return Stdlib[28].call(null, cst$9, _aT_); /*<>*/ } function default_pp_mark_close_tag(param){ /*<>*/ if(param[1] !== String_tag) /*<>*/ return cst$13; /*<>*/ var s = param[2], - /*<>*/ _aC_ = - /*<>*/ caml_call2(Stdlib[28], s, cst$11); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], cst$12, _aC_); + /*<>*/ _aS_ = Stdlib[28].call(null, s, cst$11); + /*<>*/ return Stdlib[28].call(null, cst$12, _aS_); /*<>*/ } - function default_pp_print_open_tag(_aB_){ /*<>*/ return 0;} - function default_pp_print_close_tag(_aA_){ /*<>*/ return 0;} + function default_pp_print_open_tag(_aR_){ /*<>*/ return 0;} + function default_pp_print_close_tag(_aQ_){ /*<>*/ return 0;} function pp_make_formatter(f, g, h, i, j){ /*<>*/ var - /*<>*/ pp_queue = - /*<>*/ caml_call1(Stdlib_Queue[2], 0), + /*<>*/ pp_queue = Stdlib_Queue[2].call(null, 0), /*<>*/ sys_tok = [0, unknown, _g_, 0]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Queue[3], sys_tok, pp_queue); + /*<>*/ Stdlib_Queue[3].call(null, sys_tok, pp_queue); /*<>*/ /*<>*/ var - scan_stack = /*<>*/ caml_call1(Stdlib_Stack[2], 0); + scan_stack = Stdlib_Stack[2].call(null, 0); /*<>*/ initialize_scan_stack(scan_stack); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Stack[3], [0, 1, sys_tok], scan_stack); + /*<>*/ Stdlib_Stack[3].call + (null, [0, 1, sys_tok], scan_stack); /*<>*/ var /*<>*/ pp_margin = 78, - _aw_ = Stdlib[19], - /*<>*/ _ax_ = - /*<>*/ caml_call1(Stdlib_Stack[2], 0), - /*<>*/ _ay_ = - /*<>*/ caml_call1(Stdlib_Stack[2], 0), - /*<>*/ _az_ = - /*<>*/ caml_call1(Stdlib_Stack[2], 0); + _aM_ = Stdlib[19], + /*<>*/ _aN_ = Stdlib_Stack[2].call(null, 0), + /*<>*/ _aO_ = Stdlib_Stack[2].call(null, 0), + /*<>*/ _aP_ = Stdlib_Stack[2].call(null, 0); /*<>*/ return [0, scan_stack, - /*<>*/ caml_call1(Stdlib_Stack[2], 0), - _az_, - _ay_, - _ax_, + Stdlib_Stack[2].call(null, 0), + _aP_, + _aO_, + _aN_, pp_margin, 10, 68, @@ -27937,7 +27203,7 @@ 1, 1, 1, - _aw_, + _aM_, cst$14, f, g, @@ -27962,31 +27228,36 @@ pp_make_formatter (output, flush, - function(_av_){ /*<>*/ return 0;}, - function(_au_){ /*<>*/ return 0;}, - function(_at_){ /*<>*/ return 0;}); - ppf[19] = function(_as_){ /*<>*/ return display_newline(ppf, _as_);}; - ppf[20] = function(_ar_){ /*<>*/ return display_blanks(ppf, _ar_);}; - ppf[21] = function(_aq_){ /*<>*/ return display_blanks(ppf, _aq_);}; + function(_aL_){ /*<>*/ return 0;}, + function(_aK_){ /*<>*/ return 0;}, + function(_aJ_){ /*<>*/ return 0;}); + ppf[19] = function(_aI_){ /*<>*/ return display_newline(ppf, _aI_);}; + ppf[20] = function(_aH_){ /*<>*/ return display_blanks(ppf, _aH_);}; + ppf[21] = function(_aG_){ /*<>*/ return display_blanks(ppf, _aG_);}; /*<>*/ return ppf; /*<>*/ } function formatter_of_out_channel(oc){ - /*<>*/ return make_formatter - ( /*<>*/ caml_call1(Stdlib[69], oc), + /*<>*/ var _aC_ = Stdlib[69]; + /*<>*/ return make_formatter + (function(_aD_, _aE_, _aF_){ + /*<>*/ return _aC_(oc, _aD_, _aE_, _aF_); + }, function(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[63], oc); + /*<>*/ return Stdlib[63].call(null, oc); /*<>*/ }); /*<>*/ } function formatter_of_buffer(b){ - /*<>*/ return make_formatter - ( /*<>*/ caml_call1(Stdlib_Buffer[18], b), - function(_ap_){ /*<>*/ return 0;}); + /*<>*/ var _ax_ = Stdlib_Buffer[18]; + /*<>*/ return make_formatter + (function(_az_, _aA_, _aB_){ + /*<>*/ return _ax_(b, _az_, _aA_, _aB_); + }, + function(_ay_){ /*<>*/ return 0;}); /*<>*/ } var pp_buffer_size = 512; function pp_make_buffer(param){ - /*<>*/ return caml_call1 - (Stdlib_Buffer[1], pp_buffer_size); + /*<>*/ return Stdlib_Buffer[1].call + (null, pp_buffer_size); /*<>*/ } /*<>*/ var /*<>*/ stdbuf = pp_make_buffer(0), @@ -28014,24 +27285,19 @@ (Stdlib_Domain[10][3], str_formatter_key, str_formatter); /*<>*/ function buffered_out_string(key, str, ofs, len){ /*<>*/ /*<>*/ var - _ao_ = /*<>*/ caml_call1(Stdlib_Domain[10][2], key); - /*<>*/ return /*<>*/ caml_call4 - (Stdlib_Buffer[18], _ao_, str, ofs, len); + _aw_ = /*<>*/ caml_call1(Stdlib_Domain[10][2], key); + /*<>*/ return Stdlib_Buffer[18].call + (null, _aw_, str, ofs, len); /*<>*/ } function buffered_out_flush(oc, key, param){ /*<>*/ var /*<>*/ buf = /*<>*/ caml_call1(Stdlib_Domain[10][2], key), - /*<>*/ len = - /*<>*/ caml_call1(Stdlib_Buffer[7], buf), - /*<>*/ str = - /*<>*/ caml_call1(Stdlib_Buffer[2], buf); - /*<>*/ /*<>*/ caml_call4 - (Stdlib[69], oc, str, 0, len); - /*<>*/ /*<>*/ caml_call1 - (Stdlib[63], oc); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[8], buf); + /*<>*/ len = Stdlib_Buffer[7].call(null, buf), + /*<>*/ str = Stdlib_Buffer[2].call(null, buf); + /*<>*/ Stdlib[69].call(null, oc, str, 0, len); + /*<>*/ Stdlib[63].call(null, oc); + /*<>*/ return Stdlib_Buffer[8].call(null, buf); /*<>*/ } /*<>*/ var /*<>*/ std_buf_key = @@ -28039,16 +27305,16 @@ (Stdlib_Domain[10][1], 0, function(param){ - /*<>*/ return caml_call1 - (Stdlib_Buffer[1], pp_buffer_size); + /*<>*/ return Stdlib_Buffer[1].call + (null, pp_buffer_size); /*<>*/ }), /*<>*/ err_buf_key = /*<>*/ caml_call2 (Stdlib_Domain[10][1], 0, function(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[1], pp_buffer_size); + /*<>*/ return Stdlib_Buffer[1].call + (null, pp_buffer_size); /*<>*/ }), /*<>*/ std_formatter_key = /*<>*/ caml_call2 @@ -28056,28 +27322,27 @@ 0, function(param){ /*<>*/ var - _ac_ = Stdlib[39], + _ak_ = Stdlib[39], /*<>*/ ppf = pp_make_formatter - (function(_al_, _am_, _an_){ + (function(_at_, _au_, _av_){ /*<>*/ return buffered_out_string - (std_buf_key, _al_, _am_, _an_); + (std_buf_key, _at_, _au_, _av_); }, - function(_ak_){ - /*<>*/ return buffered_out_flush(_ac_, std_buf_key, _ak_); + function(_as_){ + /*<>*/ return buffered_out_flush(_ak_, std_buf_key, _as_); }, - function(_aj_){ /*<>*/ return 0;}, - function(_ai_){ /*<>*/ return 0;}, - function(_ah_){ /*<>*/ return 0;}); + function(_ar_){ /*<>*/ return 0;}, + function(_aq_){ /*<>*/ return 0;}, + function(_ap_){ /*<>*/ return 0;}); ppf[19] = - function(_ag_){ /*<>*/ return display_newline(ppf, _ag_);}; + function(_ao_){ /*<>*/ return display_newline(ppf, _ao_);}; ppf[20] = - function(_af_){ /*<>*/ return display_blanks(ppf, _af_);}; + function(_an_){ /*<>*/ return display_blanks(ppf, _an_);}; ppf[21] = - function(_ae_){ /*<>*/ return display_blanks(ppf, _ae_);}; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Domain[6], - function(_ad_){ /*<>*/ return pp_print_flush(ppf, _ad_);}); + function(_am_){ /*<>*/ return display_blanks(ppf, _am_);}; + /*<>*/ Stdlib_Domain[6].call + (null, function(_al_){ /*<>*/ return pp_print_flush(ppf, _al_);}); /*<>*/ return ppf; /*<>*/ }); /*<>*/ /*<>*/ caml_call2 @@ -28089,25 +27354,27 @@ 0, function(param){ /*<>*/ var - _S_ = Stdlib[40], + ___ = Stdlib[40], /*<>*/ ppf = pp_make_formatter - (function(_$_, _aa_, _ab_){ + (function(_ah_, _ai_, _aj_){ /*<>*/ return buffered_out_string - (err_buf_key, _$_, _aa_, _ab_); + (err_buf_key, _ah_, _ai_, _aj_); }, - function(___){ - /*<>*/ return buffered_out_flush(_S_, err_buf_key, ___); + function(_ag_){ + /*<>*/ return buffered_out_flush(___, err_buf_key, _ag_); }, - function(_Z_){ /*<>*/ return 0;}, - function(_Y_){ /*<>*/ return 0;}, - function(_X_){ /*<>*/ return 0;}); - ppf[19] = function(_W_){ /*<>*/ return display_newline(ppf, _W_);}; - ppf[20] = function(_V_){ /*<>*/ return display_blanks(ppf, _V_);}; - ppf[21] = function(_U_){ /*<>*/ return display_blanks(ppf, _U_);}; - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Domain[6], - function(_T_){ /*<>*/ return pp_print_flush(ppf, _T_);}); + function(_af_){ /*<>*/ return 0;}, + function(_ae_){ /*<>*/ return 0;}, + function(_ad_){ /*<>*/ return 0;}); + ppf[19] = + function(_ac_){ /*<>*/ return display_newline(ppf, _ac_);}; + ppf[20] = + function(_ab_){ /*<>*/ return display_blanks(ppf, _ab_);}; + ppf[21] = + function(_aa_){ /*<>*/ return display_blanks(ppf, _aa_);}; + /*<>*/ Stdlib_Domain[6].call + (null, function(_$_){ /*<>*/ return pp_print_flush(ppf, _$_);}); /*<>*/ return ppf; /*<>*/ }); /*<>*/ /*<>*/ caml_call2 @@ -28131,9 +27398,8 @@ function flush_buffer_formatter(buf, ppf){ /*<>*/ pp_flush_queue(ppf, 0); /*<>*/ /*<>*/ var - s = /*<>*/ caml_call1(Stdlib_Buffer[2], buf); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Buffer[9], buf); + s = Stdlib_Buffer[2].call(null, buf); + /*<>*/ Stdlib_Buffer[9].call(null, buf); /*<>*/ return s; /*<>*/ } function flush_str_formatter(param){ @@ -28153,21 +27419,17 @@ function(param){ /*<>*/ var /*<>*/ buf = - /*<>*/ caml_call1 - (Stdlib_Buffer[1], pp_buffer_size), - /*<>*/ output$0 = - /*<>*/ caml_call1(Stdlib_Buffer[18], buf); + Stdlib_Buffer[1].call(null, pp_buffer_size), + /*<>*/ _V_ = Stdlib_Buffer[18]; + /*<>*/ function output$0(_X_, _Y_, _Z_){ + /*<>*/ return _V_(buf, _X_, _Y_, _Z_); + } function flush$0(param){ /*<>*/ /*<>*/ var - _R_ = - /*<>*/ caml_call1(Stdlib_Buffer[7], buf); + _W_ = Stdlib_Buffer[7].call(null, buf); /*<>*/ /*<>*/ caml_call3 - (output, - /*<>*/ caml_call1(Stdlib_Buffer[2], buf), - 0, - _R_); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Buffer[8], buf); + (output, Stdlib_Buffer[2].call(null, buf), 0, _W_); + /*<>*/ Stdlib_Buffer[8].call(null, buf); /*<>*/ return /*<>*/ caml_call1 (flush, 0); /*<>*/ } @@ -28176,11 +27438,13 @@ /*<>*/ }); /*<>*/ } function synchronized_formatter_of_out_(oc){ - /*<>*/ return make_synchronized_formatter - ( /*<>*/ caml_call1(Stdlib[69], oc), + /*<>*/ var _R_ = Stdlib[69]; + /*<>*/ return make_synchronized_formatter + (function(_S_, _T_, _U_){ + /*<>*/ return _R_(oc, _S_, _T_, _U_); + }, function(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[63], oc); + /*<>*/ return Stdlib[63].call(null, oc); /*<>*/ }); /*<>*/ } function make_symbolic_output_buffer(param){ /*<>*/ return [0, 0]; @@ -28190,7 +27454,7 @@ return 0; /*<>*/ } function get_symbolic_output_buffer(sob){ - /*<>*/ return caml_call1(Stdlib_List[10], sob[1]); + /*<>*/ return Stdlib_List[10].call(null, sob[1]); /*<>*/ } function flush_symbolic_output_buffer(sob){ /*<>*/ /*<>*/ var @@ -28205,10 +27469,7 @@ function formatter_of_symbolic_output_b(sob){ /*<>*/ function f(s, i, n){ /*<>*/ return add_symbolic_output_item - (sob, - [0, - /*<>*/ caml_call3 - (Stdlib_String[16], s, i, n)]); + (sob, [0, Stdlib_String[16].call(null, s, i, n)]); } /*<>*/ function g(_Q_){ /*<>*/ return add_symbolic_output_item(sob, 0); @@ -28586,9 +27847,7 @@ /*<>*/ right = [0, 0]; function flush(param){ /*<>*/ pp_print_string - (ppf, - /*<>*/ caml_call3 - (Stdlib_String[16], s, left[1], right[1] - left[1] | 0)); + (ppf, Stdlib_String[16].call(null, s, left[1], right[1] - left[1] | 0)); right[1]++; left[1] = right[1]; return 0; @@ -28650,18 +27909,16 @@ } function compute_tag(output, tag_acc){ /*<>*/ var - /*<>*/ buf = - /*<>*/ caml_call1(Stdlib_Buffer[1], 16), + /*<>*/ buf = Stdlib_Buffer[1].call(null, 16), /*<>*/ ppf = formatter_of_buffer(buf); /*<>*/ /*<>*/ caml_call2 (output, ppf, tag_acc); /*<>*/ pp_print_flush(ppf, 0); /*<>*/ /*<>*/ var - len = /*<>*/ caml_call1(Stdlib_Buffer[7], buf); + len = Stdlib_Buffer[7].call(null, buf); /*<>*/ return 2 <= len - ? /*<>*/ caml_call3 - (Stdlib_Buffer[4], buf, 1, len - 2 | 0) - : /*<>*/ caml_call1(Stdlib_Buffer[2], buf); + ? Stdlib_Buffer[4].call(null, buf, 1, len - 2 | 0) + : Stdlib_Buffer[2].call(null, buf); /*<>*/ } function output_formatting_lit(ppf, fmting_lit){ /*<>*/ if(typeof fmting_lit === "number") @@ -28719,8 +27976,7 @@ /*<>*/ var /*<>*/ _E_ = compute_tag(output_acc, acc$1), /*<>*/ match$0 = - /*<>*/ caml_call1 - (CamlinternalFormat[20], _E_), + CamlinternalFormat[20].call(null, _E_), bty = match$0[2], indent = match$0[1]; /*<>*/ return pp_open_box_gen(ppf, indent, bty); @@ -28780,15 +28036,11 @@ default: var msg = acc[2], p$7 = acc[1]; /*<>*/ output_acc(ppf, p$7); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], msg); + /*<>*/ return Stdlib[1].call(null, msg); } /*<>*/ output_acc(ppf, p$4); /*<>*/ return pp_print_as_size - (ppf, - size$0, - /*<>*/ caml_call2 - (Stdlib_String[1], 1, c$0)); + (ppf, size$0, Stdlib_String[1].call(null, 1, c$0)); } /*<>*/ output_acc(ppf, p$3); /*<>*/ return pp_print_char(ppf, c); @@ -28826,8 +28078,7 @@ /*<>*/ var /*<>*/ _v_ = compute_tag(strput_acc, acc$1), /*<>*/ match$0 = - /*<>*/ caml_call1 - (CamlinternalFormat[20], _v_), + CamlinternalFormat[20].call(null, _v_), bty = match$0[2], indent = match$0[1]; /*<>*/ return pp_open_box_gen(ppf, indent, bty); @@ -28897,15 +28148,11 @@ default: var msg = acc[2], p$8 = acc[1]; /*<>*/ strput_acc(ppf, p$8); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], msg); + /*<>*/ return Stdlib[1].call(null, msg); } /*<>*/ strput_acc(ppf, p$4); /*<>*/ return pp_print_as_size - (ppf, - size$0, - /*<>*/ caml_call2 - (Stdlib_String[1], 1, c$0)); + (ppf, size$0, Stdlib_String[1].call(null, 1, c$0)); } /*<>*/ strput_acc(ppf, p$3); /*<>*/ return pp_print_char(ppf, c); @@ -28918,8 +28165,8 @@ /*<>*/ } function kfprintf(k, ppf, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], + /*<>*/ return CamlinternalFormat[7].call + (null, function(acc){ /*<>*/ output_acc(ppf, acc); return caml_call1(k, ppf); @@ -28929,16 +28176,13 @@ } function ikfprintf(k, ppf, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[8], k, ppf, fmt); + /*<>*/ return CamlinternalFormat[8].call + (null, k, ppf, fmt); } function ifprintf(ppf, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[8], - function(_u_){ /*<>*/ return 0;}, - 0, - fmt); + /*<>*/ return CamlinternalFormat[8].call + (null, function(_u_){ /*<>*/ return 0;}, 0, fmt); } function fprintf(ppf){ function _r_(_t_){ /*<>*/ return 0;} @@ -28947,8 +28191,8 @@ /*<>*/ } function printf(param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], + /*<>*/ return CamlinternalFormat[7].call + (null, function(acc){ /*<>*/ return output_acc ( /*<>*/ caml_call1 @@ -28960,8 +28204,8 @@ } function eprintf(param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], + /*<>*/ return CamlinternalFormat[7].call + (null, function(acc){ /*<>*/ return output_acc ( /*<>*/ caml_call1 @@ -28973,8 +28217,8 @@ } function kdprintf(k, param){ var fmt = param[1]; - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], + /*<>*/ return CamlinternalFormat[7].call + (null, function(acc){ /*<>*/ return /*<>*/ caml_call1 (k, @@ -29002,8 +28246,8 @@ /*<>*/ return /*<>*/ caml_call1 (k, flush_buffer_formatter(b, ppf)); /*<>*/ } - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], k$0, 0, fmt); + /*<>*/ return CamlinternalFormat[7].call + (null, k$0, 0, fmt); } function sprintf(fmt){ /*<>*/ return ksprintf(id, fmt); @@ -29018,8 +28262,8 @@ /*<>*/ return /*<>*/ caml_call1 (k, flush_buffer_formatter(b, ppf)); /*<>*/ } - /*<>*/ return /*<>*/ caml_call3 - (CamlinternalFormat[7], k$0, 0, fmt); + /*<>*/ return CamlinternalFormat[7].call + (null, k$0, 0, fmt); } function asprintf(fmt){ /*<>*/ return kasprintf(id, fmt); @@ -29034,10 +28278,9 @@ (Stdlib_Domain[10][2], err_formatter_key), 0); /*<>*/ } - /*<>*/ /*<>*/ caml_call1 - (Stdlib[100], flush_standard_formatters); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Domain[5], + /*<>*/ Stdlib[100].call(null, flush_standard_formatters); + /*<>*/ Stdlib_Domain[5].call + (null, function(param){ /*<>*/ flush_standard_formatters(0); /*<>*/ var @@ -29234,6 +28477,7 @@ //# unitInfo: Provides: Stdlib__Scanf //# unitInfo: Requires: CamlinternalFormat, CamlinternalFormatBasics, Stdlib, Stdlib__Buffer, Stdlib__Bytes, Stdlib__Int, Stdlib__Printf, Stdlib__String +//# shape: Stdlib__Scanf:[N,N,F(2),F(2),F(2),F(2),F(1),F(1),F(3),F(3),F(3),F(3),F(2),F(1)] (function (globalThis){ "use strict"; @@ -29267,11 +28511,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); } var global_data = runtime.caml_get_global_data(), @@ -29357,10 +28596,8 @@ function token_string(ib){ /*<>*/ var token_buffer = ib[8], - /*<>*/ tok = - /*<>*/ caml_call1(Stdlib_Buffer[2], token_buffer); - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Buffer[8], token_buffer); + /*<>*/ tok = Stdlib_Buffer[2].call(null, token_buffer); + /*<>*/ Stdlib_Buffer[8].call(null, token_buffer); ib[6] = ib[6] + 1 | 0; /*<>*/ return tok; /*<>*/ } @@ -29370,8 +28607,7 @@ /*<>*/ return width$0; /*<>*/ } function store_char(width, ib, c){ - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], ib[8], c); + /*<>*/ Stdlib_Buffer[12].call(null, ib[8], c); /*<>*/ return ignore_char(width, ib); /*<>*/ } var default_token_buffer_size = 1024; @@ -29384,8 +28620,7 @@ 0, 0, next, - /*<>*/ caml_call1 - (Stdlib_Buffer[1], default_token_buffer_size), + Stdlib_Buffer[1].call(null, default_token_buffer_size), iname]; /*<>*/ } function from_string(s){ @@ -29410,8 +28645,7 @@ } /*<>*/ var len = 1024; function scan_close_at_end(ic){ - /*<>*/ /*<>*/ caml_call1 - (Stdlib[93], ic); + /*<>*/ Stdlib[93].call(null, ic); /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Stdlib[12], 1); /*<>*/ } @@ -29436,7 +28670,7 @@ if(eof[1]) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace (Stdlib[12], 1); - lim[1] = /*<>*/ caml_call4(Stdlib[84], ic, buf, 0, len); + lim[1] = Stdlib[84].call(null, ic, buf, 0, len); return 0 === lim[1] ? (eof[1] = 1, caml_call1(scan_close_ic, ic)) : (i[1] = 1, /*<>*/ caml_bytes_get(buf, 0)); @@ -29468,12 +28702,10 @@ if(typeof match === "number") /*<>*/ return 0; if(0 === match[0]){ var ic = match[1]; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[93], ic); + /*<>*/ return Stdlib[93].call(null, ic); } var ic$0 = match[2]; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[93], ic$0); + /*<>*/ return Stdlib[93].call(null, ic$0); /*<>*/ } /*<>*/ var /*<>*/ Scan_failure = @@ -29568,19 +28800,21 @@ /*<>*/ } function bad_input_escape(c){ /*<>*/ return bad_input - ( /*<>*/ caml_call2(Stdlib_Printf[4], _d_, c)); + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _d_), c)); /*<>*/ } function bad_token_length(message){ /*<>*/ return bad_input - ( /*<>*/ caml_call2 - (Stdlib_Printf[4], _e_, message)); + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _e_), message)); /*<>*/ } function bad_hex_float(param){ /*<>*/ return bad_input(cst_not_a_valid_float_in_hexad); /*<>*/ } function character_mismatch(c, ci){ /*<>*/ return bad_input - ( /*<>*/ caml_call3(Stdlib_Printf[4], _g_, c, ci)); + ( /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _g_), c, ci)); /*<>*/ } function check_char(ib, c$0){ /*<>*/ if(10 === c$0){ @@ -29626,7 +28860,8 @@ ? s !== "true" ? bad_input - ( /*<>*/ caml_call2(Stdlib_Printf[4], _h_, s)) + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _h_), s)) : 1 : 0; /*<>*/ } @@ -29657,22 +28892,22 @@ case 0: /*<>*/ var /*<>*/ _aO_ = token_string(ib), - tok = /*<>*/ caml_call2(Stdlib[28], cst_0b, _aO_); + tok = Stdlib[28].call(null, cst_0b, _aO_); break; case 3: /*<>*/ var /*<>*/ _aP_ = token_string(ib), - tok = /*<>*/ caml_call2(Stdlib[28], cst_0o, _aP_); + tok = Stdlib[28].call(null, cst_0o, _aP_); break; case 4: /*<>*/ var /*<>*/ _aQ_ = token_string(ib), - tok = /*<>*/ caml_call2(Stdlib[28], cst_0u, _aQ_); + tok = Stdlib[28].call(null, cst_0u, _aQ_); break; case 5: /*<>*/ var /*<>*/ _aR_ = token_string(ib), - tok = /*<>*/ caml_call2(Stdlib[28], cst_0x, _aR_); + tok = Stdlib[28].call(null, cst_0x, _aR_); break; default: var tok = token_string(ib); } @@ -29680,8 +28915,8 @@ l = /*<>*/ caml_ml_string_length(tok); /*<>*/ if (0 !== l && 43 === /*<>*/ caml_string_get(tok, 0)) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], tok, 1, l - 1 | 0); + /*<>*/ return Stdlib_String[16].call + (null, tok, 1, l - 1 | 0); /*<>*/ return tok; /*<>*/ } function token_float(ib){ @@ -29719,7 +28954,8 @@ c = checked_peek_char(ib); if(9 < c - 48 >>> 0) /*<>*/ return bad_input - ( /*<>*/ caml_call2(Stdlib_Printf[4], _j_, c)); + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _j_), c)); /*<>*/ /*<>*/ var width$0 = store_char(width, ib, c); /*<>*/ return scan_decimal_digit_star(width$0, ib); @@ -29732,8 +28968,8 @@ /*<>*/ if (! /*<>*/ caml_call1(digitp, c$0)) /*<>*/ return bad_input - ( /*<>*/ caml_call3 - (Stdlib_Printf[4], _k_, c$0, basis)); + ( /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _k_), c$0, basis)); /*<>*/ var /*<>*/ width$3 = store_char(width$2, ib, c$0), width = width$3; @@ -29881,7 +29117,7 @@ /*<>*/ var /*<>*/ width$2 = store_char(width$0, ib, c), /*<>*/ precision$0 = - /*<>*/ caml_call2(Stdlib_Int[10], width$2, precision), + Stdlib_Int[10].call(null, width$2, precision), width$3 = width$2 - (precision$0 - scan_fractional_part(precision$0, ib) | 0) | 0; /*<>*/ return [0, @@ -29892,7 +29128,7 @@ /*<>*/ function lowercase(c){ /*<>*/ return 25 < c - 65 >>> 0 ? c - : caml_call1(Stdlib[29], (c - 65 | 0) + 97 | 0); + : Stdlib[29].call(null, (c - 65 | 0) + 97 | 0); /*<>*/ } /*<>*/ var /*<>*/ len = @@ -29995,8 +29231,7 @@ if(80 !== match && 112 !== match){ /*<>*/ var /*<>*/ precision$0 = - /*<>*/ caml_call2 - (Stdlib_Int[10], width$6, precision), + Stdlib_Int[10].call(null, width$6, precision), width$10 = width$6 - @@ -30072,8 +29307,7 @@ /*<>*/ var /*<>*/ width$1 = store_char(width$0, ib, c), /*<>*/ precision$0 = - /*<>*/ caml_call2 - (Stdlib_Int[10], width$1, precision), + Stdlib_Int[10].call(null, width$1, precision), /*<>*/ width_precision = scan_fractional_part(precision$0, ib), frac_width = precision$0 - width_precision | 0, @@ -30155,8 +29389,7 @@ if(80 !== match && 112 !== match){ /*<>*/ var /*<>*/ precision$0 = - /*<>*/ caml_call2 - (Stdlib_Int[10], width$4, precision), + Stdlib_Int[10].call(null, width$4, precision), width$9 = width$4 - @@ -30245,8 +29478,8 @@ /*<>*/ /*<>*/ var c = peek_char(ib); /*<>*/ return ib[1] ? bad_input - ( /*<>*/ caml_call2 - (Stdlib_Printf[4], _f_, message)) + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _f_), message)) : c; /*<>*/ } function scan_backslash_char(width, ib){ @@ -30271,15 +29504,12 @@ | 0; b: { - if(0 <= c && 255 >= c){ - var _ab_ = /*<>*/ caml_call1(Stdlib[29], c); - break b; - } + if(0 <= c && 255 >= c){var _ab_ = Stdlib[29].call(null, c); break b;} var _ab_ = bad_input - ( /*<>*/ caml_call4 - (Stdlib_Printf[4], _l_, c0, c1$0, c2$0)); + ( /*<>*/ caml_call3 + (Stdlib_Printf[4].call(null, _l_), c0, c1$0, c2$0)); } /*<>*/ return store_char(width - 2 | 0, ib, _ab_); } @@ -30311,14 +29541,14 @@ b: { if(0 <= c$0 && 255 >= c$0){ - var _aa_ = /*<>*/ caml_call1(Stdlib[29], c$0); + var _aa_ = Stdlib[29].call(null, c$0); break b; } var _aa_ = bad_input - ( /*<>*/ caml_call3 - (Stdlib_Printf[4], _m_, c1, c2)); + ( /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _m_), c1, c2)); } /*<>*/ return store_char(width - 2 | 0, ib, _aa_); case 0: @@ -30435,8 +29665,7 @@ if(_V_) /*<>*/ var /*<>*/ _W_ = - /*<>*/ caml_call2 - (CamlinternalFormat[1], char_set, c), + CamlinternalFormat[1].call(null, char_set, c), /*<>*/ _X_ = _W_ ? c !== stp ? 1 : 0 : _W_; else var _X_ = _V_; @@ -30470,7 +29699,8 @@ /*<>*/ /*<>*/ var i = char_count(ib); /*<>*/ return bad_input - ( /*<>*/ caml_call3(Stdlib_Printf[4], _o_, i, s)); + ( /*<>*/ caml_call2 + (Stdlib_Printf[4].call(null, _o_), i, s)); } function width_of_pad_opt(pad_opt){ /*<>*/ if(! pad_opt) @@ -30482,13 +29712,12 @@ /*<>*/ if(6 === fmting) /*<>*/ return _p_; /*<>*/ var - /*<>*/ str = - /*<>*/ caml_call1(CamlinternalFormat[17], fmting), + /*<>*/ str = CamlinternalFormat[17].call(null, fmting), /*<>*/ stp = /*<>*/ caml_string_get(str, 1), /*<>*/ sub_str = - /*<>*/ caml_call3 - (Stdlib_String[16], + Stdlib_String[16].call + (null, str, 2, /*<>*/ caml_ml_string_length(str) - 2 | 0); @@ -30534,10 +29763,9 @@ rest$13 = fmt$0[3], fmtty = fmt$0[2], /*<>*/ _Q_ = - /*<>*/ caml_call1(CamlinternalFormat[21], fmtty), + CamlinternalFormat[21].call(null, fmtty), /*<>*/ _R_ = - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], _Q_); + CamlinternalFormatBasics[2].call(null, _Q_); /*<>*/ if(counter >= 50) /*<>*/ return /*<>*/ caml_trampoline_return (take_fmtty_format_readers$0, [0, k, _R_, rest$13]); @@ -30557,8 +29785,7 @@ rest$17 = fmt$0[2], fmt$1 = _S_[1][1], /*<>*/ fmt$2 = - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$1, rest$17); + CamlinternalFormatBasics[3].call(null, fmt$1, rest$17); fmt$0 = fmt$2; } else{ @@ -30566,8 +29793,7 @@ rest$18 = fmt$0[2], fmt$3 = _S_[1][1], /*<>*/ fmt$4 = - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$3, rest$18); + CamlinternalFormatBasics[3].call(null, fmt$3, rest$18); fmt$0 = fmt$4; } break; @@ -30679,13 +29905,11 @@ ty2 = fmtty$0[2], ty1 = fmtty$0[1], /*<>*/ _P_ = - /*<>*/ caml_call1(CamlinternalFormat[21], ty1), + CamlinternalFormat[21].call(null, ty1), /*<>*/ ty = - /*<>*/ caml_call2 - (CamlinternalFormat[22], _P_, ty2), + CamlinternalFormat[22].call(null, _P_, ty2), /*<>*/ fmtty$10 = - /*<>*/ caml_call2 - (CamlinternalFormatBasics[1], ty, rest); + CamlinternalFormatBasics[1].call(null, ty, rest); fmtty$0 = fmtty$10; break; case 10: @@ -30794,8 +30018,7 @@ /*<>*/ }; /*<>*/ return pad_prec_scanf (ib, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$1, rest$3), + CamlinternalFormatBasics[3].call(null, fmt$1, rest$3), readers, pad, 0, @@ -30811,8 +30034,7 @@ /*<>*/ }; /*<>*/ return pad_prec_scanf (ib, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$2, rest$4), + CamlinternalFormatBasics[3].call(null, fmt$2, rest$4), readers, pad, 0, @@ -30845,8 +30067,7 @@ iconv = fmt$0[1], /*<>*/ conv = integer_conversion_of_char - ( /*<>*/ caml_call1 - (CamlinternalFormat[16], iconv)), + (CamlinternalFormat[16].call(null, iconv)), scan$4 = function(width, param, ib){ /*<>*/ return scan_int_conversion @@ -30871,8 +30092,7 @@ iconv$0 = fmt$0[1], /*<>*/ conv$0 = integer_conversion_of_char - ( /*<>*/ caml_call1 - (CamlinternalFormat[16], iconv$0)), + (CamlinternalFormat[16].call(null, iconv$0)), scan$5 = function(width, param, ib){ /*<>*/ return scan_int_conversion @@ -30897,8 +30117,7 @@ iconv$1 = fmt$0[1], /*<>*/ conv$1 = integer_conversion_of_char - ( /*<>*/ caml_call1 - (CamlinternalFormat[16], iconv$1)), + (CamlinternalFormat[16].call(null, iconv$1)), scan$6 = function(width, param, ib){ /*<>*/ return scan_int_conversion @@ -30923,8 +30142,7 @@ iconv$2 = fmt$0[1], /*<>*/ conv$2 = integer_conversion_of_char - ( /*<>*/ caml_call1 - (CamlinternalFormat[16], iconv$2)), + (CamlinternalFormat[16].call(null, iconv$2)), scan$7 = function(width, param, ib){ /*<>*/ return scan_int_conversion @@ -30991,8 +30209,8 @@ === c ? 4 : bad_input - ( /*<>*/ caml_call2 - (Stdlib_Printf[4], _n_, c)); + ( /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _n_), c)); /*<>*/ return scan_string(0, m, ib); /*<>*/ }; /*<>*/ return pad_prec_scanf @@ -31005,10 +30223,8 @@ break; case 11: var rest$15 = fmt$0[2], str$0 = fmt$0[1]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_String[30], - function(_N_){ /*<>*/ return check_char(ib, _N_);}, - str$0); + /*<>*/ Stdlib_String[30].call + (null, function(_N_){ /*<>*/ return check_char(ib, _N_);}, str$0); fmt$0 = rest$15; break; case 12: @@ -31025,8 +30241,7 @@ /*<>*/ try{ /*<>*/ var /*<>*/ _E_ = - /*<>*/ caml_call2 - (CamlinternalFormat[14], s, fmtty), + CamlinternalFormat[14].call(null, s, fmtty), fmt$3 = _E_; } catch(exn$0){ @@ -31045,29 +30260,18 @@ s$0 = token_string(ib); try{ /*<>*/ var - fmt$6 = - /*<>*/ caml_call2 - (CamlinternalFormat[13], 0, s$0) - [1], - fmt$7 = - /*<>*/ caml_call2 - (CamlinternalFormat[13], 0, s$0) - [1], + fmt$6 = CamlinternalFormat[13].call(null, 0, s$0)[1], + fmt$7 = CamlinternalFormat[13].call(null, 0, s$0)[1], /*<>*/ _G_ = - /*<>*/ caml_call1 - (CamlinternalFormat[21], fmtty$0), + CamlinternalFormat[21].call(null, fmtty$0), /*<>*/ _H_ = - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], _G_), + CamlinternalFormatBasics[2].call(null, _G_), /*<>*/ fmt$8 = - /*<>*/ caml_call2 - (CamlinternalFormat[12], fmt$7, _H_), + CamlinternalFormat[12].call(null, fmt$7, _H_), /*<>*/ _I_ = - /*<>*/ caml_call1 - (CamlinternalFormatBasics[2], fmtty$0), + CamlinternalFormatBasics[2].call(null, fmtty$0), /*<>*/ _J_ = - /*<>*/ caml_call2 - (CamlinternalFormat[12], fmt$6, _I_), + CamlinternalFormat[12].call(null, fmt$6, _I_), fmt$5 = fmt$8, fmt$4 = _J_; } @@ -31085,26 +30289,22 @@ [0, fmt$4, s$0], make_scanf (ib, - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$5, rest$18), + CamlinternalFormatBasics[3].call(null, fmt$5, rest$18), readers)]; case 15: - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion_a); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion_a); case 16: - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion_t); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion_t); case 17: /*<>*/ var rest$19 = fmt$0[2], formatting_lit = fmt$0[1], /*<>*/ _K_ = - /*<>*/ caml_call1 - (CamlinternalFormat[17], formatting_lit); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_String[30], - function(_M_){ /*<>*/ return check_char(ib, _M_);}, - _K_); + CamlinternalFormat[17].call(null, formatting_lit); + /*<>*/ Stdlib_String[30].call + (null, function(_M_){ /*<>*/ return check_char(ib, _M_);}, _K_); fmt$0 = rest$19; break; case 18: @@ -31114,9 +30314,7 @@ /*<>*/ check_char(ib, 64); /*<>*/ check_char(ib, 123); /*<>*/ /*<>*/ var - fmt$10 = - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$9, rest$20); + fmt$10 = CamlinternalFormatBasics[3].call(null, fmt$9, rest$20); fmt$0 = fmt$10; } else{ @@ -31124,17 +30322,15 @@ /*<>*/ check_char(ib, 64); /*<>*/ check_char(ib, 91); /*<>*/ /*<>*/ var - fmt$12 = - /*<>*/ caml_call2 - (CamlinternalFormatBasics[3], fmt$11, rest$21); + fmt$12 = CamlinternalFormatBasics[3].call(null, fmt$11, rest$21); fmt$0 = fmt$12; } break; case 19: var fmt_rest = fmt$0[1]; /*<>*/ if(! readers) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_missing_reader); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_missing_reader); /*<>*/ var readers_rest = readers[2], reader = readers[1], @@ -31198,10 +30394,7 @@ /*<>*/ var rest$26 = fmt$0[2], ign = fmt$0[1], - fmt$13 = - /*<>*/ caml_call2 - (CamlinternalFormat[6], ign, rest$26) - [1], + fmt$13 = CamlinternalFormat[6].call(null, ign, rest$26)[1], /*<>*/ match$3 = make_scanf(ib, fmt$13, readers); if(! match$3) /*<>*/ throw /*<>*/ caml_maybe_attach_backtrace @@ -31209,8 +30402,8 @@ var arg_rest = match$3[2]; /*<>*/ return arg_rest; default: - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion_custo); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion_custo); } } /*<>*/ } @@ -31225,8 +30418,8 @@ /*<>*/ return [0, x$0, make_scanf(ib, fmt, readers)]; } if(prec) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion); /*<>*/ /*<>*/ caml_call3 (scan, Stdlib[19], Stdlib[19], ib); /*<>*/ /*<>*/ var @@ -31234,11 +30427,11 @@ /*<>*/ return [0, x, make_scanf(ib, fmt, readers)]; } if(0 !== pad[0]) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion$2); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion$2); if(! pad[1]) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion$1); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion$1); var w = pad[2]; if(typeof prec !== "number"){ var p$0 = prec[1]; @@ -31249,8 +30442,8 @@ /*<>*/ return [0, x$2, make_scanf(ib, fmt, readers)]; } if(prec) - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], cst_scanf_bad_conversion$0); + /*<>*/ return Stdlib[1].call + (null, cst_scanf_bad_conversion$0); /*<>*/ /*<>*/ caml_call3 (scan, w, Stdlib[19], ib); /*<>*/ /*<>*/ var @@ -31260,7 +30453,7 @@ function kscanf_gen(ib, ef, af, param){ var str = param[2], fmt = param[1]; function k(readers, f$1){ - /*<>*/ caml_call1(Stdlib_Buffer[9], ib[8]); + /*<>*/ Stdlib_Buffer[9].call(null, ib[8]); /*<>*/ try{ /*<>*/ /*<>*/ var args$1 = make_scanf(ib, fmt, readers); @@ -31272,16 +30465,12 @@ if(exc[1] !== Stdlib[6]) throw caml_maybe_attach_backtrace(exc, 0); /*<>*/ var msg = exc[2], - /*<>*/ _z_ = - /*<>*/ caml_call1(Stdlib_String[25], str), - /*<>*/ _A_ = - /*<>*/ caml_call2(Stdlib[28], _z_, cst$0), + /*<>*/ _z_ = Stdlib_String[25].call(null, str), + /*<>*/ _A_ = Stdlib[28].call(null, _z_, cst$0), /*<>*/ _B_ = - /*<>*/ caml_call2(Stdlib[28], cst_in_format, _A_), - /*<>*/ _C_ = - /*<>*/ caml_call2(Stdlib[28], msg, _B_); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[1], _C_); + Stdlib[28].call(null, cst_in_format, _A_), + /*<>*/ _C_ = Stdlib[28].call(null, msg, _B_); + /*<>*/ return Stdlib[1].call(null, _C_); } /*<>*/ return /*<>*/ caml_call2 (ef, ib, exc); @@ -31351,8 +30540,7 @@ /*<>*/ try{ /*<>*/ var /*<>*/ _x_ = - /*<>*/ caml_call2 - (CamlinternalFormat[15], str, format), + CamlinternalFormat[15].call(null, str, format), fmt = _x_; } catch(exn$0){ @@ -31368,12 +30556,10 @@ /*<>*/ } function format_from_string(s, fmt){ /*<>*/ var - /*<>*/ _v_ = - /*<>*/ caml_call1(Stdlib_String[25], s), - /*<>*/ _w_ = - /*<>*/ caml_call2(Stdlib[28], _v_, cst$1); + /*<>*/ _v_ = Stdlib_String[25].call(null, s), + /*<>*/ _w_ = Stdlib[28].call(null, _v_, cst$1); /*<>*/ return sscanf_format - ( /*<>*/ caml_call2(Stdlib[28], cst$2, _w_), + (Stdlib[28].call(null, cst$2, _w_), fmt, function(x){ /*<>*/ return x; @@ -31381,11 +30567,9 @@ /*<>*/ } function unescaped(s){ /*<>*/ /*<>*/ var - _u_ = /*<>*/ caml_call2(Stdlib[28], s, cst$3); + _u_ = Stdlib[28].call(null, s, cst$3); /*<>*/ return /*<>*/ caml_call1 - (sscanf - ( /*<>*/ caml_call2(Stdlib[28], cst$4, _u_), - _t_), + (sscanf(Stdlib[28].call(null, cst$4, _u_), _t_), function(x){ /*<>*/ return x; /*<>*/ }); @@ -31426,6 +30610,7 @@ //# unitInfo: Provides: Stdlib__Callback //# unitInfo: Requires: Stdlib, Stdlib__Obj +//# shape: Stdlib__Callback:[F(2),F(2)] (function (globalThis){ "use strict"; @@ -31453,6 +30638,7 @@ //# unitInfo: Provides: CamlinternalOO //# unitInfo: Requires: Stdlib, Stdlib__Array, Stdlib__List, Stdlib__Map, Stdlib__Obj, Stdlib__Sys +//# shape: CamlinternalOO:[F(1),F(1),F(2),F(3),F(2),F(2),F(2),F(2),F(2),F(3),F(2),F(4),F(1),F(2),N,F(1),F(1),F(6),F(2),F(3),F(1),F(1),F(1),F(2),F(2),F(3),F(2),F(2),N,F(1)] (function (globalThis){ "use strict"; @@ -31482,11 +30668,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call5(f, a0, a1, a2, a3, a4){ - return (f.l >= 0 ? f.l : f.l = f.length) == 5 - ? f(a0, a1, a2, a3, a4) - : runtime.caml_call_gen(f, [a0, a1, a2, a3, a4]); } var global_data = runtime.caml_get_global_data(), @@ -31528,11 +30709,11 @@ /*<>*/ } /*<>*/ var compare = caml_string_compare, - Vars = caml_call1(Stdlib_Map[1], [0, compare]), + Vars = Stdlib_Map[1].call(null, [0, compare]), compare$0 = caml_string_compare, - Meths = caml_call1(Stdlib_Map[1], [0, compare$0]), + Meths = Stdlib_Map[1].call(null, [0, compare$0]), compare$1 = runtime.caml_int_compare, - Labs = caml_call1(Stdlib_Map[1], [0, compare$1]), + Labs = Stdlib_Map[1].call(null, [0, compare$1]), /*<>*/ dummy_table = [0, 0, [0, 0], Meths[1], Labs[1], 0, 0, Vars[1], 0], /*<>*/ table_count = [0, 0], @@ -31599,8 +30780,8 @@ /*<>*/ /*<>*/ var new_buck = /*<>*/ caml_make_vect(new_size, dummy_met); - /*<>*/ /*<>*/ caml_call5 - (Stdlib_Array[9], array[2], 0, new_buck, 0, old_size); + /*<>*/ Stdlib_Array[9].call + (null, array[2], 0, new_buck, 0, old_size); array[2] = new_buck; var _ac_ = 0; } @@ -31645,8 +30826,8 @@ } /*<>*/ } function get_method_labels(table, names){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Array[14], + /*<>*/ return Stdlib_Array[14].call + (null, function(_Z_){ /*<>*/ return get_method_label(table, _Z_);}, names); /*<>*/ } @@ -31663,9 +30844,7 @@ function get_method(table, label){ /*<>*/ try{ /*<>*/ /*<>*/ var - _X_ = - /*<>*/ caml_call2 - (Stdlib_List[49], label, table[6]); + _X_ = Stdlib_List[49].call(null, label, table[6]); /*<>*/ return _X_; } catch(_Y_){ @@ -31680,8 +30859,7 @@ function to_list(arr){ /*<>*/ return 0 === arr ? 0 - : /*<>*/ caml_call1 - (Stdlib_Array[10], arr); + : Stdlib_Array[10].call(null, arr); /*<>*/ } function narrow(table, vars, virt_meths, concr_meths){ /*<>*/ var @@ -31689,13 +30867,13 @@ /*<>*/ virt_meths$0 = to_list(virt_meths), /*<>*/ concr_meths$0 = to_list(concr_meths), /*<>*/ virt_meth_labs = - /*<>*/ caml_call2 - (Stdlib_List[20], + Stdlib_List[20].call + (null, function(_V_){ /*<>*/ return get_method_label(table, _V_);}, virt_meths$0), /*<>*/ concr_meth_labs = - /*<>*/ caml_call2 - (Stdlib_List[20], + Stdlib_List[20].call + (null, function(_U_){ /*<>*/ return get_method_label(table, _U_);}, concr_meths$0); table[5] = @@ -31706,8 +30884,8 @@ /*<>*/ caml_call3 (Vars[24], function(lab, info, tvars){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[37], lab, vars$0) + /*<>*/ return Stdlib_List[37].call + (null, lab, vars$0) ? /*<>*/ caml_call3 (Vars[2], lab, info, tvars) : tvars; @@ -31717,8 +30895,8 @@ /*<>*/ var /*<>*/ by_name = [0, Meths[1]], /*<>*/ by_label = [0, Labs[1]]; - /*<>*/ /*<>*/ caml_call3 - (Stdlib_List[28], + /*<>*/ Stdlib_List[28].call + (null, function(met, label){ /*<>*/ by_name[1] = /*<>*/ caml_call3 @@ -31742,8 +30920,8 @@ /*<>*/ }, concr_meths$0, concr_meth_labs); - /*<>*/ /*<>*/ caml_call3 - (Stdlib_List[28], + /*<>*/ Stdlib_List[28].call + (null, function(met, label){ /*<>*/ by_name[1] = /*<>*/ caml_call3 @@ -31758,12 +30936,12 @@ table[3] = by_name[1]; table[4] = by_label[1]; table[6] = - /*<>*/ caml_call3 - (Stdlib_List[27], + Stdlib_List[27].call + (null, function(met, hm){ /*<>*/ var lab = met[1]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[37], lab, virt_meth_labs) + /*<>*/ return Stdlib_List[37].call + (null, lab, virt_meth_labs) ? hm : [0, met, hm]; /*<>*/ }, @@ -31774,18 +30952,17 @@ function widen(table){ /*<>*/ var /*<>*/ match = - /*<>*/ caml_call1(Stdlib_List[6], table[5]), + Stdlib_List[6].call(null, table[5]), vars = match[6], virt_meths = match[5], saved_vars = match[4], saved_hidden_meths = match[3], by_label = match[2], by_name = match[1]; - table[5] = - /*<>*/ caml_call1(Stdlib_List[7], table[5]); + table[5] = Stdlib_List[7].call(null, table[5]); table[7] = - /*<>*/ caml_call3 - (Stdlib_List[26], + Stdlib_List[26].call + (null, function(s, v){ /*<>*/ /*<>*/ var _O_ = @@ -31798,12 +30975,12 @@ table[3] = by_name; table[4] = by_label; table[6] = - /*<>*/ caml_call3 - (Stdlib_List[27], + Stdlib_List[27].call + (null, function(met, hm){ /*<>*/ var lab = met[1]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_List[37], lab, virt_meths) + /*<>*/ return Stdlib_List[37].call + (null, lab, virt_meths) ? hm : [0, met, hm]; /*<>*/ }, @@ -31892,8 +31069,8 @@ } /*<>*/ } function get_variables(table, names){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Array[14], + /*<>*/ return Stdlib_Array[14].call + (null, function(_y_){ /*<>*/ return get_variable(table, _y_);}, names); /*<>*/ } @@ -31906,11 +31083,10 @@ /*<>*/ return new_table([0]); /*<>*/ var /*<>*/ tags = - /*<>*/ caml_call2 - (Stdlib_Array[14], public_method_label, public_methods), + Stdlib_Array[14].call(null, public_method_label, public_methods), /*<>*/ table = new_table(tags); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[13], + /*<>*/ Stdlib_Array[13].call + (null, function(i, met){ /*<>*/ var lab = (i * 2 | 0) + 2 | 0; table[3] = @@ -31927,8 +31103,7 @@ function init_class(table){ /*<>*/ inst_var_count[1] = (inst_var_count[1] + table[1] | 0) - 1 | 0; - table[8] = - /*<>*/ caml_call1(Stdlib_List[10], table[8]); + table[8] = Stdlib_List[10].call(null, table[8]); /*<>*/ /*<>*/ var _x_ = Stdlib_Sys[9]; return resize @@ -31949,8 +31124,8 @@ /*<>*/ _s_ = to_array(concr_meths), _t_ = [0, - /*<>*/ caml_call2 - (Stdlib_Array[14], + Stdlib_Array[14].call + (null, function(nm){ /*<>*/ return get_method (cla, get_method_label(cla, nm)); @@ -31962,13 +31137,12 @@ [0, [0, init], [0, - /*<>*/ caml_call2 - (Stdlib_Array[14], + Stdlib_Array[14].call + (null, function(_w_){ /*<>*/ return get_variable(cla, _w_);}, _u_), _t_]]; - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Array[5], _v_); + /*<>*/ return Stdlib_Array[5].call(null, _v_); } function make_class(pub_meths, class_init){ /*<>*/ var @@ -32530,6 +31704,7 @@ //# unitInfo: Provides: Stdlib__Oo //# unitInfo: Requires: CamlinternalOO +//# shape: Stdlib__Oo:[F(1),F(1),F(1)] (function (globalThis){ "use strict"; @@ -32548,6 +31723,7 @@ //# unitInfo: Provides: CamlinternalMod //# unitInfo: Requires: CamlinternalLazy, CamlinternalOO, Stdlib, Stdlib__Obj +//# shape: CamlinternalMod:[F(2),F(3)] (function (globalThis){ "use strict"; @@ -32619,16 +31795,12 @@ if(250 === _j_) return l[1]; if(246 !== _j_ && 244 !== _j_) /*<>*/ return l; - /*<>*/ return /*<>*/ caml_call1 - (CamlinternalLazy[2], l); + /*<>*/ return CamlinternalLazy[2].call + (null, l); }]); var init = l; break; - default: - var - init = - /*<>*/ caml_call1 - (CamlinternalOO[21], loc); + default: var init = CamlinternalOO[21].call(null, loc); } else if(0 === shape[0]) var comps = shape[1], init = init_mod_block(loc, comps); @@ -32649,8 +31821,8 @@ var comps = shape[1]; /*<>*/ return init_mod_block(loc, comps); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], cst_CamlinternalMod_init_mod_n); + /*<>*/ return Stdlib[2].call + (null, cst_CamlinternalMod_init_mod_n); /*<>*/ } function update_mod_block(comps$0, modu, n){ /*<>*/ if @@ -32711,8 +31883,8 @@ var comps = shape[1]; /*<>*/ return update_mod_block(comps, o, n); } - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], cst_CamlinternalMod_update_mod); + /*<>*/ return Stdlib[2].call + (null, cst_CamlinternalMod_update_mod); /*<>*/ } var CamlinternalMod = [0, init_mod, update_mod]; runtime.caml_register_global(8, CamlinternalMod, "CamlinternalMod"); @@ -32722,6 +31894,7 @@ //# unitInfo: Provides: Stdlib__Ephemeron //# unitInfo: Requires: CamlinternalLazy, Stdlib, Stdlib__Array, Stdlib__Hashtbl, Stdlib__Int, Stdlib__List, Stdlib__Obj, Stdlib__Random, Stdlib__Seq, Stdlib__Sys +//# shape: Stdlib__Ephemeron:[N,N,N] (function (globalThis){ "use strict"; @@ -32768,11 +31941,7 @@ [246, function(_at_){ /*<>*/ return caml_call1(Stdlib_Random[19][2], 0);}]; function create(opt, initial_size){ - var - random = - opt - ? opt[1] - : /*<>*/ caml_call1(Stdlib_Hashtbl[17], 0); + var random = opt ? opt[1] : Stdlib_Hashtbl[17].call(null, 0); a: b: { @@ -32792,7 +31961,7 @@ var _as_ = prng[1]; else{ if(246 !== _ar_ && 244 !== _ar_){var _as_ = prng; break a;} - var _as_ = caml_call1(CamlinternalLazy[2], prng); + var _as_ = CamlinternalLazy[2].call(null, prng); } var seed = @@ -32838,8 +32007,7 @@ /*<>*/ var _al_ = h[4], _am_ = h[3], - /*<>*/ _an_ = - /*<>*/ caml_call1(Stdlib_Array[7], h[2]); + /*<>*/ _an_ = Stdlib_Array[7].call(null, h[2]); /*<>*/ return [0, h[1], _an_, _am_, _al_]; /*<>*/ } function key_index(h, hkey){ @@ -33114,20 +32282,20 @@ function stats(h){ /*<>*/ var /*<>*/ mbl = - /*<>*/ caml_call3 - (Stdlib_Array[18], + Stdlib_Array[18].call + (null, function(m, b){ /*<>*/ /*<>*/ var _T_ = bucket_length(0, b); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Int[11], m, _T_); + /*<>*/ return Stdlib_Int[11].call + (null, m, _T_); /*<>*/ }, 0, h[2]), /*<>*/ histo = /*<>*/ caml_make_vect(mbl + 1 | 0, 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[12], + /*<>*/ Stdlib_Array[12].call + (null, function(b){ /*<>*/ /*<>*/ var l = bucket_length(0, b); @@ -33156,20 +32324,20 @@ /*<>*/ var /*<>*/ size = [0, 0], /*<>*/ mbl = - /*<>*/ caml_call3 - (Stdlib_Array[18], + Stdlib_Array[18].call + (null, function(m, b){ /*<>*/ /*<>*/ var _S_ = bucket_length_alive(0, b); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Int[11], m, _S_); + /*<>*/ return Stdlib_Int[11].call + (null, m, _S_); /*<>*/ }, 0, h[2]), /*<>*/ histo = /*<>*/ caml_make_vect(mbl + 1 | 0, 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Array[12], + /*<>*/ Stdlib_Array[12].call + (null, function(b){ /*<>*/ /*<>*/ var l = bucket_length_alive(0, b); @@ -33186,8 +32354,8 @@ histo]; /*<>*/ } function add_seq(tbl, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return add(tbl, k, v); @@ -33195,8 +32363,8 @@ i); /*<>*/ } function replace_seq(tbl, i){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Seq[4], + /*<>*/ return Stdlib_Seq[4].call + (null, function(param){ /*<>*/ var v = param[2], k = param[1]; /*<>*/ return replace(tbl, k, v); @@ -33382,7 +32550,7 @@ if(! l) /*<>*/ return 0; var h = l[1], t = l[2]; /*<>*/ if(test_key(k, h)){ - b[1] = /*<>*/ caml_call2(Stdlib_List[13], acc, t); + b[1] = Stdlib_List[13].call(null, acc, t); return 0; } /*<>*/ var @@ -33395,16 +32563,14 @@ function find(b, k){ /*<>*/ /*<>*/ var match = - /*<>*/ caml_call2 - (Stdlib_List[40], - function(_P_){ /*<>*/ return test_key(k, _P_);}, - b[1]); + Stdlib_List[40].call + (null, function(_P_){ /*<>*/ return test_key(k, _P_);}, b[1]); if(! match) /*<>*/ return 0; var e = match[1]; /*<>*/ return get_data(e); /*<>*/ } function length(b){ - /*<>*/ return caml_call1(Stdlib_List[1], b[1]); + /*<>*/ return Stdlib_List[1].call(null, b[1]); /*<>*/ } function clear(b){ /*<>*/ b[1] = 0; @@ -33610,7 +32776,7 @@ if(! l) /*<>*/ return 0; var h = l[1], t = l[2]; /*<>*/ if(test_keys(k1, k2, h)){ - b[1] = /*<>*/ caml_call2(Stdlib_List[13], acc, t); + b[1] = Stdlib_List[13].call(null, acc, t); return 0; } /*<>*/ var @@ -33623,16 +32789,14 @@ function find$0(b, k1, k2){ /*<>*/ /*<>*/ var match = - /*<>*/ caml_call2 - (Stdlib_List[40], - function(_K_){ /*<>*/ return test_keys(k1, k2, _K_);}, - b[1]); + Stdlib_List[40].call + (null, function(_K_){ /*<>*/ return test_keys(k1, k2, _K_);}, b[1]); if(! match) /*<>*/ return 0; var e = match[1]; /*<>*/ return get_data$0(e); /*<>*/ } function length$0(b){ - /*<>*/ return caml_call1(Stdlib_List[1], b[1]); + /*<>*/ return Stdlib_List[1].call(null, b[1]); /*<>*/ } function clear$0(b){ /*<>*/ b[1] = 0; @@ -33946,7 +33110,7 @@ if(! l) /*<>*/ return 0; var h = l[1], t = l[2]; /*<>*/ if(test_keys$0(k, h)){ - b[1] = /*<>*/ caml_call2(Stdlib_List[13], acc, t); + b[1] = Stdlib_List[13].call(null, acc, t); return 0; } /*<>*/ var @@ -33959,16 +33123,14 @@ function find$1(b, k){ /*<>*/ /*<>*/ var match = - /*<>*/ caml_call2 - (Stdlib_List[40], - function(_d_){ /*<>*/ return test_keys$0(k, _d_);}, - b[1]); + Stdlib_List[40].call + (null, function(_d_){ /*<>*/ return test_keys$0(k, _d_);}, b[1]); if(! match) /*<>*/ return 0; var e = match[1]; /*<>*/ return get_data$1(e); /*<>*/ } function length$2(b){ - /*<>*/ return caml_call1(Stdlib_List[1], b[1]); + /*<>*/ return Stdlib_List[1].call(null, b[1]); /*<>*/ } function clear$1(b){ /*<>*/ b[1] = 0; @@ -34002,6 +33164,7 @@ //# unitInfo: Provides: Stdlib__Filename //# unitInfo: Requires: Stdlib, Stdlib__Buffer, Stdlib__Domain, Stdlib__List, Stdlib__Printf, Stdlib__Random, Stdlib__String, Stdlib__Sys +//# shape: Stdlib__Filename:[N,N,N,F(2),F(1),F(1),F(2),F(2),F(2),F(1),F(1),F(1),F(1),F(1),N,F(3),F(5),F(4),F(1),F(1),F(1),F(5)] (function (globalThis){ "use strict"; @@ -34042,11 +33205,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 3 ? f(a0, a1, a2) : runtime.caml_call_gen(f, [a0, a1, a2]); - } - /*<>*/ function caml_call4(f, a0, a1, a2, a3){ - return (f.l >= 0 ? f.l : f.l = f.length) == 4 - ? f(a0, a1, a2, a3) - : runtime.caml_call_gen(f, [a0, a1, a2, a3]); } var undef = undefined, @@ -34098,8 +33256,8 @@ var n$3 = caml_ml_string_length(name) - 1 | 0, n = n$3; /*<>*/ for(;;){ if(0 > n) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], name, 0, 1); + /*<>*/ return Stdlib_String[16].call + (null, name, 0, 1); /*<>*/ if (! /*<>*/ caml_call2(is_dir_sep, name, n)) break; @@ -34112,12 +33270,12 @@ n$1 = n; /*<>*/ for(;;){ if(0 > n$1) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], name, 0, p); + /*<>*/ return Stdlib_String[16].call + (null, name, 0, p); /*<>*/ if ( /*<>*/ caml_call2(is_dir_sep, name, n$1)) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], name, n$1 + 1 | 0, (p - n$1 | 0) - 1 | 0); + /*<>*/ return Stdlib_String[16].call + (null, name, n$1 + 1 | 0, (p - n$1 | 0) - 1 | 0); var n$2 = n$1 - 1 | 0; n$1 = n$2; } @@ -34128,8 +33286,8 @@ var n$5 = caml_ml_string_length(name) - 1 | 0, n = n$5; /*<>*/ for(;;){ if(0 > n) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], name, 0, 1); + /*<>*/ return Stdlib_String[16].call + (null, name, 0, 1); /*<>*/ if (! /*<>*/ caml_call2(is_dir_sep, name, n)) break; @@ -34150,12 +33308,12 @@ var n$3 = n$1; /*<>*/ for(;;){ if(0 > n$3) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], name, 0, 1); + /*<>*/ return Stdlib_String[16].call + (null, name, 0, 1); /*<>*/ if (! /*<>*/ caml_call2(is_dir_sep, name, n$3)) - /*<>*/ return /*<>*/ caml_call3 - (Stdlib_String[16], name, 0, n$3 + 1 | 0); + /*<>*/ return Stdlib_String[16].call + (null, name, 0, n$3 + 1 | 0); /*<>*/ /*<>*/ var n$4 = n$3 - 1 | 0; n$3 = n$4; @@ -34169,45 +33327,34 @@ /*<>*/ } function is_relative(n){ /*<>*/ var - _aH_ = caml_ml_string_length(n) < 1 ? 1 : 0, - _aI_ = - _aH_ + _aG_ = caml_ml_string_length(n) < 1 ? 1 : 0, + _aH_ = + _aG_ || (47 !== /*<>*/ caml_string_get(n, 0) ? 1 : 0); - return _aI_; + return _aH_; /*<>*/ } function is_implicit(n){ /*<>*/ /*<>*/ var - _aC_ = is_relative(n); - /*<>*/ if(_aC_){ + _aB_ = is_relative(n); + /*<>*/ if(_aB_){ var - _aD_ = caml_ml_string_length(n) < 2 ? 1 : 0, - _aE_ = - _aD_ - || - ( /*<>*/ caml_call3(Stdlib_String[16], n, 0, 2) - !== cst$27 - ? 1 - : 0); - /*<>*/ if(_aE_) + _aC_ = caml_ml_string_length(n) < 2 ? 1 : 0, + _aD_ = + _aC_ || (Stdlib_String[16].call(null, n, 0, 2) !== cst$27 ? 1 : 0); + /*<>*/ if(_aD_) var - _aF_ = caml_ml_string_length(n) < 3 ? 1 : 0, - _aG_ = - _aF_ - || - ( /*<>*/ caml_call3(Stdlib_String[16], n, 0, 3) - !== cst$28 - ? 1 - : 0); + _aE_ = caml_ml_string_length(n) < 3 ? 1 : 0, + _aF_ = + _aE_ || (Stdlib_String[16].call(null, n, 0, 3) !== cst$28 ? 1 : 0); else - var _aG_ = _aE_; + var _aF_ = _aD_; } else - var _aG_ = _aC_; - /*<>*/ return _aG_; + var _aF_ = _aB_; + /*<>*/ return _aF_; /*<>*/ } function check_suffix(name, suff){ - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_String[12], suff, name); + /*<>*/ return Stdlib_String[12].call(null, suff, name); /*<>*/ } function chop_suffix_opt(suffix, filename){ /*<>*/ var @@ -34215,19 +33362,16 @@ len_f = caml_ml_string_length(filename); if(len_s > len_f) /*<>*/ return 0; /*<>*/ /*<>*/ var - r = - /*<>*/ caml_call3 - (Stdlib_String[16], filename, len_f - len_s | 0, len_s); + r = Stdlib_String[16].call(null, filename, len_f - len_s | 0, len_s); /*<>*/ return r == suffix ? [0, - /*<>*/ caml_call3 - (Stdlib_String[16], filename, 0, len_f - len_s | 0)] + Stdlib_String[16].call(null, filename, 0, len_f - len_s | 0)] : 0; /*<>*/ } var - _h_ = [0, 7, 0], - _g_ = [0, 1, [0, 3, [0, 5, 0]]], - _f_ = [0, [2, 0, [4, 6, [0, 2, 6], 0, [2, 0, 0]]], "%s%06x%s"], + _g_ = [0, 7, 0], + _f_ = [0, 1, [0, 3, [0, 5, 0]]], + _e_ = [0, [2, 0, [4, 6, [0, 2, 6], 0, [2, 0, 0]]], "%s%06x%s"], cst_Filename_chop_extension = "Filename.chop_extension", cst_Filename_chop_suffix = "Filename.chop_suffix", _d_ = [0, cst$20, 0], @@ -34240,95 +33384,86 @@ cst_tmp = "/tmp"; try{ /*<>*/ var - /*<>*/ _j_ = + /*<>*/ _i_ = /*<>*/ caml_sys_getenv("TMPDIR"), - temp_dir_name = _j_; + temp_dir_name = _i_; } - catch(_aB_){ - var _a_ = caml_wrap_exception(_aB_); + catch(_aA_){ + var _a_ = caml_wrap_exception(_aA_); if(_a_ !== Stdlib[8]) throw caml_maybe_attach_backtrace(_a_, 0); var temp_dir_name = cst_tmp; } /*<>*/ function quote(s){ /*<>*/ var l = caml_ml_string_length(s), - /*<>*/ b = - /*<>*/ caml_call1(Stdlib_Buffer[1], l + 20 | 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 39); + /*<>*/ b = Stdlib_Buffer[1].call(null, l + 20 | 0); + /*<>*/ Stdlib_Buffer[12].call(null, b, 39); /*<>*/ var - _ay_ = l - 1 | 0, - /*<>*/ _ax_ = 0; - if(_ay_ >= 0){ - var i = _ax_; + _ax_ = l - 1 | 0, + /*<>*/ _aw_ = 0; + if(_ax_ >= 0){ + var i = _aw_; for(;;){ /*<>*/ if (39 === /*<>*/ caml_string_get(s, i)) - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[16], b, quotequote); + /*<>*/ Stdlib_Buffer[16].call(null, b, quotequote); else{ /*<>*/ /*<>*/ var - _aA_ = /*<>*/ caml_string_get(s, i); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, _aA_); + _az_ = /*<>*/ caml_string_get(s, i); + /*<>*/ Stdlib_Buffer[12].call(null, b, _az_); } /*<>*/ /*<>*/ var - _az_ = i + 1 | 0; - if(_ay_ === i) break; - i = _az_; + _ay_ = i + 1 | 0; + if(_ax_ === i) break; + i = _ay_; } } - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 39); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[2], b); + /*<>*/ Stdlib_Buffer[12].call(null, b, 39); + /*<>*/ return Stdlib_Buffer[2].call(null, b); } function quote_command(cmd, stdin, stdout, stderr, args){ /*<>*/ if(stderr){ var f = stderr[1]; /*<>*/ if ( /*<>*/ caml_equal(stderr, stdout)) - var _am_ = cst_2_1; + var _al_ = cst_2_1; else /*<>*/ var - /*<>*/ _aw_ = quote(f), - _am_ = /*<>*/ caml_call2(Stdlib[28], cst_2, _aw_); - var _an_ = _am_; + /*<>*/ _av_ = quote(f), + _al_ = Stdlib[28].call(null, cst_2, _av_); + var _am_ = _al_; } else - var _an_ = cst$4; + var _am_ = cst$4; if(stdout) /*<>*/ var f$0 = stdout[1], - /*<>*/ _ao_ = quote(f$0), - _ap_ = /*<>*/ caml_call2(Stdlib[28], cst, _ao_); + /*<>*/ _an_ = quote(f$0), + _ao_ = Stdlib[28].call(null, cst, _an_); else - var _ap_ = cst$3; + var _ao_ = cst$3; /*<>*/ /*<>*/ var - _aq_ = /*<>*/ caml_call2(Stdlib[28], _ap_, _an_); + _ap_ = Stdlib[28].call(null, _ao_, _am_); if(stdin) /*<>*/ var f$1 = stdin[1], - /*<>*/ _ar_ = quote(f$1), - _as_ = /*<>*/ caml_call2(Stdlib[28], cst$0, _ar_); + /*<>*/ _aq_ = quote(f$1), + _ar_ = Stdlib[28].call(null, cst$0, _aq_); else - var _as_ = cst$2; + var _ar_ = cst$2; /*<>*/ var - /*<>*/ _at_ = - /*<>*/ caml_call2(Stdlib[28], _as_, _aq_), - /*<>*/ _au_ = - /*<>*/ caml_call2 - (Stdlib_List[20], quote, [0, cmd, args]), - /*<>*/ _av_ = - /*<>*/ caml_call2(Stdlib_String[7], cst$1, _au_); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], _av_, _at_); + /*<>*/ _as_ = Stdlib[28].call(null, _ar_, _ap_), + /*<>*/ _at_ = + Stdlib_List[20].call(null, quote, [0, cmd, args]), + /*<>*/ _au_ = + Stdlib_String[7].call(null, cst$1, _at_); + /*<>*/ return Stdlib[28].call(null, _au_, _as_); /*<>*/ } - /*<>*/ function basename(_al_){ - /*<>*/ return generic_basename(is_dir_sep, current_dir_name, _al_); + /*<>*/ function basename(_ak_){ + /*<>*/ return generic_basename(is_dir_sep, current_dir_name, _ak_); } - /*<>*/ function dirname(_ak_){ - /*<>*/ return generic_dirname(is_dir_sep, current_dir_name, _ak_); + /*<>*/ function dirname(_aj_){ + /*<>*/ return generic_dirname(is_dir_sep, current_dir_name, _aj_); } /*<>*/ /*<>*/ var Unix = @@ -34351,115 +33486,88 @@ /*<>*/ var /*<>*/ c = /*<>*/ caml_string_get(s, i), - _ah_ = 47 === c ? 1 : 0; - if(_ah_) - var _ai_ = _ah_; + _ag_ = 47 === c ? 1 : 0; + if(_ag_) + var _ah_ = _ag_; else - var _aj_ = 92 === c ? 1 : 0, _ai_ = _aj_ || (58 === c ? 1 : 0); - return _ai_; + var _ai_ = 92 === c ? 1 : 0, _ah_ = _ai_ || (58 === c ? 1 : 0); + return _ah_; /*<>*/ } function is_relative$0(n){ /*<>*/ var - _ab_ = caml_ml_string_length(n) < 1 ? 1 : 0, - _ac_ = - _ab_ + _aa_ = caml_ml_string_length(n) < 1 ? 1 : 0, + _ab_ = + _aa_ || (47 !== /*<>*/ caml_string_get(n, 0) ? 1 : 0); - if(_ac_){ + if(_ab_){ var - _ad_ = caml_ml_string_length(n) < 1 ? 1 : 0, - _ae_ = - _ad_ + _ac_ = caml_ml_string_length(n) < 1 ? 1 : 0, + _ad_ = + _ac_ || (92 !== /*<>*/ caml_string_get(n, 0) ? 1 : 0); - if(_ae_) + if(_ad_) var - _af_ = caml_ml_string_length(n) < 2 ? 1 : 0, - _ag_ = - _af_ + _ae_ = caml_ml_string_length(n) < 2 ? 1 : 0, + _af_ = + _ae_ || (58 !== /*<>*/ caml_string_get(n, 1) ? 1 : 0); else - var _ag_ = _ae_; + var _af_ = _ad_; } else - var _ag_ = _ac_; - return _ag_; + var _af_ = _ab_; + return _af_; /*<>*/ } function is_implicit$0(n){ /*<>*/ /*<>*/ var - _U_ = is_relative$0(n); - /*<>*/ if(_U_){ + _T_ = is_relative$0(n); + /*<>*/ if(_T_){ var - _V_ = caml_ml_string_length(n) < 2 ? 1 : 0, - _W_ = - _V_ - || - ( /*<>*/ caml_call3(Stdlib_String[16], n, 0, 2) - !== cst$27 - ? 1 - : 0); - /*<>*/ if(_W_){ + _U_ = caml_ml_string_length(n) < 2 ? 1 : 0, + _V_ = _U_ || (Stdlib_String[16].call(null, n, 0, 2) !== cst$27 ? 1 : 0); + /*<>*/ if(_V_){ var - _X_ = caml_ml_string_length(n) < 2 ? 1 : 0, - _Y_ = - _X_ - || - ( /*<>*/ caml_call3(Stdlib_String[16], n, 0, 2) - !== ".\\" - ? 1 - : 0); - /*<>*/ if(_Y_){ + _W_ = caml_ml_string_length(n) < 2 ? 1 : 0, + _X_ = _W_ || (Stdlib_String[16].call(null, n, 0, 2) !== ".\\" ? 1 : 0); + /*<>*/ if(_X_){ var - _Z_ = caml_ml_string_length(n) < 3 ? 1 : 0, - ___ = - _Z_ - || - ( /*<>*/ caml_call3(Stdlib_String[16], n, 0, 3) - !== cst$28 - ? 1 - : 0); - /*<>*/ if(___) + _Y_ = caml_ml_string_length(n) < 3 ? 1 : 0, + _Z_ = + _Y_ || (Stdlib_String[16].call(null, n, 0, 3) !== cst$28 ? 1 : 0); + /*<>*/ if(_Z_) var - _$_ = caml_ml_string_length(n) < 3 ? 1 : 0, - _aa_ = - _$_ - || - ( /*<>*/ caml_call3 - (Stdlib_String[16], n, 0, 3) - !== "..\\" - ? 1 - : 0); + ___ = caml_ml_string_length(n) < 3 ? 1 : 0, + _$_ = + ___ || (Stdlib_String[16].call(null, n, 0, 3) !== "..\\" ? 1 : 0); else - var _aa_ = ___; + var _$_ = _Z_; } else - var _aa_ = _Y_; + var _$_ = _X_; } else - var _aa_ = _W_; + var _$_ = _V_; } else - var _aa_ = _U_; - /*<>*/ return _aa_; + var _$_ = _T_; + /*<>*/ return _$_; /*<>*/ } function check_suffix$0(name, suff){ /*<>*/ var - _R_ = caml_ml_string_length(suff) <= caml_ml_string_length(name) ? 1 : 0; - if(_R_) + _Q_ = caml_ml_string_length(suff) <= caml_ml_string_length(name) ? 1 : 0; + if(_Q_) /*<>*/ var /*<>*/ s = - /*<>*/ caml_call3 - (Stdlib_String[16], + Stdlib_String[16].call + (null, name, caml_ml_string_length(name) - caml_ml_string_length(suff) | 0, caml_ml_string_length(suff)), - /*<>*/ _S_ = - /*<>*/ caml_call1(Stdlib_String[27], suff), - _T_ = - /*<>*/ caml_call1(Stdlib_String[27], s) == _S_ - ? 1 - : 0; + /*<>*/ _R_ = Stdlib_String[27].call(null, suff), + _S_ = Stdlib_String[27].call(null, s) == _R_ ? 1 : 0; else - var _T_ = _R_; - /*<>*/ return _T_; + var _S_ = _Q_; + /*<>*/ return _S_; /*<>*/ } function chop_suffix_opt$0(suffix, filename){ /*<>*/ var @@ -34468,62 +33576,53 @@ if(len_s > len_f) /*<>*/ return 0; /*<>*/ var /*<>*/ r = - /*<>*/ caml_call3 - (Stdlib_String[16], filename, len_f - len_s | 0, len_s), - /*<>*/ _Q_ = - /*<>*/ caml_call1(Stdlib_String[27], suffix); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_String[27], r) - == _Q_ + Stdlib_String[16].call(null, filename, len_f - len_s | 0, len_s), + /*<>*/ _P_ = Stdlib_String[27].call(null, suffix); + /*<>*/ return Stdlib_String[27].call(null, r) == _P_ ? [0, - /*<>*/ caml_call3 - (Stdlib_String[16], filename, 0, len_f - len_s | 0)] + Stdlib_String[16].call(null, filename, 0, len_f - len_s | 0)] : 0; /*<>*/ } try{ /*<>*/ var - /*<>*/ _i_ = + /*<>*/ _h_ = /*<>*/ caml_sys_getenv("TEMP"), - temp_dir_name$0 = _i_; + temp_dir_name$0 = _h_; } - catch(_P_){ - var _b_ = caml_wrap_exception(_P_); + catch(_O_){ + var _b_ = caml_wrap_exception(_O_); if(_b_ !== Stdlib[8]) throw caml_maybe_attach_backtrace(_b_, 0); var temp_dir_name$0 = cst$5; } function quote$0(s){ /*<>*/ var l = caml_ml_string_length(s), - /*<>*/ b = - /*<>*/ caml_call1(Stdlib_Buffer[1], l + 20 | 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 34); + /*<>*/ b = Stdlib_Buffer[1].call(null, l + 20 | 0); + /*<>*/ Stdlib_Buffer[12].call(null, b, 34); function loop$0(counter, i){ /*<>*/ var i$0 = i; /*<>*/ for(;;){ if(i$0 === l) - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 34); + /*<>*/ return Stdlib_Buffer[12].call(null, b, 34); /*<>*/ /*<>*/ var c = /*<>*/ caml_string_get(s, i$0); if(34 === c){ - var _N_ = 0; + var _M_ = 0; /*<>*/ if(counter >= 50) /*<>*/ return /*<>*/ caml_trampoline_return - (loop_bs, [0, _N_, i$0]); + (loop_bs, [0, _M_, i$0]); var counter$1 = counter + 1 | 0; - /*<>*/ return loop_bs(counter$1, _N_, i$0); + /*<>*/ return loop_bs(counter$1, _M_, i$0); } if(92 === c){ - var _O_ = 0; + var _N_ = 0; /*<>*/ if(counter >= 50) /*<>*/ return /*<>*/ caml_trampoline_return - (loop_bs, [0, _O_, i$0]); + (loop_bs, [0, _N_, i$0]); var counter$0 = counter + 1 | 0; - /*<>*/ return loop_bs(counter$0, _O_, i$0); + /*<>*/ return loop_bs(counter$0, _N_, i$0); } - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, c); + /*<>*/ Stdlib_Buffer[12].call(null, b, c); /*<>*/ /*<>*/ var i$1 = i$0 + 1 | 0; i$0 = i$1; @@ -34534,23 +33633,21 @@ /*<>*/ var n$0 = n, i$0 = i; /*<>*/ for(;;){ if(i$0 === l){ - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 34); + /*<>*/ Stdlib_Buffer[12].call(null, b, 34); /*<>*/ return add_bs(n$0); } /*<>*/ /*<>*/ var match = /*<>*/ caml_string_get(s, i$0); if(34 === match){ /*<>*/ add_bs((2 * n$0 | 0) + 1 | 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 34); + /*<>*/ Stdlib_Buffer[12].call(null, b, 34); /*<>*/ /*<>*/ var - _M_ = i$0 + 1 | 0; + _L_ = i$0 + 1 | 0; /*<>*/ if(counter >= 50) /*<>*/ return /*<>*/ caml_trampoline_return - (loop$0, [0, _M_]); + (loop$0, [0, _L_]); var counter$1 = counter + 1 | 0; - /*<>*/ return loop$0(counter$1, _M_); + /*<>*/ return loop$0(counter$1, _L_); } if(92 !== match){ /*<>*/ add_bs(n$0); @@ -34568,96 +33665,87 @@ } /*<>*/ } function add_bs(n){ - /*<>*/ /*<>*/ var _K_ = 1; + /*<>*/ /*<>*/ var _J_ = 1; if(n >= 1){ - var j = _K_; + var j = _J_; for(;;){ - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 92); + /*<>*/ Stdlib_Buffer[12].call(null, b, 92); /*<>*/ /*<>*/ var - _L_ = j + 1 | 0; + _K_ = j + 1 | 0; if(n === j) break; - j = _L_; + j = _K_; } } return; /*<>*/ } /*<>*/ loop(0); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib_Buffer[2], b); + /*<>*/ return Stdlib_Buffer[2].call(null, b); /*<>*/ } function quote_cmd_filename(f){ /*<>*/ if (! - /*<>*/ caml_call2 - (Stdlib_String[23], + Stdlib_String[23].call + (null, function(param){ /*<>*/ if(34 !== param && 37 !== param) /*<>*/ return 0; /*<>*/ return 1; /*<>*/ }, f)) - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_String[15], f, 32) - ? /*<>*/ caml_call2 - (Stdlib_String[7], cst$7, [0, cst$6, [0, f, _c_]]) + /*<>*/ return Stdlib_String[15].call(null, f, 32) + ? Stdlib_String[7].call(null, cst$7, [0, cst$6, [0, f, _c_]]) : f; /*<>*/ /*<>*/ var - _J_ = - /*<>*/ caml_call2 - (Stdlib[28], cst_Filename_quote_command_bad, f); - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], _J_); + _I_ = Stdlib[28].call(null, cst_Filename_quote_command_bad, f); + /*<>*/ return Stdlib[2].call(null, _I_); /*<>*/ } function quote_command$0(cmd, stdin, stdout, stderr, args){ /*<>*/ if(stderr){ var f = stderr[1]; /*<>*/ if ( /*<>*/ caml_equal(stderr, stdout)) - var _w_ = cst_2_1$0; + var _v_ = cst_2_1$0; else /*<>*/ var - /*<>*/ _H_ = quote_cmd_filename(f), - _w_ = /*<>*/ caml_call2(Stdlib[28], cst_2$0, _H_); - var _x_ = _w_; + /*<>*/ _G_ = quote_cmd_filename(f), + _v_ = Stdlib[28].call(null, cst_2$0, _G_); + var _w_ = _v_; } else - var _x_ = cst$16; - var _y_ = [0, _x_, _d_]; + var _w_ = cst$16; + var _x_ = [0, _w_, _d_]; if(stdout) /*<>*/ var f$0 = stdout[1], - /*<>*/ _z_ = quote_cmd_filename(f$0), - _A_ = /*<>*/ caml_call2(Stdlib[28], cst$8, _z_); + /*<>*/ _y_ = quote_cmd_filename(f$0), + _z_ = Stdlib[28].call(null, cst$8, _y_); else - var _A_ = cst$15; - var _B_ = [0, _A_, _y_]; + var _z_ = cst$15; + var _A_ = [0, _z_, _x_]; if(stdin) /*<>*/ var f$1 = stdin[1], - /*<>*/ _C_ = quote_cmd_filename(f$1), - _D_ = /*<>*/ caml_call2(Stdlib[28], cst$9, _C_); + /*<>*/ _B_ = quote_cmd_filename(f$1), + _C_ = Stdlib[28].call(null, cst$9, _B_); else - var _D_ = cst$14; + var _C_ = cst$14; /*<>*/ var - /*<>*/ _E_ = - /*<>*/ caml_call2(Stdlib_List[20], quote$0, args), - /*<>*/ s = - /*<>*/ caml_call2(Stdlib_String[7], cst$10, _E_), + /*<>*/ _D_ = + Stdlib_List[20].call(null, quote$0, args), + /*<>*/ s = Stdlib_String[7].call(null, cst$10, _D_), /*<>*/ b = - /*<>*/ caml_call1 - (Stdlib_Buffer[1], caml_ml_string_length(s) + 20 | 0); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_String[30], + Stdlib_Buffer[1].call(null, caml_ml_string_length(s) + 20 | 0); + /*<>*/ Stdlib_String[30].call + (null, function(c){ /*<>*/ a: { if(62 <= c){ - var _I_ = c - 63 | 0; - if(60 < _I_ >>> 0){ - if(62 <= _I_) break a; + var _H_ = c - 63 | 0; + if(60 < _H_ >>> 0){ + if(62 <= _H_) break a; } - else if(31 !== _I_) break a; + else if(31 !== _H_) break a; } else if(42 <= c){ @@ -34668,31 +33756,23 @@ switch(c - 33 | 0){case 2:case 3:case 6: break a; } } - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, 94); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, c); + /*<>*/ Stdlib_Buffer[12].call(null, b, 94); + /*<>*/ return Stdlib_Buffer[12].call(null, b, c); } - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_Buffer[12], b, c); + /*<>*/ return Stdlib_Buffer[12].call(null, b, c); /*<>*/ }, s); /*<>*/ var - _F_ = - [0, - cst$11, - [0, - /*<>*/ caml_call1(Stdlib_Buffer[2], b), - [0, _D_, _B_]]], - /*<>*/ _G_ = - [0, cst$12, [0, quote_cmd_filename(cmd), _F_]]; - /*<>*/ return /*<>*/ caml_call2 - (Stdlib_String[7], cst$13, _G_); + _E_ = [0, cst$11, [0, Stdlib_Buffer[2].call(null, b), [0, _C_, _A_]]], + /*<>*/ _F_ = + [0, cst$12, [0, quote_cmd_filename(cmd), _E_]]; + /*<>*/ return Stdlib_String[7].call + (null, cst$13, _F_); /*<>*/ } function drive_and_path(s){ /*<>*/ var - _s_ = 2 <= /*<>*/ caml_ml_string_length(s) ? 1 : 0; - if(_s_){ + _r_ = 2 <= /*<>*/ caml_ml_string_length(s) ? 1 : 0; + if(_r_){ /*<>*/ /*<>*/ var param = /*<>*/ caml_string_get(s, 0); a: @@ -34703,28 +33783,27 @@ if(25 < param - 97 >>> 0) break b; } else if(65 > param) break b; - var _t_ = 1; + var _s_ = 1; break a; } - var _t_ = 0; + var _s_ = 0; } /*<>*/ /*<>*/ var - _u_ = - _t_ + _t_ = + _s_ ? 58 === /*<>*/ caml_string_get(s, 1) ? 1 : 0 - : _t_; + : _s_; } else - var _u_ = _s_; - /*<>*/ if(! _u_) + var _t_ = _r_; + /*<>*/ if(! _t_) /*<>*/ return [0, cst$17, s]; /*<>*/ /*<>*/ var - _v_ = - /*<>*/ caml_call3 - (Stdlib_String[16], s, 2, caml_ml_string_length(s) - 2 | 0); + _u_ = + Stdlib_String[16].call(null, s, 2, caml_ml_string_length(s) - 2 | 0); /*<>*/ return [0, - /*<>*/ caml_call3(Stdlib_String[16], s, 0, 2), - _v_]; + Stdlib_String[16].call(null, s, 0, 2), + _u_]; /*<>*/ } function dirname$0(s){ /*<>*/ var @@ -34733,8 +33812,7 @@ drive = match[1], /*<>*/ dir = generic_dirname(is_dir_sep$0, current_dir_name$0, path); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], drive, dir); + /*<>*/ return Stdlib[28].call(null, drive, dir); /*<>*/ } function basename$0(s){ /*<>*/ var path = drive_and_path(s)[2]; @@ -34758,11 +33836,11 @@ quote_command$0, basename$0, dirname$0]; - /*<>*/ function basename$1(_r_){ - /*<>*/ return generic_basename(is_dir_sep$0, current_dir_name$1, _r_); + /*<>*/ function basename$1(_q_){ + /*<>*/ return generic_basename(is_dir_sep$0, current_dir_name$1, _q_); } - /*<>*/ function dirname$1(_q_){ - /*<>*/ return generic_dirname(is_dir_sep$0, current_dir_name$1, _q_); + /*<>*/ function dirname$1(_p_){ + /*<>*/ return generic_dirname(is_dir_sep$0, current_dir_name$1, _p_); } /*<>*/ var /*<>*/ Cygwin = @@ -34781,8 +33859,8 @@ quote_command, basename$1, dirname$1], - _e_ = Stdlib_Sys[4], - Sysdeps = _e_ !== "Cygwin" ? _e_ !== "Win32" ? Unix : Win32 : Cygwin, + match = Stdlib_Sys[4], + Sysdeps = match !== "Cygwin" ? match !== "Win32" ? Unix : Win32 : Cygwin, null$3 = Sysdeps[1], current_dir_name$2 = Sysdeps[2], parent_dir_name$2 = Sysdeps[3], @@ -34802,24 +33880,20 @@ /*<>*/ if (0 !== l && ! is_dir_sep$1(dirname, l - 1 | 0)){ /*<>*/ /*<>*/ var - _p_ = - /*<>*/ caml_call2 - (Stdlib[28], dir_sep$2, filename); - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], dirname, _p_); - } - /*<>*/ return /*<>*/ caml_call2 - (Stdlib[28], dirname, filename); + _o_ = Stdlib[28].call(null, dir_sep$2, filename); + /*<>*/ return Stdlib[28].call(null, dirname, _o_); + } + /*<>*/ return Stdlib[28].call(null, dirname, filename); /*<>*/ } function chop_suffix(name, suff){ /*<>*/ return check_suffix$1(name, suff) - ? caml_call3 - (Stdlib_String[16], + ? Stdlib_String + [16].call + (null, name, 0, caml_ml_string_length(name) - caml_ml_string_length(suff) | 0) - : /*<>*/ caml_call1 - (Stdlib[1], cst_Filename_chop_suffix); + : Stdlib[1].call(null, cst_Filename_chop_suffix); /*<>*/ } function extension_len(name){ /*<>*/ var @@ -34858,34 +33932,27 @@ l = extension_len(name); /*<>*/ return 0 === l ? cst$18 - : /*<>*/ caml_call3 - (Stdlib_String[16], - name, - caml_ml_string_length(name) - l | 0, - l); + : Stdlib_String + [16].call + (null, name, caml_ml_string_length(name) - l | 0, l); /*<>*/ } function chop_extension(name){ /*<>*/ /*<>*/ var l = extension_len(name); /*<>*/ return 0 === l - ? /*<>*/ caml_call1 - (Stdlib[1], cst_Filename_chop_extension) - : caml_call3 - (Stdlib_String[16], - name, - 0, - caml_ml_string_length(name) - l | 0); + ? Stdlib[1].call(null, cst_Filename_chop_extension) + : Stdlib_String + [16].call + (null, name, 0, caml_ml_string_length(name) - l | 0); /*<>*/ } function remove_extension(name){ /*<>*/ /*<>*/ var l = extension_len(name); /*<>*/ return 0 === l ? name - : caml_call3 - (Stdlib_String[16], - name, - 0, - caml_ml_string_length(name) - l | 0); + : Stdlib_String + [16].call + (null, name, 0, caml_ml_string_length(name) - l | 0); /*<>*/ } /*<>*/ /*<>*/ var prng_key = @@ -34901,14 +33968,14 @@ & 16777215; /*<>*/ return concat (temp_dir, - /*<>*/ caml_call4 - (Stdlib_Printf[4], _f_, prefix, rnd, suffix)); + /*<>*/ caml_call3 + (Stdlib_Printf[4].call(null, _e_), prefix, rnd, suffix)); /*<>*/ } /*<>*/ /*<>*/ var current_temp_dir_name = /*<>*/ caml_call2 (Stdlib_Domain[10][1], - [0, function(_o_){ /*<>*/ return _o_;}], + [0, function(_n_){ /*<>*/ return _n_;}], function(param){ /*<>*/ return temp_dir_name$1; /*<>*/ }); @@ -34933,7 +34000,7 @@ name = temp_file_name(temp_dir, prefix, suffix); /*<>*/ try{ /*<>*/ /*<>*/ runtime.caml_sys_close - ( /*<>*/ runtime.caml_sys_open(name, _g_, 384)); + ( /*<>*/ runtime.caml_sys_open(name, _f_, 384)); /*<>*/ return name; } catch(e$0){ @@ -34948,10 +34015,10 @@ } } } - function open_temp_file(_m_, _l_, opt, prefix, suffix){ + function open_temp_file(_l_, _k_, opt, prefix, suffix){ var - mode = _m_ ? _m_[1] : _h_, - perms = _l_ ? _l_[1] : 384, + mode = _l_ ? _l_[1] : _g_, + perms = _k_ ? _k_[1] : 384, temp_dir = opt ? opt[1] @@ -34963,12 +34030,11 @@ name = temp_file_name(temp_dir, prefix, suffix); /*<>*/ try{ /*<>*/ /*<>*/ var - _n_ = + _m_ = [0, name, - /*<>*/ caml_call3 - (Stdlib[62], [0, 1, [0, 3, [0, 5, mode]]], perms, name)]; - /*<>*/ return _n_; + Stdlib[62].call(null, [0, 1, [0, 3, [0, 5, mode]]], perms, name)]; + /*<>*/ return _m_; } catch(e$0){ var e = caml_wrap_exception(e$0); @@ -34982,11 +34048,11 @@ } } } - function temp_dir(_k_, opt, prefix, suffix){ + function temp_dir(_j_, opt, prefix, suffix){ var temp_dir = - _k_ - ? _k_[1] + _j_ + ? _j_[1] : /*<>*/ caml_call1 (Stdlib_Domain[10][2], current_temp_dir_name), perms = opt ? opt[1] : 448, @@ -35043,6 +34109,7 @@ //# unitInfo: Provides: Stdlib__Complex //# unitInfo: Requires: Stdlib, Stdlib__Float +//# shape: Stdlib__Complex:[N,N,N,F(1),F(1),F(2),F(2),F(2),F(1),F(2),F(1),F(1),F(1),F(1),F(2),F(1),F(1),F(2)] (function (globalThis){ "use strict"; @@ -35177,6 +34244,7 @@ //# unitInfo: Provides: Stdlib__ArrayLabels //# unitInfo: Requires: Stdlib__Array +//# shape: Stdlib__ArrayLabels:[F(2),F(3),F(3),F(2),F(1),F(3),F(1),F(4),F(5),F(1),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(3),F(2),F(2),F(3),F(3),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(1),F(1),F(1),[]] (function (globalThis){ "use strict"; @@ -35277,6 +34345,7 @@ //# unitInfo: Provides: Stdlib__ListLabels //# unitInfo: Requires: Stdlib__List +//# shape: Stdlib__ListLabels:[F(1),F(2),F(2),F(1),F(2),F(1),F(1),F(2),F(2),F(1),F(2),F(2),F(2),F(1),F(1),F(3),F(3),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(3),F(3),F(4),F(4),F(2),F(2),F(3),F(3),F(2),F(2),F(2),F(2),F(1),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(3),F(1),F(1)] (function (globalThis){ "use strict"; @@ -35423,6 +34492,7 @@ //# unitInfo: Provides: Stdlib__BytesLabels //# unitInfo: Requires: Stdlib__Bytes +//# shape: Stdlib__BytesLabels:[F(2),F(2),N,F(1),F(1),F(1),F(3),F(3),F(3),F(4),F(5),F(5),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(2),F(2),F(1),F(1),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(2),F(3),F(3),F(1),F(1),F(1),F(1),F(2),F(2),F(2),F(2),F(1),F(1),F(2),F(1),F(1),F(1),F(2),F(3),F(1),F(2),F(3),F(1),F(2),F(3),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(3),F(1)] (function (globalThis){ "use strict"; @@ -35613,6 +34683,7 @@ //# unitInfo: Provides: Stdlib__StringLabels //# unitInfo: Requires: Stdlib__String +//# shape: Stdlib__StringLabels:[F(2),F(2),N,F(1),F(1),F(5),F(2),F(2),F(2),F(2),F(2),F(2),F(3),F(3),F(2),F(3),F(2),F(2),F(2),F(3),F(3),F(2),F(2),F(1),F(1),F(1),F(1),F(1),F(1),F(2),F(2),F(3),F(3),F(3),F(3),F(2),F(2),F(2),F(2),F(1),F(1),F(1),F(2),F(1),F(2),F(1),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(2),F(1),F(2),F(2),F(2),F(2),F(2),F(2)] (function (globalThis){ "use strict"; @@ -35758,6 +34829,7 @@ //# unitInfo: Provides: Stdlib__MoreLabels //# unitInfo: Requires: Stdlib__Hashtbl, Stdlib__Map, Stdlib__Set +//# shape: Stdlib__MoreLabels:[[F(2),F(1),F(1),F(1),F(3),F(2),F(2),F(2),F(2),F(2),F(3),F(2),F(2),F(3),F(1),F(1),F(1),F(2),F(1),F(1),F(1),F(1),F(2),F(2),F(1),F(1),F(1),F(1),F(2),F(3),F(4)],[F(1)],[F(1)]] (function (globalThis){ "use strict"; @@ -35774,7 +34846,9 @@ (globalThis)); //# unitInfo: Provides: Stdlib__StdLabels -(function(globalThis){ +//# shape: Stdlib__StdLabels:[] +(function + (globalThis){ "use strict"; var runtime = globalThis.jsoo_runtime, Stdlib_StdLabels = [0]; runtime.caml_register_global(0, Stdlib_StdLabels, "Stdlib__StdLabels"); @@ -35785,6 +34859,7 @@ //# unitInfo: Provides: Stdlib__Effect //# unitInfo: Requires: Stdlib, Stdlib__Callback, Stdlib__Printexc, Stdlib__Printf //# unitInfo: Effects_without_cps: true +//# shape: Stdlib__Effect:[N,N,[F(2),F(2),F(3),F(3),F(3)],N] (function (globalThis){ "use strict"; @@ -35801,11 +34876,6 @@ return (f.l >= 0 ? f.l : f.l = f.length) == 1 ? f(a0) : runtime.caml_call_gen(f, [a0]); - } - /*<>*/ function caml_call2(f, a0, a1){ - return (f.l >= 0 ? f.l : f.l = f.length) == 2 - ? f(a0, a1) - : runtime.caml_call_gen(f, [a0, a1]); } /*<>*/ var global_data = runtime.caml_get_global_data(), @@ -35826,23 +34896,20 @@ /*<>*/ return 0; /*<>*/ var x = param[2], - /*<>*/ _i_ = - /*<>*/ caml_call1(Stdlib_Printexc[26], x), + /*<>*/ _i_ = Stdlib_Printexc[26].call(null, x), /*<>*/ msg = - /*<>*/ caml_call2(Stdlib_Printf[4], _a_, _i_); + /*<>*/ caml_call1 + (Stdlib_Printf[4].call(null, _a_), _i_); /*<>*/ return [0, msg]; /*<>*/ } - /*<>*/ /*<>*/ caml_call1 - (Stdlib_Printexc[9], printer); + /*<>*/ Stdlib_Printexc[9].call(null, printer); /*<>*/ /*<>*/ var Should_not_see_this = [248, "Stdlib.Effect.Should_not_see_this__", caml_fresh_oo_id(0)]; - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Callback[2], - "Effect.Unhandled", - [0, Unhandled, Should_not_see_this]); - /*<>*/ /*<>*/ caml_call2 - (Stdlib_Callback[2], + /*<>*/ Stdlib_Callback[2].call + (null, "Effect.Unhandled", [0, Unhandled, Should_not_see_this]); + /*<>*/ Stdlib_Callback[2].call + (null, "Effect.Continuation_already_resumed", Continuation_already_resumed); /*<>*/ function continue$0(k, v){ @@ -35938,8 +35005,7 @@ (f, /*<>*/ jsoo_effect_not_supported()); /*<>*/ } /*<>*/ function error(param){ - /*<>*/ return /*<>*/ caml_call1 - (Stdlib[2], cst_impossible); + /*<>*/ return Stdlib[2].call(null, cst_impossible); /*<>*/ } function effc(eff, k, last_fiber){ /*<>*/ if(eff !== Initial_setup)