diff --git a/jscomp/core/js_exp_make.ml b/jscomp/core/js_exp_make.ml index 5e4b7928df..75bdeee012 100644 --- a/jscomp/core/js_exp_make.ml +++ b/jscomp/core/js_exp_make.ml @@ -119,6 +119,11 @@ let runtime_call ?comment module_name fn_name args = ~info:Js_call_info.builtin_runtime_call (runtime_var_dot module_name fn_name) args +let pure_runtime_call module_name fn_name args = + call ~comment:Literals.pure + ~info:Js_call_info.builtin_runtime_call + (runtime_var_dot module_name fn_name) args + let runtime_ref module_name fn_name = runtime_var_dot module_name fn_name diff --git a/jscomp/core/js_exp_make.mli b/jscomp/core/js_exp_make.mli index 30fc0d8508..641ff847f7 100644 --- a/jscomp/core/js_exp_make.mli +++ b/jscomp/core/js_exp_make.mli @@ -95,6 +95,12 @@ val runtime_call : t list -> (* args *) t +val pure_runtime_call : + string -> (* module_name *) + string -> (* fn_name *) + t list -> (* args *) + t + val runtime_ref : string -> string -> diff --git a/jscomp/core/js_long.ml b/jscomp/core/js_long.ml index 7b169e11b7..176ee69d79 100644 --- a/jscomp/core/js_long.ml +++ b/jscomp/core/js_long.ml @@ -54,7 +54,7 @@ let of_const (v : Int64.t) = | -9223372036854775808L -> E.runtime_var_dot Js_runtime_modules.int64 "min_int" | _ -> - E.runtime_call Js_runtime_modules.int64 "mk" + E.pure_runtime_call Js_runtime_modules.int64 "mk" [ E.int (Int64.to_int32 v ); E.int (Int64.to_int32 (Int64.shift_right v 32)) diff --git a/jscomp/core/js_of_lam_exception.ml b/jscomp/core/js_of_lam_exception.ml index bb3716c78e..f89465eb17 100644 --- a/jscomp/core/js_of_lam_exception.ml +++ b/jscomp/core/js_of_lam_exception.ml @@ -43,7 +43,7 @@ module E = Js_exp_make about the correctness of inlining more difficult *) let make exception_str : J.expression = - E.runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] + E.pure_runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] diff --git a/jscomp/ext/literals.ml b/jscomp/ext/literals.ml index 3fb2eeef8c..c5b7ae4e62 100644 --- a/jscomp/ext/literals.ml +++ b/jscomp/ext/literals.ml @@ -143,3 +143,5 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" + +let pure = "@__PURE__" \ No newline at end of file diff --git a/jscomp/test/406_primitive_test.js b/jscomp/test/406_primitive_test.js index 11fcf1f419..8d3d39e211 100644 --- a/jscomp/test/406_primitive_test.js +++ b/jscomp/test/406_primitive_test.js @@ -27,7 +27,7 @@ eq("File \"406_primitive_test.ml\", line 29, characters 6-13", backend_type, /* }); function f(param) { - var A = Caml_exceptions.create("A"); + var A = /* @__PURE__ */Caml_exceptions.create("A"); try { for(var i = 0; i <= 200; ++i){ if (i === 10) { diff --git a/jscomp/test/array_test.js b/jscomp/test/array_test.js index c43983d12f..e8c883170e 100644 --- a/jscomp/test/array_test.js +++ b/jscomp/test/array_test.js @@ -11,7 +11,7 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); var Caml_js_exceptions = require("../../lib/js/caml_js_exceptions.js"); function starts_with(xs, prefix, p) { - var H = Caml_exceptions.create("H"); + var H = /* @__PURE__ */Caml_exceptions.create("H"); var len1 = xs.length; var len2 = prefix.length; if (len2 > len1) { diff --git a/jscomp/test/bs_min_max_test.js b/jscomp/test/bs_min_max_test.js index 4361826214..a8fe436981 100644 --- a/jscomp/test/bs_min_max_test.js +++ b/jscomp/test/bs_min_max_test.js @@ -45,9 +45,9 @@ var f5_max = Caml_obj.caml_max; b("File \"bs_min_max_test.ml\", line 28, characters 4-11", Caml_int64.eq(Caml_int64.min(Caml_int64.zero, Caml_int64.one), Caml_int64.zero)); -b("File \"bs_min_max_test.ml\", line 29, characters 4-11", Caml_int64.eq(Caml_int64.max(Caml_int64.mk(22, 0), Caml_int64.one), Caml_int64.mk(22, 0))); +b("File \"bs_min_max_test.ml\", line 29, characters 4-11", Caml_int64.eq(Caml_int64.max(/* @__PURE__ */Caml_int64.mk(22, 0), Caml_int64.one), /* @__PURE__ */Caml_int64.mk(22, 0))); -b("File \"bs_min_max_test.ml\", line 30, characters 4-11", Caml_int64.eq(Caml_int64.max(Caml_int64.mk(-3, -1), Caml_int64.mk(3, 0)), Caml_int64.mk(3, 0))); +b("File \"bs_min_max_test.ml\", line 30, characters 4-11", Caml_int64.eq(Caml_int64.max(/* @__PURE__ */Caml_int64.mk(-3, -1), /* @__PURE__ */Caml_int64.mk(3, 0)), /* @__PURE__ */Caml_int64.mk(3, 0))); eq("File \"bs_min_max_test.ml\", line 31, characters 5-12", Caml_obj.caml_min(undefined, 3), undefined); diff --git a/jscomp/test/caml_format_test.js b/jscomp/test/caml_format_test.js index d3536c7dd5..caabc8504d 100644 --- a/jscomp/test/caml_format_test.js +++ b/jscomp/test/caml_format_test.js @@ -2085,7 +2085,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Ld" - }), Caml_int64.mk(3, 0)), + }), /* @__PURE__ */Caml_int64.mk(3, 0)), _1: "3" }; }) @@ -2105,7 +2105,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Lx" - }), Caml_int64.mk(33, 0)), + }), /* @__PURE__ */Caml_int64.mk(33, 0)), _1: "21" }; }) @@ -2125,7 +2125,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Li" - }), Caml_int64.mk(33, 0)), + }), /* @__PURE__ */Caml_int64.mk(33, 0)), _1: "33" }; }) @@ -2145,7 +2145,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%LX" - }), Caml_int64.mk(44, 0)), + }), /* @__PURE__ */Caml_int64.mk(44, 0)), _1: "2C" }; }) @@ -2165,7 +2165,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Lx" - }), Caml_int64.mk(44, 0)), + }), /* @__PURE__ */Caml_int64.mk(44, 0)), _1: "2c" }; }) @@ -2188,7 +2188,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%*Lx" - }), 5, Caml_int64.mk(44, 0)), + }), 5, /* @__PURE__ */Caml_int64.mk(44, 0)), _1: " 2c" }; }) @@ -2199,7 +2199,7 @@ var int64_suites_1 = { (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.to_string(Caml_int64.mk(3333, 0)), + _0: Caml_int64.to_string(/* @__PURE__ */Caml_int64.mk(3333, 0)), _1: "3333" }; }) @@ -2229,7 +2229,7 @@ var int64_suites_1 = { } }, _1: "%Ld%018Ld" - }), Caml_int64.mk(3, 0), Caml_int64.mk(3, 0)), + }), /* @__PURE__ */Caml_int64.mk(3, 0), /* @__PURE__ */Caml_int64.mk(3, 0)), _1: "3000000000000000003" }; }) @@ -2259,7 +2259,7 @@ var int64_suites_1 = { } }, _1: "%Ld%018Ld" - }), Caml_int64.mk(1548746752, 107288), Caml_int64.zero), + }), /* @__PURE__ */Caml_int64.mk(1548746752, 107288), Caml_int64.zero), _1: "460800000000000000000000000000000" }; }) @@ -2319,7 +2319,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Ld" - }), Caml_int64.mk(-11111, -1)), + }), /* @__PURE__ */Caml_int64.mk(-11111, -1)), _1: "-11111" }; }) @@ -2439,7 +2439,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Lu" - }), Caml_int64.mk(-100, -1)), + }), /* @__PURE__ */Caml_int64.mk(-100, -1)), _1: "18446744073709551516" }; }) @@ -2479,7 +2479,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%Lu" - }), Caml_int64.mk(-10000, -1)), + }), /* @__PURE__ */Caml_int64.mk(-10000, -1)), _1: "18446744073709541616" }; }) @@ -2543,7 +2543,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%12Lx" - }), Caml_int64.mk(3, 0)), + }), /* @__PURE__ */Caml_int64.mk(3, 0)), _1: " 3" }; }) @@ -2563,7 +2563,7 @@ var int64_suites_1 = { _3: /* End_of_format */0 }, _1: "%LX" - }), Caml_int64.mk(1163551168, 1859194407)), + }), /* @__PURE__ */Caml_int64.mk(1163551168, 1859194407)), _1: "6ED10E27455A61C0" }; }) @@ -2587,7 +2587,7 @@ var int64_suites_1 = { } }, _1: "%Ld\n" - }), Caml_int64.mk(32, 0)), + }), /* @__PURE__ */Caml_int64.mk(32, 0)), _1: "32\n" }; }) @@ -2612,7 +2612,7 @@ var int64_suites_1 = { } }, _1: "%Ld\n" - }), Caml_int64.mk(32, 0)), $$Buffer.contents(buf)), + }), /* @__PURE__ */Caml_int64.mk(32, 0)), $$Buffer.contents(buf)), _1: "32\n" }; }) @@ -2657,23 +2657,23 @@ var of_string_data = [ "0" ], [ - Caml_int64.mk(3, 0), + /* @__PURE__ */Caml_int64.mk(3, 0), "3" ], [ - Caml_int64.mk(33, 0), + /* @__PURE__ */Caml_int64.mk(33, 0), "33" ], [ - Caml_int64.mk(333, 0), + /* @__PURE__ */Caml_int64.mk(333, 0), "33_3" ], [ - Caml_int64.mk(33333, 0), + /* @__PURE__ */Caml_int64.mk(33333, 0), "33_33_3" ], [ - Caml_int64.mk(-1674115755, 77), + /* @__PURE__ */Caml_int64.mk(-1674115755, 77), "333333333333" ], [ @@ -2681,7 +2681,7 @@ var of_string_data = [ "0xffff_ffff_ffff_ffff" ], [ - Caml_int64.mk(113, 0), + /* @__PURE__ */Caml_int64.mk(113, 0), "0b01110001" ], [ @@ -2756,9 +2756,9 @@ var float_suites = { tl: /* [] */0 }; -var hh = Caml_int64.mk(-858993460, 214748364); +var hh = /* @__PURE__ */Caml_int64.mk(-858993460, 214748364); -var hhh = Caml_int64.mk(0, 268435456); +var hhh = /* @__PURE__ */Caml_int64.mk(0, 268435456); exports.of_string = of_string; exports.from_float_of_string = from_float_of_string; diff --git a/jscomp/test/div_by_zero_test.js b/jscomp/test/div_by_zero_test.js index 47c4dda072..f26e6a2eaf 100644 --- a/jscomp/test/div_by_zero_test.js +++ b/jscomp/test/div_by_zero_test.js @@ -96,7 +96,7 @@ add([ return { TAG: /* ThrowAny */7, _0: (function (param) { - Caml_int64.div(Caml_int64.mk(3, 0), Caml_int64.zero); + Caml_int64.div(/* @__PURE__ */Caml_int64.mk(3, 0), Caml_int64.zero); }) }; @@ -109,7 +109,7 @@ add([ return { TAG: /* ThrowAny */7, _0: (function (param) { - Caml_int64.mod_(Caml_int64.mk(3, 0), Caml_int64.zero); + Caml_int64.mod_(/* @__PURE__ */Caml_int64.mk(3, 0), Caml_int64.zero); }) }; diff --git a/jscomp/test/equal_exception_test.js b/jscomp/test/equal_exception_test.js index ab91045368..dc42d52b99 100644 --- a/jscomp/test/equal_exception_test.js +++ b/jscomp/test/equal_exception_test.js @@ -65,7 +65,7 @@ function is_exception(param) { } function is_normal_exception(_x) { - var A = Caml_exceptions.create("A"); + var A = /* @__PURE__ */Caml_exceptions.create("A"); var v = { RE_EXN_ID: A, _1: 3 @@ -86,7 +86,7 @@ function is_normal_exception(_x) { } function is_arbitrary_exception(param) { - var A = Caml_exceptions.create("A"); + var A = /* @__PURE__ */Caml_exceptions.create("A"); try { throw { RE_EXN_ID: A, @@ -136,7 +136,7 @@ function eq(param) { return param.RE_EXN_ID === "Not_found"; } -var Not_found = Caml_exceptions.create("Equal_exception_test.Not_found"); +var Not_found = /* @__PURE__ */Caml_exceptions.create("Equal_exception_test.Not_found"); if (Caml_obj.caml_equal(e, { RE_EXN_ID: Not_found diff --git a/jscomp/test/exception_def.js b/jscomp/test/exception_def.js index 7f2bd967c2..b3def7bc3a 100644 --- a/jscomp/test/exception_def.js +++ b/jscomp/test/exception_def.js @@ -16,9 +16,9 @@ function eq(loc, x, y) { return Mt.eq_suites(test_id, suites, loc, x, y); } -var A = Caml_exceptions.create("Exception_def.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Exception_def.A"); -var A$1 = Caml_exceptions.create("Exception_def.U.A"); +var A$1 = /* @__PURE__ */Caml_exceptions.create("Exception_def.U.A"); var U = { A: A$1 @@ -26,15 +26,15 @@ var U = { var H = {}; -var Bx = Caml_exceptions.create("Exception_def.Bx"); +var Bx = /* @__PURE__ */Caml_exceptions.create("Exception_def.Bx"); var u = { RE_EXN_ID: Bx }; -var Ax = Caml_exceptions.create("Exception_def.Ax"); +var Ax = /* @__PURE__ */Caml_exceptions.create("Exception_def.Ax"); -var XXX = Caml_exceptions.create("Exception_def.XXX"); +var XXX = /* @__PURE__ */Caml_exceptions.create("Exception_def.XXX"); var Aa = "Match_failure"; @@ -51,9 +51,9 @@ var v = { var H0 = "Not_found"; -var H1 = Caml_exceptions.create("Exception_def.H1"); +var H1 = /* @__PURE__ */Caml_exceptions.create("Exception_def.H1"); -var H2 = Caml_exceptions.create("Exception_def.H2"); +var H2 = /* @__PURE__ */Caml_exceptions.create("Exception_def.H2"); var h2 = { RE_EXN_ID: H2 diff --git a/jscomp/test/exception_raise_test.js b/jscomp/test/exception_raise_test.js index b5723cf26c..d0095c3728 100644 --- a/jscomp/test/exception_raise_test.js +++ b/jscomp/test/exception_raise_test.js @@ -8,16 +8,16 @@ var Pervasives = require("../../lib/js/pervasives.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); var Caml_js_exceptions = require("../../lib/js/caml_js_exceptions.js"); -var Local = Caml_exceptions.create("Exception_raise_test.Local"); +var Local = /* @__PURE__ */Caml_exceptions.create("Exception_raise_test.Local"); -var B = Caml_exceptions.create("Exception_raise_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Exception_raise_test.B"); -var C = Caml_exceptions.create("Exception_raise_test.C"); +var C = /* @__PURE__ */Caml_exceptions.create("Exception_raise_test.C"); -var D = Caml_exceptions.create("Exception_raise_test.D"); +var D = /* @__PURE__ */Caml_exceptions.create("Exception_raise_test.D"); function appf(g, x) { - var A = Caml_exceptions.create("A"); + var A = /* @__PURE__ */Caml_exceptions.create("A"); try { return Curry._1(g, x); } @@ -58,7 +58,7 @@ function appf(g, x) { } } -var A = Caml_exceptions.create("Exception_raise_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Exception_raise_test.A"); var f; diff --git a/jscomp/test/exception_rebind_test.js b/jscomp/test/exception_rebind_test.js index 2c23cbde64..9c80846452 100644 --- a/jscomp/test/exception_rebind_test.js +++ b/jscomp/test/exception_rebind_test.js @@ -3,7 +3,7 @@ var Exception_def = require("./exception_def.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var E = Caml_exceptions.create("Exception_rebind_test.A.E"); +var E = /* @__PURE__ */Caml_exceptions.create("Exception_rebind_test.A.E"); var A = { E: E @@ -13,7 +13,7 @@ var B = { F: E }; -var A0 = Caml_exceptions.create("Exception_rebind_test.A0"); +var A0 = /* @__PURE__ */Caml_exceptions.create("Exception_rebind_test.A0"); var H0 = "Invalid_argument"; diff --git a/jscomp/test/exception_rebound_err_test.js b/jscomp/test/exception_rebound_err_test.js index 962e385e1f..190d925e6a 100644 --- a/jscomp/test/exception_rebound_err_test.js +++ b/jscomp/test/exception_rebound_err_test.js @@ -31,11 +31,11 @@ function eq(loc, x, y) { } -var A = Caml_exceptions.create("Exception_rebound_err_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Exception_rebound_err_test.A"); -var B = Caml_exceptions.create("Exception_rebound_err_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Exception_rebound_err_test.B"); -var C = Caml_exceptions.create("Exception_rebound_err_test.C"); +var C = /* @__PURE__ */Caml_exceptions.create("Exception_rebound_err_test.C"); function test_js_error4(param) { try { diff --git a/jscomp/test/exception_repr_test.js b/jscomp/test/exception_repr_test.js index f858e3e89c..b75f1087cc 100644 --- a/jscomp/test/exception_repr_test.js +++ b/jscomp/test/exception_repr_test.js @@ -33,11 +33,11 @@ function eq(loc, x, y) { } -var Hi = Caml_exceptions.create("Exception_repr_test.Hi"); +var Hi = /* @__PURE__ */Caml_exceptions.create("Exception_repr_test.Hi"); -var Hello = Caml_exceptions.create("Exception_repr_test.Hello"); +var Hello = /* @__PURE__ */Caml_exceptions.create("Exception_repr_test.Hello"); -var A = Caml_exceptions.create("Exception_repr_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Exception_repr_test.A"); Printexc.register_printer(function (s) { if (s.RE_EXN_ID === Hi) { diff --git a/jscomp/test/exception_value_test.js b/jscomp/test/exception_value_test.js index 68c82ece03..eeae54736c 100644 --- a/jscomp/test/exception_value_test.js +++ b/jscomp/test/exception_value_test.js @@ -34,11 +34,11 @@ function hh(param) { }; } -var A = Caml_exceptions.create("Exception_value_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Exception_value_test.A"); -var B = Caml_exceptions.create("Exception_value_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Exception_value_test.B"); -var C = Caml_exceptions.create("Exception_value_test.C"); +var C = /* @__PURE__ */Caml_exceptions.create("Exception_value_test.C"); var u = { RE_EXN_ID: A, diff --git a/jscomp/test/exn_error_pattern.js b/jscomp/test/exn_error_pattern.js index ee0be3888d..b3e03c073e 100644 --- a/jscomp/test/exn_error_pattern.js +++ b/jscomp/test/exn_error_pattern.js @@ -19,9 +19,9 @@ function f(match) { } -var A = Caml_exceptions.create("Exn_error_pattern.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Exn_error_pattern.A"); -var B = Caml_exceptions.create("Exn_error_pattern.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Exn_error_pattern.B"); function g(match) { if (Caml_exceptions.caml_is_extension(match)) { diff --git a/jscomp/test/ext_bytes_test.js b/jscomp/test/ext_bytes_test.js index adbfd5f727..fbd390f8ec 100644 --- a/jscomp/test/ext_bytes_test.js +++ b/jscomp/test/ext_bytes_test.js @@ -127,7 +127,7 @@ function escaped(s) { } function starts_with(xs, prefix, p) { - var H = Caml_exceptions.create("H"); + var H = /* @__PURE__ */Caml_exceptions.create("H"); var len1 = xs.length; var len2 = prefix.length; if (len2 > len1) { diff --git a/jscomp/test/ext_pervasives_test.js b/jscomp/test/ext_pervasives_test.js index f0597f1b3c..5ea9f27e5d 100644 --- a/jscomp/test/ext_pervasives_test.js +++ b/jscomp/test/ext_pervasives_test.js @@ -35,7 +35,7 @@ function with_file_as_pp(filename, f) { } function is_pos_pow(n) { - var E = Caml_exceptions.create("E"); + var E = /* @__PURE__ */Caml_exceptions.create("E"); try { var _c = 0; var _n = n; diff --git a/jscomp/test/ext_string_test.js b/jscomp/test/ext_string_test.js index 93039c7b56..edb26e02c7 100644 --- a/jscomp/test/ext_string_test.js +++ b/jscomp/test/ext_string_test.js @@ -262,7 +262,7 @@ function unsafe_is_sub(sub, i, s, j, len) { } } -var Local_exit = Caml_exceptions.create("Ext_string_test.Local_exit"); +var Local_exit = /* @__PURE__ */Caml_exceptions.create("Ext_string_test.Local_exit"); function find(startOpt, sub, s) { var start = startOpt !== undefined ? startOpt : 0; diff --git a/jscomp/test/extensible_variant_test.js b/jscomp/test/extensible_variant_test.js index e115492253..99f2a288bb 100644 --- a/jscomp/test/extensible_variant_test.js +++ b/jscomp/test/extensible_variant_test.js @@ -3,15 +3,15 @@ var Mt = require("./mt.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var Str = Caml_exceptions.create("Extensible_variant_test.Str"); +var Str = /* @__PURE__ */Caml_exceptions.create("Extensible_variant_test.Str"); -var Int = Caml_exceptions.create("Extensible_variant_test.N.Int"); +var Int = /* @__PURE__ */Caml_exceptions.create("Extensible_variant_test.N.Int"); var N = { Int: Int }; -var Int$1 = Caml_exceptions.create("Extensible_variant_test.Int"); +var Int$1 = /* @__PURE__ */Caml_exceptions.create("Extensible_variant_test.Int"); function to_int(x) { if (x.RE_EXN_ID === Str) { diff --git a/jscomp/test/float_of_bits_test.js b/jscomp/test/float_of_bits_test.js index 435d1ba347..95662bcdb9 100644 --- a/jscomp/test/float_of_bits_test.js +++ b/jscomp/test/float_of_bits_test.js @@ -9,7 +9,7 @@ var Caml_float = require("../../lib/js/caml_float.js"); var Caml_int64 = require("../../lib/js/caml_int64.js"); var Pervasives = require("../../lib/js/pervasives.js"); -var one_float = Caml_int64.mk(0, 1072693248); +var one_float = /* @__PURE__ */Caml_int64.mk(0, 1072693248); var int32_pairs = [ [ diff --git a/jscomp/test/float_test.js b/jscomp/test/float_test.js index 03993381b1..8e1353cae3 100644 --- a/jscomp/test/float_test.js +++ b/jscomp/test/float_test.js @@ -30,7 +30,7 @@ function approx(loc) { }; } -var epsilon_float = Caml_int64.float_of_bits(Caml_int64.mk(0, 1018167296)); +var epsilon_float = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(0, 1018167296)); var match = Caml_float.caml_frexp_float(12.0); diff --git a/jscomp/test/flow_parser_reg_test.js b/jscomp/test/flow_parser_reg_test.js index b889aaa452..1dc42ad851 100644 --- a/jscomp/test/flow_parser_reg_test.js +++ b/jscomp/test/flow_parser_reg_test.js @@ -147,7 +147,7 @@ function compare(loc1, loc2) { } } -var $$Error = Caml_exceptions.create("Flow_parser_reg_test.Parse_error.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Flow_parser_reg_test.Parse_error.Error"); function error(str) { if (typeof str === "number") { @@ -2120,7 +2120,7 @@ function illegal_number(env, lexbuf, word, token) { ]; } -var No_good = Caml_exceptions.create("Flow_parser_reg_test.Lexer_flow.FloatOfString.No_good"); +var No_good = /* @__PURE__ */Caml_exceptions.create("Flow_parser_reg_test.Lexer_flow.FloatOfString.No_good"); function eat(f) { var match = f.todo; @@ -6277,7 +6277,7 @@ function contextual(env, str) { return token$3(env); } -var Rollback = Caml_exceptions.create("Flow_parser_reg_test.Parser_env.Try.Rollback"); +var Rollback = /* @__PURE__ */Caml_exceptions.create("Flow_parser_reg_test.Parser_env.Try.Rollback"); function save_state(env) { var orig_token_sink = env.token_sink.contents; diff --git a/jscomp/test/gpr_1245_test.js b/jscomp/test/gpr_1245_test.js index fb34de691a..81814966d3 100644 --- a/jscomp/test/gpr_1245_test.js +++ b/jscomp/test/gpr_1245_test.js @@ -39,7 +39,7 @@ function a0(f) { } function a1(f) { - var E = Caml_exceptions.create("E"); + var E = /* @__PURE__ */Caml_exceptions.create("E"); try { return Curry._1(f, undefined); } diff --git a/jscomp/test/gpr_1501_test.js b/jscomp/test/gpr_1501_test.js index a9dc11dabb..b333ad1222 100644 --- a/jscomp/test/gpr_1501_test.js +++ b/jscomp/test/gpr_1501_test.js @@ -30,9 +30,9 @@ function eq(loc, x, y) { } -var A = Caml_exceptions.create("Gpr_1501_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Gpr_1501_test.A"); -var B = Caml_exceptions.create("Gpr_1501_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Gpr_1501_test.B"); eq("File \"gpr_1501_test.ml\", line 15, characters 7-14", "Not_found", Printexc.to_string({ RE_EXN_ID: "Not_found" diff --git a/jscomp/test/gpr_1503_test.js b/jscomp/test/gpr_1503_test.js index f136ac38d7..4e37386d7e 100644 --- a/jscomp/test/gpr_1503_test.js +++ b/jscomp/test/gpr_1503_test.js @@ -35,7 +35,7 @@ function id(x) { return Caml_format.caml_int64_of_string(Caml_int64.to_string(x)); } -var i = Caml_int64.mk(-1414812757, 2074848171); +var i = /* @__PURE__ */Caml_int64.mk(-1414812757, 2074848171); var s = Caml_int64.to_string(i); diff --git a/jscomp/test/gpr_1701_test.js b/jscomp/test/gpr_1701_test.js index e2516ab2f2..7bfe11c08d 100644 --- a/jscomp/test/gpr_1701_test.js +++ b/jscomp/test/gpr_1701_test.js @@ -5,7 +5,7 @@ var Pervasives = require("../../lib/js/pervasives.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); var Caml_js_exceptions = require("../../lib/js/caml_js_exceptions.js"); -var Foo = Caml_exceptions.create("Gpr_1701_test.Foo"); +var Foo = /* @__PURE__ */Caml_exceptions.create("Gpr_1701_test.Foo"); function test(n) { if (n === 0) { diff --git a/jscomp/test/hamming_test.js b/jscomp/test/hamming_test.js index e8785f80c7..d4a7c07057 100644 --- a/jscomp/test/hamming_test.js +++ b/jscomp/test/hamming_test.js @@ -13,11 +13,11 @@ var n0 = Caml_int64.zero; var n1 = Caml_int64.one; -var n2 = Caml_int64.mk(2, 0); +var n2 = /* @__PURE__ */Caml_int64.mk(2, 0); -var n3 = Caml_int64.mk(3, 0); +var n3 = /* @__PURE__ */Caml_int64.mk(3, 0); -var n5 = Caml_int64.mk(5, 0); +var n5 = /* @__PURE__ */Caml_int64.mk(5, 0); var $percent = Caml_int64.mod_; diff --git a/jscomp/test/inline_const_test.js b/jscomp/test/inline_const_test.js index aec9a20971..6d9b4b20ec 100644 --- a/jscomp/test/inline_const_test.js +++ b/jscomp/test/inline_const_test.js @@ -45,7 +45,7 @@ eq("File \"inline_const_test.ml\", line 35, characters 5-12", 1, 1); eq("File \"inline_const_test.ml\", line 36, characters 5-12", 3e-6, 0.000003); -var h = Caml_int64.add(Caml_int64.add(Caml_int64.mk(100, 0), Int64.one), Caml_int64.one); +var h = Caml_int64.add(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(100, 0), Int64.one), Caml_int64.one); Mt.from_pair_suites("File \"inline_const_test.ml\", line 43, characters 22-29", suites.contents); diff --git a/jscomp/test/inline_record_test.js b/jscomp/test/inline_record_test.js index 8a5374a433..17e1fcf149 100644 --- a/jscomp/test/inline_record_test.js +++ b/jscomp/test/inline_record_test.js @@ -53,7 +53,7 @@ console.log(f(v)); console.log(f(v1)); -var A0 = Caml_exceptions.create("Inline_record_test.A0"); +var A0 = /* @__PURE__ */Caml_exceptions.create("Inline_record_test.A0"); var v3 = { RE_EXN_ID: A0, @@ -141,7 +141,7 @@ tmp$2 = v5.z; eq("File \"inline_record_test.ml\", line 71, characters 6-13", tmp$2, 22); -var A4 = Caml_exceptions.create("Inline_record_test.A4"); +var A4 = /* @__PURE__ */Caml_exceptions.create("Inline_record_test.A4"); var v6 = { RE_EXN_ID: A4, diff --git a/jscomp/test/int64_mul_div_test.js b/jscomp/test/int64_mul_div_test.js index f8292e554c..083e7e6a65 100644 --- a/jscomp/test/int64_mul_div_test.js +++ b/jscomp/test/int64_mul_div_test.js @@ -25,104 +25,104 @@ function commutative_mul(result, a, b) { var pairs = [ [ - Caml_int64.mk(-1753181728, -1482940033), - Caml_int64.mk(525340320, 1831202545), - Caml_int64.mk(634982515, 165328154) + /* @__PURE__ */Caml_int64.mk(-1753181728, -1482940033), + /* @__PURE__ */Caml_int64.mk(525340320, 1831202545), + /* @__PURE__ */Caml_int64.mk(634982515, 165328154) ], [ - Caml_int64.mk(-45257752, 2086642202), - Caml_int64.mk(-1243123636, 1756378018), - Caml_int64.mk(-162347938, 1129387921) + /* @__PURE__ */Caml_int64.mk(-45257752, 2086642202), + /* @__PURE__ */Caml_int64.mk(-1243123636, 1756378018), + /* @__PURE__ */Caml_int64.mk(-162347938, 1129387921) ], [ - Caml_int64.mk(1358520104, -2133087767), - Caml_int64.mk(-814703364, 209351581), - Caml_int64.mk(-1595781194, 2047885301) + /* @__PURE__ */Caml_int64.mk(1358520104, -2133087767), + /* @__PURE__ */Caml_int64.mk(-814703364, 209351581), + /* @__PURE__ */Caml_int64.mk(-1595781194, 2047885301) ], [ - Caml_int64.mk(-561804740, 781938191), - Caml_int64.mk(-664434255, 1243995318), - Caml_int64.mk(-1752170244, 965315102) + /* @__PURE__ */Caml_int64.mk(-561804740, 781938191), + /* @__PURE__ */Caml_int64.mk(-664434255, 1243995318), + /* @__PURE__ */Caml_int64.mk(-1752170244, 965315102) ], [ - Caml_int64.mk(-1173434256, -1526298485), - Caml_int64.mk(-241239064, 806837349), - Caml_int64.mk(-1873028186, 973509509) + /* @__PURE__ */Caml_int64.mk(-1173434256, -1526298485), + /* @__PURE__ */Caml_int64.mk(-241239064, 806837349), + /* @__PURE__ */Caml_int64.mk(-1873028186, 973509509) ], [ - Caml_int64.mk(-1817540358, -1053250751), - Caml_int64.mk(-827251842, 297218479), - Caml_int64.mk(1639039171, 1353404045) + /* @__PURE__ */Caml_int64.mk(-1817540358, -1053250751), + /* @__PURE__ */Caml_int64.mk(-827251842, 297218479), + /* @__PURE__ */Caml_int64.mk(1639039171, 1353404045) ], [ - Caml_int64.mk(1100802137, -1614556777), - Caml_int64.mk(732603925, 1812737275), - Caml_int64.mk(1587408437, 1686007471) + /* @__PURE__ */Caml_int64.mk(1100802137, -1614556777), + /* @__PURE__ */Caml_int64.mk(732603925, 1812737275), + /* @__PURE__ */Caml_int64.mk(1587408437, 1686007471) ], [ - Caml_int64.mk(-955806000, 166521361), - Caml_int64.mk(-1809921861, 585926665), - Caml_int64.mk(-1411520656, 1193284387) + /* @__PURE__ */Caml_int64.mk(-955806000, 166521361), + /* @__PURE__ */Caml_int64.mk(-1809921861, 585926665), + /* @__PURE__ */Caml_int64.mk(-1411520656, 1193284387) ], [ - Caml_int64.mk(-2095936707, -1556851713), - Caml_int64.mk(-977007627, 563693579), - Caml_int64.mk(700349737, 1423006973) + /* @__PURE__ */Caml_int64.mk(-2095936707, -1556851713), + /* @__PURE__ */Caml_int64.mk(-977007627, 563693579), + /* @__PURE__ */Caml_int64.mk(700349737, 1423006973) ], [ - Caml_int64.mk(-2082262446, 2096650716), - Caml_int64.mk(-275710143, 1413202597), - Caml_int64.mk(-843247662, 495794945) + /* @__PURE__ */Caml_int64.mk(-2082262446, 2096650716), + /* @__PURE__ */Caml_int64.mk(-275710143, 1413202597), + /* @__PURE__ */Caml_int64.mk(-843247662, 495794945) ], [ - Caml_int64.mk(1313884544, 1149398987), - Caml_int64.mk(255480485, 556147957), - Caml_int64.mk(929852288, 1711350082) + /* @__PURE__ */Caml_int64.mk(1313884544, 1149398987), + /* @__PURE__ */Caml_int64.mk(255480485, 556147957), + /* @__PURE__ */Caml_int64.mk(929852288, 1711350082) ], [ - Caml_int64.mk(-1787508521, 908394614), - Caml_int64.mk(725956947, 1053216964), - Caml_int64.mk(-310080019, 2145390454) + /* @__PURE__ */Caml_int64.mk(-1787508521, 908394614), + /* @__PURE__ */Caml_int64.mk(725956947, 1053216964), + /* @__PURE__ */Caml_int64.mk(-310080019, 2145390454) ], [ - Caml_int64.mk(1441406688, 962684198), - Caml_int64.mk(468792198, 1528894622), - Caml_int64.mk(-375108656, 1893431833) + /* @__PURE__ */Caml_int64.mk(1441406688, 962684198), + /* @__PURE__ */Caml_int64.mk(468792198, 1528894622), + /* @__PURE__ */Caml_int64.mk(-375108656, 1893431833) ], [ - Caml_int64.mk(-966612576, -603570361), - Caml_int64.mk(1999781536, 1842921977), - Caml_int64.mk(-1039472903, 1854314037) + /* @__PURE__ */Caml_int64.mk(-966612576, -603570361), + /* @__PURE__ */Caml_int64.mk(1999781536, 1842921977), + /* @__PURE__ */Caml_int64.mk(-1039472903, 1854314037) ], [ - Caml_int64.mk(1187405920, 1827458543), - Caml_int64.mk(-1788999968, 1066436782), - Caml_int64.mk(2020291989, 1004254249) + /* @__PURE__ */Caml_int64.mk(1187405920, 1827458543), + /* @__PURE__ */Caml_int64.mk(-1788999968, 1066436782), + /* @__PURE__ */Caml_int64.mk(2020291989, 1004254249) ], [ - Caml_int64.mk(1878451246, -1818789533), - Caml_int64.mk(1999625579, 247021097), - Caml_int64.mk(-1924515318, 1434621550) + /* @__PURE__ */Caml_int64.mk(1878451246, -1818789533), + /* @__PURE__ */Caml_int64.mk(1999625579, 247021097), + /* @__PURE__ */Caml_int64.mk(-1924515318, 1434621550) ], [ - Caml_int64.mk(2103538455, 1714915951), - Caml_int64.mk(45872671, 1071186049), - Caml_int64.mk(-1656179703, 911777108) + /* @__PURE__ */Caml_int64.mk(2103538455, 1714915951), + /* @__PURE__ */Caml_int64.mk(45872671, 1071186049), + /* @__PURE__ */Caml_int64.mk(-1656179703, 911777108) ], [ - Caml_int64.mk(-344232772, 365880810), - Caml_int64.mk(1477626470, 1215123423), - Caml_int64.mk(1816687658, 1155052099) + /* @__PURE__ */Caml_int64.mk(-344232772, 365880810), + /* @__PURE__ */Caml_int64.mk(1477626470, 1215123423), + /* @__PURE__ */Caml_int64.mk(1816687658, 1155052099) ], [ - Caml_int64.mk(1713682280, -1590309406), - Caml_int64.mk(-1964710772, 1236324221), - Caml_int64.mk(1538765150, 871497139) + /* @__PURE__ */Caml_int64.mk(1713682280, -1590309406), + /* @__PURE__ */Caml_int64.mk(-1964710772, 1236324221), + /* @__PURE__ */Caml_int64.mk(1538765150, 871497139) ], [ - Caml_int64.mk(1074580892, -1335640207), - Caml_int64.mk(-1999389012, 153491040), - Caml_int64.mk(1001897781, 469100620) + /* @__PURE__ */Caml_int64.mk(1074580892, -1335640207), + /* @__PURE__ */Caml_int64.mk(-1999389012, 153491040), + /* @__PURE__ */Caml_int64.mk(1001897781, 469100620) ] ]; @@ -159,34 +159,34 @@ function from_pairs(prefix, pairs) { var small_pairs = [ [ - Caml_int64.mk(121, 0), - Caml_int64.mk(11, 0), - Caml_int64.mk(11, 0) + /* @__PURE__ */Caml_int64.mk(121, 0), + /* @__PURE__ */Caml_int64.mk(11, 0), + /* @__PURE__ */Caml_int64.mk(11, 0) ], [ - Caml_int64.mk(126736, 0), - Caml_int64.mk(356, 0), - Caml_int64.mk(356, 0) + /* @__PURE__ */Caml_int64.mk(126736, 0), + /* @__PURE__ */Caml_int64.mk(356, 0), + /* @__PURE__ */Caml_int64.mk(356, 0) ], [ - Caml_int64.mk(137176406, 0), - Caml_int64.mk(12346, 0), - Caml_int64.mk(11111, 0) + /* @__PURE__ */Caml_int64.mk(137176406, 0), + /* @__PURE__ */Caml_int64.mk(12346, 0), + /* @__PURE__ */Caml_int64.mk(11111, 0) ], [ - Caml_int64.mk(-1048576, 268435455), - Caml_int64.mk(-1, 255), - Caml_int64.mk(1048576, 0) + /* @__PURE__ */Caml_int64.mk(-1048576, 268435455), + /* @__PURE__ */Caml_int64.mk(-1, 255), + /* @__PURE__ */Caml_int64.mk(1048576, 0) ], [ - Caml_int64.mk(1048576, -268435456), - Caml_int64.mk(1, -256), - Caml_int64.mk(1048576, 0) + /* @__PURE__ */Caml_int64.mk(1048576, -268435456), + /* @__PURE__ */Caml_int64.mk(1, -256), + /* @__PURE__ */Caml_int64.mk(1048576, 0) ], [ - Caml_int64.mk(1275262484, -639559543), - Caml_int64.mk(-1147274043, 1209011959), - Caml_int64.mk(242558724, 1831626934) + /* @__PURE__ */Caml_int64.mk(1275262484, -639559543), + /* @__PURE__ */Caml_int64.mk(-1147274043, 1209011959), + /* @__PURE__ */Caml_int64.mk(242558724, 1831626934) ] ]; @@ -196,251 +196,251 @@ var to_floats = [ 1 ], [ - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), 2 ], [ - Caml_int64.mk(4, 0), + /* @__PURE__ */Caml_int64.mk(4, 0), 4 ], [ - Caml_int64.mk(8, 0), + /* @__PURE__ */Caml_int64.mk(8, 0), 8 ], [ - Caml_int64.mk(16, 0), + /* @__PURE__ */Caml_int64.mk(16, 0), 16 ], [ - Caml_int64.mk(32, 0), + /* @__PURE__ */Caml_int64.mk(32, 0), 32 ], [ - Caml_int64.mk(64, 0), + /* @__PURE__ */Caml_int64.mk(64, 0), 64 ], [ - Caml_int64.mk(128, 0), + /* @__PURE__ */Caml_int64.mk(128, 0), 128 ], [ - Caml_int64.mk(256, 0), + /* @__PURE__ */Caml_int64.mk(256, 0), 256 ], [ - Caml_int64.mk(512, 0), + /* @__PURE__ */Caml_int64.mk(512, 0), 512 ], [ - Caml_int64.mk(1024, 0), + /* @__PURE__ */Caml_int64.mk(1024, 0), 1024 ], [ - Caml_int64.mk(2048, 0), + /* @__PURE__ */Caml_int64.mk(2048, 0), 2048 ], [ - Caml_int64.mk(4096, 0), + /* @__PURE__ */Caml_int64.mk(4096, 0), 4096 ], [ - Caml_int64.mk(8192, 0), + /* @__PURE__ */Caml_int64.mk(8192, 0), 8192 ], [ - Caml_int64.mk(16384, 0), + /* @__PURE__ */Caml_int64.mk(16384, 0), 16384 ], [ - Caml_int64.mk(32768, 0), + /* @__PURE__ */Caml_int64.mk(32768, 0), 32768 ], [ - Caml_int64.mk(65536, 0), + /* @__PURE__ */Caml_int64.mk(65536, 0), 65536 ], [ - Caml_int64.mk(131072, 0), + /* @__PURE__ */Caml_int64.mk(131072, 0), 131072 ], [ - Caml_int64.mk(262144, 0), + /* @__PURE__ */Caml_int64.mk(262144, 0), 262144 ], [ - Caml_int64.mk(524288, 0), + /* @__PURE__ */Caml_int64.mk(524288, 0), 524288 ], [ - Caml_int64.mk(1048576, 0), + /* @__PURE__ */Caml_int64.mk(1048576, 0), 1048576 ], [ - Caml_int64.mk(2097152, 0), + /* @__PURE__ */Caml_int64.mk(2097152, 0), 2097152 ], [ - Caml_int64.mk(4194304, 0), + /* @__PURE__ */Caml_int64.mk(4194304, 0), 4194304 ], [ - Caml_int64.mk(8388608, 0), + /* @__PURE__ */Caml_int64.mk(8388608, 0), 8388608 ], [ - Caml_int64.mk(16777216, 0), + /* @__PURE__ */Caml_int64.mk(16777216, 0), 16777216 ], [ - Caml_int64.mk(33554432, 0), + /* @__PURE__ */Caml_int64.mk(33554432, 0), 33554432 ], [ - Caml_int64.mk(67108864, 0), + /* @__PURE__ */Caml_int64.mk(67108864, 0), 67108864 ], [ - Caml_int64.mk(134217728, 0), + /* @__PURE__ */Caml_int64.mk(134217728, 0), 134217728 ], [ - Caml_int64.mk(268435456, 0), + /* @__PURE__ */Caml_int64.mk(268435456, 0), 268435456 ], [ - Caml_int64.mk(536870912, 0), + /* @__PURE__ */Caml_int64.mk(536870912, 0), 536870912 ], [ - Caml_int64.mk(1073741824, 0), + /* @__PURE__ */Caml_int64.mk(1073741824, 0), 1073741824 ], [ - Caml_int64.mk(-2147483648, 0), + /* @__PURE__ */Caml_int64.mk(-2147483648, 0), 2147483648 ], [ - Caml_int64.mk(0, 1), + /* @__PURE__ */Caml_int64.mk(0, 1), 4294967296 ], [ - Caml_int64.mk(0, 2), + /* @__PURE__ */Caml_int64.mk(0, 2), 8589934592 ], [ - Caml_int64.mk(0, 4), + /* @__PURE__ */Caml_int64.mk(0, 4), 17179869184 ], [ - Caml_int64.mk(0, 8), + /* @__PURE__ */Caml_int64.mk(0, 8), 34359738368 ], [ - Caml_int64.mk(0, 16), + /* @__PURE__ */Caml_int64.mk(0, 16), 68719476736 ], [ - Caml_int64.mk(0, 32), + /* @__PURE__ */Caml_int64.mk(0, 32), 137438953472 ], [ - Caml_int64.mk(0, 64), + /* @__PURE__ */Caml_int64.mk(0, 64), 274877906944 ], [ - Caml_int64.mk(0, 128), + /* @__PURE__ */Caml_int64.mk(0, 128), 549755813888 ], [ - Caml_int64.mk(0, 256), + /* @__PURE__ */Caml_int64.mk(0, 256), 1099511627776 ], [ - Caml_int64.mk(0, 512), + /* @__PURE__ */Caml_int64.mk(0, 512), 2199023255552 ], [ - Caml_int64.mk(0, 1024), + /* @__PURE__ */Caml_int64.mk(0, 1024), 4398046511104 ], [ - Caml_int64.mk(0, 2048), + /* @__PURE__ */Caml_int64.mk(0, 2048), 8796093022208 ], [ - Caml_int64.mk(0, 4096), + /* @__PURE__ */Caml_int64.mk(0, 4096), 17592186044416 ], [ - Caml_int64.mk(0, 8192), + /* @__PURE__ */Caml_int64.mk(0, 8192), 35184372088832 ], [ - Caml_int64.mk(0, 16384), + /* @__PURE__ */Caml_int64.mk(0, 16384), 70368744177664 ], [ - Caml_int64.mk(0, 32768), + /* @__PURE__ */Caml_int64.mk(0, 32768), 140737488355328 ], [ - Caml_int64.mk(0, 65536), + /* @__PURE__ */Caml_int64.mk(0, 65536), 281474976710656 ], [ - Caml_int64.mk(0, 131072), + /* @__PURE__ */Caml_int64.mk(0, 131072), 562949953421312 ], [ - Caml_int64.mk(0, 262144), + /* @__PURE__ */Caml_int64.mk(0, 262144), 1125899906842624 ], [ - Caml_int64.mk(0, 524288), + /* @__PURE__ */Caml_int64.mk(0, 524288), 2251799813685248 ], [ - Caml_int64.mk(0, 1048576), + /* @__PURE__ */Caml_int64.mk(0, 1048576), 4503599627370496 ], [ - Caml_int64.mk(0, 2097152), + /* @__PURE__ */Caml_int64.mk(0, 2097152), 9007199254740992 ], [ - Caml_int64.mk(0, 4194304), + /* @__PURE__ */Caml_int64.mk(0, 4194304), 18014398509481984 ], [ - Caml_int64.mk(0, 8388608), + /* @__PURE__ */Caml_int64.mk(0, 8388608), 36028797018963968 ], [ - Caml_int64.mk(0, 16777216), + /* @__PURE__ */Caml_int64.mk(0, 16777216), 72057594037927936 ], [ - Caml_int64.mk(0, 33554432), + /* @__PURE__ */Caml_int64.mk(0, 33554432), 144115188075855872 ], [ - Caml_int64.mk(0, 67108864), + /* @__PURE__ */Caml_int64.mk(0, 67108864), 288230376151711744 ], [ - Caml_int64.mk(0, 134217728), + /* @__PURE__ */Caml_int64.mk(0, 134217728), 576460752303423488 ], [ - Caml_int64.mk(0, 268435456), + /* @__PURE__ */Caml_int64.mk(0, 268435456), 1.15292150460684698e+18 ], [ - Caml_int64.mk(0, 536870912), + /* @__PURE__ */Caml_int64.mk(0, 536870912), 2.30584300921369395e+18 ], [ - Caml_int64.mk(0, 1073741824), + /* @__PURE__ */Caml_int64.mk(0, 1073741824), 4.6116860184273879e+18 ], [ @@ -463,304 +463,304 @@ var check_complete_compare = [ var of_float_pairs = [ [ 6853066956871844, - Caml_int64.mk(-40494940, 1595603) + /* @__PURE__ */Caml_int64.mk(-40494940, 1595603) ], [ -8507688874782117, - Caml_int64.mk(1388466779, -1980851) + /* @__PURE__ */Caml_int64.mk(1388466779, -1980851) ], [ 4083117349607451, - Caml_int64.mk(-684517349, 950674) + /* @__PURE__ */Caml_int64.mk(-684517349, 950674) ], [ -4860723193745655, - Caml_int64.mk(-1330680055, -1131726) + /* @__PURE__ */Caml_int64.mk(-1330680055, -1131726) ], [ 7820020192255542, - Caml_int64.mk(1437736502, 1820740) + /* @__PURE__ */Caml_int64.mk(1437736502, 1820740) ], [ -4908619721514532, - Caml_int64.mk(-383163940, -1142878) + /* @__PURE__ */Caml_int64.mk(-383163940, -1142878) ], [ 5.67685864687671e+15, - Caml_int64.mk(-1491709402, 1321746) + /* @__PURE__ */Caml_int64.mk(-1491709402, 1321746) ], [ -703696191048023, - Caml_int64.mk(-159336791, -163843) + /* @__PURE__ */Caml_int64.mk(-159336791, -163843) ], [ 1123586534990153.88, - Caml_int64.mk(1615520073, 261605) + /* @__PURE__ */Caml_int64.mk(1615520073, 261605) ], [ -4.29886533981922e+15, - Caml_int64.mk(1786485548, -1000908) + /* @__PURE__ */Caml_int64.mk(1786485548, -1000908) ], [ 2.43885138012066e+15, - Caml_int64.mk(1445727316, 567839) + /* @__PURE__ */Caml_int64.mk(1445727316, 567839) ], [ -8011538689499494, - Caml_int64.mk(1246682778, -1865332) + /* @__PURE__ */Caml_int64.mk(1246682778, -1865332) ], [ 2710072285421155, - Caml_int64.mk(-538747293, 630987) + /* @__PURE__ */Caml_int64.mk(-538747293, 630987) ], [ -2541457347159789.5, - Caml_int64.mk(-644065005, -591730) + /* @__PURE__ */Caml_int64.mk(-644065005, -591730) ], [ 5012932793576708, - Caml_int64.mk(1584508164, 1167164) + /* @__PURE__ */Caml_int64.mk(1584508164, 1167164) ], [ -943066847413899.125, - Caml_int64.mk(596605301, -219575) + /* @__PURE__ */Caml_int64.mk(596605301, -219575) ], [ 5440257518642004, - Caml_int64.mk(-1461542060, 1266658) + /* @__PURE__ */Caml_int64.mk(-1461542060, 1266658) ], [ -7750676773453898, - Caml_int64.mk(-265928778, -1804596) + /* @__PURE__ */Caml_int64.mk(-265928778, -1804596) ], [ 8911999221747713, - Caml_int64.mk(-2082877439, 2074986) + /* @__PURE__ */Caml_int64.mk(-2082877439, 2074986) ], [ -1443906702582204.25, - Caml_int64.mk(1172790852, -336186) + /* @__PURE__ */Caml_int64.mk(1172790852, -336186) ], [ 659345820712164.875, - Caml_int64.mk(-378700572, 153515) + /* @__PURE__ */Caml_int64.mk(-378700572, 153515) ], [ -3284023713149006.5, - Caml_int64.mk(-1524314190, -764622) + /* @__PURE__ */Caml_int64.mk(-1524314190, -764622) ], [ 5062818438579988, - Caml_int64.mk(1184368404, 1178779) + /* @__PURE__ */Caml_int64.mk(1184368404, 1178779) ], [ -8904450004162331, - Caml_int64.mk(747956453, -2073229) + /* @__PURE__ */Caml_int64.mk(747956453, -2073229) ], [ 848261089308786, - Caml_int64.mk(753381490, 197501) + /* @__PURE__ */Caml_int64.mk(753381490, 197501) ], [ -6376579516657391, - Caml_int64.mk(-486076143, -1484664) + /* @__PURE__ */Caml_int64.mk(-486076143, -1484664) ], [ 1337907592605664.25, - Caml_int64.mk(-489902112, 311505) + /* @__PURE__ */Caml_int64.mk(-489902112, 311505) ], [ -8.54733738833896e+15, - Caml_int64.mk(-281980688, -1990083) + /* @__PURE__ */Caml_int64.mk(-281980688, -1990083) ], [ 2345417644172927, - Caml_int64.mk(428336767, 546085) + /* @__PURE__ */Caml_int64.mk(428336767, 546085) ], [ -2587460670129294.5, - Caml_int64.mk(-572327054, -602441) + /* @__PURE__ */Caml_int64.mk(-572327054, -602441) ], [ 4580431718597436, - Caml_int64.mk(-578731204, 1066464) + /* @__PURE__ */Caml_int64.mk(-578731204, 1066464) ], [ -1460576044874256.25, - Caml_int64.mk(598574576, -340067) + /* @__PURE__ */Caml_int64.mk(598574576, -340067) ], [ 3403657978343579.5, - Caml_int64.mk(-524521317, 792475) + /* @__PURE__ */Caml_int64.mk(-524521317, 792475) ], [ -7.89068917321888e+15, - Caml_int64.mk(-1026811456, -1837195) + /* @__PURE__ */Caml_int64.mk(-1026811456, -1837195) ], [ 1683098350604788.5, - Caml_int64.mk(-548449804, 391876) + /* @__PURE__ */Caml_int64.mk(-548449804, 391876) ], [ -3966538891560174.5, - Caml_int64.mk(845249298, -923532) + /* @__PURE__ */Caml_int64.mk(845249298, -923532) ], [ 6726025288963652, - Caml_int64.mk(-870754748, 1566024) + /* @__PURE__ */Caml_int64.mk(-870754748, 1566024) ], [ -4790410747298403, - Caml_int64.mk(-1793835619, -1115355) + /* @__PURE__ */Caml_int64.mk(-1793835619, -1115355) ], [ 1985858071337706.25, - Caml_int64.mk(-1662346518, 462368) + /* @__PURE__ */Caml_int64.mk(-1662346518, 462368) ], [ -5281733497873409, - Caml_int64.mk(-1760584705, -1229750) + /* @__PURE__ */Caml_int64.mk(-1760584705, -1229750) ] ]; var simple_divs = [ [ - Caml_int64.mk(6, 0), - Caml_int64.mk(3, 0), - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(6, 0), + /* @__PURE__ */Caml_int64.mk(3, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), Caml_int64.zero ], [ - Caml_int64.mk(120, 0), - Caml_int64.mk(11, 0), - Caml_int64.mk(10, 0), - Caml_int64.mk(10, 0) + /* @__PURE__ */Caml_int64.mk(120, 0), + /* @__PURE__ */Caml_int64.mk(11, 0), + /* @__PURE__ */Caml_int64.mk(10, 0), + /* @__PURE__ */Caml_int64.mk(10, 0) ], [ Caml_int64.min_int, - Caml_int64.mk(2, 0), - Caml_int64.mk(0, -1073741824), + /* @__PURE__ */Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(0, -1073741824), Caml_int64.zero ], [ - Caml_int64.mk(-163100511, 1112580415), - Caml_int64.mk(-1689560617, 2013350321), + /* @__PURE__ */Caml_int64.mk(-163100511, 1112580415), + /* @__PURE__ */Caml_int64.mk(-1689560617, 2013350321), Caml_int64.zero, - Caml_int64.mk(-163100511, 1112580415) + /* @__PURE__ */Caml_int64.mk(-163100511, 1112580415) ], [ - Caml_int64.mk(1414064366, 983582600), - Caml_int64.mk(720592487, 1027627185), + /* @__PURE__ */Caml_int64.mk(1414064366, 983582600), + /* @__PURE__ */Caml_int64.mk(720592487, 1027627185), Caml_int64.zero, - Caml_int64.mk(1414064366, 983582600) + /* @__PURE__ */Caml_int64.mk(1414064366, 983582600) ], [ - Caml_int64.mk(-244174718, 707587463), - Caml_int64.mk(-1441985079, 457824592), + /* @__PURE__ */Caml_int64.mk(-244174718, 707587463), + /* @__PURE__ */Caml_int64.mk(-1441985079, 457824592), Caml_int64.one, - Caml_int64.mk(1197810361, 249762871) + /* @__PURE__ */Caml_int64.mk(1197810361, 249762871) ], [ - Caml_int64.mk(-452010802, 3696312), - Caml_int64.mk(1932508180, 303263066), + /* @__PURE__ */Caml_int64.mk(-452010802, 3696312), + /* @__PURE__ */Caml_int64.mk(1932508180, 303263066), Caml_int64.zero, - Caml_int64.mk(-452010802, 3696312) + /* @__PURE__ */Caml_int64.mk(-452010802, 3696312) ], [ - Caml_int64.mk(530108890, 1998955230), - Caml_int64.mk(-1300251594, 1876081138), + /* @__PURE__ */Caml_int64.mk(530108890, 1998955230), + /* @__PURE__ */Caml_int64.mk(-1300251594, 1876081138), Caml_int64.one, - Caml_int64.mk(1830360484, 122874091) + /* @__PURE__ */Caml_int64.mk(1830360484, 122874091) ], [ - Caml_int64.mk(-1842975846, 1123314058), - Caml_int64.mk(-1636954134, 1077511003), + /* @__PURE__ */Caml_int64.mk(-1842975846, 1123314058), + /* @__PURE__ */Caml_int64.mk(-1636954134, 1077511003), Caml_int64.one, - Caml_int64.mk(-206021712, 45803054) + /* @__PURE__ */Caml_int64.mk(-206021712, 45803054) ], [ - Caml_int64.mk(-474132284, 772515434), - Caml_int64.mk(435807891, 1485983210), + /* @__PURE__ */Caml_int64.mk(-474132284, 772515434), + /* @__PURE__ */Caml_int64.mk(435807891, 1485983210), Caml_int64.zero, - Caml_int64.mk(-474132284, 772515434) + /* @__PURE__ */Caml_int64.mk(-474132284, 772515434) ], [ - Caml_int64.mk(1357533220, 1437309318), - Caml_int64.mk(541080542, 1141241105), + /* @__PURE__ */Caml_int64.mk(1357533220, 1437309318), + /* @__PURE__ */Caml_int64.mk(541080542, 1141241105), Caml_int64.one, - Caml_int64.mk(816452678, 296068213) + /* @__PURE__ */Caml_int64.mk(816452678, 296068213) ], [ - Caml_int64.mk(407118687, 1559319564), - Caml_int64.mk(-280613636, 211092740), - Caml_int64.mk(7, 0), - Caml_int64.mk(-1923553157, 81670377) + /* @__PURE__ */Caml_int64.mk(407118687, 1559319564), + /* @__PURE__ */Caml_int64.mk(-280613636, 211092740), + /* @__PURE__ */Caml_int64.mk(7, 0), + /* @__PURE__ */Caml_int64.mk(-1923553157, 81670377) ], [ - Caml_int64.mk(1054256000, 897058469), - Caml_int64.mk(661312616, 57853316), - Caml_int64.mk(15, 0), - Caml_int64.mk(-275498648, 29258726) + /* @__PURE__ */Caml_int64.mk(1054256000, 897058469), + /* @__PURE__ */Caml_int64.mk(661312616, 57853316), + /* @__PURE__ */Caml_int64.mk(15, 0), + /* @__PURE__ */Caml_int64.mk(-275498648, 29258726) ], [ - Caml_int64.mk(-1265124412, 1771820319), - Caml_int64.mk(222584391, 1113086871), + /* @__PURE__ */Caml_int64.mk(-1265124412, 1771820319), + /* @__PURE__ */Caml_int64.mk(222584391, 1113086871), Caml_int64.one, - Caml_int64.mk(-1487708803, 658733448) + /* @__PURE__ */Caml_int64.mk(-1487708803, 658733448) ], [ - Caml_int64.mk(-1564422518, 1699471447), - Caml_int64.mk(-398393386, 1090632987), + /* @__PURE__ */Caml_int64.mk(-1564422518, 1699471447), + /* @__PURE__ */Caml_int64.mk(-398393386, 1090632987), Caml_int64.one, - Caml_int64.mk(-1166029132, 608838459) + /* @__PURE__ */Caml_int64.mk(-1166029132, 608838459) ], [ - Caml_int64.mk(837406327, 1300122432), - Caml_int64.mk(-433706886, 349961722), - Caml_int64.mk(3, 0), - Caml_int64.mk(2138526985, 250237263) + /* @__PURE__ */Caml_int64.mk(837406327, 1300122432), + /* @__PURE__ */Caml_int64.mk(-433706886, 349961722), + /* @__PURE__ */Caml_int64.mk(3, 0), + /* @__PURE__ */Caml_int64.mk(2138526985, 250237263) ], [ - Caml_int64.mk(681013979, 1844919629), - Caml_int64.mk(-400929258, 141654602), - Caml_int64.mk(13, 0), - Caml_int64.mk(1598127037, 3409791) + /* @__PURE__ */Caml_int64.mk(681013979, 1844919629), + /* @__PURE__ */Caml_int64.mk(-400929258, 141654602), + /* @__PURE__ */Caml_int64.mk(13, 0), + /* @__PURE__ */Caml_int64.mk(1598127037, 3409791) ], [ - Caml_int64.mk(-1067617897, 876561860), - Caml_int64.mk(1118648885, 1635137811), + /* @__PURE__ */Caml_int64.mk(-1067617897, 876561860), + /* @__PURE__ */Caml_int64.mk(1118648885, 1635137811), Caml_int64.zero, - Caml_int64.mk(-1067617897, 876561860) + /* @__PURE__ */Caml_int64.mk(-1067617897, 876561860) ], [ - Caml_int64.mk(1188873919, 1444234022), - Caml_int64.mk(-1845904707, 1506775353), + /* @__PURE__ */Caml_int64.mk(1188873919, 1444234022), + /* @__PURE__ */Caml_int64.mk(-1845904707, 1506775353), Caml_int64.zero, - Caml_int64.mk(1188873919, 1444234022) + /* @__PURE__ */Caml_int64.mk(1188873919, 1444234022) ], [ - Caml_int64.mk(-1338985492, 216713133), - Caml_int64.mk(478170254, 840978153), + /* @__PURE__ */Caml_int64.mk(-1338985492, 216713133), + /* @__PURE__ */Caml_int64.mk(478170254, 840978153), Caml_int64.zero, - Caml_int64.mk(-1338985492, 216713133) + /* @__PURE__ */Caml_int64.mk(-1338985492, 216713133) ], [ - Caml_int64.mk(-1951260634, 311131250), - Caml_int64.mk(1397060596, 1432032601), + /* @__PURE__ */Caml_int64.mk(-1951260634, 311131250), + /* @__PURE__ */Caml_int64.mk(1397060596, 1432032601), Caml_int64.zero, - Caml_int64.mk(-1951260634, 311131250) + /* @__PURE__ */Caml_int64.mk(-1951260634, 311131250) ], [ - Caml_int64.mk(-2040192977, 702252958), - Caml_int64.mk(1983179783, 333531300), - Caml_int64.mk(2, 0), - Caml_int64.mk(-1711585247, 35190357) + /* @__PURE__ */Caml_int64.mk(-2040192977, 702252958), + /* @__PURE__ */Caml_int64.mk(1983179783, 333531300), + /* @__PURE__ */Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(-1711585247, 35190357) ], [ - Caml_int64.mk(1357843095, 222120797), - Caml_int64.mk(-1744534264, 1409050141), + /* @__PURE__ */Caml_int64.mk(1357843095, 222120797), + /* @__PURE__ */Caml_int64.mk(-1744534264, 1409050141), Caml_int64.zero, - Caml_int64.mk(1357843095, 222120797) + /* @__PURE__ */Caml_int64.mk(1357843095, 222120797) ] ]; @@ -808,16 +808,16 @@ var to_string = [[ var int64_compare_tests = [ [ Caml_int64.one, - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), -1 ], [ - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), Caml_int64.one, 1 ], [ - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), Caml_int64.one, 1 ] diff --git a/jscomp/test/int64_string_bench.js b/jscomp/test/int64_string_bench.js index 6436a8e572..21db83a7b4 100644 --- a/jscomp/test/int64_string_bench.js +++ b/jscomp/test/int64_string_bench.js @@ -5,7 +5,7 @@ var Caml_int64 = require("../../lib/js/caml_int64.js"); console.time("Int64.to_string"); -var u = Caml_int64.sub(Int64.max_int, Caml_int64.mk(200000, 0)); +var u = Caml_int64.sub(Int64.max_int, /* @__PURE__ */Caml_int64.mk(200000, 0)); for(var i = 0; i <= 100000; ++i){ Caml_int64.to_string(u); @@ -17,7 +17,7 @@ console.log(Caml_int64.to_string(u)); console.time("Int64.to_string"); -var u$1 = Caml_int64.mk(30000000, 0); +var u$1 = /* @__PURE__ */Caml_int64.mk(30000000, 0); for(var i$1 = 0; i$1 <= 100000; ++i$1){ Caml_int64.to_string(u$1); @@ -29,7 +29,7 @@ console.log(Caml_int64.to_string(u$1)); console.time("Int64.to_string"); -var u$2 = Caml_int64.add(Int64.min_int, Caml_int64.mk(100, 0)); +var u$2 = Caml_int64.add(Int64.min_int, /* @__PURE__ */Caml_int64.mk(100, 0)); for(var i$2 = 0; i$2 <= 100000; ++i$2){ Caml_int64.to_string(u$2); diff --git a/jscomp/test/int64_string_test.js b/jscomp/test/int64_string_test.js index d3ad3e82f8..ba707d47e9 100644 --- a/jscomp/test/int64_string_test.js +++ b/jscomp/test/int64_string_test.js @@ -25,19 +25,19 @@ function f(a, b) { return eq("File \"int64_string_test.ml\", line 11, characters 5-12", Caml_int64.to_string(a), b); } -var hh = Caml_int64.add(Int64.min_int, Caml_int64.mk(100, 0)); +var hh = Caml_int64.add(Int64.min_int, /* @__PURE__ */Caml_int64.mk(100, 0)); -eq("File \"int64_string_test.ml\", line 15, characters 6-13", hh, Caml_int64.mk(100, -2147483648)); +eq("File \"int64_string_test.ml\", line 15, characters 6-13", hh, /* @__PURE__ */Caml_int64.mk(100, -2147483648)); -f(Caml_int64.mk(-33, -1), "-33"); +f(/* @__PURE__ */Caml_int64.mk(-33, -1), "-33"); -f(Caml_int64.mk(33, 0), "33"); +f(/* @__PURE__ */Caml_int64.mk(33, 0), "33"); f(Int64.min_int, "-9223372036854775808"); f(hh, "-9223372036854775708"); -f(Caml_int64.mk(-1530494976, 232830), "1000000000000000"); +f(/* @__PURE__ */Caml_int64.mk(-1530494976, 232830), "1000000000000000"); for(var i = 0; i <= 8; ++i){ eq("File \"int64_string_test.ml\", line 25, characters 5-12", Caml_int64.to_string(Caml_int64.add(Int64.min_int, Caml_int64.of_int32(i))), "-922337203685477580" + String(8 - i | 0)); @@ -51,30 +51,30 @@ for(var i$2 = 0; i$2 <= 8; ++i$2){ eq("File \"int64_string_test.ml\", line 33, characters 5-12", Caml_int64.to_string(Caml_int64.add(Int64.min_int, Caml_int64.of_int32(1000000 + i$2 | 0))), "-922337203685377580" + String(8 - i$2 | 0)); } -var u = Caml_int64.mk(-10001, 2097151); +var u = /* @__PURE__ */Caml_int64.mk(-10001, 2097151); for(var i$3 = 0; i$3 <= 6; ++i$3){ eq("File \"int64_string_test.ml\", line 42, characters 5-12", Caml_int64.to_string(Caml_int64.add(u, Caml_int64.of_int32(Math.imul(i$3, 10000)))), "90071992547" + (String(3 + i$3 | 0) + "0991")); } -var v$1 = Caml_int64.mk(-49999, -2097153); +var v$1 = /* @__PURE__ */Caml_int64.mk(-49999, -2097153); for(var i$4 = 0; i$4 <= 9; ++i$4){ eq("File \"int64_string_test.ml\", line 49, characters 5-12", Caml_int64.to_string(Caml_int64.add(v$1, Caml_int64.of_int32(Math.imul(i$4, 10000)))), "-90071992547" + (String(9 - i$4 | 0) + "0991")); } -eq("File \"int64_string_test.ml\", line 52, characters 6-13", Caml_int64.to_string(Caml_int64.mk(-1, 2097151)), "9007199254740991"); +eq("File \"int64_string_test.ml\", line 52, characters 6-13", Caml_int64.to_string(/* @__PURE__ */Caml_int64.mk(-1, 2097151)), "9007199254740991"); -eq("File \"int64_string_test.ml\", line 53, characters 6-13", Caml_int64.to_string(Caml_int64.mk(1, -2097152)), "-9007199254740991"); +eq("File \"int64_string_test.ml\", line 53, characters 6-13", Caml_int64.to_string(/* @__PURE__ */Caml_int64.mk(1, -2097152)), "-9007199254740991"); -eq("File \"int64_string_test.ml\", line 54, characters 6-13", Caml_int64.to_string(Caml_int64.mk(-233, -1)), "-233"); +eq("File \"int64_string_test.ml\", line 54, characters 6-13", Caml_int64.to_string(/* @__PURE__ */Caml_int64.mk(-233, -1)), "-233"); eq("File \"int64_string_test.ml\", line 55, characters 6-13", Caml_int64.to_string(Caml_int64.max_int), "9223372036854775807"); var random_data = { hd: { hd: [ - Caml_int64.mk(-1923201751, 2147226018), + /* @__PURE__ */Caml_int64.mk(-1923201751, 2147226018), "9222265526802072873" ], tl: /* [] */0 @@ -82,7 +82,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1923201751, -2147226019), + /* @__PURE__ */Caml_int64.mk(1923201751, -2147226019), "-9222265526802072873" ], tl: /* [] */0 @@ -90,7 +90,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1645588432, 1923105645), + /* @__PURE__ */Caml_int64.mk(-1645588432, 1923105645), "8259675854677364784" ], tl: /* [] */0 @@ -98,7 +98,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1645588432, -1923105646), + /* @__PURE__ */Caml_int64.mk(1645588432, -1923105646), "-8259675854677364784" ], tl: /* [] */0 @@ -106,7 +106,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1997543078, 2057149268), + /* @__PURE__ */Caml_int64.mk(-1997543078, 2057149268), "8835388831347763546" ], tl: /* [] */0 @@ -114,7 +114,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1997543078, -2057149269), + /* @__PURE__ */Caml_int64.mk(1997543078, -2057149269), "-8835388831347763546" ], tl: /* [] */0 @@ -122,7 +122,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1512009783, 1963412104), + /* @__PURE__ */Caml_int64.mk(-1512009783, 1963412104), "8432790778033508297" ], tl: /* [] */0 @@ -130,7 +130,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1512009783, -1963412105), + /* @__PURE__ */Caml_int64.mk(1512009783, -1963412105), "-8432790778033508297" ], tl: /* [] */0 @@ -138,7 +138,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-200913449, 2049795191), + /* @__PURE__ */Caml_int64.mk(-200913449, 2049795191), "8803803312937127383" ], tl: /* [] */0 @@ -146,7 +146,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(200913449, -2049795192), + /* @__PURE__ */Caml_int64.mk(200913449, -2049795192), "-8803803312937127383" ], tl: /* [] */0 @@ -154,7 +154,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-446052820, 1991682107), + /* @__PURE__ */Caml_int64.mk(-446052820, 1991682107), "8554209517442287148" ], tl: /* [] */0 @@ -162,7 +162,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(446052820, -1991682108), + /* @__PURE__ */Caml_int64.mk(446052820, -1991682108), "-8554209517442287148" ], tl: /* [] */0 @@ -170,7 +170,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-659436124, 2055313051), + /* @__PURE__ */Caml_int64.mk(-659436124, 2055313051), "8827502340722511268" ], tl: /* [] */0 @@ -178,7 +178,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(659436124, -2055313052), + /* @__PURE__ */Caml_int64.mk(659436124, -2055313052), "-8827502340722511268" ], tl: /* [] */0 @@ -186,7 +186,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-629381303, 2086148291), + /* @__PURE__ */Caml_int64.mk(-629381303, 2086148291), "8959938688116877129" ], tl: /* [] */0 @@ -194,7 +194,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(629381303, -2086148292), + /* @__PURE__ */Caml_int64.mk(629381303, -2086148292), "-8959938688116877129" ], tl: /* [] */0 @@ -202,7 +202,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-409338213, 1950036541), + /* @__PURE__ */Caml_int64.mk(-409338213, 1950036541), "8375343173485592219" ], tl: /* [] */0 @@ -210,7 +210,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(409338213, -1950036542), + /* @__PURE__ */Caml_int64.mk(409338213, -1950036542), "-8375343173485592219" ], tl: /* [] */0 @@ -218,7 +218,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-392215503, 1920197492), + /* @__PURE__ */Caml_int64.mk(-392215503, 1920197492), "8247185433903973425" ], tl: /* [] */0 @@ -226,7 +226,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(392215503, -1920197493), + /* @__PURE__ */Caml_int64.mk(392215503, -1920197493), "-8247185433903973425" ], tl: /* [] */0 @@ -234,7 +234,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1732901220, 2066884723), + /* @__PURE__ */Caml_int64.mk(-1732901220, 2066884723), "8877202292449085084" ], tl: /* [] */0 @@ -242,7 +242,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1732901220, -2066884724), + /* @__PURE__ */Caml_int64.mk(1732901220, -2066884724), "-8877202292449085084" ], tl: /* [] */0 @@ -250,7 +250,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(86646639, 2028895352), + /* @__PURE__ */Caml_int64.mk(86646639, 2028895352), "8714039183933054831" ], tl: /* [] */0 @@ -258,7 +258,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-86646639, -2028895353), + /* @__PURE__ */Caml_int64.mk(-86646639, -2028895353), "-8714039183933054831" ], tl: /* [] */0 @@ -266,7 +266,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1417923479, 2068232680), + /* @__PURE__ */Caml_int64.mk(1417923479, 2068232680), "8882991722536356759" ], tl: /* [] */0 @@ -274,7 +274,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1417923479, -2068232681), + /* @__PURE__ */Caml_int64.mk(-1417923479, -2068232681), "-8882991722536356759" ], tl: /* [] */0 @@ -282,7 +282,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(2146167188, 1940466044), + /* @__PURE__ */Caml_int64.mk(2146167188, 1940466044), "8334238200124664212" ], tl: /* [] */0 @@ -290,7 +290,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-2146167188, -1940466045), + /* @__PURE__ */Caml_int64.mk(-2146167188, -1940466045), "-8334238200124664212" ], tl: /* [] */0 @@ -298,7 +298,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1450051974, 2139021480), + /* @__PURE__ */Caml_int64.mk(-1450051974, 2139021480), "9187027304886433402" ], tl: /* [] */0 @@ -306,7 +306,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1450051974, -2139021481), + /* @__PURE__ */Caml_int64.mk(1450051974, -2139021481), "-9187027304886433402" ], tl: /* [] */0 @@ -314,7 +314,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-437291686, 2126455706), + /* @__PURE__ */Caml_int64.mk(-437291686, 2126455706), "9133057717520266586" ], tl: /* [] */0 @@ -322,7 +322,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(437291686, -2126455707), + /* @__PURE__ */Caml_int64.mk(437291686, -2126455707), "-9133057717520266586" ], tl: /* [] */0 @@ -330,7 +330,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(608162909, 2134212194), + /* @__PURE__ */Caml_int64.mk(608162909, 2134212194), "9166371576562570333" ], tl: /* [] */0 @@ -338,7 +338,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-608162909, -2134212195), + /* @__PURE__ */Caml_int64.mk(-608162909, -2134212195), "-9166371576562570333" ], tl: /* [] */0 @@ -346,7 +346,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1403654222, 2014956425), + /* @__PURE__ */Caml_int64.mk(1403654222, 2014956425), "8654171949643731022" ], tl: /* [] */0 @@ -354,7 +354,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1403654222, -2014956426), + /* @__PURE__ */Caml_int64.mk(-1403654222, -2014956426), "-8654171949643731022" ], tl: /* [] */0 @@ -362,7 +362,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1237787861, 2103588109), + /* @__PURE__ */Caml_int64.mk(1237787861, 2103588109), "9034842133647271125" ], tl: /* [] */0 @@ -370,7 +370,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1237787861, -2103588110), + /* @__PURE__ */Caml_int64.mk(-1237787861, -2103588110), "-9034842133647271125" ], tl: /* [] */0 @@ -378,7 +378,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1133894441, 2004341376), + /* @__PURE__ */Caml_int64.mk(-1133894441, 2004341376), "8608580663100712151" ], tl: /* [] */0 @@ -386,7 +386,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1133894441, -2004341377), + /* @__PURE__ */Caml_int64.mk(1133894441, -2004341377), "-8608580663100712151" ], tl: /* [] */0 @@ -394,7 +394,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-152578516, 2053733102), + /* @__PURE__ */Caml_int64.mk(-152578516, 2053733102), "8820716511945020972" ], tl: /* [] */0 @@ -402,7 +402,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(152578516, -2053733103), + /* @__PURE__ */Caml_int64.mk(152578516, -2053733103), "-8820716511945020972" ], tl: /* [] */0 @@ -410,7 +410,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1979926511, 2131986077), + /* @__PURE__ */Caml_int64.mk(1979926511, 2131986077), "9156810478222264303" ], tl: /* [] */0 @@ -418,7 +418,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1979926511, -2131986078), + /* @__PURE__ */Caml_int64.mk(-1979926511, -2131986078), "-9156810478222264303" ], tl: /* [] */0 @@ -426,7 +426,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(609814957, 2038531675), + /* @__PURE__ */Caml_int64.mk(609814957, 2038531675), "8755426876594915757" ], tl: /* [] */0 @@ -434,7 +434,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-609814957, -2038531676), + /* @__PURE__ */Caml_int64.mk(-609814957, -2038531676), "-8755426876594915757" ], tl: /* [] */0 @@ -442,7 +442,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1830468673, 2043028138), + /* @__PURE__ */Caml_int64.mk(1830468673, 2043028138), "8774739039348243521" ], tl: /* [] */0 @@ -450,7 +450,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1830468673, -2043028139), + /* @__PURE__ */Caml_int64.mk(-1830468673, -2043028139), "-8774739039348243521" ], tl: /* [] */0 @@ -458,7 +458,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1990851787, 2113110666), + /* @__PURE__ */Caml_int64.mk(-1990851787, 2113110666), "9075741205602894645" ], tl: /* [] */0 @@ -466,7 +466,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1990851787, -2113110667), + /* @__PURE__ */Caml_int64.mk(1990851787, -2113110667), "-9075741205602894645" ], tl: /* [] */0 @@ -474,7 +474,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(62815435, 2045703976), + /* @__PURE__ */Caml_int64.mk(62815435, 2045703976), "8786231674279984331" ], tl: /* [] */0 @@ -482,7 +482,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-62815435, -2045703977), + /* @__PURE__ */Caml_int64.mk(-62815435, -2045703977), "-8786231674279984331" ], tl: /* [] */0 @@ -490,7 +490,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1641712918, 2083606415), + /* @__PURE__ */Caml_int64.mk(1641712918, 2083606415), "8949021411802516758" ], tl: /* [] */0 @@ -498,7 +498,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1641712918, -2083606416), + /* @__PURE__ */Caml_int64.mk(-1641712918, -2083606416), "-8949021411802516758" ], tl: /* [] */0 @@ -506,7 +506,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(385116562, 1984816802), + /* @__PURE__ */Caml_int64.mk(385116562, 1984816802), "8524723253526423954" ], tl: /* [] */0 @@ -514,7 +514,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-385116562, -1984816803), + /* @__PURE__ */Caml_int64.mk(-385116562, -1984816803), "-8524723253526423954" ], tl: /* [] */0 @@ -522,7 +522,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-634982516, 1982155493), + /* @__PURE__ */Caml_int64.mk(-634982516, 1982155493), "8513293021681741708" ], tl: /* [] */0 @@ -530,7 +530,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(634982516, -1982155494), + /* @__PURE__ */Caml_int64.mk(634982516, -1982155494), "-8513293021681741708" ], tl: /* [] */0 @@ -538,7 +538,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1953231192, 1960775672), + /* @__PURE__ */Caml_int64.mk(1953231192, 1960775672), "8421467387985654104" ], tl: /* [] */0 @@ -546,7 +546,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1953231192, -1960775673), + /* @__PURE__ */Caml_int64.mk(-1953231192, -1960775673), "-8421467387985654104" ], tl: /* [] */0 @@ -554,7 +554,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1489159267, 1957806908), + /* @__PURE__ */Caml_int64.mk(-1489159267, 1957806908), "8408716644548688797" ], tl: /* [] */0 @@ -562,7 +562,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1489159267, -1957806909), + /* @__PURE__ */Caml_int64.mk(1489159267, -1957806909), "-8408716644548688797" ], tl: /* [] */0 @@ -570,7 +570,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-573272148, 2035600198), + /* @__PURE__ */Caml_int64.mk(-573272148, 2035600198), "8742836281862819756" ], tl: /* [] */0 @@ -578,7 +578,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(573272148, -2035600199), + /* @__PURE__ */Caml_int64.mk(573272148, -2035600199), "-8742836281862819756" ], tl: /* [] */0 @@ -586,7 +586,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1707233215, 1979020711), + /* @__PURE__ */Caml_int64.mk(-1707233215, 1979020711), "8499829234439401537" ], tl: /* [] */0 @@ -594,7 +594,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1707233215, -1979020712), + /* @__PURE__ */Caml_int64.mk(1707233215, -1979020712), "-8499829234439401537" ], tl: /* [] */0 @@ -602,7 +602,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(814703363, 1938132066), + /* @__PURE__ */Caml_int64.mk(814703363, 1938132066), "8324213839613616899" ], tl: /* [] */0 @@ -610,7 +610,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-814703363, -1938132067), + /* @__PURE__ */Caml_int64.mk(-814703363, -1938132067), "-8324213839613616899" ], tl: /* [] */0 @@ -618,7 +618,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(100663039, 2121879728), + /* @__PURE__ */Caml_int64.mk(100663039, 2121879728), "9113404037906038527" ], tl: /* [] */0 @@ -626,7 +626,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-100663039, -2121879729), + /* @__PURE__ */Caml_int64.mk(-100663039, -2121879729), "-9113404037906038527" ], tl: /* [] */0 @@ -634,7 +634,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1821275721, 2078127307), + /* @__PURE__ */Caml_int64.mk(1821275721, 2078127307), "8925488822310827593" ], tl: /* [] */0 @@ -642,7 +642,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1821275721, -2078127308), + /* @__PURE__ */Caml_int64.mk(-1821275721, -2078127308), "-8925488822310827593" ], tl: /* [] */0 @@ -650,7 +650,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(221520981, 2113685321), + /* @__PURE__ */Caml_int64.mk(221520981, 2113685321), "9078209327951782997" ], tl: /* [] */0 @@ -658,7 +658,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-221520981, -2113685322), + /* @__PURE__ */Caml_int64.mk(-221520981, -2113685322), "-9078209327951782997" ], tl: /* [] */0 @@ -666,7 +666,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(76350484, 2045429685), + /* @__PURE__ */Caml_int64.mk(76350484, 2045429685), "8785053603418932244" ], tl: /* [] */0 @@ -674,7 +674,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-76350484, -2045429686), + /* @__PURE__ */Caml_int64.mk(-76350484, -2045429686), "-8785053603418932244" ], tl: /* [] */0 @@ -682,7 +682,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-482197705, 1968718580), + /* @__PURE__ */Caml_int64.mk(-482197705, 1968718580), "8455581919940329271" ], tl: /* [] */0 @@ -690,7 +690,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(482197705, -1968718581), + /* @__PURE__ */Caml_int64.mk(482197705, -1968718581), "-8455581919940329271" ], tl: /* [] */0 @@ -698,7 +698,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-659366784, 2085192963), + /* @__PURE__ */Caml_int64.mk(-659366784, 2085192963), "8955835585569938560" ], tl: /* [] */0 @@ -706,7 +706,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(659366784, -2085192964), + /* @__PURE__ */Caml_int64.mk(659366784, -2085192964), "-8955835585569938560" ], tl: /* [] */0 @@ -714,7 +714,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(891163075, 2105970746), + /* @__PURE__ */Caml_int64.mk(891163075, 2105970746), "9045075481293885891" ], tl: /* [] */0 @@ -722,7 +722,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-891163075, -2105970747), + /* @__PURE__ */Caml_int64.mk(-891163075, -2105970747), "-9045075481293885891" ], tl: /* [] */0 @@ -730,7 +730,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1745967587, 1979240942), + /* @__PURE__ */Caml_int64.mk(1745967587, 1979240942), "8500775118540200419" ], tl: /* [] */0 @@ -738,7 +738,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1745967587, -1979240943), + /* @__PURE__ */Caml_int64.mk(-1745967587, -1979240943), "-8500775118540200419" ], tl: /* [] */0 @@ -746,7 +746,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1726605174, 2128838238), + /* @__PURE__ */Caml_int64.mk(-1726605174, 2128838238), "9143290613252626570" ], tl: /* [] */0 @@ -754,7 +754,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1726605174, -2128838239), + /* @__PURE__ */Caml_int64.mk(1726605174, -2128838239), "-9143290613252626570" ], tl: /* [] */0 @@ -762,7 +762,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1163315390, 2031412573), + /* @__PURE__ */Caml_int64.mk(-1163315390, 2031412573), "8724850568849864514" ], tl: /* [] */0 @@ -770,7 +770,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1163315390, -2031412574), + /* @__PURE__ */Caml_int64.mk(1163315390, -2031412574), "-8724850568849864514" ], tl: /* [] */0 @@ -778,7 +778,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1030126896, 2134043448), + /* @__PURE__ */Caml_int64.mk(-1030126896, 2134043448), "9165646820667917008" ], tl: /* [] */0 @@ -786,7 +786,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1030126896, -2134043449), + /* @__PURE__ */Caml_int64.mk(1030126896, -2134043449), "-9165646820667917008" ], tl: /* [] */0 @@ -794,7 +794,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1996229624, 2053645659), + /* @__PURE__ */Caml_int64.mk(-1996229624, 2053645659), "8820340945276105736" ], tl: /* [] */0 @@ -802,7 +802,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1996229624, -2053645660), + /* @__PURE__ */Caml_int64.mk(1996229624, -2053645660), "-8820340945276105736" ], tl: /* [] */0 @@ -810,7 +810,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-2129989589, 2121544293), + /* @__PURE__ */Caml_int64.mk(-2129989589, 2121544293), "9111963357615419435" ], tl: /* [] */0 @@ -818,7 +818,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(2129989589, -2121544294), + /* @__PURE__ */Caml_int64.mk(2129989589, -2121544294), "-9111963357615419435" ], tl: /* [] */0 @@ -826,7 +826,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-54067016, 2143847823), + /* @__PURE__ */Caml_int64.mk(-54067016, 2143847823), "9207756291626696888" ], tl: /* [] */0 @@ -834,7 +834,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(54067016, -2143847824), + /* @__PURE__ */Caml_int64.mk(54067016, -2143847824), "-9207756291626696888" ], tl: /* [] */0 @@ -842,7 +842,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1548719224, 2080628135), + /* @__PURE__ */Caml_int64.mk(1548719224, 2080628135), "8936229796511192184" ], tl: /* [] */0 @@ -850,7 +850,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1548719224, -2080628136), + /* @__PURE__ */Caml_int64.mk(-1548719224, -2080628136), "-8936229796511192184" ], tl: /* [] */0 @@ -858,7 +858,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(1066249560, 2061191282), + /* @__PURE__ */Caml_int64.mk(1066249560, 2061191282), "8852749148056563032" ], tl: /* [] */0 @@ -866,7 +866,7 @@ var random_data = { tl: { hd: { hd: [ - Caml_int64.mk(-1066249560, -2061191283), + /* @__PURE__ */Caml_int64.mk(-1066249560, -2061191283), "-8852749148056563032" ], tl: /* [] */0 @@ -1000,9 +1000,9 @@ Belt_List.forEach(random_data, (function (u) { }; })); -eq("File \"int64_string_test.ml\", line 164, characters 7-14", Caml_int64.to_string(Caml_int64.mk(1, -2097152)), "-9007199254740991"); +eq("File \"int64_string_test.ml\", line 164, characters 7-14", Caml_int64.to_string(/* @__PURE__ */Caml_int64.mk(1, -2097152)), "-9007199254740991"); -eq("File \"int64_string_test.ml\", line 165, characters 7-14", Caml_int64.to_string(Caml_int64.mk(0, -2097152)), "-9007199254740992"); +eq("File \"int64_string_test.ml\", line 165, characters 7-14", Caml_int64.to_string(/* @__PURE__ */Caml_int64.mk(0, -2097152)), "-9007199254740992"); Mt.from_pair_suites("File \"int64_string_test.ml\", line 166, characters 23-30", suites.contents); diff --git a/jscomp/test/int64_test.js b/jscomp/test/int64_test.js index a628ad56b1..eb9756b4b6 100644 --- a/jscomp/test/int64_test.js +++ b/jscomp/test/int64_test.js @@ -19,7 +19,7 @@ var v = Caml_int64.add(Caml_int64.of_int32(Int32.max_int), Int64.one); var h = Caml_int64.neg(v); -var a = Caml_int64.mk(2147483647, 0); +var a = /* @__PURE__ */Caml_int64.mk(2147483647, 0); function commutative_add(result, a, b) { return { @@ -43,68 +43,68 @@ var shift_left_tests_0 = $$Array.map((function (i) { var shift_left_tests_1 = [ Caml_int64.one, - Caml_int64.mk(2, 0), - Caml_int64.mk(4, 0), - Caml_int64.mk(8, 0), - Caml_int64.mk(16, 0), - Caml_int64.mk(32, 0), - Caml_int64.mk(64, 0), - Caml_int64.mk(128, 0), - Caml_int64.mk(256, 0), - Caml_int64.mk(512, 0), - Caml_int64.mk(1024, 0), - Caml_int64.mk(2048, 0), - Caml_int64.mk(4096, 0), - Caml_int64.mk(8192, 0), - Caml_int64.mk(16384, 0), - Caml_int64.mk(32768, 0), - Caml_int64.mk(65536, 0), - Caml_int64.mk(131072, 0), - Caml_int64.mk(262144, 0), - Caml_int64.mk(524288, 0), - Caml_int64.mk(1048576, 0), - Caml_int64.mk(2097152, 0), - Caml_int64.mk(4194304, 0), - Caml_int64.mk(8388608, 0), - Caml_int64.mk(16777216, 0), - Caml_int64.mk(33554432, 0), - Caml_int64.mk(67108864, 0), - Caml_int64.mk(134217728, 0), - Caml_int64.mk(268435456, 0), - Caml_int64.mk(536870912, 0), - Caml_int64.mk(1073741824, 0), - Caml_int64.mk(-2147483648, 0), - Caml_int64.mk(0, 1), - Caml_int64.mk(0, 2), - Caml_int64.mk(0, 4), - Caml_int64.mk(0, 8), - Caml_int64.mk(0, 16), - Caml_int64.mk(0, 32), - Caml_int64.mk(0, 64), - Caml_int64.mk(0, 128), - Caml_int64.mk(0, 256), - Caml_int64.mk(0, 512), - Caml_int64.mk(0, 1024), - Caml_int64.mk(0, 2048), - Caml_int64.mk(0, 4096), - Caml_int64.mk(0, 8192), - Caml_int64.mk(0, 16384), - Caml_int64.mk(0, 32768), - Caml_int64.mk(0, 65536), - Caml_int64.mk(0, 131072), - Caml_int64.mk(0, 262144), - Caml_int64.mk(0, 524288), - Caml_int64.mk(0, 1048576), - Caml_int64.mk(0, 2097152), - Caml_int64.mk(0, 4194304), - Caml_int64.mk(0, 8388608), - Caml_int64.mk(0, 16777216), - Caml_int64.mk(0, 33554432), - Caml_int64.mk(0, 67108864), - Caml_int64.mk(0, 134217728), - Caml_int64.mk(0, 268435456), - Caml_int64.mk(0, 536870912), - Caml_int64.mk(0, 1073741824), + /* @__PURE__ */Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(4, 0), + /* @__PURE__ */Caml_int64.mk(8, 0), + /* @__PURE__ */Caml_int64.mk(16, 0), + /* @__PURE__ */Caml_int64.mk(32, 0), + /* @__PURE__ */Caml_int64.mk(64, 0), + /* @__PURE__ */Caml_int64.mk(128, 0), + /* @__PURE__ */Caml_int64.mk(256, 0), + /* @__PURE__ */Caml_int64.mk(512, 0), + /* @__PURE__ */Caml_int64.mk(1024, 0), + /* @__PURE__ */Caml_int64.mk(2048, 0), + /* @__PURE__ */Caml_int64.mk(4096, 0), + /* @__PURE__ */Caml_int64.mk(8192, 0), + /* @__PURE__ */Caml_int64.mk(16384, 0), + /* @__PURE__ */Caml_int64.mk(32768, 0), + /* @__PURE__ */Caml_int64.mk(65536, 0), + /* @__PURE__ */Caml_int64.mk(131072, 0), + /* @__PURE__ */Caml_int64.mk(262144, 0), + /* @__PURE__ */Caml_int64.mk(524288, 0), + /* @__PURE__ */Caml_int64.mk(1048576, 0), + /* @__PURE__ */Caml_int64.mk(2097152, 0), + /* @__PURE__ */Caml_int64.mk(4194304, 0), + /* @__PURE__ */Caml_int64.mk(8388608, 0), + /* @__PURE__ */Caml_int64.mk(16777216, 0), + /* @__PURE__ */Caml_int64.mk(33554432, 0), + /* @__PURE__ */Caml_int64.mk(67108864, 0), + /* @__PURE__ */Caml_int64.mk(134217728, 0), + /* @__PURE__ */Caml_int64.mk(268435456, 0), + /* @__PURE__ */Caml_int64.mk(536870912, 0), + /* @__PURE__ */Caml_int64.mk(1073741824, 0), + /* @__PURE__ */Caml_int64.mk(-2147483648, 0), + /* @__PURE__ */Caml_int64.mk(0, 1), + /* @__PURE__ */Caml_int64.mk(0, 2), + /* @__PURE__ */Caml_int64.mk(0, 4), + /* @__PURE__ */Caml_int64.mk(0, 8), + /* @__PURE__ */Caml_int64.mk(0, 16), + /* @__PURE__ */Caml_int64.mk(0, 32), + /* @__PURE__ */Caml_int64.mk(0, 64), + /* @__PURE__ */Caml_int64.mk(0, 128), + /* @__PURE__ */Caml_int64.mk(0, 256), + /* @__PURE__ */Caml_int64.mk(0, 512), + /* @__PURE__ */Caml_int64.mk(0, 1024), + /* @__PURE__ */Caml_int64.mk(0, 2048), + /* @__PURE__ */Caml_int64.mk(0, 4096), + /* @__PURE__ */Caml_int64.mk(0, 8192), + /* @__PURE__ */Caml_int64.mk(0, 16384), + /* @__PURE__ */Caml_int64.mk(0, 32768), + /* @__PURE__ */Caml_int64.mk(0, 65536), + /* @__PURE__ */Caml_int64.mk(0, 131072), + /* @__PURE__ */Caml_int64.mk(0, 262144), + /* @__PURE__ */Caml_int64.mk(0, 524288), + /* @__PURE__ */Caml_int64.mk(0, 1048576), + /* @__PURE__ */Caml_int64.mk(0, 2097152), + /* @__PURE__ */Caml_int64.mk(0, 4194304), + /* @__PURE__ */Caml_int64.mk(0, 8388608), + /* @__PURE__ */Caml_int64.mk(0, 16777216), + /* @__PURE__ */Caml_int64.mk(0, 33554432), + /* @__PURE__ */Caml_int64.mk(0, 67108864), + /* @__PURE__ */Caml_int64.mk(0, 134217728), + /* @__PURE__ */Caml_int64.mk(0, 268435456), + /* @__PURE__ */Caml_int64.mk(0, 536870912), + /* @__PURE__ */Caml_int64.mk(0, 1073741824), Caml_int64.min_int ]; @@ -119,68 +119,68 @@ var shift_right_tests_0 = $$Array.map((function (i) { var shift_right_tests_1 = [ Caml_int64.min_int, - Caml_int64.mk(0, -1073741824), - Caml_int64.mk(0, -536870912), - Caml_int64.mk(0, -268435456), - Caml_int64.mk(0, -134217728), - Caml_int64.mk(0, -67108864), - Caml_int64.mk(0, -33554432), - Caml_int64.mk(0, -16777216), - Caml_int64.mk(0, -8388608), - Caml_int64.mk(0, -4194304), - Caml_int64.mk(0, -2097152), - Caml_int64.mk(0, -1048576), - Caml_int64.mk(0, -524288), - Caml_int64.mk(0, -262144), - Caml_int64.mk(0, -131072), - Caml_int64.mk(0, -65536), - Caml_int64.mk(0, -32768), - Caml_int64.mk(0, -16384), - Caml_int64.mk(0, -8192), - Caml_int64.mk(0, -4096), - Caml_int64.mk(0, -2048), - Caml_int64.mk(0, -1024), - Caml_int64.mk(0, -512), - Caml_int64.mk(0, -256), - Caml_int64.mk(0, -128), - Caml_int64.mk(0, -64), - Caml_int64.mk(0, -32), - Caml_int64.mk(0, -16), - Caml_int64.mk(0, -8), - Caml_int64.mk(0, -4), - Caml_int64.mk(0, -2), - Caml_int64.mk(0, -1), - Caml_int64.mk(-2147483648, -1), - Caml_int64.mk(-1073741824, -1), - Caml_int64.mk(-536870912, -1), - Caml_int64.mk(-268435456, -1), - Caml_int64.mk(-134217728, -1), - Caml_int64.mk(-67108864, -1), - Caml_int64.mk(-33554432, -1), - Caml_int64.mk(-16777216, -1), - Caml_int64.mk(-8388608, -1), - Caml_int64.mk(-4194304, -1), - Caml_int64.mk(-2097152, -1), - Caml_int64.mk(-1048576, -1), - Caml_int64.mk(-524288, -1), - Caml_int64.mk(-262144, -1), - Caml_int64.mk(-131072, -1), - Caml_int64.mk(-65536, -1), - Caml_int64.mk(-32768, -1), - Caml_int64.mk(-16384, -1), - Caml_int64.mk(-8192, -1), - Caml_int64.mk(-4096, -1), - Caml_int64.mk(-2048, -1), - Caml_int64.mk(-1024, -1), - Caml_int64.mk(-512, -1), - Caml_int64.mk(-256, -1), - Caml_int64.mk(-128, -1), - Caml_int64.mk(-64, -1), - Caml_int64.mk(-32, -1), - Caml_int64.mk(-16, -1), - Caml_int64.mk(-8, -1), - Caml_int64.mk(-4, -1), - Caml_int64.mk(-2, -1), + /* @__PURE__ */Caml_int64.mk(0, -1073741824), + /* @__PURE__ */Caml_int64.mk(0, -536870912), + /* @__PURE__ */Caml_int64.mk(0, -268435456), + /* @__PURE__ */Caml_int64.mk(0, -134217728), + /* @__PURE__ */Caml_int64.mk(0, -67108864), + /* @__PURE__ */Caml_int64.mk(0, -33554432), + /* @__PURE__ */Caml_int64.mk(0, -16777216), + /* @__PURE__ */Caml_int64.mk(0, -8388608), + /* @__PURE__ */Caml_int64.mk(0, -4194304), + /* @__PURE__ */Caml_int64.mk(0, -2097152), + /* @__PURE__ */Caml_int64.mk(0, -1048576), + /* @__PURE__ */Caml_int64.mk(0, -524288), + /* @__PURE__ */Caml_int64.mk(0, -262144), + /* @__PURE__ */Caml_int64.mk(0, -131072), + /* @__PURE__ */Caml_int64.mk(0, -65536), + /* @__PURE__ */Caml_int64.mk(0, -32768), + /* @__PURE__ */Caml_int64.mk(0, -16384), + /* @__PURE__ */Caml_int64.mk(0, -8192), + /* @__PURE__ */Caml_int64.mk(0, -4096), + /* @__PURE__ */Caml_int64.mk(0, -2048), + /* @__PURE__ */Caml_int64.mk(0, -1024), + /* @__PURE__ */Caml_int64.mk(0, -512), + /* @__PURE__ */Caml_int64.mk(0, -256), + /* @__PURE__ */Caml_int64.mk(0, -128), + /* @__PURE__ */Caml_int64.mk(0, -64), + /* @__PURE__ */Caml_int64.mk(0, -32), + /* @__PURE__ */Caml_int64.mk(0, -16), + /* @__PURE__ */Caml_int64.mk(0, -8), + /* @__PURE__ */Caml_int64.mk(0, -4), + /* @__PURE__ */Caml_int64.mk(0, -2), + /* @__PURE__ */Caml_int64.mk(0, -1), + /* @__PURE__ */Caml_int64.mk(-2147483648, -1), + /* @__PURE__ */Caml_int64.mk(-1073741824, -1), + /* @__PURE__ */Caml_int64.mk(-536870912, -1), + /* @__PURE__ */Caml_int64.mk(-268435456, -1), + /* @__PURE__ */Caml_int64.mk(-134217728, -1), + /* @__PURE__ */Caml_int64.mk(-67108864, -1), + /* @__PURE__ */Caml_int64.mk(-33554432, -1), + /* @__PURE__ */Caml_int64.mk(-16777216, -1), + /* @__PURE__ */Caml_int64.mk(-8388608, -1), + /* @__PURE__ */Caml_int64.mk(-4194304, -1), + /* @__PURE__ */Caml_int64.mk(-2097152, -1), + /* @__PURE__ */Caml_int64.mk(-1048576, -1), + /* @__PURE__ */Caml_int64.mk(-524288, -1), + /* @__PURE__ */Caml_int64.mk(-262144, -1), + /* @__PURE__ */Caml_int64.mk(-131072, -1), + /* @__PURE__ */Caml_int64.mk(-65536, -1), + /* @__PURE__ */Caml_int64.mk(-32768, -1), + /* @__PURE__ */Caml_int64.mk(-16384, -1), + /* @__PURE__ */Caml_int64.mk(-8192, -1), + /* @__PURE__ */Caml_int64.mk(-4096, -1), + /* @__PURE__ */Caml_int64.mk(-2048, -1), + /* @__PURE__ */Caml_int64.mk(-1024, -1), + /* @__PURE__ */Caml_int64.mk(-512, -1), + /* @__PURE__ */Caml_int64.mk(-256, -1), + /* @__PURE__ */Caml_int64.mk(-128, -1), + /* @__PURE__ */Caml_int64.mk(-64, -1), + /* @__PURE__ */Caml_int64.mk(-32, -1), + /* @__PURE__ */Caml_int64.mk(-16, -1), + /* @__PURE__ */Caml_int64.mk(-8, -1), + /* @__PURE__ */Caml_int64.mk(-4, -1), + /* @__PURE__ */Caml_int64.mk(-2, -1), Caml_int64.neg_one ]; @@ -195,68 +195,68 @@ var shift_right_logical_suites_0 = $$Array.map((function (i) { var shift_right_logical_suites_1 = [ Caml_int64.min_int, - Caml_int64.mk(0, 1073741824), - Caml_int64.mk(0, 536870912), - Caml_int64.mk(0, 268435456), - Caml_int64.mk(0, 134217728), - Caml_int64.mk(0, 67108864), - Caml_int64.mk(0, 33554432), - Caml_int64.mk(0, 16777216), - Caml_int64.mk(0, 8388608), - Caml_int64.mk(0, 4194304), - Caml_int64.mk(0, 2097152), - Caml_int64.mk(0, 1048576), - Caml_int64.mk(0, 524288), - Caml_int64.mk(0, 262144), - Caml_int64.mk(0, 131072), - Caml_int64.mk(0, 65536), - Caml_int64.mk(0, 32768), - Caml_int64.mk(0, 16384), - Caml_int64.mk(0, 8192), - Caml_int64.mk(0, 4096), - Caml_int64.mk(0, 2048), - Caml_int64.mk(0, 1024), - Caml_int64.mk(0, 512), - Caml_int64.mk(0, 256), - Caml_int64.mk(0, 128), - Caml_int64.mk(0, 64), - Caml_int64.mk(0, 32), - Caml_int64.mk(0, 16), - Caml_int64.mk(0, 8), - Caml_int64.mk(0, 4), - Caml_int64.mk(0, 2), - Caml_int64.mk(0, 1), - Caml_int64.mk(-2147483648, 0), - Caml_int64.mk(1073741824, 0), - Caml_int64.mk(536870912, 0), - Caml_int64.mk(268435456, 0), - Caml_int64.mk(134217728, 0), - Caml_int64.mk(67108864, 0), - Caml_int64.mk(33554432, 0), - Caml_int64.mk(16777216, 0), - Caml_int64.mk(8388608, 0), - Caml_int64.mk(4194304, 0), - Caml_int64.mk(2097152, 0), - Caml_int64.mk(1048576, 0), - Caml_int64.mk(524288, 0), - Caml_int64.mk(262144, 0), - Caml_int64.mk(131072, 0), - Caml_int64.mk(65536, 0), - Caml_int64.mk(32768, 0), - Caml_int64.mk(16384, 0), - Caml_int64.mk(8192, 0), - Caml_int64.mk(4096, 0), - Caml_int64.mk(2048, 0), - Caml_int64.mk(1024, 0), - Caml_int64.mk(512, 0), - Caml_int64.mk(256, 0), - Caml_int64.mk(128, 0), - Caml_int64.mk(64, 0), - Caml_int64.mk(32, 0), - Caml_int64.mk(16, 0), - Caml_int64.mk(8, 0), - Caml_int64.mk(4, 0), - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(0, 1073741824), + /* @__PURE__ */Caml_int64.mk(0, 536870912), + /* @__PURE__ */Caml_int64.mk(0, 268435456), + /* @__PURE__ */Caml_int64.mk(0, 134217728), + /* @__PURE__ */Caml_int64.mk(0, 67108864), + /* @__PURE__ */Caml_int64.mk(0, 33554432), + /* @__PURE__ */Caml_int64.mk(0, 16777216), + /* @__PURE__ */Caml_int64.mk(0, 8388608), + /* @__PURE__ */Caml_int64.mk(0, 4194304), + /* @__PURE__ */Caml_int64.mk(0, 2097152), + /* @__PURE__ */Caml_int64.mk(0, 1048576), + /* @__PURE__ */Caml_int64.mk(0, 524288), + /* @__PURE__ */Caml_int64.mk(0, 262144), + /* @__PURE__ */Caml_int64.mk(0, 131072), + /* @__PURE__ */Caml_int64.mk(0, 65536), + /* @__PURE__ */Caml_int64.mk(0, 32768), + /* @__PURE__ */Caml_int64.mk(0, 16384), + /* @__PURE__ */Caml_int64.mk(0, 8192), + /* @__PURE__ */Caml_int64.mk(0, 4096), + /* @__PURE__ */Caml_int64.mk(0, 2048), + /* @__PURE__ */Caml_int64.mk(0, 1024), + /* @__PURE__ */Caml_int64.mk(0, 512), + /* @__PURE__ */Caml_int64.mk(0, 256), + /* @__PURE__ */Caml_int64.mk(0, 128), + /* @__PURE__ */Caml_int64.mk(0, 64), + /* @__PURE__ */Caml_int64.mk(0, 32), + /* @__PURE__ */Caml_int64.mk(0, 16), + /* @__PURE__ */Caml_int64.mk(0, 8), + /* @__PURE__ */Caml_int64.mk(0, 4), + /* @__PURE__ */Caml_int64.mk(0, 2), + /* @__PURE__ */Caml_int64.mk(0, 1), + /* @__PURE__ */Caml_int64.mk(-2147483648, 0), + /* @__PURE__ */Caml_int64.mk(1073741824, 0), + /* @__PURE__ */Caml_int64.mk(536870912, 0), + /* @__PURE__ */Caml_int64.mk(268435456, 0), + /* @__PURE__ */Caml_int64.mk(134217728, 0), + /* @__PURE__ */Caml_int64.mk(67108864, 0), + /* @__PURE__ */Caml_int64.mk(33554432, 0), + /* @__PURE__ */Caml_int64.mk(16777216, 0), + /* @__PURE__ */Caml_int64.mk(8388608, 0), + /* @__PURE__ */Caml_int64.mk(4194304, 0), + /* @__PURE__ */Caml_int64.mk(2097152, 0), + /* @__PURE__ */Caml_int64.mk(1048576, 0), + /* @__PURE__ */Caml_int64.mk(524288, 0), + /* @__PURE__ */Caml_int64.mk(262144, 0), + /* @__PURE__ */Caml_int64.mk(131072, 0), + /* @__PURE__ */Caml_int64.mk(65536, 0), + /* @__PURE__ */Caml_int64.mk(32768, 0), + /* @__PURE__ */Caml_int64.mk(16384, 0), + /* @__PURE__ */Caml_int64.mk(8192, 0), + /* @__PURE__ */Caml_int64.mk(4096, 0), + /* @__PURE__ */Caml_int64.mk(2048, 0), + /* @__PURE__ */Caml_int64.mk(1024, 0), + /* @__PURE__ */Caml_int64.mk(512, 0), + /* @__PURE__ */Caml_int64.mk(256, 0), + /* @__PURE__ */Caml_int64.mk(128, 0), + /* @__PURE__ */Caml_int64.mk(64, 0), + /* @__PURE__ */Caml_int64.mk(32, 0), + /* @__PURE__ */Caml_int64.mk(16, 0), + /* @__PURE__ */Caml_int64.mk(8, 0), + /* @__PURE__ */Caml_int64.mk(4, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), Caml_int64.one ]; @@ -300,7 +300,7 @@ var suites = Pervasives.$at({ return { TAG: /* Eq */0, _0: v, - _1: Caml_int64.mk(-2147483648, 0) + _1: /* @__PURE__ */Caml_int64.mk(-2147483648, 0) }; }) ], @@ -310,7 +310,7 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-2, 0), + _0: /* @__PURE__ */Caml_int64.mk(-2, 0), _1: Caml_int64.add(a, a) }; }) @@ -330,56 +330,56 @@ var suites = Pervasives.$at({ hd: [ "add_4", (function (param) { - return commutative_add(Caml_int64.mk(-2, -1), Caml_int64.mk(-3, -1), Caml_int64.one); + return commutative_add(/* @__PURE__ */Caml_int64.mk(-2, -1), /* @__PURE__ */Caml_int64.mk(-3, -1), Caml_int64.one); }) ], tl: { hd: [ "add_5", (function (param) { - return commutative_add(Caml_int64.mk(-3, -1), Caml_int64.mk(-3, -1), Caml_int64.zero); + return commutative_add(/* @__PURE__ */Caml_int64.mk(-3, -1), /* @__PURE__ */Caml_int64.mk(-3, -1), Caml_int64.zero); }) ], tl: { hd: [ "add_6", (function (param) { - return commutative_add(Caml_int64.mk(4, 0), Caml_int64.mk(-3, -1), Caml_int64.mk(7, 0)); + return commutative_add(/* @__PURE__ */Caml_int64.mk(4, 0), /* @__PURE__ */Caml_int64.mk(-3, -1), /* @__PURE__ */Caml_int64.mk(7, 0)); }) ], tl: { hd: [ "add_7", (function (param) { - return commutative_add(Caml_int64.mk(0, 1), Caml_int64.mk(-2147483648, 0), Caml_int64.mk(-2147483648, 0)); + return commutative_add(/* @__PURE__ */Caml_int64.mk(0, 1), /* @__PURE__ */Caml_int64.mk(-2147483648, 0), /* @__PURE__ */Caml_int64.mk(-2147483648, 0)); }) ], tl: { hd: [ "add_8", (function (param) { - return commutative_add(Caml_int64.mk(0, 1), Caml_int64.mk(-1, 0), Caml_int64.one); + return commutative_add(/* @__PURE__ */Caml_int64.mk(0, 1), /* @__PURE__ */Caml_int64.mk(-1, 0), Caml_int64.one); }) ], tl: { hd: [ "add_9", (function (param) { - return commutative_add(Caml_int64.mk(-1, 0), Caml_int64.mk(-2147483648, 0), Caml_int64.mk(2147483647, 0)); + return commutative_add(/* @__PURE__ */Caml_int64.mk(-1, 0), /* @__PURE__ */Caml_int64.mk(-2147483648, 0), /* @__PURE__ */Caml_int64.mk(2147483647, 0)); }) ], tl: { hd: [ "add_10", (function (param) { - return commutative_add(Caml_int64.mk(-2147483648, 0), Caml_int64.mk(-2147483648, 0), Caml_int64.zero); + return commutative_add(/* @__PURE__ */Caml_int64.mk(-2147483648, 0), /* @__PURE__ */Caml_int64.mk(-2147483648, 0), Caml_int64.zero); }) ], tl: { hd: [ "add_11", (function (param) { - return commutative_add(Caml_int64.mk(-1, 0), Caml_int64.mk(-1, 0), Caml_int64.zero); + return commutative_add(/* @__PURE__ */Caml_int64.mk(-1, 0), /* @__PURE__ */Caml_int64.mk(-1, 0), Caml_int64.zero); }) ], tl: { @@ -389,7 +389,7 @@ var suites = Pervasives.$at({ return { TAG: /* Eq */0, _0: 3, - _1: Caml_int64.to_int32(Caml_int64.mk(3, 0)) + _1: Caml_int64.to_int32(/* @__PURE__ */Caml_int64.mk(3, 0)) }; }) ], @@ -400,7 +400,7 @@ var suites = Pervasives.$at({ return { TAG: /* Eq */0, _0: 3, - _1: Caml_int64.to_int32(Caml_int64.mk(3, 0)) + _1: Caml_int64.to_int32(/* @__PURE__ */Caml_int64.mk(3, 0)) }; }) ], @@ -410,8 +410,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(3, 0), - _1: Caml_int64.mk(3, 0) + _0: /* @__PURE__ */Caml_int64.mk(3, 0), + _1: /* @__PURE__ */Caml_int64.mk(3, 0) }; }) ], @@ -421,8 +421,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-3, -1), - _1: Caml_int64.mk(-3, -1) + _0: /* @__PURE__ */Caml_int64.mk(-3, -1), + _1: /* @__PURE__ */Caml_int64.mk(-3, -1) }; }) ], @@ -432,8 +432,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-2, -1), - _1: Caml_int64.mk(-2, -1) + _0: /* @__PURE__ */Caml_int64.mk(-2, -1), + _1: /* @__PURE__ */Caml_int64.mk(-2, -1) }; }) ], @@ -465,8 +465,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(2, 0), - _1: Caml_int64.mk(2, 0) + _0: /* @__PURE__ */Caml_int64.mk(2, 0), + _1: /* @__PURE__ */Caml_int64.mk(2, 0) }; }) ], @@ -477,12 +477,12 @@ var suites = Pervasives.$at({ return { TAG: /* Eq */0, _0: [ - Caml_int64.mk(286331153, 0), - Caml_int64.xor(a, Caml_int64.mk(-285217025, 0)) + /* @__PURE__ */Caml_int64.mk(286331153, 0), + Caml_int64.xor(a, /* @__PURE__ */Caml_int64.mk(-285217025, 0)) ], _1: [ - Caml_int64.mk(286331153, 0), - Caml_int64.mk(-1862266624, 0) + /* @__PURE__ */Caml_int64.mk(286331153, 0), + /* @__PURE__ */Caml_int64.mk(-1862266624, 0) ] }; }) @@ -493,8 +493,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-1, 0), - _1: Caml_int64.mk(-1, 0) + _0: /* @__PURE__ */Caml_int64.mk(-1, 0), + _1: /* @__PURE__ */Caml_int64.mk(-1, 0) }; }) ], @@ -504,8 +504,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-286331154, 0), - _1: Caml_int64.mk(-286331154, 0) + _0: /* @__PURE__ */Caml_int64.mk(-286331154, 0), + _1: /* @__PURE__ */Caml_int64.mk(-286331154, 0) }; }) ], @@ -522,68 +522,68 @@ var suites = Pervasives.$at({ }))), _1: [ Caml_int64.one, - Caml_int64.mk(2, 0), - Caml_int64.mk(4, 0), - Caml_int64.mk(8, 0), - Caml_int64.mk(16, 0), - Caml_int64.mk(32, 0), - Caml_int64.mk(64, 0), - Caml_int64.mk(128, 0), - Caml_int64.mk(256, 0), - Caml_int64.mk(512, 0), - Caml_int64.mk(1024, 0), - Caml_int64.mk(2048, 0), - Caml_int64.mk(4096, 0), - Caml_int64.mk(8192, 0), - Caml_int64.mk(16384, 0), - Caml_int64.mk(32768, 0), - Caml_int64.mk(65536, 0), - Caml_int64.mk(131072, 0), - Caml_int64.mk(262144, 0), - Caml_int64.mk(524288, 0), - Caml_int64.mk(1048576, 0), - Caml_int64.mk(2097152, 0), - Caml_int64.mk(4194304, 0), - Caml_int64.mk(8388608, 0), - Caml_int64.mk(16777216, 0), - Caml_int64.mk(33554432, 0), - Caml_int64.mk(67108864, 0), - Caml_int64.mk(134217728, 0), - Caml_int64.mk(268435456, 0), - Caml_int64.mk(536870912, 0), - Caml_int64.mk(1073741824, 0), - Caml_int64.mk(-2147483648, 0), - Caml_int64.mk(0, 1), - Caml_int64.mk(0, 2), - Caml_int64.mk(0, 4), - Caml_int64.mk(0, 8), - Caml_int64.mk(0, 16), - Caml_int64.mk(0, 32), - Caml_int64.mk(0, 64), - Caml_int64.mk(0, 128), - Caml_int64.mk(0, 256), - Caml_int64.mk(0, 512), - Caml_int64.mk(0, 1024), - Caml_int64.mk(0, 2048), - Caml_int64.mk(0, 4096), - Caml_int64.mk(0, 8192), - Caml_int64.mk(0, 16384), - Caml_int64.mk(0, 32768), - Caml_int64.mk(0, 65536), - Caml_int64.mk(0, 131072), - Caml_int64.mk(0, 262144), - Caml_int64.mk(0, 524288), - Caml_int64.mk(0, 1048576), - Caml_int64.mk(0, 2097152), - Caml_int64.mk(0, 4194304), - Caml_int64.mk(0, 8388608), - Caml_int64.mk(0, 16777216), - Caml_int64.mk(0, 33554432), - Caml_int64.mk(0, 67108864), - Caml_int64.mk(0, 134217728), - Caml_int64.mk(0, 268435456), - Caml_int64.mk(0, 536870912), - Caml_int64.mk(0, 1073741824), + /* @__PURE__ */Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(4, 0), + /* @__PURE__ */Caml_int64.mk(8, 0), + /* @__PURE__ */Caml_int64.mk(16, 0), + /* @__PURE__ */Caml_int64.mk(32, 0), + /* @__PURE__ */Caml_int64.mk(64, 0), + /* @__PURE__ */Caml_int64.mk(128, 0), + /* @__PURE__ */Caml_int64.mk(256, 0), + /* @__PURE__ */Caml_int64.mk(512, 0), + /* @__PURE__ */Caml_int64.mk(1024, 0), + /* @__PURE__ */Caml_int64.mk(2048, 0), + /* @__PURE__ */Caml_int64.mk(4096, 0), + /* @__PURE__ */Caml_int64.mk(8192, 0), + /* @__PURE__ */Caml_int64.mk(16384, 0), + /* @__PURE__ */Caml_int64.mk(32768, 0), + /* @__PURE__ */Caml_int64.mk(65536, 0), + /* @__PURE__ */Caml_int64.mk(131072, 0), + /* @__PURE__ */Caml_int64.mk(262144, 0), + /* @__PURE__ */Caml_int64.mk(524288, 0), + /* @__PURE__ */Caml_int64.mk(1048576, 0), + /* @__PURE__ */Caml_int64.mk(2097152, 0), + /* @__PURE__ */Caml_int64.mk(4194304, 0), + /* @__PURE__ */Caml_int64.mk(8388608, 0), + /* @__PURE__ */Caml_int64.mk(16777216, 0), + /* @__PURE__ */Caml_int64.mk(33554432, 0), + /* @__PURE__ */Caml_int64.mk(67108864, 0), + /* @__PURE__ */Caml_int64.mk(134217728, 0), + /* @__PURE__ */Caml_int64.mk(268435456, 0), + /* @__PURE__ */Caml_int64.mk(536870912, 0), + /* @__PURE__ */Caml_int64.mk(1073741824, 0), + /* @__PURE__ */Caml_int64.mk(-2147483648, 0), + /* @__PURE__ */Caml_int64.mk(0, 1), + /* @__PURE__ */Caml_int64.mk(0, 2), + /* @__PURE__ */Caml_int64.mk(0, 4), + /* @__PURE__ */Caml_int64.mk(0, 8), + /* @__PURE__ */Caml_int64.mk(0, 16), + /* @__PURE__ */Caml_int64.mk(0, 32), + /* @__PURE__ */Caml_int64.mk(0, 64), + /* @__PURE__ */Caml_int64.mk(0, 128), + /* @__PURE__ */Caml_int64.mk(0, 256), + /* @__PURE__ */Caml_int64.mk(0, 512), + /* @__PURE__ */Caml_int64.mk(0, 1024), + /* @__PURE__ */Caml_int64.mk(0, 2048), + /* @__PURE__ */Caml_int64.mk(0, 4096), + /* @__PURE__ */Caml_int64.mk(0, 8192), + /* @__PURE__ */Caml_int64.mk(0, 16384), + /* @__PURE__ */Caml_int64.mk(0, 32768), + /* @__PURE__ */Caml_int64.mk(0, 65536), + /* @__PURE__ */Caml_int64.mk(0, 131072), + /* @__PURE__ */Caml_int64.mk(0, 262144), + /* @__PURE__ */Caml_int64.mk(0, 524288), + /* @__PURE__ */Caml_int64.mk(0, 1048576), + /* @__PURE__ */Caml_int64.mk(0, 2097152), + /* @__PURE__ */Caml_int64.mk(0, 4194304), + /* @__PURE__ */Caml_int64.mk(0, 8388608), + /* @__PURE__ */Caml_int64.mk(0, 16777216), + /* @__PURE__ */Caml_int64.mk(0, 33554432), + /* @__PURE__ */Caml_int64.mk(0, 67108864), + /* @__PURE__ */Caml_int64.mk(0, 134217728), + /* @__PURE__ */Caml_int64.mk(0, 268435456), + /* @__PURE__ */Caml_int64.mk(0, 536870912), + /* @__PURE__ */Caml_int64.mk(0, 1073741824), Caml_int64.min_int ] }; @@ -603,67 +603,67 @@ var suites = Pervasives.$at({ _1: [ Caml_int64.neg_one, Caml_int64.max_int, - Caml_int64.mk(-1, 1073741823), - Caml_int64.mk(-1, 536870911), - Caml_int64.mk(-1, 268435455), - Caml_int64.mk(-1, 134217727), - Caml_int64.mk(-1, 67108863), - Caml_int64.mk(-1, 33554431), - Caml_int64.mk(-1, 16777215), - Caml_int64.mk(-1, 8388607), - Caml_int64.mk(-1, 4194303), - Caml_int64.mk(-1, 2097151), - Caml_int64.mk(-1, 1048575), - Caml_int64.mk(-1, 524287), - Caml_int64.mk(-1, 262143), - Caml_int64.mk(-1, 131071), - Caml_int64.mk(-1, 65535), - Caml_int64.mk(-1, 32767), - Caml_int64.mk(-1, 16383), - Caml_int64.mk(-1, 8191), - Caml_int64.mk(-1, 4095), - Caml_int64.mk(-1, 2047), - Caml_int64.mk(-1, 1023), - Caml_int64.mk(-1, 511), - Caml_int64.mk(-1, 255), - Caml_int64.mk(-1, 127), - Caml_int64.mk(-1, 63), - Caml_int64.mk(-1, 31), - Caml_int64.mk(-1, 15), - Caml_int64.mk(-1, 7), - Caml_int64.mk(-1, 3), - Caml_int64.mk(-1, 1), - Caml_int64.mk(-1, 0), - Caml_int64.mk(2147483647, 0), - Caml_int64.mk(1073741823, 0), - Caml_int64.mk(536870911, 0), - Caml_int64.mk(268435455, 0), - Caml_int64.mk(134217727, 0), - Caml_int64.mk(67108863, 0), - Caml_int64.mk(33554431, 0), - Caml_int64.mk(16777215, 0), - Caml_int64.mk(8388607, 0), - Caml_int64.mk(4194303, 0), - Caml_int64.mk(2097151, 0), - Caml_int64.mk(1048575, 0), - Caml_int64.mk(524287, 0), - Caml_int64.mk(262143, 0), - Caml_int64.mk(131071, 0), - Caml_int64.mk(65535, 0), - Caml_int64.mk(32767, 0), - Caml_int64.mk(16383, 0), - Caml_int64.mk(8191, 0), - Caml_int64.mk(4095, 0), - Caml_int64.mk(2047, 0), - Caml_int64.mk(1023, 0), - Caml_int64.mk(511, 0), - Caml_int64.mk(255, 0), - Caml_int64.mk(127, 0), - Caml_int64.mk(63, 0), - Caml_int64.mk(31, 0), - Caml_int64.mk(15, 0), - Caml_int64.mk(7, 0), - Caml_int64.mk(3, 0), + /* @__PURE__ */Caml_int64.mk(-1, 1073741823), + /* @__PURE__ */Caml_int64.mk(-1, 536870911), + /* @__PURE__ */Caml_int64.mk(-1, 268435455), + /* @__PURE__ */Caml_int64.mk(-1, 134217727), + /* @__PURE__ */Caml_int64.mk(-1, 67108863), + /* @__PURE__ */Caml_int64.mk(-1, 33554431), + /* @__PURE__ */Caml_int64.mk(-1, 16777215), + /* @__PURE__ */Caml_int64.mk(-1, 8388607), + /* @__PURE__ */Caml_int64.mk(-1, 4194303), + /* @__PURE__ */Caml_int64.mk(-1, 2097151), + /* @__PURE__ */Caml_int64.mk(-1, 1048575), + /* @__PURE__ */Caml_int64.mk(-1, 524287), + /* @__PURE__ */Caml_int64.mk(-1, 262143), + /* @__PURE__ */Caml_int64.mk(-1, 131071), + /* @__PURE__ */Caml_int64.mk(-1, 65535), + /* @__PURE__ */Caml_int64.mk(-1, 32767), + /* @__PURE__ */Caml_int64.mk(-1, 16383), + /* @__PURE__ */Caml_int64.mk(-1, 8191), + /* @__PURE__ */Caml_int64.mk(-1, 4095), + /* @__PURE__ */Caml_int64.mk(-1, 2047), + /* @__PURE__ */Caml_int64.mk(-1, 1023), + /* @__PURE__ */Caml_int64.mk(-1, 511), + /* @__PURE__ */Caml_int64.mk(-1, 255), + /* @__PURE__ */Caml_int64.mk(-1, 127), + /* @__PURE__ */Caml_int64.mk(-1, 63), + /* @__PURE__ */Caml_int64.mk(-1, 31), + /* @__PURE__ */Caml_int64.mk(-1, 15), + /* @__PURE__ */Caml_int64.mk(-1, 7), + /* @__PURE__ */Caml_int64.mk(-1, 3), + /* @__PURE__ */Caml_int64.mk(-1, 1), + /* @__PURE__ */Caml_int64.mk(-1, 0), + /* @__PURE__ */Caml_int64.mk(2147483647, 0), + /* @__PURE__ */Caml_int64.mk(1073741823, 0), + /* @__PURE__ */Caml_int64.mk(536870911, 0), + /* @__PURE__ */Caml_int64.mk(268435455, 0), + /* @__PURE__ */Caml_int64.mk(134217727, 0), + /* @__PURE__ */Caml_int64.mk(67108863, 0), + /* @__PURE__ */Caml_int64.mk(33554431, 0), + /* @__PURE__ */Caml_int64.mk(16777215, 0), + /* @__PURE__ */Caml_int64.mk(8388607, 0), + /* @__PURE__ */Caml_int64.mk(4194303, 0), + /* @__PURE__ */Caml_int64.mk(2097151, 0), + /* @__PURE__ */Caml_int64.mk(1048575, 0), + /* @__PURE__ */Caml_int64.mk(524287, 0), + /* @__PURE__ */Caml_int64.mk(262143, 0), + /* @__PURE__ */Caml_int64.mk(131071, 0), + /* @__PURE__ */Caml_int64.mk(65535, 0), + /* @__PURE__ */Caml_int64.mk(32767, 0), + /* @__PURE__ */Caml_int64.mk(16383, 0), + /* @__PURE__ */Caml_int64.mk(8191, 0), + /* @__PURE__ */Caml_int64.mk(4095, 0), + /* @__PURE__ */Caml_int64.mk(2047, 0), + /* @__PURE__ */Caml_int64.mk(1023, 0), + /* @__PURE__ */Caml_int64.mk(511, 0), + /* @__PURE__ */Caml_int64.mk(255, 0), + /* @__PURE__ */Caml_int64.mk(127, 0), + /* @__PURE__ */Caml_int64.mk(63, 0), + /* @__PURE__ */Caml_int64.mk(31, 0), + /* @__PURE__ */Caml_int64.mk(15, 0), + /* @__PURE__ */Caml_int64.mk(7, 0), + /* @__PURE__ */Caml_int64.mk(3, 0), Caml_int64.one ] }; @@ -755,8 +755,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(6, 0), - _1: Caml_int64.mk(6, 0) + _0: /* @__PURE__ */Caml_int64.mk(6, 0), + _1: /* @__PURE__ */Caml_int64.mk(6, 0) }; }) ], @@ -772,7 +772,7 @@ var suites = Pervasives.$at({ ]), _1: [ Caml_int64.zero, - Caml_int64.mk(-2147483648, -1) + /* @__PURE__ */Caml_int64.mk(-2147483648, -1) ] }; }) @@ -783,8 +783,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-3, -1), - _1: Caml_int64.mk(-3, -1) + _0: /* @__PURE__ */Caml_int64.mk(-3, -1), + _1: /* @__PURE__ */Caml_int64.mk(-3, -1) }; }) ], @@ -794,8 +794,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(3, 0), - _1: Caml_int64.mk(3, 0) + _0: /* @__PURE__ */Caml_int64.mk(3, 0), + _1: /* @__PURE__ */Caml_int64.mk(3, 0) }; }) ], @@ -807,7 +807,7 @@ var suites = Pervasives.$at({ TAG: /* Eq */0, _0: $$Array.map(Caml_int64.to_int32, [ Caml_int64.zero, - Caml_int64.mk(-2147483648, 0) + /* @__PURE__ */Caml_int64.mk(-2147483648, 0) ]), _1: [ 0, @@ -833,9 +833,9 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.div_mod(Caml_int64.mk(7, 0), Caml_int64.mk(3, 0)), + _0: Caml_int64.div_mod(/* @__PURE__ */Caml_int64.mk(7, 0), /* @__PURE__ */Caml_int64.mk(3, 0)), _1: [ - Caml_int64.mk(2, 0), + /* @__PURE__ */Caml_int64.mk(2, 0), Caml_int64.one ] }; @@ -858,7 +858,7 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_obj.caml_compare(Caml_int64.mk(0, 1), Caml_int64.one) > 0, + _0: Caml_obj.caml_compare(/* @__PURE__ */Caml_int64.mk(0, 1), Caml_int64.one) > 0, _1: true }; }) @@ -869,8 +869,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-1, 0), - _1: Caml_int64.mk(-1, 0) + _0: /* @__PURE__ */Caml_int64.mk(-1, 0), + _1: /* @__PURE__ */Caml_int64.mk(-1, 0) }; }) ], @@ -880,7 +880,7 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_obj.caml_compare(Caml_int64.mk(-2147483648, 0), Caml_int64.one) > 0, + _0: Caml_obj.caml_compare(/* @__PURE__ */Caml_int64.mk(-2147483648, 0), Caml_int64.one) > 0, _1: true }; }) @@ -891,8 +891,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: Caml_int64.mk(-256, 0), - _1: Caml_int64.mk(-256, 0) + _0: /* @__PURE__ */Caml_int64.mk(-256, 0), + _1: /* @__PURE__ */Caml_int64.mk(-256, 0) }; }) ], @@ -902,8 +902,8 @@ var suites = Pervasives.$at({ (function (param) { return { TAG: /* Eq */0, - _0: fib(1000, Caml_int64.one, Caml_int64.mk(2, 0)), - _1: Caml_int64.mk(-1420443336, -1990564327) + _0: fib(1000, Caml_int64.one, /* @__PURE__ */Caml_int64.mk(2, 0)), + _1: /* @__PURE__ */Caml_int64.mk(-1420443336, -1990564327) }; }) ], @@ -914,7 +914,7 @@ var suites = Pervasives.$at({ return { TAG: /* Eq */0, _0: fac(30, Caml_int64.one), - _1: Caml_int64.mk(1409286144, -2040662563) + _1: /* @__PURE__ */Caml_int64.mk(1409286144, -2040662563) }; }) ], @@ -925,7 +925,7 @@ var suites = Pervasives.$at({ return { TAG: /* Eq */0, _0: Caml_int64.add(Int64.max_int, Int64.max_int), - _1: Caml_int64.mk(-2, -1) + _1: /* @__PURE__ */Caml_int64.mk(-2, -1) }; }) ], @@ -1089,37 +1089,37 @@ function id(loc, x) { } } -eq("File \"int64_test.ml\", line 202, characters 5-12", Caml_int64.bits_of_float(0.3), Caml_int64.mk(858993459, 1070805811)); +eq("File \"int64_test.ml\", line 202, characters 5-12", Caml_int64.bits_of_float(0.3), /* @__PURE__ */Caml_int64.mk(858993459, 1070805811)); -eq("File \"int64_test.ml\", line 203, characters 5-12", Caml_int64.float_of_bits(Caml_int64.mk(858993459, 1070805811)), 0.3); +eq("File \"int64_test.ml\", line 203, characters 5-12", Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(858993459, 1070805811)), 0.3); id("File \"int64_test.ml\", line 204, characters 5-12", Caml_int64.neg_one); -id("File \"int64_test.ml\", line 205, characters 5-12", Caml_int64.mk(-100, -1)); +id("File \"int64_test.ml\", line 205, characters 5-12", /* @__PURE__ */Caml_int64.mk(-100, -1)); -id("File \"int64_test.ml\", line 206, characters 5-12", Caml_int64.mk(-1, 0)); +id("File \"int64_test.ml\", line 206, characters 5-12", /* @__PURE__ */Caml_int64.mk(-1, 0)); -id("File \"int64_test.ml\", line 207, characters 5-12", Caml_int64.mk(536870911, 0)); +id("File \"int64_test.ml\", line 207, characters 5-12", /* @__PURE__ */Caml_int64.mk(536870911, 0)); -id("File \"int64_test.ml\", line 208, characters 5-12", Caml_int64.mk(536870655, 0)); +id("File \"int64_test.ml\", line 208, characters 5-12", /* @__PURE__ */Caml_int64.mk(536870655, 0)); -eq("File \"int64_test.ml\", line 209, characters 5-12", Caml_int64.div(Int64.min_int, Caml_int64.mk(10, 0)), Caml_int64.mk(858993460, -214748365)); +eq("File \"int64_test.ml\", line 209, characters 5-12", Caml_int64.div(Int64.min_int, /* @__PURE__ */Caml_int64.mk(10, 0)), /* @__PURE__ */Caml_int64.mk(858993460, -214748365)); -eq("File \"int64_test.ml\", line 210, characters 5-12", Caml_int64.to_string(Caml_int64.div(Int64.min_int, Caml_int64.mk(10, 0))), "-922337203685477580"); +eq("File \"int64_test.ml\", line 210, characters 5-12", Caml_int64.to_string(Caml_int64.div(Int64.min_int, /* @__PURE__ */Caml_int64.mk(10, 0))), "-922337203685477580"); -eq("File \"int64_test.ml\", line 211, characters 5-12", Caml_int64.mul(Int64.min_int, Caml_int64.mk(10, 0)), Caml_int64.zero); +eq("File \"int64_test.ml\", line 211, characters 5-12", Caml_int64.mul(Int64.min_int, /* @__PURE__ */Caml_int64.mk(10, 0)), Caml_int64.zero); -eq("File \"int64_test.ml\", line 212, characters 5-12", Caml_int64.mul(Caml_int64.mk(10, 0), Int64.min_int), Caml_int64.zero); +eq("File \"int64_test.ml\", line 212, characters 5-12", Caml_int64.mul(/* @__PURE__ */Caml_int64.mk(10, 0), Int64.min_int), Caml_int64.zero); eq("File \"int64_test.ml\", line 213, characters 5-12", Caml_int64.mul(Caml_int64.one, Int64.min_int), Int64.min_int); -eq("File \"int64_test.ml\", line 214, characters 5-12", Caml_int64.mul(Int64.max_int, Caml_int64.mk(10, 0)), Caml_int64.mk(-10, -1)); +eq("File \"int64_test.ml\", line 214, characters 5-12", Caml_int64.mul(Int64.max_int, /* @__PURE__ */Caml_int64.mk(10, 0)), /* @__PURE__ */Caml_int64.mk(-10, -1)); eq("File \"int64_test.ml\", line 215, characters 5-12", Caml_int64.succ(Int64.max_int), Int64.min_int); -eq("File \"int64_test.ml\", line 216, characters 5-12", Caml_int64.succ(Int64.min_int), Caml_int64.mk(1, -2147483648)); +eq("File \"int64_test.ml\", line 216, characters 5-12", Caml_int64.succ(Int64.min_int), /* @__PURE__ */Caml_int64.mk(1, -2147483648)); -eq("File \"int64_test.ml\", line 217, characters 5-12", Caml_int64.succ(Caml_int64.mk(-1, 0)), Caml_int64.mk(0, 1)); +eq("File \"int64_test.ml\", line 217, characters 5-12", Caml_int64.succ(/* @__PURE__ */Caml_int64.mk(-1, 0)), /* @__PURE__ */Caml_int64.mk(0, 1)); Mt.from_pair_suites("Int64_test", suites$1.contents); diff --git a/jscomp/test/internal_unused_test.js b/jscomp/test/internal_unused_test.js index bf3a24dc3b..dd9a22dff9 100644 --- a/jscomp/test/internal_unused_test.js +++ b/jscomp/test/internal_unused_test.js @@ -4,7 +4,7 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); console.log(3); -var A = Caml_exceptions.create("Internal_unused_test.P1.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Internal_unused_test.P1.A"); function f(param) { throw { diff --git a/jscomp/test/js_exception_catch_test.js b/jscomp/test/js_exception_catch_test.js index e31cfd035b..652303caa6 100644 --- a/jscomp/test/js_exception_catch_test.js +++ b/jscomp/test/js_exception_catch_test.js @@ -86,11 +86,11 @@ if (exit === 1) { })); } -var A = Caml_exceptions.create("Js_exception_catch_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Js_exception_catch_test.A"); -var B = Caml_exceptions.create("Js_exception_catch_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Js_exception_catch_test.B"); -var C = Caml_exceptions.create("Js_exception_catch_test.C"); +var C = /* @__PURE__ */Caml_exceptions.create("Js_exception_catch_test.C"); function test(f) { try { diff --git a/jscomp/test/large_record_duplication_test.js b/jscomp/test/large_record_duplication_test.js index a0d57854a1..b0bae02a77 100644 --- a/jscomp/test/large_record_duplication_test.js +++ b/jscomp/test/large_record_duplication_test.js @@ -22,7 +22,7 @@ function f0(x) { return newrecord; } -var Small = Caml_exceptions.create("Large_record_duplication_test.Small"); +var Small = /* @__PURE__ */Caml_exceptions.create("Large_record_duplication_test.Small"); function f_small(u) { if (u.RE_EXN_ID === Small) { @@ -145,7 +145,7 @@ function f2(x) { eq("File \"large_record_duplication_test.ml\", line 205, characters 6-13", get_x0$1(f2(v2)), 1); -var A0 = Caml_exceptions.create("Large_record_duplication_test.A0"); +var A0 = /* @__PURE__ */Caml_exceptions.create("Large_record_duplication_test.A0"); function f3(x) { if (x.RE_EXN_ID !== A0) { diff --git a/jscomp/test/local_exception_test.js b/jscomp/test/local_exception_test.js index 77ca458b6e..ae132b2b0d 100644 --- a/jscomp/test/local_exception_test.js +++ b/jscomp/test/local_exception_test.js @@ -2,7 +2,7 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var A = Caml_exceptions.create("Local_exception_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Local_exception_test.A"); var v = { RE_EXN_ID: A, @@ -10,13 +10,13 @@ var v = { _2: true }; -var B = Caml_exceptions.create("Local_exception_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Local_exception_test.B"); var u = { RE_EXN_ID: B }; -var D = Caml_exceptions.create("Local_exception_test.D"); +var D = /* @__PURE__ */Caml_exceptions.create("Local_exception_test.D"); var d = { RE_EXN_ID: D, diff --git a/jscomp/test/ocaml_parsetree_test.js b/jscomp/test/ocaml_parsetree_test.js index eb009ae8e9..2ebee2d8d4 100644 --- a/jscomp/test/ocaml_parsetree_test.js +++ b/jscomp/test/ocaml_parsetree_test.js @@ -67,7 +67,7 @@ var color = { contents: undefined }; -var Fatal_error = Caml_exceptions.create("Ocaml_parsetree_test.Misc.Fatal_error"); +var Fatal_error = /* @__PURE__ */Caml_exceptions.create("Ocaml_parsetree_test.Misc.Fatal_error"); function fatal_error(msg) { Pervasives.prerr_string(">> Fatal error: "); @@ -1254,7 +1254,7 @@ function print(ppf, w) { } -var Errors = Caml_exceptions.create("Ocaml_parsetree_test.Warnings.Errors"); +var Errors = /* @__PURE__ */Caml_exceptions.create("Ocaml_parsetree_test.Warnings.Errors"); var absname = { contents: false @@ -1985,7 +1985,7 @@ register_error_of_exn(function (msg) { } }); -var $$Error = Caml_exceptions.create("Ocaml_parsetree_test.Location.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Ocaml_parsetree_test.Location.Error"); register_error_of_exn(function (e) { if (e.RE_EXN_ID === $$Error) { @@ -3539,9 +3539,9 @@ var Ast_helper_Cf = { concrete: concrete }; -var $$Error$1 = Caml_exceptions.create("Ocaml_parsetree_test.Syntaxerr.Error"); +var $$Error$1 = /* @__PURE__ */Caml_exceptions.create("Ocaml_parsetree_test.Syntaxerr.Error"); -var Escape_error = Caml_exceptions.create("Ocaml_parsetree_test.Syntaxerr.Escape_error"); +var Escape_error = /* @__PURE__ */Caml_exceptions.create("Ocaml_parsetree_test.Syntaxerr.Escape_error"); function prepare_error(loc) { switch (loc.TAG | 0) { @@ -10711,7 +10711,7 @@ function string_of_type_directive(x) { } } -var $$Error$2 = Caml_exceptions.create("Ocaml_parsetree_test.Lexer.Error"); +var $$Error$2 = /* @__PURE__ */Caml_exceptions.create("Ocaml_parsetree_test.Lexer.Error"); function assert_same_type(lexbuf, x, y) { var lhs = type_of_directive(x); diff --git a/jscomp/test/ocaml_proto_test.js b/jscomp/test/ocaml_proto_test.js index 0d32f980b9..3e94ce7a95 100644 --- a/jscomp/test/ocaml_proto_test.js +++ b/jscomp/test/ocaml_proto_test.js @@ -370,7 +370,7 @@ function string_of_programmatic_error(e) { return "Programatic_error" + tmp; } -var Compilation_error = Caml_exceptions.create("Ocaml_proto_test.Exception.Compilation_error"); +var Compilation_error = /* @__PURE__ */Caml_exceptions.create("Ocaml_proto_test.Exception.Compilation_error"); function prepare_error(e) { if (typeof e === "number") { diff --git a/jscomp/test/ocaml_re_test.js b/jscomp/test/ocaml_re_test.js index 478838939f..2c9dbf79ca 100644 --- a/jscomp/test/ocaml_re_test.js +++ b/jscomp/test/ocaml_re_test.js @@ -3239,9 +3239,9 @@ function get(t, i) { return $$String.sub(t.s, p1, match[1] - p1 | 0); } -var Parse_error = Caml_exceptions.create("Parse_error"); +var Parse_error = /* @__PURE__ */Caml_exceptions.create("Parse_error"); -var Not_supported = Caml_exceptions.create("Not_supported"); +var Not_supported = /* @__PURE__ */Caml_exceptions.create("Not_supported"); function posix_class_of_string(class_) { switch (class_) { diff --git a/jscomp/test/ocaml_typedtree_test.js b/jscomp/test/ocaml_typedtree_test.js index cf3b685101..fab1a18802 100644 --- a/jscomp/test/ocaml_typedtree_test.js +++ b/jscomp/test/ocaml_typedtree_test.js @@ -157,7 +157,7 @@ var color = { contents: undefined }; -var Fatal_error = Caml_exceptions.create("Ocaml_typedtree_test.Misc.Fatal_error"); +var Fatal_error = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Misc.Fatal_error"); function fatal_error(msg) { Pervasives.prerr_string(">> Fatal error: "); @@ -1534,7 +1534,7 @@ function print(ppf, w) { } -var Errors = Caml_exceptions.create("Ocaml_typedtree_test.Warnings.Errors"); +var Errors = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Warnings.Errors"); var absname = { contents: false @@ -2281,7 +2281,7 @@ register_error_of_exn(function (msg) { } }); -var $$Error = Caml_exceptions.create("Ocaml_typedtree_test.Location.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Location.Error"); register_error_of_exn(function (e) { if (e.RE_EXN_ID === $$Error) { @@ -5598,7 +5598,7 @@ function backtrack(param) { return Caml_array.set(trail, 0, changes); } -var $$Error$1 = Caml_exceptions.create("Ocaml_typedtree_test.Cmi_format.Error"); +var $$Error$1 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Cmi_format.Error"); function input_cmi(ic) { var match = Caml_external_polyfill.resolve("caml_input_value")(ic); @@ -5794,7 +5794,7 @@ register_error_of_exn(function (err) { }); -var Inconsistency = Caml_exceptions.create("Ocaml_typedtree_test.Consistbl.Inconsistency"); +var Inconsistency = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Consistbl.Inconsistency"); function set$1(tbl, name, crc, source) { return Hashtbl.add(tbl, name, [ @@ -10312,7 +10312,7 @@ var used_constructors = Hashtbl.create(undefined, 16); var prefixed_sg = Hashtbl.create(undefined, 113); -var $$Error$2 = Caml_exceptions.create("Ocaml_typedtree_test.Env.Error"); +var $$Error$2 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Env.Error"); function force(f, x) { var x$1 = x.contents; @@ -11306,7 +11306,7 @@ function is_functor_arg(_path, env) { }; } -var Recmodule = Caml_exceptions.create("Ocaml_typedtree_test.Env.Recmodule"); +var Recmodule = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Env.Recmodule"); function lookup_module_descr(lid, env) { switch (lid.TAG | 0) { @@ -14756,9 +14756,9 @@ function from_pair_suites(name, suites) { Promise.resolve(undefined); -var $$Error$3 = Caml_exceptions.create("Ocaml_typedtree_test.Syntaxerr.Error"); +var $$Error$3 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Syntaxerr.Error"); -var Escape_error = Caml_exceptions.create("Ocaml_typedtree_test.Syntaxerr.Escape_error"); +var Escape_error = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Syntaxerr.Escape_error"); function prepare_error(loc) { switch (loc.TAG | 0) { @@ -21940,7 +21940,7 @@ function string_of_type_directive(x) { } } -var $$Error$4 = Caml_exceptions.create("Ocaml_typedtree_test.Lexer.Error"); +var $$Error$4 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Lexer.Error"); function assert_same_type(lexbuf, x, y) { var lhs = type_of_directive(x); @@ -26918,9 +26918,9 @@ function save_cmt(filename, modname, binary_annots, sourcefile, initial_env, sg) return clear(undefined); } -var Unify = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Unify"); +var Unify = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Unify"); -var Tags = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Tags"); +var Tags = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Tags"); register_error_of_exn(function (param) { if (param.RE_EXN_ID === Tags) { @@ -27000,13 +27000,13 @@ register_error_of_exn(function (param) { }); -var Subtype = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Subtype"); +var Subtype = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Subtype"); -var Cannot_expand = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Cannot_expand"); +var Cannot_expand = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Cannot_expand"); -var Recursive_abbrev = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Recursive_abbrev"); +var Recursive_abbrev = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Recursive_abbrev"); -var Unification_recursive_abbrev = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Unification_recursive_abbrev"); +var Unification_recursive_abbrev = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Unification_recursive_abbrev"); var current_level = { contents: 0 @@ -27833,7 +27833,7 @@ function filter_row_fields(erase, param) { } } -var Non_closed0 = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Non_closed0"); +var Non_closed0 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Non_closed0"); function closed_schema_rec(_ty) { while(true) { @@ -27893,7 +27893,7 @@ function closed_schema(ty) { } } -var Non_closed = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Non_closed"); +var Non_closed = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Non_closed"); var free_variables = { contents: /* [] */0 @@ -28096,7 +28096,7 @@ function closed_extension_constructor(ext) { } } -var CCFailure = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.CCFailure"); +var CCFailure = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.CCFailure"); function closed_class(params, sign) { var ty = object_fields(repr(sign.csig_self)); @@ -30113,7 +30113,7 @@ function is_contractive(env, ty) { } } -var Occur = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Occur"); +var Occur = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Occur"); function occur_rec(env, visited, ty0, ty) { if (ty === ty0) { @@ -35555,7 +35555,7 @@ function eqtype$1(rename, type_pairs, subst, env, t1, t2) { return eqtype(rename, type_pairs, subst, env, t1, t2); } -var Failure = Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Failure"); +var Failure = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Ctype.Failure"); function moregen_clty(trace, type_pairs, env, cty1, cty2) { try { @@ -48789,7 +48789,7 @@ function report_error$3(ppf, param) { }), include_err, param.hd, print_errs, param.tl); } -var Dont_match = Caml_exceptions.create("Ocaml_typedtree_test.Includecore.Dont_match"); +var Dont_match = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Includecore.Dont_match"); function private_flags(decl1, decl2) { var match = decl1.type_private; @@ -51134,7 +51134,7 @@ function remove_aliases$1(env, sg) { return remove_aliases(env, excl, sg); } -var $$Error$5 = Caml_exceptions.create("Ocaml_typedtree_test.Includemod.Error"); +var $$Error$5 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Includemod.Error"); function value_descriptions(env, cxt, subst, id, vd1, vd2) { record_value_dependency(vd1, vd2); @@ -51314,7 +51314,7 @@ function class_declarations$1(old_env, env, cxt, subst, id, decl1, decl2) { }; } -var Dont_match$1 = Caml_exceptions.create("Ocaml_typedtree_test.Includemod.Dont_match"); +var Dont_match$1 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Includemod.Dont_match"); function may_expand_module_path(env, path) { try { @@ -54048,7 +54048,7 @@ function compats(_ps, _qs) { }; } -var Empty = Caml_exceptions.create("Ocaml_typedtree_test.Parmatch.Empty"); +var Empty = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Parmatch.Empty"); function clean_copy(ty) { if (ty.level === 100000000) { @@ -58035,7 +58035,7 @@ function initial_matrix(_param) { }; } -var NoGuard = Caml_exceptions.create("Ocaml_typedtree_test.Parmatch.NoGuard"); +var NoGuard = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Parmatch.NoGuard"); function initial_all(no_guard, param) { if (param) { @@ -58622,11 +58622,11 @@ function check_partial(param, param$1) { return check_partial_param(do_check_partial_normal, do_check_fragile_normal, param, param$1); } -var Already_bound = Caml_exceptions.create("Ocaml_typedtree_test.Typetexp.Already_bound"); +var Already_bound = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typetexp.Already_bound"); -var $$Error$6 = Caml_exceptions.create("Ocaml_typedtree_test.Typetexp.Error"); +var $$Error$6 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typetexp.Error"); -var Error_forward = Caml_exceptions.create("Ocaml_typedtree_test.Typetexp.Error_forward"); +var Error_forward = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typetexp.Error_forward"); function string_of_payload(param) { switch (param.TAG | 0) { @@ -61590,9 +61590,9 @@ register_error_of_exn(function (err) { }), err._3); }); -var $$Error$7 = Caml_exceptions.create("Ocaml_typedtree_test.Typecore.Error"); +var $$Error$7 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typecore.Error"); -var Error_forward$1 = Caml_exceptions.create("Ocaml_typedtree_test.Typecore.Error_forward"); +var Error_forward$1 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typecore.Error_forward"); var type_module = { contents: (function (env, md) { @@ -71859,7 +71859,7 @@ register_error_of_exn(function (err) { add_delayed_check_forward.contents = add_delayed_check; -var $$Error$8 = Caml_exceptions.create("Ocaml_typedtree_test.Typedecl.Error"); +var $$Error$8 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typedecl.Error"); function enter_type$1(env, sdecl, id) { var match = sdecl.ptype_manifest; @@ -76377,9 +76377,9 @@ register_error_of_exn(function (param) { }); -var $$Error$9 = Caml_exceptions.create("Ocaml_typedtree_test.Typeclass.Error"); +var $$Error$9 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typeclass.Error"); -var Error_forward$2 = Caml_exceptions.create("Ocaml_typedtree_test.Typeclass.Error_forward"); +var Error_forward$2 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typeclass.Error_forward"); function ctyp(desc, typ, env, loc) { return { @@ -81213,9 +81213,9 @@ register_error_of_exn(function (err) { }), err._3); }); -var $$Error$10 = Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Error"); +var $$Error$10 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Error"); -var Error_forward$3 = Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Error_forward"); +var Error_forward$3 = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Error_forward"); function fst3(param) { return param[0]; @@ -83244,7 +83244,7 @@ function simplify_signature(sg) { return aux(sg)[0]; } -var Not_a_path = Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Not_a_path"); +var Not_a_path = /* @__PURE__ */Caml_exceptions.create("Ocaml_typedtree_test.Typemod.Not_a_path"); function path_of_module(_mexp) { while(true) { diff --git a/jscomp/test/parser_api.js b/jscomp/test/parser_api.js index 6931dd8029..1cb3efae64 100644 --- a/jscomp/test/parser_api.js +++ b/jscomp/test/parser_api.js @@ -771,7 +771,7 @@ var Clflags = { color: color }; -var Fatal_error = Caml_exceptions.create("Parser_api.Misc.Fatal_error"); +var Fatal_error = /* @__PURE__ */Caml_exceptions.create("Parser_api.Misc.Fatal_error"); function fatal_error(msg) { Pervasives.prerr_string(">> Fatal error: "); @@ -2711,7 +2711,7 @@ function super_print(message, ppf, w) { } -var Errors = Caml_exceptions.create("Parser_api.Warnings.Errors"); +var Errors = /* @__PURE__ */Caml_exceptions.create("Parser_api.Warnings.Errors"); function check_fatal(param) { if (nerrors.contents <= 0) { @@ -4083,7 +4083,7 @@ function report_exception(ppf, exn) { }; } -var $$Error = Caml_exceptions.create("Parser_api.Location.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Parser_api.Location.Error"); register_error_of_exn(function (e) { if (e.RE_EXN_ID === $$Error) { @@ -6578,9 +6578,9 @@ var Ast_helper = { Cstr: Cstr }; -var $$Error$1 = Caml_exceptions.create("Parser_api.Syntaxerr.Error"); +var $$Error$1 = /* @__PURE__ */Caml_exceptions.create("Parser_api.Syntaxerr.Error"); -var Escape_error = Caml_exceptions.create("Parser_api.Syntaxerr.Escape_error"); +var Escape_error = /* @__PURE__ */Caml_exceptions.create("Parser_api.Syntaxerr.Escape_error"); function prepare_error(loc) { switch (loc.TAG | 0) { @@ -13812,7 +13812,7 @@ function string_of_type_directive(x) { } } -var $$Error$2 = Caml_exceptions.create("Parser_api.Lexer.Error"); +var $$Error$2 = /* @__PURE__ */Caml_exceptions.create("Parser_api.Lexer.Error"); function assert_same_type(lexbuf, x, y) { var lhs = type_of_directive(x); diff --git a/jscomp/test/pq_test.js b/jscomp/test/pq_test.js index 06fb2a4f56..0da4bdfadb 100644 --- a/jscomp/test/pq_test.js +++ b/jscomp/test/pq_test.js @@ -32,7 +32,7 @@ function insert(queue, prio, elt) { } } -var Queue_is_empty = Caml_exceptions.create("Pq_test.PrioQueue.Queue_is_empty"); +var Queue_is_empty = /* @__PURE__ */Caml_exceptions.create("Pq_test.PrioQueue.Queue_is_empty"); function remove_top(param) { if (param) { diff --git a/jscomp/test/printf_sim.js b/jscomp/test/printf_sim.js index 3d21348245..10fd5d009f 100644 --- a/jscomp/test/printf_sim.js +++ b/jscomp/test/printf_sim.js @@ -17,7 +17,7 @@ Curry._1(Printf.printf(/* Format */{ } }, _1: "%Ld\n" - }), Caml_int64.mk(32, 0)); + }), /* @__PURE__ */Caml_int64.mk(32, 0)); Printf.printf(/* Format */{ _0: { diff --git a/jscomp/test/queue_402.js b/jscomp/test/queue_402.js index f416ad7b2f..f9461cd01b 100644 --- a/jscomp/test/queue_402.js +++ b/jscomp/test/queue_402.js @@ -4,7 +4,7 @@ var Curry = require("../../lib/js/curry.js"); var Caml_obj = require("../../lib/js/caml_obj.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var Empty = Caml_exceptions.create("Queue_402.Empty"); +var Empty = /* @__PURE__ */Caml_exceptions.create("Queue_402.Empty"); function create(param) { return { diff --git a/jscomp/test/random_test.js b/jscomp/test/random_test.js index a837a8692d..b187b76d0d 100644 --- a/jscomp/test/random_test.js +++ b/jscomp/test/random_test.js @@ -60,7 +60,7 @@ Mt_global.collect_eq(id, suites, "File \"random_test.ml\", line 26, characters 5 var f = Random.int64(Int64.max_int); -var h = Random.int64(Caml_int64.mk(3, 0)); +var h = Random.int64(/* @__PURE__ */Caml_int64.mk(3, 0)); var vv = Random.bits(undefined); diff --git a/jscomp/test/rebind_module.js b/jscomp/test/rebind_module.js index b4b9863555..2d874d4266 100644 --- a/jscomp/test/rebind_module.js +++ b/jscomp/test/rebind_module.js @@ -2,9 +2,9 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var A = Caml_exceptions.create("Rebind_module.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Rebind_module.A"); -var AA = Caml_exceptions.create("Rebind_module.AA"); +var AA = /* @__PURE__ */Caml_exceptions.create("Rebind_module.AA"); exports.A = A; exports.AA = AA; diff --git a/jscomp/test/record_debug_test.js b/jscomp/test/record_debug_test.js index 5e80248cdb..c83520e1b7 100644 --- a/jscomp/test/record_debug_test.js +++ b/jscomp/test/record_debug_test.js @@ -36,9 +36,9 @@ var u = { b: u_b }; -var A = Caml_exceptions.create("Record_debug_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Record_debug_test.A"); -var B = Caml_exceptions.create("Record_debug_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Record_debug_test.B"); var v0 = { RE_EXN_ID: A, diff --git a/jscomp/test/record_extension_test.js b/jscomp/test/record_extension_test.js index b7b4ddb8fb..2af2d4ece7 100644 --- a/jscomp/test/record_extension_test.js +++ b/jscomp/test/record_extension_test.js @@ -18,7 +18,7 @@ function eq(loc, x, y) { return Mt.eq_suites(test_id, suites, loc, x, y); } -var Inline_record = Caml_exceptions.create("Record_extension_test.Inline_record"); +var Inline_record = /* @__PURE__ */Caml_exceptions.create("Record_extension_test.Inline_record"); function f(x) { if (x.RE_EXN_ID === Inline_record) { @@ -55,11 +55,11 @@ function f2_with(x) { } } -var A = Caml_exceptions.create("Record_extension_test.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Record_extension_test.A"); -var B = Caml_exceptions.create("Record_extension_test.B"); +var B = /* @__PURE__ */Caml_exceptions.create("Record_extension_test.B"); -var C = Caml_exceptions.create("Record_extension_test.C"); +var C = /* @__PURE__ */Caml_exceptions.create("Record_extension_test.C"); function u(f) { try { diff --git a/jscomp/test/scanf_test.js b/jscomp/test/scanf_test.js index 856741efa4..e4a35fe027 100644 --- a/jscomp/test/scanf_test.js +++ b/jscomp/test/scanf_test.js @@ -57,7 +57,7 @@ eq("File \"scanf_test.ml\", line 7, characters 5-12", [ }), (function (i) { return i; })), - Caml_int64.mk(235324607, -1429646511) + /* @__PURE__ */Caml_int64.mk(235324607, -1429646511) ]); Mt.from_pair_suites("Scanf_test", suites.contents); diff --git a/jscomp/test/set_gen.js b/jscomp/test/set_gen.js index 9d08e001e0..57d82e6ca9 100644 --- a/jscomp/test/set_gen.js +++ b/jscomp/test/set_gen.js @@ -193,9 +193,9 @@ function max_int_2(a, b) { } } -var Height_invariant_broken = Caml_exceptions.create("Set_gen.Height_invariant_broken"); +var Height_invariant_broken = /* @__PURE__ */Caml_exceptions.create("Set_gen.Height_invariant_broken"); -var Height_diff_borken = Caml_exceptions.create("Set_gen.Height_diff_borken"); +var Height_diff_borken = /* @__PURE__ */Caml_exceptions.create("Set_gen.Height_diff_borken"); function check_height_and_diff(param) { if (!param) { diff --git a/jscomp/test/stream_parser_test.js b/jscomp/test/stream_parser_test.js index fc95381459..87cdcf1b5c 100644 --- a/jscomp/test/stream_parser_test.js +++ b/jscomp/test/stream_parser_test.js @@ -8,7 +8,7 @@ var Stream = require("../../lib/js/stream.js"); var Caml_int32 = require("../../lib/js/caml_int32.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var Parse_error = Caml_exceptions.create("Stream_parser_test.Parse_error"); +var Parse_error = /* @__PURE__ */Caml_exceptions.create("Stream_parser_test.Parse_error"); function parse(token) { var look_ahead = { diff --git a/jscomp/test/test_common.js b/jscomp/test/test_common.js index 4ec59364f0..03ab81179e 100644 --- a/jscomp/test/test_common.js +++ b/jscomp/test/test_common.js @@ -2,9 +2,9 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var U = Caml_exceptions.create("Test_common.U"); +var U = /* @__PURE__ */Caml_exceptions.create("Test_common.U"); -var H = Caml_exceptions.create("Test_common.H"); +var H = /* @__PURE__ */Caml_exceptions.create("Test_common.H"); exports.U = U; exports.H = H; diff --git a/jscomp/test/test_exception.js b/jscomp/test/test_exception.js index fd227225b9..8eb5013ea7 100644 --- a/jscomp/test/test_exception.js +++ b/jscomp/test/test_exception.js @@ -3,7 +3,7 @@ var Test_common = require("./test_common.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var Local = Caml_exceptions.create("Test_exception.Local"); +var Local = /* @__PURE__ */Caml_exceptions.create("Test_exception.Local"); function f(param) { throw { @@ -43,7 +43,7 @@ function xx(param) { }; } -var Nullary = Caml_exceptions.create("Test_exception.Nullary"); +var Nullary = /* @__PURE__ */Caml_exceptions.create("Test_exception.Nullary"); var a = { RE_EXN_ID: Nullary diff --git a/jscomp/test/test_exception_escape.js b/jscomp/test/test_exception_escape.js index c86891792a..f3c2f4b9d5 100644 --- a/jscomp/test/test_exception_escape.js +++ b/jscomp/test/test_exception_escape.js @@ -2,7 +2,7 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var A = Caml_exceptions.create("Test_exception_escape.N.A"); +var A = /* @__PURE__ */Caml_exceptions.create("Test_exception_escape.N.A"); var f; diff --git a/jscomp/test/test_literal.js b/jscomp/test/test_literal.js index 1d96a21f68..118d837e42 100644 --- a/jscomp/test/test_literal.js +++ b/jscomp/test/test_literal.js @@ -2,7 +2,7 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var Custom_inline = Caml_exceptions.create("Test_literal.Custom_inline"); +var Custom_inline = /* @__PURE__ */Caml_exceptions.create("Test_literal.Custom_inline"); var v = { RE_EXN_ID: Custom_inline, diff --git a/jscomp/test/test_per.js b/jscomp/test/test_per.js index 4e369a554d..20a8866965 100644 --- a/jscomp/test/test_per.js +++ b/jscomp/test/test_per.js @@ -28,7 +28,7 @@ function invalid_arg(s) { }; } -var Exit = Caml_exceptions.create("Test_per.Exit"); +var Exit = /* @__PURE__ */Caml_exceptions.create("Test_per.Exit"); function min(x, y) { if (Caml_obj.caml_lessequal(x, y)) { @@ -60,17 +60,17 @@ function lnot(x) { var min_int = -2147483648; -var infinity = Caml_int64.float_of_bits(Caml_int64.mk(0, 2146435072)); +var infinity = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(0, 2146435072)); -var neg_infinity = Caml_int64.float_of_bits(Caml_int64.mk(0, -1048576)); +var neg_infinity = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(0, -1048576)); -var nan = Caml_int64.float_of_bits(Caml_int64.mk(1, 2146435072)); +var nan = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(1, 2146435072)); -var max_float = Caml_int64.float_of_bits(Caml_int64.mk(-1, 2146435071)); +var max_float = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(-1, 2146435071)); -var min_float = Caml_int64.float_of_bits(Caml_int64.mk(0, 1048576)); +var min_float = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(0, 1048576)); -var epsilon_float = Caml_int64.float_of_bits(Caml_int64.mk(0, 1018167296)); +var epsilon_float = Caml_int64.float_of_bits(/* @__PURE__ */Caml_int64.mk(0, 1018167296)); function $caret(s1, s2) { var l1 = s1.length; diff --git a/jscomp/test/test_seq.js b/jscomp/test/test_seq.js index 6087c4ca38..f922f86d98 100644 --- a/jscomp/test/test_seq.js +++ b/jscomp/test/test_seq.js @@ -6,11 +6,11 @@ var Pervasives = require("../../lib/js/pervasives.js"); var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); var Caml_js_exceptions = require("../../lib/js/caml_js_exceptions.js"); -var Bad = Caml_exceptions.create("Test_seq.Bad"); +var Bad = /* @__PURE__ */Caml_exceptions.create("Test_seq.Bad"); -var Help = Caml_exceptions.create("Test_seq.Help"); +var Help = /* @__PURE__ */Caml_exceptions.create("Test_seq.Help"); -var Stop = Caml_exceptions.create("Test_seq.Stop"); +var Stop = /* @__PURE__ */Caml_exceptions.create("Test_seq.Stop"); function assoc3(x, _l) { while(true) { diff --git a/jscomp/test/test_static_catch_ident.js b/jscomp/test/test_static_catch_ident.js index 4d6bc6ebe2..c067eab23a 100644 --- a/jscomp/test/test_static_catch_ident.js +++ b/jscomp/test/test_static_catch_ident.js @@ -2,7 +2,7 @@ var Caml_exceptions = require("../../lib/js/caml_exceptions.js"); -var Scan_failure = Caml_exceptions.create("Test_static_catch_ident.Scan_failure"); +var Scan_failure = /* @__PURE__ */Caml_exceptions.create("Test_static_catch_ident.Scan_failure"); function scanf_bad_input(ib, x) { var s; diff --git a/jscomp/test/topsort_test.js b/jscomp/test/topsort_test.js index 5b9acdd804..49617c47ca 100644 --- a/jscomp/test/topsort_test.js +++ b/jscomp/test/topsort_test.js @@ -1436,7 +1436,7 @@ var String_set = { of_list: of_list }; -var Cycle = Caml_exceptions.create("Topsort_test.Cycle"); +var Cycle = /* @__PURE__ */Caml_exceptions.create("Topsort_test.Cycle"); function pathsort(graph) { var visited = { diff --git a/jscomp/test/tscanf_test.js b/jscomp/test/tscanf_test.js index e6aaf45baa..f5c4fde7ab 100644 --- a/jscomp/test/tscanf_test.js +++ b/jscomp/test/tscanf_test.js @@ -4822,7 +4822,7 @@ function test53(param) { _3: /* End_of_format */0 }, _1: "%Ld" - }), id), Caml_int64.mk(123, 0))) { + }), id), /* @__PURE__ */Caml_int64.mk(123, 0))) { return Curry._1(Scanf.sscanf("124", /* Format */{ _0: { TAG: /* Int64 */7, @@ -4833,7 +4833,7 @@ function test53(param) { }, _1: "%Ld" }), (function (i) { - return Caml_int64.eq(Caml_int64.sub(i, Caml_int64.one), Caml_int64.mk(123, 0)); + return Caml_int64.eq(Caml_int64.sub(i, Caml_int64.one), /* @__PURE__ */Caml_int64.mk(123, 0)); })); } else { return false; diff --git a/jscomp/test/variant.js b/jscomp/test/variant.js index 681f493f77..37e71ec556 100644 --- a/jscomp/test/variant.js +++ b/jscomp/test/variant.js @@ -101,15 +101,15 @@ function rollback_path(subst, p) { } } -var EA1 = Caml_exceptions.create("Variant.EA1"); +var EA1 = /* @__PURE__ */Caml_exceptions.create("Variant.EA1"); -var EA2 = Caml_exceptions.create("Variant.EA2"); +var EA2 = /* @__PURE__ */Caml_exceptions.create("Variant.EA2"); -var EB = Caml_exceptions.create("Variant.EB"); +var EB = /* @__PURE__ */Caml_exceptions.create("Variant.EB"); -var EC = Caml_exceptions.create("Variant.EC"); +var EC = /* @__PURE__ */Caml_exceptions.create("Variant.EC"); -var ED = Caml_exceptions.create("Variant.ED"); +var ED = /* @__PURE__ */Caml_exceptions.create("Variant.ED"); function fooExn(f) { try { diff --git a/lib/4.06.1/bsb.ml b/lib/4.06.1/bsb.ml index 637cceab9d..242c137d49 100644 --- a/lib/4.06.1/bsb.ml +++ b/lib/4.06.1/bsb.ml @@ -5372,6 +5372,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Ext_path : sig #1 "ext_path.mli" diff --git a/lib/4.06.1/bsb_helper.ml b/lib/4.06.1/bsb_helper.ml index 97a1d77b0f..06d4dff8d6 100644 --- a/lib/4.06.1/bsb_helper.ml +++ b/lib/4.06.1/bsb_helper.ml @@ -1341,6 +1341,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Bsb_db_decode : sig #1 "bsb_db_decode.mli" diff --git a/lib/4.06.1/unstable/all_ounit_tests.ml b/lib/4.06.1/unstable/all_ounit_tests.ml index 10bb490351..bb11442232 100644 --- a/lib/4.06.1/unstable/all_ounit_tests.ml +++ b/lib/4.06.1/unstable/all_ounit_tests.ml @@ -6147,6 +6147,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Bsb_db_decode : sig #1 "bsb_db_decode.mli" diff --git a/lib/4.06.1/unstable/bspack.ml b/lib/4.06.1/unstable/bspack.ml index a212d52572..b4ec3c9291 100644 --- a/lib/4.06.1/unstable/bspack.ml +++ b/lib/4.06.1/unstable/bspack.ml @@ -10931,6 +10931,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Ext_path : sig #1 "ext_path.mli" diff --git a/lib/4.06.1/unstable/js_compiler.ml b/lib/4.06.1/unstable/js_compiler.ml index 545089701f..95e0c79ca3 100644 --- a/lib/4.06.1/unstable/js_compiler.ml +++ b/lib/4.06.1/unstable/js_compiler.ml @@ -8206,6 +8206,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Ext_namespace_encode : sig #1 "ext_namespace_encode.mli" @@ -87609,6 +87610,12 @@ val runtime_call : t list -> (* args *) t +val pure_runtime_call : + string -> (* module_name *) + string -> (* fn_name *) + t list -> (* args *) + t + val runtime_ref : string -> string -> @@ -88041,6 +88048,11 @@ let runtime_call ?comment module_name fn_name args = ~info:Js_call_info.builtin_runtime_call (runtime_var_dot module_name fn_name) args +let pure_runtime_call module_name fn_name args = + call ~comment:Literals.pure + ~info:Js_call_info.builtin_runtime_call + (runtime_var_dot module_name fn_name) args + let runtime_ref module_name fn_name = runtime_var_dot module_name fn_name @@ -107258,7 +107270,7 @@ let of_const (v : Int64.t) = | -9223372036854775808L -> E.runtime_var_dot Js_runtime_modules.int64 "min_int" | _ -> - E.runtime_call Js_runtime_modules.int64 "mk" + E.pure_runtime_call Js_runtime_modules.int64 "mk" [ E.int (Int64.to_int32 v ); E.int (Int64.to_int32 (Int64.shift_right v 32)) @@ -109062,7 +109074,7 @@ module E = Js_exp_make about the correctness of inlining more difficult *) let make exception_str : J.expression = - E.runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] + E.pure_runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] diff --git a/lib/4.06.1/unstable/js_refmt_compiler.ml b/lib/4.06.1/unstable/js_refmt_compiler.ml index 0286aea4ff..21c3e50994 100644 --- a/lib/4.06.1/unstable/js_refmt_compiler.ml +++ b/lib/4.06.1/unstable/js_refmt_compiler.ml @@ -8206,6 +8206,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Ext_namespace_encode : sig #1 "ext_namespace_encode.mli" @@ -87609,6 +87610,12 @@ val runtime_call : t list -> (* args *) t +val pure_runtime_call : + string -> (* module_name *) + string -> (* fn_name *) + t list -> (* args *) + t + val runtime_ref : string -> string -> @@ -88041,6 +88048,11 @@ let runtime_call ?comment module_name fn_name args = ~info:Js_call_info.builtin_runtime_call (runtime_var_dot module_name fn_name) args +let pure_runtime_call module_name fn_name args = + call ~comment:Literals.pure + ~info:Js_call_info.builtin_runtime_call + (runtime_var_dot module_name fn_name) args + let runtime_ref module_name fn_name = runtime_var_dot module_name fn_name @@ -107258,7 +107270,7 @@ let of_const (v : Int64.t) = | -9223372036854775808L -> E.runtime_var_dot Js_runtime_modules.int64 "min_int" | _ -> - E.runtime_call Js_runtime_modules.int64 "mk" + E.pure_runtime_call Js_runtime_modules.int64 "mk" [ E.int (Int64.to_int32 v ); E.int (Int64.to_int32 (Int64.shift_right v 32)) @@ -109062,7 +109074,7 @@ module E = Js_exp_make about the correctness of inlining more difficult *) let make exception_str : J.expression = - E.runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] + E.pure_runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] diff --git a/lib/4.06.1/whole_compiler.ml b/lib/4.06.1/whole_compiler.ml index b6277e9b4a..309648abd6 100644 --- a/lib/4.06.1/whole_compiler.ml +++ b/lib/4.06.1/whole_compiler.ml @@ -297661,6 +297661,7 @@ let tl = "tl" let lazy_done = "LAZY_DONE" let lazy_val = "VAL" +let pure = "@__PURE__" end module Ext_namespace_encode : sig #1 "ext_namespace_encode.mli" @@ -377528,6 +377529,12 @@ val runtime_call : t list -> (* args *) t +val pure_runtime_call : + string -> (* module_name *) + string -> (* fn_name *) + t list -> (* args *) + t + val runtime_ref : string -> string -> @@ -377960,6 +377967,11 @@ let runtime_call ?comment module_name fn_name args = ~info:Js_call_info.builtin_runtime_call (runtime_var_dot module_name fn_name) args +let pure_runtime_call module_name fn_name args = + call ~comment:Literals.pure + ~info:Js_call_info.builtin_runtime_call + (runtime_var_dot module_name fn_name) args + let runtime_ref module_name fn_name = runtime_var_dot module_name fn_name @@ -389752,7 +389764,7 @@ let of_const (v : Int64.t) = | -9223372036854775808L -> E.runtime_var_dot Js_runtime_modules.int64 "min_int" | _ -> - E.runtime_call Js_runtime_modules.int64 "mk" + E.pure_runtime_call Js_runtime_modules.int64 "mk" [ E.int (Int64.to_int32 v ); E.int (Int64.to_int32 (Int64.shift_right v 32)) @@ -391468,7 +391480,7 @@ module E = Js_exp_make about the correctness of inlining more difficult *) let make exception_str : J.expression = - E.runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] + E.pure_runtime_call Js_runtime_modules.exceptions Literals.create [exception_str] diff --git a/lib/es6/arg.mjs b/lib/es6/arg.mjs index 9bd89d54fb..513688a76e 100644 --- a/lib/es6/arg.mjs +++ b/lib/es6/arg.mjs @@ -18,11 +18,11 @@ import * as Caml_exceptions from "./caml_exceptions.mjs"; import * as Caml_js_exceptions from "./caml_js_exceptions.mjs"; import * as Caml_external_polyfill from "./caml_external_polyfill.mjs"; -var Bad = Caml_exceptions.create("Arg.Bad"); +var Bad = /* @__PURE__ */Caml_exceptions.create("Arg.Bad"); -var Help = Caml_exceptions.create("Arg.Help"); +var Help = /* @__PURE__ */Caml_exceptions.create("Arg.Help"); -var Stop = Caml_exceptions.create("Arg.Stop"); +var Stop = /* @__PURE__ */Caml_exceptions.create("Arg.Stop"); function assoc3(x, _l) { while(true) { diff --git a/lib/es6/array.mjs b/lib/es6/array.mjs index 20600d2c7f..da482ac6a5 100644 --- a/lib/es6/array.mjs +++ b/lib/es6/array.mjs @@ -295,7 +295,7 @@ function memq(x, a) { }; } -var Bottom = Caml_exceptions.create("Array.Bottom"); +var Bottom = /* @__PURE__ */Caml_exceptions.create("Array.Bottom"); function sort(cmp, a) { var maxson = function (l, i) { diff --git a/lib/es6/caml_format.mjs b/lib/es6/caml_format.mjs index 1fb1c96ff9..9e0c2f13df 100644 --- a/lib/es6/caml_format.mjs +++ b/lib/es6/caml_format.mjs @@ -195,13 +195,13 @@ function caml_int64_of_string(s) { var threshold; switch (hbase) { case /* Oct */0 : - threshold = Caml_int64.mk(-1, 536870911); + threshold = /* @__PURE__ */Caml_int64.mk(-1, 536870911); break; case /* Hex */1 : - threshold = Caml_int64.mk(-1, 268435455); + threshold = /* @__PURE__ */Caml_int64.mk(-1, 268435455); break; case /* Dec */2 : - threshold = Caml_int64.mk(-1717986919, 429496729); + threshold = /* @__PURE__ */Caml_int64.mk(-1717986919, 429496729); break; case /* Bin */3 : threshold = Caml_int64.max_int; @@ -246,7 +246,7 @@ function caml_int64_of_string(s) { }; var res = Caml_int64.mul(sign, aux(d, i + 1 | 0)); var or_res = Caml_int64.or_(res, Caml_int64.zero); - if (Caml_int64.eq(base, Caml_int64.mk(10, 0)) && Caml_int64.neq(res, or_res)) { + if (Caml_int64.eq(base, /* @__PURE__ */Caml_int64.mk(10, 0)) && Caml_int64.neq(res, or_res)) { throw { RE_EXN_ID: "Failure", _1: "int64_of_string", @@ -553,22 +553,22 @@ function dec_of_pos_int64(x) { if (!Caml_int64.lt(x, Caml_int64.zero)) { return Caml_int64.to_string(x); } - var wbase = Caml_int64.mk(10, 0); + var wbase = /* @__PURE__ */Caml_int64.mk(10, 0); var y = Caml_int64.discard_sign(x); var match = Caml_int64.div_mod(y, wbase); - var match$1 = Caml_int64.div_mod(Caml_int64.add(Caml_int64.mk(8, 0), match[1]), wbase); - var quotient = Caml_int64.add(Caml_int64.add(Caml_int64.mk(-858993460, 214748364), match[0]), match$1[0]); + var match$1 = Caml_int64.div_mod(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(8, 0), match[1]), wbase); + var quotient = Caml_int64.add(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(-858993460, 214748364), match[0]), match$1[0]); return Caml_int64.to_string(quotient) + "0123456789"[Caml_int64.to_int32(match$1[1])]; } function oct_of_int64(x) { var s = ""; - var wbase = Caml_int64.mk(8, 0); + var wbase = /* @__PURE__ */Caml_int64.mk(8, 0); var cvtbl = "01234567"; if (Caml_int64.lt(x, Caml_int64.zero)) { var y = Caml_int64.discard_sign(x); var match = Caml_int64.div_mod(y, wbase); - var quotient = Caml_int64.add(Caml_int64.mk(0, 268435456), match[0]); + var quotient = Caml_int64.add(/* @__PURE__ */Caml_int64.mk(0, 268435456), match[0]); var modulus = match[1]; s = cvtbl[Caml_int64.to_int32(modulus)] + s; while(Caml_int64.neq(quotient, Caml_int64.zero)) { diff --git a/lib/es6/caml_js_exceptions.mjs b/lib/es6/caml_js_exceptions.mjs index d883727f52..2a4bd9e812 100644 --- a/lib/es6/caml_js_exceptions.mjs +++ b/lib/es6/caml_js_exceptions.mjs @@ -3,7 +3,7 @@ import * as Caml_option from "./caml_option.mjs"; import * as Caml_exceptions from "./caml_exceptions.mjs"; -var $$Error = Caml_exceptions.create("Caml_js_exceptions.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Caml_js_exceptions.Error"); function internalToOCamlException(e) { if (Caml_exceptions.caml_is_extension(e)) { diff --git a/lib/es6/camlinternalFormat.mjs b/lib/es6/camlinternalFormat.mjs index 48ef88a325..09b2742213 100644 --- a/lib/es6/camlinternalFormat.mjs +++ b/lib/es6/camlinternalFormat.mjs @@ -2112,7 +2112,7 @@ function fmtty_of_precision_fmtty(prec, fmtty) { } } -var Type_mismatch = Caml_exceptions.create("CamlinternalFormat.Type_mismatch"); +var Type_mismatch = /* @__PURE__ */Caml_exceptions.create("CamlinternalFormat.Type_mismatch"); function type_padding(pad, fmtty) { if (typeof pad === "number") { diff --git a/lib/es6/camlinternalLazy.mjs b/lib/es6/camlinternalLazy.mjs index 06b4855f68..7a741b8abb 100644 --- a/lib/es6/camlinternalLazy.mjs +++ b/lib/es6/camlinternalLazy.mjs @@ -6,7 +6,7 @@ function is_val(l) { return l.LAZY_DONE; } -var Undefined = Caml_exceptions.create("CamlinternalLazy.Undefined"); +var Undefined = /* @__PURE__ */Caml_exceptions.create("CamlinternalLazy.Undefined"); function forward_with_closure(blk, closure) { var result = closure(); diff --git a/lib/es6/format.mjs b/lib/es6/format.mjs index 3ff78a867a..dc5efd6b00 100644 --- a/lib/es6/format.mjs +++ b/lib/es6/format.mjs @@ -29,7 +29,7 @@ function add_queue(x, q) { } -var Empty_queue = Caml_exceptions.create("Format.Empty_queue"); +var Empty_queue = /* @__PURE__ */Caml_exceptions.create("Format.Empty_queue"); function peek_queue(param) { var match = param.body; diff --git a/lib/es6/parsing.mjs b/lib/es6/parsing.mjs index 024d171acf..325f702519 100644 --- a/lib/es6/parsing.mjs +++ b/lib/es6/parsing.mjs @@ -9,9 +9,9 @@ import * as Caml_parser from "./caml_parser.mjs"; import * as Caml_exceptions from "./caml_exceptions.mjs"; import * as Caml_js_exceptions from "./caml_js_exceptions.mjs"; -var YYexit = Caml_exceptions.create("Parsing.YYexit"); +var YYexit = /* @__PURE__ */Caml_exceptions.create("Parsing.YYexit"); -var Parse_error = Caml_exceptions.create("Parsing.Parse_error"); +var Parse_error = /* @__PURE__ */Caml_exceptions.create("Parsing.Parse_error"); var env = { s_stack: Caml_array.caml_make_vect(100, 0), diff --git a/lib/es6/pervasives.mjs b/lib/es6/pervasives.mjs index 6cf2223c0d..e842606b64 100644 --- a/lib/es6/pervasives.mjs +++ b/lib/es6/pervasives.mjs @@ -26,7 +26,7 @@ function invalid_arg(s) { }; } -var Exit = Caml_exceptions.create("Pervasives.Exit"); +var Exit = /* @__PURE__ */Caml_exceptions.create("Pervasives.Exit"); function abs(x) { if (x >= 0) { diff --git a/lib/es6/queue.mjs b/lib/es6/queue.mjs index 3ae61e4569..efc62fddf3 100644 --- a/lib/es6/queue.mjs +++ b/lib/es6/queue.mjs @@ -3,7 +3,7 @@ import * as Curry from "./curry.mjs"; import * as Caml_exceptions from "./caml_exceptions.mjs"; -var Empty = Caml_exceptions.create("Queue.Empty"); +var Empty = /* @__PURE__ */Caml_exceptions.create("Queue.Empty"); function create(param) { return { diff --git a/lib/es6/scanf.mjs b/lib/es6/scanf.mjs index 0e21aabd85..a0b719cfa0 100644 --- a/lib/es6/scanf.mjs +++ b/lib/es6/scanf.mjs @@ -272,7 +272,7 @@ function memo_from_ic(scan_close_ic, ic) { } } -var Scan_failure = Caml_exceptions.create("Scanf.Scan_failure"); +var Scan_failure = /* @__PURE__ */Caml_exceptions.create("Scanf.Scan_failure"); function bad_input_escape(c) { var s = Curry._1(Printf.sprintf(/* Format */{ diff --git a/lib/es6/stack.mjs b/lib/es6/stack.mjs index d3b37ea057..0aa72b58ab 100644 --- a/lib/es6/stack.mjs +++ b/lib/es6/stack.mjs @@ -3,7 +3,7 @@ import * as List from "./list.mjs"; import * as Caml_exceptions from "./caml_exceptions.mjs"; -var Empty = Caml_exceptions.create("Stack.Empty"); +var Empty = /* @__PURE__ */Caml_exceptions.create("Stack.Empty"); function create(param) { return { diff --git a/lib/es6/stream.mjs b/lib/es6/stream.mjs index 9b1feaefdc..862bbb32a0 100644 --- a/lib/es6/stream.mjs +++ b/lib/es6/stream.mjs @@ -9,9 +9,9 @@ import * as Caml_string from "./caml_string.mjs"; import * as Caml_exceptions from "./caml_exceptions.mjs"; import * as CamlinternalLazy from "./camlinternalLazy.mjs"; -var Failure = Caml_exceptions.create("Stream.Failure"); +var Failure = /* @__PURE__ */Caml_exceptions.create("Stream.Failure"); -var $$Error = Caml_exceptions.create("Stream.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Stream.Error"); function count(param) { if (param !== undefined) { diff --git a/lib/es6/sys.mjs b/lib/es6/sys.mjs index f012a0e01d..823f3ccef6 100644 --- a/lib/es6/sys.mjs +++ b/lib/es6/sys.mjs @@ -33,7 +33,7 @@ function set_signal(sig_num, sig_beh) { } -var Break = Caml_exceptions.create("Sys.Break"); +var Break = /* @__PURE__ */Caml_exceptions.create("Sys.Break"); function catch_break(on) { diff --git a/lib/js/arg.js b/lib/js/arg.js index 451992a033..0d3c9b146a 100644 --- a/lib/js/arg.js +++ b/lib/js/arg.js @@ -18,11 +18,11 @@ var Caml_exceptions = require("./caml_exceptions.js"); var Caml_js_exceptions = require("./caml_js_exceptions.js"); var Caml_external_polyfill = require("./caml_external_polyfill.js"); -var Bad = Caml_exceptions.create("Arg.Bad"); +var Bad = /* @__PURE__ */Caml_exceptions.create("Arg.Bad"); -var Help = Caml_exceptions.create("Arg.Help"); +var Help = /* @__PURE__ */Caml_exceptions.create("Arg.Help"); -var Stop = Caml_exceptions.create("Arg.Stop"); +var Stop = /* @__PURE__ */Caml_exceptions.create("Arg.Stop"); function assoc3(x, _l) { while(true) { diff --git a/lib/js/array.js b/lib/js/array.js index 3d4e36fed6..74e7727cc0 100644 --- a/lib/js/array.js +++ b/lib/js/array.js @@ -295,7 +295,7 @@ function memq(x, a) { }; } -var Bottom = Caml_exceptions.create("Array.Bottom"); +var Bottom = /* @__PURE__ */Caml_exceptions.create("Array.Bottom"); function sort(cmp, a) { var maxson = function (l, i) { diff --git a/lib/js/caml_format.js b/lib/js/caml_format.js index 9d2669ee48..29464f6323 100644 --- a/lib/js/caml_format.js +++ b/lib/js/caml_format.js @@ -195,13 +195,13 @@ function caml_int64_of_string(s) { var threshold; switch (hbase) { case /* Oct */0 : - threshold = Caml_int64.mk(-1, 536870911); + threshold = /* @__PURE__ */Caml_int64.mk(-1, 536870911); break; case /* Hex */1 : - threshold = Caml_int64.mk(-1, 268435455); + threshold = /* @__PURE__ */Caml_int64.mk(-1, 268435455); break; case /* Dec */2 : - threshold = Caml_int64.mk(-1717986919, 429496729); + threshold = /* @__PURE__ */Caml_int64.mk(-1717986919, 429496729); break; case /* Bin */3 : threshold = Caml_int64.max_int; @@ -246,7 +246,7 @@ function caml_int64_of_string(s) { }; var res = Caml_int64.mul(sign, aux(d, i + 1 | 0)); var or_res = Caml_int64.or_(res, Caml_int64.zero); - if (Caml_int64.eq(base, Caml_int64.mk(10, 0)) && Caml_int64.neq(res, or_res)) { + if (Caml_int64.eq(base, /* @__PURE__ */Caml_int64.mk(10, 0)) && Caml_int64.neq(res, or_res)) { throw { RE_EXN_ID: "Failure", _1: "int64_of_string", @@ -553,22 +553,22 @@ function dec_of_pos_int64(x) { if (!Caml_int64.lt(x, Caml_int64.zero)) { return Caml_int64.to_string(x); } - var wbase = Caml_int64.mk(10, 0); + var wbase = /* @__PURE__ */Caml_int64.mk(10, 0); var y = Caml_int64.discard_sign(x); var match = Caml_int64.div_mod(y, wbase); - var match$1 = Caml_int64.div_mod(Caml_int64.add(Caml_int64.mk(8, 0), match[1]), wbase); - var quotient = Caml_int64.add(Caml_int64.add(Caml_int64.mk(-858993460, 214748364), match[0]), match$1[0]); + var match$1 = Caml_int64.div_mod(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(8, 0), match[1]), wbase); + var quotient = Caml_int64.add(Caml_int64.add(/* @__PURE__ */Caml_int64.mk(-858993460, 214748364), match[0]), match$1[0]); return Caml_int64.to_string(quotient) + "0123456789"[Caml_int64.to_int32(match$1[1])]; } function oct_of_int64(x) { var s = ""; - var wbase = Caml_int64.mk(8, 0); + var wbase = /* @__PURE__ */Caml_int64.mk(8, 0); var cvtbl = "01234567"; if (Caml_int64.lt(x, Caml_int64.zero)) { var y = Caml_int64.discard_sign(x); var match = Caml_int64.div_mod(y, wbase); - var quotient = Caml_int64.add(Caml_int64.mk(0, 268435456), match[0]); + var quotient = Caml_int64.add(/* @__PURE__ */Caml_int64.mk(0, 268435456), match[0]); var modulus = match[1]; s = cvtbl[Caml_int64.to_int32(modulus)] + s; while(Caml_int64.neq(quotient, Caml_int64.zero)) { diff --git a/lib/js/caml_js_exceptions.js b/lib/js/caml_js_exceptions.js index cfee3070fc..11ea7a904a 100644 --- a/lib/js/caml_js_exceptions.js +++ b/lib/js/caml_js_exceptions.js @@ -3,7 +3,7 @@ var Caml_option = require("./caml_option.js"); var Caml_exceptions = require("./caml_exceptions.js"); -var $$Error = Caml_exceptions.create("Caml_js_exceptions.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Caml_js_exceptions.Error"); function internalToOCamlException(e) { if (Caml_exceptions.caml_is_extension(e)) { diff --git a/lib/js/camlinternalFormat.js b/lib/js/camlinternalFormat.js index ecc10d1b6a..ccce539c95 100644 --- a/lib/js/camlinternalFormat.js +++ b/lib/js/camlinternalFormat.js @@ -2112,7 +2112,7 @@ function fmtty_of_precision_fmtty(prec, fmtty) { } } -var Type_mismatch = Caml_exceptions.create("CamlinternalFormat.Type_mismatch"); +var Type_mismatch = /* @__PURE__ */Caml_exceptions.create("CamlinternalFormat.Type_mismatch"); function type_padding(pad, fmtty) { if (typeof pad === "number") { diff --git a/lib/js/camlinternalLazy.js b/lib/js/camlinternalLazy.js index fa8a0e5371..f812859e83 100644 --- a/lib/js/camlinternalLazy.js +++ b/lib/js/camlinternalLazy.js @@ -6,7 +6,7 @@ function is_val(l) { return l.LAZY_DONE; } -var Undefined = Caml_exceptions.create("CamlinternalLazy.Undefined"); +var Undefined = /* @__PURE__ */Caml_exceptions.create("CamlinternalLazy.Undefined"); function forward_with_closure(blk, closure) { var result = closure(); diff --git a/lib/js/format.js b/lib/js/format.js index 8849fa1d36..2911c02598 100644 --- a/lib/js/format.js +++ b/lib/js/format.js @@ -29,7 +29,7 @@ function add_queue(x, q) { } -var Empty_queue = Caml_exceptions.create("Format.Empty_queue"); +var Empty_queue = /* @__PURE__ */Caml_exceptions.create("Format.Empty_queue"); function peek_queue(param) { var match = param.body; diff --git a/lib/js/parsing.js b/lib/js/parsing.js index ba0632e046..664e54af29 100644 --- a/lib/js/parsing.js +++ b/lib/js/parsing.js @@ -9,9 +9,9 @@ var Caml_parser = require("./caml_parser.js"); var Caml_exceptions = require("./caml_exceptions.js"); var Caml_js_exceptions = require("./caml_js_exceptions.js"); -var YYexit = Caml_exceptions.create("Parsing.YYexit"); +var YYexit = /* @__PURE__ */Caml_exceptions.create("Parsing.YYexit"); -var Parse_error = Caml_exceptions.create("Parsing.Parse_error"); +var Parse_error = /* @__PURE__ */Caml_exceptions.create("Parsing.Parse_error"); var env = { s_stack: Caml_array.caml_make_vect(100, 0), diff --git a/lib/js/pervasives.js b/lib/js/pervasives.js index 76c9cdb249..096471d73b 100644 --- a/lib/js/pervasives.js +++ b/lib/js/pervasives.js @@ -26,7 +26,7 @@ function invalid_arg(s) { }; } -var Exit = Caml_exceptions.create("Pervasives.Exit"); +var Exit = /* @__PURE__ */Caml_exceptions.create("Pervasives.Exit"); function abs(x) { if (x >= 0) { diff --git a/lib/js/queue.js b/lib/js/queue.js index 8471c4226a..c4b9ac2d3a 100644 --- a/lib/js/queue.js +++ b/lib/js/queue.js @@ -3,7 +3,7 @@ var Curry = require("./curry.js"); var Caml_exceptions = require("./caml_exceptions.js"); -var Empty = Caml_exceptions.create("Queue.Empty"); +var Empty = /* @__PURE__ */Caml_exceptions.create("Queue.Empty"); function create(param) { return { diff --git a/lib/js/scanf.js b/lib/js/scanf.js index 84ee9dc3f5..24cec71a75 100644 --- a/lib/js/scanf.js +++ b/lib/js/scanf.js @@ -272,7 +272,7 @@ function memo_from_ic(scan_close_ic, ic) { } } -var Scan_failure = Caml_exceptions.create("Scanf.Scan_failure"); +var Scan_failure = /* @__PURE__ */Caml_exceptions.create("Scanf.Scan_failure"); function bad_input_escape(c) { var s = Curry._1(Printf.sprintf(/* Format */{ diff --git a/lib/js/stack.js b/lib/js/stack.js index e08766fa33..fcc68973fe 100644 --- a/lib/js/stack.js +++ b/lib/js/stack.js @@ -3,7 +3,7 @@ var List = require("./list.js"); var Caml_exceptions = require("./caml_exceptions.js"); -var Empty = Caml_exceptions.create("Stack.Empty"); +var Empty = /* @__PURE__ */Caml_exceptions.create("Stack.Empty"); function create(param) { return { diff --git a/lib/js/stream.js b/lib/js/stream.js index 743f63aac5..4884982578 100644 --- a/lib/js/stream.js +++ b/lib/js/stream.js @@ -9,9 +9,9 @@ var Caml_string = require("./caml_string.js"); var Caml_exceptions = require("./caml_exceptions.js"); var CamlinternalLazy = require("./camlinternalLazy.js"); -var Failure = Caml_exceptions.create("Stream.Failure"); +var Failure = /* @__PURE__ */Caml_exceptions.create("Stream.Failure"); -var $$Error = Caml_exceptions.create("Stream.Error"); +var $$Error = /* @__PURE__ */Caml_exceptions.create("Stream.Error"); function count(param) { if (param !== undefined) { diff --git a/lib/js/sys.js b/lib/js/sys.js index 6ec8ca7d9c..2749254948 100644 --- a/lib/js/sys.js +++ b/lib/js/sys.js @@ -33,7 +33,7 @@ function set_signal(sig_num, sig_beh) { } -var Break = Caml_exceptions.create("Sys.Break"); +var Break = /* @__PURE__ */Caml_exceptions.create("Sys.Break"); function catch_break(on) {