diff --git a/implementation-contributed/curation_logs/stress.md b/implementation-contributed/curation_logs/stress.md index b984ea2cd3a31b09647c67c9419975ab6271fab2..d5ac0b5568dcbf4eed253a8f7d27b87ed92f12ca 100644 --- a/implementation-contributed/curation_logs/stress.md +++ b/implementation-contributed/curation_logs/stress.md @@ -17,4 +17,90 @@ - set-*.js / map-*.js / weakmap-set-*.js / weakset-*.js: - Test static return values for before and after adding an item in an WeakSet. - zero-to-string.js: - - Number#toString is not checked over literal numbers but number objects only. \ No newline at end of file + - Number#toString is not checked over literal numbers but number objects only. + +- assign-argument-in-inlined-call.js + - No coverage for fn_name.arguments going to inner scopes. +- assignment-in-function-call-bracket-node.js + - Tests obj computer propety names containing expressions that evaluates to `null`. +- async-arrow-function-in-class-heritage.js + - Tests class heritage failing with arrow functions (no constructor). Might have coverage, not found yet. +- async-arrow-functions-*.js + - No tests checking for lexical arguments/new.target/etc in async arrow functions + - Async arrow functions needs some refactoring +- inferred-names.js + - Needs to add tests for multiple anonymous fn forms, verify the .name property is properly set + - Web Compat fix: https://github.com/Microsoft/ChakraCore/issues/3407 +- builtin-function-is-construct-type-none.js + - Add a forEach test with a new.target call + - Extend it to other methods + - > + "Built-in Function Objects + + ... + Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. When a built-in constructor is called as part of a new expression the argumentsList parameter of the invoked [[Construct]] internal method provides the values for the built-in constructor's named parameters. + + Built-in functions that are not constructors do not have a prototype property unless otherwise specified in the description of a particular function." +- builtin-function-length.js + - Add length property check for function forms in the language folder +- computed-accessor.js / computed-accessor-parsing.js + - Review the coverage of test/language/computed-property-names + - good to use the test generation tool to create cases to be reused for objects and classes, etc + - should check type coercion as well, using composed objects too +- completion-value.js + - v8: add tests for completion value resolution in try/catch/finally blocks (anything returning -2) + - `eval('99; do { -99; try { 42 } catch (e) { -1 } finally { -2; break; -3 }; } while (false);')` + - `eval('99; do { -99; try { [].x.x } catch (e) { 42; } finally { -2; break; -3 }; } while (false);')` + - `eval('99; do { -99; try { 42 } catch (e) { -1 } finally { -2; break; -3 }; -77 } while (false);')` + - `eval('99; do { -99; try { [].x.x } catch (e) { 42; } finally { -2; break; -3 }; -77 } while (false);')` + - `eval('99; do { -99; try { 42 } catch (e) { -1 } finally { -2; continue; -3 }; } while (false);')` + - `eval('99; do { -99; try { [].x.x } catch (e) { 42; } finally { -2; continue; -3 }; } while (false);')` + - `eval('99; do { -99; try { 42 } catch (e) { -1 } finally { -2; continue; -3 }; -77 } while (false);')` + - `eval('99; do { -99; try { [].x.x } catch (e) { 42; } finally { -2; continue; -3 }; -77 } while (false);')` + - expected: 42 + - actual: -2 + - sm cases are already covered +- concat-append-one-with-sparse-array.js + - Append a small value in a very long array - not any specific part of the specs to check - test is slow but maybe worth considering? +- create-subclass-structure-may-throw-exception-when-getting-prototype.js + - tests are inconsistent in different engines + - verify this on the usage for Reflect.construct +- custom-iterators.js + - it would be interesting to create templates and cases for iteration over objects. Using Symbol.iterator (and Symbol.asyncIterator) in for-of loops, for-of-await loops, Array.from, etc etc etc + - The examples in that test file would be interesting to create __iterator like__ objects + - ChakraCore is apparently reporting of a wrong error constructor +- custom-prototype-may-be-same-to-original-one.js + - Tests that Reflect.constructor can use a custom prototype with the same reference for the original one +- error-description-on-symbols-should-not-crash.js + - Symbols are not callable... +- exception-in-to-property-key-should-be-handled-early-in-object-methods.js + - Review coverage for Object#hasOwnProperty, add coercions for the this value +- function-caller-*.js + - Verify .caller behavior for nested functions, retrieving the function body. + - Results are diverging from JSC (abrupt completion) to other engines (no error) +- global-environment-does-not-trap-unscopables.js + - duplicate `language/with/binding-blocked-by-unscopables.js` to assert binding block of the global in inner scopes, deferring references to the local scope. +- ignore-promise-species.js + - add coverage for Promise.all and race handling a local `@@species` +- modify-set-during-iteration.js + - Add coverage for iterating Set/Map/WeakSet/WeakMap objects with values being changed during the iteration. (e.g. for-of loops) +- module-namespace-access*js + - review these tests for import() +- private-name-as-anonymous-builtin.js + - Review name property for the executor functions in Promise.resolve calls +- regress-187006.js + - check if we have coverage for regexp `match` setting array values. +- regress-179634.js + - review coverage for Object.defineProperties +- regress-170732.js + - review coverage for valid and invalid await expressions +- regress-159883.js + - review common forms for invalid dates +- regress-189317.js + - AnnexB defineGetter/Setter being used with built-in functions + - cross engine errors +- string-to-string-error.js / string-value-of-error.js + - Needs coverage for the this value in `String#toString` and `String#valueOf` + - Also verify with ordinary objects containing toPrimitive methods. +- reserved-word-with-escape.js + - Add coverage for checking reserved names - mostly `var` - as global variables, using escape sequences. diff --git a/implementation-contributed/javascriptcore/stress/IIFE-es6-default-parameters.js b/implementation-contributed/javascriptcore/stress/IIFE-es6-default-parameters.js deleted file mode 100644 index 113bd76f78b0c69da391b8f30112677cc815500b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/IIFE-es6-default-parameters.js +++ /dev/null @@ -1,35 +0,0 @@ - -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -for (var i = 0; i < 1000; i++) { - - ;(function foo(x = 20) { - assert(typeof foo === "function"); - })(); - - ;(function foo(x = 20) { - function bar() { return foo; } - assert(typeof foo === "function"); - })(); - - ;(function foo(x = foo) { - var foo = 20; - assert(foo === 20); - assert(typeof x === "function"); - })(); - - ;(function foo(capFoo = function() { return foo; }) { - var foo = 20; - assert(foo === 20); - assert(typeof capFoo() === "function"); - })(); - - ;(function foo(x = eval("foo")) { - var foo = 20; - assert(foo === 20); - assert(typeof x === "function"); - })(); -} diff --git a/implementation-contributed/javascriptcore/stress/IIFE-function-name-captured.js b/implementation-contributed/javascriptcore/stress/IIFE-function-name-captured.js deleted file mode 100644 index 9b0722c2062d79b06e1d21b3186eaf0942dcc7ba..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/IIFE-function-name-captured.js +++ /dev/null @@ -1,38 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -for (var i = 0; i < 1000; i++) { - ;(function foo() { - foo = 20; - assert(foo !== 20); - assert(typeof foo === "function"); - })(); - - ;(function foo() { - var bar = function() { return foo; } - foo = 20; - assert(foo !== 20); - assert(bar() !== 20); - assert(typeof foo === "function"); - assert(typeof bar() === "function"); - })(); - - ;(function foo() { - eval("foo = 20;"); - assert(foo !== 20); - assert(typeof foo === "function"); - })(); - - ;(function foo() { - eval("var foo = 20;"); - assert(foo === 20); - })(); - - ;(function foo() { - "use strict"; - assert(foo !== 20); - assert(typeof foo === "function"); - })(); -} diff --git a/implementation-contributed/javascriptcore/stress/JSON-parse-should-cache-array-lengths.js b/implementation-contributed/javascriptcore/stress/JSON-parse-should-cache-array-lengths.js deleted file mode 100644 index d04163dbeee5d6a61eec2829601e94e988528ade..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/JSON-parse-should-cache-array-lengths.js +++ /dev/null @@ -1,100 +0,0 @@ -// This test should not hang, and should call the reviver function the expected number of times. - -function shouldBe(actualExpr, expectedExpr) { - function toString(x) { - return "" + x; - } - - let actual = eval(actualExpr); - let expected = eval(expectedExpr); - if (typeof actual != typeof expected) - throw Error("expected type " + typeof expected + " actual type " + typeof actual); - if (toString(actual) != toString(expected)) - throw Error("expected: " + expected + " actual: " + actual); -} - -let result; -let visited; - -function test(parseString, clearLength) { - visited = []; - var result = JSON.parse(parseString, function (key, value) { - visited.push('{' + key + ':' + value + '}'); - if (clearLength) - this.length = 0; - return; // returning undefined deletes the value. - }); - return result; -} - -result = test('[10]', false); -shouldBe("result", "undefined"); -shouldBe("visited", "['{0:10}','{:}']"); -shouldBe("visited.length", "2"); - -result = test('[10]', true); -shouldBe("result", "undefined"); -shouldBe("visited", "['{0:10}','{:}']"); -shouldBe("visited.length", "2"); - -result = test('[ [ 10, 11 ], 12, [13, 14, 15], 16, 17]', false); -shouldBe("result", "undefined"); -shouldBe("visited", "['{0:10}','{1:11}','{0:,}','{1:12}','{0:13}','{1:14}','{2:15}','{2:,,}','{3:16}','{4:17}','{:,,,,}']"); -shouldBe("visited.length", "11"); - -result = test('[ [ 10, 11 ], 12, [13, 14, 15], 16, 17]', true); -shouldBe("result", "undefined"); -shouldBe("visited", "['{0:10}','{1:undefined}','{0:}','{1:undefined}','{2:undefined}','{3:undefined}','{4:undefined}','{:}']"); -shouldBe("visited.length", "8"); - -result = test('[ { "a": [ 10, 11 ], "b": 12 } , [ 13, { "c": 14 }, 15], 16, 17]', false); -shouldBe("result", "undefined"); -shouldBe("visited", "['{0:10}','{1:11}','{a:,}','{b:12}','{0:[object Object]}','{0:13}','{c:14}','{1:[object Object]}','{2:15}','{1:,,}','{2:16}','{3:17}','{:,,,}']"); -shouldBe("visited.length", "13"); - -result = test('[ { "a": [ 10, 11 ], "b": 12 } , [ 13, { "c": 14 }, 15], 16, 17]', true); -shouldBe("result", "undefined"); -shouldBe("visited", "['{0:10}','{1:undefined}','{a:}','{b:12}','{0:[object Object]}','{1:undefined}','{2:undefined}','{3:undefined}','{:}']"); -shouldBe("visited.length", "9"); - - -function test2(parseString, clearLength) { - visited = []; - var result = JSON.parse(parseString, function (key, value) { - visited.push('{' + key + ':' + value + '}'); - if (clearLength) - this.length = 0; - return (typeof value === "number") ? value * 2 : value; - }); - return result; -} - -result = test2('[10]', false); -shouldBe("result", "[20]"); -shouldBe("visited", "['{0:10}','{:20}']"); -shouldBe("visited.length", "2"); - -result = test2('[10]', true); -shouldBe("result", "[20]"); -shouldBe("visited", "['{0:10}','{:20}']"); -shouldBe("visited.length", "2"); - -result = test2('[ [ 10, 11 ], 12, [13, 14, 15], 16, 17]', false); -shouldBe("result", "[20,22,24,26,28,30,32,34]"); -shouldBe("visited", "['{0:10}','{1:11}','{0:20,22}','{1:12}','{0:13}','{1:14}','{2:15}','{2:26,28,30}','{3:16}','{4:17}','{:20,22,24,26,28,30,32,34}']"); -shouldBe("visited.length", "11"); - -result = test2('[ [ 10, 11 ], 12, [13, 14, 15], 16, 17]', true); -shouldBe("result", "[]"); -shouldBe("visited", "['{0:10}','{1:undefined}','{0:}','{1:undefined}','{2:undefined}','{3:undefined}','{4:undefined}','{:}']"); -shouldBe("visited.length", "8"); - -result = test2('[ { "a": [ 10, 11 ], "b": 12 } , [ 13, { "c": 14 }, 15], 16, 17]', false); -shouldBe("result", "['[object Object]',26,'[object Object]',30,32,34]"); -shouldBe("visited", "['{0:10}','{1:11}','{a:20,22}','{b:12}','{0:[object Object]}','{0:13}','{c:14}','{1:[object Object]}','{2:15}','{1:26,[object Object],30}','{2:16}','{3:17}','{:[object Object],26,[object Object],30,32,34}']"); -shouldBe("visited.length", "13"); - -result = test2('[ { "a": [ 10, 11 ], "b": 12 } , [ 13, { "c": 14 }, 15], 16, 17]', true); -shouldBe("result", "[]"); -shouldBe("visited", "['{0:10}','{1:undefined}','{a:}','{b:12}','{0:[object Object]}','{1:undefined}','{2:undefined}','{3:undefined}','{:}']"); -shouldBe("visited.length", "9"); diff --git a/implementation-contributed/javascriptcore/stress/accessors-get-set-prefix.js b/implementation-contributed/javascriptcore/stress/accessors-get-set-prefix.js deleted file mode 100644 index 655bc6c9e4983295df2a7423c033605ec406a2f1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/accessors-get-set-prefix.js +++ /dev/null @@ -1,34 +0,0 @@ -function tryGetOwnPropertyDescriptorGetName(obj, property, expectedName) -{ - let descriptor = Object.getOwnPropertyDescriptor(obj, property); - if (!descriptor) - throw "Couldn't find property descriptor on object " + obj.toString() + " for property " + property.toString(); - - let getter = descriptor.get; - if (!getter) - throw "Property " + property.toString() + " on object " + obj.toString() + " is not a getter"; - - let getterName = getter.name; - if (getterName !== expectedName) - throw "Wrong getter name for property " + property.toString() + " on object " + obj.toString() + " expected " + expectedName + " got " + getterName; -} - -tryGetOwnPropertyDescriptorGetName(Array, Symbol.species, "get [Symbol.species]"); -tryGetOwnPropertyDescriptorGetName(Map, Symbol.species, "get [Symbol.species]"); -tryGetOwnPropertyDescriptorGetName(Set, Symbol.species, "get [Symbol.species]"); -tryGetOwnPropertyDescriptorGetName(RegExp, Symbol.species, "get [Symbol.species]"); -tryGetOwnPropertyDescriptorGetName(Promise, Symbol.species, "get [Symbol.species]"); -tryGetOwnPropertyDescriptorGetName(Map.prototype, "size", "get size"); -tryGetOwnPropertyDescriptorGetName(Set.prototype, "size", "get size"); -tryGetOwnPropertyDescriptorGetName(RegExp.prototype, "flags", "get flags"); -tryGetOwnPropertyDescriptorGetName(RegExp.prototype, "sticky", "get sticky"); -tryGetOwnPropertyDescriptorGetName(RegExp.prototype, "source", "get source"); - -if (Object.__lookupGetter__("__proto__").name !== "get __proto__") - throw "Expected Object __proto__ getter to be named \"get __proto\""; - -if (Object.__lookupSetter__("__proto__").name !== "set __proto__") - throw "Expected Object __proto__ setter to be named \"set __proto\""; - -if (Int32Array.prototype.__lookupGetter__("byteOffset").name !== "get byteOffset") - throw "Expected TypedArray.prototype byteOffset getter to be named \"get byteOffset\""; diff --git a/implementation-contributed/javascriptcore/stress/addition-order-evaluation.js b/implementation-contributed/javascriptcore/stress/addition-order-evaluation.js index d06f1aa70ca4242dc26c42a3a10cf6abe019751a..a986336debf1e58641638ef650c1c438b2aba02a 100644 --- a/implementation-contributed/javascriptcore/stress/addition-order-evaluation.js +++ b/implementation-contributed/javascriptcore/stress/addition-order-evaluation.js @@ -1,3 +1,4 @@ +// Reviewed function assert(a, message) { if (!a) throw new Error(message); diff --git a/implementation-contributed/javascriptcore/stress/allow-math-ic-b3-code-duplication.js b/implementation-contributed/javascriptcore/stress/allow-math-ic-b3-code-duplication.js index 2059b182812a98c31483630323d7ac08d5a436cf..92213ac3489a91b00087fa06559d462c1fb62bf9 100644 --- a/implementation-contributed/javascriptcore/stress/allow-math-ic-b3-code-duplication.js +++ b/implementation-contributed/javascriptcore/stress/allow-math-ic-b3-code-duplication.js @@ -1,3 +1,4 @@ +// Reviewed function test1() { var o1; for (let i = 0; i < 1000000; ++i) { diff --git a/implementation-contributed/javascriptcore/stress/apply-second-argument-must-be-array-like.js b/implementation-contributed/javascriptcore/stress/apply-second-argument-must-be-array-like.js index 15fa9725552cf325ede7e78e382ad8878464489f..be8254052b6130c1ee7980ff1b9dbe0c8395bd0c 100644 --- a/implementation-contributed/javascriptcore/stress/apply-second-argument-must-be-array-like.js +++ b/implementation-contributed/javascriptcore/stress/apply-second-argument-must-be-array-like.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault function assert(x) { diff --git a/implementation-contributed/javascriptcore/stress/arguments-bizarre-behavior.js b/implementation-contributed/javascriptcore/stress/arguments-bizarre-behavior.js deleted file mode 100644 index fdc4447bad45512c1da126340e2d7a08051fea5d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arguments-bizarre-behavior.js +++ /dev/null @@ -1,25 +0,0 @@ -function foo(x) { - Object.defineProperty(arguments, 0, {configurable: true, enumerable: true, writable:true, value:42}); - return [x, arguments[0], arguments] -} - -var result = foo(1); - -if (result[0] !== 42) - throw new Error(); - -if (result[1] !== 42) - throw new Error(); - -if (Array.prototype.join.call(result[2], ",") != "42") - throw new Error(); - -var array = []; -for (var s in result[2]) - array.push(s); - -if (array.join(",") != "0") - throw new Error(); - -if (Object.keys(result[2]).join(",") != "0") - throw new Error(); diff --git a/implementation-contributed/javascriptcore/stress/arguments-bizarre-behaviour-disable-enumerability.js b/implementation-contributed/javascriptcore/stress/arguments-bizarre-behaviour-disable-enumerability.js deleted file mode 100644 index ab5735f3d221e7998adbecd069cd5980b24e11f2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arguments-bizarre-behaviour-disable-enumerability.js +++ /dev/null @@ -1,28 +0,0 @@ -function foo(x) { - Object.defineProperty(arguments, 0, {configurable: true, enumerable: false, writable:true, value:42}); - return [x, arguments[0], arguments] -} - -var result = foo(1); - -if (result[0] !== 42) - throw new Error(); - -if (result[1] !== 42) - throw new Error(); - -if (Array.prototype.join.call(result[2], ",") != "42") - throw new Error(); - -var array = []; -for (var s in result[2]) - array.push(s); - -if (array.join(",") != "0") - throw new Error(); - -if (Object.keys(result[2]).join(",") != "0") - throw new Error(); - -if (Object.getOwnPropertyDescriptor(result[2], 0).enumerable === true) - throw new Error(); diff --git a/implementation-contributed/javascriptcore/stress/arith-abs-integer-range-optimization.js b/implementation-contributed/javascriptcore/stress/arith-abs-integer-range-optimization.js deleted file mode 100644 index 5be96f75f85dc176e7cf479b869a4b630d0f895a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-abs-integer-range-optimization.js +++ /dev/null @@ -1,139 +0,0 @@ -function negativeRange(results) -{ - for (var i = -1; i > -10; --i) { - results[Math.abs(i)] = i; - } -} -noInline(negativeRange); - -for (var i = 0; i < 1e4; ++i) { - var results = []; - negativeRange(results); - if (results.length != 10) - throw "Wrong result length: " + results.length; - for (var j = 0; j < 10; ++j) { - if (j < 1) { - if (results[j] !== undefined) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - continue; - } - if (results[j] !== -j) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} - -function negativeRangeIncludingZero(results) -{ - for (var i = 0; i > -10; --i) { - results[Math.abs(i)] = i; - } -} -noInline(negativeRangeIncludingZero); - -for (var i = 0; i < 1e4; ++i) { - var results = []; - negativeRangeIncludingZero(results); - if (results.length != 10) - throw "Wrong result length: " + results.length; - for (var j = 0; j < 10; ++j) { - if (results[j] !== -j) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} - -function negativeRangeWithOverflow(results, limit) -{ - var i = -2147483648 + 10; - do { - results.push(Math.abs(i)); - --i; - } while (i !== limit); -} -noInline(negativeRangeWithOverflow); - -// First, we warm up without overflow. -for (var i = 0; i < 1e4; ++i) { - var results = []; - negativeRangeWithOverflow(results, -2147483647); - if (results.length != 9) - throw "Wrong result length: " + results.length; - for (var j = 0; j < 9; ++j) { - if (results[j] !== 2147483638 + j) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} - -// Then we overflow. -for (var i = 0; i < 1e4; ++i) { - var results = []; - negativeRangeWithOverflow(results, -2147483648); - if (results.length != 10) - throw "Wrong result length: " + results.length; - for (var j = 0; j < 10; ++j) { - if (results[j] !== 2147483638 + j) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} - -function positiveRange(results) -{ - for (var i = 1; i < 10; ++i) { - results[Math.abs(i)] = i; - } -} -noInline(positiveRange); - -for (var i = 0; i < 1e4; ++i) { - var results = []; - positiveRange(results); - if (results.length != 10) - throw "Wrong result length: " + results.length; - for (var j = 0; j < 10; ++j) { - if (j < 1) { - if (results[j] !== undefined) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - continue; - } - if (results[j] !== j) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} - -function positiveRangeIncludingZero(results) -{ - for (var i = 0; i < 10; ++i) { - results[Math.abs(i)] = i; - } -} -noInline(positiveRangeIncludingZero); - -for (var i = 0; i < 1e4; ++i) { - var results = []; - positiveRangeIncludingZero(results); - if (results.length != 10) - throw "Wrong result length: " + results.length; - for (var j = 0; j < 10; ++j) { - if (results[j] !== j) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} - -function rangeWithoutOverflow(results) -{ - for (var i = -10; i < 10; ++i) { - results[i] = Math.abs(i); - } -} -noInline(rangeWithoutOverflow); - -for (var i = 0; i < 1e4; ++i) { - var results = []; - rangeWithoutOverflow(results); - if (results.length != 10) - throw "Wrong result length: " + results.length; - for (var j = -10; j < 10; ++j) { - var expected = (j < 0) ? -j : j; - if (results[j] !== expected) - throw "Wrong result, results[j] = " + results[j] + " at j = " + j; - } -} diff --git a/implementation-contributed/javascriptcore/stress/arith-abs-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-abs-on-various-types.js index 4e67f173d7a9e2ce70b1b70bb4c3d51270eaa3c9..64c7edefd2b8f7186a744f8cde1cacb1868ccad4 100644 --- a/implementation-contributed/javascriptcore/stress/arith-abs-on-various-types.js +++ b/implementation-contributed/javascriptcore/stress/arith-abs-on-various-types.js @@ -1,3 +1,4 @@ +// Reviewed //@ skip if not $jitTests //@ defaultNoEagerRun "use strict"; diff --git a/implementation-contributed/javascriptcore/stress/arith-acos-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-acos-on-various-types.js index f9ac40deb707db6b34a0e4193922624665776cde..5195e5a14a745f80cb1feedc877d965d28dd4a71 100644 --- a/implementation-contributed/javascriptcore/stress/arith-acos-on-various-types.js +++ b/implementation-contributed/javascriptcore/stress/arith-acos-on-various-types.js @@ -1,3 +1,4 @@ +// Reviewed //@ skip if not $jitTests //@ defaultNoEagerRun "use strict"; diff --git a/implementation-contributed/javascriptcore/stress/arith-acosh-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-acosh-on-various-types.js index bb067231510b61e8735640bc7329c36a428bbe69..2084dc5ecb691352b7ef30fd398698bfe8064912 100644 --- a/implementation-contributed/javascriptcore/stress/arith-acosh-on-various-types.js +++ b/implementation-contributed/javascriptcore/stress/arith-acosh-on-various-types.js @@ -1,3 +1,4 @@ +// Reviewed //@ skip if not $jitTests //@ defaultNoEagerRun "use strict"; diff --git a/implementation-contributed/javascriptcore/stress/arith-asin-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-asin-on-various-types.js deleted file mode 100644 index 70b91931f9f86ff092f1f8d4805f167168bf9776..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-asin-on-various-types.js +++ /dev/null @@ -1,237 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let asinOfHalf = Math.asin(0.5); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["1", "" + Math.asin(1)], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "" + asinOfHalf], - ["Math.PI", "" + Math.asin(Math.PI)], - ["Infinity", "NaN"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"0.5\"", "" + asinOfHalf], - ["{ valueOf: () => { return 0.5; } }", "" + asinOfHalf], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.asin() without arguments. -function opaqueASinNoArgument() { - return Math.asin(); -} -noInline(opaqueASinNoArgument); -noOSRExitFuzzing(opaqueASinNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueASinNoArgument(); - if (output === output) { - throw "Failed opaqueASinNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueASinNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.asin() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesASin(argument) { - return Math.asin(argument); -} -noInline(opaqueAllTypesASin); -noOSRExitFuzzing(opaqueAllTypesASin); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesASin(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesASin) > 2) - throw "We should have detected asin() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.asin() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueASin(argument) { - return Math.asin(argument); - } - noInline(opaqueASin); - noOSRExitFuzzing(opaqueASin); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueASin(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueASin) > 1) - throw "We should have compiled a single asin for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.asin() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueASinOnConstant() { - return Math.asin(${testCaseInput[0]}); - } - noInline(opaqueASinOnConstant); - noOSRExitFuzzing(opaqueASinOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueASinOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueASinOnConstant) > 1) - throw "We should have compiled a single asin for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueASinForSideEffects(argument) { - return Math.asin(argument); -} -noInline(opaqueASinForSideEffects); -noOSRExitFuzzing(opaqueASinForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let asinResult = Math.asin(0.2); - for (let i = 0; i < 1e4; ++i) { - if (opaqueASinForSideEffects(testObject) !== asinResult) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueASinForSideEffects) > 1) - throw "opaqueASinForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify asin() is not subject to CSE if the argument has side effects. -function opaqueASinForCSE(argument) { - return Math.asin(argument) + Math.asin(argument) + Math.asin(argument); -} -noInline(opaqueASinForCSE); -noOSRExitFuzzing(opaqueASinForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let asinResult = Math.asin(0.2); - let threeasinResult = asinResult + asinResult + asinResult; - for (let i = 0; i < 1e4; ++i) { - if (opaqueASinForCSE(testObject) !== threeasinResult) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueASinForCSE) > 1) - throw "opaqueASinForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify asin() is not subject to DCE if the argument has side effects. -function opaqueASinForDCE(argument) { - Math.asin(argument); -} -noInline(opaqueASinForDCE); -noOSRExitFuzzing(opaqueASinForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueASinForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueASinForDCE) > 1) - throw "opaqueASinForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueASinWithException(argument) { - let result = Math.asin(argument); - ++counter; - return result; - } - noInline(opaqueASinWithException); - - let testObject = { valueOf: () => { return 0.1; } }; - let asinResult = Math.asin(0.1); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueASinWithException(testObject) !== asinResult) - throw "Incorrect result in opaqueASinWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 0.1; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueASinWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueASinWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-asinh-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-asinh-on-various-types.js deleted file mode 100644 index 71dcebf50db3f837bbbf1bdb6d22ecba11dd5cc3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-asinh-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let asinhOfFour = Math.asinh(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["4", "" + asinhOfFour], - ["Math.PI", "" + Math.asinh(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + asinhOfFour], - ["{ valueOf: () => { return 4; } }", "" + asinhOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.asinh() without arguments. -function opaqueASinhNoArgument() { - return Math.asinh(); -} -noInline(opaqueASinhNoArgument); -noOSRExitFuzzing(opaqueASinhNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueASinhNoArgument(); - if (output === output) { - throw "Failed opaqueASinhNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueASinhNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.asinh() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesASinh(argument) { - return Math.asinh(argument); -} -noInline(opaqueAllTypesASinh); -noOSRExitFuzzing(opaqueAllTypesASinh); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesASinh(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesASinh) > 2) - throw "We should have detected asinh() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.asinh() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueASinh(argument) { - return Math.asinh(argument); - } - noInline(opaqueASinh); - noOSRExitFuzzing(opaqueASinh); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueASinh(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueASinh) > 1) - throw "We should have compiled a single asinh for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.asinh() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueASinhOnConstant() { - return Math.asinh(${testCaseInput[0]}); - } - noInline(opaqueASinhOnConstant); - noOSRExitFuzzing(opaqueASinhOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueASinhOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueASinhOnConstant) > 1) - throw "We should have compiled a single asinh for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueASinhForSideEffects(argument) { - return Math.asinh(argument); -} -noInline(opaqueASinhForSideEffects); -noOSRExitFuzzing(opaqueASinhForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let asinh16 = Math.asinh(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueASinhForSideEffects(testObject) !== asinh16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueASinhForSideEffects) > 1) - throw "opaqueASinhForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify asinh() is not subject to CSE if the argument has side effects. -function opaqueASinhForCSE(argument) { - return Math.asinh(argument) + Math.asinh(argument) + Math.asinh(argument); -} -noInline(opaqueASinhForCSE); -noOSRExitFuzzing(opaqueASinhForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let asinh16 = Math.asinh(16); - let threeASinh16 = asinh16 + asinh16 + asinh16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueASinhForCSE(testObject) !== threeASinh16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueASinhForCSE) > 1) - throw "opaqueASinhForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify asinh() is not subject to DCE if the argument has side effects. -function opaqueASinhForDCE(argument) { - Math.asinh(argument); -} -noInline(opaqueASinhForDCE); -noOSRExitFuzzing(opaqueASinhForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueASinhForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueASinhForDCE) > 1) - throw "opaqueASinhForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueASinhWithException(argument) { - let result = Math.asinh(argument); - ++counter; - return result; - } - noInline(opaqueASinhWithException); - - let testObject = { valueOf: () => { return 64; } }; - let asinh64 = Math.asinh(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueASinhWithException(testObject) !== asinh64) - throw "Incorrect result in opaqueASinhWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueASinhWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueASinhWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-atan-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-atan-on-various-types.js deleted file mode 100644 index f46801c06a62a1242b69eb61727eebd5661aafb4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-atan-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let atanOfFour = Math.atan(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["4", "" + atanOfFour], - ["Math.PI", "" + Math.atan(Math.PI)], - ["Infinity", "" + Math.atan(Infinity)], - ["-Infinity", "-" + Math.atan(Infinity)], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + atanOfFour], - ["{ valueOf: () => { return 4; } }", "" + atanOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.atan() without arguments. -function opaqueATanNoArgument() { - return Math.atan(); -} -noInline(opaqueATanNoArgument); -noOSRExitFuzzing(opaqueATanNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueATanNoArgument(); - if (output === output) { - throw "Failed opaqueATanNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueATanNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.atan() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesATan(argument) { - return Math.atan(argument); -} -noInline(opaqueAllTypesATan); -noOSRExitFuzzing(opaqueAllTypesATan); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesATan(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesATan) > 2) - throw "We should have detected atan() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.atan() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueATan(argument) { - return Math.atan(argument); - } - noInline(opaqueATan); - noOSRExitFuzzing(opaqueATan); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueATan(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueATan) > 1) - throw "We should have compiled a single atan for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.atan() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueATanOnConstant() { - return Math.atan(${testCaseInput[0]}); - } - noInline(opaqueATanOnConstant); - noOSRExitFuzzing(opaqueATanOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueATanOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueATanOnConstant) > 1) - throw "We should have compiled a single atan for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueATanForSideEffects(argument) { - return Math.atan(argument); -} -noInline(opaqueATanForSideEffects); -noOSRExitFuzzing(opaqueATanForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let AtanResult = Math.atan(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueATanForSideEffects(testObject) !== AtanResult) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueATanForSideEffects) > 1) - throw "opaqueATanForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify atan() is not subject to CSE if the argument has side effects. -function opaqueATanForCSE(argument) { - return Math.atan(argument) + Math.atan(argument) + Math.atan(argument); -} -noInline(opaqueATanForCSE); -noOSRExitFuzzing(opaqueATanForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let AtanResult = Math.atan(16); - let threeAtanResult = AtanResult + AtanResult + AtanResult; - for (let i = 0; i < 1e4; ++i) { - if (opaqueATanForCSE(testObject) !== threeAtanResult) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueATanForCSE) > 1) - throw "opaqueATanForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify atan() is not subject to DCE if the argument has side effects. -function opaqueATanForDCE(argument) { - Math.atan(argument); -} -noInline(opaqueATanForDCE); -noOSRExitFuzzing(opaqueATanForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueATanForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueATanForDCE) > 1) - throw "opaqueATanForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueATanWithException(argument) { - let result = Math.atan(argument); - ++counter; - return result; - } - noInline(opaqueATanWithException); - - let testObject = { valueOf: () => { return 64; } }; - let atanResult = Math.atan(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueATanWithException(testObject) !== atanResult) - throw "Incorrect result in opaqueATanWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueATanWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueATanWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-atanh-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-atanh-on-various-types.js deleted file mode 100644 index 0b21bbb68c32d9fe33e27e412ac3e37697561160..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-atanh-on-various-types.js +++ /dev/null @@ -1,237 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let atanhOfHalf = Math.atanh(0.5); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["1", "Infinity"], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "" + atanhOfHalf], - ["Math.PI", "" + Math.atanh(Math.PI)], - ["Infinity", "NaN"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"0.5\"", "" + atanhOfHalf], - ["{ valueOf: () => { return 0.5; } }", "" + atanhOfHalf], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.atanh() without arguments. -function opaqueATanhNoArgument() { - return Math.atanh(); -} -noInline(opaqueATanhNoArgument); -noOSRExitFuzzing(opaqueATanhNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueATanhNoArgument(); - if (output === output) { - throw "Failed opaqueATanhNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueATanhNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.atanh() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesATanh(argument) { - return Math.atanh(argument); -} -noInline(opaqueAllTypesATanh); -noOSRExitFuzzing(opaqueAllTypesATanh); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesATanh(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesATanh) > 2) - throw "We should have detected atanh() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.atanh() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueATanh(argument) { - return Math.atanh(argument); - } - noInline(opaqueATanh); - noOSRExitFuzzing(opaqueATanh); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueATanh(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueATanh) > 1) - throw "We should have compiled a single atanh for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.atanh() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueATanhOnConstant() { - return Math.atanh(${testCaseInput[0]}); - } - noInline(opaqueATanhOnConstant); - noOSRExitFuzzing(opaqueATanhOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueATanhOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueATanhOnConstant) > 1) - throw "We should have compiled a single atanh for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueATanhForSideEffects(argument) { - return Math.atanh(argument); -} -noInline(opaqueATanhForSideEffects); -noOSRExitFuzzing(opaqueATanhForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let atanhResult = Math.atanh(0.2); - for (let i = 0; i < 1e4; ++i) { - if (opaqueATanhForSideEffects(testObject) !== atanhResult) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueATanhForSideEffects) > 1) - throw "opaqueATanhForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify atanh() is not subject to CSE if the argument has side effects. -function opaqueATanhForCSE(argument) { - return Math.atanh(argument) + Math.atanh(argument) + Math.atanh(argument); -} -noInline(opaqueATanhForCSE); -noOSRExitFuzzing(opaqueATanhForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let atanhResult = Math.atanh(0.2); - let threeatanhResult = atanhResult + atanhResult + atanhResult; - for (let i = 0; i < 1e4; ++i) { - if (opaqueATanhForCSE(testObject) !== threeatanhResult) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueATanhForCSE) > 1) - throw "opaqueATanhForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify atanh() is not subject to DCE if the argument has side effects. -function opaqueATanhForDCE(argument) { - Math.atanh(argument); -} -noInline(opaqueATanhForDCE); -noOSRExitFuzzing(opaqueATanhForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueATanhForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueATanhForDCE) > 1) - throw "opaqueATanhForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueATanhWithException(argument) { - let result = Math.atanh(argument); - ++counter; - return result; - } - noInline(opaqueATanhWithException); - - let testObject = { valueOf: () => { return 0.1; } }; - let atanhResult = Math.atanh(0.1); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueATanhWithException(testObject) !== atanhResult) - throw "Incorrect result in opaqueATanhWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 0.1; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueATanhWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueATanhWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-cbrt-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-cbrt-on-various-types.js deleted file mode 100644 index a62d6d57b54e8d9574a0a8209466ced0d70c3cef..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-cbrt-on-various-types.js +++ /dev/null @@ -1,238 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let cbrtOfHalf = Math.cbrt(0.5); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["1", "1"], - ["0", "0"], - ["-0.", "-0"], - ["-42.", "" + Math.cbrt(-42)], - ["0.5", "" + cbrtOfHalf], - ["Math.PI", "" + Math.cbrt(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"0.5\"", "" + cbrtOfHalf], - ["{ valueOf: () => { return 0.5; } }", "" + cbrtOfHalf], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.cbrt() without arguments. -function opaqueCbrtNoArgument() { - return Math.cbrt(); -} -noInline(opaqueCbrtNoArgument); -noOSRExitFuzzing(opaqueCbrtNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueCbrtNoArgument(); - if (output === output) { - throw "Failed opaqueCbrtNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueCbrtNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.cbrt() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesCbrt(argument) { - return Math.cbrt(argument); -} -noInline(opaqueAllTypesCbrt); -noOSRExitFuzzing(opaqueAllTypesCbrt); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesCbrt(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesCbrt) > 2) - throw "We should have detected cbrt() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.cbrt() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCbrt(argument) { - return Math.cbrt(argument); - } - noInline(opaqueCbrt); - noOSRExitFuzzing(opaqueCbrt); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCbrt(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueCbrt) > 1) - throw "We should have compiled a single cbrt for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.cbrt() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCbrtOnConstant() { - return Math.cbrt(${testCaseInput[0]}); - } - noInline(opaqueCbrtOnConstant); - noOSRExitFuzzing(opaqueCbrtOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCbrtOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueCbrtOnConstant) > 1) - throw "We should have compiled a single cbrt for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueCbrtForSideEffects(argument) { - return Math.cbrt(argument); -} -noInline(opaqueCbrtForSideEffects); -noOSRExitFuzzing(opaqueCbrtForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let cbrtResult = Math.cbrt(0.2); - for (let i = 0; i < 1e4; ++i) { - if (opaqueCbrtForSideEffects(testObject) !== cbrtResult) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueCbrtForSideEffects) > 1) - throw "opaqueCbrtForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify cbrt() is not subject to CSE if the argument has side effects. -function opaqueCbrtForCSE(argument) { - return Math.cbrt(argument) + Math.cbrt(argument) + Math.cbrt(argument); -} -noInline(opaqueCbrtForCSE); -noOSRExitFuzzing(opaqueCbrtForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let cbrtResult = Math.cbrt(0.2); - let threecbrtResult = cbrtResult + cbrtResult + cbrtResult; - for (let i = 0; i < 1e4; ++i) { - if (opaqueCbrtForCSE(testObject) !== threecbrtResult) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueCbrtForCSE) > 1) - throw "opaqueCbrtForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify cbrt() is not subject to DCE if the argument has side effects. -function opaqueCbrtForDCE(argument) { - Math.cbrt(argument); -} -noInline(opaqueCbrtForDCE); -noOSRExitFuzzing(opaqueCbrtForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueCbrtForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueCbrtForDCE) > 1) - throw "opaqueCbrtForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueCbrtWithException(argument) { - let result = Math.cbrt(argument); - ++counter; - return result; - } - noInline(opaqueCbrtWithException); - - let testObject = { valueOf: () => { return 0.1; } }; - let cbrtResult = Math.cbrt(0.1); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueCbrtWithException(testObject) !== cbrtResult) - throw "Incorrect result in opaqueCbrtWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 0.1; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueCbrtWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueCbrtWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-ceil-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-ceil-on-various-types.js deleted file mode 100644 index 29c2e4a682653aeb2c128e20a9c0f5ccea3b7811..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-ceil-on-various-types.js +++ /dev/null @@ -1,308 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "1"], - ["-0.5", "-0"], - ["4", "4"], - ["42.1", "43"], - ["42.5", "43"], - ["42.9", "43"], - ["-42.1", "-42"], - ["-42.5", "-42"], - ["-42.9", "-42"], - ["Math.PI", "4"], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "4"], - ["\"42.5\"", "43"], - ["{ valueOf: () => { return 4; } }", "4"], - ["{ valueOf: () => { return 0; } }", "0"], - ["{ valueOf: () => { return -0; } }", "-0"], - ["{ valueOf: () => { return 0.5; } }", "1"], - ["{ valueOf: () => { return -0.5; } }", "-0"], - ["{ valueOf: () => { return Number.MIN_SAFE_INTEGER; } }", "-9007199254740991"], - ["{ valueOf: () => { return Number.MAX_SAFE_INTEGER; } }", "9007199254740991"], - ["{ valueOf: () => { return 0x80000000|0; } }", "-2147483648"], - ["{ valueOf: () => { return 0x7fffffff|0; } }", "2147483647"], - ["{ valueOf: () => { return (0x80000000|0) - 0.5; } }", "-2147483648"], - ["{ valueOf: () => { return (0x7fffffff|0) + 0.5; } }", "2147483648"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && (1 / expected) !== (1 / result)) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.ceil() without arguments. -function opaqueCeilNoArgument() { - return Math.ceil(); -} -noInline(opaqueCeilNoArgument); -noOSRExitFuzzing(opaqueCeilNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueCeilNoArgument(); - if (!isIdentical(output, NaN)) { - throw "Failed opaqueCeilNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueCeilNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.ceil() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesCeil(argument) { - return Math.ceil(argument); -} -noInline(opaqueAllTypesCeil); -noOSRExitFuzzing(opaqueAllTypesCeil); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesCeil(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesCeil) > 3) - throw "We should have detected ceil() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Polymorphic input but negative zero is not observable. -function opaqueAllTypesCeilWithoutNegativeZero(argument) { - return Math.ceil(argument) + 0; -} -noInline(opaqueAllTypesCeilWithoutNegativeZero); -noOSRExitFuzzing(opaqueAllTypesCeilWithoutNegativeZero); - -function testAllTypesWithoutNegativeZeroCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesCeilWithoutNegativeZero(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1] + 0)) - throw "Failed testAllTypesWithoutNegativeZeroCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesCeil) > 3) - throw "We should have detected ceil() was polymorphic and generated a generic version."; -} -testAllTypesWithoutNegativeZeroCall(); - - -// Test Math.ceil() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCeil(argument) { - return Math.ceil(argument); - } - noInline(opaqueCeil); - noOSRExitFuzzing(opaqueCeil); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCeil(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueCeil) > 1) - throw "We should have compiled a single ceil for the expected type."; - `); - } -} -testSingleTypeCall(); - - -function checkCompileCountForUselessNegativeZero(testFunction) -{ - if (jscOptions().useMaximalFlushInsertionPhase) { - // If we forced a flush after the operation, the negative zero becomes - // observable and we may be overly optimistic. - return numberOfDFGCompiles(testFunction) <= 2; - } - return numberOfDFGCompiles(testFunction) <= 1; -} - - -// Test Math.ceil() on a completely typed input, but without negative zero. -function testSingleTypeWithoutNegativeZeroCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCeil(argument) { - return Math.ceil(argument) + 0; - } - noInline(opaqueCeil); - noOSRExitFuzzing(opaqueCeil); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCeil(${testCaseInput[0]}), ${testCaseInput[1]} + 0)) { - throw "Failed testSingleTypeWithoutNegativeZeroCall()"; - } - } - if (!checkCompileCountForUselessNegativeZero(opaqueCeil)) - throw "We should have compiled a single ceil for the expected type."; - `); - } -} -testSingleTypeWithoutNegativeZeroCall(); - - -// Test Math.ceil() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCeilOnConstant() { - return Math.ceil(${testCaseInput[0]}); - } - noInline(opaqueCeilOnConstant); - noOSRExitFuzzing(opaqueCeilOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCeilOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueCeilOnConstant) > 1) - throw "We should have compiled a single ceil for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueCeilForSideEffects(argument) { - return Math.ceil(argument); -} -noInline(opaqueCeilForSideEffects); -noOSRExitFuzzing(opaqueCeilForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let ceil16 = Math.ceil(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueCeilForSideEffects(testObject) !== ceil16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueCeilForSideEffects) > 1) - throw "opaqueCeilForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify ceil() is not subject to CSE if the argument has side effects. -function opaqueCeilForCSE(argument) { - return Math.ceil(argument) + Math.ceil(argument) + Math.ceil(argument); -} -noInline(opaqueCeilForCSE); -noOSRExitFuzzing(opaqueCeilForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let ceil16 = Math.ceil(16); - let threeCeil16 = ceil16 + ceil16 + ceil16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueCeilForCSE(testObject) !== threeCeil16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueCeilForCSE) > 1) - throw "opaqueCeilForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify ceil() is not subject to DCE if the argument has side effects. -function opaqueCeilForDCE(argument) { - Math.ceil(argument); -} -noInline(opaqueCeilForDCE); -noOSRExitFuzzing(opaqueCeilForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueCeilForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueCeilForDCE) > 1) - throw "opaqueCeilForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueCeilWithException(argument) { - let result = Math.ceil(argument); - ++counter; - return result; - } - noInline(opaqueCeilWithException); - - let testObject = { valueOf: () => { return 64; } }; - let ceil64 = Math.ceil(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueCeilWithException(testObject) !== ceil64) - throw "Incorrect result in opaqueCeilWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueCeilWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueCeilWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-clz32-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-clz32-on-various-types.js deleted file mode 100644 index e658e20e7e41597a6ce4bfc79379cd038fef9c66..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-clz32-on-various-types.js +++ /dev/null @@ -1,234 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "32"], - ["null", "32"], - ["0", "32"], - ["-0.", "32"], - ["4", "29"], - ["Math.PI", "30"], - ["Infinity", "32"], - ["-Infinity", "32"], - ["NaN", "32"], - ["\"WebKit\"", "32"], - ["\"4\"", "29"], - ["{ valueOf: () => { return 4; } }", "29"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.clz32() without arguments. -function opaqueClz32NoArgument() { - return Math.clz32(); -} -noInline(opaqueClz32NoArgument); -noOSRExitFuzzing(opaqueClz32NoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueClz32NoArgument(); - if (output !== 32) { - throw "Failed opaqueClz32NoArgument"; - } - } - if (numberOfDFGCompiles(opaqueClz32NoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.clz32() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesClz32(argument) { - return Math.clz32(argument); -} -noInline(opaqueAllTypesClz32); -noOSRExitFuzzing(opaqueAllTypesClz32); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesClz32(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesClz32) > 2) - throw "We should have detected clz32() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.clz32() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueClz32(argument) { - return Math.clz32(argument); - } - noInline(opaqueClz32); - noOSRExitFuzzing(opaqueClz32); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueClz32(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueClz32) > 1) - throw "We should have compiled a single clz32 for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.clz32() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueClz32OnConstant() { - return Math.clz32(${testCaseInput[0]}); - } - noInline(opaqueClz32OnConstant); - noOSRExitFuzzing(opaqueClz32OnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueClz32OnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueClz32OnConstant) > 1) - throw "We should have compiled a single clz32 for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueClz32ForSideEffects(argument) { - return Math.clz32(argument); -} -noInline(opaqueClz32ForSideEffects); -noOSRExitFuzzing(opaqueClz32ForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let clz3216 = Math.clz32(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueClz32ForSideEffects(testObject) !== clz3216) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueClz32ForSideEffects) > 1) - throw "opaqueClz32ForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify clz32() is not subject to CSE if the argument has side effects. -function opaqueClz32ForCSE(argument) { - return Math.clz32(argument) + Math.clz32(argument) + Math.clz32(argument); -} -noInline(opaqueClz32ForCSE); -noOSRExitFuzzing(opaqueClz32ForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let clz3216 = Math.clz32(16); - let threeClz3216 = clz3216 + clz3216 + clz3216; - for (let i = 0; i < 1e4; ++i) { - if (opaqueClz32ForCSE(testObject) !== threeClz3216) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueClz32ForCSE) > 1) - throw "opaqueClz32ForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify clz32() is not subject to DCE if the argument has side effects. -function opaqueClz32ForDCE(argument) { - Math.clz32(argument); -} -noInline(opaqueClz32ForDCE); -noOSRExitFuzzing(opaqueClz32ForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueClz32ForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueClz32ForDCE) > 1) - throw "opaqueClz32ForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueClz32WithException(argument) { - let result = Math.clz32(argument); - ++counter; - return result; - } - noInline(opaqueClz32WithException); - - let testObject = { valueOf: () => { return 64; } }; - let clz3264 = Math.clz32(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueClz32WithException(testObject) !== clz3264) - throw "Incorrect result in opaqueClz32WithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueClz32WithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueClz32WithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-cos-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-cos-on-various-types.js deleted file mode 100644 index c11049bb21d6d0fe9aa3f4fd4fa03accf5366414..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-cos-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let cosOfFour = Math.cos(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "1"], - ["0", "1"], - ["-0.", "1"], - ["4", "" + cosOfFour], - ["Math.PI", "-1"], - ["Infinity", "NaN"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + cosOfFour], - ["{ valueOf: () => { return 4; } }", "" + cosOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.cos() without arguments. -function opaqueCosNoArgument() { - return Math.cos(); -} -noInline(opaqueCosNoArgument); -noOSRExitFuzzing(opaqueCosNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueCosNoArgument(); - if (output === output) { - throw "Failed opaqueCosNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueCosNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.cos() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesCos(argument) { - return Math.cos(argument); -} -noInline(opaqueAllTypesCos); -noOSRExitFuzzing(opaqueAllTypesCos); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesCos(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesCos) > 2) - throw "We should have detected cos() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.cos() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCos(argument) { - return Math.cos(argument); - } - noInline(opaqueCos); - noOSRExitFuzzing(opaqueCos); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCos(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueCos) > 1) - throw "We should have compiled a single cos for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.cos() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCosOnConstant() { - return Math.cos(${testCaseInput[0]}); - } - noInline(opaqueCosOnConstant); - noOSRExitFuzzing(opaqueCosOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCosOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueCosOnConstant) > 1) - throw "We should have compiled a single cos for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueCosForSideEffects(argument) { - return Math.cos(argument); -} -noInline(opaqueCosForSideEffects); -noOSRExitFuzzing(opaqueCosForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let cos16 = Math.cos(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueCosForSideEffects(testObject) !== cos16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueCosForSideEffects) > 1) - throw "opaqueCosForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify cos() is not subject to CSE if the argument has side effects. -function opaqueCosForCSE(argument) { - return Math.cos(argument) + Math.cos(argument) + Math.cos(argument); -} -noInline(opaqueCosForCSE); -noOSRExitFuzzing(opaqueCosForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let cos16 = Math.cos(16); - let threeCos16 = cos16 + cos16 + cos16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueCosForCSE(testObject) !== threeCos16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueCosForCSE) > 1) - throw "opaqueCosForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify cos() is not subject to DCE if the argument has side effects. -function opaqueCosForDCE(argument) { - Math.cos(argument); -} -noInline(opaqueCosForDCE); -noOSRExitFuzzing(opaqueCosForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueCosForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueCosForDCE) > 1) - throw "opaqueCosForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueCosWithException(argument) { - let result = Math.cos(argument); - ++counter; - return result; - } - noInline(opaqueCosWithException); - - let testObject = { valueOf: () => { return 64; } }; - let cos64 = Math.cos(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueCosWithException(testObject) !== cos64) - throw "Incorrect result in opaqueCosWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueCosWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueCosWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-cosh-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-cosh-on-various-types.js deleted file mode 100644 index 5f806281e94514c80cb04f6ac5b45a6b29f1ae00..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-cosh-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let coshOfFour = Math.cosh(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "1"], - ["0", "1"], - ["-0.", "1"], - ["4", "" + coshOfFour], - ["Math.PI", "" + Math.cosh(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + coshOfFour], - ["{ valueOf: () => { return 4; } }", "" + coshOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.cosh() without arguments. -function opaqueCoshNoArgument() { - return Math.cosh(); -} -noInline(opaqueCoshNoArgument); -noOSRExitFuzzing(opaqueCoshNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueCoshNoArgument(); - if (output === output) { - throw "Failed opaqueCoshNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueCoshNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.cosh() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesCosh(argument) { - return Math.cosh(argument); -} -noInline(opaqueAllTypesCosh); -noOSRExitFuzzing(opaqueAllTypesCosh); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesCosh(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesCosh) > 2) - throw "We should have detected cosh() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.cosh() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCosh(argument) { - return Math.cosh(argument); - } - noInline(opaqueCosh); - noOSRExitFuzzing(opaqueCosh); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCosh(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueCosh) > 1) - throw "We should have compiled a single cosh for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.cosh() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueCoshOnConstant() { - return Math.cosh(${testCaseInput[0]}); - } - noInline(opaqueCoshOnConstant); - noOSRExitFuzzing(opaqueCoshOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueCoshOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueCoshOnConstant) > 1) - throw "We should have compiled a single cosh for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueCoshForSideEffects(argument) { - return Math.cosh(argument); -} -noInline(opaqueCoshForSideEffects); -noOSRExitFuzzing(opaqueCoshForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let cosh16 = Math.cosh(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueCoshForSideEffects(testObject) !== cosh16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueCoshForSideEffects) > 1) - throw "opaqueCoshForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify cosh() is not subject to CSE if the argument has side effects. -function opaqueCoshForCSE(argument) { - return Math.cosh(argument) + Math.cosh(argument) + Math.cosh(argument); -} -noInline(opaqueCoshForCSE); -noOSRExitFuzzing(opaqueCoshForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let cosh16 = Math.cosh(16); - let threeCosh16 = cosh16 + cosh16 + cosh16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueCoshForCSE(testObject) !== threeCosh16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueCoshForCSE) > 1) - throw "opaqueCoshForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify cosh() is not subject to DCE if the argument has side effects. -function opaqueCoshForDCE(argument) { - Math.cosh(argument); -} -noInline(opaqueCoshForDCE); -noOSRExitFuzzing(opaqueCoshForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueCoshForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueCoshForDCE) > 1) - throw "opaqueCoshForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueCoshWithException(argument) { - let result = Math.cosh(argument); - ++counter; - return result; - } - noInline(opaqueCoshWithException); - - let testObject = { valueOf: () => { return 64; } }; - let cosh64 = Math.cosh(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueCoshWithException(testObject) !== cosh64) - throw "Incorrect result in opaqueCoshWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueCoshWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueCoshWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-expm1-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-expm1-on-various-types.js deleted file mode 100644 index 314ab19a14c3740510df8e31824948c1acdef7f2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-expm1-on-various-types.js +++ /dev/null @@ -1,237 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let expm1OfHalf = Math.expm1(0.5); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["1", "" + Math.expm1(1)], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "" + expm1OfHalf], - ["Math.PI", "" + Math.expm1(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "-1"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"0.5\"", "" + expm1OfHalf], - ["{ valueOf: () => { return 0.5; } }", "" + expm1OfHalf], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.expm1() without arguments. -function opaqueExpm1NoArgument() { - return Math.expm1(); -} -noInline(opaqueExpm1NoArgument); -noOSRExitFuzzing(opaqueExpm1NoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueExpm1NoArgument(); - if (output === output) { - throw "Failed opaqueExpm1NoArgument"; - } - } - if (numberOfDFGCompiles(opaqueExpm1NoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.expm1() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesExpm1(argument) { - return Math.expm1(argument); -} -noInline(opaqueAllTypesExpm1); -noOSRExitFuzzing(opaqueAllTypesExpm1); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesExpm1(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesExpm1) > 2) - throw "We should have detected expm1() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.expm1() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueExpm1(argument) { - return Math.expm1(argument); - } - noInline(opaqueExpm1); - noOSRExitFuzzing(opaqueExpm1); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueExpm1(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueExpm1) > 1) - throw "We should have compiled a single expm1 for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.expm1() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueExpm1OnConstant() { - return Math.expm1(${testCaseInput[0]}); - } - noInline(opaqueExpm1OnConstant); - noOSRExitFuzzing(opaqueExpm1OnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueExpm1OnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueExpm1OnConstant) > 1) - throw "We should have compiled a single expm1 for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueExpm1ForSideEffects(argument) { - return Math.expm1(argument); -} -noInline(opaqueExpm1ForSideEffects); -noOSRExitFuzzing(opaqueExpm1ForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let expm1Result = Math.expm1(0.2); - for (let i = 0; i < 1e4; ++i) { - if (opaqueExpm1ForSideEffects(testObject) !== expm1Result) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueExpm1ForSideEffects) > 1) - throw "opaqueExpm1ForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify expm1() is not subject to CSE if the argument has side effects. -function opaqueExpm1ForCSE(argument) { - return Math.expm1(argument) + Math.expm1(argument) + Math.expm1(argument); -} -noInline(opaqueExpm1ForCSE); -noOSRExitFuzzing(opaqueExpm1ForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let expm1Result = Math.expm1(0.2); - let threeexpm1Result = expm1Result + expm1Result + expm1Result; - for (let i = 0; i < 1e4; ++i) { - if (opaqueExpm1ForCSE(testObject) !== threeexpm1Result) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueExpm1ForCSE) > 1) - throw "opaqueExpm1ForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify expm1() is not subject to DCE if the argument has side effects. -function opaqueExpm1ForDCE(argument) { - Math.expm1(argument); -} -noInline(opaqueExpm1ForDCE); -noOSRExitFuzzing(opaqueExpm1ForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueExpm1ForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueExpm1ForDCE) > 1) - throw "opaqueExpm1ForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueExpm1WithException(argument) { - let result = Math.expm1(argument); - ++counter; - return result; - } - noInline(opaqueExpm1WithException); - - let testObject = { valueOf: () => { return 0.1; } }; - let expm1Result = Math.expm1(0.1); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueExpm1WithException(testObject) !== expm1Result) - throw "Incorrect result in opaqueExpm1WithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 0.1; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueExpm1WithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueExpm1WithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-floor-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-floor-on-various-types.js deleted file mode 100644 index ff740cc37795ef5497cdd4f39cd71d9534fd2290..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-floor-on-various-types.js +++ /dev/null @@ -1,308 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "0"], - ["-0.5", "-1"], - ["4", "4"], - ["42.1", "42"], - ["42.5", "42"], - ["42.9", "42"], - ["-42.1", "-43"], - ["-42.5", "-43"], - ["-42.9", "-43"], - ["Math.PI", "3"], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "4"], - ["\"42.5\"", "42"], - ["{ valueOf: () => { return 4; } }", "4"], - ["{ valueOf: () => { return 0; } }", "0"], - ["{ valueOf: () => { return -0; } }", "-0"], - ["{ valueOf: () => { return 0.5; } }", "0"], - ["{ valueOf: () => { return -0.5; } }", "-1"], - ["{ valueOf: () => { return Number.MIN_SAFE_INTEGER; } }", "-9007199254740991"], - ["{ valueOf: () => { return Number.MAX_SAFE_INTEGER; } }", "9007199254740991"], - ["{ valueOf: () => { return 0x80000000|0; } }", "-2147483648"], - ["{ valueOf: () => { return 0x7fffffff|0; } }", "2147483647"], - ["{ valueOf: () => { return (0x80000000|0) - 0.5; } }", "-2147483649"], - ["{ valueOf: () => { return (0x7fffffff|0) + 0.5; } }", "2147483647"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && (1 / expected) !== (1 / result)) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.floor() without arguments. -function opaqueFloorNoArgument() { - return Math.floor(); -} -noInline(opaqueFloorNoArgument); -noOSRExitFuzzing(opaqueFloorNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueFloorNoArgument(); - if (!isIdentical(output, NaN)) { - throw "Failed opaqueFloorNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueFloorNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.floor() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesFloor(argument) { - return Math.floor(argument); -} -noInline(opaqueAllTypesFloor); -noOSRExitFuzzing(opaqueAllTypesFloor); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesFloor(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesFloor) > 3) - throw "We should have detected floor() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Polymorphic input but negative zero is not observable. -function opaqueAllTypesFloorWithoutNegativeZero(argument) { - return Math.floor(argument) + 0; -} -noInline(opaqueAllTypesFloorWithoutNegativeZero); -noOSRExitFuzzing(opaqueAllTypesFloorWithoutNegativeZero); - -function testAllTypesWithoutNegativeZeroCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesFloorWithoutNegativeZero(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1] + 0)) - throw "Failed testAllTypesWithoutNegativeZeroCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesFloor) > 3) - throw "We should have detected floor() was polymorphic and generated a generic version."; -} -testAllTypesWithoutNegativeZeroCall(); - - -// Test Math.floor() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueFloor(argument) { - return Math.floor(argument); - } - noInline(opaqueFloor); - noOSRExitFuzzing(opaqueFloor); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueFloor(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueFloor) > 1) - throw "We should have compiled a single floor for the expected type."; - `); - } -} -testSingleTypeCall(); - - -function checkCompileCountForUselessNegativeZero(testFunction) -{ - if (jscOptions().useMaximalFlushInsertionPhase) { - // If we forced a flush after the operation, the negative zero becomes - // observable and we may be overly optimistic. - return numberOfDFGCompiles(testFunction) <= 2; - } - return numberOfDFGCompiles(testFunction) <= 1; -} - - -// Test Math.floor() on a completely typed input, but without negative zero. -function testSingleTypeWithoutNegativeZeroCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueFloor(argument) { - return Math.floor(argument) + 0; - } - noInline(opaqueFloor); - noOSRExitFuzzing(opaqueFloor); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueFloor(${testCaseInput[0]}), ${testCaseInput[1]} + 0)) { - throw "Failed testSingleTypeWithoutNegativeZeroCall()"; - } - } - if (!checkCompileCountForUselessNegativeZero(opaqueFloor)) - throw "We should have compiled a single floor for the expected type."; - `); - } -} -testSingleTypeWithoutNegativeZeroCall(); - - -// Test Math.floor() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueFloorOnConstant() { - return Math.floor(${testCaseInput[0]}); - } - noInline(opaqueFloorOnConstant); - noOSRExitFuzzing(opaqueFloorOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueFloorOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueFloorOnConstant) > 1) - throw "We should have compiled a single floor for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueFloorForSideEffects(argument) { - return Math.floor(argument); -} -noInline(opaqueFloorForSideEffects); -noOSRExitFuzzing(opaqueFloorForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let floor16 = Math.floor(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueFloorForSideEffects(testObject) !== floor16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueFloorForSideEffects) > 1) - throw "opaqueFloorForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify floor() is not subject to CSE if the argument has side effects. -function opaqueFloorForCSE(argument) { - return Math.floor(argument) + Math.floor(argument) + Math.floor(argument); -} -noInline(opaqueFloorForCSE); -noOSRExitFuzzing(opaqueFloorForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let floor16 = Math.floor(16); - let threeFloor16 = floor16 + floor16 + floor16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueFloorForCSE(testObject) !== threeFloor16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueFloorForCSE) > 1) - throw "opaqueFloorForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify floor() is not subject to DCE if the argument has side effects. -function opaqueFloorForDCE(argument) { - Math.floor(argument); -} -noInline(opaqueFloorForDCE); -noOSRExitFuzzing(opaqueFloorForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueFloorForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueFloorForDCE) > 1) - throw "opaqueFloorForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueFloorWithException(argument) { - let result = Math.floor(argument); - ++counter; - return result; - } - noInline(opaqueFloorWithException); - - let testObject = { valueOf: () => { return 64; } }; - let floor64 = Math.floor(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueFloorWithException(testObject) !== floor64) - throw "Incorrect result in opaqueFloorWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueFloorWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueFloorWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-fround-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-fround-on-various-types.js deleted file mode 100644 index 9a99e47893eedcaed0f64295992044a4c8f74dbd..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-fround-on-various-types.js +++ /dev/null @@ -1,238 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let froundOfPi = Math.fround(Math.PI); -let froundOfE = Math.fround(Math.E); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["1.", "1"], - ["Math.PI", "" + froundOfPi], - ["Math.E", "" + froundOfE], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"" + Math.PI + "\"", "" + froundOfPi], - ["{ valueOf: () => { return Math.E; } }", "" + froundOfE], - ["{ valueOf: () => { return 1; } }", "1"], - ["{ valueOf: () => { return Math.PI; } }", "" + froundOfPi], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - -// Test Math.fround() without arguments. -function opaqueFRoundNoArgument() { - return Math.fround(); -} -noInline(opaqueFRoundNoArgument); -noOSRExitFuzzing(opaqueFRoundNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueFRoundNoArgument(); - if (output === output) { - throw "Failed opaqueFRoundNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueFRoundNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - -// Test Math.fround() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesFround(argument) { - return Math.fround(argument); -} -noInline(opaqueAllTypesFround); -noOSRExitFuzzing(opaqueAllTypesFround); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesFround(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesFround) > 2) - throw "We should have detected fround() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.fround() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueFround(argument) { - return Math.fround(argument); - } - noInline(opaqueFround); - noOSRExitFuzzing(opaqueFround); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueFround(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueFround) > 1) - throw "We should have compiled a single fround for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.fround() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueFroundOnConstant() { - return Math.fround(${testCaseInput[0]}); - } - noInline(opaqueFroundOnConstant); - noOSRExitFuzzing(opaqueFroundOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueFroundOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueFroundOnConstant) > 1) - throw "We should have compiled a single fround for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueFroundForSideEffects(argument) { - return Math.fround(argument); -} -noInline(opaqueFroundForSideEffects); -noOSRExitFuzzing(opaqueFroundForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let fround16 = Math.fround(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueFroundForSideEffects(testObject) !== fround16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueFroundForSideEffects) > 1) - throw "opaqueFroundForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify fround() is not subject to CSE if the argument has side effects. -function opaqueFroundForCSE(argument) { - return Math.fround(argument) + Math.fround(argument) + Math.fround(argument); -} -noInline(opaqueFroundForCSE); -noOSRExitFuzzing(opaqueFroundForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let fround16 = Math.fround(16); - let threeFround16 = fround16 + fround16 + fround16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueFroundForCSE(testObject) !== threeFround16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueFroundForCSE) > 1) - throw "opaqueFroundForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify fround() is not subject to DCE if the argument has side effects. -function opaqueFroundForDCE(argument) { - Math.fround(argument); -} -noInline(opaqueFroundForDCE); -noOSRExitFuzzing(opaqueFroundForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueFroundForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueFroundForDCE) > 1) - throw "opaqueFroundForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueFroundWithException(argument) { - let result = Math.fround(argument); - ++counter; - return result; - } - noInline(opaqueFroundWithException); - - let testObject = { valueOf: () => { return 64; } }; - let fround64 = Math.fround(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueFroundWithException(testObject) !== fround64) - throw "Incorrect result in opaqueFroundWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueFroundWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueFroundWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-log-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-log-on-various-types.js deleted file mode 100644 index c78fbd6481eaeaf1dd15b21cf0c8a24491e5319f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-log-on-various-types.js +++ /dev/null @@ -1,240 +0,0 @@ -//@ skip if not $jitTests -//@ runNoCJITValidatePhases -//@ runFTLNoCJITValidate -"use strict"; - -let logOfFour = Math.log(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "-Infinity"], - ["0", "-Infinity"], - ["-0.", "-Infinity"], - ["1.", "0"], - ["4", "" + logOfFour], - ["Math.E", "1"], - ["Infinity", "Infinity"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + logOfFour], - ["{ valueOf: () => { return Math.E; } }", "1"], - ["{ valueOf: () => { return 1; } }", "0"], - ["{ valueOf: () => { return 4; } }", "" + logOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.log() without arguments. -function opaqueLogNoArgument() { - return Math.log(); -} -noInline(opaqueLogNoArgument); -noOSRExitFuzzing(opaqueLogNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueLogNoArgument(); - if (output === output) { - throw "Failed opaqueLogNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueLogNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.log() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesLog(argument) { - return Math.log(argument); -} -noInline(opaqueAllTypesLog); -noOSRExitFuzzing(opaqueAllTypesLog); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesLog(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesLog) > 2) - throw "We should have detected log() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.log() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueLog(argument) { - return Math.log(argument); - } - noInline(opaqueLog); - noOSRExitFuzzing(opaqueLog); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueLog(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueLog) > 1) - throw "We should have compiled a single log for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.log() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueLogOnConstant() { - return Math.log(${testCaseInput[0]}); - } - noInline(opaqueLogOnConstant); - noOSRExitFuzzing(opaqueLogOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueLogOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueLogOnConstant) > 1) - throw "We should have compiled a single log for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueLogForSideEffects(argument) { - return Math.log(argument); -} -noInline(opaqueLogForSideEffects); -noOSRExitFuzzing(opaqueLogForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let log16 = Math.log(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueLogForSideEffects(testObject) !== log16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueLogForSideEffects) > 1) - throw "opaqueLogForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify log() is not subject to CSE if the argument has side effects. -function opaqueLogForCSE(argument) { - return Math.log(argument) + Math.log(argument) + Math.log(argument); -} -noInline(opaqueLogForCSE); -noOSRExitFuzzing(opaqueLogForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let log16 = Math.log(16); - let threeLog16 = log16 + log16 + log16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueLogForCSE(testObject) !== threeLog16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueLogForCSE) > 1) - throw "opaqueLogForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify log() is not subject to DCE if the argument has side effects. -function opaqueLogForDCE(argument) { - Math.log(argument); -} -noInline(opaqueLogForDCE); -noOSRExitFuzzing(opaqueLogForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueLogForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueLogForDCE) > 1) - throw "opaqueLogForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueLogWithException(argument) { - let result = Math.log(argument); - ++counter; - return result; - } - noInline(opaqueLogWithException); - - let testObject = { valueOf: () => { return 64; } }; - let log64 = Math.log(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueLogWithException(testObject) !== log64) - throw "Incorrect result in opaqueLogWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueLogWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueLogWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-log10-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-log10-on-various-types.js deleted file mode 100644 index 002f543d81a7a7394b1fe071efbee4d8a577b9a1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-log10-on-various-types.js +++ /dev/null @@ -1,237 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let log10OfHalf = Math.log10(0.5); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "-Infinity"], - ["1", "0"], - ["0", "-Infinity"], - ["-0.", "-Infinity"], - ["0.5", "" + log10OfHalf], - ["Math.PI", "" + Math.log10(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"0.5\"", "" + log10OfHalf], - ["{ valueOf: () => { return 0.5; } }", "" + log10OfHalf], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.log10() without arguments. -function opaqueLog10NoArgument() { - return Math.log10(); -} -noInline(opaqueLog10NoArgument); -noOSRExitFuzzing(opaqueLog10NoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueLog10NoArgument(); - if (output === output) { - throw "Failed opaqueLog10NoArgument"; - } - } - if (numberOfDFGCompiles(opaqueLog10NoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.log10() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesLog10(argument) { - return Math.log10(argument); -} -noInline(opaqueAllTypesLog10); -noOSRExitFuzzing(opaqueAllTypesLog10); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesLog10(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesLog10) > 2) - throw "We should have detected log10() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.log10() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueLog10(argument) { - return Math.log10(argument); - } - noInline(opaqueLog10); - noOSRExitFuzzing(opaqueLog10); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueLog10(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueLog10) > 1) - throw "We should have compiled a single log10 for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.log10() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueLog10OnConstant() { - return Math.log10(${testCaseInput[0]}); - } - noInline(opaqueLog10OnConstant); - noOSRExitFuzzing(opaqueLog10OnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueLog10OnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueLog10OnConstant) > 1) - throw "We should have compiled a single log10 for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueLog10ForSideEffects(argument) { - return Math.log10(argument); -} -noInline(opaqueLog10ForSideEffects); -noOSRExitFuzzing(opaqueLog10ForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let log10Result = Math.log10(0.2); - for (let i = 0; i < 1e4; ++i) { - if (opaqueLog10ForSideEffects(testObject) !== log10Result) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueLog10ForSideEffects) > 1) - throw "opaqueLog10ForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify log10() is not subject to CSE if the argument has side effects. -function opaqueLog10ForCSE(argument) { - return Math.log10(argument) + Math.log10(argument) + Math.log10(argument); -} -noInline(opaqueLog10ForCSE); -noOSRExitFuzzing(opaqueLog10ForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let log10Result = Math.log10(0.2); - let threelog10Result = log10Result + log10Result + log10Result; - for (let i = 0; i < 1e4; ++i) { - if (opaqueLog10ForCSE(testObject) !== threelog10Result) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueLog10ForCSE) > 1) - throw "opaqueLog10ForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify log10() is not subject to DCE if the argument has side effects. -function opaqueLog10ForDCE(argument) { - Math.log10(argument); -} -noInline(opaqueLog10ForDCE); -noOSRExitFuzzing(opaqueLog10ForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueLog10ForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueLog10ForDCE) > 1) - throw "opaqueLog10ForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueLog10WithException(argument) { - let result = Math.log10(argument); - ++counter; - return result; - } - noInline(opaqueLog10WithException); - - let testObject = { valueOf: () => { return 0.1; } }; - let log10Result = Math.log10(0.1); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueLog10WithException(testObject) !== log10Result) - throw "Incorrect result in opaqueLog10WithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 0.1; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueLog10WithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueLog10WithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-log2-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-log2-on-various-types.js deleted file mode 100644 index 3a8ab178da2361335b94c97dd427833764480228..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-log2-on-various-types.js +++ /dev/null @@ -1,237 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let log2OfHalf = Math.log2(0.5); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "-Infinity"], - ["1", "0"], - ["0", "-Infinity"], - ["-0.", "-Infinity"], - ["0.5", "" + log2OfHalf], - ["Math.PI", "" + Math.log2(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"0.5\"", "" + log2OfHalf], - ["{ valueOf: () => { return 0.5; } }", "" + log2OfHalf], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.log2() without arguments. -function opaqueLog2NoArgument() { - return Math.log2(); -} -noInline(opaqueLog2NoArgument); -noOSRExitFuzzing(opaqueLog2NoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueLog2NoArgument(); - if (output === output) { - throw "Failed opaqueLog2NoArgument"; - } - } - if (numberOfDFGCompiles(opaqueLog2NoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.log2() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesLog2(argument) { - return Math.log2(argument); -} -noInline(opaqueAllTypesLog2); -noOSRExitFuzzing(opaqueAllTypesLog2); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesLog2(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesLog2) > 2) - throw "We should have detected log2() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.log2() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueLog2(argument) { - return Math.log2(argument); - } - noInline(opaqueLog2); - noOSRExitFuzzing(opaqueLog2); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueLog2(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueLog2) > 1) - throw "We should have compiled a single log2 for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.log2() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueLog2OnConstant() { - return Math.log2(${testCaseInput[0]}); - } - noInline(opaqueLog2OnConstant); - noOSRExitFuzzing(opaqueLog2OnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueLog2OnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueLog2OnConstant) > 1) - throw "We should have compiled a single log2 for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueLog2ForSideEffects(argument) { - return Math.log2(argument); -} -noInline(opaqueLog2ForSideEffects); -noOSRExitFuzzing(opaqueLog2ForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let log2Result = Math.log2(0.2); - for (let i = 0; i < 1e4; ++i) { - if (opaqueLog2ForSideEffects(testObject) !== log2Result) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueLog2ForSideEffects) > 1) - throw "opaqueLog2ForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify log2() is not subject to CSE if the argument has side effects. -function opaqueLog2ForCSE(argument) { - return Math.log2(argument) + Math.log2(argument) + Math.log2(argument); -} -noInline(opaqueLog2ForCSE); -noOSRExitFuzzing(opaqueLog2ForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - let log2Result = Math.log2(0.2); - let threelog2Result = log2Result + log2Result + log2Result; - for (let i = 0; i < 1e4; ++i) { - if (opaqueLog2ForCSE(testObject) !== threelog2Result) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueLog2ForCSE) > 1) - throw "opaqueLog2ForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify log2() is not subject to DCE if the argument has side effects. -function opaqueLog2ForDCE(argument) { - Math.log2(argument); -} -noInline(opaqueLog2ForDCE); -noOSRExitFuzzing(opaqueLog2ForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 0.2; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueLog2ForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueLog2ForDCE) > 1) - throw "opaqueLog2ForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueLog2WithException(argument) { - let result = Math.log2(argument); - ++counter; - return result; - } - noInline(opaqueLog2WithException); - - let testObject = { valueOf: () => { return 0.1; } }; - let log2Result = Math.log2(0.1); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueLog2WithException(testObject) !== log2Result) - throw "Incorrect result in opaqueLog2WithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 0.1; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueLog2WithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueLog2WithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-negate-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-negate-on-various-types.js deleted file mode 100644 index 7d3f19209ffed4da701bbf9c60b17997929fa1d3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-negate-on-various-types.js +++ /dev/null @@ -1,284 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "-0"], - ["0", "-0"], - ["-0.", "0"], - ["0.5", "-0.5"], - ["-0.5", "0.5"], - ["4", "-4"], - ["42.1", "-42.1"], - ["42.5", "-42.5"], - ["42.9", "-42.9"], - ["-42.1", "42.1"], - ["-42.5", "42.5"], - ["-42.9", "42.9"], - ["Math.PI", "-Math.PI"], - ["Infinity", "-Infinity"], - ["-Infinity", "Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "-4"], - ["\"42.5\"", "-42.5"], - ["{ valueOf: () => { return 4; } }", "-4"], - ["{ valueOf: () => { return 0; } }", "-0"], - ["{ valueOf: () => { return -0; } }", "0"], - ["{ valueOf: () => { return 0.5; } }", "-0.5"], - ["{ valueOf: () => { return -0.5; } }", "0.5"], - ["{ valueOf: () => { return Number.MIN_SAFE_INTEGER; } }", "9007199254740991"], - ["{ valueOf: () => { return Number.MAX_SAFE_INTEGER; } }", "-9007199254740991"], - ["{ valueOf: () => { return 0x80000000|0; } }", "2147483648"], - ["{ valueOf: () => { return 0x7fffffff|0; } }", "-2147483647"], - ["{ valueOf: () => { return (0x80000000|0) - 0.5; } }", "2147483648.5"], - ["{ valueOf: () => { return (0x7fffffff|0) + 0.5; } }", "-2147483647.5"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && (1 / expected) !== (1 / result)) - return false; - - return true; - } - return result !== result; -} - - -// Test negate with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesNegate(argument) { - return -(argument); -} -noInline(opaqueAllTypesNegate); -noOSRExitFuzzing(opaqueAllTypesNegate); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesNegate(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesNegate) > 3) - throw "We should have detected negate was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Polymorphic input but negative zero is not observable. -function opaqueAllTypesNegateWithoutNegativeZero(argument) { - return -(argument) + 0; -} -noInline(opaqueAllTypesNegateWithoutNegativeZero); -noOSRExitFuzzing(opaqueAllTypesNegateWithoutNegativeZero); - -function testAllTypesWithoutNegativeZeroCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesNegateWithoutNegativeZero(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1] + 0)) - throw "Failed testAllTypesWithoutNegativeZeroCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesNegate) > 3) - throw "We should have detected negate was polymorphic and generated a generic version."; -} -testAllTypesWithoutNegativeZeroCall(); - - -// Test negate on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueNegate(argument) { - return -(argument); - } - noInline(opaqueNegate); - noOSRExitFuzzing(opaqueNegate); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueNegate(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueNegate) > 1) - throw "Failed testSingleTypeCall(). We should have compiled a single negate for the expected type."; - `); - } -} -testSingleTypeCall(); - - -function checkCompileCountForUselessNegativeZero(testFunction) -{ - if (jscOptions().useMaximalFlushInsertionPhase) { - // If we forced a flush after the operation, the negative zero becomes - // observable and we may be overly optimistic. - return numberOfDFGCompiles(testFunction) <= 2; - } - return numberOfDFGCompiles(testFunction) <= 1; -} - - -// Test negate on a completely typed input, but without negative zero. -function testSingleTypeWithoutNegativeZeroCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueNegate(argument) { - return -(argument) + 0; - } - noInline(opaqueNegate); - noOSRExitFuzzing(opaqueNegate); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueNegate(${testCaseInput[0]}), ${testCaseInput[1]} + 0)) { - throw "Failed testSingleTypeWithoutNegativeZeroCall()"; - } - } - if (!checkCompileCountForUselessNegativeZero(opaqueNegate)) - throw "Failed testSingleTypeWithoutNegativeZeroCall(). We should have compiled a single negate for the expected type."; - `); - } -} -testSingleTypeWithoutNegativeZeroCall(); - - -// Test negate on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueNegateOnConstant() { - return -(${testCaseInput[0]}); - } - noInline(opaqueNegateOnConstant); - noOSRExitFuzzing(opaqueNegateOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueNegateOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueNegateOnConstant) > 1) - throw "Failed testConstant(). We should have compiled a single negate for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueNegateForSideEffects(argument) { - return -(argument); -} -noInline(opaqueNegateForSideEffects); -noOSRExitFuzzing(opaqueNegateForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - if (opaqueNegateForSideEffects(testObject) !== -16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueNegateForSideEffects) > 1) - throw "opaqueNegateForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify negate is not subject to CSE if the argument has side effects. -function opaqueNegateForCSE(argument) { - return -(argument) + -(argument) + -(argument); -} -noInline(opaqueNegateForCSE); -noOSRExitFuzzing(opaqueNegateForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - if (opaqueNegateForCSE(testObject) !== -48) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueNegateForCSE) > 1) - throw "opaqueNegateForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify negate is not subject to DCE if the argument has side effects. -function opaqueNegateForDCE(argument) { - -(argument); -} -noInline(opaqueNegateForDCE); -noOSRExitFuzzing(opaqueNegateForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueNegateForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueNegateForDCE) > 1) - throw "opaqueNegateForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueNegateWithException(argument) { - let result = -(argument); - ++counter; - return result; - } - noInline(opaqueNegateWithException); - - let testObject = { valueOf: () => { return 64; } }; - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueNegateWithException(testObject) !== -64) - throw "Incorrect result in opaqueNegateWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueNegateWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueNegateWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-round-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-round-on-various-types.js deleted file mode 100644 index eb893393e1ac3f5a5005f4d82ec4f10624ca991d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-round-on-various-types.js +++ /dev/null @@ -1,308 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "1"], - ["-0.5", "-0"], - ["4", "4"], - ["42.1", "42"], - ["42.5", "43"], - ["42.9", "43"], - ["-42.1", "-42"], - ["-42.5", "-42"], - ["-42.9", "-43"], - ["Math.PI", "3"], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "4"], - ["\"42.5\"", "43"], - ["{ valueOf: () => { return 4; } }", "4"], - ["{ valueOf: () => { return 0; } }", "0"], - ["{ valueOf: () => { return -0; } }", "-0"], - ["{ valueOf: () => { return 0.5; } }", "1"], - ["{ valueOf: () => { return -0.5; } }", "-0"], - ["{ valueOf: () => { return Number.MIN_SAFE_INTEGER; } }", "-9007199254740991"], - ["{ valueOf: () => { return Number.MAX_SAFE_INTEGER; } }", "9007199254740991"], - ["{ valueOf: () => { return 0x80000000|0; } }", "-2147483648"], - ["{ valueOf: () => { return 0x7fffffff|0; } }", "2147483647"], - ["{ valueOf: () => { return (0x80000000|0) - 0.5; } }", "-2147483648"], - ["{ valueOf: () => { return (0x7fffffff|0) + 0.5; } }", "2147483648"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && (1 / expected) !== (1 / result)) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.round() without arguments. -function opaqueRoundNoArgument() { - return Math.round(); -} -noInline(opaqueRoundNoArgument); -noOSRExitFuzzing(opaqueRoundNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueRoundNoArgument(); - if (!isIdentical(output, NaN)) { - throw "Failed opaqueRoundNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueRoundNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.round() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesRound(argument) { - return Math.round(argument); -} -noInline(opaqueAllTypesRound); -noOSRExitFuzzing(opaqueAllTypesRound); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesRound(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesRound) > 3) - throw "We should have detected round() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Polymorphic input but negative zero is not observable. -function opaqueAllTypesRoundWithoutNegativeZero(argument) { - return Math.round(argument) + 0; -} -noInline(opaqueAllTypesRoundWithoutNegativeZero); -noOSRExitFuzzing(opaqueAllTypesRoundWithoutNegativeZero); - -function testAllTypesWithoutNegativeZeroCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesRoundWithoutNegativeZero(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1] + 0)) - throw "Failed testAllTypesWithoutNegativeZeroCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesRound) > 3) - throw "We should have detected round() was polymorphic and generated a generic version."; -} -testAllTypesWithoutNegativeZeroCall(); - - -// Test Math.round() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueRound(argument) { - return Math.round(argument); - } - noInline(opaqueRound); - noOSRExitFuzzing(opaqueRound); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueRound(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueRound) > 1) - throw "We should have compiled a single round for the expected type."; - `); - } -} -testSingleTypeCall(); - - -function checkCompileCountForUselessNegativeZero(testFunction) -{ - if (jscOptions().useMaximalFlushInsertionPhase) { - // If we forced a flush after the operation, the negative zero becomes - // observable and we may be overly optimistic. - return numberOfDFGCompiles(testFunction) <= 2; - } - return numberOfDFGCompiles(testFunction) <= 1; -} - - -// Test Math.round() on a completely typed input, but without negative zero. -function testSingleTypeWithoutNegativeZeroCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueRound(argument) { - return Math.round(argument) + 0; - } - noInline(opaqueRound); - noOSRExitFuzzing(opaqueRound); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueRound(${testCaseInput[0]}), ${testCaseInput[1]} + 0)) { - throw "Failed testSingleTypeWithoutNegativeZeroCall()"; - } - } - if (!checkCompileCountForUselessNegativeZero(opaqueRound)) - throw "We should have compiled a single round for the expected type."; - `); - } -} -testSingleTypeWithoutNegativeZeroCall(); - - -// Test Math.round() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueRoundOnConstant() { - return Math.round(${testCaseInput[0]}); - } - noInline(opaqueRoundOnConstant); - noOSRExitFuzzing(opaqueRoundOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueRoundOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueRoundOnConstant) > 1) - throw "We should have compiled a single round for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueRoundForSideEffects(argument) { - return Math.round(argument); -} -noInline(opaqueRoundForSideEffects); -noOSRExitFuzzing(opaqueRoundForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let round16 = Math.round(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueRoundForSideEffects(testObject) !== round16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueRoundForSideEffects) > 1) - throw "opaqueRoundForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify round() is not subject to CSE if the argument has side effects. -function opaqueRoundForCSE(argument) { - return Math.round(argument) + Math.round(argument) + Math.round(argument); -} -noInline(opaqueRoundForCSE); -noOSRExitFuzzing(opaqueRoundForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let round16 = Math.round(16); - let threeRound16 = round16 + round16 + round16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueRoundForCSE(testObject) !== threeRound16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueRoundForCSE) > 1) - throw "opaqueRoundForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify round() is not subject to DCE if the argument has side effects. -function opaqueRoundForDCE(argument) { - Math.round(argument); -} -noInline(opaqueRoundForDCE); -noOSRExitFuzzing(opaqueRoundForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueRoundForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueRoundForDCE) > 1) - throw "opaqueRoundForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueRoundWithException(argument) { - let result = Math.round(argument); - ++counter; - return result; - } - noInline(opaqueRoundWithException); - - let testObject = { valueOf: () => { return 64; } }; - let round64 = Math.round(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueRoundWithException(testObject) !== round64) - throw "Incorrect result in opaqueRoundWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueRoundWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueRoundWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-sin-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-sin-on-various-types.js deleted file mode 100644 index 19417f6fa4390013745242bd87fd1aedcbf300c5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-sin-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let sinOfFour = Math.sin(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["4", "" + sinOfFour], - ["Math.PI", "" + Math.sin(Math.PI)], - ["Infinity", "NaN"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + sinOfFour], - ["{ valueOf: () => { return 4; } }", "" + sinOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.sin() without arguments. -function opaqueSinNoArgument() { - return Math.sin(); -} -noInline(opaqueSinNoArgument); -noOSRExitFuzzing(opaqueSinNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueSinNoArgument(); - if (output === output) { - throw "Failed opaqueSinNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueSinNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.sin() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesSin(argument) { - return Math.sin(argument); -} -noInline(opaqueAllTypesSin); -noOSRExitFuzzing(opaqueAllTypesSin); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesSin(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesSin) > 2) - throw "We should have detected sin() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.sin() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueSin(argument) { - return Math.sin(argument); - } - noInline(opaqueSin); - noOSRExitFuzzing(opaqueSin); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueSin(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueSin) > 1) - throw "We should have compiled a single sin for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.sin() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueSinOnConstant() { - return Math.sin(${testCaseInput[0]}); - } - noInline(opaqueSinOnConstant); - noOSRExitFuzzing(opaqueSinOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueSinOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueSinOnConstant) > 1) - throw "We should have compiled a single sin for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueSinForSideEffects(argument) { - return Math.sin(argument); -} -noInline(opaqueSinForSideEffects); -noOSRExitFuzzing(opaqueSinForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let sin16 = Math.sin(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueSinForSideEffects(testObject) !== sin16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueSinForSideEffects) > 1) - throw "opaqueSinForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify sin() is not subject to CSE if the argument has side effects. -function opaqueSinForCSE(argument) { - return Math.sin(argument) + Math.sin(argument) + Math.sin(argument); -} -noInline(opaqueSinForCSE); -noOSRExitFuzzing(opaqueSinForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let sin16 = Math.sin(16); - let threeSin16 = sin16 + sin16 + sin16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueSinForCSE(testObject) !== threeSin16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueSinForCSE) > 1) - throw "opaqueSinForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify sin() is not subject to DCE if the argument has side effects. -function opaqueSinForDCE(argument) { - Math.sin(argument); -} -noInline(opaqueSinForDCE); -noOSRExitFuzzing(opaqueSinForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueSinForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueSinForDCE) > 1) - throw "opaqueSinForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueSinWithException(argument) { - let result = Math.sin(argument); - ++counter; - return result; - } - noInline(opaqueSinWithException); - - let testObject = { valueOf: () => { return 64; } }; - let sin64 = Math.sin(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueSinWithException(testObject) !== sin64) - throw "Incorrect result in opaqueSinWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueSinWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueSinWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-sinh-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-sinh-on-various-types.js deleted file mode 100644 index 516b932b00ca98990e7619b8ab4d03df7a042219..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-sinh-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let sinhOfFour = Math.sinh(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["4", "" + sinhOfFour], - ["Math.PI", "" + Math.sinh(Math.PI)], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + sinhOfFour], - ["{ valueOf: () => { return 4; } }", "" + sinhOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.sinh() without arguments. -function opaqueSinhNoArgument() { - return Math.sinh(); -} -noInline(opaqueSinhNoArgument); -noOSRExitFuzzing(opaqueSinhNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueSinhNoArgument(); - if (output === output) { - throw "Failed opaqueSinhNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueSinhNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.sinh() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesSinh(argument) { - return Math.sinh(argument); -} -noInline(opaqueAllTypesSinh); -noOSRExitFuzzing(opaqueAllTypesSinh); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesSinh(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesSinh) > 2) - throw "We should have detected sinh() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.sinh() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueSinh(argument) { - return Math.sinh(argument); - } - noInline(opaqueSinh); - noOSRExitFuzzing(opaqueSinh); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueSinh(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueSinh) > 1) - throw "We should have compiled a single sinh for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.sinh() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueSinhOnConstant() { - return Math.sinh(${testCaseInput[0]}); - } - noInline(opaqueSinhOnConstant); - noOSRExitFuzzing(opaqueSinhOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueSinhOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueSinhOnConstant) > 1) - throw "We should have compiled a single sinh for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueSinhForSideEffects(argument) { - return Math.sinh(argument); -} -noInline(opaqueSinhForSideEffects); -noOSRExitFuzzing(opaqueSinhForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let sinh16 = Math.sinh(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueSinhForSideEffects(testObject) !== sinh16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueSinhForSideEffects) > 1) - throw "opaqueSinhForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify sinh() is not subject to CSE if the argument has side effects. -function opaqueSinhForCSE(argument) { - return Math.sinh(argument) + Math.sinh(argument) + Math.sinh(argument); -} -noInline(opaqueSinhForCSE); -noOSRExitFuzzing(opaqueSinhForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let sinh16 = Math.sinh(16); - let threeSinh16 = sinh16 + sinh16 + sinh16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueSinhForCSE(testObject) !== threeSinh16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueSinhForCSE) > 1) - throw "opaqueSinhForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify sinh() is not subject to DCE if the argument has side effects. -function opaqueSinhForDCE(argument) { - Math.sinh(argument); -} -noInline(opaqueSinhForDCE); -noOSRExitFuzzing(opaqueSinhForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueSinhForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueSinhForDCE) > 1) - throw "opaqueSinhForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueSinhWithException(argument) { - let result = Math.sinh(argument); - ++counter; - return result; - } - noInline(opaqueSinhWithException); - - let testObject = { valueOf: () => { return 64; } }; - let sinh64 = Math.sinh(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueSinhWithException(testObject) !== sinh64) - throw "Incorrect result in opaqueSinhWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueSinhWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueSinhWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-sqrt-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-sqrt-on-various-types.js deleted file mode 100644 index 6004cd3ea248ac88cec00456c4e5a9b945fb7432..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-sqrt-on-various-types.js +++ /dev/null @@ -1,230 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0."], - ["4", "2"], - ["42.5", "6.519202405202649"], - ["Infinity", "Infinity"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "2"], - ["{ valueOf: () => { return 4; } }", "2"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.sqrt() without arguments. -function opaqueSqrtNoArgument() { - return Math.sqrt(); -} -noInline(opaqueSqrtNoArgument); -noOSRExitFuzzing(opaqueSqrtNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueSqrtNoArgument(); - if (output === output) { - throw "Failed opaqueSqrtNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueSqrtNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.sqrt() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesSqrt(argument) { - return Math.sqrt(argument); -} -noInline(opaqueAllTypesSqrt); -noOSRExitFuzzing(opaqueAllTypesSqrt); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesSqrt(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesSqrt) > 2) - throw "We should have detected sqrt() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.sqrt() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueSqrt(argument) { - return Math.sqrt(argument); - } - noInline(opaqueSqrt); - noOSRExitFuzzing(opaqueSqrt); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueSqrt(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueSqrt) > 1) - throw "We should have compiled a single sqrt for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.sqrt() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueSqrtOnConstant() { - return Math.sqrt(${testCaseInput[0]}); - } - noInline(opaqueSqrtOnConstant); - noOSRExitFuzzing(opaqueSqrtOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueSqrtOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueSqrtOnConstant) > 1) - throw "We should have compiled a single sqrt for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueSqrtForSideEffects(argument) { - return Math.sqrt(argument); -} -noInline(opaqueSqrtForSideEffects); -noOSRExitFuzzing(opaqueSqrtForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - if (opaqueSqrtForSideEffects(testObject) !== 4) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueSqrtForSideEffects) > 1) - throw "opaqueSqrtForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify sqrt() is not subject to CSE if the argument has side effects. -function opaqueSqrtForCSE(argument) { - return Math.sqrt(argument) + Math.sqrt(argument) + Math.sqrt(argument); -} -noInline(opaqueSqrtForCSE); -noOSRExitFuzzing(opaqueSqrtForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - if (opaqueSqrtForCSE(testObject) !== 12) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueSqrtForCSE) > 1) - throw "opaqueSqrtForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify sqrt() is not subject to DCE if the argument has side effects. -function opaqueSqrtForDCE(argument) { - Math.sqrt(argument); -} -noInline(opaqueSqrtForDCE); -noOSRExitFuzzing(opaqueSqrtForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueSqrtForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueSqrtForDCE) > 1) - throw "opaqueSqrtForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueSqrtWithException(argument) { - let result = Math.sqrt(argument); - ++counter; - return result; - } - noInline(opaqueSqrtWithException); - - let testObject = { valueOf: () => { return 64; } }; - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueSqrtWithException(testObject) !== 8) - throw "Incorrect result in opaqueSqrtWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueSqrtWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueSqrtWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-tan-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-tan-on-various-types.js deleted file mode 100644 index cda1456943129de00558c32e276becb705c93abe..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-tan-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let tanOfFour = Math.tan(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["4", "" + tanOfFour], - ["Math.PI", "" + Math.tan(Math.PI)], - ["Infinity", "NaN"], - ["-Infinity", "NaN"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + tanOfFour], - ["{ valueOf: () => { return 4; } }", "" + tanOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.tan() without arguments. -function opaqueTanNoArgument() { - return Math.tan(); -} -noInline(opaqueTanNoArgument); -noOSRExitFuzzing(opaqueTanNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueTanNoArgument(); - if (output === output) { - throw "Failed opaqueTanNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueTanNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.tan() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesTan(argument) { - return Math.tan(argument); -} -noInline(opaqueAllTypesTan); -noOSRExitFuzzing(opaqueAllTypesTan); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesTan(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesTan) > 2) - throw "We should have detected tan() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.tan() on a completely typed input. Every call see only one type. -function testTangleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTan(argument) { - return Math.tan(argument); - } - noInline(opaqueTan); - noOSRExitFuzzing(opaqueTan); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTan(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testTangleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueTan) > 1) - throw "We should have compiled a tangle tan for the expected type."; - `); - } -} -testTangleTypeCall(); - - -// Test Math.tan() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTanOnConstant() { - return Math.tan(${testCaseInput[0]}); - } - noInline(opaqueTanOnConstant); - noOSRExitFuzzing(opaqueTanOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTanOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueTanOnConstant) > 1) - throw "We should have compiled a tangle tan for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueTanForSideEffects(argument) { - return Math.tan(argument); -} -noInline(opaqueTanForSideEffects); -noOSRExitFuzzing(opaqueTanForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let tan16 = Math.tan(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueTanForSideEffects(testObject) !== tan16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueTanForSideEffects) > 1) - throw "opaqueTanForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify tan() is not subject to CSE if the argument has side effects. -function opaqueTanForCSE(argument) { - return Math.tan(argument) + Math.tan(argument) + Math.tan(argument); -} -noInline(opaqueTanForCSE); -noOSRExitFuzzing(opaqueTanForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let tan16 = Math.tan(16); - let threeTan16 = tan16 + tan16 + tan16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueTanForCSE(testObject) !== threeTan16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueTanForCSE) > 1) - throw "opaqueTanForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify tan() is not subject to DCE if the argument has side effects. -function opaqueTanForDCE(argument) { - Math.tan(argument); -} -noInline(opaqueTanForDCE); -noOSRExitFuzzing(opaqueTanForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueTanForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueTanForDCE) > 1) - throw "opaqueTanForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueTanWithException(argument) { - let result = Math.tan(argument); - ++counter; - return result; - } - noInline(opaqueTanWithException); - - let testObject = { valueOf: () => { return 64; } }; - let tan64 = Math.tan(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueTanWithException(testObject) !== tan64) - throw "Incorrect result in opaqueTanWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueTanWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueTanWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-tanh-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-tanh-on-various-types.js deleted file mode 100644 index 4b163bbc6e8e0632b674ac7f314140b4df1ad8ab..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-tanh-on-various-types.js +++ /dev/null @@ -1,236 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let tanhOfFour = Math.tanh(4); - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["4", "" + tanhOfFour], - ["Math.PI", "" + Math.tanh(Math.PI)], - ["Infinity", "1"], - ["-Infinity", "-1"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "" + tanhOfFour], - ["{ valueOf: () => { return 4; } }", "" + tanhOfFour], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected) - return (1 / expected) === (1 / result); - - return true; - } - return result !== result; -} - - -// Test Math.tanh() without arguments. -function opaqueTanhNoArgument() { - return Math.tanh(); -} -noInline(opaqueTanhNoArgument); -noOSRExitFuzzing(opaqueTanhNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueTanhNoArgument(); - if (output === output) { - throw "Failed opaqueTanhNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueTanhNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.tanh() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesTanh(argument) { - return Math.tanh(argument); -} -noInline(opaqueAllTypesTanh); -noOSRExitFuzzing(opaqueAllTypesTanh); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesTanh(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesTanh) > 2) - throw "We should have detected tanh() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Test Math.tanh() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTanh(argument) { - return Math.tanh(argument); - } - noInline(opaqueTanh); - noOSRExitFuzzing(opaqueTanh); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTanh(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueTanh) > 1) - throw "We should have compiled a single tanh for the expected type."; - `); - } -} -testSingleTypeCall(); - - -// Test Math.tanh() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTanhOnConstant() { - return Math.tanh(${testCaseInput[0]}); - } - noInline(opaqueTanhOnConstant); - noOSRExitFuzzing(opaqueTanhOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTanhOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueTanhOnConstant) > 1) - throw "We should have compiled a single tanh for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueTanhForSideEffects(argument) { - return Math.tanh(argument); -} -noInline(opaqueTanhForSideEffects); -noOSRExitFuzzing(opaqueTanhForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let tanh16 = Math.tanh(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueTanhForSideEffects(testObject) !== tanh16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueTanhForSideEffects) > 1) - throw "opaqueTanhForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify tanh() is not subject to CSE if the argument has side effects. -function opaqueTanhForCSE(argument) { - return Math.tanh(argument) + Math.tanh(argument) + Math.tanh(argument); -} -noInline(opaqueTanhForCSE); -noOSRExitFuzzing(opaqueTanhForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let tanh16 = Math.tanh(16); - let threeTanh16 = tanh16 + tanh16 + tanh16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueTanhForCSE(testObject) !== threeTanh16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueTanhForCSE) > 1) - throw "opaqueTanhForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify tanh() is not subject to DCE if the argument has side effects. -function opaqueTanhForDCE(argument) { - Math.tanh(argument); -} -noInline(opaqueTanhForDCE); -noOSRExitFuzzing(opaqueTanhForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueTanhForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueTanhForDCE) > 1) - throw "opaqueTanhForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueTanhWithException(argument) { - let result = Math.tanh(argument); - ++counter; - return result; - } - noInline(opaqueTanhWithException); - - let testObject = { valueOf: () => { return 64; } }; - let tanh64 = Math.tanh(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueTanhWithException(testObject) !== tanh64) - throw "Incorrect result in opaqueTanhWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueTanhWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueTanhWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/arith-trunc-on-various-types.js b/implementation-contributed/javascriptcore/stress/arith-trunc-on-various-types.js deleted file mode 100644 index 8469846ff926ebe8ff55b46865ac26980851841f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/arith-trunc-on-various-types.js +++ /dev/null @@ -1,308 +0,0 @@ -//@ skip if not $jitTests -//@ defaultNoEagerRun -"use strict"; - -let validInputTestCases = [ - // input as string, expected result as string. - ["undefined", "NaN"], - ["null", "0"], - ["0", "0"], - ["-0.", "-0"], - ["0.5", "0"], - ["-0.5", "-0"], - ["4", "4"], - ["42.1", "42"], - ["42.5", "42"], - ["42.9", "42"], - ["-42.1", "-42"], - ["-42.5", "-42"], - ["-42.9", "-42"], - ["Math.PI", "3"], - ["Infinity", "Infinity"], - ["-Infinity", "-Infinity"], - ["NaN", "NaN"], - ["\"WebKit\"", "NaN"], - ["\"4\"", "4"], - ["\"42.5\"", "42"], - ["{ valueOf: () => { return 4; } }", "4"], - ["{ valueOf: () => { return 0; } }", "0"], - ["{ valueOf: () => { return -0; } }", "-0"], - ["{ valueOf: () => { return 0.5; } }", "0"], - ["{ valueOf: () => { return -0.5; } }", "-0"], - ["{ valueOf: () => { return Number.MIN_SAFE_INTEGER; } }", "-9007199254740991"], - ["{ valueOf: () => { return Number.MAX_SAFE_INTEGER; } }", "9007199254740991"], - ["{ valueOf: () => { return 0x80000000|0; } }", "-2147483648"], - ["{ valueOf: () => { return 0x7fffffff|0; } }", "2147483647"], - ["{ valueOf: () => { return (0x80000000|0) - 0.5; } }", "-2147483648"], - ["{ valueOf: () => { return (0x7fffffff|0) + 0.5; } }", "2147483647"], -]; - -let validInputTypedTestCases = validInputTestCases.map((element) => { return [eval("(" + element[0] + ")"), eval(element[1])] }); - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && (1 / expected) !== (1 / result)) - return false; - - return true; - } - return result !== result; -} - - -// Test Math.trunc() without arguments. -function opaqueTruncNoArgument() { - return Math.trunc(); -} -noInline(opaqueTruncNoArgument); -noOSRExitFuzzing(opaqueTruncNoArgument); - -function testNoArgument() { - for (let i = 0; i < 1e4; ++i) { - let output = opaqueTruncNoArgument(); - if (!isIdentical(output, NaN)) { - throw "Failed opaqueTruncNoArgument"; - } - } - if (numberOfDFGCompiles(opaqueTruncNoArgument) > 1) - throw "The call without arguments should never exit."; -} -testNoArgument(); - - -// Test Math.trunc() with a very polymorphic input. All test cases are seen at each iteration. -function opaqueAllTypesTrunc(argument) { - return Math.trunc(argument); -} -noInline(opaqueAllTypesTrunc); -noOSRExitFuzzing(opaqueAllTypesTrunc); - -function testAllTypesCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesTrunc(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1])) - throw "Failed testAllTypesCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesTrunc) > 3) - throw "We should have detected trunc() was polymorphic and generated a generic version."; -} -testAllTypesCall(); - - -// Polymorphic input but negative zero is not observable. -function opaqueAllTypesTruncWithoutNegativeZero(argument) { - return Math.trunc(argument) + 0; -} -noInline(opaqueAllTypesTruncWithoutNegativeZero); -noOSRExitFuzzing(opaqueAllTypesTruncWithoutNegativeZero); - -function testAllTypesWithoutNegativeZeroCall() { - for (let i = 0; i < 1e3; ++i) { - for (let testCaseInput of validInputTypedTestCases) { - let output = opaqueAllTypesTruncWithoutNegativeZero(testCaseInput[0]); - if (!isIdentical(output, testCaseInput[1] + 0)) - throw "Failed testAllTypesWithoutNegativeZeroCall for input " + testCaseInput[0] + " expected " + testCaseInput[1] + " got " + output; - } - } - if (numberOfDFGCompiles(opaqueAllTypesTrunc) > 3) - throw "We should have detected trunc() was polymorphic and generated a generic version."; -} -testAllTypesWithoutNegativeZeroCall(); - - -// Test Math.trunc() on a completely typed input. Every call see only one type. -function testSingleTypeCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTrunc(argument) { - return Math.trunc(argument); - } - noInline(opaqueTrunc); - noOSRExitFuzzing(opaqueTrunc); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTrunc(${testCaseInput[0]}), ${testCaseInput[1]})) { - throw "Failed testSingleTypeCall()"; - } - } - if (numberOfDFGCompiles(opaqueTrunc) > 1) - throw "Failed testSingleTypeCall(). We should have compiled a single trunc for the expected type."; - `); - } -} -testSingleTypeCall(); - - -function checkCompileCountForUselessNegativeZero(testFunction) -{ - if (jscOptions().useMaximalFlushInsertionPhase) { - // If we forced a flush after the operation, the negative zero becomes - // observable and we may be overly optimistic. - return numberOfDFGCompiles(testFunction) <= 2; - } - return numberOfDFGCompiles(testFunction) <= 1; -} - - -// Test Math.trunc() on a completely typed input, but without negative zero. -function testSingleTypeWithoutNegativeZeroCall() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTrunc(argument) { - return Math.trunc(argument) + 0; - } - noInline(opaqueTrunc); - noOSRExitFuzzing(opaqueTrunc); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTrunc(${testCaseInput[0]}), ${testCaseInput[1]} + 0)) { - throw "Failed testSingleTypeWithoutNegativeZeroCall()"; - } - } - if (!checkCompileCountForUselessNegativeZero(opaqueTrunc)) - throw "Failed testSingleTypeWithoutNegativeZeroCall(). We should have compiled a single trunc for the expected type."; - `); - } -} -testSingleTypeWithoutNegativeZeroCall(); - - -// Test Math.trunc() on constants -function testConstant() { - for (let testCaseInput of validInputTestCases) { - eval(` - function opaqueTruncOnConstant() { - return Math.trunc(${testCaseInput[0]}); - } - noInline(opaqueTruncOnConstant); - noOSRExitFuzzing(opaqueTruncOnConstant); - - for (let i = 0; i < 1e4; ++i) { - if (!isIdentical(opaqueTruncOnConstant(), ${testCaseInput[1]})) { - throw "Failed testConstant()"; - } - } - if (numberOfDFGCompiles(opaqueTruncOnConstant) > 1) - throw "Failed testConstant(). We should have compiled a single trunc for the expected type."; - `); - } -} -testConstant(); - - -// Verify we call valueOf() exactly once per call. -function opaqueTruncForSideEffects(argument) { - return Math.trunc(argument); -} -noInline(opaqueTruncForSideEffects); -noOSRExitFuzzing(opaqueTruncForSideEffects); - -function testSideEffect() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let trunc16 = Math.trunc(16); - for (let i = 0; i < 1e4; ++i) { - if (opaqueTruncForSideEffects(testObject) !== trunc16) - throw "Incorrect result in testSideEffect()"; - } - if (testObject.counter !== 1e4) - throw "Failed testSideEffect()"; - if (numberOfDFGCompiles(opaqueTruncForSideEffects) > 1) - throw "opaqueTruncForSideEffects() is predictable, it should only be compiled once."; -} -testSideEffect(); - - -// Verify trunc() is not subject to CSE if the argument has side effects. -function opaqueTruncForCSE(argument) { - return Math.trunc(argument) + Math.trunc(argument) + Math.trunc(argument); -} -noInline(opaqueTruncForCSE); -noOSRExitFuzzing(opaqueTruncForCSE); - -function testCSE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - let trunc16 = Math.trunc(16); - let threeTrunc16 = trunc16 + trunc16 + trunc16; - for (let i = 0; i < 1e4; ++i) { - if (opaqueTruncForCSE(testObject) !== threeTrunc16) - throw "Incorrect result in testCSE()"; - } - if (testObject.counter !== 3e4) - throw "Failed testCSE()"; - if (numberOfDFGCompiles(opaqueTruncForCSE) > 1) - throw "opaqueTruncForCSE() is predictable, it should only be compiled once."; -} -testCSE(); - - -// Verify trunc() is not subject to DCE if the argument has side effects. -function opaqueTruncForDCE(argument) { - Math.trunc(argument); -} -noInline(opaqueTruncForDCE); -noOSRExitFuzzing(opaqueTruncForDCE); - -function testDCE() { - let testObject = { - counter: 0, - valueOf: function() { ++this.counter; return 16; } - }; - for (let i = 0; i < 1e4; ++i) { - opaqueTruncForDCE(testObject); - } - if (testObject.counter !== 1e4) - throw "Failed testDCE()"; - if (numberOfDFGCompiles(opaqueTruncForDCE) > 1) - throw "opaqueTruncForDCE() is predictable, it should only be compiled once."; -} -testDCE(); - - -// Test exceptions in the argument. -function testException() { - let counter = 0; - function opaqueTruncWithException(argument) { - let result = Math.trunc(argument); - ++counter; - return result; - } - noInline(opaqueTruncWithException); - - let testObject = { valueOf: () => { return 64; } }; - let trunc64 = Math.trunc(64); - - // Warm up without exception. - for (let i = 0; i < 1e3; ++i) { - if (opaqueTruncWithException(testObject) !== trunc64) - throw "Incorrect result in opaqueTruncWithException()"; - } - - let testThrowObject = { valueOf: () => { throw testObject; return 64; } }; - - for (let i = 0; i < 1e2; ++i) { - try { - if (opaqueTruncWithException(testThrowObject) !== 8) - throw "This code should not be reached!!"; - } catch (e) { - if (e !== testObject) { - throw "Wrong object thrown from opaqueTruncWithException." - } - } - } - - if (counter !== 1e3) { - throw "Invalid count in testException()"; - } -} -testException(); diff --git a/implementation-contributed/javascriptcore/stress/assign-argument-in-inlined-call.js b/implementation-contributed/javascriptcore/stress/assign-argument-in-inlined-call.js deleted file mode 100644 index de2d0010ac7fbabec9c9125ad23770c284015855..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/assign-argument-in-inlined-call.js +++ /dev/null @@ -1,27 +0,0 @@ -function f1(a) { - return a[0]; -} - -function getF2Arguments() { - return f2.arguments; -} - -noInline(getF2Arguments); - -function f2(a) { - a = f1(getF2Arguments()); - return a; -} - -function f3(a) { - return f2(a); -} - -noInline(f3); - -for (var i = 0; i < 10000; ++i) { - var result = f3(42); - if (result != 42) - throw "Error: bad result: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/assign-captured-argument-in-inlined-call.js b/implementation-contributed/javascriptcore/stress/assign-captured-argument-in-inlined-call.js deleted file mode 100644 index 59912be84cfc1ee312e5d57c30b018726d42306d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/assign-captured-argument-in-inlined-call.js +++ /dev/null @@ -1,21 +0,0 @@ -function f1(a) { - return a[0]; -} - -function f2(a) { - a = f1(arguments); - return a; -} - -function f3(a) { - return f2(a); -} - -noInline(f3); - -for (var i = 0; i < 10000; ++i) { - var result = f3(42); - if (result != 42) - throw "Error: bad result: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/assignment-in-function-call-bracket-node.js b/implementation-contributed/javascriptcore/stress/assignment-in-function-call-bracket-node.js index 54f70fefd68a0a37bf06952439bc4d290c97358e..a1d73e8fc8ddeaefb9d915943bff28c9f3b93d5b 100644 --- a/implementation-contributed/javascriptcore/stress/assignment-in-function-call-bracket-node.js +++ b/implementation-contributed/javascriptcore/stress/assignment-in-function-call-bracket-node.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/async-arrow-function-in-class-heritage.js b/implementation-contributed/javascriptcore/stress/async-arrow-function-in-class-heritage.js index 3e5c94f3d9407118b4b72dad41ffafeffbb53da7..3746dd1c52dfddb1f0490462972ad96dbd17fede 100644 --- a/implementation-contributed/javascriptcore/stress/async-arrow-function-in-class-heritage.js +++ b/implementation-contributed/javascriptcore/stress/async-arrow-function-in-class-heritage.js @@ -1,3 +1,9 @@ +// Reviewed +/** + * reviewed + * Tests class heritage failing with arrow functions (no constructor). Might have coverage, not found yet. + */ + function testSyntax(script) { try { eval(script); diff --git a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-arguments-binding.js b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-arguments-binding.js index 052187e7be7eb69cd3c271b8c16e49532f6c5884..4b79cd0915acf40c67ca83f099db04c966914e77 100644 --- a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-arguments-binding.js +++ b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-arguments-binding.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(expected, actual, msg) { if (msg === void 0) msg = ""; diff --git a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-binding-in-class.js b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-binding-in-class.js index a4871d8bd97cebf014775a0b6b9687e776b924c2..cf948ebb4688e2f1bc77c5a578cf39b04adc3f3f 100644 --- a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-binding-in-class.js +++ b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-binding-in-class.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(expected, actual, msg) { if (msg === void 0) msg = ""; diff --git a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-new.target-binding.js b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-new.target-binding.js index 843a737717c922a5856d8bfc77ea2db4e9a6f56e..699a0e0773d74809e279e16c7a0d4756a4cfc753 100644 --- a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-new.target-binding.js +++ b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-new.target-binding.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(expected, actual, msg) { if (msg === void 0) msg = ""; diff --git a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-super-binding.js b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-super-binding.js index abfde797b4258fb1310dbc0e118e1499f3ce4e3a..ab91affee7a21f00f80bd8f6fb7922be2e5753b4 100644 --- a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-super-binding.js +++ b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-super-binding.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(expected, actual, msg) { if (msg === void 0) msg = ""; diff --git a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-this-binding.js b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-this-binding.js index 3d06682b41a13962b2e8f0ecf1703995dda82a8e..8d5b758abb96b7b8b1ded6a5b6c59687b255efd8 100644 --- a/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-this-binding.js +++ b/implementation-contributed/javascriptcore/stress/async-arrow-functions-lexical-this-binding.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(expected, actual, msg) { if (msg === void 0) msg = ""; diff --git a/implementation-contributed/javascriptcore/stress/async-await-basic.js b/implementation-contributed/javascriptcore/stress/async-await-basic.js deleted file mode 100644 index dfeefefb3ce5623b7be11b09dd81321cbc3c9f6a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-basic.js +++ /dev/null @@ -1,348 +0,0 @@ -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - -function shouldBeAsync(expected, run, msg) { - let actual; - var hadError = false; - run().then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - - if (hadError) - throw actual; - - shouldBe(expected, actual, msg); -} - -function shouldThrow(run, errorType, message) { - let actual; - var hadError = false; - - try { - actual = run(); - } catch (e) { - hadError = true; - actual = e; - } - - if (!hadError) - throw new Error("Expected " + run + "() to throw " + errorType.name + ", but did not throw."); - if (!(actual instanceof errorType)) - throw new Error("Expeced " + run + "() to throw " + errorType.name + " , but threw '" + actual + "'"); - if (message !== void 0 && actual.message !== message) - throw new Error("Expected " + run + "() to throw '" + message + "', but threw '" + actual.message + "'"); -} - -function shouldThrowAsync(run, errorType, message) { - let actual; - var hadError = false; - run().then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - - if (!hadError) - throw new Error("Expected " + run + "() to throw " + errorType.name + ", but did not throw."); - if (!(actual instanceof errorType)) - throw new Error("Expected " + run + "() to throw " + errorType.name + ", but threw '" + actual + "'"); - if (message !== void 0 && actual.message !== message) - throw new Error("Expected " + run + "() to throw '" + message + "', but threw '" + actual.message + "'"); -} - -function shouldThrowSyntaxError(str, message) { - try { - eval(str); - throw new Error("Expected `" + str + "` to throw a SyntaxError, but did not throw.") - } catch (e) { - if (e.constructor !== SyntaxError) - throw new Error("Expected `" + str + "` to throw a SyntaxError, but threw '" + e + "'"); - if (message !== void 0 && e.message !== message) - throw new Error("Expected `" + str + "` to throw SyntaxError: '" + message + "', but threw '" + e + "'"); - } -} - -// Do not install `AsyncFunction` constructor on global object -shouldBe(undefined, this.AsyncFunction); -let AsyncFunction = (async function() {}).constructor; - -// Let functionPrototype be the intrinsic object %AsyncFunctionPrototype%. -async function asyncFunctionForProto() {} -shouldBe(AsyncFunction.prototype, Object.getPrototypeOf(asyncFunctionForProto)); -shouldBe(AsyncFunction.prototype, Object.getPrototypeOf(async function() {})); -shouldBe(AsyncFunction.prototype, Object.getPrototypeOf(async () => {})); -shouldBe(AsyncFunction.prototype, Object.getPrototypeOf({ async method() {} }.method)); - -// FIXME: AsyncFunction constructor should build functions with correct prototype. -// shouldBe(AsyncFunction.prototype, Object.getPrototypeOf(AsyncFunction())); - -// AsyncFunctionCreate does not produce an object with a Prototype -shouldBe(undefined, asyncFunctionForProto.prototype); -shouldBe(false, asyncFunctionForProto.hasOwnProperty("prototype")); -shouldBe(undefined, (async function() {}).prototype); -shouldBe(false, (async function() {}).hasOwnProperty("prototype")); -shouldBe(undefined, (async() => {}).prototype); -shouldBe(false, (async() => {}).hasOwnProperty("prototype")); -shouldBe(undefined, ({ async method() {} }).method.prototype); -shouldBe(false, ({ async method() {} }).method.hasOwnProperty("prototype")); -shouldBe(undefined, AsyncFunction().prototype); -shouldBe(false, AsyncFunction().hasOwnProperty("prototype")); - -// AsyncFunction.prototype[ @@toStringTag ] -var descriptor = Object.getOwnPropertyDescriptor(AsyncFunction.prototype, Symbol.toStringTag); -shouldBe("AsyncFunction", descriptor.value); -shouldBe(false, descriptor.enumerable); -shouldBe(false, descriptor.writable); -shouldBe(true, descriptor.configurable); - -shouldBe(1, AsyncFunction.length); - -// Let F be ! FunctionAllocate(functionPrototype, Strict, "non-constructor") -async function asyncNonConstructorDecl() {} -shouldThrow(() => new asyncNonConstructorDecl(), TypeError); -shouldThrow(() => new (async function() {}), TypeError); -shouldThrow(() => new ({ async nonConstructor() {} }).nonConstructor(), TypeError); -shouldThrow(() => new (() => "not a constructor!"), TypeError); -shouldThrow(() => new (AsyncFunction()), TypeError); - -// Normal completion -async function asyncDecl() { return "test"; } -shouldBeAsync("test", asyncDecl); -shouldBeAsync("test2", async function() { return "test2"; }); -shouldBeAsync("test3", async () => "test3"); -shouldBeAsync("test4", () => ({ async f() { return "test4"; } }).f()); - -class MyError extends Error {}; - -// Throw completion -async function asyncDeclThrower(e) { throw new MyError(e); } -shouldThrowAsync(() => asyncDeclThrower("boom!"), MyError, "boom!"); -shouldThrowAsync(() => (async function(e) { throw new MyError(e); })("boom!!!"), MyError, "boom!!!"); -shouldThrowAsync(() => (async e => { throw new MyError(e) })("boom!!"), MyError, "boom!!"); -shouldThrowAsync(() => ({ async thrower(e) { throw new MyError(e); } }).thrower("boom!!!!"), MyError, "boom!!!!"); - -function resolveLater(value) { return Promise.resolve(value); } -function rejectLater(error) { return Promise.reject(error); } - -// Resume after Normal completion -var log = []; -async function resumeAfterNormal(value) { - log.push("start:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - return value + 1; -} - -shouldBeAsync(4, () => resumeAfterNormal(1)); -shouldBe("start:1 resume:2 resume:3", log.join(" ")); - -var O = { - async resumeAfterNormal(value) { - log.push("start:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - return value + 1; - } -}; -log = []; -shouldBeAsync(5, () => O.resumeAfterNormal(2)); -shouldBe("start:2 resume:3 resume:4", log.join(" ")); - -var resumeAfterNormalArrow = async (value) => { - log.push("start:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - return value + 1; -}; -log = []; -shouldBeAsync(6, () => resumeAfterNormalArrow(3)); -shouldBe("start:3 resume:4 resume:5", log.join(" ")); - -var resumeAfterNormalEval = AsyncFunction("value", ` - log.push("start:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - value = await resolveLater(value + 1); - log.push("resume:" + value); - return value + 1; -`); -log = []; -shouldBeAsync(7, () => resumeAfterNormalEval(4)); -shouldBe("start:4 resume:5 resume:6", log.join(" ")); - -// Resume after Throw completion -async function resumeAfterThrow(value) { - log.push("start:" + value); - try { - value = await rejectLater("throw1"); - } catch (e) { - log.push("resume:" + e); - } - try { - value = await rejectLater("throw2"); - } catch (e) { - log.push("resume:" + e); - } - return value + 1; -} - -log = []; -shouldBeAsync(2, () => resumeAfterThrow(1)); -shouldBe("start:1 resume:throw1 resume:throw2", log.join(" ")); - -var O = { - async resumeAfterThrow(value) { - log.push("start:" + value); - try { - value = await rejectLater("throw1"); - } catch (e) { - log.push("resume:" + e); - } - try { - value = await rejectLater("throw2"); - } catch (e) { - log.push("resume:" + e); - } - return value + 1; - } -} -log = []; -shouldBeAsync(3, () => O.resumeAfterThrow(2)); -shouldBe("start:2 resume:throw1 resume:throw2", log.join(" ")); - -var resumeAfterThrowArrow = async (value) => { - log.push("start:" + value); - try { - value = await rejectLater("throw1"); - } catch (e) { - log.push("resume:" + e); - } - try { - value = await rejectLater("throw2"); - } catch (e) { - log.push("resume:" + e); - } - return value + 1; -}; -log = []; -shouldBeAsync(4, () => resumeAfterThrowArrow(3)); -shouldBe("start:3 resume:throw1 resume:throw2", log.join(" ")); - -var resumeAfterThrowEval = AsyncFunction("value", ` - log.push("start:" + value); - try { - value = await rejectLater("throw1"); - } catch (e) { - log.push("resume:" + e); - } - try { - value = await rejectLater("throw2"); - } catch (e) { - log.push("resume:" + e); - } - return value + 1; -`); -log = []; -shouldBeAsync(5, () => resumeAfterThrowEval(4)); -shouldBe("start:4 resume:throw1 resume:throw2", log.join(" ")); - -var awaitEpression = async (value) => { - log.push("start:" + value); - if (!await false) - log.push('step 1'); - var t = ~await true; - log.push('step 2 ' + t); - - var t1 = +await Promise.resolve(12345); - log.push('step 3 ' + t1); - - var t2 = -await 54321; - log.push('step 4 ' + t2); - - var t3 = !!!!!await Promise.resolve(true); - log.push('step 5 ' + t3); - - try { - var t4 = ++await 1; - } catch(e) { - if (e instanceof ReferenceError) { - log.push('step 6 '); - } - } - - try { - var t5 = --await 1; - } catch(e) { - if (e instanceof ReferenceError) { - log.push('step 7'); - } - } - - return void await 'test'; -}; -log = []; - -shouldBeAsync(undefined, () => awaitEpression(5)); -shouldBe("start:5 step 1 step 2 -2 step 3 12345 step 4 -54321 step 5 false step 6 step 7", log.join(" ")); - -// MethoodDefinition SyntaxErrors -shouldThrowSyntaxError("var obj = { async foo : true };", "Unexpected token ':'. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async foo = true };", "Unexpected token '='. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async foo , bar };", "Unexpected token ','. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async foo }", "Unexpected token '}'. Expected a parenthesis for argument list."); - -shouldThrowSyntaxError("var obj = { async 0 : true };", "Unexpected token ':'. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async 0 = true };", "Unexpected token '='. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async 0 , bar };", "Unexpected token ','. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async 0 }", "Unexpected token '}'. Expected a parenthesis for argument list."); - -shouldThrowSyntaxError("var obj = { async 'foo' : true };", "Unexpected token ':'. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async 'foo' = true };", "Unexpected token '='. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async 'foo' , bar };", "Unexpected token ','. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async 'foo' }", "Unexpected token '}'. Expected a parenthesis for argument list."); - -shouldThrowSyntaxError("var obj = { async ['foo'] : true };", "Unexpected token ':'. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async ['foo'] = true };", "Unexpected token '='. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async ['foo'] , bar };", "Unexpected token ','. Expected a parenthesis for argument list."); -shouldThrowSyntaxError("var obj = { async ['foo'] }", "Unexpected token '}'. Expected a parenthesis for argument list."); - -shouldThrowSyntaxError("class C { async foo : true };", "Unexpected token ':'. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async foo = true };", "Unexpected token '='. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async foo , bar };", "Unexpected token ','. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async foo }", "Unexpected token '}'. Expected an opening '(' before a async method's parameter list."); - -shouldThrowSyntaxError("class C { async 0 : true };", "Unexpected token ':'. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async 0 = true };", "Unexpected token '='. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async 0 , bar };", "Unexpected token ','. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async 0 }", "Unexpected token '}'. Expected an opening '(' before a async method's parameter list."); - -shouldThrowSyntaxError("class C { async 'foo' : true };", "Unexpected token ':'. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async 'foo' = true };", "Unexpected token '='. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async 'foo' , bar };", "Unexpected token ','. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async 'foo' }", "Unexpected token '}'. Expected an opening '(' before a async method's parameter list."); - -shouldThrowSyntaxError("class C { async ['foo'] : true };", "Unexpected token ':'. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async ['foo'] = true };", "Unexpected token '='. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async ['foo'] , bar };", "Unexpected token ','. Expected an opening '(' before a async method's parameter list."); -shouldThrowSyntaxError("class C { async ['foo'] }", "Unexpected token '}'. Expected an opening '(' before a async method's parameter list."); - -// Ensure awaited builtin Promise objects are themselves wrapped in a new Promise, -// per https://tc39.github.io/ecma262/#sec-async-functions-abstract-operations-async-function-await -log = []; -async function awaitedPromisesAreWrapped() { - log.push("before"); - await Promise.resolve(); - log.push("after"); -} -awaitedPromisesAreWrapped(); -Promise.resolve().then(() => log.push("Promise.resolve()")); -drainMicrotasks(); -shouldBe("before|Promise.resolve()|after", log.join("|")); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/async-await-long-loop.js b/implementation-contributed/javascriptcore/stress/async-await-long-loop.js deleted file mode 100644 index b21d31c677061fe44e99bc9c8219c3ea99ef45ba..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-long-loop.js +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (C) Copyright 2016 the v8 project authors. All rights reserved. - -//@ runNoCJIT("--gcMaxHeapSize=2000000") - - -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - - -let out; - -async function longLoop() { - for (let i = 0; i < 10000; i++) - await undefined; - out = 1; -} - -longLoop(); - -drainMicrotasks(); - -shouldBe(out, 1); diff --git a/implementation-contributed/javascriptcore/stress/async-await-module-reserved-word.js b/implementation-contributed/javascriptcore/stress/async-await-module-reserved-word.js deleted file mode 100644 index f8671b81f7db78278f9d930807e466948462614e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-module-reserved-word.js +++ /dev/null @@ -1,69 +0,0 @@ -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -function checkModuleSyntaxError(source, errorMessage) { - shouldThrow(() => checkModuleSyntax(source), errorMessage); -} - -checkModuleSyntaxError(String.raw` -var await; -`, `SyntaxError: Cannot use 'await' as a variable name in a module.:2`); -checkModuleSyntaxError(` -export var await; -`, `SyntaxError: Cannot use 'await' as a variable name in a module.:2`); -checkModuleSyntaxError(String.raw` -let await; -`, `SyntaxError: Cannot use 'await' as a lexical variable name in a module.:2`); -checkModuleSyntaxError(String.raw` -export let await; -`, `SyntaxError: Cannot use 'await' as a lexical variable name in a module.:2`); -checkModuleSyntaxError(String.raw` -const await = 1 -`, `SyntaxError: Cannot use 'await' as a lexical variable name in a module.:2`); -checkModuleSyntaxError(String.raw` -export const await = 1 -`, `SyntaxError: Cannot use 'await' as a lexical variable name in a module.:2`); - -checkModuleSyntaxError(String.raw` -function await() {} -`, `SyntaxError: Cannot declare function named 'await' in a module.:2`); -checkModuleSyntaxError(String.raw` -function* await() {} -`, `SyntaxError: Cannot declare function named 'await' in a module.:2`); -checkModuleSyntaxError(String.raw` -async function await() {} -`, `SyntaxError: Cannot declare function named 'await' in a module.:2`); - -checkModuleSyntaxError(String.raw` -import {await} from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); -checkModuleSyntaxError(String.raw` -import {foo as await} from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); -checkModuleSyntaxError(String.raw` -import * as await from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); -checkModuleSyntaxError(String.raw` -import await, {x, y, z} from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); -checkModuleSyntaxError(String.raw` -import await, {x, y, z,} from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); -checkModuleSyntaxError(String.raw` -import await from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); -checkModuleSyntaxError(String.raw` -import await, * as foo from 'foo'; -`, `SyntaxError: Cannot use 'await' as an imported binding name.:2`); diff --git a/implementation-contributed/javascriptcore/stress/async-await-mozilla.js b/implementation-contributed/javascriptcore/stress/async-await-mozilla.js deleted file mode 100644 index c4bf7c36dadd12f6d9c9630b2fed191537b5015a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-mozilla.js +++ /dev/null @@ -1,302 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://moz.org/MPL/2.0/. */ - -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - -function shouldBeAsync(expected, run, msg) { - let actual; - var hadError = false; - run().then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - if (hadError) - throw actual; - shouldBe(expected, actual, msg); -} - -function shouldThrow(run, errorType, message) { - let actual; - var hadError = false; - try { - actual = run(); - } catch (e) { - hadError = true; - actual = e; - } - if (!hadError) - throw new Error("Expected " + run + "() to throw " + errorType.name + ", but did not throw."); - if (!(actual instanceof errorType)) - throw new Error("Expeced " + run + "() to throw " + errorType.name + " , but threw '" + actual + "'"); - if (message !== void 0 && actual.message !== message) - throw new Error("Expected " + run + "() to throw '" + message + "', but threw '" + actual.message + "'"); -} - -function shouldThrowAsync(run, errorType, message) { - let actual; - var hadError = false; - run().then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - if (!hadError) - throw new Error("Expected " + run + "() to throw " + errorType.name + ", but did not throw."); - if (!(actual instanceof errorType)) - throw new Error("Expected " + run + "() to throw " + errorType.name + ", but threw '" + actual + "'"); - if (message !== void 0 && actual.message !== message) - throw new Error("Expected " + run + "() to throw '" + message + "', but threw '" + actual.message + "'"); -} - -function assert(cond, msg = "") { - if (!cond) - throw new Error(msg); -} - -function shouldThrowSyntaxError(str, message) { - var hadError = false; - try { - eval(str); - } catch (e) { - if (e instanceof SyntaxError) { - hadError = true; - if (typeof message === "string") - assert(e.message === message, "Expected '" + message + "' but threw '" + e.message + "'"); - } - } - assert(hadError, "Did not throw syntax error"); -} - -// semantics.js -(function mozSemantics() { - -async function empty() { -} - -async function simpleReturn() { - return 1; -} - -async function simpleAwait() { - var result = await 2; - return result; -} - -async function simpleAwaitAsync() { - var result = await simpleReturn(); - return 2 + result; -} - -async function returnOtherAsync() { - return 1 + await simpleAwaitAsync(); -} - -async function simpleThrower() { - throw new Error(); -} - -async function delegatedThrower() { - var val = await simpleThrower(); - return val; -} - -async function tryCatch() { - try { - await delegatedThrower(); - return 'FAILED'; - } catch (_) { - return 5; - } -} - -async function tryCatchThrow() { - try { - await delegatedThrower(); - return 'FAILED'; - } catch (_) { - return delegatedThrower(); - } -} - -async function wellFinally() { - try { - await delegatedThrower(); - } catch (_) { - return 'FAILED'; - } finally { - return 6; - } -} - -async function finallyMayFail() { - try { - await delegatedThrower(); - } catch (_) { - return 5; - } finally { - return delegatedThrower(); - } -} - -async function embedded() { - async function inner() { - return 7; - } - return await inner(); -} - -// recursion, it works! -async function fib(n) { - return (n == 0 || n == 1) ? n : await fib(n - 1) + await fib(n - 2); -} - -// mutual recursion -async function isOdd(n) { - async function isEven(n) { - return n === 0 || await isOdd(n - 1); - } - return n !== 0 && await isEven(n - 1); -} - -// recursion, take three! -var hardcoreFib = async function fib2(n) { - return (n == 0 || n == 1) ? n : await fib2(n - 1) + await fib2(n - 2); -} - -var asyncExpr = async function() { - return 10; -} - -var namedAsyncExpr = async function simple() { - return 11; -} - -async function executionOrder() { - var value = 0; - async function first() { - return (value = value === 0 ? 1 : value); - } - async function second() { - return (value = value === 0 ? 2 : value); - } - async function third() { - return (value = value === 0 ? 3 : value); - } - return await first() + await second() + await third() + 6; -} - -async function miscellaneous() { - if (arguments.length === 3 && - arguments.callee.name === "miscellaneous") - return 14; -} - -function thrower() { - throw 15; -} - -async function defaultArgs(arg = thrower()) { -} - -// Async functions are not constructible -shouldThrow(() => { - async function Person() { - } - new Person(); -}, TypeError); - -shouldBeAsync(undefined, empty); -shouldBeAsync(1, simpleReturn); -shouldBeAsync(2, simpleAwait); -shouldBeAsync(3, simpleAwaitAsync); -shouldBeAsync(4, returnOtherAsync); -shouldThrowAsync(simpleThrower, Error); -shouldBeAsync(5, tryCatch); -shouldBeAsync(6, wellFinally); -shouldThrowAsync(finallyMayFail, Error); -shouldBeAsync(7, embedded); -shouldBeAsync(8, () => fib(6)); -shouldBeAsync(9, executionOrder); -shouldBeAsync(10, asyncExpr); -shouldBeAsync(11, namedAsyncExpr); -shouldBeAsync(12, () => isOdd(12).then(v => v ? "oops" : 12)); -shouldBeAsync(13, () => hardcoreFib(7)); -shouldBeAsync(14, () => miscellaneous(1, 2, 3)); -shouldBeAsync(15, () => defaultArgs().catch(e => e)); - -})(); - -// methods.js -(function mozMethods() { - -class X { - constructor() { - this.value = 42; - } - async getValue() { - return this.value; - } - setValue(value) { - this.value = value; - } - async increment() { - var value = await this.getValue(); - this.setValue(value + 1); - return this.getValue(); - } - async getBaseClassName() { - return 'X'; - } - static async getStaticValue() { - return 44; - } -} - -class Y extends X { - async getBaseClassName() { - return super.getBaseClassName(); - } -} - -var objLiteral = { - async get() { - return 45; - }, - someStuff: 5 -}; - -var x = new X(); -var y = new Y(); - -shouldBeAsync(42, () => x.getValue()); -shouldBeAsync(43, () => x.increment()); -shouldBeAsync(44, () => X.getStaticValue()); -shouldBeAsync(45, () => objLiteral.get()); -shouldBeAsync('X', () => y.getBaseClassName()); - -})(); - -(function mozFunctionNameInferrence() { - -async function test() { } - -var anon = async function() { } - -shouldBe("test", test.name); -shouldBe("anon", anon.name); - -})(); - -(function mozSyntaxErrors() { - -shouldThrowSyntaxError("'use strict'; async function eval() {}"); -shouldThrowSyntaxError("'use strict'; async function arguments() {}"); -shouldThrowSyntaxError("async function a(k = super.prop) { }"); -shouldThrowSyntaxError("async function a() { super.prop(); }"); -shouldThrowSyntaxError("async function a() { super(); }"); -shouldThrowSyntaxError("async function a(k = await 3) {}"); - -})(); diff --git a/implementation-contributed/javascriptcore/stress/async-await-reserved-word.js b/implementation-contributed/javascriptcore/stress/async-await-reserved-word.js deleted file mode 100644 index 415b2bf07d20fcd30cd6d233ea9390ca5ae51bc0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-reserved-word.js +++ /dev/null @@ -1,163 +0,0 @@ -function assert(cond, msg = "") { - if (!cond) - throw new Error(msg); -} -noInline(assert); - -function shouldThrowSyntaxError(str, message) { - var hadError = false; - try { - eval(str); - } catch (e) { - if (e instanceof SyntaxError) { - hadError = true; - if (typeof message === "string") - assert(e.message === message, "Expected '" + message + "' but threw '" + e.message + "'"); - } - } - assert(hadError, "Did not throw syntax error"); -} -noInline(shouldThrowSyntaxError); - -var AsyncFunction = (async function() {}).constructor; - -// AsyncFunctionExpression -shouldThrowSyntaxError("(async function() { var await; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("(async function() { var [await] = []; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("(async function() { var [...await] = []; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("(async function() { var {await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("(async function() { var {isAsync: await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("(async function() { var {isAsync: await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("(async function() { let await; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { let [await] = []; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { let [...await] = []; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { let {await} = {}; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { let {isAsync: await} = {}; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { let {isAsync: await} = {}; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { const await; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { const [await] = []; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { const [...await] = []; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { const {await} = {}; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { const {isAsync: await} = {}; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { const {isAsync: await} = {}; })", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("(async function() { function await() {} })", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("(async function() { async function await() {} })", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("(async function(await) {})", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("(async function f([await]) {})", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("(async function f([...await]) {})", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("(async function f(...await) {})", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("(async function f({await}) {})", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("(async function f({isAsync: await}) {})", "Cannot use 'await' as a parameter name in an async function."); - -// AsyncFunctionDeclaration -shouldThrowSyntaxError("async function f() { var await; }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("async function f() { var [await] = []; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("async function f() { var [...await] = []; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("async function f() { var {await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("async function f() { var {isAsync: await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("async function f() { var {isAsync: await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("async function f() { let await; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { let [await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { let [...await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { let {await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { let {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { let {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { const await; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { const [await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { const [...await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { const {await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { const {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { const {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("async function f() { function await() {} }", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("async function f() { async function await() {} }", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("async function f(await) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("async function f([await]) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("async function f([...await]) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("async function f(...await) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("async function f({await}) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("async function f({isAsync: await}) {}", "Cannot use 'await' as a parameter name in an async function."); - -// AsyncArrowFunction -shouldThrowSyntaxError("var f = async () => { var await; }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { var [await] = []; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { var [...await] = []; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { var {await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { var {isAsync: await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { var {isAsync: await} = {}; })", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { let await; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { let [await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { let [...await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { let {await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { let {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { let {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { const await; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { const [await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { const [...await] = []; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { const {await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { const {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { const {isAsync: await} = {}; }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var f = async () => { function await() {} }", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("var f = async () => { async function await() {} }", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("var f = async (await) => {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var f = async ([await]) => {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var f = async ([...await]) => {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var f = async (...await) => {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var f = async ({await}) => {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var f = async ({isAsync: await}) => {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var f = async await => {}", "Cannot use 'await' as a parameter name in an async function."); - -// AsyncMethod -shouldThrowSyntaxError("var O = { async f() { var await; } }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { var [await] = []; } }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { var [...await] = []; } }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { var {await} = {}; } }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { var {isAsync: await} = {}; } }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { var {isAsync: await} = {}; } }", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { let await; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { let [await] = []; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { let [...await] = []; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { let {await} = {}; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { let {isAsync: await} = {}; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { let {isAsync: await} = {}; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { const await; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { const [await] = []; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { const [...await] = []; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { const {await} = {}; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { const {isAsync: await} = {}; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { const {isAsync: await} = {}; } }", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("var O = { async f() { function await() {} }", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("var O = { async f() { async function await() {} } }", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("var O = { async f(await) {} } ", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var O = { async f([await]) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var O = { async f([...await]) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var O = { async f(...await) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var O = { async f({await}) {}", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("var O = { async f({isAsync: await}) {}", "Cannot use 'await' as a parameter name in an async function."); - -// AsyncFunction constructor -shouldThrowSyntaxError("AsyncFunction('var await;')", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('var [await] = [];')", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('var [...await] = [];')", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('var {await} = {};')", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('var {isAsync: await} = {};')", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('var {isAsync: await} = {};')", "Cannot use 'await' as a variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('let await;')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('let [await] = [];')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('let [...await] = [];')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('let {await} = {};')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('let {isAsync: await} = {};')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('let {isAsync: await} = {};')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('const await;')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('const [await] = [];')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('const [...await] = [];')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('const {await} = {};')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('const {isAsync: await} = {};')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('const {isAsync: await} = {};')", "Cannot use 'await' as a lexical variable name in an async function."); -shouldThrowSyntaxError("AsyncFunction('function await() {}')", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("AsyncFunction('async function await() {}')", "Cannot declare function named 'await' in an async function."); -shouldThrowSyntaxError("AsyncFunction('await', '')", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("AsyncFunction('[await]', '')", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("AsyncFunction('[...await]', '')", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("AsyncFunction('...await', '')", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("AsyncFunction('{await}', '')", "Cannot use 'await' as a parameter name in an async function."); -shouldThrowSyntaxError("AsyncFunction('{isAsync: await}', '')", "Cannot use 'await' as a parameter name in an async function."); diff --git a/implementation-contributed/javascriptcore/stress/async-await-syntax.js b/implementation-contributed/javascriptcore/stress/async-await-syntax.js deleted file mode 100644 index 6121d41268ec9ff9289a5f934cbaff3e09659de2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-syntax.js +++ /dev/null @@ -1,582 +0,0 @@ -// Copyright (C) 2016 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - -function testSyntax(script) { - try { - eval(script); - } catch (error) { - if (error instanceof SyntaxError) - throw new Error("Bad error: " + String(error) + "\n evaluating `" + script + "`"); - } -} - -function testSyntaxError(script, message) { - var error = null; - try { - eval(script); - } catch (e) { - error = e; - } - if (!error) - throw new Error("Expected syntax error not thrown\n evaluating `" + script + "`"); - - if (typeof message === "string" && String(error) !== message) - throw new Error("Bad error: " + String(error) + "\n evaluating `" + script + "`"); -} - -(function testTopLevelAsyncAwaitSyntaxSloppyMode() { - testSyntax(`({async: 1})`); - testSyntax(`var asyncFn = async function() { await 1; };`); - - testSyntax(`var asyncFn = async function() { var t = !await 1; };`); - testSyntax(`var asyncFn = async function() { var t = ~await 1; };`); - testSyntax(`var asyncFn = async function() { var t = typeof await 1; };`); - testSyntax(`var asyncFn = async function() { var t = void await 1; };`); - testSyntax(`var asyncFn = async function() { var t = !(await 1); };`); - testSyntax(`var asyncFn = async function() { var t = ~(await 1); };`); - testSyntax(`var asyncFn = async function() { var t = typeof (await 1); };`); - testSyntax(`var asyncFn = async function() { var t = void (await 1); };`); - - - testSyntax(`var asyncFn = async function() { var t = !!await 1; };`); - testSyntax(`var asyncFn = async function() { var t = ~~await 1; };`); - testSyntax(`var asyncFn = async function() { var t = typeof typeof await 1; };`); - testSyntax(`var asyncFn = async function() { var t = void void await 1; };`); - - testSyntax(`var asyncFn = async function withName() { await 1; };`); - testSyntax(`var asyncFn = async () => await 'test';`); - - testSyntax(`var asyncFn = async () => !await 'test';`); - testSyntax(`var asyncFn = async () => ~await 'test';`); - testSyntax(`var asyncFn = async () => typeof await 'test';`); - testSyntax(`var asyncFn = async () => void await 'test';`); - testSyntax(`var asyncFn = async () => - await 'test';`); - testSyntax(`var asyncFn = async () => + await 'test';`); - testSyntax(`var asyncFn = async () => delete await 'test';`); - - testSyntax(`var asyncFn = async () => !!await 'test';`); - testSyntax(`var asyncFn = async () => ~~await 'test';`); - testSyntax(`var asyncFn = async () => typeof typeof await 'test';`); - testSyntax(`var asyncFn = async () => void void await 'test';`); - - testSyntax(`var asyncFn = async x => await x + 'test';`); - testSyntax(`function foo(fn) { fn({ async: true }); }`); - testSyntax(`async function asyncFn() { await 1; }`); - testSyntax(`var O = { async method() { await 1; } };`); - testSyntax(`var O = { async ['meth' + 'od']() { await 1; } };`); - testSyntax(`var O = { async 'method'() { await 1; } };`); - testSyntax(`var O = { async 0() { await 1; } };`); - testSyntax(`var O = { async function() {} };`); - testSyntax(`class C { async method() { await 1; } };`); - testSyntax(`class C { async ['meth' + 'od']() { await 1; } };`); - testSyntax(`class C { async 'method'() { await 1; } };`); - testSyntax(`class C { async 0() { await 1; } };`); - testSyntax(`var asyncFn = async({ foo = 1 }) => foo;`); - testSyntax(`var asyncFn = async({ foo = 1 } = {}) => foo;`); - testSyntax(`function* g() { var f = async(yield); }`); - testSyntax(`function* g() { var f = async(x = yield); }`); - testSyntax(`class C { async ['function']() {} }`); - testSyntax(`class C {}; class C2 extends C { async ['function']() {} }`); - testSyntax(`class C { static async ['function']() {} }`); - testSyntax(`class C {}; class C2 extends C { static async ['function']() {} }`); - testSyntax(`class C { async function() {} }`); - testSyntax(`class C {}; class C2 extends C { async function() {} }`); - testSyntax(`class C { static async function() {} }`); - testSyntax(`class C {}; class C2 extends C { static async function() {} }`); - testSyntax(`class C { async 'function'() {} }`); - testSyntax(`class C {}; class C2 extends C { async 'function'() {} }`); - testSyntax(`class C { static async 'function'() {} }`); - testSyntax(`class C {}; class C2 extends C { static async 'function'() {} }`); -})(); - -(function testTopLevelAsyncAwaitSyntaxStrictMode() { - testSyntax(`"use strict"; ({async: 1})`); - testSyntax(`"use strict"; var asyncFn = async function() { await 1; };`); - - testSyntax(`"use strict"; var asyncFn = async function() { var t = !await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = ~await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = +await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = -await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = typeof await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = void await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = !(await 1); };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = ~(await 1); };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = -(await 1); };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = +(await 1); };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = typeof (await 1); };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = void (await 1); };`); - - testSyntax(`"use strict"; var asyncFn = async function() { var t = !!await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = ~~await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = typeof typeof await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = void void await 1; };`); - - testSyntax(`"use strict"; var asyncFn = async function() { var t = !!await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = !~await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = !typeof typeof await 1; };`); - testSyntax(`"use strict"; var asyncFn = async function() { var t = !void void await 1; };`); - - - testSyntax(`"use strict"; var asyncFn = async function withName() { await 1; };`); - testSyntax(`"use strict"; var asyncFn = async () => await 'test';`); - testSyntax(`"use strict"; var asyncFn = async x => await x + 'test';`); - testSyntax(`"use strict"; function foo(fn) { fn({ async: true }); }`); - testSyntax(`"use strict"; async function asyncFn() { await 1; }`); - testSyntax(`"use strict"; var O = { async method() { await 1; } };`); - testSyntax(`"use strict"; var O = { async ['meth' + 'od']() { await 1; } };`); - testSyntax(`"use strict"; var O = { async 'method'() { await 1; } };`); - testSyntax(`"use strict"; var O = { async 0() { await 1; } };`); - testSyntax(`"use strict"; class C { async method() { await 1; } };`); - testSyntax(`"use strict"; class C { async ['meth' + 'od']() { await 1; } };`); - testSyntax(`"use strict"; class C { async 'method'() { await 1; } };`); - testSyntax(`"use strict"; class C { async 0() { await 1; } };`); - testSyntax(`"use strict"; var asyncFn = async({ foo = 1 }) => foo;`); - testSyntax(`"use strict"; var asyncFn = async({ foo = 1 } = {}) => foo;`); - testSyntax(`"use strict"; function* g() { var f = async(yield); }`); - testSyntax(`"use strict"; function* g() { var f = async(x = yield); }`); - testSyntax(`"use strict"; class C { async ['function']() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { async ['function']() {} }`); - testSyntax(`"use strict"; class C { static async ['function']() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { static async ['function']() {} }`); - testSyntax(`"use strict"; class C { async function() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { async function() {} }`); - testSyntax(`"use strict"; class C { async function() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { async function() {} }`); - testSyntax(`"use strict"; class C { static async function() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { static async function() {} }`); - testSyntax(`"use strict"; class C { async 'function'() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { async 'function'() {} }`); - testSyntax(`"use strict"; class C { static async 'function'() {} }`); - testSyntax(`"use strict"; class C {}; class C2 extends C { static async 'function'() {} }`); -})(); - -(function testNestedAsyncAwaitSyntax() { - var contextData = [ - { prefix: "function outerFunction() { ", suffix: " }" }, - { prefix: "function* outerGenerator() { ", suffix: " }" }, - { prefix: "var outerFuncExpr = function() { ", suffix: " };" }, - { prefix: "var outerGenExpr = function*() { ", suffix: " };" }, - { prefix: "var outerObject = { outerMethod() { ", suffix: " } };" }, - { prefix: "var outerObject = { *outerGenMethod() { ", suffix: " } };" }, - { prefix: "var outerClassExpr = class C { outerMethod() { ", suffix: " } };" }, - { prefix: "var outerClassExpr = class C { *outerGenMethod() { ", suffix: " } };" }, - { prefix: "var outerClassExpr = class C { static outerStaticMethod() { ", suffix: " } };" }, - { prefix: "var outerClassExpr = class C { static *outerStaticGenMethod() { ", suffix: " } };" }, - { prefix: "class outerClass { outerMethod() { ", suffix: " } };" }, - { prefix: "class outerClass { *outerGenMethod() { ", suffix: " } };" }, - { prefix: "class outerClass { static outerStaticMethod() { ", suffix: " } };" }, - { prefix: "class outerClass { static *outerStaticGenMethod() { ", suffix: " } };" }, - { prefix: "var outerArrow = () => { ", suffix: " };" }, - { prefix: "async function outerAsyncFunction() { ", suffix: " }" }, - { prefix: "var outerAsyncFuncExpr = async function() { ", suffix: " };" }, - { prefix: "var outerAsyncArrowFunc = async () => { ", suffix: " };" }, - { prefix: "var outerObject = { async outerAsyncMethod() { ", suffix: " } };" }, - { prefix: "var outerClassExpr = class C { async outerAsyncMethod() { ", suffix: " } };" }, - { prefix: "var outerClassExpr = class C { static async outerStaticAsyncMethod() { ", suffix: " } };" }, - { prefix: "class outerClass { async outerAsyncMethod() { ", suffix: " } };" }, - { prefix: "class outerClass { static async outerStaticAsyncMethod() { ", suffix: " } };" }, - ]; - - var testData = [ - `var async = 1; return async;`, - `let async = 1; return async;`, - `const async = 1; return async;`, - `function async() {} return async();`, - `var async = async => async; return async();`, - `function foo() { var await = 1; return await; }`, - `function foo(await) { return await; }`, - `function* foo() { var await = 1; return await; }`, - `function* foo(await) { return await; }`, - `var f = () => { var await = 1; return await; }`, - `var O = { method() { var await = 1; return await; } };`, - `var O = { method(await) { return await; } };`, - `var O = { *method() { var await = 1; return await; } };`, - `var O = { *method(await) { return await; } };`, - - `(function await() {})`, - ]; - - for (let context of contextData) { - for (let test of testData) { - let script = context.prefix + test + context.suffix; - testSyntax(script); - testSyntax(`"use strict"; ${script}`); - } - } -})(); - - -(function testTopLevelAsyncAwaitSyntaxSloppyMode() { - testSyntaxError(`({ async - foo() {} })`); - testSyntaxError(`({async = 1})`); - testSyntaxError(`var asyncFn = async function await() {}`); - testSyntaxError(`var asyncFn = async () => var await = 'test';`); - testSyntaxError(`var asyncFn = async () => { var await = 'test'; };`); - testSyntaxError(`var asyncFn = async await => await + 'test'`); - testSyntaxError(`var asyncFn = async function(await) {}`); - testSyntaxError(`var asyncFn = async function withName(await) {}`); - testSyntaxError(`var asyncFn = async (await) => 'test';`); - testSyntaxError(`async function asyncFunctionDeclaration(await) {}`); - - testSyntaxError(`var outerObject = { async method(a, a) {} }`); - testSyntaxError(`var outerObject = { async ['meth' + 'od'](a, a) {} }`); - testSyntaxError(`var outerObject = { async 'method'(a, a) {} }`); - testSyntaxError(`var outerObject = { async 0(a, a) {} }`); - - testSyntaxError(`var outerObject = { async method(a, {a}) {} }`); - testSyntaxError(`var outerObject = { async method({a}, a) {} }`); - testSyntaxError(`var outerObject = { async method({a}, {a}) {} }`); - testSyntaxError(`var outerObject = { async method(a, ...a) {} }`); - testSyntaxError(`var outerObject = { async method({a}, ...a) {} }`); - testSyntaxError(`var outerObject = { async method(a, ...a) {} }`); - testSyntaxError(`var outerObject = { async method({a, ...a}) {} }`); - testSyntaxError(`var outerObject = { func: async function(a, {a}) {} }`); - testSyntaxError(`var outerObject = { func: async function({a}, a) {} }`); - testSyntaxError(`var outerObject = { func: async function({a}, {a}) {} }`); - testSyntaxError(`var outerObject = { func: async function(a, ...a) {} }`); - testSyntaxError(`var outerObject = { func: async function({a}, ...a) {} }`); - testSyntaxError(`var outerObject = { func: async function(a, ...a) {} }`); - testSyntaxError(`var outerObject = { func: async function({a, ...a}) {} }`); - - testSyntaxError(`var asyncArrowFn = async() => await;`); - - testSyntaxError(`var O = { *async asyncGeneratorMethod() {} };`); - testSyntaxError(`var O = { async asyncGeneratorMethod*() {} };`); - - testSyntaxError(`var asyncFn = async function(x = await 1) { return x; }`); - testSyntaxError(`async function f(x = await 1) { return x; }`); - testSyntaxError(`var f = async(x = await 1) => x;`); - testSyntaxError(`var O = { async method(x = await 1) { return x; } };`); - - testSyntaxError(`function* outerGenerator() { var asyncArrowFn = async yield => 1; }`); - testSyntaxError(`function* outerGenerator() { var asyncArrowFn = async(yield) => 1; }`); - testSyntaxError(`function* outerGenerator() { var asyncArrowFn = async(x = yield) => 1; }`); - testSyntaxError(`function* outerGenerator() { var asyncArrowFn = async({x = yield}) => 1; }`); - - testSyntaxError(`class C { async constructor() {} }`); - testSyntaxError(`class C {}; class C2 extends C { async constructor() {} }`); - testSyntaxError(`class C { static async prototype() {} }`); - testSyntaxError(`class C {}; class C2 extends C { static async prototype() {} }`); - - testSyntaxError(`var f = async() => ((async(x = await 1) => x)();`); - - // Henrique Ferreiro's bug (tm) - testSyntaxError(`(async function foo1() { } foo2 => 1)`); - testSyntaxError(`(async function foo3() { } () => 1)`); - testSyntaxError(`(async function foo4() { } => 1)`); - testSyntaxError(`(async function() { } foo5 => 1)`); - testSyntaxError(`(async function() { } () => 1)`); - testSyntaxError(`(async function() { } => 1)`); - testSyntaxError(`(async.foo6 => 1)`); - testSyntaxError(`(async.foo7 foo8 => 1)`); - testSyntaxError(`(async.foo9 () => 1)`); - testSyntaxError(`(async().foo10 => 1)`); - testSyntaxError(`(async().foo11 foo12 => 1)`); - testSyntaxError(`(async().foo13 () => 1)`); - testSyntaxError(`(async['foo14'] => 1)`); - testSyntaxError(`(async['foo15'] foo16 => 1)`); - testSyntaxError(`(async['foo17'] () => 1)`); - testSyntaxError(`(async()['foo18'] => 1)`); - testSyntaxError(`(async()['foo19'] foo20 => 1)`); - testSyntaxError(`(async()['foo21'] () => 1`); - testSyntaxError("(async`foo22` => 1)"); - testSyntaxError("(async`foo23` foo24 => 1)"); - testSyntaxError("(async`foo25` () => 1)"); - testSyntaxError("(async`foo26`.bar27 => 1)"); - testSyntaxError("(async`foo28`.bar29 foo30 => 1)"); - testSyntaxError("(async`foo31`.bar32 () => 1)"); - - // assert that errors are still thrown for calls that may have been async functions - testSyntaxError(`function async() {} - async({ foo33 = 1 })`); -})(); - -(function testTopLevelAsyncAwaitSyntaxStrictMode() { - testSyntaxError(`"use strict"; ({ async - foo() {} })`); - testSyntaxError(`"use strict"; ({async = 1})`); - testSyntaxError(`"use strict"; var asyncFn = async function await() {}`); - testSyntaxError(`"use strict"; var asyncFn = async () => var await = 'test';`); - testSyntaxError(`"use strict"; var asyncFn = async () => { var await = 'test'; };`); - testSyntaxError(`"use strict"; var asyncFn = async await => await + 'test'`); - testSyntaxError(`"use strict"; var asyncFn = async function(await) {}`); - testSyntaxError(`"use strict"; var asyncFn = async function withName(await) {}`); - testSyntaxError(`"use strict"; var asyncFn = async (await) => 'test';`); - testSyntaxError(`"use strict"; async function asyncFunctionDeclaration(await) {}`); - - testSyntaxError(`"use strict"; var outerObject = { async method(a, a) {} }`); - testSyntaxError(`"use strict"; var outerObject = { async ['meth' + 'od'](a, a) {} }`); - testSyntaxError(`"use strict"; var outerObject = { async 'method'(a, a) {} }`); - testSyntaxError(`"use strict"; var outerObject = { async 0(a, a) {} }`); - - testSyntaxError(`"use strict"; var asyncArrowFn = async() => await;`); - - testSyntaxError(`"use strict"; var O = { *async asyncGeneratorMethod() {} };`); - testSyntaxError(`"use strict"; var O = { async asyncGeneratorMethod*() {} };`); - - testSyntax(`"use strict"; var O = { async function() {} };`); - - testSyntaxError(`"use strict"; var asyncFn = async function(x = await 1) { return x; }`); - testSyntaxError(`"use strict"; async function f(x = await 1) { return x; }`); - testSyntaxError(`"use strict"; var f = async(x = await 1) => x;`); - testSyntaxError(`"use strict"; var O = { async method(x = await 1) { return x; } };`); - - testSyntaxError(`"use strict"; function* outerGenerator() { var asyncArrowFn = async yield => 1; }`); - testSyntaxError(`"use strict"; function* outerGenerator() { var asyncArrowFn = async(yield) => 1; }`); - testSyntaxError(`"use strict"; function* outerGenerator() { var asyncArrowFn = async(x = yield) => 1; }`); - testSyntaxError(`"use strict"; function* outerGenerator() { var asyncArrowFn = async({x = yield}) => 1; }`); - - testSyntaxError(`"use strict"; class C { async constructor() {} }`); - testSyntaxError(`"use strict"; class C {}; class C2 extends C { async constructor() {} }`); - testSyntaxError(`"use strict"; class C { static async prototype() {} }`); - testSyntaxError(`"use strict"; class C {}; class C2 extends C { static async prototype() {} }`); - - testSyntaxError(`"use strict"; var f = async() => ((async(x = await 1) => x)();`); - - // Henrique Ferreiro's bug (tm) - testSyntaxError(`"use strict"; (async function foo1() { } foo2 => 1)`); - testSyntaxError(`"use strict"; (async function foo3() { } () => 1)`); - testSyntaxError(`"use strict"; (async function foo4() { } => 1)`); - testSyntaxError(`"use strict"; (async function() { } foo5 => 1)`); - testSyntaxError(`"use strict"; (async function() { } () => 1)`); - testSyntaxError(`"use strict"; (async function() { } => 1)`); - testSyntaxError(`"use strict"; (async.foo6 => 1)`); - testSyntaxError(`"use strict"; (async.foo7 foo8 => 1)`); - testSyntaxError(`"use strict"; (async.foo9 () => 1)`); - testSyntaxError(`"use strict"; (async().foo10 => 1)`); - testSyntaxError(`"use strict"; (async().foo11 foo12 => 1)`); - testSyntaxError(`"use strict"; (async().foo13 () => 1)`); - testSyntaxError(`"use strict"; (async['foo14'] => 1)`); - testSyntaxError(`"use strict"; (async['foo15'] foo16 => 1)`); - testSyntaxError(`"use strict"; (async['foo17'] () => 1)`); - testSyntaxError(`"use strict"; (async()['foo18'] => 1)`); - testSyntaxError(`"use strict"; (async()['foo19'] foo20 => 1)`); - testSyntaxError(`"use strict"; (async()['foo21'] () => 1)`); - testSyntaxError('"use strict"; (async`foo22` => 1)'); - testSyntaxError('"use strict"; (async`foo23` foo24 => 1)'); - testSyntaxError('"use strict"; (async`foo25` () => 1)'); - testSyntaxError('"use strict"; (async`foo26`.bar27 => 1)'); - testSyntaxError('"use strict"; (async`foo28`.bar29 foo30 => 1)'); - testSyntaxError('"use strict"; (async`foo31`.bar32 () => 1)'); - - // assert that errors are still thrown for calls that may have been async functions - testSyntaxError(`"use strict"; function async() {} - async({ foo33 = 1 })`); - - testSyntaxError(`"use strict"; var O = { async method(eval) {} }`); - testSyntaxError(`"use strict"; var O = { async ['meth' + 'od'](eval) {} }`); - testSyntaxError(`"use strict"; var O = { async 'method'(eval) {} }`); - testSyntaxError(`"use strict"; var O = { async 0(eval) {} }`); - - testSyntaxError(`"use strict"; var O = { async method(arguments) {} }`); - testSyntaxError(`"use strict"; var O = { async ['meth' + 'od'](arguments) {} }`); - testSyntaxError(`"use strict"; var O = { async 'method'(arguments) {} }`); - testSyntaxError(`"use strict"; var O = { async 0(arguments) {} }`); - - testSyntaxError(`"use strict"; var O = { async method(dupe, dupe) {} }`); -})(); - -(function testAwaitInFormalParameters() { - var testData = [ - `async function f(await) {}`, - `async function f(...await) {}`, - `async function f(await = 1) {}`, - `async function f([await]) {}`, - `async function f([await = 1]) {}`, - `async function f({ await }) {}`, - `async function f({ await = 1 }) {}`, - `async function f({ } = await) {}`, - - `(async function(await) {})`, - `(async function(...await) {})`, - `(async function(await = 1) {})`, - `(async function([await]) {})`, - `(async function([await = 1]) {})`, - `(async function({ await }) {})`, - `(async function({ await = 1 }) {})`, - `(async function({ } = await) {})`, - - `var asyncArrow = async(await) => 1;`, - `var asyncArrow = async(await) => {};`, - `var asyncArrow = async(...await) => 1;`, - `var asyncArrow = async(...await) => {};`, - `var asyncArrow = async(await = 1) => 1;`, - `var asyncArrow = async(await = 1) => {};`, - `var asyncArrow = async([await]) => 1;`, - `var asyncArrow = async([await]) => {};`, - `var asyncArrow = async([await = 1]) => 1;`, - `var asyncArrow = async([await = 1]) => {};`, - `var asyncArrow = async([] = await) => 1;`, - `var asyncArrow = async([] = await) => {};`, - `var asyncArrow = async({ await }) => 1;`, - `var asyncArrow = async({ await } ) => {};`, - `var asyncArrow = async({ await = 1}) => 1;`, - `var asyncArrow = async({ await = 1}) => {};`, - `var asyncArrow = async({ } = await) => 1;`, - `var asyncArrow = async({ } = await) => {};`, - - `({ async method(await) {} })`, - `({ async method(...await) {} })`, - `({ async method(await = 1) {} })`, - `({ async method([await]) {} })`, - `({ async method([await = 1]) {} })`, - `({ async method({ await }) {} })`, - `({ async method({ await = 1 }) {} })`, - `({ async method({ } = await) {} })`, - - `(class { async method(await) {} })`, - `(class { async method(...await) {} })`, - `(class { async method(await = 1) {} })`, - `(class { async method([await]) {} })`, - `(class { async method([await = 1]) {} })`, - `(class { async method({ await }) {} })`, - `(class { async method({ await = 1 }) {} })`, - `(class { async method({ } = await) {} })`, - - `(class { static async method(await) {} })`, - `(class { static async method(...await) {} })`, - `(class { static async method(await = 1) {} })`, - `(class { static async method([await]) {} })`, - `(class { static async method([await = 1]) {} })`, - `(class { static async method({ await }) {} })`, - `(class { static async method({ await = 1 }) {} })`, - `(class { static async method({ } = await) {} })`, - ]; - - for (let script of testData) { - testSyntaxError(script); - testSyntaxError(`"use strict"; ${script}`); - - var nested = `var await; var f = (async function() { ${script} });`; - testSyntaxError(nested); - testSyntaxError(`"use strict"; ${nested}`); - } -})(); - -testSyntaxError(` -async function fn(arguments) { - "use strict"; -} -`, `SyntaxError: Invalid parameters or function name in strict mode.`); - -testSyntaxError(` -async function fn(eval) { - "use strict"; -} -`, `SyntaxError: Invalid parameters or function name in strict mode.`); - -testSyntaxError(` -async function arguments() { - "use strict"; -} -`, `SyntaxError: 'arguments' is not a valid function name in strict mode.`); - -testSyntaxError(` -async function eval() { - "use strict"; -} -`, `SyntaxError: 'eval' is not a valid function name in strict mode.`); - -testSyntaxError(` -async function fn(a) { - let a = 1; -} -`, `SyntaxError: Cannot declare a let variable twice: 'a'.`); - -testSyntaxError(` -async function fn(b) { - const b = 1; -} -`, `SyntaxError: Cannot declare a const variable twice: 'b'.`); - -(function testMethodDefinition() { - testSyntax("({ async [foo]() {} })"); - testSyntax("({ async [Symbol.asyncIterator]() {} })"); - testSyntax("({ async 0() {} })"); - testSyntax("({ async 'string'() {} })"); - testSyntax("({ async ident() {} })"); - - testSyntax("(class { async [foo]() {} })"); - testSyntax("(class { async [Symbol.asyncIterator]() {} })"); - testSyntax("(class { async 0() {} })"); - testSyntax("(class { async 'string'() {} })"); - testSyntax("(class { async ident() {} })"); - - testSyntax("(class { static async [foo]() {} })"); - testSyntax("(class { static async [Symbol.asyncIterator]() {} })"); - testSyntax("(class { static async 0() {} })"); - testSyntax("(class { static async 'string'() {} })"); - testSyntax("(class { static async ident() {} })"); -})(); - -(function testLineTerminator() { - let testLineFeedErrors = (prefix, suffix) => { - testSyntaxError(`${prefix}// comment - ${suffix}`); - testSyntaxError(`${prefix}/* comment - */ ${suffix}`); - testSyntaxError(`${prefix} - ${suffix}`); - testSyntaxError(`"use strict";${prefix}// comment - ${suffix}`); - testSyntaxError(`"use strict";${prefix}/* comment - */ ${suffix}`); - testSyntaxError(`"use strict";${prefix} - ${suffix}`); - }; - - let testLineFeeds = (prefix, suffix) => { - testSyntax(`${prefix}// comment - ${suffix}`); - testSyntax(`${prefix}/* comment - */${suffix}`); - testSyntax(`${prefix} - ${suffix}`); - testSyntax(`"use strict";${prefix}// comment - ${suffix}`); - testSyntax(`"use strict";${prefix}/* comment - */${suffix}`); - testSyntax(`"use strict";${prefix} - ${suffix}`); - }; - - let tests = [ - // ObjectLiteral AsyncMethodDefinition - { prefix: "({ async", suffix: "method() {} }).method" }, - - // ClassLiteral AsyncMethodDefinition - { prefix: "(class { async", suffix: "method() {} }).prototype.method" }, - - // AsyncArrowFunctions - { prefix: "(async", suffix: "param => 1)" }, - { prefix: "(async", suffix: "(param) => 1)" }, - { prefix: "(async", suffix: "param => {})" }, - { prefix: "(async", suffix: "(param) => {})" }, - ]; - - for (let { prefix, suffix } of tests) { - testSyntax(`${prefix} ${suffix}`); - testSyntax(`"use strict";${prefix} ${suffix}`); - shouldBe("function", typeof eval(`${prefix} ${suffix}`)); - shouldBe("function", typeof eval(`"use strict";${prefix} ${suffix}`)); - testLineFeedErrors(prefix, suffix); - } - - // AsyncFunctionDeclaration - testSyntax("async function foo() {}"); - testLineFeeds("async", "function foo() {}"); - - // AsyncFunctionExpression - testSyntax("var x = async function foo() {}"); - testSyntax("'use strict';var x = async function foo() {}"); - testLineFeeds("var x = async", "function foo() {}"); - testLineFeedErrors("var x = async", "function() {}"); -})(); diff --git a/implementation-contributed/javascriptcore/stress/async-await-throw-loop.js b/implementation-contributed/javascriptcore/stress/async-await-throw-loop.js deleted file mode 100644 index 2a8f914a82b0a3bd9615b62281c91f0810e9a166..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-await-throw-loop.js +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (C) Copyright 2016 the v8 project authors. All rights reserved. - -//@ runNoCJIT("--gcMaxHeapSize=2000000") - -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - - -let out; - -async function thrower() { throw undefined; } - -async function throwLoop() { - for (let i = 0; i < 8000; i++) { - try { - await thrower(); - } catch (error) { - void 0; - } - } - out = 2; -} - -throwLoop(); - -drainMicrotasks(); - -shouldBe(out, 2); diff --git a/implementation-contributed/javascriptcore/stress/async-function-create-nobaseline.js b/implementation-contributed/javascriptcore/stress/async-function-create-nobaseline.js deleted file mode 100644 index ac707153436a7bf85a84b2b71b20d9395346d5ad..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-create-nobaseline.js +++ /dev/null @@ -1,13 +0,0 @@ -function test(cond) -{ - if (cond) { - var func = async function () {}; - return func; - } - - return 42; -} -noInline(test); - -for (var i = 0; i < 1e4; ++i) - test(); diff --git a/implementation-contributed/javascriptcore/stress/async-function-create-optimized.js b/implementation-contributed/javascriptcore/stress/async-function-create-optimized.js deleted file mode 100644 index ddcf50f3f050b85e8f171dcef976976b8087f9c7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-create-optimized.js +++ /dev/null @@ -1,44 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -var AsyncFunctionPrototype = async function() {}.__proto__; - -function testAsyncFunctionExpression() -{ - return async function() - { - await 42; - return 1; - }; -} -noInline(testAsyncFunctionExpression); - -function testAsyncFunctionDeclaration() -{ - async function asyncFn() - { - await 42; - return 1; - } - - return asyncFn; -} -noInline(testAsyncFunctionDeclaration); - -function testAsyncArrowFunction() -{ - return async() => - { - await 42; - return 1; - }; -} -noInline(testAsyncArrowFunction); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testAsyncFunctionExpression().__proto__, AsyncFunctionPrototype); - shouldBe(testAsyncFunctionDeclaration().__proto__, AsyncFunctionPrototype); - shouldBe(testAsyncArrowFunction().__proto__, AsyncFunctionPrototype); -} diff --git a/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-no-double-allocate.js b/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-no-double-allocate.js deleted file mode 100644 index c1a92ad91d0b9d3a44db525d364184e67541dd79..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-no-double-allocate.js +++ /dev/null @@ -1,38 +0,0 @@ -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} -var AsyncFunctionPrototype = async function(){}.__proto__; - -function call(o) { o.x = 3; } -noInline(call); - -function sink (p, q) { - async function f() { }; - if (p) { - call(f); // Force allocation of f - if (q) { - OSRExit(); - } - return f; - } - return { 'x': 2 }; -} -noInline(sink); - -for (var i = 0; i < 100000; ++i) { - var o = sink(true, false); - shouldBe(o.__proto__, AsyncFunctionPrototype); - if (o.x != 3) - throw "Error: expected o.x to be 2 but is " + result; -} - -// At this point, the function should be compiled down to the FTL - -// Check that the function is properly allocated on OSR exit -var f = sink(true, true); -shouldBe(f.__proto__, AsyncFunctionPrototype); -if (f.x != 3) - throw "Error: expected o.x to be 3 but is " + result; diff --git a/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-osrexit.js b/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-osrexit.js deleted file mode 100644 index 9e5a569e13ecc2990056cfb0ceaf1c720dcb4a08..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-osrexit.js +++ /dev/null @@ -1,42 +0,0 @@ -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - -function shouldBeAsync(expected, promise, msg) { - let actual; - var hadError = false; - promise.then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - - if (hadError) - throw actual; - - shouldBe(expected, actual, msg); -} - -var AsyncFunctionPrototype = async function(){}.__proto__; - -function sink (p, q) { - async function g(x) { return x; }; - if (p) { if (q) OSRExit(); return g; } - async function f(x) { return x; }; - return f; -} -noInline(sink); - -for (var i = 0; i < 10000; ++i) { - var f = sink(true, false); - shouldBe(f.__proto__, AsyncFunctionPrototype); - shouldBeAsync(42, f(42)); -} - -// At this point, the function should be compiled down to the FTL - -// Check that the function is properly allocated on OSR exit -var f = sink(true, true); -shouldBe(f.__proto__, AsyncFunctionPrototype); -shouldBeAsync(42, f(42)); diff --git a/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-put.js b/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-put.js deleted file mode 100644 index 06177e880fab0d98ab79eb7d8369995f7c1affaa..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-declaration-sinking-put.js +++ /dev/null @@ -1,49 +0,0 @@ -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - -function shouldBeAsync(expected, promise, msg) { - let actual; - var hadError = false; - promise.then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - - if (hadError) - throw actual; - - shouldBe(expected, actual, msg); -} - -var AsyncFunctionPrototype = async function(){}.__proto__; - -function sink (p, q) { - async function g(x) { return x; }; - if (p) { if (q) g.inner = 42; return g; } - async function f(x) { return x; }; - return f; -} -noInline(sink); - -for (var i = 0; i < 10000; ++i) { - var f = sink(true, true); - shouldBe(f.__proto__, AsyncFunctionPrototype); - shouldBeAsync(42, f(42)); -} - -// At this point, the function should be compiled down to the FTL - -// Test the allocation on the implicit inner else branch -var f = sink(true, false); -shouldBe(f.__proto__, AsyncFunctionPrototype); -shouldBeAsync(12, f(12)); - -// Check that the allocation did not sink beyond the property assignment -var f = sink(true, true); -shouldBe(f.__proto__, AsyncFunctionPrototype); -var result = f.inner; -if (result !== 42) - throw "Error: inner should be 42 but is " + result; diff --git a/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-no-double-allocate.js b/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-no-double-allocate.js deleted file mode 100644 index c17aa994e9ec95c10be24e5e11b3cb4dd26f5bab..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-no-double-allocate.js +++ /dev/null @@ -1,36 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} -var AsyncFunctionPrototype = async function(){}.__proto__; - -function call(o) { o.x = 3; } -noInline(call); - -function sink (p, q) { - var f = async function() { }; - if (p) { - call(f); // Force allocation of f - if (q) { - OSRExit(); - } - return f; - } - return { 'x': 2 }; -} -noInline(sink); - -for (var i = 0; i < 100000; ++i) { - var o = sink(true, false); - shouldBe(o.__proto__, AsyncFunctionPrototype); - if (o.x != 3) - throw "Error: expected o.x to be 2 but is " + result; -} - -// At this point, the function should be compiled down to the FTL - -// Check that the function is properly allocated on OSR exit -var f = sink(true, true); -shouldBe(f.__proto__, AsyncFunctionPrototype); -if (f.x != 3) - throw "Error: expected o.x to be 3 but is " + result; diff --git a/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-osrexit.js b/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-osrexit.js deleted file mode 100644 index 22b14668cbd3b0d045db292dc1edbe6265227d9e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-osrexit.js +++ /dev/null @@ -1,40 +0,0 @@ -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} -function shouldBeAsync(expected, promise, msg) { - let actual; - var hadError = false; - promise.then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - - if (hadError) - throw actual; - - shouldBe(expected, actual, msg); -} - -var AsyncFunctionPrototype = async function(){}.__proto__; - -function sink (p, q) { - var g = async function (x) { return x; }; - if (p) { if (q) OSRExit(); return g; } - return async function (x) { return x; }; -} -noInline(sink); - -for (var i = 0; i < 10000; ++i) { - var f = sink(true, false); - shouldBe(f.__proto__, AsyncFunctionPrototype); - shouldBeAsync(42, f(42)); -} - -// At this point, the function should be compiled down to the FTL - -// Check that the function is properly allocated on OSR exit -var f = sink(true, true); -shouldBe(f.__proto__, AsyncFunctionPrototype); -shouldBeAsync(42, f(42)); diff --git a/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-put.js b/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-put.js deleted file mode 100644 index 5b21d2c35c12c79604577c6aee471fb296ca5da8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-function-expression-sinking-put.js +++ /dev/null @@ -1,46 +0,0 @@ -function shouldBe(expected, actual, msg = "") { - if (msg) - msg = " for " + msg; - if (actual !== expected) - throw new Error("bad value" + msg + ": " + actual + ". Expected " + expected); -} - -function shouldBeAsync(expected, promise, msg) { - let actual; - var hadError = false; - promise.then(function(value) { actual = value; }, - function(error) { hadError = true; actual = error; }); - drainMicrotasks(); - - if (hadError) - throw actual; - - shouldBe(expected, actual, msg); -} - -var AsyncFunctionPrototype = async function(){}.__proto__; - -function sink (p, q) { - var g = async function(x) { return x; }; - if (p) { if (q) g.inner = 42; return g; } - return async function(x) { return x; }; -} -noInline(sink); - -for (var i = 0; i < 10000; ++i) { - var f = sink(true, true); - shouldBe(f.__proto__, AsyncFunctionPrototype); - shouldBeAsync(42, f(42)); -} - -// At this point, the function should be compiled down to the FTL - -// Test the allocation on the implicit inner else branch -var f = sink(true, false); -shouldBe(f.__proto__, AsyncFunctionPrototype); -shouldBeAsync(12, f(12)); - -// Check that the allocation did not sink beyond the property assignment -var f = sink(true, true); -shouldBe(f.__proto__, AsyncFunctionPrototype); -shouldBe(42, f.inner); diff --git a/implementation-contributed/javascriptcore/stress/async-generator-assertion.js b/implementation-contributed/javascriptcore/stress/async-generator-assertion.js deleted file mode 100644 index 26b71c7191405c5d05eacc86f81f2fce31c5db19..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-generator-assertion.js +++ /dev/null @@ -1,36 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad"); -} - -async function* asyncIterator() { - yield 42; -} - -function test1() { - let p = asyncIterator(); - p.next().then((x) => { - assert(x.value === 42); - assert(x.done === false); - }); - p.__proto__ = {}; - assert(p.next === undefined); -} -test1(); - -let error = null; -async function test2() { - let p2 = asyncIterator(); - p2.__proto__ = {}; - try { - for await (let x of p2) { - throw new Error("Bad!"); - } - } - catch(e) { - error = e; - } -} -test2(); -assert(error instanceof TypeError); -assert(error.message === "undefined is not a function (near '...x of p2...')"); diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-async-from-sync.js b/implementation-contributed/javascriptcore/stress/async-iteration-async-from-sync.js deleted file mode 100644 index a696aa8351526a07e9572be1d584c03cab49fd28..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-async-from-sync.js +++ /dev/null @@ -1,468 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -const Logger = function () { - var log = []; - - this.logEvent = (type, value, done) => { - log.push({ type, value, done}); - }; - this.logFulfilledEvent = (value, done) => { - this.logEvent('fulfilled', value, done); - }; - this.logRejectEvent = error => { - this.logEvent('reject', error.toString(), true); - }; - this.logCatchEvent = value => { - this.logEvent('catch', value, true); - }; - this.getLogger = () => log; - - this.clear = () => { - log = []; - } -}; - -const fulfillSpy = logger => result => logger.logFulfilledEvent(result.value, result.done); -const rejectSpy = logger => error => logger.logRejectEvent(error); -const catchSpy = logger => error => logger.logCatchEvent(error); - -const assertLogger = function (loggerObject) { - const logger = loggerObject.getLogger(); - - var _assertLogger = function () { - let index = 0; - - const isNotOutOfLength = () => { - assert(index < logger.length, true, `Index is greater then log length`); - } - - this.fullfilled = function (expectedValue, message = 'on fulfill') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.fullfilledDone = function (expectedValue, message = 'on fulfill with done true') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.rejected = function (error, message = 'on reject') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'reject', msg); - assert(step.value, error.toString(), msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.catched = function (expectedError, message = 'on catch') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'catch', msg); - assert(step.value, expectedError, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.isFinal = function (message = '') { - assert(index, logger.length, `expected final step: ${message}`); - }; - }; - - return new _assertLogger(); -}; - -const getPromise = promiseHolder => { - return new Promise((resolve, reject) => { - promiseHolder.resolve = resolve; - promiseHolder.reject = reject; - }); -}; - -var logger = new Logger(); -const someValue = 'some-value'; -const errorMessage = 'error-message'; - -function * foo(value) { - let re = yield '1:' + value; - re = yield '2:' + re; - re = yield '3:' + re; - return 'end foo:' + re; -} - -async function * boo(value) { - let reply = yield '0:' + value; - reply = yield* foo(reply); - yield '4:' + reply; -} - -var b = boo('init'); -const errorprint = error => print(error); -b.next('0').then(fulfillSpy(logger), errorprint); -b.next('1').then(fulfillSpy(logger), errorprint); -b.next('2').then(fulfillSpy(logger), errorprint); -b.next('3').then(fulfillSpy(logger), errorprint); -b.next('4').then(fulfillSpy(logger), errorprint); -b.next('5').then(fulfillSpy(logger), errorprint); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:init') - .fullfilled('1:1') - .fullfilled('2:2') - .fullfilled('3:3') - .fullfilled('4:end foo:4') - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -var b2 = boo(':value'); - -b2.next(':0').then(fulfillSpy(logger)); -b2.next(':1').then(fulfillSpy(logger), rejectSpy(logger)); -b2.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -b2.next(':2').then(fulfillSpy(logger)); -b2.next(':3').then(fulfillSpy(logger)); -b2.next(':4').then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0::value') - .fullfilled('1::1') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -var b2 = boo('#value'); - -b2.next('#0').then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#1').then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#2').then(fulfillSpy(logger), rejectSpy(logger)); -b2.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#3').then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#4').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:#value') - .fullfilled('1:#1') - .fullfilled('2:#2') - .rejected(new Error(errorMessage)) // TODO: Check if this correct - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -function * bar() { - yield '1'; - yield '2'; - throw new Error(errorMessage); - yield '3'; - return 'end foo'; -} - -async function * baz() { - yield '0'; - yield* bar(); - yield '4'; -} - -logger.clear(); -var bz1 = baz(); - -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -let promiseHolder = {}; - -function *joo() { - yield '1'; - yield getPromise(promiseHolder); -} - -async function *goo () { - yield '0'; - yield* joo(); - yield '3'; -} - -let g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.resolve('2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('2') - .fullfilled('3') - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('#2') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('#2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-basic.js b/implementation-contributed/javascriptcore/stress/async-iteration-basic.js deleted file mode 100644 index cf694764bae22e902db3995c882e8c5f1444435d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-basic.js +++ /dev/null @@ -1,955 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -const Logger = function () { - var log = []; - - this.logEvent = (type, value, done) => { - log.push({ type, value, done}); - }; - this.logFulfilledEvent = (value, done) => { - this.logEvent('fulfilled', value, done); - }; - this.logRejectEvent = error => { - this.logEvent('reject', error.toString(), true); - }; - this.logCatchEvent = value => { - this.logEvent('catch', value, true); - }; - this.getLogger = () => log; - - this.clear = () => { - log = []; - } -}; - -const fulfillSpy = logger => result => logger.logFulfilledEvent(result.value, result.done); -const rejectSpy = logger => error => logger.logRejectEvent(error); -const catchSpy = logger => error => logger.logCatchEvent(error); - -const assertLogger = function (loggerObject) { - const logger = loggerObject.getLogger(); - - var _assertLogger = function () { - let index = 0; - - const isNotOutOfLength = () => { - assert(index < logger.length, true, `Index is greater then log length`); - } - - this.fullfilled = function (expectedValue, message = 'on fulfill') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.fullfilledDone = function (expectedValue, message = 'on fulfill with done true') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.rejected = function (error, message = 'on reject') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'reject', msg); - assert(step.value, error.toString(), msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.catched = function (expectedError, message = 'on catch') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'catch', msg); - assert(step.value, expectedError, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.isFinal = function (message = '') { - assert(index, logger.length, `expected final step: ${message}`); - }; - }; - - return new _assertLogger(); -}; - -const getPromise = promiseHolder => { - return new Promise((resolve, reject) => { - promiseHolder.resolve = resolve; - promiseHolder.reject = reject; - }); -}; - -async function*generator () { - yield 42; -} - -var passed = false; -var iterator = generator(); - -iterator.next().then(function(step) { - if(iterator[Symbol.asyncIterator]() === iterator && step.done === false && step.value === 42) passed = true; -}); - -drainMicrotasks(); - -assert(passed, true, ''); - -assert(generator[Symbol.toStringTag], 'AsyncGeneratorFunction'); -assert(Object.prototype.toString.call(generator), '[object AsyncGeneratorFunction]'); - - -var holder = {}; - -var promise = getPromise(holder); -var logger = new Logger(); - -async function * baz(value) { - var t = await promise; - let reply = yield t + ' data-0' + value; - let last = yield t + ' data-1' + reply; - return 'data-result' + last; -} - -var bz1 = baz(':init'); - -bz1.next(':0').then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next(':1').then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next(':2').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .isFinal(); - -holder.resolve('abcd'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-0:init') - .fullfilled('abcd data-1:1') - .fullfilledDone('data-result:2') - .isFinal(); - -logger.clear(); - -promise = getPromise(holder); - -var bz2 = baz(':init'); - -bz2.next(':0').then(fulfillSpy(logger), rejectSpy(logger)); -bz2.next(':1').then(fulfillSpy(logger), rejectSpy(logger)); -bz2.next(':2').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .isFinal(); - -holder.reject('abcd'); - -drainMicrotasks(); - -assertLogger(logger) - .rejected('abcd') - .fullfilledDone() - .fullfilledDone() - .isFinal(); - -var holder1 = {}; holder2 = {}; -var promise1 = getPromise(holder1); -var promise2 = getPromise(holder2); - -logger.clear(); - -async function *boo() { - var t1 = await promise1; - yield t1 + ' data-1'; - yield t1 + ' data-2'; - var t2 = await promise2; - yield t2 + ' data-3'; - yield t2 + ' data-4'; - return 'data-5'; -}; - -var b = boo(); - -b.next().then(fulfillSpy(logger)); -b.next().then(fulfillSpy(logger)); -b.next().then(fulfillSpy(logger)); -b.next().then(fulfillSpy(logger)); -b.next().then(fulfillSpy(logger)); -b.next().then(fulfillSpy(logger)); - -assertLogger(logger) - .isFinal('async generator should not resolve any promise until await is no resolved'); - -holder1.resolve('abcd'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-1') - .fullfilled('abcd data-2') - .isFinal(); - -holder2.resolve('efgh'); -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-1') - .fullfilled('abcd data-2') - .fullfilled('efgh data-3') - .fullfilled('efgh data-4') - .fullfilledDone('data-5') - .fullfilledDone(undefined, error => print(error)) - .isFinal(); - -holder = {}; - -promise = getPromise(holder); - -async function *foo() { - var t = await 'abcd'; - yield t + ' data-5'; - var t2 = await promise; - yield t2 + ' data-6'; -}; - -logger.clear(); - -var f = foo(); - -f.next().then(fulfillSpy(logger)); -f.next().then(fulfillSpy(logger)); -f.next().then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-5') - .isFinal('async generator should not resolve any promise until await is not resolved'); - -holder.resolve('xyz'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-5') - .fullfilled('xyz data-6') - .fullfilledDone(undefined) - .isFinal('async generator should not resolve any promise until await is not resolved'); - -holder = {}; -promise = getPromise(holder); - -async function *goo() { - yield 'data-5'; - var t = await promise; - yield t + ' data-6'; - yield t + ' data-7'; -}; - -logger.clear(); -var errorText = 'error-reject'; -var g = goo(); - -drainMicrotasks(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('data-5') - .isFinal('async generator should not resolve any promise until await is not resolved'); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -assertLogger(logger) - .fullfilled('data-5') - .isFinal('async generator should not resolve any promise until await is not resolved'); - -holder.reject(errorText); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('data-5') - .rejected(errorText) - .fullfilledDone(undefined, 'After reject all resolved value have undefined') - .isFinal(); - -/* Method in class */ - -const someText = 'foo'; -const resolveText = 'bar'; - -logger.clear(); - -holder = {}; -promise = getPromise(holder); - -class A { - async * foo() { yield someText; } - async * boo() { var text = await promise; yield text + someText; } -} -var a = new A; -var gf = a.foo(); - -gf.next().then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(someText) - .isFinal(); - -const gb = a.boo(); - -gb.next().then(fulfillSpy(logger)); - -assertLogger(logger) - .fullfilled(someText) - .isFinal(); - -holder.resolve(resolveText); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(someText) - .fullfilled(resolveText + someText) - .isFinal(); - -/* Async generator function expression */ -logger.clear(); -holder = {}; -promise = getPromise(holder); - -var asyncGenExp = async function *() { var t = await promise; yield t + someText + someText; }; - -var gAsyncGenExp = asyncGenExp(); - -gAsyncGenExp.next().then(fulfillSpy(logger)); - -holder.resolve(resolveText); -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(resolveText + someText + someText) - .isFinal(); - -logger.clear(); - -/*Test throw*/ -async function *joo() { - yield 'data-1'; - yield 'data-2'; - yield 'data-3'; -}; - -var j = joo(); -var errorTextInFunction = "ErrorInFunction"; -const errorWrongGenerator = "|this| should be an async generator"; -let errorRaised = false; - -j.next() -.then(function(value) { - fulfillSpy(logger)(value); - return j.throw(new Error(errorTextInFunction)); -}) -.then(function (value) { - fulfillSpy(logger)(value); -}, function (error) { - rejectSpy(logger)(error); - return j.next(); -}) -.then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('data-1') - .rejected((new Error(errorTextInFunction)).toString()) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -var j1 = joo(); - -j1.throw(new Error(errorText)).then(fulfillSpy(logger), rejectSpy(logger)); -j1.next().then(fulfillSpy(logger), rejectSpy(logger)); -j1.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new Error(errorText)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -var j2 = joo(); - -const returnValue = 'return-value'; - -j1.return(returnValue).then(fulfillSpy(logger), rejectSpy(logger)); -j1.throw(new Error(errorText)).then(fulfillSpy(logger), rejectSpy(logger)); -j1.next().then(fulfillSpy(logger), rejectSpy(logger)); -j1.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilledDone(returnValue) - .rejected(new Error(errorText)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -let j3 = joo(); - -j3.next.call(undefined).then(fulfillSpy(logger), rejectSpy(logger)); -drainMicrotasks(); - -assertLogger(logger) - .rejected(new TypeError(errorWrongGenerator)) - .isFinal(); - -logger.clear(); -j3 = joo(); - -j3.next.call(undefined).then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new TypeError(errorWrongGenerator)) - .fullfilled('data-1') - .fullfilled('data-2') - .fullfilled('data-3') - .isFinal(); - -logger.clear(); -j3 = joo(); - -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); -j3.next.call(undefined).then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new TypeError(errorWrongGenerator)) - .fullfilled('data-1') - .fullfilled('data-2') - .fullfilled('data-3') - .isFinal(); - -logger.clear(); -j3 = joo(); - -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); -j3.next.call(undefined).then(fulfillSpy(logger), rejectSpy(logger)); -j3.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new TypeError(errorWrongGenerator)) - .fullfilled('data-1') - .fullfilled('data-2') - .fullfilled('data-3') - .isFinal(); - -logger.clear(); -j3 = joo(); - -j3.next.call({}).catch(rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new TypeError(errorWrongGenerator)) - -logger.clear(); -j3 = joo(); -j3.next.call('string').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new TypeError(errorWrongGenerator)) - .isFinal(); - -logger.clear(); -j3 = joo(); -let gen = generator(); -j3.next.call(gen).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(42) - .isFinal(); - -logger.clear(); -holder = {}; -promise = getPromise(holder); - -async function *koo() { - var t = await 'abcd'; - yield t + ' data-first'; - var t2 = await promise; - yield t2 + ' data-second'; - yield t2 + ' data-third'; -}; - -const k1 = koo(); - -k1.next().then(fulfillSpy(logger)); -k1.next().then(fulfillSpy(logger)); - -k1.throw(new Error(errorText)).then(fulfillSpy(logger), rejectSpy(logger)); -k1.next().then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-first') - .isFinal(); - -holder.resolve('xyz'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-first') - .fullfilled('xyz data-second') - .rejected(new Error(errorText)) - .fullfilledDone(undefined) - .isFinal(); - - -logger.clear(); -holder = {}; -promise = getPromise(holder); - -const k2 = koo(); - -k2.next().then(fulfillSpy(logger)); -k2.next().then(fulfillSpy(logger)); - -k2.return(returnValue).then(fulfillSpy(logger)); - -holder.resolve('xyz'); - -k2.throw(new Error(errorText)).then(fulfillSpy(logger), rejectSpy(logger)); -k2.next().then(fulfillSpy(logger)); -k2.next().then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abcd data-first') - .fullfilled('xyz data-second') - .fullfilledDone(returnValue) - .rejected(new Error(errorText)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - - -logger.clear(); -holder = {}; -promise = getPromise(holder); - -async function *loo() { - var t = await promise; - throw new Error(errorText); - yield t + 'data-first'; - yield t + 'data-second'; -}; - -const l1 = loo(); - -l1.next().then(fulfillSpy(logger), rejectSpy(logger)); -l1.next().then(fulfillSpy(logger), rejectSpy(logger)); -l1.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .isFinal(); - -holder.resolve('qwe'); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new Error(errorText)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -holder = {}; -promise = getPromise(holder); - -const l2 = loo(); - -l2.throw(new Error('another error')).then(fulfillSpy(logger), rejectSpy(logger)); -l2.next().then(fulfillSpy(logger), rejectSpy(logger)); -l2.next().then(fulfillSpy(logger), rejectSpy(logger)); - -holder.resolve('abc'); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new Error('another error')) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -holder = {}; -promise = getPromise(holder); - -const l3 = loo(); - -l3.return(someText).then(fulfillSpy(logger), rejectSpy(logger)); -l3.next().then(fulfillSpy(logger), rejectSpy(logger)); -l3.next().then(fulfillSpy(logger), rejectSpy(logger)); - -holder.resolve(resolveText); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilledDone(someText) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -async function *moo() { - throw new Error(errorText); - yield t + 'data-first'; - yield t + 'data-second'; -}; - -const m1 = moo(); - -m1.next().then(fulfillSpy(logger), rejectSpy(logger)); -m1.next().then(fulfillSpy(logger), rejectSpy(logger)); -m1.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new Error(errorText)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -const m2 = moo(); - -m2.throw(new Error('another error')).then(fulfillSpy(logger), rejectSpy(logger)); -m2.next().then(fulfillSpy(logger), rejectSpy(logger)); -m2.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(new Error('another error')) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -const m3 = moo(); - -m3.return(someText).then(fulfillSpy(logger), rejectSpy(logger)); -m3.next().then(fulfillSpy(logger), rejectSpy(logger)); -m3.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilledDone(someText) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -async function* noo() { - const x = Promise.resolve(1); - const y = Promise.resolve(2); - - const fromX = yield x; - return y; -} - -const n1 = noo(); - -let value1 = Promise.resolve("a"); -let value2 = Promise.resolve("b"); - -n1.next(value1).then(fulfillSpy(logger), rejectSpy(logger)); -n1.next(value2).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilledDone(2) - .isFinal(); - -logger.clear(); - -const n2 = noo(); - -value1 = Promise.resolve("a"); -value2 = Promise.resolve("b"); - -n2.return(value1).then(fulfillSpy(logger), rejectSpy(logger)); -n2.next(value2).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilledDone('a') - .fullfilledDone() - .isFinal(); - -logger.clear(); - -promise = getPromise(holder); - -async function *ooo() { - yield promise; -} - -const o1 = ooo(); - -o1.next(value1).then(fulfillSpy(logger), rejectSpy(logger)); - -holder.reject("a"); - -drainMicrotasks(); - -assertLogger(logger) - .rejected('a') - .isFinal(); - -logger.clear(); - -promise = getPromise(holder); - -async function *roo() { - try { - yield promise; - } catch (e) { - yield e; - } -} - -const r1 = roo(); -value1 = 'value-1'; -value2 = 'value-2'; -value3 = 'value-3'; - -r1.next().then(fulfillSpy(logger), rejectSpy(logger)); -r1.next(value1).then(fulfillSpy(logger), rejectSpy(logger)); -r1.next(value1).then(fulfillSpy(logger), rejectSpy(logger)); - -holder.reject("abc"); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('abc') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -holder1 = {}; -holder2 = {}; -promise1 = getPromise(holder1); -promise2 = getPromise(holder2); - -async function *poo() { - try { - yield promise1; - } catch (e) { - yield promise2; - } -} - -const p1 = poo(); - -p1.next().then(fulfillSpy(logger), rejectSpy(logger)); -p1.next(value3).then(fulfillSpy(logger), rejectSpy(logger)); -p1.next(value3).then(fulfillSpy(logger), rejectSpy(logger)); - -holder1.reject(value1); -holder2.reject(value2); - -drainMicrotasks(); - -assertLogger(logger) - .rejected(value2) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -async function *soo() { - yield 1; -} - -const endValue = 'end-value-1'; - -logger.clear(); - -const s1 = soo(); - -s1.next().then(fulfillSpy(logger), rejectSpy(logger)); -s1.next().then(fulfillSpy(logger), rejectSpy(logger)); -s1.return(Promise.resolve(endValue)).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilledDone() - .fullfilledDone(endValue) - .isFinal(); - -logger.clear(); - -const s2 = soo(); - -s2.next().then(fulfillSpy(logger), rejectSpy(logger)); -s2.next().then(fulfillSpy(logger), rejectSpy(logger)); -s2.return(Promise.reject(endValue)).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilledDone() - .rejected(endValue) - .isFinal(); - -logger.clear(); -const s3 = soo(); - -s3.next().then(fulfillSpy(logger), rejectSpy(logger)); -s3.next().then(fulfillSpy(logger), rejectSpy(logger)); -s3.return(endValue).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilledDone() - .fullfilledDone(endValue) - .isFinal(); - -logger.clear(); - -const s4 = soo(); -promise1 = Promise.resolve(endValue); - -s4.next().then(fulfillSpy(logger), rejectSpy(logger)); -s4.next().then(fulfillSpy(logger), rejectSpy(logger)); -s4.throw(promise1).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilledDone() - .rejected(promise1) - .isFinal(); - -logger.clear(); - -const s5 = soo(); - -s5.next().then(fulfillSpy(logger), rejectSpy(logger)); -s5.next().then(fulfillSpy(logger), rejectSpy(logger)); -s5.throw(endValue).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilledDone() - .rejected(endValue) - .isFinal(); - -async function *too() { - return Promise.resolve('abcd'); -} - -logger.clear(); - -const t = too(); - -t.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilledDone('abcd') - .isFinal(); diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-evaluation.js b/implementation-contributed/javascriptcore/stress/async-iteration-evaluation.js deleted file mode 100644 index 2f472ee13b5a5728ddc9d2a0a767edf0aff89c4f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-evaluation.js +++ /dev/null @@ -1,20 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -let error = false; - -async function * foo(value = obj) { - yield '1'; - return 'end'; -} - -try { - var f = foo(); -} catch(e) { - error = e instanceof ReferenceError; -} - -assert(error, true, 'Error in arguments declaration should to error during evaluation of async generator.'); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-for-await-of-syntax.js b/implementation-contributed/javascriptcore/stress/async-iteration-for-await-of-syntax.js deleted file mode 100644 index ba1621c11ba57e005b25cebabdb93055410662e4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-for-await-of-syntax.js +++ /dev/null @@ -1,118 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -function checkSyntax(src) { - try { - eval(src); - } catch (error) { - if (error instanceof SyntaxError) - throw new Error("Syntax Error: " + String(error) + "\n script: `" + src + "`"); - } -} - -function checkSyntaxError(src, message) { - var bError = false; - try { - eval(src); - } catch (error) { - bError = error instanceof SyntaxError && (String(error) === message || typeof message === 'undefined'); - } - if (!bError) { - throw new Error("Expected syntax Error: " + message + "\n in script: `" + src + "`"); - } -} - -(function checkSimpleAsyncGeneratorSloppyMode() { - checkSyntax('var a1 = async function*asyncGenWithName1(){ for await(const value of foo()) {} }'); - checkSyntax('var a1 = async function asyncWithName1(){ for await(const value of foo()) {} }'); - checkSyntax('var a1 = async function*asyncGenWithName1(){ for await(let value of foo()) {} }'); - checkSyntax('var a1 = async function asyncWithName1(){ for await(let value of foo()) {} }'); -})(); - -(function checkSimpleAsyncGeneratorStrictMode() { - checkSyntax('"use strict"; var a1 = async function*asyncGenWithName1(){ for await(const value of foo()) {} }'); - checkSyntax('"use strict"; var a1 = async function asyncWithName1(){ for await(const value of foo()) {} }'); - checkSyntax('"use strict"; var a1 = async function*asyncGenWithName1(){ for await(let value of foo()) {} }'); - checkSyntax('"use strict"; var a1 = async function asyncWithName1(){ for await(let value of foo()) {} }'); -})(); - - -(function checkNestedAsyncGenerators() { - var wrappers = [ - {start: 'var a1 = async function*asyncGenWithName1(){', finish: '}'}, - {start: 'async function*asyncGenWithName2(){ ', finish: '}'}, - {start: 'async function asyncWithName2(){ ', finish: '}'}, - {start: 'class A { async * method() { ', finish: ' } }'}, - {start: 'var a1 = async () => {', finish: '}'}, - {start: 'var a1 = async () => { try { ', finish: ' } catch (e) {} }'}, - {start: 'var a1 = async () => { { ', finish: ' } }'}, - {start: 'var a1 = async () => { if (true) { ', finish: ' } }'}, - {start: 'var a1 = async () => { if (true) ', finish: ' }'}, - {start: 'var a1 = async () => { if (true) foo(); else { ', finish: ' } }'}, - {start: 'var a1 = async () => { while (true) { ', finish: ' } }'}, - {start: 'var a1 = async () => { for(;;) { ', finish: ' } }'}, - {start: 'var a1 = async () => { switch(e) { case \'1\' : ', finish: ' } }'}, - ]; - - expressions = [ - 'for await(const value of foo()) {}', - 'for await(let value of foo()) {}', - 'for await(var value of foo()) {}', - 'for await(var [a, b] of foo()) {}', - 'for await(let {a, b} of foo()) {}', - 'for await(const [... b] of foo()) {}', - 'for await(const [,,, b] of foo()) {}', - 'for await(const value of boo) {}', - 'for await(let value of boo) {}', - 'for await(const value of foo().boo()) {}', - 'for await(let value of foo.boo()) {}', - 'for await(let value of foo.boo(value)) {}', - 'for await(let value of [1,2,3]) {}', - 'for await(value of [1,2,3]) {}', - 'for await(value of x + x) {}', - 'for await(value of f()) {}', - 'for await(value of (x + x)) {}', - ]; - - wrappers.forEach(wrapper => { - expressions.forEach(exp => { - checkSyntax(wrapper.start + exp + wrapper.finish); - }); - }) -})(); - - -(function checkSimpleAsyncGeneratorSyntaxErrorInSloppyMode() { - checkSyntaxError("var asyncGenFn = function () { for await(const value of foo()) {} }"); - checkSyntaxError("var asyncGenFn = async function () { var arr = () => { for await(const value of foo()) {} } }"); - checkSyntaxError("var asyncGenFn = function* () { for await(const value of foo()) {} }"); - checkSyntaxError("var asyncGenFn = async function* () { var arr = () => { for await(const value of foo()) {} } }"); - checkSyntaxError('var a1 = async function*asyncGenWithName1(){ for await(const value in foo()) {} }'); - checkSyntaxError('var a1 = async function asyncWithName1(){ for await(const value in foo()) {} }'); - checkSyntaxError('var a1 = async function asyncWithName1(){ for await (;;) {} }'); - checkSyntaxError("var a1 = async function asyncWithName1(){ for await (let v = 4;;) {} }"); - checkSyntaxError("var a1 = async function asyncWithName1(){ for await (let v of f();;) {} }"); - checkSyntaxError("var a1 = async function asyncWithName1(){ for await (let v of boo;;) {} }"); - checkSyntaxError("var a1 = async function asyncWithName1(){ for await (let v of boo of) {} }"); - checkSyntaxError("async function asyncWithName1(){ for await (let v of boo in) {} }"); - checkSyntaxError("async function asyncWithName1(){ for await (v in x + x ) {} }"); -})(); - -(function checkSimpleAsyncGeneratorSyntaxErrorInStrictMode() { - checkSyntaxError("'use strict'; var asyncGenFn = function () { for await(const value of foo()) {} }"); - checkSyntaxError("'use strict'; var asyncGenFn = async function () { var arr = () => { for await(const value of foo()) {} } }"); - checkSyntaxError("'use strict'; var asyncGenFn = function* () { for await(const value of foo()) {} }"); - checkSyntaxError("'use strict'; var asyncGenFn = async function* () { var arr = () => { for await(const value of foo()) {} } }"); - checkSyntaxError("'use strict'; var a1 = async function*asyncGenWithName1(){ for await(const value in foo()) {} }"); - checkSyntaxError("'use strict'; var a1 = async function asyncWithName1(){ for await(const value in foo()) {} }"); - checkSyntaxError("'use strict'; var a1 = async function asyncWithName1(){ for await (;;) {} }"); - checkSyntaxError("'use strict'; var a1 = async function asyncWithName1(){ for await (let v = 4;;) {} }"); - checkSyntaxError("'use strict'; var a1 = async function asyncWithName1(){ for await (let v of f();;) {} }"); - checkSyntaxError("'use strict'; var a1 = async function asyncWithName1(){ for await (let v of boo;;) {} }"); - checkSyntaxError("'use strict'; var a1 = async function asyncWithName1(){ for await (let v of boo of) {} }"); - checkSyntaxError("'use strict'; async function asyncWithName1(){ for await (let v of boo in) {} }"); - checkSyntaxError("'use strict'; async function asyncWithName1(){ for await (v in x + x ) {} }"); -})(); diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-for-await-of.js b/implementation-contributed/javascriptcore/stress/async-iteration-for-await-of.js deleted file mode 100644 index 6ecad0f76d98dc02af2ef9e9109d7a6dc0b0da49..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-for-await-of.js +++ /dev/null @@ -1,280 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; -var result = 0; -async function * foo() { yield 1; yield Promise.resolve(2); return 3;}; - -async function boo () { - for await (const value of foo()) { - result = result + value; - } -} - -boo(); - -drainMicrotasks(); - -assert(result, 3); - -result = 0; - -{ - const boo = async function () { - for await (const val of foo()) { - result = result + val; - } - } - - boo(); - - drainMicrotasks(); - - assert(result, 3); -} - -{ - result = 0; - const boo = async function () { - for await (const val of [1, 2, 3]) { - result = result + val; - } - } - - boo(); - - drainMicrotasks(); - - assert(result, 6); -} - -{ - let error = false; - - const boo = async function () { - for await (const val of 1) { - result = result + val; - } - } - - boo().catch(raisedError => error = raisedError instanceof TypeError); - - drainMicrotasks(); - - assert(error, true); -} - -{ - let conter = 0; - const o = { - [Symbol.asyncIterator]() { - return this - }, - next(args) { - return { done: true } - } - } - - result = -1; - const boo = async function () { - for await (const val of o) { - conter++; - result = val; - } - } - - boo(); - - drainMicrotasks(); - - assert(conter, 0); - assert(result, -1); -} - -{ - let conter = 0; - const o = { - [Symbol.asyncIterator]() { - this.index = 0; - return this - }, - next(args) { - this.index++; - if (this.index <= 10) - return { done: false, value: this.index }; - else - return { done: true, value: this.index }; - } - } - - result = 0; - const boo = async function () { - for await (const val of o) { - conter++; - result += val; - } - } - - boo(); - - drainMicrotasks(); - - assert(conter, 10); - assert(result, 55); -} - -{ - let conter = 0; - let error = false; - - const o = { - [Symbol.asyncIterator]() { - this.index = 0; - return this - }, - next(args) { - this.index++; - if (this.index <= 10) - return { done: false, value: this.index }; - else - throw new Error('some error'); - } - } - - result = 0; - const boo = async function () { - for await (const val of o) { - conter++; - result += val; - } - } - - boo().catch(e => { error = e instanceof Error && e.message === 'some error'; }); - - drainMicrotasks(); - - assert(conter, 10); - assert(result, 55); - assert(error, true); -} - -{ - let conter = 0; - let error = false; - let emptyParam = false; - - const o = { - [Symbol.asyncIterator]() { - this.index = 0; - return this - }, - next(args) { - emptyParam = args === undefined; - this.index++; - if (this.index <= 10) - return { done: false, value: this.index }; - else - throw new Error('some error'); - } - } - - result = 0; - const boo = async function () { - try { - for await (const val of o) { - conter++; - result += val; - } - } catch (e) { - error = e instanceof Error && e.message === 'some error'; - } - } - - boo(); - - drainMicrotasks(); - - assert(conter, 10); - assert(result, 55); - assert(error, true); - assert(emptyParam, true); -} - -{ - let conter = 0; - let error = false; - - const o = { - [Symbol.asyncIterator]() { - this.index = 0; - return this - }, - next(args) { - this.index++; - if (this.index <= 10) - return { done: false, value: this.index }; - else - return { done: true, value: this.index }; - } - } - - result = 0; - const boo = async function () { - if (true) { - for await (const val of o) { - conter++; - result += val; - } - } - } - - boo(); - - drainMicrotasks(); - - assert(conter, 10); - assert(result, 55); -} - -{ - let conter = 0; - let error = false; - let emptyParam = false; - - const o = { - [Symbol.iterator]() { - this.index = 0; - return this - }, - next(args) { - emptyParam = args === undefined; - this.index++; - if (this.index <= 10) - return { done: false, value: this.index }; - else - throw new Error('some error'); - } - } - - result = 0; - const boo = async function () { - try { - for await (const val of o) { - conter++; - result += val; - } - } catch (e) { - error = e instanceof Error && e.message === 'some error'; - } - } - - boo(); - - drainMicrotasks(); - - assert(conter, 10); - assert(result, 55); - assert(error, true); - assert(emptyParam, true); -} \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-syntax.js b/implementation-contributed/javascriptcore/stress/async-iteration-syntax.js deleted file mode 100644 index 826277e135770a661d580e06c961efc64b62c239..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-syntax.js +++ /dev/null @@ -1,122 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -function checkSyntax(src) { - try { - eval(src); - } catch (error) { - if (error instanceof SyntaxError) - throw new Error("Syntax Error: " + String(error) + "\n script: `" + src + "`"); - } -} - -function checkSyntaxError(src, message) { - var bError = false; - try { - eval(src); - } catch (error) { - bError = error instanceof SyntaxError && (String(error) === message || typeof message === 'undefined'); - } - if (!bError) { - throw new Error("Expected syntax Error: " + message + "\n in script: `" + src + "`"); - } -} - -(function checkSimpleAsyncGeneratorSloppyMode() { - checkSyntax('var a1 = async function*asyncGenWithName1(){}'); - checkSyntax('var a2 = async function *asyncGenWithName2(){ yield 11; }'); - checkSyntax('var a3 = async function * asyncGenWithName2(){ await p; yield 11; }'); - checkSyntax('var d1 = async function*(){}'); - checkSyntax('var d2 = async function* (){ yield 11; }'); - checkSyntax('var d3 = async function * (){ await p; yield 11; }'); - checkSyntax('async function* withName1(){ }'); - checkSyntax('async function *withName2(){ yield 11; }'); - checkSyntax('async function * withName3(){ await p; yield 11; }'); - checkSyntax('class A { async * method() { } }'); - checkSyntax('class B { async * method() {yield 11;} }'); - checkSyntax('class C { async * method() {yield 11; await p;} }'); - checkSyntax('class D { async * "method"() {yield 11; await p;} }'); - checkSyntax('class F { async * 0() {yield 11; await p;} }'); - checkSyntax('var obj = { async * method() {yield 11; await p;} }'); - checkSyntax('({ async foo() {} })'); - checkSyntax('({ async : 1 })'); -})(); - -(function checkSimpleAsyncGeneratorStrictMode() { - checkSyntax('"use strict"; var a1 = async function*asyncGenWithName1(){}'); - checkSyntax('"use strict"; var a2 = async function *asyncGenWithName2(){ yield 11; }'); - checkSyntax('"use strict"; var a3 = async function * asyncGenWithName2(){ await p; yield 11; }'); - checkSyntax('"use strict"; var d1 = async function*(){}'); - checkSyntax('"use strict"; var d2 = async function* (){ yield 11; }'); - checkSyntax('"use strict"; var d3 = async function * (){ await p; yield 11; }'); - checkSyntax('"use strict"; async function* withName1(){ }'); - checkSyntax('"use strict"; async function *withName2(){ yield 11; }'); - checkSyntax('"use strict"; async function * withName3(){ await p; yield 11; }'); - checkSyntax('"use strict"; class A { async * method() { } }'); - checkSyntax('"use strict"; class B { async * method() {yield 11;} }'); - checkSyntax('"use strict"; class C { async * method() {yield 11; await p;} }'); - checkSyntax('"use strict"; class D { async * "method"() {yield 11; await p;} }'); - checkSyntax('"use strict"; class E { async * ["calc" + "ulate"]() {yield 11; await p;} }'); - checkSyntax('"use strict"; class F { async * 0() {yield 11; await p;} }'); - checkSyntax('"use strict"; var obj = { async * method() {yield 11; await p;} }'); - checkSyntax('"use strict"; ({ async foo() {} })'); - checkSyntax('"use strict"; ({ async : 1 })'); -})(); - - -(function checkNestedAsyncGenerators() { - var wrappers = [ - {start: 'var a1 = async function*asyncGenWithName1(){', finish: '}'}, - {start: 'async function*asyncGenWithName2(){ ', finish: '}'}, - {start: 'class A { async * method() { ', finish: ' } }'} - ]; - - expressions = [ - 'await 10; yield 11; return 12;', - 'var async = 10; yield async;', - 'var async = 10; await async;', - 'var async = 10; return async;', - 'var async = function() {}; return async;', - 'var async = function() {}; return async();', - ]; - - wrappers.forEach(wrapper => { - expressions.forEach(exp => { - checkSyntax(wrapper.start + exp + wrapper.finish); - }); - }) -})(); - - -(function checkSimpleAsyncGeneratorSyntaxErrorInSloppyMode() { - checkSyntaxError("var asyncGenFn = async function *await() {}"); - checkSyntaxError("var asyncGenFn = async function*(await) {}"); - checkSyntaxError("var asyncGenFn = async function *withName(await) {}"); - checkSyntaxError("async function *asyncGeneratorFunctionDeclaration(await) {}"); - checkSyntaxError("var asyncGenFn = *async function () {}"); - checkSyntaxError("var asyncGenFn = *async function withName() {}"); - checkSyntaxError("*async function asyncGeneratorFunctionDeclaration(await) {}"); - checkSyntaxError("var obj = { *async asyncGeneratorMethod() {} };"); - checkSyntaxError("var obj = { async asyncGeneratorMethod*() {} };"); - checkSyntaxError("class A { get async* ttt() {} }"); - checkSyntaxError("class B { get *async ttt() {} }"); - checkSyntaxError('({ async = 1 })'); -})(); - -(function checkSimpleAsyncGeneratorSyntaxErrorInStrictMode() { - checkSyntaxError("'use strict'; var asyncGenFn = async function *await() {}"); - checkSyntaxError("'use strict'; var asyncGenFn = async function*(await) {}"); - checkSyntaxError("'use strict'; var asyncGenFn = async function *withName(await) {}"); - checkSyntaxError("'use strict'; async function *asyncGeneratorFunctionDeclaration(await) {}"); - checkSyntaxError("'use strict'; var asyncGenFn = *async function () {}"); - checkSyntaxError("'use strict'; var asyncGenFn = *async function withName() {}"); - checkSyntaxError("'use strict'; *async function asyncGeneratorFunctionDeclaration(await) {}"); - checkSyntaxError("'use strict'; var obj = { *async asyncGeneratorMethod() {} };"); - checkSyntaxError("'use strict'; var obj = { async asyncGeneratorMethod*() {} };"); - checkSyntaxError("'use strict'; class A { get async* ttt() {} }"); - checkSyntaxError("'use strict'; class B { get *async ttt() {} }"); - checkSyntaxError("'use strict'; ({ async = 1 })"); -})(); diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-yield-promise.js b/implementation-contributed/javascriptcore/stress/async-iteration-yield-promise.js deleted file mode 100644 index e42a64a4ee2ff8f90280f7e20b83a5426a5e3e69..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-yield-promise.js +++ /dev/null @@ -1,470 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -const Logger = function () { - var log = []; - - this.logEvent = (type, value, done) => { - log.push({ type, value, done}); - }; - this.logFulfilledEvent = (value, done) => { - this.logEvent('fulfilled', value, done); - }; - this.logRejectEvent = error => { - this.logEvent('reject', error.toString(), true); - }; - this.logCatchEvent = value => { - this.logEvent('catch', value, true); - }; - this.getLogger = () => log; - - this.clear = () => { - log = []; - } -}; - -const fulfillSpy = logger => result => logger.logFulfilledEvent(result.value, result.done); -const rejectSpy = logger => error => logger.logRejectEvent(error); -const catchSpy = logger => error => logger.logCatchEvent(error); - -const assertLogger = function (loggerObject) { - const logger = loggerObject.getLogger(); - - var _assertLogger = function () { - let index = 0; - - const isNotOutOfLength = () => { - assert(index < logger.length, true, `Index is greater then log length`); - } - - this.fullfilled = function (expectedValue, message = 'on fulfill') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.fullfilledDone = function (expectedValue, message = 'on fulfill with done true') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.rejected = function (error, message = 'on reject') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'reject', msg); - assert(step.value, error.toString(), msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.catched = function (expectedError, message = 'on catch') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'catch', msg); - assert(step.value, expectedError, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.isFinal = function (message = '') { - assert(index, logger.length, `expected final step: ${message}`); - }; - }; - - return new _assertLogger(); -}; - -const getPromise = promiseHolder => { - return new Promise((resolve, reject) => { - promiseHolder.resolve = resolve; - promiseHolder.reject = reject; - }); -}; - -var logger = new Logger(); -const someValue = 'some-value'; -const errorMessage = 'error-message'; -const promiseHolder = {}; - -async function * foo(val) { - let reply = yield '0:' + val; - reply = yield getPromise(promiseHolder); - return 'end foo:' + reply; -} - -let f = foo(someValue); - -f.next(someValue + ':0').then(fulfillSpy(logger)); -f.next(someValue + ':1').then(fulfillSpy(logger)); -f.next(someValue + ':2').then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:' + someValue) - .isFinal(); - -promiseHolder.resolve('1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:' + someValue) - .fullfilled('1') - .fullfilledDone('end foo:' + someValue + ':2') - .isFinal(); - -logger.clear(); - -f = foo('init'); - -f.next('0').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('1').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('2').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:init') - .isFinal(); - -promiseHolder.reject('1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:init') - .rejected('1') - .fullfilledDone() - .isFinal(); - -logger.clear(); - -f = foo('init'); - -f.next('0').then(fulfillSpy(logger)).catch(catchSpy(logger)); -f.next('1').then(fulfillSpy(logger)).catch(catchSpy(logger)); -f.next('2').then(fulfillSpy(logger)).catch(catchSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:init') - .isFinal(); - -promiseHolder.reject('1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:init') - .fullfilledDone(undefined) - .catched('1') - .isFinal(); - -logger.clear(); - -const promiseHolder1 = {}; -const promiseHolder2 = {}; - -async function * boo() { - const promise1 = getPromise(promiseHolder1); - const promise2 = getPromise(promiseHolder2); - yield '0'; - yield promise1; - yield '1'; - yield promise2; - return 'end foo'; -} - -let b = boo(); - -b.next().then(fulfillSpy(logger)).catch(catchSpy(logger)); -b.next().then(fulfillSpy(logger)).catch(catchSpy(logger)); -b.next().then(fulfillSpy(logger)).catch(catchSpy(logger)); -b.next().then(fulfillSpy(logger)).catch(catchSpy(logger)); -b.next().then(fulfillSpy(logger)).catch(catchSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder1.resolve('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('#1') - .fullfilled('1') - .isFinal(); - -promiseHolder2.resolve('#2'); -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('#1') - .fullfilled('1') - .fullfilled('#2') - .fullfilledDone('end foo') - .isFinal(); - - -logger.clear(); - -b = boo(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder1.resolve('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('#1') - .fullfilled('1') - .isFinal(); - -promiseHolder2.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('#1') - .fullfilled('1') - .rejected('#2') - .fullfilledDone() - .isFinal(); - -logger.clear(); - -b = boo(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder1.reject('#1'); -promiseHolder2.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .rejected('#1') - .fullfilledDone() - .fullfilledDone() - .fullfilledDone() - .isFinal(); - -logger.clear(); - -b = boo(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder2.reject('#2'); -promiseHolder1.reject('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .rejected('#1') - .fullfilledDone() - .fullfilledDone() - .fullfilledDone() - .isFinal(); - -async function * bar() { - yield '0'; - yield getPromise(promiseHolder1); - throw new Error(errorMessage); - yield getPromise(promiseHolder2); - return 'end foo'; -} - -logger.clear(); -b = bar(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - - -promiseHolder1.resolve('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('#1') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -b = bar(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder1.reject('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .rejected('#1') - .fullfilledDone() - .fullfilledDone() - .isFinal(); - -logger.clear(); -b = bar(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .isFinal(); - -promiseHolder1.resolve('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -b = bar(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder1.resolve('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled("#1") - .fullfilledDone(someValue) - .isFinal(); - -logger.clear(); -b = bar(); - -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.next().then(fulfillSpy(logger), rejectSpy(logger)); -b.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .isFinal(); - -promiseHolder1.reject('#1'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .rejected("#1") - .fullfilledDone(someValue) - .isFinal(); diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-yield-star-interface.js b/implementation-contributed/javascriptcore/stress/async-iteration-yield-star-interface.js deleted file mode 100644 index 3bc32e9d6def5d785a05d2a92afc6d48a86da2c7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-yield-star-interface.js +++ /dev/null @@ -1,490 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -const getPromise = promiseHolder => { - return new Promise((resolve, reject) => { - promiseHolder.resolve = resolve; - promiseHolder.reject = reject; - }); -}; - -const Logger = function () { - var log = []; - - this.logEvent = (type, value, done) => { - log.push({ type, value, done}); - }; - this.logFulfilledEvent = (value, done) => { - this.logEvent('fulfilled', value, done); - }; - this.logRejectEvent = error => { - this.logEvent('reject', error.toString(), true); - }; - this.logCatchEvent = value => { - this.logEvent('catch', value, true); - }; - this.logCustomEvent = event => { - this.logEvent('custom', event, false); - }; - this.getLogger = () => log; - - this.clear = () => { - log = []; - } -}; - -const fulfillSpy = logger => result => logger.logFulfilledEvent(result.value, result.done); -const rejectSpy = logger => error => logger.logRejectEvent(error); -const catchSpy = logger => error => logger.logCatchEvent(error); -const customSpy = logger => event => logger.logCustomEvent(event); - -const assertLogger = function (loggerObject) { - const logger = loggerObject.getLogger(); - - var _assertLogger = function () { - let index = 0; - - const isNotOutOfLength = () => { - assert(index < logger.length, true, `Index is greater then log length`); - } - - this.fullfilled = function (expectedValue, message = 'on fulfill') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.fullfilledDone = function (expectedValue, message = 'on fulfill with done true') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.rejected = function (error, message = 'on reject') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'reject', msg); - assert(step.value, error.toString(), msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.catched = function (expectedError, message = 'on catch') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'catch', msg); - assert(step.value, expectedError, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.custom = function (expectedValue, message = 'on custom event') { - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'custom', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.isFinal = function (message = '') { - assert(index, logger.length, `expected final step: ${message}`); - }; - }; - - return new _assertLogger(); -}; - -var logger = new Logger(); -const someValue = 'some-value'; -const errorMessage = 'error-message'; - -let asyncIter = { - [Symbol.asyncIterator]() { return this; }, - next (value) { - customSpy(logger)('next:' + value); - return { value: value, done: 'iter:Finish' === value }; - }, - throw (error) { - customSpy(logger)('throw:' + error); - return error; - }, - return(value) { - customSpy(logger)('return:' + value); - return { value: value, done: true }; - } - }; - -async function *foo () { - yield '0'; - yield* asyncIter; - yield '3'; -} - -let f = foo('Init'); - -f.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('C').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('E').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('next:C') - .fullfilled(undefined) - .custom('next:D') - .fullfilled("C") - .custom('next:E') - .fullfilled("D") - .custom('next:iter:Finish') - .fullfilled("E") - .fullfilled("3") - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -f = foo('Init'); - -f.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -f.return('C').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('E').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:C') - .fullfilled(undefined) - .fullfilledDone("C") - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -f = foo('Init'); - -f.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -f.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -f.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('E').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -f.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('throw:' + new Error(errorMessage)) - .fullfilled(undefined) - .custom('next:D') - .fullfilled(undefined) - .custom('next:E') - .fullfilled('D') - .custom('next:iter:Finish') - .fullfilled('E') - .fullfilled('3') - .fullfilledDone(undefined) - .isFinal(); - -asyncIter = { - [Symbol.asyncIterator]() { return this; }, - next (value) { - customSpy(logger)('next:' + value); - return { value: value, done: 'iter:Finish' === value }; - } - }; - -async function *boo () { - yield '0'; - yield* asyncIter; - yield '3'; -} - -let b = boo('Init'); - -logger.clear(); - -b.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('C').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('next:C') - .fullfilled(undefined) - .custom('next:D') - .fullfilled("C") - .custom("next:iter:Finish") - .fullfilled("D") - .fullfilled("3") - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -b = boo('Init'); - -b.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -b.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -b.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .fullfilled(undefined) - .rejected('TypeError: Delegated generator does not have a \'throw\' method.') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -asyncIter = { - [Symbol.asyncIterator]() { return this; }, - next (value) { - customSpy(logger)('next:' + value); - return { value: value, done: 'iter:Finish' === value }; - }, - return (value) { - customSpy(logger)('return:' + value); - return { value: value, done: true }; - } - }; - -async function *bar () { - yield '0'; - yield* asyncIter; - yield '3'; -} - -b = bar('Init'); - -logger.clear(); - -b.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -b.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -b.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .rejected('TypeError: Delegated generator does not have a \'throw\' method.') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -let ph = {}; - -asyncIter = { - [Symbol.asyncIterator]() { return this; }, - next (value) { - customSpy(logger)('next:' + value); - return { value: value, done: 'iter:Finish' === value }; - }, - return (value) { - customSpy(logger)('return:' + value); - return { value: getPromise(ph), done: true }; - } - }; - -async function *baz () { - yield '0'; - yield* asyncIter; - yield '3'; -} - -b = baz('Init'); - -logger.clear(); - -b.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -b.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -b.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -b.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .rejected('TypeError: Delegated generator does not have a \'throw\' method.') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -ph.resolve('accept'); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .rejected('TypeError: Delegated generator does not have a \'throw\' method.') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -ph = {}; - -asyncIter = { - [Symbol.asyncIterator]() { return this; }, - next (value) { - customSpy(logger)('next:' + value); - return { value: value, done: 'iter:Finish' === value }; - }, - return (value) { - customSpy(logger)('return:' + value); - return getPromise(ph); - } - }; - -async function *foobar () { - yield '0'; - yield* asyncIter; - yield '3'; -} - -fb = foobar('Init'); - -logger.clear(); - -fb.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -fb.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .isFinal(); - -ph.resolve({ value: 'value', done: true }); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .rejected('TypeError: Delegated generator does not have a \'throw\' method.') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -fb = foobar('Init'); - -logger.clear(); - -fb.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -fb.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -fb.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .isFinal(); - -ph.resolve('X'); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:undefined') - .fullfilled(undefined) - .rejected('TypeError: Iterator result interface is not an object.') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); diff --git a/implementation-contributed/javascriptcore/stress/async-iteration-yield-star.js b/implementation-contributed/javascriptcore/stress/async-iteration-yield-star.js deleted file mode 100644 index 4ef211774298e3a9b726cf0c1b802a79eaffbe61..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/async-iteration-yield-star.js +++ /dev/null @@ -1,684 +0,0 @@ -var assert = function (result, expected, message = "") { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -const Logger = function () { - var log = []; - - this.logEvent = (type, value, done) => { - log.push({ type, value, done}); - }; - this.logFulfilledEvent = (value, done) => { - this.logEvent('fulfilled', value, done); - }; - this.logRejectEvent = error => { - this.logEvent('reject', error.toString(), true); - }; - this.logCatchEvent = value => { - this.logEvent('catch', value, true); - }; - this.logCustomEvent = event => { - this.logEvent('custom', event, false); - }; - this.getLogger = () => log; - - this.clear = () => { - log = []; - } -}; - -const fulfillSpy = logger => result => logger.logFulfilledEvent(result.value, result.done); -const rejectSpy = logger => error => logger.logRejectEvent(error); -const catchSpy = logger => error => logger.logCatchEvent(error); -const customSpy = logger => event => logger.logCustomEvent(event); - -const assertLogger = function (loggerObject) { - const logger = loggerObject.getLogger(); - - var _assertLogger = function () { - let index = 0; - - const isNotOutOfLength = () => { - assert(index < logger.length, true, `Index is greater then log length`); - } - - this.fullfilled = function (expectedValue, message = 'on fulfill') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.fullfilledDone = function (expectedValue, message = 'on fulfill with done true') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'fulfilled', msg); - assert(step.value, expectedValue, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.rejected = function (error, message = 'on reject') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'reject', msg); - assert(step.value, error.toString(), msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.catched = function (expectedError, message = 'on catch') { - isNotOutOfLength(); - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'catch', msg); - assert(step.value, expectedError, msg); - assert(step.done, true, msg); - - index++; - return this; - }; - - this.custom = function (expectedValue, message = 'on custom event') { - - const msg = `step: ${index} - ${message}`; - let step = logger[index]; - - assert(step.type, 'custom', msg); - assert(step.value, expectedValue, msg); - assert(step.done, false, msg); - - index++; - return this; - }; - - this.isFinal = function (message = '') { - assert(index, logger.length, `expected final step: ${message}`); - }; - }; - - return new _assertLogger(); -}; - -const getPromise = promiseHolder => { - return new Promise((resolve, reject) => { - promiseHolder.resolve = resolve; - promiseHolder.reject = reject; - }); -}; - -var logger = new Logger(); -const someValue = 'some-value'; -const errorMessage = 'error-message'; - -async function * foo(value) { - let re = yield '1:' + value; - re = yield '2:' + re; - re = yield '3:' + re; - return 'end foo:' + re; -} - -async function * boo(value) { - let reply = yield '0:' + value; - reply = yield* foo(reply); - yield '4:' + reply; -} - -var b = boo('init'); - -b.next('0').then(fulfillSpy(logger)); -b.next('1').then(fulfillSpy(logger)); -b.next('2').then(fulfillSpy(logger)); -b.next('3').then(fulfillSpy(logger)); -b.next('4').then(fulfillSpy(logger)); -b.next('5').then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:init') - .fullfilled('1:1') - .fullfilled('2:2') - .fullfilled('3:3') - .fullfilled('4:end foo:4') - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -var b2 = boo(':value'); - -b2.next(':0').then(fulfillSpy(logger)); -b2.next(':1').then(fulfillSpy(logger), rejectSpy(logger)); -b2.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -b2.next(':2').then(fulfillSpy(logger)); -b2.next(':3').then(fulfillSpy(logger)); -b2.next(':4').then(fulfillSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0::value') - .fullfilled('1::1') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -var b2 = boo('#value'); - -b2.next('#0').then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#1').then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#2').then(fulfillSpy(logger), rejectSpy(logger)); -b2.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#3').then(fulfillSpy(logger), rejectSpy(logger)); -b2.next('#4').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0:#value') - .fullfilled('1:#1') - .fullfilled('2:#2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -async function * bar() { - yield '1'; - yield '2'; - throw new Error(errorMessage); - yield '3'; - return 'end foo'; -} - -async function * baz() { - yield '0'; - yield* bar(); - yield '4'; -} - -logger.clear(); -var bz1 = baz(); - -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); -bz1.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -let promiseHolder = {}; - -async function *joo() { - yield '1'; - yield getPromise(promiseHolder); -} - -async function *goo () { - yield '0'; - yield* joo(); - yield '3'; -} - -let g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.resolve('2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('2') - .fullfilled('3') - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('#2') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.return(someValue).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .fullfilledDone(someValue) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('#2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -g = goo(); - -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); -g.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .rejected(new Error(errorMessage)) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -async function *koo() { - yield '1'; - await getPromise(promiseHolder); -} - -async function *loo () { - yield '0'; - yield* joo(); - yield '3'; -} - -let l = loo(); - -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - - assertLogger(logger) - .fullfilled("0") - .fullfilled("1") - .isFinal(); - -promiseHolder.resolve('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .fullfilled('#2') - .fullfilled("3") - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); -l = loo(); - -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); -l.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled("0") - .fullfilled("1") - .isFinal(); - -promiseHolder.reject('#2'); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled('0') - .fullfilled('1') - .rejected('#2') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -let asyncIter = { - [Symbol.asyncIterator]() { return this; }, - next (value) { - customSpy(logger)('next:' + value); - return { value: value, done: 'iter:Finish' === value }; - }, - throw (error) { - customSpy(logger)('throw:' + error); - return error; - }, - return(value) { - customSpy(logger)('return:' + value); - return { value: value, done: true }; - } - }; - -async function *moo () { - yield '0'; - yield* asyncIter; - yield '3'; -} - -let m = moo('Init'); - -m.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('C').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('E').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('next:C') - .fullfilled(undefined) - .custom('next:D') - .fullfilled('C') - .custom('next:E') - .fullfilled('D') - .custom('next:iter:Finish') - .fullfilled('E') - .fullfilled('3') - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -m = moo('Init'); - -m.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -m.return('C').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('E').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('return:C') - .fullfilled(undefined) - .fullfilledDone('C') - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -m = moo('Init'); - -m.next('A').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('B').then(fulfillSpy(logger), rejectSpy(logger)); -m.throw(new Error(errorMessage)).then(fulfillSpy(logger), rejectSpy(logger)); -m.next('D').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('E').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('iter:Finish').then(fulfillSpy(logger), rejectSpy(logger)); -m.next('Finish').then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .custom('next:undefined') - .fullfilled('0') - .custom('throw:' + new Error(errorMessage)) - .fullfilled(undefined) - .custom('next:D') - .fullfilled(undefined) - .custom('next:E') - .fullfilled('D') - .custom('next:iter:Finish') - .fullfilled('E') - .fullfilled('3') - .fullfilledDone(undefined) - .isFinal(); - -logger.clear(); - -async function* noo() { - try { - await Promise.reject("doop"); - } finally { - yield* [1, 2, 3]; // Is this line reachable in this implementation? - } -} - -const n = noo(); - -n.next().then(fulfillSpy(logger), rejectSpy(logger)); -n.next().then(fulfillSpy(logger), rejectSpy(logger)); -n.next().then(fulfillSpy(logger), rejectSpy(logger)); -n.next().then(fulfillSpy(logger), rejectSpy(logger)); -n.next().then(fulfillSpy(logger), rejectSpy(logger)); - -drainMicrotasks(); - -assertLogger(logger) - .fullfilled(1) - .fullfilled(2) - .fullfilled(3) - .rejected('doop'); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/bug-131764.js b/implementation-contributed/javascriptcore/stress/bug-131764.js deleted file mode 100644 index c740c4256a7c4adcecf16cbfc32bc58cf1388186..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/bug-131764.js +++ /dev/null @@ -1,22 +0,0 @@ -var result = 0; -function test1(arr) { - return Array.of(...arr); -} -function test2() { - return Array(...arguments); -} - -var result = 0; -if (this.noInline) { - noInline(test1) - noInline(test2) -} - -var array = [1,2,3,4,5]; - -for (var i = 0; i < 10000; i++) { - result ^= test2(1,2,3,4,5,6,7).length; -} - -if (result != 0) - throw "Error: bad result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/bug-165091.js b/implementation-contributed/javascriptcore/stress/bug-165091.js deleted file mode 100644 index 8b0ea4ba21630c794b84c1f998aa2280cf845e12..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/bug-165091.js +++ /dev/null @@ -1,14 +0,0 @@ -function shouldThrowSyntaxError(str, message) { - try { - eval(str); - throw new Error("Expected `" + str + "` to throw a SyntaxError, but did not throw.") - } catch (e) { - if (e.constructor !== SyntaxError) - throw new Error("Expected `" + str + "` to throw a SyntaxError, but threw '" + e + "'"); - if (message !== void 0 && e.message !== message) - throw new Error("Expected `" + str + "` to throw SyntaxError: '" + message + "', but threw '" + e + "'"); - } -} - -shouldThrowSyntaxError("0/-async J", "Unexpected identifier 'J'") - diff --git a/implementation-contributed/javascriptcore/stress/bug-171786.js b/implementation-contributed/javascriptcore/stress/bug-171786.js deleted file mode 100644 index 2e467557e748945855949196273782e69c93d049..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/bug-171786.js +++ /dev/null @@ -1,15 +0,0 @@ - -function foo(i, x) { - return String.prototype.big.call(x); -} -noInline(foo); - -for (var i = 0; i < 1000; i++) { - try { - if (i < 200) - foo(i, "hello"); - else - foo(i, undefined); - } catch(e) { - } -} diff --git a/implementation-contributed/javascriptcore/stress/bug-188298.js b/implementation-contributed/javascriptcore/stress/bug-188298.js deleted file mode 100644 index 6691bff33ca7f315443c3eead862ec97496b774f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/bug-188298.js +++ /dev/null @@ -1,12 +0,0 @@ -// This test passes if it does not crash. - -function foo() { - if (1 < 2); - while (true) { - if (1 < 2) break; - } -} - -for (var i = 0; i < 10000; i++) - foo(); - diff --git a/implementation-contributed/javascriptcore/stress/builtin-function-is-construct-type-none.js b/implementation-contributed/javascriptcore/stress/builtin-function-is-construct-type-none.js deleted file mode 100644 index 626248dea07e1a20a81a2199afd9d7a18b52a152..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/builtin-function-is-construct-type-none.js +++ /dev/null @@ -1,18 +0,0 @@ -function shouldThrow(func, message) { - var error = null; - try { - func(); - } catch (e) { - error = e; - } - if (!error) - throw new Error("not thrown."); - if (String(error) !== message) - throw new Error("bad error: " + String(error)); -} - -for (var i = 0; i < 10000; ++i) { - shouldThrow(function () { - new Array.prototype.forEach(function () { }); - }, "TypeError: function is not a constructor (evaluating 'new Array.prototype.forEach(function () { })')"); -} diff --git a/implementation-contributed/javascriptcore/stress/builtin-function-length.js b/implementation-contributed/javascriptcore/stress/builtin-function-length.js index f2ea00801fdbd33589a555aacfc881efb22b93ab..aada11310fc5195140310a6bffd519b49b2d1f89 100644 --- a/implementation-contributed/javascriptcore/stress/builtin-function-length.js +++ b/implementation-contributed/javascriptcore/stress/builtin-function-length.js @@ -1,3 +1,8 @@ +/** + * Reviewed + * Add length property check for function forms in the language folder + */ + function shouldBe(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/builtin-function-name.js b/implementation-contributed/javascriptcore/stress/builtin-function-name.js deleted file mode 100644 index ed4993e7322fae47b18cffecaaa067d3daec540c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/builtin-function-name.js +++ /dev/null @@ -1,45 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -{ - shouldBe(JSON.stringify(Object.getOwnPropertyNames(Array.prototype.filter).sort()), `["length","name"]`); - shouldBe(Array.prototype.filter.name, "filter"); - shouldBe(JSON.stringify(Object.getOwnPropertyDescriptor(Array.prototype.filter, 'name')), `{"value":"filter","writable":false,"enumerable":false,"configurable":true}`); - shouldBe(delete Array.prototype.filter.name, true); - shouldBe(JSON.stringify(Object.getOwnPropertyNames(Array.prototype.filter).sort()), `["length"]`); -} - -{ - shouldThrow(function () { - "use strict"; - Array.prototype.forEach.name = 42; - }, `TypeError: Attempted to assign to readonly property.`); -} - -{ - var resolve = null; - var reject = null; - new Promise(function (arg0, arg1) { - resolve = arg0; - reject = arg1; - }); - shouldBe(Object.getOwnPropertyDescriptor(resolve, 'name'), undefined); - shouldBe(Object.getOwnPropertyDescriptor(reject, 'name'), undefined); -} diff --git a/implementation-contributed/javascriptcore/stress/butterfly-zero-unused-butterfly-properties.js b/implementation-contributed/javascriptcore/stress/butterfly-zero-unused-butterfly-properties.js deleted file mode 100644 index da3faa65a1b1dd4fc5f121cea4a16d5478458148..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/butterfly-zero-unused-butterfly-properties.js +++ /dev/null @@ -1,9 +0,0 @@ -//@ runDefault("--jitPolicyScale=0", "--gcMaxHeapSize=2000") - -// This test happened to catch a case where we failed to zero the space in the butterfly before m_lastOffset when reallocating. - -var array = Array(1000); -for (var i = 0; i < 100000; ++i) { - array[i - array.length] = ''; - array[i ^ array.length] = ''; -} diff --git a/implementation-contributed/javascriptcore/stress/cfa-expected-values-must-set-clobbered-to-false.js b/implementation-contributed/javascriptcore/stress/cfa-expected-values-must-set-clobbered-to-false.js deleted file mode 100644 index 99f282e04aeae3b8ebd5deaff93ca6808595f847..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cfa-expected-values-must-set-clobbered-to-false.js +++ /dev/null @@ -1,38 +0,0 @@ -//@ runDefault("--useFTLJIT=0", "--useConcurrentJIT=false") - -let num = 150; - -function foo(comp, o, b) { - let sum = o.f; - if (b) - OSRExit(); - for (let i = 0; i < comp; ++i) { - sum += o.f; - } - return sum; -} -noInline(foo); - -let o = {f:25}; -let o2 = {f:25, g:44}; -o2.f = 45; -o2.f = 45; -o2.f = 45; -o2.f = 45; -let comp = { - valueOf() { return num; } -} - -foo(comp, o2, true); -foo(comp, o2, true); -for (let i = 0; i < 500; ++i) { - foo(comp, o2, false); -} - -let o3 = {g:24, f:73}; -num = 10000000; -let result = foo(comp, o3, false); - -if (result !== (num + 1)*73) { - throw new Error("Bad: " + result); -} diff --git a/implementation-contributed/javascriptcore/stress/characters-regexp-ignore-case.js b/implementation-contributed/javascriptcore/stress/characters-regexp-ignore-case.js deleted file mode 100644 index a587f95871b6d91b7acb787d8d8db20e9b6bf050..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/characters-regexp-ignore-case.js +++ /dev/null @@ -1,77 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function testH(string) { - return string.match(/h/i); -} -noInline(testH); - -function testHe(string) { - return string.match(/he/i); -} -noInline(testHe); - -function testHel(string) { - return string.match(/hel/i); -} -noInline(testHel); - -function testHell(string) { - return string.match(/hell/i); -} -noInline(testHell); - -function testHello(string) { - return string.match(/hello/i); -} -noInline(testHello); - -function testHelloW(string) { - return string.match(/hellow/i); -} -noInline(testHelloW); - -function testHelloWo(string) { - return string.match(/hellowo/i); -} -noInline(testHelloWo); - -function testHelloWor(string) { - return string.match(/hellowor/i); -} -noInline(testHelloWor); - -function testHelloWorl(string) { - return string.match(/helloworl/i); -} -noInline(testHelloWorl); - -function testHelloWorld(string) { - return string.match(/helloworld/i); -} -noInline(testHelloWorld); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testH("HelloWorld")[0], `H`); - shouldBe(testHe("HelloWorld")[0], `He`); - shouldBe(testHel("HelloWorld")[0], `Hel`); - shouldBe(testHell("HelloWorld")[0], `Hell`); - shouldBe(testHello("HelloWorld")[0], `Hello`); - shouldBe(testHelloW("HelloWorld")[0], `HelloW`); - shouldBe(testHelloWo("HelloWorld")[0], `HelloWo`); - shouldBe(testHelloWor("HelloWorld")[0], `HelloWor`); - shouldBe(testHelloWorl("HelloWorld")[0], `HelloWorl`); - shouldBe(testHelloWorld("HelloWorld")[0], `HelloWorld`); - shouldBe(testH("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `H`); - shouldBe(testHe("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `He`); - shouldBe(testHel("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `Hel`); - shouldBe(testHell("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `Hell`); - shouldBe(testHello("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `Hello`); - shouldBe(testHelloW("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloW`); - shouldBe(testHelloWo("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWo`); - shouldBe(testHelloWor("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWor`); - shouldBe(testHelloWorl("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWorl`); - shouldBe(testHelloWorld("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWorld`); -} diff --git a/implementation-contributed/javascriptcore/stress/characters-regexp.js b/implementation-contributed/javascriptcore/stress/characters-regexp.js deleted file mode 100644 index 16b060e3b5063a95c23d4d1f669f6e6382643df7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/characters-regexp.js +++ /dev/null @@ -1,77 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function testH(string) { - return string.match(/H/); -} -noInline(testH); - -function testHe(string) { - return string.match(/He/); -} -noInline(testHe); - -function testHel(string) { - return string.match(/Hel/); -} -noInline(testHel); - -function testHell(string) { - return string.match(/Hell/); -} -noInline(testHell); - -function testHello(string) { - return string.match(/Hello/); -} -noInline(testHello); - -function testHelloW(string) { - return string.match(/HelloW/); -} -noInline(testHelloW); - -function testHelloWo(string) { - return string.match(/HelloWo/); -} -noInline(testHelloWo); - -function testHelloWor(string) { - return string.match(/HelloWor/); -} -noInline(testHelloWor); - -function testHelloWorl(string) { - return string.match(/HelloWorl/); -} -noInline(testHelloWorl); - -function testHelloWorld(string) { - return string.match(/HelloWorld/); -} -noInline(testHelloWorld); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testH("HelloWorld")[0], `H`); - shouldBe(testHe("HelloWorld")[0], `He`); - shouldBe(testHel("HelloWorld")[0], `Hel`); - shouldBe(testHell("HelloWorld")[0], `Hell`); - shouldBe(testHello("HelloWorld")[0], `Hello`); - shouldBe(testHelloW("HelloWorld")[0], `HelloW`); - shouldBe(testHelloWo("HelloWorld")[0], `HelloWo`); - shouldBe(testHelloWor("HelloWorld")[0], `HelloWor`); - shouldBe(testHelloWorl("HelloWorld")[0], `HelloWorl`); - shouldBe(testHelloWorld("HelloWorld")[0], `HelloWorld`); - shouldBe(testH("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `H`); - shouldBe(testHe("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `He`); - shouldBe(testHel("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `Hel`); - shouldBe(testHell("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `Hell`); - shouldBe(testHello("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `Hello`); - shouldBe(testHelloW("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloW`); - shouldBe(testHelloWo("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWo`); - shouldBe(testHelloWor("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWor`); - shouldBe(testHelloWorl("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWorl`); - shouldBe(testHelloWorld("HelloWorldã“ã‚“ã«ã¡ã¯")[0], `HelloWorld`); -} diff --git a/implementation-contributed/javascriptcore/stress/clobberize-needs-to-model-spread-effects.js b/implementation-contributed/javascriptcore/stress/clobberize-needs-to-model-spread-effects.js deleted file mode 100644 index 76218dda2f363a1b71cb9d5121269165e6a5ef13..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/clobberize-needs-to-model-spread-effects.js +++ /dev/null @@ -1,23 +0,0 @@ -function assert(b) { - if (!b) - throw new Error; -} -noInline(assert); - -function foo(a, b) { - let r1 = b[0]; - let x = [...a]; - let r2 = b[0]; - assert(r1 + r2 === 43); -} -noInline(foo); - -let b = [42]; -let a = []; -a[Symbol.iterator] = function* () { - b[0] = 1; -}; -for (let i = 0; i < 10000; ++i) { - b[0] = 42; - foo(a, b); -} diff --git a/implementation-contributed/javascriptcore/stress/closure-call-exit.js b/implementation-contributed/javascriptcore/stress/closure-call-exit.js deleted file mode 100644 index 3133cb0d20def3a7e6b7c3fbe3eb3509dafcab94..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/closure-call-exit.js +++ /dev/null @@ -1,15 +0,0 @@ -function foo(o, i) { - return o[i](); -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - var result = foo([function() { return 42; }], 0); - if (result != 42) - throw "Error: bad result: " + result; -} - -var result = foo([function() { return 43; }], 0); -if (result != 43) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/closure-recursive-tail-call-infinite-loop.js b/implementation-contributed/javascriptcore/stress/closure-recursive-tail-call-infinite-loop.js deleted file mode 100644 index dfd96a01484ffcf82a896d3a97351f1fbecea64b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/closure-recursive-tail-call-infinite-loop.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -function Foo() {} - -function second(next, cp) { - return 100; -} - -function first(next, cp) { - return cp < 60 ? new Foo() : next(cp); -} - -function createClosure(next, strategy) { - return function closure(cp) { - return strategy(next, cp); - }; -} - -var tmp = createClosure(null, second); -var bar = createClosure(tmp, first); - -noInline(bar); - -for (var i=0; i<50000; i++) { - bar(32); - bar(32); - bar(32); - bar(100); -} diff --git a/implementation-contributed/javascriptcore/stress/closure-recursive-tail-call.js b/implementation-contributed/javascriptcore/stress/closure-recursive-tail-call.js deleted file mode 100644 index e70c9ae6797873f639b6e847e0600638b222f1f0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/closure-recursive-tail-call.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -function makeClosure(x) -{ - return (f) => { - if (x == 42) { - x = 0; - return f(f); - } - else - return x; - } -} - -for (var i = 0; i < 1000; ++i) { - var g = makeClosure(42); - var h = makeClosure(41); - var value = g(h); - if (value != 41) - throw "Wrong result, got: " + value; -} diff --git a/implementation-contributed/javascriptcore/stress/code-cache-incorrect-caching.js b/implementation-contributed/javascriptcore/stress/code-cache-incorrect-caching.js deleted file mode 100644 index 9e51af78cc9c541ee3b556ffdb5f2d92eb4de0ed..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/code-cache-incorrect-caching.js +++ /dev/null @@ -1,92 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)}`); -} - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} -var globalEval = eval; -var global = this; - -// EvalContextType. -{ - function hello() - { - return eval('new.target'); - } - shouldBe(hello(), undefined); - shouldBe(hello(), undefined); - shouldBe(hello(), undefined); - globalEval(` - var thrown = false; - try { - eval('new.target'); - } catch (e) { - thrown = true; - shouldBe(String(e), "SyntaxError: new.target is only valid inside functions."); - } - shouldBe(thrown, true); - `); - - var thrown = false; - try { - globalEval('new.target'); - } catch (e) { - thrown = true; - shouldBe(String(e), "SyntaxError: new.target is only valid inside functions."); - } - shouldBe(thrown, true); -} - -// DerivedContextType. -{ - var object = { - hello() - { - return eval('super.ok'); - } - }; - object.__proto__ = { ok: 42 }; - shouldBe(object.hello(), 42); - - var test = { - hello: function () { - return eval('super.ok'); - } - }; - test.__proto__ = { ok: 42 }; - shouldThrow(function () { - test.hello(); - }, `SyntaxError: super is not valid in this context.`); -} - -// isArrowFunctionContext. -{ -globalEval(` - function ok() - { - return eval('this'); - } - shouldBe(ok(), global) - var hello = { - hello() - { - var arrow = () => eval('this'); - shouldBe(arrow(), hello); - } - }; - hello.hello(); -`); -} diff --git a/implementation-contributed/javascriptcore/stress/combined-liveness-needs-to-say-arguments-are-live.js b/implementation-contributed/javascriptcore/stress/combined-liveness-needs-to-say-arguments-are-live.js deleted file mode 100644 index 780b4326b0e6ec8462d66ff19a5148b6b9fd7f2b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/combined-liveness-needs-to-say-arguments-are-live.js +++ /dev/null @@ -1,24 +0,0 @@ -//@ runDefault("--jitPolicyScale=0", "--validateFTLOSRExitLiveness=1", "--useConcurrentJIT=0") - -// This should not crash in liveness validation. - -function baz() { } -noInline(baz); - -function foo() { - let i, j; - let a0 = [0, 1]; - let a1 = []; - for (i = 0; i < a0.length; i++) { - a1.push(); - for (j = 0; j < 6; j++) { - } - for (j = 0; j < 4; j++) { - baz(); - } - } - throw new Error(); -} -try { - new foo(); -} catch { } diff --git a/implementation-contributed/javascriptcore/stress/comparison-ignore-negative-zero.js b/implementation-contributed/javascriptcore/stress/comparison-ignore-negative-zero.js deleted file mode 100644 index ffd09e3488ec76c3355a8c54609a4b12f7f885e1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/comparison-ignore-negative-zero.js +++ /dev/null @@ -1,65 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + String(actual) + ' ' + String(expected)); -} -noInline(shouldBe); - -function zero() -{ - return 0; -} -noInline(zero); - -function negativeZero() -{ - return -0; -} -noInline(negativeZero); - -var object = { - valueOf() - { - return -0; - } -}; - -function test() -{ - shouldBe(0 < zero(), false); - shouldBe(0 < (-zero()), false); - shouldBe(0 <= zero(), true); - shouldBe(0 <= (-zero()), true); - shouldBe(0 > zero(), false); - shouldBe(0 > (-zero()), false); - shouldBe(0 >= zero(), true); - shouldBe(0 >= (-zero()), true); - shouldBe(0 == zero(), true); - shouldBe(0 == (-zero()), true); - shouldBe(0 === zero(), true); - shouldBe(0 === (-zero()), true); - shouldBe(0 != zero(), false); - shouldBe(0 != (-zero()), false); - shouldBe(0 !== zero(), false); - shouldBe(0 !== (-zero()), false); - - shouldBe(0 < object, false); - shouldBe(0 < -object, false); - shouldBe(0 <= object, true); - shouldBe(0 <= -object, true); - shouldBe(0 > object, false); - shouldBe(0 > -object, false); - shouldBe(0 >= object, true); - shouldBe(0 >= -object, true); - shouldBe(0 == object, true); - shouldBe(0 == -object, true); - shouldBe(0 === object, false); - shouldBe(0 === -object, true); - shouldBe(0 != object, false); - shouldBe(0 != -object, false); - shouldBe(0 !== object, true); - shouldBe(0 !== -object, false); -} -noInline(test); - -for (var i = 0; i < 1e5; ++i) - test(); diff --git a/implementation-contributed/javascriptcore/stress/completion-value.js b/implementation-contributed/javascriptcore/stress/completion-value.js index c75526e80383839bf79d56e0e74c73dda8ef75e2..56b5ed5809727a8452ffc7e4ea5524019d20ff30 100644 --- a/implementation-contributed/javascriptcore/stress/completion-value.js +++ b/implementation-contributed/javascriptcore/stress/completion-value.js @@ -1,3 +1,8 @@ +/** + * reviewed + * v8: add tests for completion value resolution in try/catch/finally blocks (anything returning -2) + */ + function shouldBe(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/computed-accessor.js b/implementation-contributed/javascriptcore/stress/computed-accessor.js index 8f50a615934c96a567409d8d96a5a5ce09abad4d..aac549833dfce07eafaccafb87f317d03ed7fc49 100644 --- a/implementation-contributed/javascriptcore/stress/computed-accessor.js +++ b/implementation-contributed/javascriptcore/stress/computed-accessor.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(actual, expected) { if (actual !== expected) throw new Error(`bad value: ${String(actual)}`); diff --git a/implementation-contributed/javascriptcore/stress/computed-function-names.js b/implementation-contributed/javascriptcore/stress/computed-function-names.js deleted file mode 100644 index 960553e2f0c9426fcbdeb74a30965bd289aa8e19..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/computed-function-names.js +++ /dev/null @@ -1,68 +0,0 @@ -let nullSymbol = Symbol(); - -let propKeys = [ - "foo", "", undefined, null, true, false, 0, 10, 1234.567, - Symbol("foo"), Symbol(""), nullSymbol, -]; - -function toKeyString(x) { - if (typeof x === "string") - return '"' + x + '"'; - if (typeof x === "symbol") - return x.toString(); - return "" + x; -} - -function toFuncName(x) { - if (typeof x === "symbol") { - if (x !== nullSymbol) { - let str = x.toString(); - let key = str.slice(7, str.length - 1); - return "[" + key + "]"; - } - return ""; - } - return "" + x; -} - -function shouldBe(title, actual, expected) { - if (actual !== expected) - throw Error(title + ": actual:" + actual + " expected:" + expected); -} - -function makeObj(propKey, classMethodName) { - return { - [propKey]: class { static [classMethodName](){} }, - }; -} -noInline(makeObj); - -for (var i = 0; i < 1000; i++) { - for (var k = 0; k < propKeys.length; k++) { - let key = propKeys[k]; - let o = makeObj(key, "prop"); - shouldBe("typeof o[" + toKeyString(key) + "].name", typeof o[key].name, "string"); - shouldBe("o[" + toKeyString(key) + "].name", o[key].name, toFuncName(key)); - } - - for (var k = 0; k < propKeys.length; k++) { - let key = propKeys[k]; - let o = makeObj(key, "name"); - shouldBe("typeof o[" + toKeyString(key) + "].name", typeof o[key], "function"); - } - - for (var k = 0; k < propKeys.length; k++) { - let key = propKeys[k]; - let prop = { toString() { return "prop" } }; - let o = makeObj(key, prop); - shouldBe("typeof o[" + toKeyString(key) + "].name", typeof o[key].name, "string"); - shouldBe("o[" + toKeyString(key) + "].name", o[key].name, toFuncName(key)); - } - - for (var k = 0; k < propKeys.length; k++) { - let key = propKeys[k]; - let prop = { toString() { return "name" } }; - let o = makeObj(key, prop); - shouldBe("typeof o[" + toKeyString(key) + "].name", typeof o[key], "function"); - } -} diff --git a/implementation-contributed/javascriptcore/stress/concat-append-one-with-sparse-array.js b/implementation-contributed/javascriptcore/stress/concat-append-one-with-sparse-array.js index 2451330fa4b90709a82a8c9d90ea27f4c4669b07..3d8a099efeb853c64eb2a27e4f4f7a587739b533 100644 --- a/implementation-contributed/javascriptcore/stress/concat-append-one-with-sparse-array.js +++ b/implementation-contributed/javascriptcore/stress/concat-append-one-with-sparse-array.js @@ -1,3 +1,4 @@ +// Reviewed //@ skip let length = 0x10001000; diff --git a/implementation-contributed/javascriptcore/stress/concat-with-holesMustForwardToPrototype.js b/implementation-contributed/javascriptcore/stress/concat-with-holesMustForwardToPrototype.js deleted file mode 100644 index 3a02dcacb5a84849d77bf32b055058d0686e16d6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/concat-with-holesMustForwardToPrototype.js +++ /dev/null @@ -1,19 +0,0 @@ -Array.prototype[1] = 5; - -function arrayEq(a, b) { - if (a.length !== b.length) - throw new Error([a, "\n\n", b]); - - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) - throw new Error([a, "\n\n", b]); - } -} - - -let obj = {}; -arrayEq([1,2,3].concat(4), [1,2,3,4]); -arrayEq([1,2,3].concat(1.34), [1,2,3,1.34]); -arrayEq([1.35,2,3].concat(1.34), [1.35,2,3,1.34]); -arrayEq([1.35,2,3].concat(obj), [1.35,2,3,obj]); -arrayEq([1,2,3].concat(obj), [1,2,3,obj]); diff --git a/implementation-contributed/javascriptcore/stress/const-and-with-statement.js b/implementation-contributed/javascriptcore/stress/const-and-with-statement.js deleted file mode 100644 index 0b25865adc7f0e0f27383348dfc0b9e07e4b0749..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/const-and-with-statement.js +++ /dev/null @@ -1,115 +0,0 @@ -function truth() { - return true; -} -noInline(truth); - -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -function shouldThrowInvalidConstAssignment(f) { - var threw = false; - try { - f(); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); -} -noInline(shouldThrowInvalidConstAssignment); - - -// Tests - -const NUM_LOOPS = 100; - -;(function() { - function foo() { - const x = 40; - with ({x : 100}) { - assert(x === 100); - } - with ({y : 100}) { - assert(x === 40); - } - } - noInline(foo); - - function bar() { - const x = 40; - function capX() { return x; } - with ({x : 100}) { - if (truth()) { - const x = 50; - const capX = function() { return x; } - assert(x === 50); - assert(capX() === x); - } - assert(x === 100); - assert(capX() === 40); - } - with ({y : 100}) { - if (truth()) { - const x = 50; - const capX = function() { return x; } - assert(x === 50); - assert(capX() === x); - } - assert(x === 40); - assert(capX() === 40); - } - } - noInline(bar); - - function baz() { - const x = 40; - function capX() { return x; } - with ({x : 100}) { - if (truth()) { - const x = 50; - assert(x === 50); - } - assert(x === 100); - assert(capX() === 40); - } - with ({y : 100}) { - if (truth()) { - const x = 50; - assert(x === 50); - } - assert(x === 40); - assert(capX() === 40); - } - } - noInline(baz); - - for (let i = 0; i < NUM_LOOPS; i++) { - foo(); - bar(); - baz(); - } -})(); - - -;(function() { - function foo() { - const x = 40; - with ({x : 100}) { - assert(x === 100); - x = 20; - assert(x === 20); - } - assert(x === 40); - with ({y : 100}) { - assert(x === 40); - x = 100; - } - } - for (let i = 0; i < NUM_LOOPS; ++i) { - shouldThrowInvalidConstAssignment(foo); - } - -})(); diff --git a/implementation-contributed/javascriptcore/stress/const-exception-handling.js b/implementation-contributed/javascriptcore/stress/const-exception-handling.js deleted file mode 100644 index da434306472ed5b5bde3722d783a6100f330abd7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/const-exception-handling.js +++ /dev/null @@ -1,204 +0,0 @@ -"use strict"; - -function truth() { - return true; -} -noInline(truth); - -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -// Tests - - -const NUM_LOOPS = 100; - -;(function () { -function foo() { - const x = 20; - const y = "y"; - try { - assert(x === 20); - assert(y === "y"); - throw "error"; - } catch(e) { - assert(x === 20); - } finally { - assert(x === 20); - assert(y === "y"); - } - - for (let i = 0; i < 1; i++) { - let numFinally = 0; - try { - let a = 40; - let capA = function() { return a; } - assert(capA() === 40); - try { - const b = 41; - const capB = function() { return b; } - assert(capB() === 41); - assert(capA() === 40); - try { - return 20; - } catch(e){ - } finally { - const c = 42; - const capC = function() { return c; } - assert(capC() === 42); - assert(capB() === 41); - assert(capA() === 40); - if (i === 0) { - numFinally++; - } - return 22; - } - } catch(e) { - } finally { - if (i === 0) { - numFinally++; - } - return 23; - } - } catch(e) { - } finally { - if (i === 0) { - numFinally++; - } - assert(numFinally === 3); - return 24; - } - } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - assert(foo() === 24); -} - -})(); - - -;(function () { -function foo() { - for (let i = 0; i < 1; i++) { - let numFinally = 0; - let numErrors = 0; - try { - let a = 40; - let capA = function() { return a; } - assert(capA() === 40); - try { - const b = 41; - const capB = function() { return b; } - assert(capB() === 41); - assert(capA() === 40); - try { - throw "e"; - } catch(e) { - assert(i === 0); - assert(capB() === 41); - assert(capA() === 40); - numErrors++; - throw e; - } finally { - const c = 42; - const capC = function() { return c; } - const local = "local"; - assert(local === "local"); - assert(capC() === 42); - assert(capB() === 41); - assert(capA() === 40); - if (i === 0) { - numFinally++; - } - } - } catch(e) { - assert(i === 0); - assert(capA() === 40); - numErrors++; - const local = "local"; - assert(local === "local"); - } finally { - assert(capA() === 40); - if (i === 0) { - numFinally++; - } - const local = "local"; - assert(local === "local"); - return 23; - } - } catch(e) { - //assert(i === 0); - } finally { - if (i === 0) { - numFinally++; - } - - assert(numFinally === 3); - assert(numErrors === 2); - return 24; - } - } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - assert(foo() === 24); -} - -})(); - - -var d = 100; -;(function (){ -function foo() { - assert(d === 100); - for (let i = 0; i < 1; i++) { - let numFinally = 0; - let numErrors = 0; - const c = 44; - assert(d === 100); - try { - const d = 45; - if (truth()) { - const a = 20; - const capA = function() { return a; } - assert(capA() === 20); - if (truth()) { - const b = 21; - const e = 48; - const capB = function() { return b; } - assert(capB() === 21); - assert(d === 45); - try { - throw "e"; - } catch(e) { - assert(capA() === 20); - assert(a === 20); - numErrors++; - } finally { - assert(capA() === 20); - assert(e === 48); - numFinally++; - return 30; - } - } - } - } finally { - assert(c === 44); - assert(d === 100); - numFinally++; - assert(numFinally === 2); - assert(numErrors === 1); - return 40; - } - } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - assert(foo() === 40); -} - -})(); diff --git a/implementation-contributed/javascriptcore/stress/const-loop-semantics.js b/implementation-contributed/javascriptcore/stress/const-loop-semantics.js deleted file mode 100644 index 9ac1a668afa118fec82c5594c6f9e3af221546a3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/const-loop-semantics.js +++ /dev/null @@ -1,130 +0,0 @@ -"use strict"; -function truth() { - return true; -} -noInline(truth); - -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); -function shouldThrowInvalidConstAssignment(f) { - var threw = false; - try { - f(); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); -} -noInline(shouldThrowInvalidConstAssignment); - - -// ========== tests below =========== - -const NUM_LOOPS = 1000; - -;(function() { - function foo() { - const obj = {a: 20, b: 40, c: 50}; - const props = []; - for (const p in obj) - props.push(p); - assert(props.length === 3); - for (const p of props) - assert(!!obj[p]); - assert(props.indexOf("a") !== -1); - assert(props.indexOf("b") !== -1); - assert(props.indexOf("c") !== -1); - } - - function bar() { - const funcs = []; - for (const item of [1, 2, 3]) - funcs.push(function() { return item; }); - let i = 1; - assert(funcs.length === 3); - for (const f of funcs) { - assert(f() === i); - i++; - } - } - function baz() { - const funcs = []; - const obj = {a:1, b:2, c:3}; - for (const p in obj) - funcs.push(function() { return p; }); - let i = 1; - assert(funcs.length === 3); - for (const f of funcs) { - assert(obj[f()] === i); - i++; - } - } - function taz() { - for (const item of [1,2,3]) { - const item = 20; - assert(item === 20); - } - } - function jaz() { - let i = 0; - for (const x = 40; i < 10; i++) { - assert(x === 40); - } - } - for (var i = 0; i < NUM_LOOPS; i++) { - foo(); - bar(); - baz(); - taz(); - jaz(); - } -})(); - -;(function() { - function foo() { - for (const item of [1,2,3]) - item = 20; - } - function bar() { - for (const item of [1,2,3]) - eval("item = 20") - } - function baz() { - for (const p in {a: 20, b: 40}) - p = 20; - } - function taz() { - for (const p in {a: 20, b: 40}) - eval("p = 20") - } - function jaz() { - for (const x = 0; x < 10; x++) { } - } - function raz() { - for (const x = 0; x < 10; ++x) { } - } - function paz() { - for (const x = 0; x < 10; x++) { - let f = function() { return x; } - } - } - function maz() { - for (const x = 0; x < 10; ++x) { - let f = function() { return x; } - } - } - for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowInvalidConstAssignment(foo); - shouldThrowInvalidConstAssignment(bar); - shouldThrowInvalidConstAssignment(baz); - shouldThrowInvalidConstAssignment(taz); - shouldThrowInvalidConstAssignment(jaz); - shouldThrowInvalidConstAssignment(raz); - shouldThrowInvalidConstAssignment(paz); - shouldThrowInvalidConstAssignment(maz); - } -})(); diff --git a/implementation-contributed/javascriptcore/stress/const-not-strict-mode.js b/implementation-contributed/javascriptcore/stress/const-not-strict-mode.js deleted file mode 100644 index 79cdaefbcee5185533ab8747e2b218aaa462ab80..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/const-not-strict-mode.js +++ /dev/null @@ -1,147 +0,0 @@ -function truth() { - return true; -} -noInline(truth); - -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -function shouldThrowTDZ(func) { - var hasThrown = false; - try { - func(); - } catch(e) { - if (e.name.indexOf("ReferenceError") !== -1) - hasThrown = true; - } - assert(hasThrown); -} -noInline(shouldThrowTDZ); - - -// Tests - - -const NUM_LOOPS = 1000; - -;(function() { -function foo() { - delete x; - const x = 20; -} -function bar() { - delete x; - const x = 20; - function capX() { return x; } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); -} - -})(); - - -;(function() { - -function foo() { - var hadError = false; - try { - x; - } catch(e) { - hadError = true; - } - assert(hadError); - - if (truth()) { - // This eval is enterpreted as follows: - // eval("var x; x = 20"); - // We first assign undefined to the "var x". - // Then, we interperet an assignment expression - // into the resolved variable x. x resolves to the lexical "const x;" - // Look at ECMA section 13.3.2.4 of the ES6 spec: - // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-variable-statement-runtime-semantics-evaluation - // And also look at section 8.3.1 ResolveBinding: - // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-resolvebinding - const x = 40; - let threw = false; - try { - eval("var x = 20;"); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); - assert(x === 40); - } - assert(x === undefined); -} - -function bar() { - var hadError = false; - try { - x; - } catch(e) { - hadError = true; - } - assert(hadError); - - if (truth()) { - const x = 40; - function capX() { return x; } - let threw = false; - try { - eval("var x = 20;"); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); - assert(x === 40); - } - assert(x === undefined); -} - -function baz() { - if (truth()) { - const x = 40; - eval("const x = 20; assert(x === 20);"); - assert(x === 40); - } - if (truth()) { - const x = 40; - function capX() { return x; } - eval("const x = 20; assert(x === 20);"); - assert(x === 40); - } -} - -function baz() { - // Test eval() caching. - const x = 20; - const evalString = "x;"; - - assert(eval(evalString) === 20); - if (truth()) { - const y = 60; - assert(eval(evalString) === 20); - assert(y === 60); - if (truth()) { - const y = 50, z = 70, x = 40; - assert(eval(evalString) === 40); - assert(y === 50 && z === 70); - } - } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - foo(); - bar(); - baz(); -} - -})(); diff --git a/implementation-contributed/javascriptcore/stress/const-semantics.js b/implementation-contributed/javascriptcore/stress/const-semantics.js deleted file mode 100644 index d24e0666642a41296bb09a2a6d8460c511ac700f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/const-semantics.js +++ /dev/null @@ -1,274 +0,0 @@ -"use strict"; -function truth() { - return true; -} -noInline(truth); - -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); -function shouldThrowInvalidConstAssignment(f) { - var threw = false; - try { - f(); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); -} -noInline(shouldThrowInvalidConstAssignment); - - -// ========== tests below =========== - -const NUM_LOOPS = 1000; - - -;(function() { - function foo() { - const x = 40; - const {y} = {y: 50}, [z] = [60]; - assert(x === 40); - assert(y === 50); - assert(z === 60); - } - function bar() { - const x = 40; - const {y} = {y: 50}, [z] = [60]; - function capture() { return x + y + z; } - assert(x === 40); - assert(y === 50); - assert(z === 60); - assert(capture() === 150); - if (truth()) { - const x = "x"; - assert(x === "x"); - if (truth()) { - let x = 100; - const y = 200; - assert(x === 100); - assert(y === 200); - - x = 10; - assert(x === 10); - } - assert(x === "x"); - } - assert(x === 40); - } - function baz() { - let y = 10; - function sideEffects() { - y = 20; - } - - const x = 10; - try { - x = sideEffects(); - } catch(e) {} - assert(y === 20); - assert(x === 10); - - try { - x = y = 30; - } catch(e) {} - assert(y === 30); - assert(x === 10); - } - function taz() { - let y = 10; - let z; - function sideEffects() { - y = 20; - return ["hello", "world"]; - } - - const x = 10; - try { - [z, x] = sideEffects(); - } catch(e) {} - assert(y === 20); - assert(x === 10); - assert(z === "hello"); - } - function jaz() { - const x = "x"; - function capX() { return x; } - assert(x === "x"); - assert(capX() === "x"); - if (truth()) { - let y = 40; - let capY = function() { return y; } - assert(x === "x"); - assert(capX() === "x"); - } - assert(x === "x"); - assert(capX() === "x"); - } - for (var i = 0; i < NUM_LOOPS; i++) { - foo(); - bar(); - baz(); - jaz(); - } -})(); - - -;(function() { - function foo() { - const x = 40; - x = 30; - } - function bar() { - const x = 40; - function capX() { return x; } - x = 30; - } - function baz() { - const x = 40; - assert(x === 40); - function bad() { x = 10; } - bad(); - } - function jaz() { - const x = 40; - assert(x === 40); - function bad() { eval("x = 10"); } - bad(); - } - function faz() { - const x = 40; - assert(x === 40); - eval("x = 10"); - } - function raz() { - const x = 40; - assert(x === 40); - ;({x} = {x: 20}); - } - function taz() { - const x = 40; - function capX() { return x; } - assert(capX() === 40); - ;({x} = {x: 20}); - } - function paz() { - const x = 20; - const y = x = 20; - } - for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowInvalidConstAssignment(foo); - shouldThrowInvalidConstAssignment(bar); - shouldThrowInvalidConstAssignment(baz); - shouldThrowInvalidConstAssignment(jaz); - shouldThrowInvalidConstAssignment(faz); - shouldThrowInvalidConstAssignment(raz); - shouldThrowInvalidConstAssignment(taz); - shouldThrowInvalidConstAssignment(paz); - } -})(); - - -;(function() { - function foo() { - const x = 40; - eval("x = 30;"); - } - function bar() { - const x = 20; - x += 20; - } - function baz() { - const x = 20; - x -= 20; - } - function taz() { - const x = 20; - shouldThrowInvalidConstAssignment(function() { x = 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x += 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x -= 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x *= 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x /= 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x >>= 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x <<= 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x ^= 20; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x++; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { x--; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { ++x; }); - assert(x === 20); - shouldThrowInvalidConstAssignment(function() { --x; }); - assert(x === 20); - } - function jaz() { - const x = 20; - let threw = false; - try { x = 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x += 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x -= 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x *= 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x /= 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x >>= 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x <<= 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x ^= 20; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { x++; } catch(e) { threw = true} - assert(threw); - - - threw = false; - try { x--; } catch(e) { threw = true} - assert(threw); - - - threw = false; - try { ++x; } catch(e) { threw = true} - assert(threw); - - threw = false; - try { --x; } catch(e) { threw = true}; - assert(threw); - } - for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowInvalidConstAssignment(foo); - shouldThrowInvalidConstAssignment(bar); - shouldThrowInvalidConstAssignment(baz); - taz(); - jaz(); - } -})(); diff --git a/implementation-contributed/javascriptcore/stress/const-tdz.js b/implementation-contributed/javascriptcore/stress/const-tdz.js deleted file mode 100644 index cdf1a57a5bf87cf3bd7004b90ae25dca83f540a5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/const-tdz.js +++ /dev/null @@ -1,450 +0,0 @@ -"use strict"; - -function truth() { - return true; -} -noInline(truth); - -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -function shouldThrowTDZ(func) { - var hasThrown = false; - try { - func(); - } catch(e) { - if (e.name.indexOf("ReferenceError") !== -1) - hasThrown = true; - } - assert(hasThrown); -} -noInline(shouldThrowTDZ); - -// Test cases - -const NUM_LOOPS = 1000; -const SHORT_LOOPS = 100; - -;(function() { -function foo() { - x; - const x = 20; -} -function bar() { - const x = x; -} -function baz() { - const {x: prop, y: prop2} = {x: prop}; -} -function jaz() { - const {x: prop, y: prop2} = {x: 20, y: prop}; -} -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); - shouldThrowTDZ(baz); - shouldThrowTDZ(jaz); -} -})(); - - -;(function() { -function foo() { - x; - const x = 20; - function captureX() { return x; } -} -function bar() { - captureX(); - const x = 20; - function captureX() { return x; } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); -} -})(); - - -;(function() { -function foo() { - if (truth()) { - const x = 20; - assert(x === 20); - } - x; - const x = 20; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - - -;(function() { -function foo() { - if (truth()) { - const y = 20; - const captureY = function() { return y; } - assert(y === 20); - x; - } - const x = 20; - const y = 40; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - -;(function() { -function foo() { - if (truth()) { - const y = 20; - const x = 40; - const captureAll = function() { return x + y; } - assert(y === 20); - assert(x === 40); - assert(captureAll() === 60); - } - tdz; - const tdz = 20; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - -;(function() { -function foo() { - if (truth()) { - const y = 20; - const x = 40; - const captureAll = function() { return x + y + tdz; } - assert(y === 20); - assert(x === 40); - } - tdz; - const tdz = 20; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - -;(function() { -function foo() { - x = 10; - const x = 20; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - -;(function() { -function foo() { - x = 10; - const x = 20; - function cap() { return x; } -} -function bar() { - captureX(); - const x = 20; - function captureX() { return x; } -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); -} -})(); - - -;(function() { -function foo() { - if (!truth()) { - y; - assert(false); - } - const y = undefined; - assert(y === undefined); - if (truth()) { - x; - } - const x = undefined; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - -;(function() { -function foo() { - eval("x;"); - const x = 20; -} -function bar() { - function captureX() { return x; } - eval("captureX();"); - const x = 20; -} -function baz() { - function captureX() { return x; } - function other() { return captureX; } - other()(); - const x = 20; -} - -for (var i = 0; i < SHORT_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); - shouldThrowTDZ(baz); -} -})(); - - -;(function() { -function foo() { - const y = 40; - eval("y; x;"); - const x = 20; -} - -for (var i = 0; i < 1; i++) { - shouldThrowTDZ(foo); -} -})(); - - -;(function() { -function foo() { - const x = 20; - const y = 40; - assert(eval("x;") === 20); - if (truth()) { - assert(eval("eval('y');") === 40); - eval("eval('x');"); - const x = 40; - } -} - -for (var i = 0; i < SHORT_LOOPS; i++) { - shouldThrowTDZ(foo); -} -})(); - - -// FunctionResolveNode -;(function() { -function foo() { - function captureX() { return x; } - x(); - const x = function() { return 20; }; -} - -function bar() { - x(); - let x = function() { return 20; }; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); -} -})(); - - -// TypeofResolveNode -;(function() { -function foo() { - function captureX() { return x; } - typeof x; - const x = function() { return 20; }; -} - -function bar() { - typeof x; - const x = function() { return 20; }; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); -} -})(); - - -// ReadModifyResolveNode -;(function() { -function foo() { - function captureX() { return x; } - x++; - const x = 20; -} - -function bar() { - x--; - const x = 30; -} - -function baz() { - x *= 40; - const x = 30; -} - -function kaz() { - function captureX() { return x; } - x /= 20; - const x = 20; -} - -function haz() { - function captureX() { return x; } - --x; - const x = 20; -} - -function jaz() { - --x; - const x = 30; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(bar); - shouldThrowTDZ(baz); - shouldThrowTDZ(kaz); - shouldThrowTDZ(haz); - shouldThrowTDZ(jaz); -} -})(); - - -;(function() { -function foo(x) { - const y = 50; - let result = null; - switch(x) { - case 10: - const y = 40; - assert(y === 40); - case 20: - y += 1; - assert(y === 41); - result = y; - break; - default: - result = x; - break; - } - assert(y === 50); - return result; -} -function bar(x) { - const y = 50; - let result = null; - switch(x) { - case 10: - const y = 40; - assert(y === 40); - case 20: - const capY = function() { return y; } - y += 1; - assert(y === 41); - result = y; - break; - default: - result = x; - break; - } - assert(y === 50); - return result; -} -function baz(x) { - const y = 50; - let result = null; - switch(x) { - case 10: - const y = 40; - assert(y === 40); - case 20: - let inc = function() { y += 1; } - inc(); - assert(y === 41); - result = y; - break; - default: - result = x; - break; - } - assert(y === 50); - return result; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(function() { foo(20); }); - shouldThrowTDZ(function() { bar(20); }); - shouldThrowTDZ(function() { baz(20); }); -} -})(); - - -;(function() { -function foo() { - [x] = [1]; - const x = null; -} - -function boo() { - [x] = [1]; - const x = 20; - function capX() { return x; } -} - -function bar() { - ({a, p: y} = {a: 100, p: 40}); - const y = 40; -} - -function zar() { - ({a, p: y} = {a: 100, p: 40}); - const y = 10; - function capY() { return y; } -} - -function baz() { - ({a, p: {y}} = {a: 100, p: {p: {y: 40}}}); - const y = 100; -} - -function jaz() { - ({y} = {}); - const y = null; -} - -for (var i = 0; i < NUM_LOOPS; i++) { - shouldThrowTDZ(foo); - shouldThrowTDZ(boo); - shouldThrowTDZ(bar); - shouldThrowTDZ(zar); - shouldThrowTDZ(baz); - shouldThrowTDZ(jaz); -} -})(); diff --git a/implementation-contributed/javascriptcore/stress/cow-convert-contiguous-to-array-storage.js b/implementation-contributed/javascriptcore/stress/cow-convert-contiguous-to-array-storage.js deleted file mode 100644 index 03c6170663a10e3cce8cdbf765b8decd3c7f7721..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-convert-contiguous-to-array-storage.js +++ /dev/null @@ -1,25 +0,0 @@ -function createBuffer() { - return [NaN, 2.0585345]; -} -noInline(createBuffer); - -function shouldBe(a, b) { - if (a !== b) - throw new Error(a + " should be === to " + b); -} - -function test() { - let array = createBuffer(); - array[1000000] = "test"; - shouldBe(createBuffer()[1000000], undefined); - array = createBuffer(); - let o = Object.create(array); - o[1000000] = "test"; - shouldBe(array[1000000], undefined); - shouldBe(createBuffer()[1000000], undefined); - shouldBe(Object.create(createBuffer())[1000000], undefined); -} -noInline(test); - -for (let i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/cow-convert-double-to-array-storage.js b/implementation-contributed/javascriptcore/stress/cow-convert-double-to-array-storage.js deleted file mode 100644 index 9782c09f9dc8ff19b228285d7a097f92c7e32e01..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-convert-double-to-array-storage.js +++ /dev/null @@ -1,25 +0,0 @@ -function createBuffer() { - return [3.90295335646, 2.0585345]; -} -noInline(createBuffer); - -function shouldBe(a, b) { - if (a !== b) - throw new Error(a + " should be === to " + b); -} - -function test() { - let array = createBuffer(); - array[1000000] = "test"; - shouldBe(createBuffer()[1000000], undefined); - array = createBuffer(); - let o = Object.create(array); - o[1000000] = "test"; - shouldBe(array[1000000], undefined); - shouldBe(createBuffer()[1000000], undefined); - shouldBe(Object.create(createBuffer())[1000000], undefined); -} -noInline(test); - -for (let i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/cow-convert-double-to-contiguous.js b/implementation-contributed/javascriptcore/stress/cow-convert-double-to-contiguous.js deleted file mode 100644 index 55896b1affa73e935605d46db727b53bd6fe16e4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-convert-double-to-contiguous.js +++ /dev/null @@ -1,28 +0,0 @@ -function createBuffer() { - return [23.23421684, 2.0585345]; -} -noInline(createBuffer); - -function shouldBe(a, b) { - if (a !== b) - throw new Error(a + " should be === to " + b); -} - -function test() { - let array = createBuffer(); - array[-1] = "test"; - shouldBe(createBuffer()[-1], undefined); - array = createBuffer(); - array[1] = "test"; - shouldBe(createBuffer()[1], 2.0585345); - array = createBuffer(); - let o = Object.create(array); - o[1] = "test"; - shouldBe(array[1], 2.0585345); - shouldBe(createBuffer()[1], 2.0585345); - shouldBe(Object.create(createBuffer())[1], 2.0585345); -} -noInline(test); - -for (let i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-array-storage.js b/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-array-storage.js deleted file mode 100644 index 90a744da754fc3ba6554c66496c1f6e88bab2e34..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-array-storage.js +++ /dev/null @@ -1,25 +0,0 @@ -function createBuffer() { - return [1, 2]; -} -noInline(createBuffer); - -function shouldBe(a, b) { - if (a !== b) - throw new Error(a + " should be === to " + b); -} - -function test() { - let array = createBuffer(); - array[100000000] = "test"; - shouldBe(createBuffer()[100000000], undefined); - array = createBuffer(); - let o = Object.create(array); - o[100000000] = "test"; - shouldBe(array[100000000], undefined); - shouldBe(createBuffer()[100000000], undefined); - shouldBe(Object.create(createBuffer())[100000000], undefined); -} -noInline(test); - -for (let i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-contiguous.js b/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-contiguous.js deleted file mode 100644 index 62e321b00a4f9fc7c10f9087ecf090a6f0cd0603..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-contiguous.js +++ /dev/null @@ -1,28 +0,0 @@ -function createBuffer() { - return [1, 2]; -} -noInline(createBuffer); - -function shouldBe(a, b) { - if (a !== b) - throw new Error(a + " should be === to " + b); -} - -function test() { - let array = createBuffer(); - array[-1] = "test"; - shouldBe(createBuffer()[-1], undefined); - array = createBuffer(); - array[1] = "test"; - shouldBe(createBuffer()[1], 2); - array = createBuffer(); - let o = Object.create(array); - o[1] = "test"; - shouldBe(array[1], 2); - shouldBe(createBuffer()[1], 2); - shouldBe(Object.create(createBuffer())[1], 2); -} -noInline(test); - -for (let i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-double.js b/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-double.js deleted file mode 100644 index 4dd378729fe90e7b21d31dafaa17f381b2b0a5fd..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-convert-int32-to-double.js +++ /dev/null @@ -1,28 +0,0 @@ -function createBuffer() { - return [1, 2]; -} -noInline(createBuffer); - -function shouldBe(a, b) { - if (a !== b) - throw new Error(a + " should be === to " + b); -} - -function test() { - let array = createBuffer(); - array[-1] = 7.43; - shouldBe(createBuffer()[-1], undefined); - array = createBuffer(); - array[1] = 6.9023; - shouldBe(createBuffer()[1], 2); - array = createBuffer(); - let o = Object.create(array); - o[1] = 5.43; - shouldBe(array[1], 2); - shouldBe(createBuffer()[1], 2); - shouldBe(Object.create(createBuffer())[1], 2); -} -noInline(test); - -for (let i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/cow-define-length-as-value.js b/implementation-contributed/javascriptcore/stress/cow-define-length-as-value.js deleted file mode 100644 index 0de9fcd86db8541eaf8e5bb21eee50aca9a79cdb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cow-define-length-as-value.js +++ /dev/null @@ -1,19 +0,0 @@ -function test(create) { - // Set length to be smaller. - Object.defineProperty(create(), "length", { value: 1 }); - - // Set length to be bigger. - Object.defineProperty(create(), "length", { value: 4 }); - - // Set length to be the same size - Object.defineProperty(create(), "length", { value: 3 }); -} - -// Test Int32. -test(() => [1, 2]); -// Test double -test(() => [1.123, 2.50934]); -// Test contiguous via NaN -test(() => [NaN, 2.50934]); -// Test contiguous via string -test(() => ["test", "42"]); diff --git a/implementation-contributed/javascriptcore/stress/create-direct-arguments-in-osr-should-initialize-to-undefined.js b/implementation-contributed/javascriptcore/stress/create-direct-arguments-in-osr-should-initialize-to-undefined.js deleted file mode 100644 index 6c7904836c270b1d070be2d0cf71c9da1f9a2ae6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-direct-arguments-in-osr-should-initialize-to-undefined.js +++ /dev/null @@ -1,17 +0,0 @@ -// This should not crash. - -function foo(a, b) { - let x = arguments; - OSRExit(); - return a + b; -} - -function bar(b) { - if (b) - foo(); -} -noInline(bar); - -for (let i = 0; i < 1000; ++i) { - bar(true); -} diff --git a/implementation-contributed/javascriptcore/stress/create-rest-while-having-a-bad-time.js b/implementation-contributed/javascriptcore/stress/create-rest-while-having-a-bad-time.js deleted file mode 100644 index e599681becc1abd08c4859e957464f6dfb5fd6bf..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-rest-while-having-a-bad-time.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -function f(...v) { - return g(v); -} -function g() { - return h(); -} -function h() { -} - -for (let i = 0; i < 10000; ++i) { - f(0); - f(0, 0); -} - -Object.defineProperty(Array.prototype, "42", {}); diff --git a/implementation-contributed/javascriptcore/stress/create-subclass-structure-may-throw-exception-when-getting-prototype.js b/implementation-contributed/javascriptcore/stress/create-subclass-structure-may-throw-exception-when-getting-prototype.js index f78d1b378ccd155e2879258ba9fc5ab18f1154b9..fa51cd0707ce8ce3d6443527152509450cbe9197 100644 --- a/implementation-contributed/javascriptcore/stress/create-subclass-structure-may-throw-exception-when-getting-prototype.js +++ b/implementation-contributed/javascriptcore/stress/create-subclass-structure-may-throw-exception-when-getting-prototype.js @@ -1,3 +1,15 @@ +/** +#### ch +Error: OK + +#### jsshell +Error: bad error: TypeError: undefined is not a function + +#### d8, node +Error: bad error: TypeError: Promise resolver undefined is not a function + +#### jsc + */ function shouldThrow(func, errorMessage) { var errorThrown = false; var error = null; diff --git a/implementation-contributed/javascriptcore/stress/create-subclass-structure-might-throw.js b/implementation-contributed/javascriptcore/stress/create-subclass-structure-might-throw.js deleted file mode 100644 index ef8640fa6cb6c4387fcda645759da58f4d69a53a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-subclass-structure-might-throw.js +++ /dev/null @@ -1,34 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("bad assertion."); -} - -let targets = [Function, String, Array, Set, Map, WeakSet, WeakMap, RegExp, Number, Promise, Date, Boolean, Error, TypeError, SyntaxError, ArrayBuffer, Int32Array, Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Uint32Array, Float32Array, Float64Array, DataView]; -for (let target of targets) { - let error = null; - let called = false; - let handler = { - get: function(theTarget, propName) { - assert(propName === "prototype"); - error = new Error; - called = true; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e === error); - error = null; - } - assert(threw); - assert(called); - called = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/create-this-property-change.js b/implementation-contributed/javascriptcore/stress/create-this-property-change.js deleted file mode 100644 index 6a0e8d39625986de379c397dab5971689ad8168f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-this-property-change.js +++ /dev/null @@ -1,49 +0,0 @@ -var globalO; - -function Foo() -{ - this.g = 42; -} - -class RealBar extends Foo { - constructor() - { - var o = globalO; - var result = o.f; - super(); - result += o.f; - this.result = result; - } -} - -var doIntercept = false; -var didExecuteFGetter = false; -var Bar = new Proxy(RealBar, { - get: function(target, property, receiver) { - if (property == "prototype" && doIntercept) { - globalO.f = 666; - didExecuteFGetter = true; - } - return Reflect.get(target, property, receiver); - } -}); - -noInline(RealBar); - -for (var i = 0; i < 10000; ++i) { - (function() { - globalO = {f:43}; - var result = new Bar().result; - if (result != 86) - throw "bad result in loop: " + result; - })(); -} - -doIntercept = true; -globalO = {f:43}; -var result = new Bar().result; -if (result != 709) - throw "bad result at end: " + result; -if (!didExecuteFGetter) - throw "did not execute f getter"; - diff --git a/implementation-contributed/javascriptcore/stress/create-this-structure-change-without-cse.js b/implementation-contributed/javascriptcore/stress/create-this-structure-change-without-cse.js deleted file mode 100644 index 08642b51bf2b6ddc692882a16f0b53dbb72561c1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-this-structure-change-without-cse.js +++ /dev/null @@ -1,51 +0,0 @@ -var globalO; - -function Foo() -{ - this.f = 42; -} - -class RealBar extends Foo { - constructor() - { - var o = globalO; - var result = o.f; - super(); - result += o.f; - this.result = result; - } -} - -var doIntercept = false; -var didExecuteFGetter = false; -var Bar = new Proxy(RealBar, { - get: function(target, property, receiver) { - if (property == "prototype" && doIntercept) { - globalO.__defineGetter__("f", function() { - didExecuteFGetter = true; - return 666; - }); - } - return Reflect.get(target, property, receiver); - } -}); - -noInline(RealBar); - -for (var i = 0; i < 10000; ++i) { - (function() { - globalO = {f:43}; - var result = new Bar().result; - if (result != 86) - throw "bad result in loop: " + result; - })(); -} - -doIntercept = true; -globalO = {f:43}; -var result = new Bar().result; -if (result != 709) - throw "bad result at end: " + result; -if (!didExecuteFGetter) - throw "did not execute f getter"; - diff --git a/implementation-contributed/javascriptcore/stress/create-this-structure-change.js b/implementation-contributed/javascriptcore/stress/create-this-structure-change.js deleted file mode 100644 index 68a98166131c642fd00c28b2c9ba0a8f66e52d26..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-this-structure-change.js +++ /dev/null @@ -1,51 +0,0 @@ -var globalO; - -function Foo() -{ - this.g = 42; -} - -class RealBar extends Foo { - constructor() - { - var o = globalO; - var result = o.f; - super(); - result += o.f; - this.result = result; - } -} - -var doIntercept = false; -var didExecuteFGetter = false; -var Bar = new Proxy(RealBar, { - get: function(target, property, receiver) { - if (property == "prototype" && doIntercept) { - globalO.__defineGetter__("f", function() { - didExecuteFGetter = true; - return 666; - }); - } - return Reflect.get(target, property, receiver); - } -}); - -noInline(RealBar); - -for (var i = 0; i < 10000; ++i) { - (function() { - globalO = {f:43}; - var result = new Bar().result; - if (result != 86) - throw "bad result in loop: " + result; - })(); -} - -doIntercept = true; -globalO = {f:43}; -var result = new Bar().result; -if (result != 709) - throw "bad result at end: " + result; -if (!didExecuteFGetter) - throw "did not execute f getter"; - diff --git a/implementation-contributed/javascriptcore/stress/create-this-with-callee-variants.js b/implementation-contributed/javascriptcore/stress/create-this-with-callee-variants.js deleted file mode 100644 index a7368ae03cb4c56c4a1db609c4b39b38f3df07c2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/create-this-with-callee-variants.js +++ /dev/null @@ -1,18 +0,0 @@ -function createInLoop(x, count) { - noInline(x) - for (var i = 0; i < 5000; i++) { - var obj = new x; - if (!(obj instanceof x)) - throw "Failed to instantiate the right object"; - } -} - -function y() { return function () {} } - -createInLoop(y()); - -function z() { return function () {} } - -createInLoop(z()); -createInLoop(z()); -createInLoop(z()); diff --git a/implementation-contributed/javascriptcore/stress/cse-multi-get-by-offset-remove-checks.js b/implementation-contributed/javascriptcore/stress/cse-multi-get-by-offset-remove-checks.js deleted file mode 100644 index 5eaa6c96046e8e73decf2ac51804a5cfef856463..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/cse-multi-get-by-offset-remove-checks.js +++ /dev/null @@ -1,55 +0,0 @@ -function Cons1() -{ - this.e = 1; - this.f = 2; -} - -Cons1.prototype.g = 1; - -function Cons2() -{ - this.f = 1; - this.h = 2; -} - -Cons2.prototype.g = 2; - -function Cons3() -{ - this.d = 1; - this.e = 2; - this.f = 3; -} - -Cons3.prototype = Cons2.prototype; - -function foo(o, p, q) -{ - var x = 0, y = 0; - if (p) - x = o.f; - if (q) - y = o.f; - return x + y; -} - -for (var i = 0; i < 10000; ++i) { - foo(new Cons1(), true, false); - foo(new Cons2(), false, true); - foo(new Cons3(), false, true); -} - -function bar(o, p) -{ - return foo(o, true, p); -} - -noInline(bar); - -for (var i = 0; i < 100000; ++i) - bar(new Cons1(), false); - -var result = bar(new Cons1(), true); -if (result != 4) - throw "Error: bad result: " + result; - diff --git a/implementation-contributed/javascriptcore/stress/custom-iterators.js b/implementation-contributed/javascriptcore/stress/custom-iterators.js index fd6413fe3b5e903affe3803fd004c0cb1f1c64f3..3c97ce9b2d2d91d5e9882d59649f68b1235d7b53 100644 --- a/implementation-contributed/javascriptcore/stress/custom-iterators.js +++ b/implementation-contributed/javascriptcore/stress/custom-iterators.js @@ -1,3 +1,9 @@ +// Reviewed +/** +#### ch +Error: bad error thrown: Error: Terminate iteration. + */ + // This test checks the behavior of custom iterable objects. var returnCalled = false; diff --git a/implementation-contributed/javascriptcore/stress/custom-prototype-may-be-same-to-original-one.js b/implementation-contributed/javascriptcore/stress/custom-prototype-may-be-same-to-original-one.js index 2d0d46595f23040de438d4087ce328ec810da6cb..e51a5ecb02bf3f0ef995617f97b497515b535807 100644 --- a/implementation-contributed/javascriptcore/stress/custom-prototype-may-be-same-to-original-one.js +++ b/implementation-contributed/javascriptcore/stress/custom-prototype-may-be-same-to-original-one.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(actual, expected) { if (actual !== expected) throw new Error(`bad value: ${String(actual)}`); diff --git a/implementation-contributed/javascriptcore/stress/dataview-construct.js b/implementation-contributed/javascriptcore/stress/dataview-construct.js deleted file mode 100644 index 54f9f050aecc737305b244e2f0029075159e17d1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-construct.js +++ /dev/null @@ -1,76 +0,0 @@ -function assert(condition) { - if (!condition) - throw new Error("Bad assertion"); -} - -function shouldThrow(func, message) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== message) - throw new Error("bad error: " + String(error)); -} - -var buffer = new ArrayBuffer(128); -var dataView = null; - -dataView = new DataView(buffer); -assert(dataView.byteOffset === 0); -assert(dataView.byteLength === 128); - -dataView = new DataView(buffer, undefined); -assert(dataView.byteOffset === 0); -assert(dataView.byteLength === 128); - -dataView = new DataView(buffer, 10); -assert(dataView.byteOffset === 10); -assert(dataView.byteLength === 118); - -dataView = new DataView(buffer, 10, undefined); -assert(dataView.byteOffset === 10); -assert(dataView.byteLength === 118); - -dataView = new DataView(buffer, 10, 20); -assert(dataView.byteOffset === 10); -assert(dataView.byteLength === 20); - -assert(new DataView(buffer, 10).byteLength === new DataView(buffer, 10, undefined).byteLength); - -shouldThrow(() => { - new DataView; -}, "TypeError: DataView constructor requires at least one argument."); - -shouldThrow(() => { - new DataView(1); -}, "TypeError: Expected ArrayBuffer for the first argument."); - -shouldThrow(() => { - new DataView(buffer, 256); -}, "RangeError: Length out of range of buffer"); - -shouldThrow(() => { - new DataView(buffer, -1); -}, "RangeError: byteOffset cannot be negative"); - -shouldThrow(() => { - new DataView(buffer, Infinity); -}, "RangeError: byteOffset too large"); - -shouldThrow(() => { - new DataView(buffer, 0, 256); -}, "RangeError: Length out of range of buffer"); - -shouldThrow(() => { - new DataView(buffer, 0, -1); -}, "RangeError: byteLength cannot be negative"); - -shouldThrow(() => { - new DataView(buffer, 0, Infinity); -}, "RangeError: byteLength too large"); diff --git a/implementation-contributed/javascriptcore/stress/dataview-get-cse.js b/implementation-contributed/javascriptcore/stress/dataview-get-cse.js deleted file mode 100644 index e3d47a938e581bac7975c34758f1e1148e430d95..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-get-cse.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; - -function assert(b) { - if (!b) - throw new Error; -} - - -function test1() { - function foo(dv) { - return [dv.getFloat32(0), dv.getFloat64(0)]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - dv.setFloat64(0, 128431.42342189432, false); - for (let i = 0; i < 10000; ++i) { - let result = foo(dv); - assert(result[0] !== result[1]); - } -} -test1(); - -function test2() { - function foo(dv) { - return [dv.getFloat32(0), dv.getFloat32(0)]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - dv.setFloat64(0, 128431.42342189432, false); - for (let i = 0; i < 10000; ++i) { - let result = foo(dv); - assert(result[0] === result[1]); - } -} -test2(); - -function test3() { - function foo(dv, ta) { - let a = dv.getFloat64(0, true); - ta[0] = Math.PI; - let b = dv.getFloat64(0, true); - return [a, b]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - let ta = new Float64Array(ab); - for (let i = 0; i < 40000; ++i) { - dv.setFloat64(0, 0.0, true); - let result = foo(dv, ta); - assert(result[0] === 0.0); - assert(result[1] === Math.PI); - } -} -test3(); - -function test4() { - function foo(dv) { - let a = dv.getInt32(0, true); - let b = dv.getInt32(0, false); - return [a, b]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - dv.setInt32(0, 0x11223344, true); - for (let i = 0; i < 40000; ++i) { - let result = foo(dv); - assert(result[0] === 0x11223344); - assert(result[1] === 0x44332211) - } -} -test4(); - -function test5() { - function foo(dv, littleEndian) { - let a = dv.getInt32(0, littleEndian); - let b = dv.getInt32(0, !littleEndian); - return [a, b]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - dv.setInt32(0, 0x11223344, true); - for (let i = 0; i < 40000; ++i) { - let result = foo(dv, true); - assert(result[0] === 0x11223344); - assert(result[1] === 0x44332211) - } -} -test5(); - -function test6() { - function foo(dv, littleEndian) { - let a = dv.getInt32(0, littleEndian); - let b = dv.getInt32(0, littleEndian); - return [a, b]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - dv.setInt32(0, 0x11223344, true); - for (let i = 0; i < 40000; ++i) { - let result = foo(dv, true); - assert(result[0] === 0x11223344); - assert(result[1] === 0x11223344) - } -} -test6(); - -function test7() { - function foo(dv) { - let a = dv.getInt32(0, true); - let b = dv.getInt32(4, true); - return [a, b]; - } - noInline(foo); - - let ab = new ArrayBuffer(8); - let dv = new DataView(ab); - dv.setInt32(0, 0x11223344, true); - dv.setInt32(4, 0x12121212, true); - for (let i = 0; i < 40000; ++i) { - let result = foo(dv, true); - assert(result[0] === 0x11223344); - assert(result[1] === 0x12121212); - } -} -test7(); diff --git a/implementation-contributed/javascriptcore/stress/dataview-jit-bounds-checks.js b/implementation-contributed/javascriptcore/stress/dataview-jit-bounds-checks.js deleted file mode 100644 index bd9a6dae0dcbf920f94a9921458f1a498361f72b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-jit-bounds-checks.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; - -function assert(b, m = "") { - if (!b) - throw new Error("Bad: " + m); -} - -let getOps = { - getUint8: 1, - getUint16: 2, - getUint32: 4, - getInt8: 1, - getInt16: 2, - getInt32: 4, - getFloat32: 4, - getFloat64: 8, -}; - -let setOps = { - setUint8: 1, - setUint16: 2, - setUint32: 4, - setInt8: 1, - setInt16: 2, - setInt32: 4, - setFloat32: 4, - setFloat64: 8, -}; - -let getFuncs = []; -for (let p of Object.keys(getOps)) { - let endOfCall = getOps[p] === 1 ? ");" : ", true);"; - let str = ` - (function ${p}(dv, index) { - return dv.${p}(index${endOfCall} - }) - `; - - let func = eval(str); - noInline(func); - getFuncs.push(func); -} - -let setFuncs = []; -for (let p of Object.keys(setOps)) { - let endOfCall = setOps[p] === 1 ? ");" : ", true);"; - let str = ` - (function ${p}(dv, index, value) { - return dv.${p}(index, value${endOfCall} - }) - `; - - let func = eval(str); - noInline(func); - setFuncs.push(func); -} - -function assertThrowsRangeError(f) { - let e = null; - try { - f(); - } catch(err) { - e = err; - } - assert(e instanceof RangeError, e); -} - -function test(warmup) { - const size = 16*1024; - let ab = new ArrayBuffer(size); - let dv = new DataView(ab); - for (let i = 0; i < warmup; ++i) { - for (let f of getFuncs) { - f(dv, 0); - } - - for (let f of setFuncs) { - f(dv, 0, 10); - } - } - - for (let f of getFuncs) { - assertThrowsRangeError(() => { - let index = size - getOps[f.name] + 1; - f(dv, index); - }); - assertThrowsRangeError(() => { - let index = -1; - f(dv, index); - }); - assertThrowsRangeError(() => { - let index = -2147483648; - f(dv, index); - }); - } - - for (let f of setFuncs) { - assertThrowsRangeError(() => { - let index = size - setOps[f.name] + 1; - f(dv, index, 10); - }); - assertThrowsRangeError(() => { - let index = -1; - f(dv, index, 10); - }); - assertThrowsRangeError(() => { - let index = -2147483648; - f(dv, index, 10); - }); - } -} - -test(2000); -test(10000); diff --git a/implementation-contributed/javascriptcore/stress/dataview-jit-get.js b/implementation-contributed/javascriptcore/stress/dataview-jit-get.js deleted file mode 100644 index e0665af20c24b1037dab1ed025c6afbe5a2867e6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-jit-get.js +++ /dev/null @@ -1,305 +0,0 @@ -"use strict"; - -function assert(b) { - if (!b) - throw new Error("Bad!"); -} - -function test1() { - function bigEndian(o, i) { - return o.getInt32(i, false); - } - noInline(bigEndian); - function littleEndian(o, i) { - return o.getInt32(i, true); - } - noInline(littleEndian); - function biEndian(o, i, b) { - return o.getInt32(i, b); - } - noInline(biEndian); - - let ab = new ArrayBuffer(4); - let ta = new Int32Array(ab); - ta[0] = 0x01020304; - let dv = new DataView(ab); - - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === 0x04030201); - assert(littleEndian(dv, 0) === 0x01020304); - if (i % 2) - assert(biEndian(dv, 0, true) === 0x01020304); - else - assert(biEndian(dv, 0, false) === 0x04030201); - } - - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === 0x04030201); - assert(littleEndian(dv, 0) === 0x01020304); - if (i % 2) - assert(biEndian(dv, 0, true) === 0x01020304); - else - assert(biEndian(dv, 0, false) === 0x04030201); - } - - // Make sure we get the right sign. - ta[0] = -32361386; // 0xfe123456 - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === 0x563412fe); - assert(littleEndian(dv, 0) === -32361386); - if (i % 2) - assert(biEndian(dv, 0, true) === -32361386); - else - assert(biEndian(dv, 0, false) === 0x563412fe); - } - - // -2146290602 == (int)0x80123456 - ta[0] = 0x56341280; - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === -2146290602); - assert(littleEndian(dv, 0) === 0x56341280); - if (i % 2) - assert(biEndian(dv, 0, true) === 0x56341280); - else - assert(biEndian(dv, 0, false) === -2146290602); - } -} -test1(); - -function test2() { - function bigEndian(o, i) { - return o.getInt16(i, false); - } - noInline(bigEndian); - function littleEndian(o, i) { - return o.getInt16(i, true); - } - noInline(littleEndian); - function biEndian(o, i, b) { - return o.getInt16(i, b); - } - noInline(biEndian); - - let ab = new ArrayBuffer(2); - let ta = new Int16Array(ab); - ta[0] = 0x0102; - let dv = new DataView(ab); - - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === 0x0201); - assert(littleEndian(dv, 0) === 0x0102); - if (i % 2) - assert(biEndian(dv, 0, true) === 0x0102); - else - assert(biEndian(dv, 0, false) === 0x0201); - } - - // Check sign. - ta[0] = -512; // 0xfe00 - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === 0x00fe); - assert(littleEndian(dv, 0) === -512); - if (i % 2) - assert(biEndian(dv, 0, true) === -512); - else - assert(biEndian(dv, 0, false) === 0x00fe); - } - - // Check sign extension. - ta[0] = 0x00fe; - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === -512); - assert(littleEndian(dv, 0) === 0x00fe); - if (i % 2) - assert(biEndian(dv, 0, true) === 0x00fe); - else - assert(biEndian(dv, 0, false) === -512); - } -} -test2(); - -function test3() { - function bigEndian(o, i) { - return o.getFloat32(i, false); - } - noInline(bigEndian); - function littleEndian(o, i) { - return o.getFloat32(i, true); - } - noInline(littleEndian); - function biEndian(o, i, b) { - return o.getFloat32(i, b); - } - noInline(biEndian); - - let ab = new ArrayBuffer(4); - let ta = new Float32Array(ab); - const normal = 12912.403; // 0x4649c19d - const normalAsDouble = 12912.403320312500; - - const flipped = -5.1162437589918884e-21; - ta[0] = normal; - - let dv = new DataView(ab); - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === flipped); - assert(littleEndian(dv, 0) === 12912.403320312500); - if (i % 2) - assert(biEndian(dv, 0, true) === normalAsDouble); - else - assert(biEndian(dv, 0, false) === flipped); - } -} -test3(); - -function test4() { - function bigEndian(o, i) { - return o.getUint32(i, false); - } - noInline(bigEndian); - function littleEndian(o, i) { - return o.getUint32(i, true); - } - noInline(littleEndian); - function biEndian(o, i, b) { - return o.getUint32(i, b); - } - noInline(biEndian); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa0b0d0f0; - - let dv = new DataView(ab); - for (let i = 0; i < 10000; ++i) { - assert(bigEndian(dv, 0) === 0xf0d0b0a0); - assert(littleEndian(dv, 0) === 0xa0b0d0f0); - if (i % 2) - assert(biEndian(dv, 0, true) === 0xa0b0d0f0); - else - assert(biEndian(dv, 0, false) === 0xf0d0b0a0); - } -} -test4(); - -function test5() { - function bigEndian(o, i) { - return o.getUint16(i, false); - } - noInline(bigEndian); - function littleEndian(o, i) { - return o.getUint16(i, true); - } - noInline(littleEndian); - function biEndian(o, i, b) { - return o.getUint16(i, b); - } - noInline(biEndian); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa0b0d0f0; - - let dv = new DataView(ab); - for (let i = 0; i < 10000; ++i) { - assert(littleEndian(dv, 0) == 0xd0f0); - assert(bigEndian(dv, 0) == 0xf0d0); - - assert(littleEndian(dv, 1) == 0xb0d0); - assert(bigEndian(dv, 1) == 0xd0b0); - - assert(littleEndian(dv, 2) == 0xa0b0); - assert(bigEndian(dv, 2) == 0xb0a0); - - assert(biEndian(dv, 0, true) == 0xd0f0); - assert(biEndian(dv, 0, false) == 0xf0d0); - - assert(biEndian(dv, 1, true) == 0xb0d0); - assert(biEndian(dv, 1, false) == 0xd0b0); - - assert(biEndian(dv, 2, true) == 0xa0b0); - assert(biEndian(dv, 2, false) == 0xb0a0); - } -} -test5(); - -function test6() { - function bigEndian(o, i) { - return o.getInt16(i, false); - } - noInline(bigEndian); - function littleEndian(o, i) { - return o.getInt16(i, true); - } - noInline(littleEndian); - function biEndian(o, i, b) { - return o.getInt16(i, b); - } - noInline(biEndian); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa070fa01; - - let dv = new DataView(ab); - for (let i = 0; i < 10000; ++i) { - assert(littleEndian(dv, 0) == -1535); - assert(bigEndian(dv, 0) == 0x01fa); - - assert(littleEndian(dv, 1) == 0x70fa); - assert(bigEndian(dv, 1) == -1424); - - assert(littleEndian(dv, 2) == -24464); - assert(bigEndian(dv, 2) == 0x70a0); - - assert(biEndian(dv, 0, true) == -1535); - assert(biEndian(dv, 0, false) == 0x01fa); - - assert(biEndian(dv, 1, true) == 0x70fa); - assert(biEndian(dv, 1, false) == -1424); - - assert(biEndian(dv, 2, true) == -24464); - assert(biEndian(dv, 2, false) == 0x70a0); - } -} -test6(); - -function test7() { - function load(o, i) { - return o.getInt8(i); - } - noInline(load); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa070fa01; - - let dv = new DataView(ab); - for (let i = 0; i < 10000; ++i) { - assert(load(dv, 0) === 0x01); - assert(load(dv, 1) === -6); - assert(load(dv, 2) === 0x70); - assert(load(dv, 3) === -96); - } -} -test7(); - -function test8() { - function load(o, i) { - return o.getUint8(i); - } - noInline(load); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa070fa01; - - let dv = new DataView(ab); - for (let i = 0; i < 10000; ++i) { - assert(load(dv, 0) === 0x01); - assert(load(dv, 1) === 0xfa); - assert(load(dv, 2) === 0x70); - assert(load(dv, 3) === 0xa0) - } -} -test8(); diff --git a/implementation-contributed/javascriptcore/stress/dataview-jit-neuter.js b/implementation-contributed/javascriptcore/stress/dataview-jit-neuter.js deleted file mode 100644 index 635fc4c712df2f9e663c6429b79b149a8be501bf..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-jit-neuter.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; - -function assert(b) { - if (!b) - throw new Error("Bad!"); -} - -function test() { - function load(o, i) { - return o.getUint8(i); - } - noInline(load); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa070fa01; - let dv = new DataView(ab); - - for (let i = 0; i < 1000; ++i) { - assert(load(dv, 0) === 0x01); - } - - transferArrayBuffer(ab); - let e = null; - try { - load(dv, 0); - } catch(err) { - e = err; - } - assert(e instanceof RangeError); -} -test(); - - -function test2() { - function load(o, i) { - return o.getUint8(i); - } - noInline(load); - - let ab = new ArrayBuffer(4); - let ta = new Uint32Array(ab); - ta[0] = 0xa070fa01; - let dv = new DataView(ab); - - for (let i = 0; i < 10000; ++i) { - assert(load(dv, 0) === 0x01); - } - - transferArrayBuffer(ab); - let e = null; - try { - load(dv, 0); - } catch(err) { - e = err; - } - assert(e instanceof RangeError); -} -test2(); diff --git a/implementation-contributed/javascriptcore/stress/dataview-jit-set.js b/implementation-contributed/javascriptcore/stress/dataview-jit-set.js deleted file mode 100644 index b32ec895f24859990495e9edc1292eabb506cf46..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-jit-set.js +++ /dev/null @@ -1,440 +0,0 @@ -"use strict"; - -function assert(b) { - if (!b) - throw new Error; -} - -function readHex(dv, bytes) { - function isLittleEndian() { - let b = new ArrayBuffer(4); - let dv = new DataView(b); - dv.setInt32(0, 0x00112233, true); - return dv.getUint8(0) === 0x33; - } - let str = ""; - function readByte(i) { - let b = dv.getUint8(i).toString(16); - if (b.length === 1) - b = "0" + b; - else - assert(b.length === 2) - return b; - } - if (isLittleEndian()) { - for (let i = bytes; i--;) - str = str + readByte(i); - } else { - for (let i = 0; i < bytes; ++i) - str = str + readByte(i); - } - - return "0x" + str; -} - -{ - let b = new ArrayBuffer(4); - let dv = new DataView(b); - dv.setInt32(0, 0x00112233, true); - assert(readHex(dv, 4) === "0x00112233"); -} - -function test() { - function storeLittleEndian(dv, index, value) { - dv.setInt16(index, value, true); - } - noInline(storeLittleEndian); - - function storeBigEndian(dv, index, value) { - dv.setInt16(index, value, false); - } - noInline(storeBigEndian); - - function store(dv, index, value, littleEndian) { - dv.setInt16(index, value, littleEndian); - } - noInline(store); - - let buffer = new ArrayBuffer(2); - let arr = new Uint16Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - storeLittleEndian(dv, 0, 0xfaba); - assert(arr[0] === 0xfaba); - - store(dv, 0, 0xabcd, true); - assert(arr[0] === 0xabcd); - - store(dv, 0, 0xbadbeef, true); - assert(arr[0] === 0xbeef); - - storeLittleEndian(dv, 0, 0xbb4db33f, true); - assert(arr[0] === 0xb33f); - - storeBigEndian(dv, 0, 0xfada); - assert(arr[0] === 0xdafa); - - storeBigEndian(dv, 0, 0x12ab); - assert(arr[0] === 0xab12); - - store(dv, 0, 0x1234, false); - assert(arr[0] === 0x3412); - - store(dv, 0, 0x0102, false); - assert(arr[0] === 0x0201); - - store(dv, 0, -1, false); - assert(arr[0] === 0xffff); - - store(dv, 0, -2, false); - assert(arr[0] === 0xfeff); - - storeBigEndian(dv, 0, -1); - assert(arr[0] === 0xffff); - - storeBigEndian(dv, 0, -2); - assert(arr[0] === 0xfeff); - - storeBigEndian(dv, 0, -2147483648); - assert(arr[0] === 0x0000); - - storeLittleEndian(dv, 0, -2147483648); - assert(arr[0] === 0x0000); - - storeLittleEndian(dv, 0, -2147478988); - assert(arr[0] === 0x1234); - - storeBigEndian(dv, 0, -2147478988); - assert(arr[0] === 0x3412); - } -} -test(); - -function test2() { - function storeLittleEndian(dv, index, value) { - dv.setUint16(index, value, true); - } - noInline(storeLittleEndian); - - function storeBigEndian(dv, index, value) { - dv.setUint16(index, value, false); - } - noInline(storeBigEndian); - - function store(dv, index, value, littleEndian) { - dv.setUint16(index, value, littleEndian); - } - noInline(store); - - let buffer = new ArrayBuffer(2); - let arr = new Uint16Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - storeLittleEndian(dv, 0, 0xfaba); - assert(arr[0] === 0xfaba); - - store(dv, 0, 0xabcd, true); - assert(arr[0] === 0xabcd); - - store(dv, 0, 0xbadbeef, true); - assert(arr[0] === 0xbeef); - - storeLittleEndian(dv, 0, 0xbb4db33f, true); - assert(arr[0] === 0xb33f); - - storeBigEndian(dv, 0, 0xfada); - assert(arr[0] === 0xdafa); - - storeBigEndian(dv, 0, 0x12ab); - assert(arr[0] === 0xab12); - - store(dv, 0, 0x1234, false); - assert(arr[0] === 0x3412); - - store(dv, 0, 0x0102, false); - assert(arr[0] === 0x0201); - - store(dv, 0, -1, false); - assert(arr[0] === 0xffff); - - store(dv, 0, -2, false); - assert(arr[0] === 0xfeff); - - storeBigEndian(dv, 0, -1); - assert(arr[0] === 0xffff); - - storeBigEndian(dv, 0, -2); - assert(arr[0] === 0xfeff); - - storeBigEndian(dv, 0, -2147483648); - assert(arr[0] === 0x0000); - - storeLittleEndian(dv, 0, -2147483648); - assert(arr[0] === 0x0000); - - storeLittleEndian(dv, 0, -2147478988); - assert(arr[0] === 0x1234); - - storeBigEndian(dv, 0, -2147478988); - assert(arr[0] === 0x3412); - } -} -test2(); - -function test3() { - function storeLittleEndian(dv, index, value) { - dv.setUint32(index, value, true); - } - noInline(storeLittleEndian); - - function storeBigEndian(dv, index, value) { - dv.setUint32(index, value, false); - } - noInline(storeBigEndian); - - function store(dv, index, value, littleEndian) { - dv.setUint32(index, value, littleEndian); - } - noInline(store); - - let buffer = new ArrayBuffer(4); - let arr = new Uint32Array(buffer); - let arr2 = new Int32Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - storeLittleEndian(dv, 0, 0xffffffff); - assert(arr[0] === 0xffffffff); - assert(arr2[0] === -1); - - storeLittleEndian(dv, 0, 0xffaabbcc); - assert(arr[0] === 0xffaabbcc); - - storeBigEndian(dv, 0, 0x12345678); - assert(arr[0] === 0x78563412); - - storeBigEndian(dv, 0, 0xffaabbcc); - assert(arr[0] === 0xccbbaaff); - - store(dv, 0, 0xfaeadaca, false); - assert(arr[0] === 0xcadaeafa); - - store(dv, 0, 0xcadaeafa, false); - assert(arr2[0] === -85271862); - - store(dv, 0, 0x12345678, false); - assert(arr[0] === 0x78563412); - - storeBigEndian(dv, 0, 0xbeeffeeb); - assert(arr2[0] === -335614018); - } -} -test3(); - -function test4() { - function storeLittleEndian(dv, index, value) { - dv.setInt32(index, value, true); - } - noInline(storeLittleEndian); - - function storeBigEndian(dv, index, value) { - dv.setInt32(index, value, false); - } - noInline(storeBigEndian); - - function store(dv, index, value, littleEndian) { - dv.setInt32(index, value, littleEndian); - } - noInline(store); - - let buffer = new ArrayBuffer(4); - let arr = new Uint32Array(buffer); - let arr2 = new Int32Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - storeLittleEndian(dv, 0, 0xffffffff); - assert(arr[0] === 0xffffffff); - assert(arr2[0] === -1); - - storeLittleEndian(dv, 0, 0xffaabbcc); - assert(arr[0] === 0xffaabbcc); - - storeBigEndian(dv, 0, 0x12345678); - assert(arr[0] === 0x78563412); - - storeBigEndian(dv, 0, 0xffaabbcc); - assert(arr[0] === 0xccbbaaff); - - store(dv, 0, 0xfaeadaca, false); - assert(arr[0] === 0xcadaeafa); - - store(dv, 0, 0xcadaeafa, false); - assert(arr2[0] === -85271862); - - store(dv, 0, 0x12345678, false); - assert(arr[0] === 0x78563412); - - storeBigEndian(dv, 0, 0xbeeffeeb); - assert(arr2[0] === -335614018); - } -} -test4(); - -function test5() { - function storeLittleEndian(dv, index, value) { - dv.setFloat32(index, value, true); - } - noInline(storeLittleEndian); - - function storeBigEndian(dv, index, value) { - dv.setFloat32(index, value, false); - } - noInline(storeBigEndian); - - function store(dv, index, value, littleEndian) { - dv.setFloat32(index, value, littleEndian); - } - noInline(store); - - let buffer = new ArrayBuffer(4); - let arr = new Float32Array(buffer); - let bits = new Uint32Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - storeLittleEndian(dv, 0, 1.5); - assert(arr[0] === 1.5); - - storeLittleEndian(dv, 0, 12912.124123215122); - assert(arr[0] === 12912.1240234375); - assert(bits[0] === 0x4649c07f); - - storeLittleEndian(dv, 0, NaN); - assert(isNaN(arr[0])); - assert(bits[0] === 0x7FC00000); - - storeLittleEndian(dv, 0, 2.3879393e-38); - assert(arr[0] === 2.387939260590663e-38); - assert(bits[0] === 0x01020304); - - storeBigEndian(dv, 0, 2.3879393e-38); - assert(arr[0] === 1.539989614439558e-36); - assert(bits[0] === 0x04030201); - } -} -test5(); - -function test6() { - function storeLittleEndian(dv, index, value) { - dv.setFloat64(index, value, true); - } - noInline(storeLittleEndian); - - function storeBigEndian(dv, index, value) { - dv.setFloat64(index, value, false); - } - noInline(storeBigEndian); - - function store(dv, index, value, littleEndian) { - dv.setFloat64(index, value, littleEndian); - } - noInline(store); - - let buffer = new ArrayBuffer(8); - let arr = new Float64Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - storeLittleEndian(dv, 0, NaN); - assert(isNaN(arr[0])); - - storeLittleEndian(dv, 0, -2.5075187084135162e+284); - assert(arr[0] === -2.5075187084135162e+284); - assert(readHex(dv, 8) === "0xfafafafafafafafa"); - - store(dv, 0, 124.553, true); - assert(readHex(dv, 8) === "0x405f23645a1cac08"); - - store(dv, 0, Infinity, true); - assert(readHex(dv, 8) === "0x7ff0000000000000"); - - store(dv, 0, Infinity, false); - assert(readHex(dv, 8) === "0x000000000000f07f"); - - store(dv, 0, -Infinity, true); - assert(readHex(dv, 8) === "0xfff0000000000000"); - - storeBigEndian(dv, 0, -2.5075187084135162e+284); - assert(arr[0] === -2.5075187084135162e+284); - assert(readHex(dv, 8) === "0xfafafafafafafafa"); - - storeBigEndian(dv, 0, 124.553); - assert(readHex(dv, 8) === "0x08ac1c5a64235f40"); - } -} -test6(); - -function test7() { - function store(dv, index, value) { - dv.setInt8(index, value); - } - noInline(store); - - let buffer = new ArrayBuffer(1); - let arr = new Uint8Array(buffer); - let arr2 = new Int8Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - store(dv, 0, 0xff); - assert(arr[0] === 0xff); - assert(arr2[0] === -1); - - store(dv, 0, 0xff00); - assert(arr[0] === 0); - assert(arr2[0] === 0); - - store(dv, 0, -1); - assert(arr[0] === 0xff); - assert(arr2[0] === -1); - - store(dv, 0, 0x0badbeef); - assert(arr[0] === 0xef); - assert(arr2[0] === -17); - } -} -test7(); - -function test8() { - function store(dv, index, value) { - dv.setInt8(index, value); - } - noInline(store); - - let buffer = new ArrayBuffer(1); - let arr = new Uint8Array(buffer); - let arr2 = new Int8Array(buffer); - let dv = new DataView(buffer); - - for (let i = 0; i < 10000; ++i) { - store(dv, 0, 0xff); - assert(arr[0] === 0xff); - assert(arr2[0] === -1); - - store(dv, 0, 0xff00); - assert(arr[0] === 0); - assert(arr2[0] === 0); - - store(dv, 0, -1); - assert(arr[0] === 0xff); - assert(arr2[0] === -1); - - store(dv, 0, 0x0badbeef); - assert(arr[0] === 0xef); - assert(arr2[0] === -17); - } -} -test8(); diff --git a/implementation-contributed/javascriptcore/stress/dataview-jit-unaligned-accesses.js b/implementation-contributed/javascriptcore/stress/dataview-jit-unaligned-accesses.js deleted file mode 100644 index 70918a3906bf411ac79527a60cbd726ceff9c6b3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-jit-unaligned-accesses.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; - -function assert(b, m = "") { - if (!b) - throw new Error("Bad: " + m); -} - -let getOps = { - getUint8: 1, - getUint16: 2, - getUint32: 4, - getInt8: 1, - getInt16: 2, - getInt32: 4, - getFloat32: 4, - getFloat64: 8, -}; - -let setOps = { - setUint8: 1, - setUint16: 2, - setUint32: 4, - setInt8: 1, - setInt16: 2, - setInt32: 4, - setFloat32: 4, - setFloat64: 8, -}; - -let getFuncs = []; -for (let p of Object.keys(getOps)) { - let endOfCall = getOps[p] === 1 ? ");" : ", true);"; - let str = ` - (function ${p}(dv, index) { - return dv.${p}(index${endOfCall} - }) - `; - - let func = eval(str); - noInline(func); - getFuncs.push(func); -} - -let setFuncs = []; -for (let p of Object.keys(setOps)) { - let endOfCall = setOps[p] === 1 ? ");" : ", true);"; - let str = ` - (function ${p}(dv, index, value) { - dv.${p}(index, value${endOfCall} - }) - `; - - let func = eval(str); - noInline(func); - setFuncs.push(func); -} - -function test() { - const size = 16*1024; - let ab = new ArrayBuffer(size); - let dv = new DataView(ab); - for (let i = 0; i < 100000; ++i) { - let index = (Math.random() * size) >>> 0; - index = Math.max(index - 8, 0); - for (let f of getFuncs) { - f(dv, index); - } - - for (let f of setFuncs) { - f(dv, index, 10); - } - } - -} -test(); diff --git a/implementation-contributed/javascriptcore/stress/dataview-prototype-accessors.js b/implementation-contributed/javascriptcore/stress/dataview-prototype-accessors.js deleted file mode 100644 index a302f4856db1b81fae82428c2fc41801634a153a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-prototype-accessors.js +++ /dev/null @@ -1,24 +0,0 @@ -{ - let buffer = new ArrayBuffer(10); - let view = new DataView(buffer); - - if (view.byteOffset !== 0) - throw "byteoffest should be 0"; - - if (view.byteLength !== 10) - throw "byteLength should be 0" - - if (view.buffer !== buffer) - throw "buffer should be the incomming buffer" - - view = new DataView(buffer, 1, 1) - - if (view.byteOffset !== 1) - throw "byteoffest should be 0"; - - if (view.byteLength !== 1) - throw "byteLength should be 0" - - if (view.buffer !== buffer) - throw "buffer should be the incomming buffer" -} diff --git a/implementation-contributed/javascriptcore/stress/dataview-typedarray-toindex.js b/implementation-contributed/javascriptcore/stress/dataview-typedarray-toindex.js deleted file mode 100644 index 5e1a41bbe13e2645c4bb21b1eddf5c921a5a08b2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/dataview-typedarray-toindex.js +++ /dev/null @@ -1,121 +0,0 @@ -function assert(condition) { - if (!condition) - throw new Error("Bad assertion"); -} - -function shouldThrowRangeError(func) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (!(error instanceof RangeError)) - throw new Error(`bad error: ${String(error)}`); -} - -// ToIndex (value) https://tc39.github.io/ecma262/#sec-toindex -// - Convert undefined to 0. -// - Convert value to Integer, and throws a RangeError if negative. -// - JavaScriptCore also throws a TypeError for Infinity because that would convert tp 2^53 - 1 which is too large for all cases. - -let buffer = new ArrayBuffer(128); -let dataView = new DataView(buffer); -let rangeErrorValues = [-1, -Infinity, Infinity]; -let typedArrays = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array]; - -// ArrayBuffer(length*) https://tc39.github.io/ecma262/#sec-arraybuffer-length -assert((new ArrayBuffer).byteLength === 0); -assert((new ArrayBuffer(undefined)).byteLength === 0); -assert((new ArrayBuffer(-0.9)).byteLength === 0); -assert((new ArrayBuffer(2.5)).byteLength === 2); -for (let badValue of rangeErrorValues) - shouldThrowRangeError(() => { new ArrayBuffer(badValue); }); - -// TypedArray(length*) https://tc39.github.io/ecma262/#sec-typedarray-length -// TypedArray(buffer, byteOffset*, length*) https://tc39.github.io/ecma262/#sec-typedarray-buffer-byteoffset-length -for (let typedArray of typedArrays) { - assert((new typedArray).length === 0); - assert((new typedArray(2.5)).length === 2); - assert((new typedArray(-0.9)).length === 0); - assert((new typedArray(buffer, typedArray.BYTES_PER_ELEMENT + 0.5)).byteOffset === typedArray.BYTES_PER_ELEMENT); - assert((new typedArray(buffer, 0, typedArray.BYTES_PER_ELEMENT + 0.5)).byteLength / typedArray.BYTES_PER_ELEMENT === typedArray.BYTES_PER_ELEMENT); - - for (let badValue of rangeErrorValues) { - shouldThrowRangeError(() => { new typedArray(badValue); }); - shouldThrowRangeError(() => { new typedArray(buffer, badValue); }); - shouldThrowRangeError(() => { new typedArray(buffer, 0, badValue); }); - } -} - -// DataView(buffer, byteOffset*, byteLength*) https://tc39.github.io/ecma262/#sec-dataview-buffer-byteoffset-bytelength -assert((new DataView(buffer)).byteOffset === 0); -assert((new DataView(buffer, undefined)).byteOffset === 0); -assert((new DataView(buffer, 2.5)).byteOffset === 2); -assert((new DataView(buffer, -0.9)).byteOffset === 0); -assert((new DataView(buffer, 0, 4.5)).byteLength === 4); -for (let badValue of rangeErrorValues) { - shouldThrowRangeError(() => { new DataView(buffer, badValue); }); - shouldThrowRangeError(() => { new DataView(buffer, 0, badValue); }); -} - -// GetViewValue(view, index*, ...) https://tc39.github.io/ecma262/#sec-getviewvalue -// SetViewValue(view, index*, ...) https://tc39.github.io/ecma262/#sec-setviewvalue -dataView.setInt8(undefined, 42); -assert(dataView.getInt8(0) === 42); -dataView.setInt16(undefined, 42); -assert(dataView.getInt16(0) === 42); -dataView.setInt32(undefined, 42); -assert(dataView.getInt32(0) === 42); -dataView.setUint8(undefined, 42); -assert(dataView.getUint8(0) === 42); -dataView.setUint16(undefined, 42); -assert(dataView.getUint16(0) === 42); -dataView.setUint32(undefined, 42); -assert(dataView.getUint32(0) === 42); -dataView.setFloat32(undefined, 42); -assert(dataView.getFloat32(0) === 42); -dataView.setFloat64(undefined, 42); -assert(dataView.getFloat64(0) === 42); - -dataView.setInt8(2.5, 42); -assert(dataView.getInt8(2) === 42); -dataView.setInt16(2.5, 42); -assert(dataView.getInt16(2) === 42); -dataView.setInt32(2.5, 42); -assert(dataView.getInt32(2) === 42); -dataView.setUint8(2.5, 42); -assert(dataView.getUint8(2) === 42); -dataView.setUint16(2.5, 42); -assert(dataView.getUint16(2) === 42); -dataView.setUint32(2.5, 42); -assert(dataView.getUint32(2) === 42); -dataView.setFloat32(2.5, 42); -assert(dataView.getFloat32(2) === 42); -dataView.setFloat64(2.5, 42); -assert(dataView.getFloat64(2) === 42); - -for (let badValue of rangeErrorValues) { - shouldThrowRangeError(() => { new DataView(buffer, badValue); }); - shouldThrowRangeError(() => { new DataView(buffer, 0, badValue); }); - shouldThrowRangeError(() => { dataView.getInt8(badValue); }); - shouldThrowRangeError(() => { dataView.getInt16(badValue); }); - shouldThrowRangeError(() => { dataView.getInt32(badValue); }); - shouldThrowRangeError(() => { dataView.getUint8(badValue); }); - shouldThrowRangeError(() => { dataView.getUint16(badValue); }); - shouldThrowRangeError(() => { dataView.getUint32(badValue); }); - shouldThrowRangeError(() => { dataView.getFloat32(badValue); }); - shouldThrowRangeError(() => { dataView.getFloat64(badValue); }); - shouldThrowRangeError(() => { dataView.setInt8(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setInt16(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setInt32(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setUint8(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setUint16(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setUint32(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setFloat32(badValue, 42); }); - shouldThrowRangeError(() => { dataView.setFloat64(badValue, 42); }); -} diff --git a/implementation-contributed/javascriptcore/stress/date-utc-optional.js b/implementation-contributed/javascriptcore/stress/date-utc-optional.js deleted file mode 100644 index f14f7c60c6b620c0b72106d7e4176a49248d1d09..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/date-utc-optional.js +++ /dev/null @@ -1,16 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -for (var i = 0; i < 1e5; ++i) { - shouldBe(Number.isNaN(Date.UTC()), true); - shouldBe(Date.UTC(2018), 1514764800000); - shouldBe(Date.UTC(2018, 1), 1517443200000); - shouldBe(Date.UTC(2018, 1, 2), 1517529600000); - shouldBe(Date.UTC(2018, 1, 2, 3), 1517540400000); - shouldBe(Date.UTC(2018, 1, 2, 3, 4), 1517540640000); - shouldBe(Date.UTC(2018, 1, 2, 3, 4, 5), 1517540645000); - shouldBe(Date.UTC(2018, 1, 2, 3, 4, 5, 6), 1517540645006); - shouldBe(Date.UTC(2018, 1, 2, 3, 4, 5, 6, 7), 1517540645006); -} diff --git a/implementation-contributed/javascriptcore/stress/empty-function.js b/implementation-contributed/javascriptcore/stress/empty-function.js deleted file mode 100644 index 612e5105ea238557aca96b7ee4d4eb88b0d5588c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/empty-function.js +++ /dev/null @@ -1,10 +0,0 @@ -function foo() { } - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo(); - if (result !== void 0) - throw "You broke JSC so hard that even the empty function doesn't work: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/encode-decode-ascii.js b/implementation-contributed/javascriptcore/stress/encode-decode-ascii.js deleted file mode 100644 index 0a5e6989459ad7339a39027528a61bc6f536dd2d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/encode-decode-ascii.js +++ /dev/null @@ -1,11 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -for (var i = 0; i < 256; ++i) { - var ch = String.fromCharCode(i); - shouldBe(decodeURIComponent(encodeURIComponent(ch)), ch); - shouldBe(decodeURI(encodeURI(ch)), ch); - shouldBe(unescape(escape(ch)), ch); -} diff --git a/implementation-contributed/javascriptcore/stress/encode-decode-unicode.js b/implementation-contributed/javascriptcore/stress/encode-decode-unicode.js deleted file mode 100644 index 0f0fc1e9b84c807545d8fc802361134e305f3e61..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/encode-decode-unicode.js +++ /dev/null @@ -1,28 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function isLowSurrogate(code) -{ - return code >= 0xDC00 && code <= 0xDFFF; -} - -function isHighSurrogate(code) -{ - return code >= 0xD800 && code <= 0xDBFF; -} - -function isSurrogate(code) -{ - return isLowSurrogate(code) || isHighSurrogate(code); -} - -for (var i = 256; i < 0xffff; ++i) { - if (isSurrogate(i)) - continue; - var ch = String.fromCharCode(i); - shouldBe(decodeURIComponent(encodeURIComponent(ch)), ch); - shouldBe(decodeURI(encodeURI(ch)), ch); - shouldBe(unescape(escape(ch)), ch); -} diff --git a/implementation-contributed/javascriptcore/stress/encode-decode-uri-component-surrogates.js b/implementation-contributed/javascriptcore/stress/encode-decode-uri-component-surrogates.js deleted file mode 100644 index adb6cbe4541b21a6663b8b2dc03cc5ae279e17ef..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/encode-decode-uri-component-surrogates.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function toHighSurrogate(code) -{ - return (code >> 10) + (0xD800 - (0x10000 >> 10)); -} - -function toLowSurrogate(code) -{ - return (code & ((1 << 10) - 1)) + 0xDC00; -} - -for (var i = 0x10000; i < 0x10ffff; ++i) { - var high = toHighSurrogate(i); - var low = toLowSurrogate(i); - var str = String.fromCharCode(high, low); - shouldBe(decodeURIComponent(encodeURIComponent(str)), str); -} diff --git a/implementation-contributed/javascriptcore/stress/encode-decode-uri-surrogates.js b/implementation-contributed/javascriptcore/stress/encode-decode-uri-surrogates.js deleted file mode 100644 index 6e639bc488d409b9ae56c1bd86a759ed0421d701..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/encode-decode-uri-surrogates.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function toHighSurrogate(code) -{ - return (code >> 10) + (0xD800 - (0x10000 >> 10)); -} - -function toLowSurrogate(code) -{ - return (code & ((1 << 10) - 1)) + 0xDC00; -} - -for (var i = 0x10000; i < 0x10ffff; ++i) { - var high = toHighSurrogate(i); - var low = toLowSurrogate(i); - var str = String.fromCharCode(high, low); - shouldBe(decodeURI(encodeURI(str)), str); -} diff --git a/implementation-contributed/javascriptcore/stress/encode-decode-zero.js b/implementation-contributed/javascriptcore/stress/encode-decode-zero.js deleted file mode 100644 index d17316b591ae11d262874037cb9a2cd5075e54b3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/encode-decode-zero.js +++ /dev/null @@ -1,20 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -shouldBe(encodeURIComponent('\0'), `%00`); -shouldBe(encodeURI('\0'), `%00`); -shouldBe(escape('\0'), `%00`); - -shouldBe(decodeURIComponent('%00'), `\0`); -shouldBe(decodeURI('%00'), `\0`); -shouldBe(unescape('%00'), `\0`); - -shouldBe(encodeURIComponent('%00'), `%2500`); -shouldBe(encodeURI('%00'), `%2500`); -shouldBe(escape('%00'), `%2500`); - -shouldBe(decodeURIComponent('%2500'), `%00`); -shouldBe(decodeURI('%2500'), `%00`); -shouldBe(unescape('%2500'), `%00`); diff --git a/implementation-contributed/javascriptcore/stress/ensure-proper-strict-mode-parsing.js b/implementation-contributed/javascriptcore/stress/ensure-proper-strict-mode-parsing.js deleted file mode 100644 index 954614283c651c743e905e113bc273321b9c6326..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/ensure-proper-strict-mode-parsing.js +++ /dev/null @@ -1,90 +0,0 @@ - -function foo() { - "hello world i'm not use strict."; - function bar() { - return 25; - } - bar(); - "use strict"; - return this; -} -if (foo.call(undefined) !== this) - throw new Error("Bad parsing strict mode."); - -function bar() { - "hello world i'm not use strict."; - function foo() { - return this; - } - "use strict"; - return foo.call(undefined); -} -if (bar.call(undefined) !== this) - throw new Error("Bad parsing strict mode.") - -function baz() { - "foo"; - "bar"; - "baz"; - "foo"; - "bar"; - "baz"; - "foo"; - "bar"; - "baz"; - "use strict"; - return this; -} -if (baz.call(undefined) !== undefined) - throw new Error("Bad parsing strict mode.") - -function jaz() { - "foo"; - `bar`; - "use strict"; - return this; -} -if (jaz.call(undefined) !== this) - throw new Error("Bad parsing strict mode.") - -function vaz() { - "foo"; - "use strict"; - `bar`; - return this; -} -if (vaz.call(undefined) !== undefined) - throw new Error("Bad parsing strict mode.") - -function hello() { - "foo"; - 2 + 2 - "use strict"; - return this; -} -if (hello.call(undefined) !== this) - throw new Error("Bad parsing strict mode.") - -function world() { - "foo"; - let x; - "use strict"; - return this; -} -if (world.call(undefined) !== this) - throw new Error("Bad parsing strict mode.") - -function a() { - "foo"; - world; - "use strict"; - return this; -} -if (a.call(undefined) !== this) - throw new Error("Bad parsing strict mode.") - -if (eval("'foo'; 'use strict'; 'bar';") !== "bar") - throw new Error("Bad parsing strict mode."); - -if (eval("'foo'; 'use strict'; 'bar'; this;") !== this) - throw new Error("Bad parsing strict mode."); diff --git a/implementation-contributed/javascriptcore/stress/equality-type-checking.js b/implementation-contributed/javascriptcore/stress/equality-type-checking.js deleted file mode 100644 index 5c1bf75739a07fa85e50828f005ac4d351c662a3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/equality-type-checking.js +++ /dev/null @@ -1,34 +0,0 @@ -/*** - * There was a bug on 32-bit builds where === with objects would not check the tag - * when determining equality via pointer comparison. - */ - -"use strict"; - -function Foo() {} - -function checkStrictEq(a, b) { - return a === b; -} -noInline(checkStrictEq); - -function checkStrictEqOther(a, b) { - return a === b; -} -noInline(checkStrictEqOther); - -var foo = new Foo(); -var address = addressOf(foo); - -if (address === undefined) - throw "Error: address should not be undefined"; - -if (foo === address || address === foo) - throw "Error: an address should not be equal to it's object"; - -for (var i = 0; i < 10000000; i++) { - if (checkStrictEq(foo, address)) - throw "Error: an address should not be equal to it's object"; - if (checkStrictEqOther(address,foo)) - throw "Error: an address should not be equal to it's object"; -} diff --git a/implementation-contributed/javascriptcore/stress/equals-masquerader.js b/implementation-contributed/javascriptcore/stress/equals-masquerader.js deleted file mode 100644 index 30bc4306878e4beb8dfa8f11b432f060b7fef2c0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/equals-masquerader.js +++ /dev/null @@ -1,131 +0,0 @@ -function equalsNull(o) { - return o == null; -} - -noInline(equalsNull); - -function notEqualsNull(o) { - return o != null; -} - -noInline(notEqualsNull); - -function strictEqualsNull(o) { - return o === null; -} - -noInline(strictEqualsNull); - -function strictNotEqualsNull(o) { - return o !== null; -} - -noInline(strictNotEqualsNull); - -function equalsUndefined(o) { - return o == void 0; -} - -noInline(equalsUndefined); - -function notEqualsUndefined(o) { - return o != void 0; -} - -noInline(notEqualsUndefined); - -function strictEqualsUndefined(o) { - return o === void 0; -} - -noInline(strictEqualsUndefined); - -function strictNotEqualsUndefined(o) { - return o !== void 0; -} - -noInline(strictNotEqualsNull); - -function isFalsey(o) { - return !o; -} - -noInline(isFalsey); - -function test(func, iteration, object, outcome) { - var result = func(object); - if (result != outcome) - throw new Error("Bad result: " + result + " on iteration " + iteration); -} - -for (var i = 0; i < 10000; ++i) { - test(equalsNull, i, null, true); - test(equalsNull, i, undefined, true); - test(equalsNull, i, void 0, true); - test(equalsNull, i, {}, false); - test(equalsNull, i, makeMasquerader(), true); -} - -for (var i = 0; i < 10000; ++i) { - test(notEqualsNull, i, null, false); - test(notEqualsNull, i, undefined, false); - test(notEqualsNull, i, void 0, false); - test(notEqualsNull, i, {}, true); - test(notEqualsNull, i, makeMasquerader(), false); -} - -for (var i = 0; i < 10000; ++i) { - test(strictEqualsNull, i, null, true); - test(strictEqualsNull, i, undefined, false); - test(strictEqualsNull, i, void 0, false); - test(strictEqualsNull, i, {}, false); - test(strictEqualsNull, i, makeMasquerader(), false); -} - -for (var i = 0; i < 10000; ++i) { - test(strictNotEqualsNull, i, null, false); - test(strictNotEqualsNull, i, undefined, true); - test(strictNotEqualsNull, i, void 0, true); - test(strictNotEqualsNull, i, {}, true); - test(strictNotEqualsNull, i, makeMasquerader(), true); -} - -for (var i = 0; i < 10000; ++i) { - test(equalsUndefined, i, null, true); - test(equalsUndefined, i, undefined, true); - test(equalsUndefined, i, void 0, true); - test(equalsUndefined, i, {}, false); - test(equalsUndefined, i, makeMasquerader(), true); -} - -for (var i = 0; i < 10000; ++i) { - test(notEqualsUndefined, i, null, false); - test(notEqualsUndefined, i, undefined, false); - test(notEqualsUndefined, i, void 0, false); - test(notEqualsUndefined, i, {}, true); - test(notEqualsUndefined, i, makeMasquerader(), false); -} - -for (var i = 0; i < 10000; ++i) { - test(strictEqualsUndefined, i, null, false); - test(strictEqualsUndefined, i, undefined, true); - test(strictEqualsUndefined, i, void 0, true); - test(strictEqualsUndefined, i, {}, false); - test(strictEqualsUndefined, i, makeMasquerader(), false); -} - -for (var i = 0; i < 10000; ++i) { - test(strictNotEqualsUndefined, i, null, true); - test(strictNotEqualsUndefined, i, undefined, false); - test(strictNotEqualsUndefined, i, void 0, false); - test(strictNotEqualsUndefined, i, {}, true); - test(strictNotEqualsUndefined, i, makeMasquerader(), true); -} - -for (var i = 0; i < 10000; ++i) { - test(isFalsey, i, null, true); - test(isFalsey, i, undefined, true); - test(isFalsey, i, void 0, true); - test(isFalsey, i, {}, false); - test(isFalsey, i, makeMasquerader(), true); -} diff --git a/implementation-contributed/javascriptcore/stress/error-description-on-symbols-should-not-crash.js b/implementation-contributed/javascriptcore/stress/error-description-on-symbols-should-not-crash.js index d8c85b92ab5525176b66a3df14d98a8bbef729ef..5cfdb301499ebbb1654e872fdc4a54e53251edcb 100644 --- a/implementation-contributed/javascriptcore/stress/error-description-on-symbols-should-not-crash.js +++ b/implementation-contributed/javascriptcore/stress/error-description-on-symbols-should-not-crash.js @@ -1,3 +1,4 @@ +// Reviewed //@ runFTLNoCJIT function shouldEqual(actual, expected) { diff --git a/implementation-contributed/javascriptcore/stress/error-message-for-function-base-not-found.js b/implementation-contributed/javascriptcore/stress/error-message-for-function-base-not-found.js deleted file mode 100644 index 23e7bb4503083bf469d540c8f3d1f6e81a7fc5c5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/error-message-for-function-base-not-found.js +++ /dev/null @@ -1,30 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad"); -} - -{ - let error; - try { - let foo = {}; - foo.bar("/abc\)*/"); - } catch(e) { - error = e; - } - assert(error); - assert(error.message === "undefined is not a function (near '...foo.bar(\"/abc\\)*/\")...')"); -} - -{ - let error; - try { - let blah = {}; - let x, y; - blah("((("); - } catch(e) { - error = e; - } - - // This is less than ideal, but let's be aware if we ever fix it. - assert(error.message === "blah(\"(( is not a function. (In 'blah(\"(((\")', 'blah(\"((' is an instance of Object)"); -} diff --git a/implementation-contributed/javascriptcore/stress/error-messages-for-in-operator-should-not-crash.js b/implementation-contributed/javascriptcore/stress/error-messages-for-in-operator-should-not-crash.js deleted file mode 100644 index 424e6c5fcbec490926556a8167eac7acee9547d3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/error-messages-for-in-operator-should-not-crash.js +++ /dev/null @@ -1,30 +0,0 @@ -let error = null; -try { - eval('let r = "prop" i\\u{006E} 20'); -} catch(e) { - error = e; -} - -if (!error || error.message !== "Unexpected escaped characters in keyword token: 'i\\u{006E}'") - throw new Error("Bad"); - -error = null; -try { - eval('let r = "prop" i\\u006E 20'); -} catch(e) { - error = e; -} - -if (!error || error.message !== "Unexpected escaped characters in keyword token: 'i\\u006E'") - throw new Error("Bad"); - -// This test should not crash. -error = null; -try { - eval('let r = "prop" i\u006E 20'); -} catch(e) { - error = e; -} - -if (!error || error.message !== "20 is not an Object. (evaluating \'\"prop\" in 20\')") - throw new Error("Bad"); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/error-stack-trace-limit.js b/implementation-contributed/javascriptcore/stress/error-stack-trace-limit.js deleted file mode 100644 index b6fb41fb757eae8e7087e5c8c174603ba88596a0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/error-stack-trace-limit.js +++ /dev/null @@ -1,90 +0,0 @@ -function assertEquals(testID, a, b) { - if (a != b) - throw new Error("FAILED test " + testID + " got: " + a); -} - -var desc = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit"); - -assertEquals(100, typeof desc.value, "number"); -assertEquals(200, desc.writable, true); -assertEquals(300, desc.enumerable, true); -assertEquals(400, desc.configurable, true); -assertEquals(500, desc.get, undefined); -assertEquals(600, desc.set, undefined); - -function recurse(x) { - if (x) - recurse(x - 1); - else - throw Error(); -} - -function numberOfFrames(str) { - if (str === undefined || str === "") - return 0; - var lines = str.split(/\r\n|\r|\n/); - // note: Chrome always prints a header line. So, for Chrome, use lines.length - 1. - return lines.length; -} - -var exception = undefined; - -function testLimit(testID, updateLimit, reentryCount, expectedLimit, expectedNumberOfFrames) { - exception = undefined; - updateLimit(); - assertEquals(testID, Error.stackTraceLimit, expectedLimit); - - try { - recurse(reentryCount); - } catch (e) { - exception = e; - } - - assertEquals(testID + 1, exception, "Error"); - if (typeof expectedNumberOfFrames == "undefined") - assertEquals(testID + 2, exception.stack, undefined); - else - assertEquals(testID + 3, numberOfFrames(exception.stack), expectedNumberOfFrames); -} - -testLimit(1000, () => { Error.stackTraceLimit = 0 }, 1000, 0, 0); -// note: Chrome always prints a header line. So, Chrome expects "Error" here. -assertEquals(1100, exception.stack, undefined); - -testLimit(2000, () => { Error.stackTraceLimit = 10 }, 1000, 10, 10); -testLimit(3000, () => { Error.stackTraceLimit = 100 }, 1000, 100, 100); -testLimit(4000, () => { Error.stackTraceLimit = 1000 }, 1000, 1000, 1000); - -// expectedNumberOfFrames includes (1) global + (2) testLimit + (3) 1000 recursion of -// recurse() + (4) recurse() which discovered x == 0 i.e. expectedNumberOfFrames == 1003. -testLimit(5000, () => { Error.stackTraceLimit = 2000 }, 1000, 2000, 1003); - -var value = { }; -testLimit(6000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = { valueOf() { return 5 } }; -testLimit(7000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = [ 1, 2, 3 ]; -testLimit(8000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = "hello"; -testLimit(9000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = Symbol("hello"); -testLimit(10000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = true; -testLimit(11000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = false; -testLimit(12000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -var value = undefined; -testLimit(13000, () => { Error.stackTraceLimit = value }, 1000, value, undefined); - -testLimit(14000, () => { Error.stackTraceLimit = 10 }, 1000, 10, 10); - -testLimit(15000, () => { delete Error.stackTraceLimit; }, 1000, undefined, undefined); - -testLimit(16000, () => { Error.stackTraceLimit = 10 }, 1000, 10, 10); diff --git a/implementation-contributed/javascriptcore/stress/errors-with-simple-names-or-messages-should-not-crash-toString.js b/implementation-contributed/javascriptcore/stress/errors-with-simple-names-or-messages-should-not-crash-toString.js index b0f912bd5bf6db40efb4f9e09ab6269d41f3e7fc..2df8febcf6351c223cf698e89ad932569c38adff 100644 --- a/implementation-contributed/javascriptcore/stress/errors-with-simple-names-or-messages-should-not-crash-toString.js +++ b/implementation-contributed/javascriptcore/stress/errors-with-simple-names-or-messages-should-not-crash-toString.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault // This test should not crash. diff --git a/implementation-contributed/javascriptcore/stress/es6-default-parameters.js b/implementation-contributed/javascriptcore/stress/es6-default-parameters.js deleted file mode 100644 index 160d18559359500dae35907d748e278a7bc6167a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/es6-default-parameters.js +++ /dev/null @@ -1,393 +0,0 @@ -function assert(cond, msg = "") { - if (!cond) - throw new Error(msg); -} -noInline(assert); - -function shouldThrow(func) { - var hadError = false; - try { - func() - } catch (e) { - hadError = true; - } - assert(hadError, "Did not throw"); -} -noInline(shouldThrow); - -function shouldThrowSyntaxError(str) { - var hadError = false; - try { - eval(str); - } catch (e) { - if (e instanceof SyntaxError) - hadError = true; - } - assert(hadError, "Did not throw syntax error"); -} -noInline(shouldThrowSyntaxError); - -function shouldThrowTDZ(func) { - var hasThrown = false; - try { - func(); - } catch(e) { - if (e.name.indexOf("ReferenceError") !== -1) - hasThrown = true; - } - assert(hasThrown); -} -noInline(shouldThrowTDZ); - -function basic(x, y=x) { - assert(y === x, "basics don't work.") -} -basic(20); -basic("hello"); -basic({foo: 20}); -basic(undefined); - -;(function(){ - var scopeVariable = {hello: "world"}; - function basicScope(x = scopeVariable) { - assert(x === scopeVariable); - } - basicScope(); -})(); - -function basicFunctionCaptureInDefault(theArg = 20, y = function() {return theArg}) { - assert(theArg === y(), "y should return x."); - theArg = {}; - assert(theArg === y(), "y should return x."); -} -basicFunctionCaptureInDefault() -basicFunctionCaptureInDefault(undefined) - -function basicCaptured(x = 20, y = x) { - assert(x === y, "y should equal x"); - function mutate() { x = "mutation"; } - mutate() - assert(x !== y, "y should not equal x"); -} -basicCaptured() -basicCaptured(undefined) - -function tricky(globalX = (globalX = "x"), y = (globalX = 20)) { - assert(globalX === 20); - assert(globalX === y); -} -shouldThrow(tricky); - -function strict(x, y = x) { - assert(x === y); -} -strict(20); -strict(undefined); - -function playground(x = "foo", y = "bar") { - return {x, y} -} -assert(playground().x === "foo") -assert(playground(undefined).x === "foo") -assert(playground(undefined, 20).x === "foo") -assert(playground(null).x === null) -assert(playground().y === "bar") -assert(playground(undefined, undefined).y === "bar") -assert(playground("hello", undefined).y === "bar") -assert(playground("bar").x === playground(undefined, undefined).y) -assert(playground(10).x === 10) -assert(playground(undefined, 20).y === 20) -assert(playground(undefined, null).y === null) - -function scoping(f = function() { return local;}) { - shouldThrow(f); - var local = 10; - shouldThrow(f); -} -scoping(); - -function augmentsArguments1(x = 20) { - assert(x === 20); - - arguments[0] = 10; - assert(x === 20); - - x = 15; - assert(x === 15); - assert(arguments[0] === 10); -} -augmentsArguments1(undefined); - -function augmentsArguments2(x = 20) { - assert(x === 20); - - arguments[0] = 10; - assert(x === 20); - assert(arguments[0] === 10); - - x = 15; - assert(x === 15); - assert(arguments[0] === 10); - - function augment() { x = 40 } - augment() - assert(x === 40); - assert(arguments[0] === 10); -} -augmentsArguments2(undefined); - -function augmentsArguments3(x = 10) { - assert(x === 10); - - assert(arguments[0] === undefined); - x = 20; - assert(arguments[0] === undefined); -} -augmentsArguments3(); - -function augmentsArguments4(x) { - "use strict"; - function inner(x = 10) { - assert(x === 10); - - assert(arguments[0] === undefined); - x = 20; - assert(arguments[0] === undefined); - } - inner(x); -} -augmentsArguments4(); -augmentsArguments4(undefined); - -function augmentsArguments5(x) { - "use strict"; - function inner(x = 10) { - assert(x === 20); - - assert(arguments[0] === 20); - x = 20; - assert(arguments[0] === 20); - } - inner(x); -} -augmentsArguments5(20); - -;(function () { - var outer = "outer"; - function foo(a = outer, b = function() { return a; }, c = function(v) { a = v; }) { - var a; - assert(a === "outer"); - a = 20; - assert(a === 20); - assert(b() === "outer"); - c("hello"); - assert(b() === "hello"); - } - - function bar(a = outer, b = function() { return a; }, c = function(v) { a = v; }) { - with({}) { - var a; - assert(a === "outer"); - a = 20; - assert(a === 20); - assert(b() === "outer"); - c("hello"); - assert(b() === "hello"); - } - } - - function baz(x = function() { return y; }, y = "y") { - assert(x() === "y"); - assert(x() === y); - assert(y === y); - } - - function jaz(x = function() { return y; }, y = "y") { - return x; - } - - function taz(x = 10, y = eval("x + 1")) { - assert(y === 11); - } - - for (var i = 0; i < 1000; i++) { - foo(); - bar(); - baz(); - assert(jaz(undefined, 20)() === 20); - assert(jaz(undefined, undefined)() === "y"); - assert(jaz(undefined, {x: "x"})().x === "x"); - taz(); - } -})(); - -// Length - -function named1(a){}; -function named2(a=1){}; -function named3(a,b){}; -function named4(a,b=1){}; -function named5(a=1,b=1){}; -function named6(a,b,c){}; -function named7(a=1,b,c){}; -function named8(a,b=1,c){}; -function named9(a,b,c=1){}; -function named10(a,...b){}; -function named11(a=1,...b){}; -function named12(a=10,b,c=20,...r){}; - -assert( named1.length === 1 ); -assert( named2.length === 0 ); -assert( named3.length === 2 ); -assert( named4.length === 1 ); -assert( named5.length === 0 ); -assert( named6.length === 3 ); -assert( named7.length === 0 ); -assert( named8.length === 1 ); -assert( named9.length === 2 ); -assert( named10.length === 1 ); -assert( named11.length === 0 ); -assert( named12.length === 0 ); - -assert( (function(a){}).length === 1 ); -assert( (function(a=1){}).length === 0 ); -assert( (function(a,b){}).length === 2 ); -assert( (function(a,b=1){}).length === 1 ); -assert( (function(a=1,b=1){}).length === 0 ); -assert( (function(a,b,c){}).length === 3 ); -assert( (function(a=1,b,c){}).length === 0 ); -assert( (function(a,b=1,c){}).length === 1 ); -assert( (function(a,b,c=1){}).length === 2 ); -assert( (function(a,...b){}).length === 1 ); -assert( (function(a=1,...b){}).length === 0 ); -assert( (function(a=10,b,c=20,...r){}).length === 0 ); - -assert( (function*(a){}).length === 1 ); -assert( (function*(a=1){}).length === 0 ); -assert( (function*(a,b){}).length === 2 ); -assert( (function*(a,b=1){}).length === 1 ); -assert( (function*(a=1,b=1){}).length === 0 ); -assert( (function*(a,b,c){}).length === 3 ); -assert( (function*(a=1,b,c){}).length === 0 ); -assert( (function*(a,b=1,c){}).length === 1 ); -assert( (function*(a,b,c=1){}).length === 2 ); -assert( (function*(a,...b){}).length === 1 ); -assert( (function*(a=1,...b){}).length === 0 ); -assert( (function*(a=10,b,c=20,...r){}).length === 0 ); - -assert( ((a)=>{}).length === 1 ); -assert( ((a=1)=>{}).length === 0 ); -assert( ((a,b)=>{}).length === 2 ); -assert( ((a,b=1)=>{}).length === 1 ); -assert( ((a=1,b=1)=>{}).length === 0 ); -assert( ((a,b,c)=>{}).length === 3 ); -assert( ((a=1,b,c)=>{}).length === 0 ); -assert( ((a,b=1,c)=>{}).length === 1 ); -assert( ((a,b,c=1)=>{}).length === 2 ); -assert( ((a,...b)=>{}).length === 1 ); -assert( ((a=1,...b)=>{}).length === 0 ); -assert( ((a=10,b,c=20,...r)=>{}).length === 0 ); - -assert( Object.getOwnPropertyDescriptor({set setter(a){}}, "setter").set.length === 1 ); -assert( Object.getOwnPropertyDescriptor({set setter(a=1){}}, "setter").set.length === 0 ); - -assert( ({method(a){}}).method.length === 1 ); -assert( ({method(a=1){}}).method.length === 0 ); -assert( ({method(a,b){}}).method.length === 2 ); -assert( ({method(a,b=1){}}).method.length === 1 ); -assert( ({method(a=1,b=1){}}).method.length === 0 ); -assert( ({method(a,b,c){}}).method.length === 3 ); -assert( ({method(a=1,b,c){}}).method.length === 0 ); -assert( ({method(a,b=1,c){}}).method.length === 1 ); -assert( ({method(a,b,c=1){}}).method.length === 2 ); -assert( ({method(a,...b){}}).method.length === 1 ); -assert( ({method(a=1,...b){}}).method.length === 0 ); -assert( ({method(a=10,b,c=20,...r){}}).method.length === 0 ); - -assert( ({*method(a){}}).method.length === 1 ); -assert( ({*method(a=1){}}).method.length === 0 ); -assert( ({*method(a,b){}}).method.length === 2 ); -assert( ({*method(a,b=1){}}).method.length === 1 ); -assert( ({*method(a=1,b=1){}}).method.length === 0 ); -assert( ({*method(a,b,c){}}).method.length === 3 ); -assert( ({*method(a=1,b,c){}}).method.length === 0 ); -assert( ({*method(a,b=1,c){}}).method.length === 1 ); -assert( ({*method(a,b,c=1){}}).method.length === 2 ); -assert( ({*method(a,...b){}}).method.length === 1 ); -assert( ({*method(a=1,...b){}}).method.length === 0 ); -assert( ({*method(a=10,b,c=20,...r){}}).method.length === 0 ); - -assert( (class {static method(a){}}).method.length === 1 ); -assert( (class {static method(a=1){}}).method.length === 0 ); -assert( (class {static method(a,b){}}).method.length === 2 ); -assert( (class {static method(a,b=1){}}).method.length === 1 ); -assert( (class {static method(a=1,b=1){}}).method.length === 0 ); -assert( (class {static method(a,b,c){}}).method.length === 3 ); -assert( (class {static method(a=1,b,c){}}).method.length === 0 ); -assert( (class {static method(a,b=1,c){}}).method.length === 1 ); -assert( (class {static method(a,b,c=1){}}).method.length === 2 ); -assert( (class {static method(a,...b){}}).method.length === 1 ); -assert( (class {static method(a=1,...b){}}).method.length === 0 ); -assert( (class {static method(a=10,b,c=20,...r){}}).method.length === 0 ); - -// TDZ errors. -;(function() { - function basicError(x = y, y) { } - function basicError2(x = x) { } - function baz(z = {p: x}, x = z) {} - function bar(x = {p: [x]}) {} - function jaz(x = eval("y"), y) { } - function kaz(x = eval(";(function() { return y})();"), y) { } - for (var i = 0; i < 1000; i++) { - shouldThrowTDZ(basicError); - shouldThrowTDZ(basicError2); - shouldThrowTDZ(baz); - shouldThrowTDZ(bar); - shouldThrowTDZ(jaz); - shouldThrowTDZ(kaz); - } -})(); - - -// Test proper variable binding. -;(function() { - function foo(a = function() { return b; }, {b}) { - assert(a() === 34); - assert(b === 34); - b = 50; - assert(a() === 50); - assert(b === 50); - } - function bar(a = function(x) { b = x; }, {b}) { - assert(b === 34); - a(50); - assert(b === 50); - } - function baz(f1 = function(x) { b = x; }, f2 = function() { return b; }, {b}) { - var b; - assert(b === 34); - assert(f2() === 34); - f1(50); - assert(b === 34); - assert(f2() === 50); - } - noInline(foo); - noInline(bar); - noInline(baz); - for (let i = 0; i < 1000; i++) { - foo(undefined, {b: 34}); - bar(undefined, {b: 34}); - baz(undefined, undefined, {b: 34}); - } -})(); - - -// Syntax errors. -shouldThrowSyntaxError("function b(a = 20, a = 40) {}"); -shouldThrowSyntaxError("function b(aaaaa = 20,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v, aaaaa = 40) {}"); -shouldThrowSyntaxError("function b(a = 20, {a}) {}"); -shouldThrowSyntaxError("function b(a = 20, a) {}"); -shouldThrowSyntaxError("function b(a, a = 20) {}"); -shouldThrowSyntaxError("function b(a, a, b = 20) {}"); -shouldThrowSyntaxError("function b({a, a} = 20) {}"); -shouldThrowSyntaxError("function b({a, a} = 20) {}"); diff --git a/implementation-contributed/javascriptcore/stress/es6-for-of-loop-exception.js b/implementation-contributed/javascriptcore/stress/es6-for-of-loop-exception.js deleted file mode 100644 index 093b756fbb7d7af8c362ae1a071e104c8f12f63e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/es6-for-of-loop-exception.js +++ /dev/null @@ -1,29 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -function shouldThrowInvalidConstAssignment(f) { - var threw = false; - try { - f(); - } catch(e) { - //print(e); - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); -} -noInline(shouldThrowInvalidConstAssignment); - -function baz(){} -noInline(baz); - -function foo() { - for (const item of [1,2,3]) { - item = 20; - } -} -for (var i = 0; i < 1000; i++) - shouldThrowInvalidConstAssignment(foo); diff --git a/implementation-contributed/javascriptcore/stress/escape-object-in-diamond-then-exit.js b/implementation-contributed/javascriptcore/stress/escape-object-in-diamond-then-exit.js deleted file mode 100644 index fbb903dd9159ba6cb3e298a35d00577fea60b1bd..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/escape-object-in-diamond-then-exit.js +++ /dev/null @@ -1,40 +0,0 @@ -var global = null; - -function foo(p, q) { - var o = {f:42}; - if (p) - global = o; - var tmp = q + 1; - return o.f + tmp; -} - -noInline(foo); - -var lastObject = null; - -function validateEscape(when) { - if (global === lastObject) - throw "Error: bad value in global " + when + ", identical to lastObject."; - if (global === null || !(typeof global == "object")) - throw "Error: bad value in global " + when + ": it's not an object."; - if (global.f != 42) - throw "Error: bad value in global " + when + ": f isn't 42, it's: " + global.f; - lastObject = global; - global = null; -} - -for (var i = 0; i < 10000; ++i) { - var escape = !!(i & 1); - var result = foo(escape, 42); - if (result != 42 + 42 + 1) - throw "Error: bad result: " + result; - if (escape) - validateEscape("in loop"); - else if (global !== null) - throw "Error: bad value in global: " + global; -} - -var result = foo(true, 2147483647); -if (result != 42 + 2147483647 + 1) - throw "Error: bad result at end: " + result; -validateEscape("at end"); diff --git a/implementation-contributed/javascriptcore/stress/escape-unescape-surrogates.js b/implementation-contributed/javascriptcore/stress/escape-unescape-surrogates.js deleted file mode 100644 index 928db94493b7b25597d02a92239f3b3825f2ebcb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/escape-unescape-surrogates.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function toHighSurrogate(code) -{ - return (code >> 10) + (0xD800 - (0x10000 >> 10)); -} - -function toLowSurrogate(code) -{ - return (code & ((1 << 10) - 1)) + 0xDC00; -} - -for (var i = 0x10000; i < 0x10ffff; ++i) { - var high = toHighSurrogate(i); - var low = toLowSurrogate(i); - var str = String.fromCharCode(high, low); - shouldBe(unescape(escape(str)), str); -} diff --git a/implementation-contributed/javascriptcore/stress/eval-and-super.js b/implementation-contributed/javascriptcore/stress/eval-and-super.js deleted file mode 100644 index e09da931af7e21eba1e0e50177f5b2d141639829..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-and-super.js +++ /dev/null @@ -1,37 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - - - -class Hello { - m() - { - return eval("super()"); - } - - n() - { - return (0, eval)("super()"); - } -}; - -var hello = new Hello(); -shouldThrow(() => hello.m(), `SyntaxError: super is not valid in this context.`); -shouldThrow(() => hello.n(), `SyntaxError: super is not valid in this context.`); diff --git a/implementation-contributed/javascriptcore/stress/eval-cached.js b/implementation-contributed/javascriptcore/stress/eval-cached.js deleted file mode 100644 index 6393d4ba20769233b3fc2992c91dc0bde9a71c23..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-cached.js +++ /dev/null @@ -1,79 +0,0 @@ -(function () { - "use strict"; - - function verify() { - for (var i = 0; i < counter; ++i) { - if (results[i] != i) - throw "strict mode verify() failed for item " + i + "." - } - } - - let results = [ ]; - let counter = 0; - - let x = counter++; - results.push(eval("x")); - - { - let x = counter++; - results.push(eval("x")); - } - - try { - throw counter++; - } catch (x) { - results.push(eval("x")); - } - - (() => { - var x = counter++; - results.push(eval("x")); - })(); - - (function (x) { - results.push(eval("x")); - })(counter++); - - verify(); -})(); - -(function () { - function verify() { - for (var i = 0; i < counter; ++i) { - if (results[i] != i) - throw "non-strict mode verify() failed for item " + i + "." - } - } - - let results = [ ]; - let counter = 0; - - let x = counter++; - results.push(eval("x")); - - { - let x = counter++; - results.push(eval("x")); - } - - try { - throw counter++; - } catch (x) { - results.push(eval("x")); - } - - (() => { - var x = counter++; - results.push(eval("x")); - })(); - - (function (x) { - results.push(eval("x")); - })(counter++); - - with ({ x : counter++ }) { - results.push(eval("x")); - } - - verify(); -})(); diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-scoping-reassign.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-block-scoping-reassign.js deleted file mode 100644 index 4da1c78de81b2688047849eb8e7a662116c0bff7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-scoping-reassign.js +++ /dev/null @@ -1,18 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -{ - function f() { - return 'first declaration'; - } -} - -eval( - '{ function f() { return "second declaration"; } }' -); - -assert(typeof f, 'function', ' #1'); -assert(f(), 'second declaration', ' #2'); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-remove.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-remove.js deleted file mode 100644 index 03aa6b0163a4db58ceffdd4e1796d0ceed4e2332..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-remove.js +++ /dev/null @@ -1,17 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -function foo() { - function boo() { - return typeof a; - } - eval("{ assert(boo(), 'undefined'); delete a; assert(boo(), 'undefined'); function a() { return 'text-a'; } assert(boo(), 'function');} "); -} -foo(); - -for (let i = 0; i < 10000; i++) { - foo(); -} \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-var-and-remove.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-var-and-remove.js deleted file mode 100644 index 443a3951397ce38962a95355381a73aeb5200a60..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-var-and-remove.js +++ /dev/null @@ -1,84 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -function foo() { - { - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - eval('eval(" { function f() { }; } ")'); - assert(typeof f, "function"); - } - assert(typeof f, "function", "#1"); - delete f; - assertThrow(() => f, "ReferenceError: Can't find variable: f", "#1"); -} - -for (var i = 0; i < 10000; i++) { - foo(); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function boo() { - { - assert(typeof l, "undefined", "#5"); - eval('{ var l = 15; eval(" { function l() { }; } ")}'); - assert(typeof l, "function", "#3"); - } - assert(typeof l, 'function', "#4"); - delete l; - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -for (var i = 0; i < 10000; i++){ - boo(); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function joo() { - { - assert(typeof h, "undefined" ); - eval('eval(" if (true){ function h() { }; } ")'); - assert(typeof h, "function" ); - } - assert(typeof h, "function", "#10"); - delete h; - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -for (var i = 0; i < 10000; i++){ - joo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -function koo() { - { - var k = 20; - eval('var k = 15; eval(" if (true){ function k() { }; } ")'); - assert(typeof k, "function" ); - } - assert(typeof k, "function", "#12"); - delete k; - assert(typeof k, "function", "#12"); -} - -for (var i = 0; i < 10000; i++){ - koo(); - assertThrow(() => k, "ReferenceError: Can't find variable: k"); -} diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-var-sinthesize.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-var-sinthesize.js deleted file mode 100644 index 2a92ce8d6e79d43e0fda5524b7dfbf0f1f6bb8ba..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-block-with-var-sinthesize.js +++ /dev/null @@ -1,90 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -function foo() { - { - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - eval('eval(" { function f() { }; } ")'); - assert(typeof f, "function"); - } - assert(typeof f, "function"); -} - -for (var i = 0; i < 10000; i++){ - foo(); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function boo() { - { - assertThrow(() => l, "ReferenceError: Can't find variable: l"); - eval('{ var l = 15; eval(" { function l() { }; } ")}'); - assert(typeof l, "function", "#3"); - } - assert(typeof l, 'function', "#4"); -} - -for (var i = 0; i < 10000; i++){ - boo(); - assertThrow(() => l, "ReferenceError: Can't find variable: l"); -} - -function hoo() { - { - assertThrow(() => h, "ReferenceError: Can't find variable: h"); - eval('eval(" if (false){ function h() { }; } ");'); - assert(h, undefined, ''); - } - assert(h, undefined, ''); -} - -for (var i = 0; i < 10000; i++){ - hoo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -function joo() { - { - assertThrow(() => h, "ReferenceError: Can't find variable: h"); - eval('eval(" if (true){ function h() { }; } ")'); - assert(typeof h, "function" ); - } - assert(typeof h, "function", "#10"); -} - -for (var i = 0; i < 10000; i++){ - joo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -function koo() { - { - var k = 20; - eval('var k = 15; eval(" if (true){ function k() { }; } ")'); - assert(typeof k, "function" ); - } - assert(typeof k, "function", "#12"); -} - -for (var i = 0; i < 10000; i++){ - koo(); - assertThrow(() => k, "ReferenceError: Can't find variable: k"); -} diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-block-scope-and-bind-to-top-eval-scope.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-block-scope-and-bind-to-top-eval-scope.js deleted file mode 100644 index f97ee3ab5d6a504853becf445a6754e8fe66e270..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-block-scope-and-bind-to-top-eval-scope.js +++ /dev/null @@ -1,14 +0,0 @@ -var init1; - -(function() { - eval( - '\ - init1 = f;\ - {\ - function f() {}\ - }{ function f() { } }' - ); -}()); - -if (init1 !== undefined) - throw new Error('Wrong binding of the function.'); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-eval-within-block-with-let.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-eval-within-block-with-let.js deleted file mode 100644 index a378fb9710ac20925704fe9171af716649e754db..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-eval-within-block-with-let.js +++ /dev/null @@ -1,61 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -} - -function foo() { - { - let f = 20; - eval(" { function f() { value = 20; }; }"); - assert(f, 20); - } - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - - -for (var i = 0; i < 10000; i++){ - foo(); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function boo() { - { - var l = 20; - eval(" { function l() { value = 20; }; }"); - assert(typeof l, 'function'); - } - assert(typeof l, 'function'); -} - -for (var i = 0; i < 10000; i++){ - boo(); - assertThrow(() => l, "ReferenceError: Can't find variable: l"); -} - -function goo() { - { - let g = 20; - eval(" for(var j=0; j < 10000; j++){ function g() { }; } "); - assert(typeof g, 'number'); - } - assertThrow(() => g, "ReferenceError: Can't find variable: g"); -} - -goo(); -assertThrow(() => g, "ReferenceError: Can't find variable: g"); diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-eval-within-with-scope.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-eval-within-with-scope.js deleted file mode 100644 index b47b27811be407c581cc44ecc48d95cab986f708..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-eval-within-with-scope.js +++ /dev/null @@ -1,111 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -function foo(withScope, firstAssertValue, secondAssertValue) { - with (withScope) { - eval("{ function f() { } }"); - assert(typeof f, firstAssertValue, f); - } - assert(typeof f, secondAssertValue); -} - -function boo(withScope, firstAssertValue, secondAssertValue) { - with (withScope) { - eval(" for(var i = 0; i < 10000; i++ ){ if (i > 0) { function f() { }; } } "); - assert(typeof f, firstAssertValue); - } - assert(typeof f, secondAssertValue); -} -{ - for (var i = 0; i < 10000; i++) { - foo({}, 'function', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - - boo({}, 'function', 'function'); -} -{ - for (var i = 0; i < 10000; i++) { - foo({f : 10}, 'number', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - boo({f : 10}, 'number', 'function'); - - for (var i = 0; i < 10000; i++) { - foo({f : {}}, 'object', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - boo({f : {}}, 'object', 'function'); -} -{ - for (var i = 0; i < 10000; i++) { - foo(12345, 'function', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - boo(12345, 'function', 'function'); - - for (var i = 0; i < 10000; i++) { - let val = 12345; - val.f = 10; - foo(val, 'function', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - let x = 12345; - x.f = 10; - boo(x, 'function', 'function'); -} -{ - - for (var i = 0; i < 10000; i++) { - foo('12345', 'function', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - boo('12345', 'function', 'function'); - - for (var i = 0; i < 10000; i++) { - let val = '12345'; - val.f = 10; - foo(val, 'function', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - let z = '12345'; - z.f = 10; - boo(z, 'function', 'function'); -} -{ - for (var i = 0; i < 10000; i++) { - foo(function () {}, 'function', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - - boo(function () {}, 'function', 'function'); - - for (var i = 0; i < 10000; i++) { - let val2 = function () {}; - val2.f = 10; - foo(val2, 'number', 'function'); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); - } - - let val3 = function () {}; - val3.f = 10; - boo(val3, 'number', 'function'); -} \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-frozen-global.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-frozen-global.js deleted file mode 100644 index 961a4481140e3986f0c153b358f08d15713a7dda..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-frozen-global.js +++ /dev/null @@ -1,48 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, errorText) { - var error = null; - try { - cb(); - } catch (e) { - error = e.toString(); - } - if (error === null) - throw new Error('Expected error'); - if (error !== errorText) - throw new Error('Expected error ' + errorText + ' but was ' + error); -}; - -{ - eval('{ function foo() {} }'); - assert(this.hasOwnProperty("foo"), true); - assert(typeof foo, 'function'); -} - -Object.defineProperty(this, "globalNonWritable", { - value: false, - configurable: true, - writable: false, - enumerable: true -}); -eval("{function globalNonWritable() { return 1; }}"); -var globalNonWritableDescriptor - = Object.getOwnPropertyDescriptor(this, "globalNonWritable"); -assert(globalNonWritableDescriptor.enumerable, true); - -Object.freeze(this); -{ - var error = false; - try { - eval('{ function boo() {} }'); - } catch (e) { - error = true; - } - assert(this.hasOwnProperty("boo"), false); - assert(error, false); - assertThrow(() => boo, 'ReferenceError: Can\'t find variable: boo'); -} diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-global-of-eval.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-global-of-eval.js deleted file mode 100644 index fe193461b6819b89f672c0971e710f7671587b6b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-global-of-eval.js +++ /dev/null @@ -1,66 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -} - - -function bar() { - { - let f = 20; - let value = 10; - eval("function f() { value = 20; }; f();"); - } -} - - -for (var i = 0; i < 10000; i++){ - assertThrow(() => bar(), "SyntaxError: Can't create duplicate variable in eval: 'f'"); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function baz() { - { - var l = 20; - var value = 10; - eval("function l() { value = 20; }; l();"); - assert(typeof l, 'function'); - assert(value, 20); - } - assert(typeof l, 'function'); -} - -for (var i = 0; i < 10000; i++){ - baz(); - assertThrow(() => l, "ReferenceError: Can't find variable: l"); -} - -function foobar() { - { - let g = 20; - let value = 10; - eval("function l() { value = 30; }; l();"); - assert(typeof g, 'number'); - assert(value, 30); - } - assertThrow(() => g, "ReferenceError: Can't find variable: g"); -} - -foobar(); -assertThrow(() => g, "ReferenceError: Can't find variable: g"); - diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-global.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-global.js deleted file mode 100644 index 36e1f48cb8701dd7aa61565eddd49c23f63bf003..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-global.js +++ /dev/null @@ -1,37 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -var foo = 'foo'; -var success = false; -// FIXME: According to spec foo should have value 'undefined', -// but possible it would be changed https://github.com/tc39/ecma262/issues/753 -eval("success = foo === 'foo'; { function foo(){} }"); - -assert(success, true); - -success = false; - -let boo = 'boo'; -eval("success = boo === 'boo'; { function boo(){} } success = success && boo === 'boo';"); - -success = success && boo === 'boo'; - -assert(success, true); diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-if.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-in-if.js deleted file mode 100644 index 42b515a10b5afd58b03a93069f2d4075216570f2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-in-if.js +++ /dev/null @@ -1,20 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected-' + expected + ' but was' + result + ':' + message ); - } -}; - -var updated; - -(function() { - eval( - '{\ - function f() {\ - return "first declaration";\ - }\ - }if (true) function f() { return "second declaration"; } else function _f() {}updated = f;' - ); -}()); - -assert(typeof updated, 'function', "#1"); -assert(updated(), 'second declaration', "#2"); diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-with-let-const-class.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-with-let-const-class.js deleted file mode 100644 index e53faa61ebc2fec6f0df8b5b4e45ea1af260881b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-with-let-const-class.js +++ /dev/null @@ -1,160 +0,0 @@ -var assert = function (result, expected) { - if (result !== expected) { - throw new Error('Error in assert. Expected-' + expected + ' but was ' + result); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -var assertNotThrow = function (cb) { - try { - cb(); - } catch (e) { - throw new Error('Error is not expected. But was throw error: "' + e + '"'); - } -} - -var result = 0; - -eval("'use strict'; let y = 5; function f() { result = y;} f()"); -assert(result, 5); - -eval("'use strict'; const x = 10; function f() { result = x;} f()"); -assert(result, 10); - -eval("'use strict'; class A { constructor() { this.id = 'foo'; } }; function foo() { return (new A).id; }; result = foo();"); -assert(result, 'foo'); - - -eval("let y = 15; function f() { result = y;} f()"); -assert(result, 15); - -eval("const x = 20; function f() { result = x;} f()"); -assert(result, 20); - -eval("class B { constructor() { this.id = 'boo'; } }; function foo() { return (new B).id; }; result = foo();"); -assert(result, 'boo'); - -function foo () { - var res = 0; - - eval("'use strict'; let y = 5; function f() { res = y;} f()"); - assert(res, 5); - - eval("'use strict'; const x = 10; function f() { result = x;} f()"); - assert(res, 10); - - eval("'use strict'; class C { constructor() { this.id = 'foo'; } }; function foo() { return (new C).id; }; result = foo();"); - assert(res, 'foo'); - - - eval("let y = 15; function f() { result = y;} f()"); - assert(res, 15); - - eval("const x = 20; function f() { result = x;} f()"); - assert(res, 20); - - eval("class D { constructor() { this.id = 'boo'; } }; function foo() { return (new D).id; }; result = foo();"); - assert(res, 'boo'); -} - -foo(); - -function boo () { - { - let f; - eval("'use strict'; let y = 5; function f() { result = y;} f()"); - assert(typeof f, 'undefined'); - - eval("'use strict'; const x = 10; function f() { result = x;} f()"); - assert(typeof f, 'undefined'); - - eval("'use strict'; class E { constructor() { this.id = 'foo'; } }; function f() { return (new E).id; }; result = f();"); - assert(typeof f, 'undefined'); - } -} - -function bar () { - { - let f; - eval("let y = 15; function f() { result = y;} f()"); - } -} - -function foobar () { - { - let f; - eval("const x = 20; function f() { result = x; } f()"); - } -} - -function baz() { - { - let f; - eval("var x = 20; function f() { result = x; } f()"); - } -} - -function barWithTry () { - var error; - { - let f; - try { - eval("let y = 15; function f() { result = y;} f()"); - } catch (err) { - error = err; - } - assert(typeof f, 'undefined'); - } - assert(error.toString(), 'SyntaxError: Can\'t create duplicate variable in eval: \'f\''); -} - -function foobarWithTry () { - var error; - { - let f; - try { - eval("const x = 20; function f() { result = x; } f()"); - } catch (err) { - error = err; - } - assert(typeof f, 'undefined'); - } - assert(error.toString(), 'SyntaxError: Can\'t create duplicate variable in eval: \'f\''); -} - -function bazWithTry () { - var error; - { - let f; - try { - eval("var x = 20; function f() { result = x; } f()"); - } catch (err) { - error = err; - } - assert(typeof f, 'undefined'); - } - assert(error.toString(), 'SyntaxError: Can\'t create duplicate variable in eval: \'f\''); -} - -assertNotThrow(() => boo()); -assertThrow(() => bar(), 'SyntaxError: Can\'t create duplicate variable in eval: \'f\''); -assertThrow(() => foobar(), 'SyntaxError: Can\'t create duplicate variable in eval: \'f\''); -assertThrow(() => baz(), 'SyntaxError: Can\'t create duplicate variable in eval: \'f\''); - -barWithTry(); -foobarWithTry(); -bazWithTry(); diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-within-eval-with-reassign-to-var.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-within-eval-with-reassign-to-var.js deleted file mode 100644 index dfd892f7d9d98cdf43a39c82b43a60679961a11f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-within-eval-with-reassign-to-var.js +++ /dev/null @@ -1,137 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -function foo() { - { - var f = 20; - eval('var f = 15; eval(" { function f() { }; } ")'); - assert(typeof f, "function"); - } - assert(typeof f, "function", "#1"); -} - -for (var i = 0; i < 10000; i++) { - foo(); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function boo() { - { - var l = 20; - eval('{ let l = 15; eval(" { function l() { }; } ")}'); - assert(l, 20, "#3"); - } - assert(typeof l, 'number', "#4"); -} - -for (var i = 0; i < 10000; i++){ - boo(); - assertThrow(() => l, "ReferenceError: Can't find variable: l"); -} - -function foobar() { - eval("if (false) { function _bar() { } }"); - assert(_bar, undefined); -} - -for (var i = 0; i < 10000; i++){ - foobar(); - assertThrow(() => _bar, "ReferenceError: Can't find variable: _bar"); -} - -// Fixme: https://bugs.webkit.org/show_bug.cgi?id=167837 -// Current test does not work because it should raise exception -// that f could not be redeclared -/* -function goo() { - { - var error = false; - try { - let f = 20; - eval('var f = 15; eval(" { function f() { }; } ")'); - } catch (e) { - error = e instanceof SyntaxError; - } - assert(error, true, "syntax error should be raisen"); - } - assert(typeof f, "undefined", "#6"); -} - -for (var i = 0; i < 10000; i++) { - goo(); - assert(typeof f, "undefined", "#7"); -} -*/ - -function hoo() { - { - let h = 20; - eval('var h = 15; eval(" if (false){ function h() { }; } ");'); - assert(h, 15); - } - assert(typeof h, "undefined"); -} - -for (var i = 0; i < 10000; i++) { - hoo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -function joo() { - { - var h = 20; - eval('var h = 15; eval(" if (false){ function h() { }; } ")'); - assert(typeof h, "number"); - } - assert(typeof h, "number", "#10"); -} - -for (var i = 0; i < 10000; i++){ - joo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -function koo() { - { - var k = 20; - eval('var k = 15; eval(" if (true){ function k() { }; } ")'); - assert(typeof k, "function" ); - } - assert(typeof k, "function", "#12"); -} - -for (var i = 0; i < 10000; i++){ - koo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} - -function loo() { - let h = 20; - eval("var h; if (false) { function h() { } }"); - return h; -} - -assert(loo(), 20); - -for (var i = 0; i < 10000; i++) { - loo(); - assertThrow(() => h, "ReferenceError: Can't find variable: h"); -} diff --git a/implementation-contributed/javascriptcore/stress/eval-func-decl-within-eval-without-reassign-to-let.js b/implementation-contributed/javascriptcore/stress/eval-func-decl-within-eval-without-reassign-to-let.js deleted file mode 100644 index 74dfd8f12e61b048c2cae227f2ca61d9c96d6085..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-func-decl-within-eval-without-reassign-to-let.js +++ /dev/null @@ -1,60 +0,0 @@ -var assert = function (result, expected, message) { - if (result !== expected) { - throw new Error('Error in assert. Expected "' + expected + '" but was "' + result + '":' + message ); - } -}; - -var assertThrow = function (cb, expected) { - let error = null; - try { - cb(); - } catch(e) { - error = e; - } - if (error === null) { - throw new Error('Error is expected. Expected "' + expected + '" but error was not thrown."'); - } - if (error.toString() !== expected) { - throw new Error('Error is expected. Expected "' + expected + '" but error was "' + error + '"'); - } -}; - -function foo() { - { - let f = 20; - eval('eval(" { function f() { }; } ")'); - assert(f, 20); - } - assert(typeof f, "undefined", "#1"); -} - -for (var i = 0; i < 10000; i++){ - foo(); - assertThrow(() => f, "ReferenceError: Can't find variable: f"); -} - -function boo() { - { - var l = 20; - eval('eval(" { function l() { }; } ")'); - assert(typeof l, 'function', "#3"); - } - assert(typeof l, 'function', "#4"); -} - -for (var i = 0; i < 10000; i++){ - boo(); - assertThrow(() => l, "ReferenceError: Can't find variable: l"); -} - -function goo() { - { - let g = 20; - eval('eval(" for(var j=0; j < 10000; j++){ function g() { }; } ")'); - assert(typeof g, 'number', "#6"); - } - assertThrow(() => g, "ReferenceError: Can't find variable: g"); -} - -goo(); -assertThrow(() => g, "ReferenceError: Can't find variable: g"); diff --git a/implementation-contributed/javascriptcore/stress/eval-in-arrow-function.js b/implementation-contributed/javascriptcore/stress/eval-in-arrow-function.js deleted file mode 100644 index 4047286737da97906c05c5d88ebd3239f5bd32a4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-in-arrow-function.js +++ /dev/null @@ -1,20 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)}`); -} - -var global = this; -for (var i = 0; i < 100; ++i) { - (() => { - // |this| should reference to the global one. - shouldBe(eval("this"), global); - })(); -} - -for (var i = 0; i < 100; ++i) { - var THIS = {}; - (function test() { - // |this| should reference to the function's one. - shouldBe(eval("this"), THIS); - }).call(THIS); -} diff --git a/implementation-contributed/javascriptcore/stress/eval-script-contains-null-character.js b/implementation-contributed/javascriptcore/stress/eval-script-contains-null-character.js deleted file mode 100644 index 419215da49c27dbb4cbe6d9f7da05efd5d4b3e6a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-script-contains-null-character.js +++ /dev/null @@ -1,13 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error("bad value: " + actual); -} - -function test() { - shouldBe(eval("(`\0`)"), "\0"); - shouldBe(eval("('\0')"), "\0"); -} -noInline(test); - -for (var i = 0; i < 10000; ++i) - test(); diff --git a/implementation-contributed/javascriptcore/stress/eval-that-is-not-eval.js b/implementation-contributed/javascriptcore/stress/eval-that-is-not-eval.js deleted file mode 100644 index c6c3064488c71ccbbc75a60298a3af46f339a788..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/eval-that-is-not-eval.js +++ /dev/null @@ -1,14 +0,0 @@ -function foo(a) { - return eval(a); -} - -noInline(foo); - -eval = function(a) { return a + 1; } - -for (var i = 0; i < 10000; ++i) { - var result = foo(42); - if (result != 43) - throw "Error: bad result: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/exception-dfg-inlined-frame-not-strict-equal.js b/implementation-contributed/javascriptcore/stress/exception-dfg-inlined-frame-not-strict-equal.js deleted file mode 100644 index 415b15d3f82fc3f2ee5afb31258c121a6eba9daa..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-dfg-inlined-frame-not-strict-equal.js +++ /dev/null @@ -1,39 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} -noInline(assert); -var o = { - valueOf: function() { return {}; }, - toString: function() { return {}; } -}; -function read() { - return "read"; -} -noInline(read); - -function bar(a, b) { - return a == b; -} - -function foo(a, b) { - var result = null; - var value = read(); - try { - result = bar(a, b); - } catch(e) { - assert("" + value === "read"); - } - return value; -} -noInline(foo); - -for (var i = 0; i < 1000; i++) { - foo(10, 20); - foo({}, {}); - foo(10, 10.0); - foo("hello", "hello"); - foo(null, undefined); - foo(false, 0); -} -foo(o, "hello"); diff --git a/implementation-contributed/javascriptcore/stress/exception-dfg-not-strict-equal.js b/implementation-contributed/javascriptcore/stress/exception-dfg-not-strict-equal.js deleted file mode 100644 index e4dd480dbaae12c49078f7abf1ed20b3d86d5970..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-dfg-not-strict-equal.js +++ /dev/null @@ -1,71 +0,0 @@ -;(function () { -function foo(a, b) { - var result = null; - try { - result = a == b; - } catch(e) { - } -} -noInline(foo); - -for (var i = 0; i < 1000; i++) { - foo(10, 20); - foo({}, {}); - foo(10, 10.0); - foo("hello", "hello"); - foo(null, undefined); - foo(false, 0); -} - -var o = { - valueOf: function() { return {}; }, - toString: function() { return {}; } -}; -foo(o, "hello"); -})(); - - -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} -noInline(assert); - - -;(function() { - -var _shouldDoSomethingInFinally = false; -function shouldDoSomethingInFinally() { return _shouldDoSomethingInFinally; } -noInline(shouldDoSomethingInFinally); - -function foo(a, b) { - var result = null; - try { - result = a == b; - } finally { - if (shouldDoSomethingInFinally()) - assert(result === null); - } - return result; -} -noInline(foo); - -for (var i = 0; i < 1000; i++) { - foo(10, 20); - foo({}, {}); - foo(10, 10.0); - foo("hello", "hello"); - foo(null, undefined); - foo(false, 0); -} - -var o = { - valueOf: function() { return {}; }, - toString: function() { return {}; } -}; -try { - _shouldDoSomethingInFinally = true; - foo(o, "hello"); -} catch(e) {} - -})(); diff --git a/implementation-contributed/javascriptcore/stress/exception-dfg-operation-read-value.js b/implementation-contributed/javascriptcore/stress/exception-dfg-operation-read-value.js deleted file mode 100644 index f3835a06daa99d713a5baa72a01d7cfcefb1d1e3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-dfg-operation-read-value.js +++ /dev/null @@ -1,35 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} -noInline(assert); -var o = { - valueOf: function() { return {}; }, - toString: function() { return {}; } -}; -function read() { - return "read"; -} -noInline(read); - -function foo(a, b) { - var result = null; - var value = read(); - try { - result = a == b; - } catch(e) { - assert("" + value === "read"); - } - return value; -} -noInline(foo); - -for (var i = 0; i < 1000; i++) { - foo(10, 20); - foo({}, {}); - foo(10, 10.0); - foo("hello", "hello"); - foo(null, undefined); - foo(false, 0); -} -foo(o, "hello"); diff --git a/implementation-contributed/javascriptcore/stress/exception-dfg-throw-from-catch-block.js b/implementation-contributed/javascriptcore/stress/exception-dfg-throw-from-catch-block.js deleted file mode 100644 index 9464545b4f1e08a8f53a402279149f450ed25ed3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-dfg-throw-from-catch-block.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -function assert(cond, m) { - if (!cond) - throw new Error("broke assertion: '" + m + "'"); -} -noInline(assert); - -function baz(b) { - if (b) - throw new Error("Baz"); -} - -function bar(b) { - var exception = null; - try { - baz(b); - } catch(e) { - exception = e; - baz(b); - } finally { - if (b) - assert(exception); - } -} - -function foo(b) { - var exception = null; - try { - bar(b); - } catch(e) { - exception = e; - } - if (b) - assert(exception); -} - -const NUM_LOOPS = 1000; -for (var i = 0; i < NUM_LOOPS; i++) { - foo(i === NUM_LOOPS - 1); -} diff --git a/implementation-contributed/javascriptcore/stress/exception-effect-strcat.js b/implementation-contributed/javascriptcore/stress/exception-effect-strcat.js deleted file mode 100644 index 92772b9cf0adceb4160523ddc7be15e85a5b7f41..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-effect-strcat.js +++ /dev/null @@ -1,42 +0,0 @@ -function foo(a, b) { - return a + b; -} - -noInline(foo); - -var bStr = "b"; -for (var i = 0; i < 30; ++i) - bStr = bStr + bStr; - -var effects = 0; -var b = {toString: function() { effects++; return bStr; }}; - -for (var i = 0; i < 10000; ++i) { - effects = 0; - var result = foo("a", b); - if (result.length != "a".length + bStr.length) - throw "Error: bad result in loop: " + result; - if (effects != 1) - throw "Error: bad number of effects: " + effects; -} - -// Create a large string. -var a = "a"; -for (var i = 0; i < 30; ++i) - a = a + a; - -effects = 0; -var result = null; -var didThrow = false; -try { - result = foo(a, b); -} catch (e) { - didThrow = true; -} - -if (!didThrow) - throw "Error: did not throw."; -if (result !== null) - throw "Error: did set result to something: " + result; -if (effects != 1) - throw "Error: bad number of effects at end: " + effects; diff --git a/implementation-contributed/javascriptcore/stress/exception-in-strcat-string-overflow.js b/implementation-contributed/javascriptcore/stress/exception-in-strcat-string-overflow.js deleted file mode 100644 index 26c48fc08b335d166c9e62f36070d58c39bc0268..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-in-strcat-string-overflow.js +++ /dev/null @@ -1,37 +0,0 @@ -function foo(a, b) { - return a + "x" + b; -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - var b; - var expected; - if (i & 1) { - b = 42; - expected = "ax42"; - } else { - b = "b"; - expected = "axb"; - } - var result = foo("a", b); - if (result != expected) - throw "Error: bad result: " + result; -} - -var longStr = "l"; -for (var i = 0; i < 30; ++i) - longStr = longStr + longStr; - -var result = null; -var didThrow = false; -try { - result = foo(longStr, longStr); -} catch (e) { - didThrow = true; -} - -if (!didThrow) - throw "Error: did not throw"; -if (result !== null) - throw "Error: did set result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/exception-in-strcat.js b/implementation-contributed/javascriptcore/stress/exception-in-strcat.js deleted file mode 100644 index 3306c4d464e00210bb62bc80fd4ad88ec28a5d79..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-in-strcat.js +++ /dev/null @@ -1,24 +0,0 @@ -function foo(a, b) { - return a + "x" + b; -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - var result = foo({toString: function() { return "a"; }}, 42); - if (result != "ax42") - throw "Error: bad result: " + result; -} - -var result = null; -var didThrow = false; -try { - result = foo({toString: function() { throw "error"; }}, 42); -} catch (e) { - didThrow = true; -} - -if (!didThrow) - throw "Error: did not throw"; -if (result !== null) - throw "Error: did set result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early-in-object-methods.js b/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early-in-object-methods.js index f7cc01d04d65b804f2c79ea80f960811513184ca..6b30981944064c079eddc4505983a306ca753aed 100644 --- a/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early-in-object-methods.js +++ b/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early-in-object-methods.js @@ -1,4 +1,4 @@ - +// Reviewed var propertyKey = { toString() { throw new Error("propertyKey.toString is called."); diff --git a/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early.js b/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early.js deleted file mode 100644 index ad153355b965ecfce4315f627a189284e2bcd8d9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exception-in-to-property-key-should-be-handled-early.js +++ /dev/null @@ -1,139 +0,0 @@ - -var propertyKey = { - toString() { - throw new Error("propertyKey.toString is called."); - } -}; - -function shouldThrow(func, message) { - var error = null; - try { - func(); - } catch (e) { - error = e; - } - if (!error) - throw new Error("not thrown."); - if (String(error) !== message) - throw new Error("bad error: " + String(error)); -} - -// GetByVal. -(function () { - var called = null; - var toStringCalled = false; - var property = { - toString() { - toStringCalled = true; - return "value"; - } - }; - var object = { - get value() { - }, - set value(val) { - } - }; - Object.defineProperty(object, '', { - get: function () { - called = "getter for '' is called."; - } - }); - - function test(object, property) { - object[property]; - } - noInline(test); - - shouldThrow(function () { test(object, propertyKey); }, "Error: propertyKey.toString is called."); - if (called) - throw new Error(called); - toStringCalled = false; - shouldThrow(function () { test(null, propertyKey); }, "TypeError: null is not an object (evaluating 'object[property]')"); - if (toStringCalled) - throw new Error("toString is called."); -}()); - -// GetByVal DFG. -(function () { - var called = null; - var toStringCalled = false; - var property = { - toString() { - toStringCalled = true; - return "value"; - } - }; - var object = { - get ""() { - called = "getter for '' is called."; - }, - set ""(val) { - called = "setter for '' is called."; - }, - - get value() { - }, - set value(val) { - } - }; - - function test(object, property) { - object[property]; - } - noInline(test); - - for (var i = 0; i < 10000; ++i) - test(object, property); - - shouldThrow(function () { test(object, propertyKey); }, "Error: propertyKey.toString is called."); - if (called) - throw new Error(called); - toStringCalled = false; - shouldThrow(function () { test(null, propertyKey); }, "TypeError: null is not an object (evaluating 'object[property]')"); - if (toStringCalled) - throw new Error("toString is called."); -}()); - - -// GetByValString. -(function () { - var called; - var toStringCalled = false; - var property = { - toString() { - toStringCalled = true; - return "value"; - } - }; - function test(array, length, property) { - var result = 0; - for (var i = 0; i < length; ++i) - result += array[property]; - return result; - } - noInline(test); - - Object.defineProperty(String.prototype, "", { - get: function () { - called = "getter for '' is called."; - } - }); - - var array = [1, 2, 3]; - for (var i = 0; i < 100000; ++i) - test(array, array.length, 0); - - var array = [1, false, 3]; - for (var i = 0; i < 100000; ++i) - test(array, array.length, 1); - - test("hello", "hello".length, 2); - shouldThrow(function () { test("hello", "hello".length, propertyKey); }, "Error: propertyKey.toString is called."); - if (called) - throw new Error(called); - toStringCalled = false; - shouldThrow(function () { test(null, 20, propertyKey); }, "TypeError: null is not an object (evaluating 'array[property]')"); - if (toStringCalled) - throw new Error("toString is called."); -}()); diff --git a/implementation-contributed/javascriptcore/stress/exit-after-int32-to-double.js b/implementation-contributed/javascriptcore/stress/exit-after-int32-to-double.js deleted file mode 100644 index 580c5a9b72a8db3c00ce804c45c8fbc9506a9976..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-after-int32-to-double.js +++ /dev/null @@ -1,15 +0,0 @@ -function foo(x, o) { - return o.f + x; -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo(42.5, {f:5}); - if (result != 47.5) - throw "Error: bad result: " + result; -} - -var result = foo("42", {f:5}); -if (result != "542") - throw "Error: bad result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/exit-after-int52-to-double.js b/implementation-contributed/javascriptcore/stress/exit-after-int52-to-double.js deleted file mode 100644 index 06bab3b1dac15f68d23a47229fbbb71a6c6fa987..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-after-int52-to-double.js +++ /dev/null @@ -1,16 +0,0 @@ -function foo(a, b, c) { - return a.f + b.f + c.f; -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo({f:2000000000}, {f:2000000000}, {f:0.5}); - if (result != 4000000000.5) - throw "Error: bad result: " + result; -} - -var result = foo({f:2000000000}, {f:2000000000}, {f:"42"}); -if (result != "400000000042") - throw "Error: bad result: " + result; - diff --git a/implementation-contributed/javascriptcore/stress/exit-after-int52-to-value.js b/implementation-contributed/javascriptcore/stress/exit-after-int52-to-value.js deleted file mode 100644 index 92ed1f85350250618066fbab293994a422fe9056..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-after-int52-to-value.js +++ /dev/null @@ -1,25 +0,0 @@ -function foo(a, b, c) { - c.f.f = a.f + b.f; -} - -noInline(foo); - -var counter = 0; -function makeWeirdObject() { - var result = {}; - result["blah" + (counter++)] = 42; - return result; -} - -for (var i = 0; i < 100000; ++i) { - var o = makeWeirdObject(); - foo({f:2000000000}, {f:2000000000}, {f:o}); - if (o.f != 4000000000) - throw "Error: bad result: " + result; -} - -var thingy; -Number.prototype.__defineSetter__("f", function(value) { thingy = value; }); -foo({f:2000000000}, {f:2000000000}, {f:42}); -if (thingy != 4000000000) - throw "Error: bad result: " + thingy; diff --git a/implementation-contributed/javascriptcore/stress/exit-after-llvm-folds-large-int-constant.js b/implementation-contributed/javascriptcore/stress/exit-after-llvm-folds-large-int-constant.js deleted file mode 100644 index 48d35fe5bd30a049d6691083d3a9ca1bc31401a7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-after-llvm-folds-large-int-constant.js +++ /dev/null @@ -1,18 +0,0 @@ -function foo(o, io) { - var i = io.f; - if (i != 92160) - o.g = 42; - return o.f.f + i; -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo({f:{f:42}}, {f:92160}); - if (result != 92202) - throw "Error: bad result: " + result; -} - -var result = foo({f:{g:20, f:21}}, {f:92160}); -if (result != 92181) - throw "Error: bad result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/exit-from-ftl-when-caller-passed-extra-args-then-use-function-dot-arguments.js b/implementation-contributed/javascriptcore/stress/exit-from-ftl-when-caller-passed-extra-args-then-use-function-dot-arguments.js deleted file mode 100644 index d0682ab3bc14916f21aa236b814b189e3fa8ac2b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-from-ftl-when-caller-passed-extra-args-then-use-function-dot-arguments.js +++ /dev/null @@ -1,37 +0,0 @@ -function foo(a, b) { - var result = a + b; - bar(); - return result; -} - -var capturedArgs; -function bar() { - capturedArgs = foo.arguments; -} - -noInline(foo); -noInline(bar); - -function arraycmp(a, b) { - if (a.length != b.length) - return false; - for (var i = 0; i < a.length; ++i) { - if (a[i] != b[i]) - return false; - } - return true; -} - -for (var i = 0; i < 10000; ++i) { - var result = foo(1, 2, 3, 4, 5, 6); - if (result != 3) - throw "Error: bad result in loop: " + result; - if (!arraycmp(capturedArgs, [1, 2, 3, 4, 5, 6])) - throw "Error: bad captured arguments in loop: " + capturedArgs; -} - -var result = foo(2000000000, 2000000000, 3, 4, 5, 6); -if (result != 4000000000) - throw "Error: bad result at end: " + result; -if (!arraycmp(capturedArgs, [2000000000, 2000000000, 3, 4, 5, 6])) - throw "Error: bad captured arguments at end: " + Array.prototype.join.apply(capturedArgs, ","); diff --git a/implementation-contributed/javascriptcore/stress/exit-from-ftl-with-arity-check-fail.js b/implementation-contributed/javascriptcore/stress/exit-from-ftl-with-arity-check-fail.js deleted file mode 100644 index 6be3b210a01e0056e7a6d4ecc119fef7cedd29ef..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-from-ftl-with-arity-check-fail.js +++ /dev/null @@ -1,18 +0,0 @@ -function foo(o, a, b, c, d, e, f, g, h, i, j) { - return o.f; -} - -function bar(o) { - return foo(o); -} - -noInline(foo); -noInline(bar); - -for (var i = 0; i < 100000; ++i) - bar({f:42}); - -var result = bar({g:24, f:43}); -if (result != 43) - throw "Error: bad result: " + result; - diff --git a/implementation-contributed/javascriptcore/stress/exit-from-getter.js b/implementation-contributed/javascriptcore/stress/exit-from-getter.js deleted file mode 100644 index 11830b8ca2d673fe497843a92cd25c8bf048c6cc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-from-getter.js +++ /dev/null @@ -1,23 +0,0 @@ -(function() { - var o = {_f:42}; - o.__defineGetter__("f", function() { return this._f * 100; }); - var result = 0; - var n = 50000; - function foo(o) { - return o.f + 11; - } - noInline(foo); - for (var i = 0; i < n; ++i) { - result += foo(o); - } - if (result != n * (42 * 100 + 11)) - throw "Error: bad result: " + result; - o._f = 1000000000; - result = 0; - for (var i = 0; i < n; ++i) { - result += foo(o); - } - if (result != n * (1000000000 * 100 + 11)) - throw "Error: bad result (2): " + result; -})(); - diff --git a/implementation-contributed/javascriptcore/stress/exit-from-setter.js b/implementation-contributed/javascriptcore/stress/exit-from-setter.js deleted file mode 100644 index fc84c6b74e8485bd488348f7669c871c7f0defad..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-from-setter.js +++ /dev/null @@ -1,23 +0,0 @@ -(function() { - var o = {_f:42}; - o.__defineSetter__("f", function(value) { this._f = value * 100; }); - var n = 50000; - function foo(o_, v_) { - var o = o_.f; - var v = v_.f; - o.f = v; - o.f = v + 1; - } - noInline(foo); - for (var i = 0; i < n; ++i) { - foo({f:o}, {f:11}); - } - if (o._f != (11 + 1) * 100) - throw "Error: bad o._f: " + o._f; - for (var i = 0; i < n; ++i) { - foo({f:o}, {f:1000000000}); - } - if (o._f != 100 * (1000000000 + 1)) - throw "Error: bad o._f (2): " + o._f; -})(); - diff --git a/implementation-contributed/javascriptcore/stress/exit-then-eval.js b/implementation-contributed/javascriptcore/stress/exit-then-eval.js deleted file mode 100644 index df3dacc517eec1dc0cd1155d7aebf4e4644af7c7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/exit-then-eval.js +++ /dev/null @@ -1,17 +0,0 @@ -function foo(a, b, string) -{ - var x = a + b; - return eval(string); -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo(1, 2, "x + 1"); - if (result != 1 + 2 + 1) - throw "Error: bad result in loop: " + result; -} - -var result = foo(2000000000, 2000000000, "x - 1"); -if (result != 2000000000 + 2000000000 - 1) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-exit-not-int52.js b/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-exit-not-int52.js deleted file mode 100644 index cc25bbf35d426626aed2982e844876b1037babff..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-exit-not-int52.js +++ /dev/null @@ -1,19 +0,0 @@ -var array = new Float64Array(1); -array[0] = 42; - -function foo() { - return fiatInt52(array[0]) + 1; -} - -noInline(foo); - -for (var i = 0; i < 1000000; ++i) { - var result = foo(); - if (result != 43) - throw "Error: bad result: " + result; -} - -array[0] = 5.5; -var result = foo(); -if (result != 6.5) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-fail-to-fold.js b/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-fail-to-fold.js deleted file mode 100644 index b6e5277929f5df2ad0e0819f8b98f941768b8ce2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-fail-to-fold.js +++ /dev/null @@ -1,11 +0,0 @@ -function foo() { - return fiatInt52(Math.sqrt(2)) + 1; -} - -noInline(foo); - -for (var i = 0; i < 1000000; ++i) { - var result = foo(); - if (result != Math.sqrt(2) + 1) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-fold.js b/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-fold.js deleted file mode 100644 index d2259a1047ba266c3b34db479e201969acf6114f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52-then-fold.js +++ /dev/null @@ -1,11 +0,0 @@ -function foo() { - return fiatInt52(Math.fround(42)) + 1; -} - -noInline(foo); - -for (var i = 0; i < 1000000; ++i) { - var result = foo(); - if (result != 42 + 1) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52.js b/implementation-contributed/javascriptcore/stress/fiat-double-to-int52.js deleted file mode 100644 index 0697b60568a1e8ee90fbc4fe2ddb1c3896ed7be6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fiat-double-to-int52.js +++ /dev/null @@ -1,14 +0,0 @@ -var array = new Float64Array(1); -array[0] = 42; - -function foo() { - return fiatInt52(array[0]) + 1; -} - -noInline(foo); - -for (var i = 0; i < 1000000; ++i) { - var result = foo(); - if (result != 43) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/fiat-int32-to-int52.js b/implementation-contributed/javascriptcore/stress/fiat-int32-to-int52.js deleted file mode 100644 index 3e3ef8ac4752df375cb95e03f3807a8ec913cf40..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fiat-int32-to-int52.js +++ /dev/null @@ -1,13 +0,0 @@ -function foo(o) { - return fiatInt52(o.f) + 1; -} - -noInline(foo); - -var o = {f:42}; - -for (var i = 0; i < 1000000; ++i) { - var result = foo(o); - if (result != 43) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/fiat-value-to-int52-double-path.js b/implementation-contributed/javascriptcore/stress/fiat-value-to-int52-double-path.js deleted file mode 100644 index 235c5676a0984c36ac918694349de9b793feb031..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fiat-value-to-int52-double-path.js +++ /dev/null @@ -1,19 +0,0 @@ -var array = new Float64Array(1); -array[0] = 42; - -function foo() { - return fiatInt52(bar()) + 1; -} - -function bar() { - return array[0]; -} - -noInline(foo); -noInline(bar); - -for (var i = 0; i < 1000000; ++i) { - var result = foo(); - if (result != 43) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/finally-for-in.js b/implementation-contributed/javascriptcore/stress/finally-for-in.js deleted file mode 100644 index 82ffcb47bc3300df42e2d7ef3cada3c5f68e757a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/finally-for-in.js +++ /dev/null @@ -1,38 +0,0 @@ -function repeat(count, thunk) { - let result = ""; - for (let i = 0; i < count; i++) - result += thunk(i); - return result; -} - -function createSimple(outerDepth, innerDepth, returnDepth) { - return Function( - ` - return (function(arg) { - ${repeat(outerDepth, (i) => `for (let a${i} in arg) ` + "{\n" )} - try { - ${repeat(innerDepth, (i) => `for (let b${i} in arg) ` + "{\n" )} - return {}; - ${repeat(innerDepth, () => "}")} - } - finally { return a${returnDepth}} - ${repeat(outerDepth, () => "}")} - }) - ` - )(); -} - -function test(result, argument, ...args) { - let f = createSimple(...args); - - let r = f(argument); - if (r !== result) { - throw new Error(r); - } -} - - -test("0", [1,2], 1, 1, 0); -test("0", [1,2], 2, 1, 0); -test("0", [1,2], 2, 4, 1); -test("0", [1,2], 1, 0, 0); diff --git a/implementation-contributed/javascriptcore/stress/flatten-oversize-dictionary-object.js b/implementation-contributed/javascriptcore/stress/flatten-oversize-dictionary-object.js deleted file mode 100644 index d912b2f9024e2027891f5992808258c399529ce1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/flatten-oversize-dictionary-object.js +++ /dev/null @@ -1,37 +0,0 @@ -var foo = function(o) { - return o.baa; -}; - -noInline(foo); - -(function() { - var letters = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]; - var properties = []; - var o = {}; - for (var i = 0; i < letters.length; ++i) { - for (var j = 0; j < letters.length; ++j) { - for (var k = 0; k < letters.length; ++k) { - var property = letters[i] + letters[j] + letters[k]; - o[property] = i; - } - } - } - - var keys = Object.keys(o); - keys.sort(); - for (var i = keys.length - 1; i >= keys.length - 8000; i--) { - delete o[keys[i]]; - } - - var sum = 0; - var iVal = letters.indexOf("b"); - var niters = 1000; - for (var i = 0; i < niters; ++i) { - sum += foo(o); - } - - if (sum != iVal * niters) - throw new Error("incorrect result: " + sum); - - fullGC(); -})(); diff --git a/implementation-contributed/javascriptcore/stress/flattening-prototype-remove-butterfly.js b/implementation-contributed/javascriptcore/stress/flattening-prototype-remove-butterfly.js deleted file mode 100644 index 47f6310d6da5c7d2e5d5518a611485e6f815324c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/flattening-prototype-remove-butterfly.js +++ /dev/null @@ -1,23 +0,0 @@ -// Create an object with inline capacity 1. -let obj = { foo: 1 }; - -// Make it into a dictionary. -delete obj.foo; - -// Get us to allocate out of line capacity. -obj.foo = 1; -obj.bar = 2; - -// Delete the inline property. -delete obj.foo; - -let o = Object.create(obj); - -function foo() { - return o.toString(); -} -noInline(foo); - -// Flatten into an empty butterfly. -for (let i = 0; i < 10000; i++) - foo(); diff --git a/implementation-contributed/javascriptcore/stress/function-body-to-string-before-parameter-syntax-check.js b/implementation-contributed/javascriptcore/stress/function-body-to-string-before-parameter-syntax-check.js deleted file mode 100644 index 7203b3cc2f4e1c69c59f75e1df10eaf6e9b77aa1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-body-to-string-before-parameter-syntax-check.js +++ /dev/null @@ -1,60 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -shouldThrow(() => { - Function("@", { toString() { throw 42; } }) -}, `42`); - -var counter = 0; -class Parameter { - constructor(index) - { - this.index = index; - } - - toString() { - shouldBe(this.index, counter); - counter++; - return `x${this.index}`; - } -}; - -class Body { - constructor(index) - { - this.index = index; - } - - toString() { - shouldBe(this.index, counter); - counter++; - return `42`; - } -}; - -var parameters = []; -for (var i = 0; i < 50; ++i) { - parameters.push(new Parameter(parameters.length)); - var args = parameters.slice(); - args.push(new Body(args.length)); - counter = 0; - Function.apply(this, args); - shouldBe(counter, args.length); -} diff --git a/implementation-contributed/javascriptcore/stress/function-caller-async-arrow-function-body.js b/implementation-contributed/javascriptcore/stress/function-caller-async-arrow-function-body.js index fcaae9650e98a5252adf058475be733eb254cfff..0c1dd90e60e9ea6ef56f07da0a4cf57d6f49c802 100644 --- a/implementation-contributed/javascriptcore/stress/function-caller-async-arrow-function-body.js +++ b/implementation-contributed/javascriptcore/stress/function-caller-async-arrow-function-body.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault (function thingy() { diff --git a/implementation-contributed/javascriptcore/stress/function-caller-async-function-body.js b/implementation-contributed/javascriptcore/stress/function-caller-async-function-body.js index 9e3273c7ab2f073aefbea54a16e624e616f42596..8cee86946f9a99d840d25332ff988088bb3a2353 100644 --- a/implementation-contributed/javascriptcore/stress/function-caller-async-function-body.js +++ b/implementation-contributed/javascriptcore/stress/function-caller-async-function-body.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault (function thingy() { diff --git a/implementation-contributed/javascriptcore/stress/function-caller-async-generator-body.js b/implementation-contributed/javascriptcore/stress/function-caller-async-generator-body.js index 6801a2d3cc2dc4b76c022fd62a682f0fc582309e..1ee3cdee0e6fd0e02eed2909d508fbb02f485665 100644 --- a/implementation-contributed/javascriptcore/stress/function-caller-async-generator-body.js +++ b/implementation-contributed/javascriptcore/stress/function-caller-async-generator-body.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault (function thingy() { diff --git a/implementation-contributed/javascriptcore/stress/function-caller-generator-body.js b/implementation-contributed/javascriptcore/stress/function-caller-generator-body.js index 8b9d10febfc2cc81d707eeec1c047ef4b2cc3f45..1e6538227fc8d6daf9954d54af87adeb4d1a4cc8 100644 --- a/implementation-contributed/javascriptcore/stress/function-caller-generator-body.js +++ b/implementation-contributed/javascriptcore/stress/function-caller-generator-body.js @@ -1,3 +1,8 @@ +// Reviewed +/** +#### ch, d8, jsshell, node +Error: did not throw error + */ //@ runDefault (function thingy() { diff --git a/implementation-contributed/javascriptcore/stress/function-caller-generator-method-body.js b/implementation-contributed/javascriptcore/stress/function-caller-generator-method-body.js index 1d837ee77283355b62838ddb6800da0e62c0cdf7..aff7576690233f9896612504e6b6e7f1087a6fad 100644 --- a/implementation-contributed/javascriptcore/stress/function-caller-generator-method-body.js +++ b/implementation-contributed/javascriptcore/stress/function-caller-generator-method-body.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault (function thingy() { diff --git a/implementation-contributed/javascriptcore/stress/function-configurable-properties.js b/implementation-contributed/javascriptcore/stress/function-configurable-properties.js deleted file mode 100644 index 1a10ca1588cf13f26239a4e55092cacaa87a5f74..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-configurable-properties.js +++ /dev/null @@ -1,79 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error("Failed assertion: actual " + actual + " should be " + expected); -} -function shouldNotBe(actual, expected) { - if (actual === expected) - throw new Error("Failed assertion: actual " + actual + " should not be " + expected); -} - -function readX(f) { - return f.x; -} -noInline(readX); - -function readY(f) { - return f.y; -} -noInline(readY); - -var lazyPropNames = [ "name", "length" ]; - -function test(propName, foo) { - foo.x = 20; - for (var i = 0; i < 1000; i++) - shouldBe(readX(foo), 20); - - // Reify the lazy property. - var propValue = foo[propName]; - - // Verify that we can still access the property after the reification of foo.name. - for (var i = 0; i < 1000; i++) - shouldBe(readX(foo), 20); - - foo.y = 25; - for (var i = 0; i < 1000; i++) - shouldBe(readY(foo), 25); - - // Verify that the property has the configurable attribute. - var desc = Object.getOwnPropertyDescriptor(foo, propName); - shouldBe(desc.configurable, true); - shouldBe(desc.writable, false); - shouldBe(desc.enumerable, false); - shouldBe(desc.value, propValue); - - shouldBe(eval("foo[propName] = 5, foo[propName]"), propValue); - shouldBe(eval("foo." + propName + " = 5, foo." + propName), propValue); - for (var prop in foo) - shouldNotBe(prop, propName); - - Object.defineProperty(foo, propName, { - value: propValue, - writable: true, - enumerable: true, - configurable: true - }); - - shouldBe(eval("foo[propName] = 5, foo[propName]"), 5); - shouldBe(eval("foo." + propName + " = 25, foo." + propName), 25); - var found = false; - for (var prop in foo) { - if (prop === propName) { - found = true; - break; - } - } - shouldBe(found, true); - - shouldBe(eval("delete foo." + propName), true); - - delete foo.y; - shouldBe(foo.y, undefined); -} - -function runTest() { - for (var i = 0; i < lazyPropNames.length; i++) - test(lazyPropNames[i], new Function("")); -} - -runTest(); diff --git a/implementation-contributed/javascriptcore/stress/function-constructor-reading-from-global-lexical-environment.js b/implementation-contributed/javascriptcore/stress/function-constructor-reading-from-global-lexical-environment.js deleted file mode 100644 index 8650900dcc857adedbcf0878829c657c9254db89..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-constructor-reading-from-global-lexical-environment.js +++ /dev/null @@ -1,133 +0,0 @@ -function assert(b, m) { - if (!b) - throw new Error(m); -} - -function test(f, iters = 1000) { - noInline(f); - for (let i = 0; i < iters; i++) - f(i); -} - -const globalConst = {}; -class GlobalClass { } -let globalLet = {}; -let f = new Function("", "return globalConst;"); -test(function() { - assert(f() === globalConst); -}); - -f = new Function("", "return GlobalClass;"); -test(function() { - let ctor = f(); - assert(ctor === GlobalClass); - assert((new GlobalClass) instanceof GlobalClass); -}); - - -f = new Function("", "return globalLet;"); -test(function() { - assert(f() === globalLet); -}); - -f = new Function("prop", "x", "globalLet[prop] = x;"); -test(function(i) { - f(i, i); - assert(globalLet[i] === i); -}); - -f = new Function("prop", "x", "globalConst[prop] = x;"); -test(function(i) { - f(i, i); - assert(globalConst[i] === i); -}); - -f = new Function("", "globalConst = 25"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Attempted to assign to readonly property.") - } - assert(threw); -}); - -f = new Function("", "globalConst = 25"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Attempted to assign to readonly property.") - } - assert(threw); -}); - -f = new Function("", "constTDZ = 25"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "ReferenceError: Cannot access uninitialized variable.") - } - assert(threw); -}); - -f = new Function("", "constTDZ;"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "ReferenceError: Cannot access uninitialized variable.") - } - assert(threw); -}); - -f = new Function("", "letTDZ;"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "ReferenceError: Cannot access uninitialized variable.") - } - assert(threw); -}); - -f = new Function("", "letTDZ = 20;"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "ReferenceError: Cannot access uninitialized variable.") - } - assert(threw); -}); - -f = new Function("", "ClassTDZ"); -test(function() { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "ReferenceError: Cannot access uninitialized variable.") - } - assert(threw); -}); - - -const constTDZ = 25; -let letTDZ = 25; -class ClassTDZ { } - diff --git a/implementation-contributed/javascriptcore/stress/function-constructor-semantics.js b/implementation-contributed/javascriptcore/stress/function-constructor-semantics.js deleted file mode 100644 index 8b35be471f870d7048e13fc59c5c95352c2feb97..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-constructor-semantics.js +++ /dev/null @@ -1,64 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad"); -} - -function hasSyntaxError(f) { - let threw = false; - try { - f(); - } catch(e) { - threw = e instanceof SyntaxError; - } - return threw; -} - -let functions = [ - Function, - (function*foo(){}).__proto__.constructor, - (async function foo(){}).__proto__.constructor, -]; - -function testError(...args) { - for (let f of functions) { - assert(hasSyntaxError(() => (f(...args)))); - } -} - -function testOK(...args) { - for (let f of functions) { - assert(!hasSyntaxError(() => (f(...args)))); - } -} - -testError("a", "b", "/*", ""); -testError("/*", "*/){"); -testError("a=super()", "body;"); -testError("a=super.foo", "body;"); -testError("super();"); -testError("super.foo;"); -testError("a", "b", "/*", ""); -testError("a", "'use strict'; let a;"); -testError("/*", "*/"); -testError("/*", "*/"); -testError("a=20", "'use strict';"); -testError("{a}", "'use strict';"); -testError("...args", "'use strict';"); -testError("...args", "b", ""); -testError("//", "b", ""); - -testOK("/*", "*/", ""); -testOK("a", "/*b", "*/", "'use strict'; let b"); -testOK("{a}", "return a;"); -testOK("a", "...args", ""); -testOK(""); -testOK("let a"); -testOK(undefined); -testOK("//"); - -let str = ""; -testOK({toString() { str += "1"; return "a"}}, {toString() { str += "2"; return "b"}}, {toString() { str += "3"; return "body;"}}); -let target = ""; -for (let i = 0; i < functions.length; ++i) - target += "123"; -assert(str === target); diff --git a/implementation-contributed/javascriptcore/stress/function-expression-exit.js b/implementation-contributed/javascriptcore/stress/function-expression-exit.js deleted file mode 100644 index e22c4796cd2675c325c69d644a8896874d6bb8d1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-expression-exit.js +++ /dev/null @@ -1,16 +0,0 @@ -function foo(x) { - var tmp = x + 1; - return function() { return 42; } -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - var result = foo(42)(); - if (result != 42) - throw "Error: bad result in loop: " + result; -} - -var result = foo(42.5)(); -if (result != 42) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/function-name-scope.js b/implementation-contributed/javascriptcore/stress/function-name-scope.js deleted file mode 100644 index a93e60f6b8f462249d75bfe0eef63f0f1dcd4a19..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-name-scope.js +++ /dev/null @@ -1,40 +0,0 @@ -function foo() { - return function bar(str) { - var barBefore = bar; - var result = eval(str); - return [ - barBefore, - bar, - function () { - return bar; - }, - result - ]; - } -} - -function check() { - var bar = foo(); - - function verify(result, barAfter, evalResult) { - if (result[0] !== bar) - throw "Error: bad first entry: " + result[0]; - if (result[1] !== barAfter) - throw "Error: bad first entry: " + result[1]; - var subResult = result[2](); - if (subResult !== barAfter) - throw "Error: bad second entry: " + result[2] + "; returned: " + subResult; - if (result[3] !== evalResult) - throw "Error: bad third entry: " + result[3] + "; expected: " + evalResult; - } - - verify(bar("42"), bar, 42); - verify(bar("bar"), bar, bar); - verify(bar("var bar = 42; function fuzz() { return bar; }; fuzz()"), 42, 42); -} - -// Execute check() more than once. At the time that we wrote this regression test, trunk would fail on -// the second execution. Executing 100 times would also gives us some optimizing JIT coverage. -for (var i = 0; i < 100; ++i) - check(); - diff --git a/implementation-contributed/javascriptcore/stress/function-reentry-infer-on-self.js b/implementation-contributed/javascriptcore/stress/function-reentry-infer-on-self.js deleted file mode 100644 index 893ce91b629c4f2807ac60a3a38f59ef28b3aac7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-reentry-infer-on-self.js +++ /dev/null @@ -1,28 +0,0 @@ -function thingy(f) { - f(); -} -noInline(thingy); - -function foo(a) { - var x; - if (a) - x = a; - thingy(function() { return x; }); - var result = 0; - for (var i = 0; i < 100000; ++i) - result += x; - return result; -} - -noInline(foo); - -for (var i = 0; i < 10; ++i) { - var result = foo(42); - if (result != 4200000) - throw "Error: bad first result: " + result; -} - -var result = foo(0); -if ("" + result != "NaN") - throw "Error: bad result at end: " + result; - diff --git a/implementation-contributed/javascriptcore/stress/function-sinking-no-double-allocate.js b/implementation-contributed/javascriptcore/stress/function-sinking-no-double-allocate.js deleted file mode 100644 index 4f2f55138637f1469b942957ca30d5dc66a2b80f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-sinking-no-double-allocate.js +++ /dev/null @@ -1,28 +0,0 @@ -function call(o) { o.x = 3; } -noInline(call); - -function sink (p, q) { - var f = function () { }; - if (p) { - call(f); // Force allocation of f - if (q) { - OSRExit(); - } - return f; - } - return { 'x': 2 }; -} -noInline(sink); - -for (var i = 0; i < 100000; ++i) { - var o = sink(true, false); - if (o.x != 3) - throw "Error: expected o.x to be 2 but is " + result; -} - -// At this point, the function should be compiled down to the FTL - -// Check that the function is properly allocated on OSR exit -var f = sink(true, true); -if (f.x != 3) - throw "Error: expected o.x to be 3 but is " + result; diff --git a/implementation-contributed/javascriptcore/stress/function-sinking-osrexit.js b/implementation-contributed/javascriptcore/stress/function-sinking-osrexit.js deleted file mode 100644 index 7f33c7dd0ca66179c92af1f0ebf36d052b215d11..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-sinking-osrexit.js +++ /dev/null @@ -1,21 +0,0 @@ -function sink (p, q) { - var g = function(x) { return x; }; - if (p) { if (q) OSRExit(); return g; } - return function(x) { return x; }; -} -noInline(sink); - -for (var i = 0; i < 10000; ++i) { - var f = sink(true, false); - var result = f(42); - if (result != 42) - throw "Error: expected 42 but got " + result; -} - -// At this point, the function should be compiled down to the FTL - -// Check that the function is properly allocated on OSR exit -var f = sink(true, true); -var result = f(42); -if (result != 42) - throw "Error: expected 42 but got " + result; diff --git a/implementation-contributed/javascriptcore/stress/function-sinking-put.js b/implementation-contributed/javascriptcore/stress/function-sinking-put.js deleted file mode 100644 index deb9e6f374ab95d3ce694d91cb8f3c544e964825..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-sinking-put.js +++ /dev/null @@ -1,28 +0,0 @@ -function sink (p, q) { - var g = function(x) { return x; }; - if (p) { if (q) g.inner = 42; return g; } - return function(x) { return x; }; -} -noInline(sink); - -for (var i = 0; i < 10000; ++i) { - var f = sink(true, true); - var result = f(42); - if (result != 42) - throw "Error: expected 42 but got " + result; -} - -// At this point, the function should be compiled down to the FTL - -// Test the allocation on the implicit inner else branch -var f = sink(true, false); -var result = f(12); -if (result != 12) - // This shouldn't matter as it should be either correct or completely crash - throw "Error: expected 12 but got " + result; - -// Check that the allocation did not sink beyond the property assignment -var f = sink(true, true); -var result = f.inner; -if (result != 42) - throw "Error: inner should be 42 but is " + result; diff --git a/implementation-contributed/javascriptcore/stress/function-to-string.js b/implementation-contributed/javascriptcore/stress/function-to-string.js deleted file mode 100644 index 2f96a1195798f59811d276cab059f9d759a1f5da..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-to-string.js +++ /dev/null @@ -1,11 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -shouldBe((function test() { }).toString(), `function test() { }`); -shouldBe((() => { }).toString(), `() => { }`); -shouldBe((function* test() { }).toString(), `function* test() { }`); -shouldBe((async function* test() { }).toString(), `async function* test() { }`); -shouldBe((async function test() { }).toString(), `async function test() { }`); -shouldBe((async () => { }).toString(), `async () => { }`); diff --git a/implementation-contributed/javascriptcore/stress/function-toString-arrow.js b/implementation-contributed/javascriptcore/stress/function-toString-arrow.js deleted file mode 100644 index 9a0f7d32eff4d3e2874ada7eb71c5c0f58bae84e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-toString-arrow.js +++ /dev/null @@ -1 +0,0 @@ -(async () => {}).toString(); diff --git a/implementation-contributed/javascriptcore/stress/function-with-defaults-inlining.js b/implementation-contributed/javascriptcore/stress/function-with-defaults-inlining.js deleted file mode 100644 index cb9ea1737005ddf027eb5a6b23a1c45538c67d48..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-with-defaults-inlining.js +++ /dev/null @@ -1,24 +0,0 @@ -(function () { -'use strict'; - -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function ok(value) -{ - return value; -} - -function a(b = 42, c = 43, d) -{ - return c + ok(b); -} - -for (var i = 0; i < 1e4; ++i) { - shouldBe(a(), 85); - shouldBe(a(33), 76); - shouldBe(a(33, 22), 55); -} -}()); diff --git a/implementation-contributed/javascriptcore/stress/function-with-defaults-non-inlining.js b/implementation-contributed/javascriptcore/stress/function-with-defaults-non-inlining.js deleted file mode 100644 index dedcba5585262e1e53ed13a94db3ca4a6293bb0b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/function-with-defaults-non-inlining.js +++ /dev/null @@ -1,25 +0,0 @@ -(function () { -'use strict'; - -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function ok(value) -{ - return value; -} - -function a(b = 42, c = 43, d) -{ - return c + ok(b); -} -noInline(a); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(a(), 85); - shouldBe(a(33), 76); - shouldBe(a(33, 22), 55); -} -}()); diff --git a/implementation-contributed/javascriptcore/stress/fused-jeq-slow.js b/implementation-contributed/javascriptcore/stress/fused-jeq-slow.js deleted file mode 100644 index 8b34b3dcbaabc950d23b7076af63b1e1830091f6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fused-jeq-slow.js +++ /dev/null @@ -1,91 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)} ${String(expected)}`); -} - -function testJNEQ(a, b) -{ - if (a == b) { - return 42; - } - return 30; -} -noInline(testJNEQ); - -function testJEQ(a, b) -{ - if (a != b) { - return 42; - } - return 30; -} -noInline(testJEQ); - -function testJNEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a == b)); - return i; -} -noInline(testJNEQB); - -function testJEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a != b)); - return i; -} -noInline(testJEQB); - -function testJNEQF(a, b) -{ - var i = 0; - while (!(a == b)) - ++i; - return i; -} -noInline(testJNEQF); - -function testJEQF(a, b) -{ - var i = 0; - while (!(a != b)) - ++i; - return i; -} -noInline(testJEQF); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testJNEQ('hello', 'world'), 30); - shouldBe(testJEQ('hello', 'world'), 42); - shouldBe(testJNEQ('world', 'world'), 42); - shouldBe(testJEQ('world', 'world'), 30); - shouldBe(testJNEQ(20.5, 'world'), 30); - shouldBe(testJEQ(20.5, 'world'), 42); - - shouldBe(testJNEQ(20.5, 21.3), 30); - shouldBe(testJEQ(20.5, 21.3), 42); - shouldBe(testJNEQ(20.5, 20.5), 42); - shouldBe(testJEQ(20.5, 20.5), 30); - - shouldBe(testJNEQB(0, 0), 1); - shouldBe(testJEQB(0, 1), 1); - shouldBe(testJNEQB('hello', 'hello'), 1); - shouldBe(testJEQB('hello', 'world'), 1); - shouldBe(testJNEQB(20.4, 20.4), 1); - shouldBe(testJEQB('hello', 20.4), 1); - shouldBe(testJNEQB(0, -0), 1); - - shouldBe(testJNEQF(0, 0), 0); - shouldBe(testJEQF(0, 1), 0); - shouldBe(testJNEQF(20.4, 20.4), 0); - shouldBe(testJEQF(20.4, 10.5), 0); - shouldBe(testJNEQF(0, -0), 0); - shouldBe(testJEQF('hello', 10.5), 0); - shouldBe(testJNEQF('hello', 'hello'), 0); - shouldBe(testJEQF('hello', 'world'), 0); -} diff --git a/implementation-contributed/javascriptcore/stress/fused-jeq.js b/implementation-contributed/javascriptcore/stress/fused-jeq.js deleted file mode 100644 index 234bf2d4118ce3eb570c68d9f223cc0e3d5077b0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fused-jeq.js +++ /dev/null @@ -1,69 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)} ${String(expected)}`); -} - -function testJNEQ(a, b) -{ - if (a == b) { - return 42; - } - return 30; -} -noInline(testJNEQ); - -function testJEQ(a, b) -{ - if (a != b) { - return 42; - } - return 30; -} -noInline(testJEQ); - -function testJNEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a == b)); - return i; -} -noInline(testJNEQB); - -function testJEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a != b)); - return i; -} -noInline(testJEQB); - -function testJNEQF(a, b) -{ - var i = 0; - while (!(a == b)) - ++i; - return i; -} -noInline(testJNEQF); - -function testJEQF(a, b) -{ - var i = 0; - while (!(a != b)) - ++i; - return i; -} -noInline(testJEQF); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testJNEQ(0, 42), 30); - shouldBe(testJEQ(0, 42), 42); - shouldBe(testJNEQB(0, 0), 1); - shouldBe(testJEQB(0, 1), 1); - shouldBe(testJNEQF(0, 0), 0); - shouldBe(testJEQF(0, 1), 0); -} diff --git a/implementation-contributed/javascriptcore/stress/fused-jstricteq-slow.js b/implementation-contributed/javascriptcore/stress/fused-jstricteq-slow.js deleted file mode 100644 index 3b321fec36cf4d5148846d139eb67f7ffb40ad8a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fused-jstricteq-slow.js +++ /dev/null @@ -1,91 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)} ${String(expected)}`); -} - -function testJNSTRICTEQ(a, b) -{ - if (a === b) { - return 42; - } - return 30; -} -noInline(testJNSTRICTEQ); - -function testJSTRICTEQ(a, b) -{ - if (a !== b) { - return 42; - } - return 30; -} -noInline(testJSTRICTEQ); - -function testJNSTRICTEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a === b)); - return i; -} -noInline(testJNSTRICTEQB); - -function testJSTRICTEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a !== b)); - return i; -} -noInline(testJSTRICTEQB); - -function testJNSTRICTEQF(a, b) -{ - var i = 0; - while (!(a === b)) - ++i; - return i; -} -noInline(testJNSTRICTEQF); - -function testJSTRICTEQF(a, b) -{ - var i = 0; - while (!(a !== b)) - ++i; - return i; -} -noInline(testJSTRICTEQF); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testJNSTRICTEQ('hello', 'world'), 30); - shouldBe(testJSTRICTEQ('hello', 'world'), 42); - shouldBe(testJNSTRICTEQ('world', 'world'), 42); - shouldBe(testJSTRICTEQ('world', 'world'), 30); - shouldBe(testJNSTRICTEQ(20.5, 'world'), 30); - shouldBe(testJSTRICTEQ(20.5, 'world'), 42); - - shouldBe(testJNSTRICTEQ(20.5, 21.3), 30); - shouldBe(testJSTRICTEQ(20.5, 21.3), 42); - shouldBe(testJNSTRICTEQ(20.5, 20.5), 42); - shouldBe(testJSTRICTEQ(20.5, 20.5), 30); - - shouldBe(testJNSTRICTEQB(0, 0), 1); - shouldBe(testJSTRICTEQB(0, 1), 1); - shouldBe(testJNSTRICTEQB('hello', 'hello'), 1); - shouldBe(testJSTRICTEQB('hello', 'world'), 1); - shouldBe(testJNSTRICTEQB(20.4, 20.4), 1); - shouldBe(testJSTRICTEQB('hello', 20.4), 1); - shouldBe(testJNSTRICTEQB(0, -0), 1); - - shouldBe(testJNSTRICTEQF(0, 0), 0); - shouldBe(testJSTRICTEQF(0, 1), 0); - shouldBe(testJNSTRICTEQF(20.4, 20.4), 0); - shouldBe(testJSTRICTEQF(20.4, 10.5), 0); - shouldBe(testJNSTRICTEQF(0, -0), 0); - shouldBe(testJSTRICTEQF('hello', 10.5), 0); - shouldBe(testJNSTRICTEQF('hello', 'hello'), 0); - shouldBe(testJSTRICTEQF('hello', 'world'), 0); -} diff --git a/implementation-contributed/javascriptcore/stress/fused-jstricteq.js b/implementation-contributed/javascriptcore/stress/fused-jstricteq.js deleted file mode 100644 index 3e8fe6c25e38288bface73297796232803a28142..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fused-jstricteq.js +++ /dev/null @@ -1,69 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)} ${String(expected)}`); -} - -function testJNSTRICTEQ(a, b) -{ - if (a === b) { - return 42; - } - return 30; -} -noInline(testJNSTRICTEQ); - -function testJSTRICTEQ(a, b) -{ - if (a !== b) { - return 42; - } - return 30; -} -noInline(testJSTRICTEQ); - -function testJNSTRICTEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a === b)); - return i; -} -noInline(testJNSTRICTEQB); - -function testJSTRICTEQB(a, b) -{ - var i = 0; - do { - ++i; - } while (!(a !== b)); - return i; -} -noInline(testJSTRICTEQB); - -function testJNSTRICTEQF(a, b) -{ - var i = 0; - while (!(a === b)) - ++i; - return i; -} -noInline(testJNSTRICTEQF); - -function testJSTRICTEQF(a, b) -{ - var i = 0; - while (!(a !== b)) - ++i; - return i; -} -noInline(testJSTRICTEQF); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testJNSTRICTEQ(0, 42), 30); - shouldBe(testJSTRICTEQ(0, 42), 42); - shouldBe(testJNSTRICTEQB(0, 0), 1); - shouldBe(testJSTRICTEQB(0, 1), 1); - shouldBe(testJNSTRICTEQF(0, 0), 0); - shouldBe(testJSTRICTEQF(0, 1), 0); -} diff --git a/implementation-contributed/javascriptcore/stress/fuzz-bug-16399949.js b/implementation-contributed/javascriptcore/stress/fuzz-bug-16399949.js deleted file mode 100644 index 1fe0f1059dc639df1ae933149e34aa55a14802b6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/fuzz-bug-16399949.js +++ /dev/null @@ -1,9 +0,0 @@ -function tryItOut() -{ - function f() { - Array( /x/.a = this) + ""; - } - for (var i = 0; i < 1000; i++) - f(); -} -tryItOut(); diff --git a/implementation-contributed/javascriptcore/stress/getter-arity.js b/implementation-contributed/javascriptcore/stress/getter-arity.js deleted file mode 100644 index eebe95410683ac181ff0806b41fb09ddc05bf367..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/getter-arity.js +++ /dev/null @@ -1,7 +0,0 @@ -var o = {}; -o.__defineGetter__("f", function(a, b, c, d, e, f) { return 42; }); -for (var i = 0; i < 10000; ++i) { - var result = o.f; - if (result != 42) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/getter.js b/implementation-contributed/javascriptcore/stress/getter.js deleted file mode 100644 index cf232a526ae4ebc614262e0c425469ebc2d5def2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/getter.js +++ /dev/null @@ -1,18 +0,0 @@ -function foo(o) { - return o.f + o.k * 1000; -} - -noInline(foo); - -for (var i = 0; i < 100; ++i) { - var o = {g_: 5}; - o.__defineGetter__("f", function() { return 42 + this.g_; }); - o.__defineGetter__("g", function() { return 43 + this.g_; }); - o.__defineGetter__("h", function() { return 44 + this.g_; }); - o.__defineGetter__("i", function() { return 45 + this.g_; }); - o.__defineGetter__("j", function() { return 46 + this.g_; }); - o.__defineGetter__("k", function() { return 47 + this.g_; }); - var result = foo(o); - if (result != (42 + 5) + 1000 * (47 + 5)) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/first.js b/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/first.js deleted file mode 100644 index 48467d69aac7c6b95307a8b7d82c3116505bc6d3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/first.js +++ /dev/null @@ -1 +0,0 @@ -const foo = 20; diff --git a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/let.js b/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/let.js deleted file mode 100644 index edd558aadb5069538401d65d4ada673929d3f377..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/let.js +++ /dev/null @@ -1 +0,0 @@ -let foo = 50; diff --git a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/second.js b/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/second.js deleted file mode 100644 index 88d1e990106e1bdc4dba7e4c5e48fa7a0c06c804..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/second.js +++ /dev/null @@ -1 +0,0 @@ -const foo = 40; diff --git a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/strict.js b/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/strict.js deleted file mode 100644 index 43600db92274fd7f9f67b5e4694fd90a6f897ff3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-const-redeclaration-setting/strict.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -const foo = 45; diff --git a/implementation-contributed/javascriptcore/stress/global-environment-does-not-trap-unscopables.js b/implementation-contributed/javascriptcore/stress/global-environment-does-not-trap-unscopables.js index de9660894ab58b76c6e19ccf7db026240c9d21d9..ce2770ec60f520b553424672cf55e051f3fb79ae 100644 --- a/implementation-contributed/javascriptcore/stress/global-environment-does-not-trap-unscopables.js +++ b/implementation-contributed/javascriptcore/stress/global-environment-does-not-trap-unscopables.js @@ -1,3 +1,4 @@ +// Reviewed function test(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/global-is-finite.js b/implementation-contributed/javascriptcore/stress/global-is-finite.js deleted file mode 100644 index bc7f2f7995bebaf548e4799b7b602b9b1f13b3b7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-is-finite.js +++ /dev/null @@ -1,18 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${actual}`); -} -for (var i = -1e4; i < 1e4; ++i) - shouldBe(isFinite(i), true); - -// Emit DoubleRep. -for (var i = 0; i < 1e4; ++i) { - shouldBe(isFinite(Infinity), false); - shouldBe(isFinite(-Infinity), false); - shouldBe(isFinite(NaN), false); -} - -// Emit ToNumber. -for (var i = 0; i < 1e4; ++i) - shouldBe(isFinite("0"), true); -shouldBe(isFinite("Hello"), false); diff --git a/implementation-contributed/javascriptcore/stress/global-is-nan.js b/implementation-contributed/javascriptcore/stress/global-is-nan.js deleted file mode 100644 index c8408b11ea18e324faeda5da2bf76a673de2d27d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-is-nan.js +++ /dev/null @@ -1,19 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${actual}`); -} -for (var i = -1e4; i < 1e4; ++i) - shouldBe(isNaN(i), false); - -// Emit DoubleRep. -for (var i = 0; i < 1e4; ++i) { - shouldBe(isNaN(Infinity), false); - shouldBe(isNaN(-Infinity), false); - shouldBe(isNaN(NaN), true); -} - -// Emit ToNumber. -for (var i = 0; i < 1e4; ++i) - shouldBe(isNaN("0"), false); -shouldBe(isNaN("Hello"), true); -shouldBe(isNaN("NaN"), true); diff --git a/implementation-contributed/javascriptcore/stress/global-isNaN-basics.js b/implementation-contributed/javascriptcore/stress/global-isNaN-basics.js deleted file mode 100644 index 87df1ceb301604c3339797ccd58a7ef70ff180c8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-isNaN-basics.js +++ /dev/null @@ -1,260 +0,0 @@ -function isNaNOnInteger(value) -{ - return isNaN(value); -} -noInline(isNaNOnInteger); - -// *** Test simple cases on integers. *** -function testIsNaNOnIntegers() -{ - // Bounds. - var value = isNaNOnInteger(0); - if (value) - throw "isNaNOnInteger(0) = " + value; - - var value = isNaNOnInteger(-2147483648); - if (value) - throw "isNaNOnInteger(-2147483648) = " + value; - - var value = isNaNOnInteger(2147483647); - if (value) - throw "isNaNOnInteger(2147483647) = " + value; - - // Simple values. - var value = isNaNOnInteger(-1); - if (value) - throw "isNaNOnInteger(-1) = " + value; - - var value = isNaNOnInteger(42); - if (value) - throw "isNaNOnInteger(42) = " + value; - - var value = isNaNOnInteger(-42); - if (value) - throw "isNaNOnInteger(-42) = " + value; -} -noInline(testIsNaNOnIntegers); - -for (var i = 0; i < 1e4; ++i) { - testIsNaNOnIntegers(); -} - -// Make sure we don't do anything stupid when the type is unexpected. -function verifyIsNaNOnIntegerWithOtherTypes() -{ - var value = isNaNOnInteger(Math.PI); - if (value) - throw "isNaNOnInteger(Math.PI) = " + value; - - var value = isNaNOnInteger("42"); - if (value) - throw "isNaNOnInteger(\"42\") = " + value; - - var value = isNaNOnInteger("WebKit"); - if (!value) - throw "isNaNOnInteger(\"WebKit\") = " + value; - - var value = isNaNOnInteger(-0); - if (value) - throw "isNaNOnInteger(-0) = " + value; -} -noInline(verifyIsNaNOnIntegerWithOtherTypes); - -for (var i = 0; i < 1e4; ++i) { - verifyIsNaNOnIntegerWithOtherTypes(); -} - -// *** Test simple cases on doubles. *** -function isNaNOnDouble(value) -{ - return isNaN(value); -} -noInline(isNaNOnDouble); - -// Test simple cases on doubles. -function testIsNaNOnDoubles() -{ - var value = isNaNOnDouble(Math.PI); - if (value) - throw "isNaNOnDouble(Math.PI) = " + value; - - var value = isNaNOnDouble(Math.E); - if (value) - throw "isNaNOnDouble(Math.E) = " + value; - - var value = isNaNOnDouble(Math.LN2); - if (value) - throw "isNaNOnDouble(Math.LN2) = " + value; - - var value = isNaNOnDouble(-0); - if (value) - throw "isNaNOnDouble(-0) = " + value; - - var value = isNaNOnDouble(NaN); - if (!value) - throw "isNaNOnDouble(NaN) = " + value; - - var value = isNaNOnDouble(Number.POSITIVE_INFINITY); - if (value) - throw "isNaNOnDouble(Number.POSITIVE_INFINITY) = " + value; - - var value = isNaNOnDouble(Number.NEGATIVE_INFINITY); - if (value) - throw "isNaNOnDouble(Number.NEGATIVE_INFINITY) = " + value; -} -noInline(testIsNaNOnDoubles); - -for (var i = 0; i < 1e6; ++i) { - testIsNaNOnDoubles(); -} - -// Make sure we don't do anything stupid when the type is unexpected. -function verifyIsNaNOnDoublesWithOtherTypes() -{ - var value = isNaNOnDouble(1); - if (value) - throw "isNaNOnDouble(1) = " + value; - - var value = isNaNOnDouble("42"); - if (value) - throw "isNaNOnDouble(\"42\") = " + value; - - var value = isNaNOnDouble("WebKit"); - if (!value) - throw "isNaNOnDouble(\"WebKit\") = " + value; - - var value = isNaNOnDouble({}); - if (!value) - throw "isNaNOnDouble({}) = " + value; -} -noInline(verifyIsNaNOnDoublesWithOtherTypes); - -for (var i = 0; i < 1e4; ++i) { - verifyIsNaNOnDoublesWithOtherTypes(); -} - -// Make sure we still return NaN for type coerced values for global isNaN. -function verifyIsNaNOnCoercedTypes() -{ - var value = isNaNOnInteger("NaN"); - if (!value) - throw "isNaNOnInteger(\"NaN\") = " + value; - - var value = isNaNOnInteger({ valueOf() { return NaN; } }); - if (!value) - throw "isNaNOnInteger({ valueOf() { return NaN; } }) = " + value; -} -noInline(verifyIsNaNOnCoercedTypes); - -for (var i = 0; i < 1e4; ++i) { - verifyIsNaNOnCoercedTypes(); -} - - -// *** Unusual arguments. *** -function isNaNNoArguments() -{ - return isNaN(); -} -noInline(isNaNNoArguments); - -function isNaNTooManyArguments(a, b, c) -{ - return isNaN(a, b, c); -} -noInline(isNaNTooManyArguments); - - -for (var i = 0; i < 1e4; ++i) { - var value = isNaNNoArguments(); - if (!value) - throw "isNaNNoArguments() = " + value; - - value = isNaNTooManyArguments(2, 3, 5); - if (value) - throw "isNaNTooManyArguments() = " + value; -} - - -// *** Constant as arguments. *** -function testIsNaNOnConstants() -{ - var value = isNaN(0); - if (value) - throw "isNaN(0) = " + value; - var value = isNaN(-0); - if (value) - throw "isNaN(-0) = " + value; - var value = isNaN(1); - if (value) - throw "isNaN(1) = " + value; - var value = isNaN(-1); - if (value) - throw "isNaN(-1) = " + value; - var value = isNaN(42); - if (value) - throw "isNaN(42) = " + value; - var value = isNaN(-42); - if (value) - throw "isNaN(-42) = " + value; - var value = isNaN(Number.POSITIVE_INFINITY); - if (value) - throw "isNaN(Number.POSITIVE_INFINITY) = " + value; - var value = isNaN(Number.NEGATIVE_INFINITY); - if (value) - throw "isNaN(Number.NEGATIVE_INFINITY) = " + value; - var value = isNaN(Math.E); - if (value) - throw "isNaN(Math.E) = " + value; - var value = isNaN(NaN); - if (!value) - throw "isNaN(NaN) = " + value; -} -noInline(testIsNaNOnConstants); - -for (var i = 0; i < 1e4; ++i) { - testIsNaNOnConstants(); -} - - -// *** Type Coercion Side effects. *** -function isNaNTypeCoercionSideEffects(value) -{ - return isNaN(value); -} -noInline(isNaNTypeCoercionSideEffects); - -for (var i = 0; i < 1e4; ++i) { - var value = isNaNTypeCoercionSideEffects(42); - if (value) - throw "isNaNTypeCoercionSideEffects(42) = " + value; -} - -var globalCounter = 0; -for (var i = 0; i < 1e4; ++i) { - var value = isNaNTypeCoercionSideEffects({ valueOf() { return globalCounter++; } }); - if (value) - throw "isNaNTypeCoercionSideEffects({ valueOf() { return globalCounter++; } }) = " + value; -} -if (globalCounter !== 1e4) - throw "globalCounter =" + globalCounter; - - -// *** Struct transition. *** -function isNaNStructTransition(value) -{ - return isNaN(value); -} -noInline(isNaNStructTransition); - -for (var i = 0; i < 1e4; ++i) { - var value = isNaNStructTransition(42); - if (value) - throw "isNaNStructTransition(42) = " + value; -} - -isNaN = function() { return 123; } - -var value = isNaNStructTransition(42); -if (value !== 123) - throw "isNaNStructTransition(42) after transition = " + value; diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-environment-to-this.js b/implementation-contributed/javascriptcore/stress/global-lexical-environment-to-this.js deleted file mode 100644 index a767358aa75499407b612d439fe5c6b58adb3309..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-environment-to-this.js +++ /dev/null @@ -1,22 +0,0 @@ -function assert(b, i) { - if (!b) - throw new Error("Bad! " + i) -} - -let f = function() { - return this; -} -noInline(f); - -let fStrict = function() { - "use strict"; - return this; -} -noInline(fStrict); - -const globalThis = this; -for (let i = 0; i < 1000; i++) - assert(f() === globalThis, i); - -for (let i = 0; i < 1000; i++) - assert(fStrict() === undefined); diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-let-no-rhs.js b/implementation-contributed/javascriptcore/stress/global-lexical-let-no-rhs.js deleted file mode 100644 index cd77889207ba6fe938ab5ecd77166ea381561a87..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-let-no-rhs.js +++ /dev/null @@ -1,14 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -let x; -function foo() { - return x; -} -for (var i = 0; i < 1000; i++) { - assert(x === undefined); - assert(foo() === undefined); -} diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-redeclare-variable.js b/implementation-contributed/javascriptcore/stress/global-lexical-redeclare-variable.js deleted file mode 100644 index 6ec287b6d16043f88ad1f8edcb9a97d26f7c709d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-redeclare-variable.js +++ /dev/null @@ -1,115 +0,0 @@ -let globalLet = "let"; -function globalFunction() { } -class globalClass { } -const globalConst = 20; -var globalVar = 21; -this.globalProperty = 22; - -let sentinel = "__s__"; - -function assert(b) { - if (!b) - throw new Error("bad assertion"); -} - -function assertExpectations() { - assert(sentinel === "__s__"); -} - - -let errorCount = 0; -function assertProperError(e) { - if (e instanceof SyntaxError && e.message.indexOf("Can't create duplicate variable") !== -1) { - errorCount++; - } else { - assert(false); - } - -} - -assertExpectations(); - -try { - load("./multiple-files-tests/global-lexical-redeclare-variable/first.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -try { - load("./multiple-files-tests/global-lexical-redeclare-variable/second.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -try { - load("./multiple-files-tests/global-lexical-redeclare-variable/third.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -try { - load("./multiple-files-tests/global-lexical-redeclare-variable/fourth.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -try { - load("./multiple-files-tests/global-lexical-redeclare-variable/fifth.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -// Checking if the implementation is following -// ES6 spec 8.1.1.4.14 http://www.ecma-international.org/ecma-262/6.0/index.html#sec-hasrestrictedglobalproperty - -try { - sentinel = "bad"; - assert(Object.getOwnPropertyDescriptor(this, "globalProperty").configurable); - load("./multiple-files-tests/global-lexical-redeclare-variable/sixth.js"); -} catch(e) { - assert(false); -} -assertExpectations(); - -try { - sentinel = "bad"; - assert(Object.getOwnPropertyDescriptor(this, "Array").configurable); - load("./multiple-files-tests/global-lexical-redeclare-variable/seventh.js"); -} catch(e) { - assert(false); -} -assertExpectations(); - -try { - sentinel = "bad"; - Object.defineProperty(this, 'foo', {value: 5, configurable: true, writable: true}); - load("./multiple-files-tests/global-lexical-redeclare-variable/eighth.js"); -} catch(e) { - assert(false); -} -assertExpectations(); - -try { - Object.defineProperty(this, 'bar', {value: 5, configurable: false, writable: true}); - load("./multiple-files-tests/global-lexical-redeclare-variable/ninth.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -assert(errorCount === 6); - -try { - Object.defineProperty(this, 'zoo', {value: undefined, configurable: false, writable: true}); - load("./multiple-files-tests/global-lexical-redeclare-variable/tenth.js"); -} catch(e) { - assertProperError(e); -} -assertExpectations(); - -assert(errorCount === 7); diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-redefine-const.js b/implementation-contributed/javascriptcore/stress/global-lexical-redefine-const.js deleted file mode 100644 index 1c6baf7c372252cb0c97b35fc8444f85c066e91b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-redefine-const.js +++ /dev/null @@ -1,2 +0,0 @@ -load("./multiple-files-tests/global-lexical-redefine-const/first.js"); -load("./multiple-files-tests/global-lexical-redefine-const/second.js"); diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-var-injection.js b/implementation-contributed/javascriptcore/stress/global-lexical-var-injection.js deleted file mode 100644 index 662eb46bfe44cca77ebabd4c35215299498e0a71..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-var-injection.js +++ /dev/null @@ -1,57 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -let foo = "foo"; -const bar = "bar"; - -for (let i = 0; i < 1000; i++) { - assert(foo === "foo"); - assert(bar === "bar"); -} - -eval("var INJECTION = 20"); - -for (let i = 0; i < 100; i++) { - assert(foo === "foo"); - assert(bar === "bar"); - assert(INJECTION === 20); - let threw = false; - try { - eval("var foo;"); - } catch(e) { - threw = true; - assert(e.message.indexOf("Can't create duplicate global variable in eval") !== -1); - } - assert(threw); - threw = false; - try { - eval("var bar;"); - } catch(e) { - threw = true; - assert(e.message.indexOf("Can't create duplicate global variable in eval") !== -1); - } - assert(threw); - - assert(foo === "foo"); - assert(bar === "bar"); - assert(INJECTION === 20); -} - - -var flag = false; -function baz() { - if (flag) eval("var foo = 20;"); - return foo; -} - -for (var i = 0; i < 1000; i++) { - assert(baz() === "foo"); - assert(baz() === foo); -} -flag = true; -for (var i = 0; i < 1000; i++) { - assert(baz() === 20); -} diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-variable-tdz.js b/implementation-contributed/javascriptcore/stress/global-lexical-variable-tdz.js deleted file mode 100644 index e88cfd6a256237fe3c2d57fd11d5001566089a0a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-variable-tdz.js +++ /dev/null @@ -1,2 +0,0 @@ -load("./multiple-files-tests/global-lexical-variable-tdz/first.js"); -load("./multiple-files-tests/global-lexical-variable-tdz/second.js"); diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-variable-unresolved-property.js b/implementation-contributed/javascriptcore/stress/global-lexical-variable-unresolved-property.js deleted file mode 100644 index d622145441ba01dcbecc58bfb9d9ef8cb0763dde..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-variable-unresolved-property.js +++ /dev/null @@ -1,2 +0,0 @@ -load("./multiple-files-tests/global-lexical-variable-unresolved-property/first.js"); -load("./multiple-files-tests/global-lexical-variable-unresolved-property/second.js"); diff --git a/implementation-contributed/javascriptcore/stress/global-lexical-variable-with-statement.js b/implementation-contributed/javascriptcore/stress/global-lexical-variable-with-statement.js deleted file mode 100644 index aab0b65bc571e8019c4c11c9cf381983d06c697a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-lexical-variable-with-statement.js +++ /dev/null @@ -1,33 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); -function shouldThrowInvalidConstAssignment(f) { - var threw = false; - try { - f(); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); -} -noInline(shouldThrowInvalidConstAssignment); - - -function makeObj() { - return {foo: 20}; -} -noInline(makeObj); - -let foo = "foo"; -const bar = "bar"; - -for (var i = 0; i < 100; i++) { - with (makeObj()) { - assert(foo === 20); - assert(bar === "bar"); - shouldThrowInvalidConstAssignment(function() { bar = 20; }); - } -} diff --git a/implementation-contributed/javascriptcore/stress/global-property-into-variable-get-from-scope.js b/implementation-contributed/javascriptcore/stress/global-property-into-variable-get-from-scope.js deleted file mode 100644 index 947c4e8f1220d61880f5cdc40b6aec299cada11a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/global-property-into-variable-get-from-scope.js +++ /dev/null @@ -1,13 +0,0 @@ -// This tests a bug that occured because we have noInline as a global -// property then is set to a global variable in the load of standalone-pre.js. -// Once we get to the DFG we still think that noInline is a global property -// based on an old global object structure. This would cause a crash when we -// attempted to create an equivalence condition for the get_from_scope of -// noInline as the current global object would not have noInline as a property -// at that point and we would attempt to access the value at an invalid offset. - -load("resources/standalone-pre.js"); - -noInline(); - -for (i = 0; i < 100000; i++); diff --git a/implementation-contributed/javascriptcore/stress/goofy-function-reentry-incorrect-inference.js b/implementation-contributed/javascriptcore/stress/goofy-function-reentry-incorrect-inference.js deleted file mode 100644 index a371347b6b3f6312d2dfb8df2bbb6e204a9ecdba..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/goofy-function-reentry-incorrect-inference.js +++ /dev/null @@ -1,25 +0,0 @@ -function foo(a) { - var x; - if (a) - x = a; - return [function() { - return x; - }, function(a) { - x = a; - }]; -} - -var array = foo(false); -noInline(array[0]); -noInline(array[1]); -array[1](42); -for (var i = 0; i < 10000; ++i) { - var result = array[0](); - if (result != 42) - throw "Error: bad result in loop: " + result; -} - -array[1](43); -var result = array[0](); -if (result != 43) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/has-custom-properties.js b/implementation-contributed/javascriptcore/stress/has-custom-properties.js deleted file mode 100644 index 55775ba4418204372491bbd274c782763e4db512..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-custom-properties.js +++ /dev/null @@ -1,13 +0,0 @@ -(function() { - for (var i = 0; i < 10000; ++i) { - var o = {}; - - if (hasCustomProperties(o)) - throw "Error: object shouldn't have custom properties yet."; - - o.f = 42; - - if (!hasCustomProperties(o)) - throw "Error: object should have custom properties already."; - } -})(); diff --git a/implementation-contributed/javascriptcore/stress/has-indexed-property-array-storage.js b/implementation-contributed/javascriptcore/stress/has-indexed-property-array-storage.js deleted file mode 100644 index 276527a553bf55edc7901f3849f6aa0fb44bdaba..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-indexed-property-array-storage.js +++ /dev/null @@ -1,38 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(array) -{ - return 2 in array; -} -noInline(test1); - -var array = [1, 2, 3, 4]; -ensureArrayStorage(array); -for (var i = 0; i < 1e5; ++i) - shouldBe(test1(array), true); - -var array = [1, 2, , 4]; -ensureArrayStorage(array); -shouldBe(test1(array), false); - -var array = []; -ensureArrayStorage(array); -shouldBe(test1(array), false); - -function test2(array) -{ - return 2 in array; -} -noInline(test2); - -var array1 = [1, 2, 3, 4]; -ensureArrayStorage(array1); -var array2 = [1, 2]; -ensureArrayStorage(array2); -for (var i = 0; i < 1e5; ++i) - shouldBe(test2(array2), false); -shouldBe(test2(array2), false); -shouldBe(test2(array1), true); diff --git a/implementation-contributed/javascriptcore/stress/has-indexed-property-slow-put-array-storage.js b/implementation-contributed/javascriptcore/stress/has-indexed-property-slow-put-array-storage.js deleted file mode 100644 index 1ae4a92717d781d36fe31aac8b9022f975b95e4f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-indexed-property-slow-put-array-storage.js +++ /dev/null @@ -1,51 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(array) -{ - return 2 in array; -} -noInline(test1); - -var object = { a: 10 }; -Object.defineProperties(object, { - "0": { - get: function() { return this.a; }, - set: function(x) { this.a = x; }, - }, -}); - -var array = [1, 2, 3, 4]; -array.__proto__ = object; -ensureArrayStorage(array); -for (var i = 0; i < 1e5; ++i) - shouldBe(test1(array), true); - -var array = [1, 2, , 4]; -array.__proto__ = object; -ensureArrayStorage(array); -shouldBe(test1(array), false); - -var array = []; -array.__proto__ = object; -ensureArrayStorage(array); -shouldBe(test1(array), false); - -function test2(array) -{ - return 2 in array; -} -noInline(test2); - -var array1 = [1, 2, 3, 4]; -array1.__proto__ = object; -ensureArrayStorage(array1); -var array2 = [1, 2]; -array2.__proto__ = object; -ensureArrayStorage(array2); -for (var i = 0; i < 1e5; ++i) - shouldBe(test2(array2), false); -shouldBe(test2(array2), false); -shouldBe(test2(array1), true); diff --git a/implementation-contributed/javascriptcore/stress/has-instance-exception-check.js b/implementation-contributed/javascriptcore/stress/has-instance-exception-check.js deleted file mode 100644 index e4ffdc68dad24cb3d94390f6c3716da69075a0e6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-instance-exception-check.js +++ /dev/null @@ -1,17 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -let getter = Object.getOwnPropertyDescriptor({get foo(){}}, "foo").get; -Object.defineProperty(getter, Symbol.hasInstance, {value:undefined}); -let y = {}; -Object.defineProperty(getter, "prototype", {get: Uint8Array}); -let error = null; -try { - y instanceof getter; -} catch(e) { - error = e; -} -assert(!!error); -assert(error.toString() === "TypeError: calling Uint8Array constructor without new is invalid"); diff --git a/implementation-contributed/javascriptcore/stress/has-own-property-cache-basics.js b/implementation-contributed/javascriptcore/stress/has-own-property-cache-basics.js deleted file mode 100644 index 717b4814aea73caed9cea0d8e501fc01eada1055..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-own-property-cache-basics.js +++ /dev/null @@ -1,31 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion.") -} -noInline(assert); - -let objs = [ - {f: 50}, - {f: 50, g: 70}, - {g: 50, f: 70}, - {h: 50, f: 70}, - {z: 50, f: 70}, - {k: 50, f: 70}, -]; - -let s1 = Symbol(); -let s2 = Symbol(); -for (let o of objs) - o[s1] = "foo"; - -function foo(o) { - assert(o.hasOwnProperty("f")); - assert(!o.hasOwnProperty("ff")); - assert(o.hasOwnProperty(s1)); - assert(!o.hasOwnProperty(s2)); -} -noInline(foo); - -for (let i = 0; i < 40000; ++i) { - foo(objs[i % objs.length]); -} diff --git a/implementation-contributed/javascriptcore/stress/has-own-property-called-on-non-object.js b/implementation-contributed/javascriptcore/stress/has-own-property-called-on-non-object.js deleted file mode 100644 index 3db514d4217e5edfc4c6e8c744dc9508a2921b8f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-own-property-called-on-non-object.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -let objs = [ - function() { }, - new String(), - {foo: 45}, - {bar:50, foo: 45}, - {baz:70, bar:50, foo: 45}, - new Date, -]; - -let has = ({}).hasOwnProperty; -function foo(o) { - return has.call(o, "foo"); -} -noInline(foo); - -for (let i = 0; i < 10000; i++) - foo(objs[i % objs.length]); - -foo("foo"); diff --git a/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-string-keys.js b/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-string-keys.js deleted file mode 100644 index b366af9bf7c38434676e293e2ec35792da7533fe..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-string-keys.js +++ /dev/null @@ -1,39 +0,0 @@ -//@ skip if $memoryLimited - -function assert(b) { - if (!b) - throw new Error("Bad assertion."); -} -noInline(assert); - -let objs = []; -let keyPool = []; -const numKeys = 800; -for (let i = 0; i < numKeys; ++i) - keyPool.push(i + "foo"); - -for (let i = 0; i < 10000; i++) { - let num = (Math.random() * numKeys) | 0; - let o = {}; - for (let i = 0; i < num; ++i) { - o[keyPool[i]] = 25; - } - objs.push(o); -} - -function foo(o) { - let props = Object.getOwnPropertyNames(o); - for (let i = 0; i < props.length; ++i) { - let s = props[i]; - assert(o.hasOwnProperty(s)); - } -} -noInline(foo); - -let start = Date.now(); -for (let o of objs) { - foo(o); -} -const verbose = false; -if (verbose) - print(Date.now() - start); diff --git a/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-symbol-keys.js b/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-symbol-keys.js deleted file mode 100644 index 4e6009fdee58aa195f2f2a2c781c39ae9f7cbcb4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-symbol-keys.js +++ /dev/null @@ -1,36 +0,0 @@ -//@ skip if $memoryLimited - -function assert(b) { - if (!b) - throw new Error("Bad assertion."); -} -noInline(assert); - -let objs = []; -let symbolPool = []; -const numSymbols = 800; -for (let i = 0; i < numSymbols; ++i) - symbolPool.push(Symbol()); - -for (let i = 0; i < 10000; i++) { - let num = (Math.random() * numSymbols) | 0; - let o = {}; - for (let i = 0; i < num; ++i) { - o[symbolPool[i]] = 25; - } - objs.push(o); -} - -function foo(o) { - let props = Object.getOwnPropertySymbols(o); - for (let i = 0; i < props.length; ++i) { - let s = props[i]; - assert(o.hasOwnProperty(s)); - } -} -noInline(foo); - -let start = Date.now(); -for (let o of objs) { - foo(o); -} diff --git a/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-symbols-and-strings.js b/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-symbols-and-strings.js deleted file mode 100644 index 2755842f48e7a6b8b9f2f8cd77d748a655238076..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/has-own-property-name-cache-symbols-and-strings.js +++ /dev/null @@ -1,45 +0,0 @@ - -function assert(b) { - if (!b) - throw new Error("Bad assertion."); -} -noInline(assert); - -let objs = []; -let keyPool = []; -let symbolPool = []; -const numKeys = 300; -for (let i = 0; i < numKeys; ++i) { - keyPool.push(i + "foo"); - symbolPool.push(Symbol("Foo")); -} - -for (let i = 0; i < 2000; i++) { - let num = (Math.random() * numKeys) | 0; - let o = {}; - for (let i = 0; i < num; ++i) { - o[keyPool[i]] = 25; - o[symbolPool[i]] = 40; - } - objs.push(o); -} - -let time = 0; -function foo(o) { - let props = Object.getOwnPropertyNames(o); - props.push(...Object.getOwnPropertySymbols(o)); - let start = Date.now(); - for (let i = 0; i < props.length; ++i) { - let s = props[i]; - assert(o.hasOwnProperty(s)); - } - time += Date.now() - start; -} -noInline(foo); - -for (let o of objs) { - foo(o); -} -const verbose = false; -if (verbose) - print(time); diff --git a/implementation-contributed/javascriptcore/stress/have-a-bad-time-with-arguments.js b/implementation-contributed/javascriptcore/stress/have-a-bad-time-with-arguments.js deleted file mode 100644 index de9a9455f29c0f13b9faaf3c5d95bcc4f237cdd8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/have-a-bad-time-with-arguments.js +++ /dev/null @@ -1,140 +0,0 @@ -//@ runFTLNoCJIT - -// Tests accessing an element in arguments before and after having a bad time. -// This test should not crash. - -let verbose = false; - -var utilities = 'function shouldEqual(testId, actual, expected) {' + '\n' + - ' if (actual != expected)' + '\n' + - ' throw testId + ": ERROR: expect " + expected + ", actual " + actual;' + '\n' + - '}' + '\n'; - -var haveABadTime = 'Object.defineProperty(Object.prototype, 20, { get() { return 20; } });' + '\n'; - -var directArgumentsDecl = ' var args = arguments;' + '\n'; - -var scopedArgumentsDecl = ' var args = arguments;' + '\n' + - ' function closure() { return x; }' + '\n'; - -var clonedArgumentsDecl = ' "use strict";' + '\n' + - ' var args = arguments;' + '\n'; - -function testFunction(argsDecl, insertElementAction, indexToReturn) { - var script = 'function test(x) {' + '\n' + - argsDecl + - insertElementAction + - ' return args[' + indexToReturn + '];' + '\n' + - '}' + '\n' + - 'noInline(test);' + '\n'; - return script; -} - -function warmupFunction(tierWarmupCount, testArgs) { - var script = 'function warmup() {' + '\n' + - ' for (var i = 0; i < ' + tierWarmupCount + '; i++) {' + '\n' + - ' test(' + testArgs + ');' + '\n' + - ' }' + '\n' + - '}' + '\n'; - return script; -} - -let argumentsDecls = { - direct: directArgumentsDecl, - scoped: scopedArgumentsDecl, - cloned: clonedArgumentsDecl -}; - -let indicesToReturn = { - inBounds: 0, - outOfBoundsInsertedElement: 10, - outOfBoundsInPrototype: 20 -}; - -let tierWarmupCounts = { - llint: 1, - baseline: 50, - dfg: 1000, - ftl: 10000 -}; - -let testArgsList = { - noArgs: { - args: '', - result: { - inBounds: { beforeBadTime: 'undefined', afterBadTime: 'undefined', }, - outOfBoundsInsertedElement: { beforeBadTime: '10', afterBadTime: '10', }, - outOfBoundsInPrototype: { beforeBadTime: 'undefined', afterBadTime: '20', }, - } - }, - someArgs: { - args: '1, 2, 3', - result: { - inBounds: { beforeBadTime: '1', afterBadTime: '1', }, - outOfBoundsInsertedElement: { beforeBadTime: '10', afterBadTime: '10', }, - outOfBoundsInPrototype: { beforeBadTime: 'undefined', afterBadTime: '20', }, - } - } -}; - -let insertElementActions = { - insertElement: ' args[10] = 10;' + '\n', - dontInsertElement: '' -}; - -for (let argsDeclIndex in argumentsDecls) { - let argsDecl = argumentsDecls[argsDeclIndex]; - - for (let indexToReturnIndex in indicesToReturn) { - let indexToReturn = indicesToReturn[indexToReturnIndex]; - - for (let insertElementActionIndex in insertElementActions) { - let insertElementAction = insertElementActions[insertElementActionIndex]; - - for (let tierWarmupCountIndex in tierWarmupCounts) { - let tierWarmupCount = tierWarmupCounts[tierWarmupCountIndex]; - - for (let testArgsIndex in testArgsList) { - let testArgs = testArgsList[testArgsIndex].args; - let expectedResult = testArgsList[testArgsIndex].result[indexToReturnIndex]; - - if (indexToReturnIndex == 'outOfBoundsInsertedElement' - && insertElementActionIndex == 'dontInsertElement') - expectedResult = 'undefined'; - - let testName = - argsDeclIndex + '-' + - indexToReturnIndex + '-' + - insertElementActionIndex + '-' + - tierWarmupCountIndex + '-' + - testArgsIndex; - - - let script = utilities + - testFunction(argsDecl, insertElementAction, indexToReturn) + - warmupFunction(tierWarmupCount, testArgs) + - 'warmup()' + '\n' + - 'shouldEqual(10000, test(' + testArgs + '), ' + expectedResult['beforeBadTime'] + ');' + '\n' + - haveABadTime + - 'shouldEqual(20000, test(' + testArgs + '), ' + expectedResult['afterBadTime'] + ');' + '\n'; - - if (verbose) { - print('Running test configuration: ' + testName); - print( - 'Test script: ====================================================\n' + - script + - '=== END script =================================================='); - } - - try { - runString(script); - } catch (e) { - print('FAILED test configuration: ' + testName); - print('FAILED test script:\n' + script); - throw e; - } - } - } - } - } -} diff --git a/implementation-contributed/javascriptcore/stress/having-a-bad-time-with-derived-arrays.js b/implementation-contributed/javascriptcore/stress/having-a-bad-time-with-derived-arrays.js deleted file mode 100644 index b316cf5ff6ca920cb05299a0f4a4a6c58eb2638a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/having-a-bad-time-with-derived-arrays.js +++ /dev/null @@ -1,48 +0,0 @@ -function assert(b) { - if (!b) - throw new Error; -} - -let called = false; -function defineSetter() { - Array.prototype.__defineSetter__(0, function (x) { - assert(x === 42); - called = true; - }); -} - -class DerivedArray extends Array { - constructor(...args) { - super() - } -} - -function iterate(a) { - for (let i = 0; i < a.length; i++) { } -} - -let arr = [[[1, 2, 3, 4, 5], [ 2], 5], [[1, 2, 3], [ -4]]]; -let d = new DerivedArray(); -d[1] = 20; -d[2] = 40; -arr.push([d, [2] -9]); - -function doSlice(a) { - let r = a.slice(); - defineSetter(); - return r; -} - -for (let i = 0; i < 10000; i++) { - for (let [a, b, ...c] of arr) { - let s = doSlice(a); - iterate(s); - delete s[0]; - called = false; - s[0] = 42; - if (a === d) { - assert(called); - called = false; - } - } -} diff --git a/implementation-contributed/javascriptcore/stress/heap-allocator-allocates-incorrect-size-for-activation.js b/implementation-contributed/javascriptcore/stress/heap-allocator-allocates-incorrect-size-for-activation.js deleted file mode 100644 index d48c9c9559e41a8ff3603a917db2bd92529342d4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/heap-allocator-allocates-incorrect-size-for-activation.js +++ /dev/null @@ -1,41 +0,0 @@ - -// Consider the following scenario: -// - On OS X, WTF::pageSize() is 4*1024 bytes. -// - JSEnvironmentRecord::allocationSizeForScopeSize(6621) == 53000 -// - sizeof(MarkedBlock) == 248 -// - (248 + 53000) is a multiple of 4*1024. -// - (248 + 53000)/(4*1024) == 13 - -// We will allocate a chunk of memory of size 53248 bytes that looks like this: -// 0 248 256 53248 53256 -// [Marked Block | 8 bytes | payload ...... ] 8 bytes | -// ^ ^ -// Our Environment record starts here. ^ -// ^ -// Our last JSValue in the environment record will go from byte 53248 to 53256. But, we don't own this memory. - -var numberOfCapturedVariables = 6621; -function use() { } -function makeFunction() { - var varName; - var outerFunction = ""; - var innerFunction = ""; - - for (var i = 0; i < numberOfCapturedVariables; i++) { - varName = "_" + i; - outerFunction += "var " + varName + ";"; - innerFunction += "use(" + varName + ");"; - } - outerFunction += "function foo() {" + innerFunction + "}"; - var functionString = "(function() { " + outerFunction + "})"; - var result = eval(functionString); - return result; -} - -var arr = []; -for (var i = 0; i < 50; i++) { - var f = makeFunction(); - f(); - fullGC(); -} - diff --git a/implementation-contributed/javascriptcore/stress/hoist-get-by-offset-with-control-dependent-inferred-type.js b/implementation-contributed/javascriptcore/stress/hoist-get-by-offset-with-control-dependent-inferred-type.js deleted file mode 100644 index a06b7e1ed2072da486c49f2ddafe051d25c79c1d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/hoist-get-by-offset-with-control-dependent-inferred-type.js +++ /dev/null @@ -1,14 +0,0 @@ -function f() { - var a = Array(100).fill(0); - var ta = new Set(a.map((v,k)=>k)); - var xs = [a, ta]; - var q = 0; - var t = Date.now(); - for (var i = 0; i < 100000; ++i) { - for (var x of xs[i&1]) q+=x; - } - return [Date.now()-t,q]; -} -noInline(f); -f(); - diff --git a/implementation-contributed/javascriptcore/stress/ic-throw-through-optimized-code.js b/implementation-contributed/javascriptcore/stress/ic-throw-through-optimized-code.js deleted file mode 100644 index 96404264a403690fb599f1609b09be9b53b3405a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/ic-throw-through-optimized-code.js +++ /dev/null @@ -1,29 +0,0 @@ -function foo(o) { - return o.f + 1; -} - -Number.prototype.f = 42; - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo(23); - if (result != 43) - throw "Error: bad result: " + result; - result = foo({f:25}); - if (result != 26) - throw "Error: bad result: " + result; - result = foo({g:12, f:13}); - if (result != 14) - throw "Error: bad result: " + result; -} - -var didThrow; -try { - foo(void 0); -} catch (e) { - didThrow = e; -} - -if (!didThrow || didThrow.toString().indexOf("TypeError:") != 0) - throw "Error: didn't throw or threw wrong exception: " + didThrow; diff --git a/implementation-contributed/javascriptcore/stress/ignore-promise-species.js b/implementation-contributed/javascriptcore/stress/ignore-promise-species.js index b5b25cf1a58ca3f413e3be3ec8bf152e7e46272b..373faf609ab940f5947ccb2fa1c9505c6898a7f2 100644 --- a/implementation-contributed/javascriptcore/stress/ignore-promise-species.js +++ b/implementation-contributed/javascriptcore/stress/ignore-promise-species.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/import-tests/cocoa.js b/implementation-contributed/javascriptcore/stress/import-tests/cocoa.js deleted file mode 100644 index 910b02c68c8a96066013d139daefed710627828b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/import-tests/cocoa.js +++ /dev/null @@ -1,7 +0,0 @@ -export class Cocoa { -} - -export function hello() -{ - return 42; -} diff --git a/implementation-contributed/javascriptcore/stress/import-tests/multiple.js b/implementation-contributed/javascriptcore/stress/import-tests/multiple.js deleted file mode 100644 index 41805c4032706e65d3fbb1e188261eb20dbd53d3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/import-tests/multiple.js +++ /dev/null @@ -1,4 +0,0 @@ -export function result() -{ - return import('./multiple2.js'); -} diff --git a/implementation-contributed/javascriptcore/stress/import-tests/multiple2.js b/implementation-contributed/javascriptcore/stress/import-tests/multiple2.js deleted file mode 100644 index ba6f85ab4a2aa80c61fa3913d1db30347625035a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/import-tests/multiple2.js +++ /dev/null @@ -1,4 +0,0 @@ -export function ok() -{ - return 42; -} diff --git a/implementation-contributed/javascriptcore/stress/import-tests/should.js b/implementation-contributed/javascriptcore/stress/import-tests/should.js deleted file mode 100644 index a006f84ebdfa01eac165d2fa2ed151ca7a64bad4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/import-tests/should.js +++ /dev/null @@ -1,19 +0,0 @@ -export function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)}`); -} - -export function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-accessors.js b/implementation-contributed/javascriptcore/stress/in-by-id-accessors.js deleted file mode 100644 index e38dd6d7a3bf1b86d4ae943709b645bd6647e770..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-accessors.js +++ /dev/null @@ -1,41 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test(object) -{ - var name = "hello"; - return name in object; -} -noInline(test); - -var protoGetter = { - __proto__: { - get hello() { - throw new Error("out"); - } - } -}; -var protoSetter = { - __proto__: { - set hello(value) { - throw new Error("out"); - } - } -}; -for (var i = 0; i < 1e5; ++i) { - shouldBe(test({ - get hello() { - throw new Error("out"); - } - }), true); - shouldBe(test({}), false); - shouldBe(test(protoGetter), true); - shouldBe(test({ - set hello(value) { - throw new Error("out"); - } - }), true); - shouldBe(test(protoSetter), true); -} diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-ai.js b/implementation-contributed/javascriptcore/stress/in-by-id-ai.js deleted file mode 100644 index 56a11ac72a5d2915961d66f8ed3a513a1c0f5fd4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-ai.js +++ /dev/null @@ -1,26 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test(object) -{ - var name = "hello"; - return name in object; -} -noInline(test); - -var proto = { - __proto__: { hello: 2 } -}; -for (var i = 0; i < 1e5; ++i) { - shouldBe(test({ - hello: 42 - }), true); - shouldBe(test({}), false); - shouldBe(test({ - helloworld: 43, - ok: 44 - }), false); - shouldBe(test(proto), true); -} diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-constant.js b/implementation-contributed/javascriptcore/stress/in-by-id-constant.js deleted file mode 100644 index 9319ea83c76d7884cb10a9887b9f6ce801afad43..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-constant.js +++ /dev/null @@ -1,33 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(obj) -{ - return "hello" in obj -} -noInline(test1); - -let array = [ - [{ - hello: 42 - }, true], - [{ - hello: 42, - world: 43 - }, true], - [{ - __proto__: { - hello: 44 - } - }, true] -]; -for (let i = 0; i < 1e5; ++i) { - for (let [obj, result] of array) - shouldBe(test1(obj), result); -} - -// OSRExits. -for (let i = 0; i < 1e5; ++i) - shouldBe(test1({}), false); diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-custom-values.js b/implementation-contributed/javascriptcore/stress/in-by-id-custom-values.js deleted file mode 100644 index 684781fc358f3ca6de50ccc48f314ff2184c43ea..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-custom-values.js +++ /dev/null @@ -1,17 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test(object) -{ - return "$1" in object; -} -noInline(test); - -var target1 = RegExp; -var target2 = { __proto__: RegExp }; -for (var i = 0; i < 1e5; ++i) { - shouldBe(test(target1), true); - shouldBe(test(target2), true); -} diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-match-invalid.js b/implementation-contributed/javascriptcore/stress/in-by-id-match-invalid.js deleted file mode 100644 index 51755e212ea6f0eb9e0b4eac0b3bdf50f15a9cc2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-match-invalid.js +++ /dev/null @@ -1,30 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(obj) -{ - return "hello" in obj -} -noInline(test1); - -let object1 = { - hello: 42 -}; -let object2 = { - cocoa: 44 -}; -for (let i = 0; i < 1e5; ++i) { - shouldBe(test1(object1), true); - shouldBe(test1(object2), false); -} -object2.hello = 44; -for (let i = 0; i < 1e5; ++i) { - shouldBe(test1(object1), true); - shouldBe(test1(object2), true); -} - -// OSRExits. -for (let i = 0; i < 1e5; ++i) - shouldBe(test1({}), false); diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-match.js b/implementation-contributed/javascriptcore/stress/in-by-id-match.js deleted file mode 100644 index 62ccc31ccfe10abbaf8358a5e090da1014c31c3f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-match.js +++ /dev/null @@ -1,32 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(obj) -{ - return "hello" in obj -} -noInline(test1); - -let array = [ - [{ - hello: 42 - }, true], - [{ - world: 43 - }, false], - [{ - __proto__: { - hello: 44 - } - }, true] -]; -for (let i = 0; i < 1e5; ++i) { - for (let [obj, result] of array) - shouldBe(test1(obj), result); -} - -// OSRExits. -for (let i = 0; i < 1e5; ++i) - shouldBe(test1({}), false); diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-operation.js b/implementation-contributed/javascriptcore/stress/in-by-id-operation.js deleted file mode 100644 index 95dd2c40e3199b206f0f66cb5b2b25fedee945b2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-operation.js +++ /dev/null @@ -1,42 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test(object) -{ - return "hello" in object; -} -noInline(test); - -for (var i = 0; i < 1e6; ++i) { - shouldBe(test({ - hello: 42 - }), true); - shouldBe(test({ - hello: undefined, - world: 44 - }), true); - shouldBe(test({ - helloworld: 43, - ok: 44 - }), false); -} - -function selfCache(object) -{ - return "hello" in object; -} -noInline(selfCache); - -var object = {}; -object.hello = 42; -for (var i = 0; i < 1e6; ++i) - shouldBe(selfCache(object), true); -object.world = 43; -shouldBe(selfCache(object), true); -object.world = 43; -shouldBe(selfCache({ __proto__: object }), true); -delete object.hello; -shouldBe(selfCache(object), false); -shouldBe(selfCache({ __proto__: object }), false); diff --git a/implementation-contributed/javascriptcore/stress/in-by-id-proxy.js b/implementation-contributed/javascriptcore/stress/in-by-id-proxy.js deleted file mode 100644 index 1e56bf2f8bb88bf36538d2339d2820be422ecd2c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-by-id-proxy.js +++ /dev/null @@ -1,44 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test(object) -{ - return "hello" in object; -} -noInline(test); - -var count = 0; -var target = null; -var key = null; -var handler = { - has(targetArg, keyArg) { - ++count; - target = targetArg; - key = keyArg; - return keyArg in targetArg; - } -}; -var targetObject = {}; -var proxy = new Proxy(targetObject, handler); -for (var i = 0; i < 1e4; ++i) { - shouldBe(count, i); - shouldBe(test(proxy), false); - shouldBe(target, targetObject); - shouldBe(key, "hello"); -} -targetObject.hello = 42; -for (var i = 0; i < 1e4; ++i) { - shouldBe(count, i + 1e4); - shouldBe(test(proxy), true); - shouldBe(target, targetObject); - shouldBe(key, "hello"); -} -delete targetObject.hello; -for (var i = 0; i < 1e4; ++i) { - shouldBe(count, i + 2e4); - shouldBe(test(proxy), false); - shouldBe(target, targetObject); - shouldBe(key, "hello"); -} diff --git a/implementation-contributed/javascriptcore/stress/in-ftl-exception-check.js b/implementation-contributed/javascriptcore/stress/in-ftl-exception-check.js deleted file mode 100644 index 7f5df01e1ebb58ab3a9755014cf47bcbf24e9870..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-ftl-exception-check.js +++ /dev/null @@ -1,19 +0,0 @@ -function foo(a) { - return bar(a); -} -noFTL(foo); -noInline(foo); - -function bar(a) { - return "bar" in a; -} -noInline(bar); - -for (let i = 0; i < 1000000; i++) { - if (foo({})) - throw new Error("bad"); -} - -try { - foo(""); -} catch (e) { } diff --git a/implementation-contributed/javascriptcore/stress/in-miss-variant-merge.js b/implementation-contributed/javascriptcore/stress/in-miss-variant-merge.js deleted file mode 100644 index 552ae59a5cfdc932541b03546fd9ba4967a3c06d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/in-miss-variant-merge.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} -noInline(shouldBe); - -function test(object) -{ - return 'return' in object; -} -noInline(test); - -var object1 = {}; -var object2 = { hello: 42 }; -for (var i = 0; i < 10; ++i) { - shouldBe(test(object1), false); -} -for (var i = 0; i < 1e6; ++i) { - shouldBe(test(object1), false); - shouldBe(test(object2), false); -} diff --git a/implementation-contributed/javascriptcore/stress/incomplete-unicode-locale.js b/implementation-contributed/javascriptcore/stress/incomplete-unicode-locale.js deleted file mode 100644 index c96be83bd80bbdfded33a40507edda9d09e108ae..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/incomplete-unicode-locale.js +++ /dev/null @@ -1,3 +0,0 @@ -try { - new Intl.NumberFormat("en-x-u"); -} catch (e) {} diff --git a/implementation-contributed/javascriptcore/stress/indirect-call-object-constructor-with-no-arguments.js b/implementation-contributed/javascriptcore/stress/indirect-call-object-constructor-with-no-arguments.js deleted file mode 100644 index e2853a5d2d836d80f9eb21bb3af82dc643d490ce..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/indirect-call-object-constructor-with-no-arguments.js +++ /dev/null @@ -1,9 +0,0 @@ -let foo = Object - -function test() { - return foo(); -} -noInline(test); - -for (i = 0; i < 100000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/infer-constant-global-property.js b/implementation-contributed/javascriptcore/stress/infer-constant-global-property.js deleted file mode 100644 index cc9dbeeeb8628e7d2dd7d4c0baede4105aa838dc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infer-constant-global-property.js +++ /dev/null @@ -1,18 +0,0 @@ -function foo(p) { - if (p) - Math = {sin: function() { return 42; }, PI: 43, abs: Math.abs}; -} - -noInline(foo); - -(function() { - var n = 100000; - var m = 100; - var result = 0; - for (var i = 0; i < n; ++i) { - foo(i == n - m); - result += Math.sin(Math.PI); - } - if (Math.abs(result - m * 42) > 1e-8) - throw "Error: bad result: " + result; -})(); diff --git a/implementation-contributed/javascriptcore/stress/infer-constant-property.js b/implementation-contributed/javascriptcore/stress/infer-constant-property.js deleted file mode 100644 index 605ae3db70a58f8008a40b8af2b6f3c64efc16f9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infer-constant-property.js +++ /dev/null @@ -1,22 +0,0 @@ -var o = {f:{f:{f:{f:{f:{f:{f:42}}}}}}}; - -function foo(p) { - if (p) - o.f.f.f.f.f.f = {f:53}; -} - -noInline(foo); - -(function() { - var n = 100000; - var m = 100; - var result = 0; - - for (var i = 0; i < n; ++i) { - foo(i == n - m); - result += o.f.f.f.f.f.f.f; - } - - if (result != (n - m) * 42 + m * 53) - throw "Error: bad result: " + result; -})(); diff --git a/implementation-contributed/javascriptcore/stress/infer-uninitialized-closure-var.js b/implementation-contributed/javascriptcore/stress/infer-uninitialized-closure-var.js deleted file mode 100644 index aa64af4ae394df675a638978f4ee65443bce06fd..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infer-uninitialized-closure-var.js +++ /dev/null @@ -1,26 +0,0 @@ -function foo(p) { - var x; - - noInline(f); - - if (p) { - var f = function() { return x; } - - foo(false); - - for (var i = 0; i < 10000; ++i) { - var result = f(); - if (result !== void 0) - throw "Error: bad result (1): " + result; - } - - x = 43; - - var result = f(); - if (result != 43) - throw "Error: bad result (2): " + result; - } else - x = 42; -} - -foo(true); diff --git a/implementation-contributed/javascriptcore/stress/inferred-infinite-loop-that-uses-captured-variables.js b/implementation-contributed/javascriptcore/stress/inferred-infinite-loop-that-uses-captured-variables.js deleted file mode 100644 index 733dbf1af07454ae996fd7c3009b01b1079dff24..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inferred-infinite-loop-that-uses-captured-variables.js +++ /dev/null @@ -1,27 +0,0 @@ -function bar(f) { - throw f; -} - -noInline(bar); - -var shouldContinue = true; - -function foo(a) { - var x = a + 1; - while (shouldContinue) { - bar(function() { return x; }); - } -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - try { - foo(i); - } catch (f) { - var result = f(); - if (result != i + 1) - throw "Error: bad result for i = " + i + ": " + result; - } -} - diff --git a/implementation-contributed/javascriptcore/stress/inferred-names.js b/implementation-contributed/javascriptcore/stress/inferred-names.js index aefb7e14a205412e10d49a15d36ea74e5f0a3d2e..d8fcd4455bcf4335dfed41b270dc7fab4d773a33 100644 --- a/implementation-contributed/javascriptcore/stress/inferred-names.js +++ b/implementation-contributed/javascriptcore/stress/inferred-names.js @@ -1,3 +1,7 @@ +// Reviewed +/*** + * https://github.com/Microsoft/ChakraCore/issues/3407 + */ function assert(b) { if (!b) throw new Error("Bad assertion") diff --git a/implementation-contributed/javascriptcore/stress/inferred-type-table-stale-identifiers.js b/implementation-contributed/javascriptcore/stress/inferred-type-table-stale-identifiers.js deleted file mode 100644 index a1b8c8e1fd10321f4cd23c4c53025d83d692282c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inferred-type-table-stale-identifiers.js +++ /dev/null @@ -1,220 +0,0 @@ -var o = {}; -o.f = 1; -o.g = 2; - -var p = {}; -p.f = 1; -p.g = 2; - -function foo(o) { - o.i0 = 0 - o.i1 = 1 - o.i2 = 2 - o.i3 = 3 - o.i4 = 4 - o.i5 = 5 - o.i6 = 6 - o.i7 = 7 - o.i8 = 8 - o.i9 = 9 - o.i10 = 10 - o.i11 = 11 - o.i12 = 12 - o.i13 = 13 - o.i14 = 14 - o.i15 = 15 - o.i16 = 16 - o.i17 = 17 - o.i18 = 18 - o.i19 = 19 - o.i20 = 20 - o.i21 = 21 - o.i22 = 22 - o.i23 = 23 - o.i24 = 24 - o.i25 = 25 - o.i26 = 26 - o.i27 = 27 - o.i28 = 28 - o.i29 = 29 - o.i30 = 30 - o.i31 = 31 - o.i32 = 32 - o.i33 = 33 - o.i34 = 34 - o.i35 = 35 - o.i36 = 36 - o.i37 = 37 - o.i38 = 38 - o.i39 = 39 - o.i40 = 40 - o.i41 = 41 - o.i42 = 42 - o.i43 = 43 - o.i44 = 44 - o.i45 = 45 - o.i46 = 46 - o.i47 = 47 - o.i48 = 48 - o.i49 = 49 - o.i50 = 50 - o.i51 = 51 - o.i52 = 52 - o.i53 = 53 - o.i54 = 54 - o.i55 = 55 - o.i56 = 56 - o.i57 = 57 - o.i58 = 58 - o.i59 = 59 - o.i60 = 60 - o.i61 = 61 - o.i62 = 62 - o.i63 = 63 - o.i64 = 64 - o.i65 = 65 - o.i66 = 66 - o.i67 = 67 - o.i68 = 68 - o.i69 = 69 - o.i70 = 70 - o.i71 = 71 - o.i72 = 72 - o.i73 = 73 - o.i74 = 74 - o.i75 = 75 - o.i76 = 76 - o.i77 = 77 - o.i78 = 78 - o.i79 = 79 - o.i80 = 80 - o.i81 = 81 - o.i82 = 82 - o.i83 = 83 - o.i84 = 84 - o.i85 = 85 - o.i86 = 86 - o.i87 = 87 - o.i88 = 88 - o.i89 = 89 - o.i90 = 90 - o.i91 = 91 - o.i92 = 92 - o.i93 = 93 - o.i94 = 94 - o.i95 = 95 - o.i96 = 96 - o.i97 = 97 - o.i98 = 98 - o.i99 = 99 -} - -foo(o); -foo = null; -o = null; -fullGC(); - -function bar(o) { - o.j0 = 0 - o.j1 = 1 - o.j2 = 2 - o.j3 = 3 - o.j4 = 4 - o.j5 = 5 - o.j6 = 6 - o.j7 = 7 - o.j8 = 8 - o.j9 = 9 - o.j10 = 10 - o.j11 = 11 - o.j12 = 12 - o.j13 = 13 - o.j14 = 14 - o.j15 = 15 - o.j16 = 16 - o.j17 = 17 - o.j18 = 18 - o.j19 = 19 - o.j20 = 20 - o.j21 = 21 - o.j22 = 22 - o.j23 = 23 - o.j24 = 24 - o.j25 = 25 - o.j26 = 26 - o.j27 = 27 - o.j28 = 28 - o.j29 = 29 - o.j30 = 30 - o.j31 = 31 - o.j32 = 32 - o.j33 = 33 - o.j34 = 34 - o.j35 = 35 - o.j36 = 36 - o.j37 = 37 - o.j38 = 38 - o.j39 = 39 - o.j40 = 40 - o.j41 = 41 - o.j42 = 42 - o.j43 = 43 - o.j44 = 44 - o.j45 = 45 - o.j46 = 46 - o.j47 = 47 - o.j48 = 48 - o.j49 = 49 - o.j50 = 50 - o.j51 = 51 - o.j52 = 52 - o.j53 = 53 - o.j54 = 54 - o.j55 = 55 - o.j56 = 56 - o.j57 = 57 - o.j58 = 58 - o.j59 = 59 - o.j60 = 60 - o.j61 = 61 - o.j62 = 62 - o.j63 = 63 - o.j64 = 64 - o.j65 = 65 - o.j66 = 66 - o.j67 = 67 - o.j68 = 68 - o.j69 = 69 - o.j70 = 70 - o.j71 = 71 - o.j72 = 72 - o.j73 = 73 - o.j74 = 74 - o.j75 = 75 - o.j76 = 76 - o.j77 = 77 - o.j78 = 78 - o.j79 = 79 - o.j80 = 80 - o.j81 = 81 - o.j82 = 82 - o.j83 = 83 - o.j84 = 84 - o.j85 = 85 - o.j86 = 86 - o.j87 = 87 - o.j88 = 88 - o.j89 = 89 - o.j90 = 90 - o.j91 = 91 - o.j92 = 92 - o.j93 = 93 - o.j94 = 94 - o.j95 = 95 - o.j96 = 96 - o.j97 = 97 - o.j98 = 98 - o.j99 = 99 -} - -bar(p); diff --git a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-before-throwing.js b/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-before-throwing.js deleted file mode 100644 index 2961ada92a7efcd630fab12e75c63a1d7b543bea..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-before-throwing.js +++ /dev/null @@ -1,34 +0,0 @@ -var count = 0; - -function bar(f) { - if (++count < 10) { - var result = f(); - if (result != i + 1) - throw "Error: bad result insie closure for i = " + i + ": " + result; - return; - } - count = 0; - throw f; -} - -noInline(bar); - -function foo(a) { - var x = a + 1; - for (;;) { - bar(function() { return x; }); - } -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - try { - foo(i); - } catch (f) { - var result = f(); - if (result != i + 1) - throw "Error: bad result for i = " + i + ": " + result; - } -} - diff --git a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-but-they-do-not-escape.js b/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-but-they-do-not-escape.js deleted file mode 100644 index ebce9fe2c8d8cda985472fea89ff9b84533b0c78..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-but-they-do-not-escape.js +++ /dev/null @@ -1,33 +0,0 @@ -var count = 0; - -function bar(f) { - if (++count < 10) { - var result = f(); - if (result != i + 1) - throw "Error: bad result insie closure for i = " + i + ": " + result; - return; - } - count = 0; - throw "done"; -} - -noInline(bar); - -function foo(a) { - var x = a + 1; - for (;;) { - bar(function() { return x; }); - } -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - try { - foo(i); - } catch (done) { - if (done != "done") - throw "Error: bad exception: " + done; - } -} - diff --git a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-with-osr-entry.js b/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-with-osr-entry.js deleted file mode 100644 index c152e1ce08b162198e43d5cb91cce718583b671d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables-with-osr-entry.js +++ /dev/null @@ -1,26 +0,0 @@ -var count = 0; - -function bar(f) { - if (++count >= 10000) - throw f; -} - -noInline(bar); - -function foo(a) { - var x = a + 1; - for (;;) { - bar(function() { return x; }); - } -} - -noInline(foo); - -try { - foo(42); -} catch (f) { - var result = f(); - if (result != 43) - throw "Error: bad result: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables.js b/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables.js deleted file mode 100644 index fd614a2b9feaab9c60fe6e5d6622ce2456f03154..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/infinite-loop-that-uses-captured-variables.js +++ /dev/null @@ -1,25 +0,0 @@ -function bar(f) { - throw f; -} - -noInline(bar); - -function foo(a) { - var x = a + 1; - for (;;) { - bar(function() { return x; }); - } -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - try { - foo(i); - } catch (f) { - var result = f(); - if (result != i + 1) - throw "Error: bad result for i = " + i + ": " + result; - } -} - diff --git a/implementation-contributed/javascriptcore/stress/initialize_functions_after_arguments.js b/implementation-contributed/javascriptcore/stress/initialize_functions_after_arguments.js deleted file mode 100644 index 6498a66f4708f2e5b108da382fd102aa3ef62942..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/initialize_functions_after_arguments.js +++ /dev/null @@ -1,8 +0,0 @@ -(function (Thing){ - function Thing() { - } - function other() { - Thing; - } - Thing(); -})(2) diff --git a/implementation-contributed/javascriptcore/stress/injected-numeric-setter-on-prototype.js b/implementation-contributed/javascriptcore/stress/injected-numeric-setter-on-prototype.js deleted file mode 100644 index 594de33746bb0907481681f62c52117f2eb108be..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/injected-numeric-setter-on-prototype.js +++ /dev/null @@ -1,36 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -class Trace { - constructor() - { - this.__count = 0; - } - - trace() - { - this.__count++; - } - - get count() - { - return this.__count; - } -} - -for (var i = 0; i < 10000; ++i) { - var t0 = new Trace(); - - var object = {}; - shouldBe(t0.count, 0); - var a = {__proto__: object }; - shouldBe(t0.count, 0); - Object.defineProperty(object, 3, { - set: function (x) { t0.trace() } - }); - a[3] = 7; - shouldBe(t0.count, 1); -} diff --git a/implementation-contributed/javascriptcore/stress/inline-call-that-doesnt-use-all-args.js b/implementation-contributed/javascriptcore/stress/inline-call-that-doesnt-use-all-args.js deleted file mode 100644 index afbb790bb50392f579ce1d4ea45d05fa5c21a82c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-call-that-doesnt-use-all-args.js +++ /dev/null @@ -1,27 +0,0 @@ -function foo(a, b, c) { - return 42; -} - -function bar(a, b, c) { - return a + b + c; -} - -function baz(f, o) { - return f(o[0], o[1], o[2]); -} - -noInline(baz); - -var o = new Float32Array(3); -o[0] = 1; -o[1] = 2; -o[2] = 3; -for (var i = 0; i < 10000; ++i) { - var result = baz(foo, o); - if (result != 42) - throw "Error: bad result in loop: " + result; -} - -var result = baz(bar, o); -if (result != 6) - throw "Error: bad result in loop: " + result; diff --git a/implementation-contributed/javascriptcore/stress/inline-call-to-recursive-tail-call.js b/implementation-contributed/javascriptcore/stress/inline-call-to-recursive-tail-call.js deleted file mode 100644 index b00f71853d77d129a8eda5cd857a1dc9148c963c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-call-to-recursive-tail-call.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -// factorial calls aux that tail-calls back into factorial. -// It is not OK to turn that tail call into a jump back to the top of the function, because the call to aux is not a tail call. -function factorial(n) { - function aux(n) { - if (n == 1) - return 1; - return factorial(n - 1); - } - - return n * aux(n); -} - -// Same, but this time with an irrelevant tail call in factorial. -// This exercises a different code path because the recursive tail call optimization aborts early if the op_enter block is not split, and it is split by the detection of a tail call. -function factorial2(n) { - function aux2(n) { - if (n == 1) - return 1; - return factorial2(n - 1); - } - function id(n) { - return n; - } - - return id(n * aux2(n)); -} - -// This time, aux is tail-calling itself: the optimization is valid but must jump to the start of aux3, not of factorial3. -function factorial3(n) { - function aux3(n, acc) { - if (n == 1) - return acc; - return aux3 (n-1, n*acc); - } - - return n * aux3(n-1, 1); -} - -// In this case, it is valid to jump all the way to the top of factorial4, because all calls are tail calls. -function factorial4(n, acc) { - function aux4(n, acc) { - if (n == 1) - return acc; - return factorial4(n-1, n*acc); - } - - if (acc) - return aux4(n, acc); - return aux4(n, 1); -} - -// This function is used to test that recursing with a different number of arguments doesn't mess up with the stack. -// The first two tail calls should be optimized, but not the last one (no place on the stack for the third argument). -function foo(a, b) { - if (a == 0) - return 42; - if (a == 1) - return foo(a - 1); - if (a == 2) - return foo(b - 1, a); - return foo (b - 1, a, 43); -} - -// Same deal as foo, just with an inlining thrown into the mix. -// Even the first tail call should not be optimized in this case, because some code in the compiler may constant-fold the number of arguments in that case. -function bar(x, y) { - function auxBar(a, b) { - if (a == 0) - return 42; - if (a == 1) - return auxBar(a - 1); - if (a == 2) - return auxBar(b - 1, a); - return auxBar(b - 1, a, 43); - } - - return auxBar(x, y); -} - -function test(result, expected, name) { - if (result != expected) - throw "Wrong result for " + name + ": " + result + " instead of " + expected; -} - -for (var i = 0; i < 10000; ++i) { - test(factorial(20), 2432902008176640000, "factorial"); - test(factorial2(20), 2432902008176640000, "factorial2"); - test(factorial3(20), 2432902008176640000, "factorial3"); - test(factorial4(20), 2432902008176640000, "factorial4"); - test(foo(10, 10), 42, "foo"); - test(bar(10, 10), 42, "bar"); -} diff --git a/implementation-contributed/javascriptcore/stress/inline-call-varargs-and-call.js b/implementation-contributed/javascriptcore/stress/inline-call-varargs-and-call.js deleted file mode 100644 index e001d25600de455d92236662f16ff66200c24e40..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-call-varargs-and-call.js +++ /dev/null @@ -1,25 +0,0 @@ -function foo(a, b) { - return bar(a, b); -} - -function bar(a, b) { - var x = baz.apply(null, arguments); - var y = baz(a, b) - return x + y * 3; -} - -function baz(a, b) { - return a + b * 2; -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo(7, 11); - if (result != 116) - throw "Error: bad result: " + result; -} - -var result = foo(5, 2147483646); -if (result != 17179869188) - throw "Error: bad result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/inline-call-varargs.js b/implementation-contributed/javascriptcore/stress/inline-call-varargs.js deleted file mode 100644 index ae7a54509a729229509c9cfb11daa01db3741a6b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-call-varargs.js +++ /dev/null @@ -1,23 +0,0 @@ -function foo(a, b) { - return bar(a, b); -} - -function bar(a, b) { - return baz.apply(null, arguments); -} - -function baz(a, b) { - return a + b * 2; -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo(7, 11); - if (result != 29) - throw "Error: bad result: " + result; -} - -var result = foo(5, 2147483646); -if (result != 4294967297) - throw "Error: bad result: " + result; diff --git a/implementation-contributed/javascriptcore/stress/inline-closure-call.js b/implementation-contributed/javascriptcore/stress/inline-closure-call.js deleted file mode 100644 index 7d9a614dfa4ec8f346a20012a60bde898dbaab0b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-closure-call.js +++ /dev/null @@ -1,16 +0,0 @@ -function foo(x) { - return function(y) { return x + y; } -} - -function bar(a, b) { - return foo(a)(b); -} - -noInline(foo); -noInline(bar); - -for (var i = 0; i < 100000; ++i) { - var result = bar(i, i + 1); - if (result != i * 2 + 1) - throw "Error: bad result for " + i + ": " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/inline-llint-with-switch.js b/implementation-contributed/javascriptcore/stress/inline-llint-with-switch.js deleted file mode 100644 index 84b7b6bdfbac989c0ed005dd95b57bb649638ff9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-llint-with-switch.js +++ /dev/null @@ -1,43 +0,0 @@ -function foo(i) { - switch (i) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return 42; - default: - return "error"; - } -} - -function bar(p) { - if (p) - return foo(effectful42() - 42); - else - return 42; -} - -noInline(bar); - -function test(p) { - var result = bar(p); - if (result != 42) - throw "Error: bad result: " + result; -} - -// Make sure that the call to foo() looks like it has happened. -for (var i = 0; i < 2; ++i) - test(true); - -// Warm up bar and cause inlining, but make sure that foo() doesn't get DFG'd. -for (var i = 0; i < 10000; ++i) - test(false); - -// And finally test the switch statement. -test(true); diff --git a/implementation-contributed/javascriptcore/stress/inline-varargs-get-arguments.js b/implementation-contributed/javascriptcore/stress/inline-varargs-get-arguments.js deleted file mode 100644 index 041dd692878a45b66ed7ad42ce11c4f63fec101a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inline-varargs-get-arguments.js +++ /dev/null @@ -1,23 +0,0 @@ -function foo(f, array) { - return f.apply(this, array); -} - -function bar(a, b, c) { - return baz(); -} - -function baz() { - return bar.arguments[3]; -} - -noInline(foo); -noInline(baz); - -var array = [0, 0, 0, 42]; - -for (var i = 0; i < 10000; ++i) { - var result = foo(bar, array); - if (result != 42) - throw "Error: bad result: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/inlined-constructor-this-liveness.js b/implementation-contributed/javascriptcore/stress/inlined-constructor-this-liveness.js deleted file mode 100644 index bded332c4681c5c77565dbf247fcabdeb71655db..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inlined-constructor-this-liveness.js +++ /dev/null @@ -1,24 +0,0 @@ -function Foo(a, b) { - this.f = a.f; - this.g = b.f + 1; -} - -function foo(a, b) { - return new Foo(a, b); -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo({f:1}, {f:2}); - if (result.f != 1) - throw "Error: bad result.f: " + result.f; - if (result.g != 3) - throw "Error: bad result.g: " + result.g; -} - -var result = foo({f:1}, {f:2.5}); -if (result.f != 1) - throw "Error: bad result.f: " + result.f; -if (result.g != 3.5) - throw "Error: bad result.f: " + result.g; diff --git a/implementation-contributed/javascriptcore/stress/inlined-error-gets-correct-codeblock-for-bytecodeoffset.js b/implementation-contributed/javascriptcore/stress/inlined-error-gets-correct-codeblock-for-bytecodeoffset.js deleted file mode 100644 index 7d1c21133f134b6793bdfc38ace04981553c4f0e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inlined-error-gets-correct-codeblock-for-bytecodeoffset.js +++ /dev/null @@ -1,32 +0,0 @@ -function map(e,t,i){ - var r; - var o=0; - var s=e.length; - var a=n(e); - var l=[]; - if(a) { - for(;s>o;o++){ - r=t(e[o],o,i); - null!=r&&l.push(r); - } - } - return l -} - -function n(e){ - var t="length" in e && e.length; - var n = typeof e; - return "function" === n || t; -} -noInline(map); - -function one() { return 1; } - -for(i = 0; i < 20000; i++) { - map([], one, ""); -} - -// This should throw an exception but it shouldn't crash. -try { - map("", one, ""); -} catch (e) { } diff --git a/implementation-contributed/javascriptcore/stress/inlined-function-this-liveness.js b/implementation-contributed/javascriptcore/stress/inlined-function-this-liveness.js deleted file mode 100644 index 5d667c6e35873b61d0dd2ae4fed74a13f8d9f3e4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inlined-function-this-liveness.js +++ /dev/null @@ -1,26 +0,0 @@ -function bar(a, b) { - this.f = a.f; - this.g = b.f + 1; - return this; -} - -function foo(a, b) { - var o = {f:bar}; - return o.f(a, b); -} - -noInline(foo); - -for (var i = 0; i < 100000; ++i) { - var result = foo({f:1}, {f:2}); - if (result.f != 1) - throw "Error: bad result.f: " + result.f; - if (result.g != 3) - throw "Error: bad result.g: " + result.g; -} - -var result = foo({f:1}, {f:2.5}); -if (result.f != 1) - throw "Error: bad result.f: " + result.f; -if (result.g != 3.5) - throw "Error: bad result.f: " + result.g; diff --git a/implementation-contributed/javascriptcore/stress/inlined-tail-call-in-inlined-setter-should-not-crash-when-getting-value-profile.js b/implementation-contributed/javascriptcore/stress/inlined-tail-call-in-inlined-setter-should-not-crash-when-getting-value-profile.js deleted file mode 100644 index 4e6dee8fcfc49bb1795809beea24982b238a5b2f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inlined-tail-call-in-inlined-setter-should-not-crash-when-getting-value-profile.js +++ /dev/null @@ -1,13 +0,0 @@ -let o = { - set foo(x) { - 'use strict'; - return bar(); - } -}; - -function bar() { - return 20; -} - -for (let i = 0; i < 100000; i++) - o.foo = 20; diff --git a/implementation-contributed/javascriptcore/stress/inlining-unreachable-non-tail.js b/implementation-contributed/javascriptcore/stress/inlining-unreachable-non-tail.js deleted file mode 100644 index 7ceb136afe99e4ee96b28eaa1d0ad02df9fe1d29..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inlining-unreachable-non-tail.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var foo = class { - constructor() { - foo(); - try {} catch {} - } -}; -for (var i = 0; i < 1000; i++) { - try { - new foo(); - } catch {} -} diff --git a/implementation-contributed/javascriptcore/stress/inlining-unreachable.js b/implementation-contributed/javascriptcore/stress/inlining-unreachable.js deleted file mode 100644 index 35bd2cffdd45323b85aa842ff83de2eead422a7d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inlining-unreachable.js +++ /dev/null @@ -1,9 +0,0 @@ -var bar = class Bar { }; -var baz = class Baz { - constructor() { bar(); } -}; -for (var i = 0; i < 10000; i++) { - try { - new baz(); - } catch (e) {} -} diff --git a/implementation-contributed/javascriptcore/stress/inserted-recovery-with-set-last-index.js b/implementation-contributed/javascriptcore/stress/inserted-recovery-with-set-last-index.js deleted file mode 100644 index 2df1cd9b313b03100d38a77daf2ac5347a90ebb3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/inserted-recovery-with-set-last-index.js +++ /dev/null @@ -1,28 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function foo(p) { - var o = /Hello/; - if (p) { - var res = /World/; - res.lastIndex = o; - return res; - } -} - -noInline(foo); - -var array = new Array(1000); -for (var i = 0; i < 400000; ++i) { - var o = foo(i & 0x1); - if (i & 0x1) { - shouldBe(o instanceof RegExp, true); - shouldBe(o.toString(), "/World/"); - shouldBe(o.lastIndex.toString(), "/Hello/"); - } - array[i % array.length] = o; -} - diff --git a/implementation-contributed/javascriptcore/stress/json-stringified-overflow-2.js b/implementation-contributed/javascriptcore/stress/json-stringified-overflow-2.js deleted file mode 100644 index c14814b5d2b1d91f8b15548967e5430669c1b4a2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/json-stringified-overflow-2.js +++ /dev/null @@ -1,10 +0,0 @@ -//@ skip if $memoryLimited - -try { - const s = "a".padStart(0x80000000 - 1); - JSON.stringify(s); -} catch(e) { - if (e != "Error: Out of memory") - throw e; -} - diff --git a/implementation-contributed/javascriptcore/stress/json-stringified-overflow.js b/implementation-contributed/javascriptcore/stress/json-stringified-overflow.js deleted file mode 100644 index 48523bc7df7574b30111de61fd67a1a081700538..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/json-stringified-overflow.js +++ /dev/null @@ -1,9 +0,0 @@ -//@ skip if $memoryLimited - -try { - const s = "123".padStart(1073741823); - JSON.stringify(s); -} catch(e) { - if (e != "Error: Out of memory") - throw e; -} diff --git a/implementation-contributed/javascriptcore/stress/json-stringify-gap-calculation-should-be-after-replacer-check.js b/implementation-contributed/javascriptcore/stress/json-stringify-gap-calculation-should-be-after-replacer-check.js deleted file mode 100644 index fda20d624c3707dedd186917e74736a1f1048e70..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/json-stringify-gap-calculation-should-be-after-replacer-check.js +++ /dev/null @@ -1,33 +0,0 @@ -var proxy = Proxy.revocable([], {}); -proxy.revoke(); - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -shouldThrow(() => { - var string = new String("Hello"); - string.toString = function () { - throw new Error("Out"); - }; - JSON.stringify({}, proxy.proxy, string); -}, `TypeError: Array.isArray cannot be called on a Proxy that has been revoked`); - -shouldThrow(() => { - var string = new String("Hello"); - string.toString = function () { - throw new Error("Out"); - }; - JSON.stringify({}, [], string); -}, `Error: Out`); diff --git a/implementation-contributed/javascriptcore/stress/json-stringify-getter-call.js b/implementation-contributed/javascriptcore/stress/json-stringify-getter-call.js deleted file mode 100644 index 30fdd190eff1eb6a657766d045db6682df3a61bf..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/json-stringify-getter-call.js +++ /dev/null @@ -1,32 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -class A { - get cocoa() { - return "Cocoa"; - } - - get cappuccino() { - return "Cappuccino"; - } -} - -let a = new A(); -shouldBe(JSON.stringify(a), `{}`); -shouldBe(JSON.stringify(a, ["cocoa", "cappuccino"]), `{"cocoa":"Cocoa","cappuccino":"Cappuccino"}`); - -let array = [0, 1, 2, 3, 4]; -Object.defineProperty(array.__proto__, 1, { - get: function () { - return "Cocoa"; - } -}); -Object.defineProperty(array, 0, { - get: function () { - delete array[1]; - return "Cappuccino"; - } -}); -shouldBe(JSON.stringify(array), `["Cappuccino","Cocoa",2,3,4]`); diff --git a/implementation-contributed/javascriptcore/stress/json-stringify-with-non-jsarray-array.js b/implementation-contributed/javascriptcore/stress/json-stringify-with-non-jsarray-array.js deleted file mode 100644 index 8eb39625b68f4afd8bd12a4a033fe6d1205ed0cf..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/json-stringify-with-non-jsarray-array.js +++ /dev/null @@ -1,36 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error(`bad value: ${String(actual)}`); -} - -function shouldThrow(func, errorMessage) -{ - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -shouldBe(JSON.stringify(new Proxy([undefined], {})), `[null]`); -shouldBe(JSON.stringify(new Proxy([function() { }], {})), `[null]`); -shouldBe(JSON.stringify(new Proxy({ value: undefined }, {})), `{}`); - -shouldThrow(function () { - let proxy = new Proxy([], { - get(theTarget, propName) { - if (propName === 'length') - throw new Error('ok'); - return 42; - } - }); - JSON.stringify(proxy); -}, `Error: ok`); diff --git a/implementation-contributed/javascriptcore/stress/jsonp-literal-parser-semicolon-is-not-assignment.js b/implementation-contributed/javascriptcore/stress/jsonp-literal-parser-semicolon-is-not-assignment.js deleted file mode 100644 index 81aa62aecbfcf56befdc9a45bc4126e239129636..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/jsonp-literal-parser-semicolon-is-not-assignment.js +++ /dev/null @@ -1,4 +0,0 @@ -x = undefined; -load("./resources/literal-parser-test-case.js"); -if (x !== undefined) - throw new Error("Bad result"); diff --git a/implementation-contributed/javascriptcore/stress/jsonp-program-evaluate-path-must-consider-global-lexical-environment.js b/implementation-contributed/javascriptcore/stress/jsonp-program-evaluate-path-must-consider-global-lexical-environment.js deleted file mode 100644 index dd94bf3ae8bda50ec1dfe1c329bfe289b532fa15..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/jsonp-program-evaluate-path-must-consider-global-lexical-environment.js +++ /dev/null @@ -1,53 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad"); -} - -disableRichSourceInfo(); // This is needed for the JSONP path to be taken for calls. - -let a = 22; -loadString("a = 42"); -assert(a === 42); - -let b = {f: 22}; -loadString("b.f = 42"); -assert(b.f === 42); - -let foo = null; -let bar = 42; -loadString("foo = 'root'; bar = 5") -assert(foo === "root"); -assert(bar === 5); - -let called = false; -let func = (a) => { - assert(a.foo === 20); - called = true; -}; - -loadString("func({foo:20})"); -assert(called); - -called = false; -let o = { - foo(arg) { - assert(arg.foo === 20); - called = true; - } -}; - -loadString("o.foo({foo:20})"); -assert(called); - -var theVar = 20; -loadString("theVar = 42"); -assert(theVar === 42); -assert(this.theVar === 42); - -called = false; -var varFunc = (a) => { - assert(a.foo === 20); - called = true; -}; -loadString("varFunc({foo:20})"); -assert(called); diff --git a/implementation-contributed/javascriptcore/stress/keep-checks-when-converting-to-lazy-js-constant-in-strength-reduction.js b/implementation-contributed/javascriptcore/stress/keep-checks-when-converting-to-lazy-js-constant-in-strength-reduction.js deleted file mode 100644 index f4c6d40eba345f25950a9145076bffc5345f410f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/keep-checks-when-converting-to-lazy-js-constant-in-strength-reduction.js +++ /dev/null @@ -1,7 +0,0 @@ -//@ runDefault("--jitPolicyScale=0", "--useConcurrentJIT=false") - -let bar; -for (let i = 0; i < 20; ++i) { - bar = i ** 0; - bar + ''; -} diff --git a/implementation-contributed/javascriptcore/stress/large-regexp.js b/implementation-contributed/javascriptcore/stress/large-regexp.js deleted file mode 100644 index 8349bedb54062683704fc32b1cadb22359afb6d1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/large-regexp.js +++ /dev/null @@ -1,11 +0,0 @@ -if (''.match(/(,9111111111{2257483648,}[:lower:])|(ab)/)) - throw new Error("Incorrect result, should not have matched") - -if (''.match(/(1{1,2147483648})|(ab)/)) - throw new Error("Incorrect result, should not have matched") - -if (''.match(/(1{2147480000,}2{3648,})|(ab)/)) - throw new Error("Incorrect result, should not have matched") - -if (!'1234'.match(/1{1,2147483645}2{1,2147483645}3{1,2147483645}4{1,2147483645}/)) - throw new Error("Incorrect result, should have matched") diff --git a/implementation-contributed/javascriptcore/stress/many-sunken-locals.js b/implementation-contributed/javascriptcore/stress/many-sunken-locals.js deleted file mode 100644 index b50aee26992615f3805a1699531ed5837a828c9a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/many-sunken-locals.js +++ /dev/null @@ -1,27 +0,0 @@ -function foo(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) { - if (a) - return 42; - else - return 63; -} - -function bar(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) { - return foo(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z); -} - -function baz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) { - return bar(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z); -} - -function fuzz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) { - return baz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z); -} - -function buzz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z) { - return fuzz(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z); -} - -noInline(buzz); - -for (var i = 0; i < 10000; ++i) - buzz(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26); diff --git a/implementation-contributed/javascriptcore/stress/map-set-cse.js b/implementation-contributed/javascriptcore/stress/map-set-cse.js deleted file mode 100644 index 05495a8c6b338d25b12b6393bc2e4953369f7bd5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/map-set-cse.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test() -{ - var map = new Map(); - var r1 = map.get(42); - map.set(42, 42); - var r2 = map.get(42); - return [r1, r2]; -} -noInline(test); - -for (var i = 0; i < 1e5; ++i) { - let [r1, r2] = test(); - shouldBe(r1, undefined); - shouldBe(r2, 42); -} diff --git a/implementation-contributed/javascriptcore/stress/math-abs-positive.js b/implementation-contributed/javascriptcore/stress/math-abs-positive.js deleted file mode 100644 index fc4e1646056b1352d3568b61822e3afb475ceb5b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-abs-positive.js +++ /dev/null @@ -1,11 +0,0 @@ -var minus_three_quarters = -0.75; - -function foo() { - return Math.abs(minus_three_quarters); -} - -for (var i = 0; i < 10000; i++) { - var result = foo(); - if (result < 0) - throw "Error: Math.abs returned a negative value."; -} diff --git a/implementation-contributed/javascriptcore/stress/math-ceil-arith-rounding-mode.js b/implementation-contributed/javascriptcore/stress/math-ceil-arith-rounding-mode.js deleted file mode 100644 index 3ebfcebf3bf03e001ff5acbc8c5885e42392e337..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-ceil-arith-rounding-mode.js +++ /dev/null @@ -1,85 +0,0 @@ -function firstCareAboutZeroSecondDoesNot(a) { - var resultA = Math.ceil(a); - var resultB = Math.ceil(a)|0; - return { resultA:resultA, resultB:resultB }; -} -noInline(firstCareAboutZeroSecondDoesNot); - -function firstDoNotCareAboutZeroSecondDoes(a) { - var resultA = Math.ceil(a)|0; - var resultB = Math.ceil(a); - return { resultA:resultA, resultB:resultB }; -} -noInline(firstDoNotCareAboutZeroSecondDoes); - -// Warmup with doubles, but nothing that would ceil to -0 to ensure we never -// see a double as result. The result must be integers, the input is kept to small values. -function warmup() { - for (var i = 0; i < 1e4; ++i) { - firstCareAboutZeroSecondDoesNot(42.6 + i); - firstDoNotCareAboutZeroSecondDoes(42.4 + i); - } -} -warmup(); - -function verifyNegativeZeroIsPreserved() { - for (var i = 0; i < 1e4; ++i) { - var result1 = firstCareAboutZeroSecondDoesNot(-0.1); - if (1 / result1.resultA !== -Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.1), resultA = " + result1.resultA); - } - if (1 / result1.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.1), resultB = " + result1.resultB); - } - var result2 = firstDoNotCareAboutZeroSecondDoes(-0.1); - if (1 / result2.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultA = " + result1.resultA); - } - if (1 / result2.resultB !== -Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultB = " + result1.resultB); - } - var result3 = firstCareAboutZeroSecondDoesNot(-0.0); - if (1 / result3.resultA !== -Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.0), resultA = " + result3.resultA); - } - if (1 / result3.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.0), resultB = " + result3.resultB); - } - var result4 = firstDoNotCareAboutZeroSecondDoes(-0.0); - if (1 / result4.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.0), resultA = " + result4.resultA); - } - if (1 / result4.resultB !== -Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.0), resultB = " + result4.resultB); - } - var result5 = firstCareAboutZeroSecondDoesNot(0.0); - if (1 / result5.resultA !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.0), resultA = " + result5.resultA); - } - if (1 / result5.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.0), resultB = " + result5.resultB); - } - var result6 = firstDoNotCareAboutZeroSecondDoes(0.0); - if (1 / result6.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.0), resultA = " + result6.resultA); - } - if (1 / result6.resultB !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.0), resultB = " + result6.resultB); - } - var result7 = firstCareAboutZeroSecondDoesNot(0.1); - if (1 / result7.resultA !== 1) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.1), resultA = " + result7.resultA); - } - if (1 / result7.resultB !== 1) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.1), resultB = " + result7.resultB); - } - var result8 = firstDoNotCareAboutZeroSecondDoes(0.1); - if (1 / result8.resultA !== 1) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.1), resultA = " + result8.resultA); - } - if (1 / result8.resultB !== 1) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.1), resultB = " + result8.resultB); - } - } -} -verifyNegativeZeroIsPreserved(); diff --git a/implementation-contributed/javascriptcore/stress/math-ceil-basics.js b/implementation-contributed/javascriptcore/stress/math-ceil-basics.js deleted file mode 100644 index 2c0f54d3fdc9b07ae993548d31b1537ef2770a83..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-ceil-basics.js +++ /dev/null @@ -1,257 +0,0 @@ - -function mathCeilOnIntegers(value) -{ - return Math.ceil(value); -} -noInline(mathCeilOnIntegers); - -function mathCeilOnDoubles(value) -{ - return Math.ceil(value); -} -noInline(mathCeilOnDoubles); - -function mathCeilOnBooleans(value) -{ - return Math.ceil(value); -} -noInline(mathCeilOnBooleans); - -// The trivial cases first. -for (var i = 1; i < 1e4; ++i) { - var ceiledValue = mathCeilOnIntegers(i); - if (ceiledValue !== i) - throw new Error("mathCeilOnIntegers(" + i + ") = " + ceiledValue); - - var ceiledValue = mathCeilOnIntegers(-i); - if (ceiledValue !== -i) - throw new Error("mathCeilOnIntegers(" + -i + ") = " + ceiledValue); - - var doubleLow = i + 0.4; - var ceiledValue = mathCeilOnDoubles(doubleLow); - if (ceiledValue !== i + 1.0) - throw new Error("mathCeilOnDoubles(" + doubleLow + ") = " + ceiledValue); - - var doubleHigh = i + 0.6; - var ceiledValue = mathCeilOnDoubles(doubleHigh); - if (ceiledValue !== i + 1) - throw new Error("mathCeilOnDoubles(" + doubleHigh + ") = " + ceiledValue); - - var doubleMid = i + 0.5; - var ceiledValue = mathCeilOnDoubles(doubleMid); - if (ceiledValue !== i + 1) - throw new Error("mathCeilOnDoubles(" + doubleMid + ") = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(-0.6); - if (ceiledValue !== -0.0) - throw new Error("mathCeilOnDoubles(-0.6) = " + ceiledValue); -} - -// Some more interesting cases, some of them well OSR exit when the return value is zero. -for (var i = 0; i < 1e4; ++i) { - var ceiledValue = mathCeilOnIntegers(i); - if (ceiledValue !== i) - throw new Error("mathCeilOnIntegers(" + i + ") = " + ceiledValue); - - var ceiledValue = mathCeilOnIntegers(-i); - if (ceiledValue !== -i) - throw new Error("mathCeilOnIntegers(-" + i + ") = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(-0.4); - if (ceiledValue !== 0) - throw new Error("mathCeilOnDoubles(-0.4) = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(-0.5); - if (ceiledValue !== 0) - throw new Error("mathCeilOnDoubles(-0.5) = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(-0); - if (!(ceiledValue === 0 && (1/ceiledValue) === -Infinity)) - throw new Error("mathCeilOnDoubles(-0) = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(NaN); - if (ceiledValue === ceiledValue) - throw new Error("mathCeilOnDoubles(NaN) = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(Number.POSITIVE_INFINITY); - if (ceiledValue !== Number.POSITIVE_INFINITY) - throw new Error("mathCeilOnDoubles(Number.POSITIVE_INFINITY) = " + ceiledValue); - - var ceiledValue = mathCeilOnDoubles(Number.NEGATIVE_INFINITY); - if (ceiledValue !== Number.NEGATIVE_INFINITY) - throw new Error("mathCeilOnDoubles(Number.NEGATIVE_INFINITY) = " + ceiledValue); - - var boolean = !!(i % 2); - var ceiledBoolean = mathCeilOnBooleans(boolean); - if (ceiledBoolean != boolean) - throw new Error("mathCeilOnDoubles(" + boolean + ") = " + ceiledBoolean); -} - -function uselessMathCeil(value) -{ - return Math.ceil(value|0); -} -noInline(uselessMathCeil); - -for (var i = 0; i < 1e4; ++i) { - var ceiledValue = uselessMathCeil(i); - if (ceiledValue !== i) - throw new Error("uselessMathCeil(" + i + ") = " + ceiledValue); - - var doubleLow = i + 0.4; - var ceiledValue = uselessMathCeil(doubleLow); - if (ceiledValue !== i) - throw new Error("uselessMathCeil(" + doubleLow + ") = " + ceiledValue); - - var doubleHigh = i + 0.6; - var ceiledValue = uselessMathCeil(doubleHigh); - if (ceiledValue !== i) - throw new Error("uselessMathCeil(" + doubleHigh + ") = " + ceiledValue); - - var doubleMid = i + 0.5; - var ceiledValue = uselessMathCeil(doubleMid); - if (ceiledValue !== i) - throw new Error("uselessMathCeil(" + doubleMid + ") = " + ceiledValue); - - var ceiledValue = uselessMathCeil(-0.4); - if (ceiledValue !== 0) - throw new Error("uselessMathCeil(-0.4) = " + ceiledValue); - - var ceiledValue = uselessMathCeil(-0.5); - if (ceiledValue !== 0) - throw new Error("uselessMathCeil(-0.5) = " + ceiledValue); - - var ceiledValue = uselessMathCeil(-0.6); - if (ceiledValue !== 0) - throw new Error("uselessMathCeil(-0.6) = " + ceiledValue); -} - -function mathCeilWithOverflow(value) -{ - return Math.ceil(value); -} -noInline(mathCeilWithOverflow); - -for (var i = 0; i < 1e4; ++i) { - var bigValue = 1000000000000; - var ceiledValue = mathCeilWithOverflow(bigValue); - if (ceiledValue !== bigValue) - throw new Error("mathCeilWithOverflow(" + bigValue + ") = " + ceiledValue); -} - -function mathCeilConsumedAsDouble(value) -{ - return Math.ceil(value) * 0.5; -} -noInline(mathCeilConsumedAsDouble); - -for (var i = 0; i < 1e4; ++i) { - var doubleValue = i + 0.1; - var ceiledValue = mathCeilConsumedAsDouble(doubleValue); - if (ceiledValue !== ((i + 1) * 0.5)) - throw new Error("mathCeilConsumedAsDouble(" + doubleValue + ") = " + ceiledValue); - - var doubleValue = i + 0.6; - var ceiledValue = mathCeilConsumedAsDouble(doubleValue); - if (ceiledValue !== ((i + 1) * 0.5)) - throw new Error("mathCeilConsumedAsDouble(" + doubleValue + ") = " + ceiledValue); - -} - -function mathCeilDoesNotCareAboutMinusZero(value) -{ - return Math.ceil(value)|0; -} -noInline(mathCeilDoesNotCareAboutMinusZero); - -for (var i = 0; i < 1e4; ++i) { - var doubleMid = i + 0.5; - var ceiledValue = mathCeilDoesNotCareAboutMinusZero(doubleMid); - if (ceiledValue !== i + 1) - throw new Error("mathCeilDoesNotCareAboutMinusZero(" + doubleMid + ") = " + ceiledValue); -} - - -// *** Function arguments. *** -function mathCeilNoArguments() -{ - return Math.ceil(); -} -noInline(mathCeilNoArguments); - -function mathCeilTooManyArguments(a, b, c) -{ - return Math.ceil(a, b, c); -} -noInline(mathCeilTooManyArguments); - -for (var i = 0; i < 1e4; ++i) { - var value = mathCeilNoArguments(); - if (value === value) - throw new Error("mathCeilNoArguments() = " + value); - - var value = mathCeilTooManyArguments(2.1, 3, 5); - if (value !== 3) - throw new Error("mathCeilTooManyArguments() = " + value); -} - - -// *** Constant as arguments. *** -function testMathCeilOnConstants() -{ - var value = Math.ceil(0); - if (value !== 0) - throw new Error("Math.ceil(0) = " + value); - var value = Math.ceil(-0); - if (!(value === 0 && (1/value) === -Infinity)) - throw new Error("Math.ceil(-0) = " + value); - var value = Math.ceil(1); - if (value !== 1) - throw new Error("Math.ceil(1) = " + value); - var value = Math.ceil(-1); - if (value !== -1) - throw new Error("Math.ceil(-1) = " + value); - var value = Math.ceil(42); - if (value !== 42) - throw new Error("Math.ceil(42) = " + value); - var value = Math.ceil(-42.2); - if (value !== -42) - throw new Error("Math.ceil(-42.2) = " + value); - var value = Math.ceil(NaN); - if (value === value) - throw new Error("Math.ceil(NaN) = " + value); - var value = Math.ceil(Number.POSITIVE_INFINITY); - if (value !== Infinity) - throw new Error("Math.ceil(Number.POSITIVE_INFINITY) = " + value); - var value = Math.ceil(Number.NEGATIVE_INFINITY); - if (value !== -Infinity) - throw new Error("Math.ceil(Number.NEGATIVE_INFINITY) = " + value); - var value = Math.ceil(Math.E); - if (value !== 3) - throw new Error("Math.ceil(Math.E) = " + value); -} -noInline(testMathCeilOnConstants); - -for (var i = 0; i < 1e4; ++i) { - testMathCeilOnConstants(); -} - - -// *** Struct transition. *** -function mathCeilStructTransition(value) -{ - return Math.ceil(value); -} -noInline(mathCeilStructTransition); - -for (var i = 0; i < 1e4; ++i) { - var value = mathCeilStructTransition(42.5); - if (value !== 43) - throw new Error("mathCeilStructTransition(42.5) = " + value); -} - -Math.ceil = function() { return arguments[0] + 5; } - -var value = mathCeilStructTransition(42); -if (value !== 47) - throw new Error("mathCeilStructTransition(42) after transition = " + value); diff --git a/implementation-contributed/javascriptcore/stress/math-clz32-basics.js b/implementation-contributed/javascriptcore/stress/math-clz32-basics.js deleted file mode 100644 index e2b6ae799953be192d2edef9206b99961c762bd1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-clz32-basics.js +++ /dev/null @@ -1,222 +0,0 @@ -function mathClz32OnInteger(value) -{ - return Math.clz32(value); -} -noInline(mathClz32OnInteger); - -// *** Test simple cases on integers. *** -function testMathClz32OnIntegers() -{ - // Bounds. - var clzZero = mathClz32OnInteger(0); - if (clzZero != 32) - throw "mathClz32OnInteger(0) = " + clzZero; - - var clzIntMin = mathClz32OnInteger(-2147483648); - if (clzIntMin != 0) - throw "mathClz32OnInteger(-2147483648) = " + clzIntMin; - - var clzIntMax = mathClz32OnInteger(2147483647); - if (clzIntMax != 1) - throw "mathClz32OnInteger(2147483647) = " + clzIntMax; - - // Simple values. - var clzMinusOne = mathClz32OnInteger(-1); - if (clzMinusOne != 0) - throw "mathClz32OnInteger(-1) = " + clzMinusOne; - - var clzUltimateAnswer = mathClz32OnInteger(42); - if (clzUltimateAnswer != 26) - throw "mathClz32OnInteger(42) = " + clzUltimateAnswer; - - var clzMinusUltimateAnswer = mathClz32OnInteger(-42); - if (clzMinusUltimateAnswer != 0) - throw "mathClz32OnInteger(-42) = " + clzMinusUltimateAnswer; -} -noInline(testMathClz32OnIntegers); - -for (var i = 0; i < 1e4; ++i) { - testMathClz32OnIntegers(); -} - -// Make sure we don't do anything stupid when the type is unexpected. -function verifyMathClz32OnIntegerWithOtherTypes() -{ - var clzPi = mathClz32OnInteger(Math.PI); - if (clzPi != 30) - throw "mathClz32OnInteger(Math.PI) = " + clzPi; - - var clzString = mathClz32OnInteger("42"); - if (clzString != 26) - throw "mathClz32OnInteger(\"42\") = " + clzString; - - var clzString = mathClz32OnInteger("WebKit"); - if (clzString != 32) - throw "mathClz32OnInteger(\"WebKit\") = " + clzString; - - var clzMinusZero = mathClz32OnInteger(-0); - if (clzMinusZero != 32) - throw "mathClz32OnInteger(-0) = " + clzMinusZero; -} -noInline(verifyMathClz32OnIntegerWithOtherTypes); - -for (var i = 0; i < 1e4; ++i) { - verifyMathClz32OnIntegerWithOtherTypes(); -} - - -// *** Test simple cases on doubles. *** -function mathClz32OnDouble(value) -{ - return Math.clz32(value); -} -noInline(mathClz32OnDouble); - -// Test simple cases on doubles. -function testMathClz32OnDoubles() -{ - var value = mathClz32OnDouble(Math.PI); - if (value != 30) - throw "mathClz32OnDouble(Math.PI) = " + value; - - var value = mathClz32OnDouble(Math.E); - if (value != 30) - throw "mathClz32OnDouble(Math.E) = " + value; - - var value = mathClz32OnDouble(Math.LN2); - if (value != 32) - throw "mathClz32OnDouble(Math.LN2) = " + value; - - var value = mathClz32OnDouble(-0); - if (value != 32) - throw "mathClz32OnDouble(-0) = " + value; - - var value = mathClz32OnDouble(NaN); - if (value != 32) - throw "mathClz32OnDouble(NaN) = " + value; - - var value = mathClz32OnDouble(Number.POSITIVE_INFINITY); - if (value != 32) - throw "mathClz32OnDouble(Number.POSITIVE_INFINITY) = " + value; - - var value = mathClz32OnDouble(Number.NEGATIVE_INFINITY); - if (value != 32) - throw "mathClz32OnDouble(Number.NEGATIVE_INFINITY) = " + value; -} -noInline(testMathClz32OnDoubles); - -for (var i = 0; i < 1e4; ++i) { - testMathClz32OnDoubles(); -} - -// Make sure we don't do anything stupid when the type is unexpected. -function verifyMathClz32OnDoublesWithOtherTypes() -{ - var clzOne = mathClz32OnDouble(1); - if (clzOne != 31) - throw "mathClz32OnDouble(1) = " + clzOne; - - var clzString = mathClz32OnDouble("42"); - if (clzString != 26) - throw "mathClz32OnDouble(\"42\") = " + clzString; - - var clzString = mathClz32OnDouble("WebKit"); - if (clzString != 32) - throw "mathClz32OnDouble(\"WebKit\") = " + clzString; - - var clzMinusZero = mathClz32OnDouble({}); - if (clzMinusZero != 32) - throw "mathClz32OnDouble({}) = " + clzMinusZero; -} -noInline(verifyMathClz32OnDoublesWithOtherTypes); - -for (var i = 0; i < 1e4; ++i) { - verifyMathClz32OnDoublesWithOtherTypes(); -} - - -// *** Unusual arguments. *** -function mathClz32NoArguments() -{ - return Math.clz32(); -} -noInline(mathClz32NoArguments); - -function mathClz32TooManyArguments(a, b, c) -{ - return Math.clz32(a, b, c); -} -noInline(mathClz32TooManyArguments); - - -for (var i = 0; i < 1e4; ++i) { - var value = mathClz32NoArguments(); - if (value !== 32) - throw "mathClz32NoArguments() = " + value; - - var value = mathClz32TooManyArguments(2, 3, 5); - if (value !== 30) - throw "mathClz32TooManyArguments() = " + value; - -} - - -// *** Constant as arguments. *** -function testMathClz32OnConstants() -{ - var value = Math.clz32(0); - if (value !== 32) - throw "Math.clz32(0) = " + value; - var value = Math.clz32(-0); - if (value !== 32) - throw "Math.clz32(-0) = " + value; - var value = Math.clz32(1); - if (value !== 31) - throw "Math.clz32(1) = " + value; - var value = Math.clz32(-1); - if (value !== 0) - throw "Math.clz32(-1) = " + value; - var value = Math.clz32(42); - if (value !== 26) - throw "Math.clz32(42) = " + value; - var value = Math.clz32(-42); - if (value !== 0) - throw "Math.clz32(-42) = " + value; - var value = Math.clz32(NaN); - if (value !== 32) - throw "Math.clz32(NaN) = " + value; - var value = Math.clz32(Number.POSITIVE_INFINITY); - if (value !== 32) - throw "Math.clz32(Number.POSITIVE_INFINITY) = " + value; - var value = Math.clz32(Number.NEGATIVE_INFINITY); - if (value !== 32) - throw "Math.clz32(Number.NEGATIVE_INFINITY) = " + value; - var value = Math.clz32(Math.E); - if (value !== 30) - throw "Math.clz32(Math.E) = " + value; -} -noInline(testMathClz32OnConstants); - -for (var i = 0; i < 1e4; ++i) { - testMathClz32OnConstants(); -} - - -// *** Struct transition. *** -function mathClz32StructTransition(value) -{ - return Math.clz32(value); -} -noInline(mathClz32StructTransition); - -for (var i = 0; i < 1e4; ++i) { - var value = mathClz32StructTransition(42); - if (value !== 26) - throw "mathClz32StructTransition(42) = " + value; -} - -Math.clz32 = function() { return arguments[0] + 5; } - -var value = mathClz32StructTransition(42); -if (value !== 47) - throw "mathClz32StructTransition(42) after transition = " + value; diff --git a/implementation-contributed/javascriptcore/stress/math-exceptions.js b/implementation-contributed/javascriptcore/stress/math-exceptions.js deleted file mode 100644 index 1af6beee87b7ad0ab8eca05ab15eaec435d517ec..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-exceptions.js +++ /dev/null @@ -1,47 +0,0 @@ -const foo = new Proxy({}, { - get() { throw 0xc0defefe; } -}); - -const bar = new Proxy({}, { - get() { throw 0xdeadbeef; } -}); - -const check = value => { - if (value !== 0xc0defefe) - throw new Error(`bad ${value}!`); -} - -try { Math.acos(foo, bar); } catch (e) { check(e); } -try { Math.acosh(foo, bar); } catch (e) { check(e); } -try { Math.asin(foo, bar); } catch (e) { check(e); } -try { Math.asinh(foo, bar); } catch (e) { check(e); } -try { Math.atan(foo, bar); } catch (e) { check(e); } -try { Math.atanh(foo, bar); } catch (e) { check(e); } -try { Math.atan2(foo, bar); } catch (e) { check(e); } -try { Math.cbrt(foo, bar); } catch (e) { check(e); } -try { Math.ceil(foo, bar); } catch (e) { check(e); } -try { Math.clz32(foo, bar); } catch (e) { check(e); } -try { Math.cos(foo, bar); } catch (e) { check(e); } -try { Math.cosh(foo, bar); } catch (e) { check(e); } -try { Math.exp(foo, bar); } catch (e) { check(e); } -try { Math.expm1(foo, bar); } catch (e) { check(e); } -try { Math.floor(foo, bar); } catch (e) { check(e); } -try { Math.fround(foo, bar); } catch (e) { check(e); } -try { Math.hypot(foo, bar); } catch (e) { check(e); } -try { Math.imul(foo, bar); } catch (e) { check(e); } -try { Math.log(foo, bar); } catch (e) { check(e); } -try { Math.log1p(foo, bar); } catch (e) { check(e); } -try { Math.log10(foo, bar); } catch (e) { check(e); } -try { Math.log2(foo, bar); } catch (e) { check(e); } -try { Math.max(foo, bar); } catch (e) { check(e); } -try { Math.min(foo, bar); } catch (e) { check(e); } -try { Math.pow(foo, bar); } catch (e) { check(e); } -Math.random(foo, bar); -try { Math.round(foo, bar); } catch (e) { check(e); } -try { Math.sign(foo, bar); } catch (e) { check(e); } -try { Math.sin(foo, bar); } catch (e) { check(e); } -try { Math.sinh(foo, bar); } catch (e) { check(e); } -try { Math.sqrt(foo, bar); } catch (e) { check(e); } -try { Math.tan(foo, bar); } catch (e) { check(e); } -try { Math.tanh(foo, bar); } catch (e) { check(e); } -try { Math.trunc(foo, bar); } catch (e) { check(e); } diff --git a/implementation-contributed/javascriptcore/stress/math-floor-arith-rounding-mode.js b/implementation-contributed/javascriptcore/stress/math-floor-arith-rounding-mode.js deleted file mode 100644 index a30ed890d3150706a9a04520d7f0a0924076f6e5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-floor-arith-rounding-mode.js +++ /dev/null @@ -1,85 +0,0 @@ -function firstCareAboutZeroSecondDoesNot(a) { - var resultA = Math.floor(a); - var resultB = Math.floor(a)|0; - return { resultA:resultA, resultB:resultB }; -} -noInline(firstCareAboutZeroSecondDoesNot); - -function firstDoNotCareAboutZeroSecondDoes(a) { - var resultA = Math.floor(a)|0; - var resultB = Math.floor(a); - return { resultA:resultA, resultB:resultB }; -} -noInline(firstDoNotCareAboutZeroSecondDoes); - -// Warmup with doubles, but nothing that would floor to -0 to ensure we never -// see a double as result. The result must be integers, the input is kept to small values. -function warmup() { - for (var i = 0; i < 1e4; ++i) { - firstCareAboutZeroSecondDoesNot(42.6 + i); - firstDoNotCareAboutZeroSecondDoes(42.4 + i); - } -} -warmup(); - -function verifyNegativeZeroIsPreserved() { - for (var i = 0; i < 1e4; ++i) { - var result1 = firstCareAboutZeroSecondDoesNot(-0.1); - if (1 / result1.resultA !== -1) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.1), resultA = " + result1.resultA); - } - if (1 / result1.resultB !== -1) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.1), resultB = " + result1.resultB); - } - var result2 = firstDoNotCareAboutZeroSecondDoes(-0.1); - if (1 / result2.resultA !== -1) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultA = " + result1.resultA); - } - if (1 / result2.resultB !== -1) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultB = " + result1.resultB); - } - var result3 = firstCareAboutZeroSecondDoesNot(-0.0); - if (1 / result3.resultA !== -Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.0), resultA = " + result3.resultA); - } - if (1 / result3.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.0), resultB = " + result3.resultB); - } - var result4 = firstDoNotCareAboutZeroSecondDoes(-0.0); - if (1 / result4.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.0), resultA = " + result4.resultA); - } - if (1 / result4.resultB !== -Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.0), resultB = " + result4.resultB); - } - var result5 = firstCareAboutZeroSecondDoesNot(0.0); - if (1 / result5.resultA !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.0), resultA = " + result5.resultA); - } - if (1 / result5.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.0), resultB = " + result5.resultB); - } - var result6 = firstDoNotCareAboutZeroSecondDoes(0.0); - if (1 / result6.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.0), resultA = " + result6.resultA); - } - if (1 / result6.resultB !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.0), resultB = " + result6.resultB); - } - var result7 = firstCareAboutZeroSecondDoesNot(0.1); - if (1 / result7.resultA !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.1), resultA = " + result7.resultA); - } - if (1 / result7.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.1), resultB = " + result7.resultB); - } - var result8 = firstDoNotCareAboutZeroSecondDoes(0.1); - if (1 / result8.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.1), resultA = " + result8.resultA); - } - if (1 / result8.resultB !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.1), resultB = " + result8.resultB); - } - } -} -verifyNegativeZeroIsPreserved(); diff --git a/implementation-contributed/javascriptcore/stress/math-floor-basics.js b/implementation-contributed/javascriptcore/stress/math-floor-basics.js deleted file mode 100644 index f0c9c95898dd734b32d8b55cb41df91da32763be..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-floor-basics.js +++ /dev/null @@ -1,257 +0,0 @@ - -function mathFloorOnIntegers(value) -{ - return Math.floor(value); -} -noInline(mathFloorOnIntegers); - -function mathFloorOnDoubles(value) -{ - return Math.floor(value); -} -noInline(mathFloorOnDoubles); - -function mathFloorOnBooleans(value) -{ - return Math.floor(value); -} -noInline(mathFloorOnBooleans); - -// The trivial cases first. -for (var i = 1; i < 1e4; ++i) { - var flooredValue = mathFloorOnIntegers(i); - if (flooredValue !== i) - throw new Error("mathFloorOnIntegers(" + i + ") = " + flooredValue); - - var flooredValue = mathFloorOnIntegers(-i); - if (flooredValue !== -i) - throw new Error("mathFloorOnIntegers(" + -i + ") = " + flooredValue); - - var doubleLow = i + 0.4; - var flooredValue = mathFloorOnDoubles(doubleLow); - if (flooredValue !== i) - throw new Error("mathFloorOnDoubles(" + doubleLow + ") = " + flooredValue); - - var doubleHigh = i + 0.6; - var flooredValue = mathFloorOnDoubles(doubleHigh); - if (flooredValue !== i) - throw new Error("mathFloorOnDoubles(" + doubleHigh + ") = " + flooredValue); - - var doubleMid = i + 0.5; - var flooredValue = mathFloorOnDoubles(doubleMid); - if (flooredValue !== i) - throw new Error("mathFloorOnDoubles(" + doubleMid + ") = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(-0.6); - if (flooredValue !== -1.0) - throw new Error("mathFloorOnDoubles(-0.6) = " + flooredValue); -} - -// Some more interesting cases, some of them well OSR exit when the return value is zero. -for (var i = 0; i < 1e4; ++i) { - var flooredValue = mathFloorOnIntegers(i); - if (flooredValue !== i) - throw new Error("mathFloorOnIntegers(" + i + ") = " + flooredValue); - - var flooredValue = mathFloorOnIntegers(-i); - if (flooredValue !== -i) - throw new Error("mathFloorOnIntegers(-" + i + ") = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(-0.4); - if (flooredValue !== -1.00) - throw new Error("mathFloorOnDoubles(-0.4) = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(-0.5); - if (flooredValue !== -1.0) - throw new Error("mathFloorOnDoubles(-0.5) = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(-0); - if (!(flooredValue === 0 && (1/flooredValue) === -Infinity)) - throw new Error("mathFloorOnDoubles(-0) = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(NaN); - if (flooredValue === flooredValue) - throw new Error("mathFloorOnDoubles(NaN) = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(Number.POSITIVE_INFINITY); - if (flooredValue !== Number.POSITIVE_INFINITY) - throw new Error("mathFloorOnDoubles(Number.POSITIVE_INFINITY) = " + flooredValue); - - var flooredValue = mathFloorOnDoubles(Number.NEGATIVE_INFINITY); - if (flooredValue !== Number.NEGATIVE_INFINITY) - throw new Error("mathFloorOnDoubles(Number.NEGATIVE_INFINITY) = " + flooredValue); - - var boolean = !!(i % 2); - var flooredBoolean = mathFloorOnBooleans(boolean); - if (flooredBoolean != boolean) - throw new Error("mathFloorOnDoubles(" + boolean + ") = " + flooredBoolean); -} - -function uselessMathFloor(value) -{ - return Math.floor(value|0); -} -noInline(uselessMathFloor); - -for (var i = 0; i < 1e4; ++i) { - var flooredValue = uselessMathFloor(i); - if (flooredValue !== i) - throw new Error("uselessMathFloor(" + i + ") = " + flooredValue); - - var doubleLow = i + 0.4; - var flooredValue = uselessMathFloor(doubleLow); - if (flooredValue !== i) - throw new Error("uselessMathFloor(" + doubleLow + ") = " + flooredValue); - - var doubleHigh = i + 0.6; - var flooredValue = uselessMathFloor(doubleHigh); - if (flooredValue !== i) - throw new Error("uselessMathFloor(" + doubleHigh + ") = " + flooredValue); - - var doubleMid = i + 0.5; - var flooredValue = uselessMathFloor(doubleMid); - if (flooredValue !== i) - throw new Error("uselessMathFloor(" + doubleMid + ") = " + flooredValue); - - var flooredValue = uselessMathFloor(-0.4); - if (flooredValue !== 0) - throw new Error("uselessMathFloor(-0.4) = " + flooredValue); - - var flooredValue = uselessMathFloor(-0.5); - if (flooredValue !== 0) - throw new Error("uselessMathFloor(-0.5) = " + flooredValue); - - var flooredValue = uselessMathFloor(-0.6); - if (flooredValue !== 0) - throw new Error("uselessMathFloor(-0.6) = " + flooredValue); -} - -function mathFloorWithOverflow(value) -{ - return Math.floor(value); -} -noInline(mathFloorWithOverflow); - -for (var i = 0; i < 1e4; ++i) { - var bigValue = 1000000000000; - var flooredValue = mathFloorWithOverflow(bigValue); - if (flooredValue !== bigValue) - throw new Error("mathFloorWithOverflow(" + bigValue + ") = " + flooredValue); -} - -function mathFloorConsumedAsDouble(value) -{ - return Math.floor(value) * 0.5; -} -noInline(mathFloorConsumedAsDouble); - -for (var i = 0; i < 1e4; ++i) { - var doubleValue = i + 0.1; - var flooredValue = mathFloorConsumedAsDouble(doubleValue); - if (flooredValue !== (i * 0.5)) - throw new Error("mathFloorConsumedAsDouble(" + doubleValue + ") = " + flooredValue); - - var doubleValue = i + 0.6; - var flooredValue = mathFloorConsumedAsDouble(doubleValue); - if (flooredValue !== (i * 0.5)) - throw new Error("mathFloorConsumedAsDouble(" + doubleValue + ") = " + flooredValue); - -} - -function mathFloorDoesNotCareAboutMinusZero(value) -{ - return Math.floor(value)|0; -} -noInline(mathFloorDoesNotCareAboutMinusZero); - -for (var i = 0; i < 1e4; ++i) { - var doubleMid = i + 0.5; - var flooredValue = mathFloorDoesNotCareAboutMinusZero(doubleMid); - if (flooredValue !== i) - throw new Error("mathFloorDoesNotCareAboutMinusZero(" + doubleMid + ") = " + flooredValue); -} - - -// *** Function arguments. *** -function mathFloorNoArguments() -{ - return Math.floor(); -} -noInline(mathFloorNoArguments); - -function mathFloorTooManyArguments(a, b, c) -{ - return Math.floor(a, b, c); -} -noInline(mathFloorTooManyArguments); - -for (var i = 0; i < 1e4; ++i) { - var value = mathFloorNoArguments(); - if (value === value) - throw new Error("mathFloorNoArguments() = " + value); - - var value = mathFloorTooManyArguments(2.1, 3, 5); - if (value !== 2) - throw new Error("mathFloorTooManyArguments() = " + value); -} - - -// *** Constant as arguments. *** -function testMathFloorOnConstants() -{ - var value = Math.floor(0); - if (value !== 0) - throw new Error("Math.floor(0) = " + value); - var value = Math.floor(-0); - if (!(value === 0 && (1/value) === -Infinity)) - throw new Error("Math.floor(-0) = " + value); - var value = Math.floor(1); - if (value !== 1) - throw new Error("Math.floor(1) = " + value); - var value = Math.floor(-1); - if (value !== -1) - throw new Error("Math.floor(-1) = " + value); - var value = Math.floor(42); - if (value !== 42) - throw new Error("Math.floor(42) = " + value); - var value = Math.floor(-42.2); - if (value !== -43) - throw new Error("Math.floor(-42.2) = " + value); - var value = Math.floor(NaN); - if (value === value) - throw new Error("Math.floor(NaN) = " + value); - var value = Math.floor(Number.POSITIVE_INFINITY); - if (value !== Infinity) - throw new Error("Math.floor(Number.POSITIVE_INFINITY) = " + value); - var value = Math.floor(Number.NEGATIVE_INFINITY); - if (value !== -Infinity) - throw new Error("Math.floor(Number.NEGATIVE_INFINITY) = " + value); - var value = Math.floor(Math.E); - if (value !== 2) - throw new Error("Math.floor(Math.E) = " + value); -} -noInline(testMathFloorOnConstants); - -for (var i = 0; i < 1e4; ++i) { - testMathFloorOnConstants(); -} - - -// *** Struct transition. *** -function mathFloorStructTransition(value) -{ - return Math.floor(value); -} -noInline(mathFloorStructTransition); - -for (var i = 0; i < 1e4; ++i) { - var value = mathFloorStructTransition(42.5); - if (value !== 42) - throw new Error("mathFloorStructTransition(42.5) = " + value); -} - -Math.floor = function() { return arguments[0] + 5; } - -var value = mathFloorStructTransition(42); -if (value !== 47) - throw new Error("mathFloorStructTransition(42) after transition = " + value); diff --git a/implementation-contributed/javascriptcore/stress/math-log-basics.js b/implementation-contributed/javascriptcore/stress/math-log-basics.js deleted file mode 100644 index d6d1d142d3387a07a63d00348c252cf1aec94b33..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-log-basics.js +++ /dev/null @@ -1,128 +0,0 @@ -// Basic cases of Math.log(). - -// log(NaN). -function logNaN(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logNaN); - -function testLogNaN() { - for (var i = 0; i < 10000; ++i) { - var result = logNaN(NaN); - if (!isNaN(result)) - throw "logNaN(NaN) = " + result + ", expected NaN"; - } -} -testLogNaN(); - - -// log(0). -function logZero(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logZero); - -function testLogZero() { - for (var i = 0; i < 10000; ++i) { - var result = logZero(0); - if (result !== -Infinity) - throw "logZero(0) = " + result + ", expected -Infinity"; - } -} -testLogZero(); - - -// log(1). -function logOne(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logOne); - -function testLogOne() { - for (var i = 0; i < 10000; ++i) { - var result = logOne(1); - if (result !== 0) - throw "logOne(1) = " + result + ", expected 0"; - } -} -testLogOne(); - - -// log(-1). -function logMinusOne(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logMinusOne); - -function testLogMinusOne() { - for (var i = 0; i < 10000; ++i) { - var result = logMinusOne(-1); - if (!isNaN(result)) - throw "logMinusOne(-1) = " + result + ", expected NaN"; - } -} -testLogMinusOne(); - - -// log(Infinity). -function logInfinity(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logInfinity); - -function testLogInfinity() { - for (var i = 0; i < 10000; ++i) { - var result = logInfinity(Infinity); - if (result !== Infinity) - throw "logInfinity(Infinity) = " + result + ", expected Infinity"; - } -} -testLogInfinity(); - - -// log(-Infinity). -function logMinusInfinity(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logMinusInfinity); - -function testLogMinusInfinity() { - for (var i = 0; i < 10000; ++i) { - var result = logMinusInfinity(-Infinity); - if (!isNaN(result)) - throw "logMinusInfinity(-Infinity) = " + result + ", expected NaN"; - } -} -testLogMinusInfinity(); - - -// log(integer). -function logInteger(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logInteger); - -function testLogInteger() { - for (var i = 0; i < 10000; ++i) { - var result = logInteger(42); - if (result !== 3.7376696182833684) - throw "logInteger(42) = " + result + ", expected 3.7376696182833684"; - } -} -testLogInteger(); - - -// log(double). -function logDouble(antilogarithm) { - return Math.log(antilogarithm); -} -noInline(logDouble); - -function testLogDouble() { - for (var i = 0; i < 10000; ++i) { - var result = logDouble(Math.PI); - if (result !== 1.1447298858494002) - throw "logDouble(Math.PI) = " + result + ", expected 1.1447298858494002"; - } -} -testLogDouble(); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-log-with-constants.js b/implementation-contributed/javascriptcore/stress/math-log-with-constants.js deleted file mode 100644 index c05a075484127da1b204755e1d4fff53866f8aad..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-log-with-constants.js +++ /dev/null @@ -1,128 +0,0 @@ -// Basic cases of Math.log() when the value passed are constants. - -// log(NaN). -function logNaN() { - return Math.log(NaN); -} -noInline(logNaN); - -function testLogNaN() { - for (var i = 0; i < 10000; ++i) { - var result = logNaN(); - if (!isNaN(result)) - throw "logNaN() = " + result + ", expected NaN"; - } -} -testLogNaN(); - - -// log(0). -function logZero() { - return Math.log(0); -} -noInline(logZero); - -function testLogZero() { - for (var i = 0; i < 10000; ++i) { - var result = logZero(); - if (result !== -Infinity) - throw "logZero() = " + result + ", expected -Infinity"; - } -} -testLogZero(); - - -// log(1). -function logOne() { - return Math.log(1); -} -noInline(logOne); - -function testLogOne() { - for (var i = 0; i < 10000; ++i) { - var result = logOne(); - if (result !== 0) - throw "logOne(1) = " + result + ", expected 0"; - } -} -testLogOne(); - - -// log(-1). -function logMinusOne() { - return Math.log(-1); -} -noInline(logMinusOne); - -function testLogMinusOne() { - for (var i = 0; i < 10000; ++i) { - var result = logMinusOne(); - if (!isNaN(result)) - throw "logMinusOne() = " + result + ", expected NaN"; - } -} -testLogMinusOne(); - - -// log(Infinity). -function logInfinity() { - return Math.log(Infinity); -} -noInline(logInfinity); - -function testLogInfinity() { - for (var i = 0; i < 10000; ++i) { - var result = logInfinity(); - if (result !== Infinity) - throw "logInfinity() = " + result + ", expected Infinity"; - } -} -testLogInfinity(); - - -// log(-Infinity). -function logMinusInfinity() { - return Math.log(-Infinity); -} -noInline(logMinusInfinity); - -function testLogMinusInfinity() { - for (var i = 0; i < 10000; ++i) { - var result = logMinusInfinity(); - if (!isNaN(result)) - throw "logMinusInfinity() = " + result + ", expected NaN"; - } -} -testLogMinusInfinity(); - - -// log(integer). -function logInteger() { - return Math.log(42); -} -noInline(logInteger); - -function testLogInteger() { - for (var i = 0; i < 10000; ++i) { - var result = logInteger(); - if (result !== 3.7376696182833684) - throw "logInteger() = " + result + ", expected 3.7376696182833684"; - } -} -testLogInteger(); - - -// log(double). -function logDouble() { - return Math.log(Math.PI); -} -noInline(logDouble); - -function testLogDouble() { - for (var i = 0; i < 10000; ++i) { - var result = logDouble(); - if (result !== 1.1447298858494002) - throw "logDouble() = " + result + ", expected 1.1447298858494002"; - } -} -testLogDouble(); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-max-min-no-arguments.js b/implementation-contributed/javascriptcore/stress/math-max-min-no-arguments.js deleted file mode 100644 index 3bf5b80d9e1a7136afad8b4a3b90d7d7a0230ce8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-max-min-no-arguments.js +++ /dev/null @@ -1,20 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad!") -} - -function min() { - return Math.min(); -} - -function max() { - return Math.max(); -} - -function test() { - for (let i = 0; i < 10000; i++) { - assert(min() === Infinity); - assert(max() === -Infinity); - } -} -test(); diff --git a/implementation-contributed/javascriptcore/stress/math-pow-basics.js b/implementation-contributed/javascriptcore/stress/math-pow-basics.js deleted file mode 100644 index 1f1ca1ef4d05054ac28aa108de9d844ae58e9482..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-basics.js +++ /dev/null @@ -1,286 +0,0 @@ -function valuesAreClose(a, b) { - return Math.abs(a / b) - 1 < 1e-10; -} - -// Some random values. -function mathPowDoubleDouble1(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble1); - -function mathPowDoubleInt1(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt1); - -function test1(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble1(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble1(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt1(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt1(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test1); -test1(376.76522764377296, 10.81699226051569, 7.333951929109252e+27, 5.76378989575089e+25); - -function mathPowDoubleDouble2(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble2); - -function mathPowDoubleInt2(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt2); -function test2(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble2(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble2(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt2(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt2(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test2); -test2(376.76522764377296, -5.81699226051569, 1.035180331187579e-15, 1.3171824310400265e-13); - -function mathPowDoubleDouble3(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble3); - -function mathPowDoubleInt3(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt3); -function test3(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble3(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble3(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt3(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt3(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test3); -test3(-37.676522764377296, 10.0, 5763789895750892, 5763789895750892); - -// Exponent zero. -function mathPowDoubleDouble4(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble4); - -function mathPowDoubleInt4(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt4); -function test4(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble4(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble4(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt4(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt4(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test4); -test4(-37.676522764377296, 0, 1, 1); - -// Exponent minus zero. -function mathPowDoubleDouble5(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble5); - -function mathPowDoubleInt5(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt5); -function test5(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble5(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble5(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt5(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test5); -test5(-37.676522764377296, -0, 1, 1); - -// Exponent 1. -function mathPowDoubleDouble6(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble6); - -function mathPowDoubleInt6(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt6); -function test6(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble6(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble6(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt6(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt6(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test6); -test6(-37.676522764377296, 1.0, -37.676522764377296, -37.676522764377296); - -// Exponent -1. -function mathPowDoubleDouble7(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble7); - -function mathPowDoubleInt7(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt7); -function test7(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble7(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble7(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble7(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleDouble7(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test7); -test7(-37.676522764377296, -1.0, -0.026541727490454296, -0.026541727490454296); - -// Let's square things. -function mathPowDoubleDouble8(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble8); - -function mathPowDoubleInt8(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt8); -function test8(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble8(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble8(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt8(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt8(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test8); -test8(-37.676522764377296, 2.0, 1419.5203676146407, 1419.5203676146407); - -function mathPowDoubleDouble9(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble9); - -function mathPowDoubleInt9(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt9); -function test9(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble9(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble9(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt9(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt9(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test9); -test9(37.676522764377296, 2.0, 1419.5203676146407, 1419.5203676146407); - -// Let's cube things. -function mathPowDoubleDouble10(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble10); - -function mathPowDoubleInt10(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt10); -function test10(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble10(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt10(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test10); -test10(-37.676522764377296, 3.0, -53482.591444930236, -53482.591444930236); - -function mathPowDoubleDouble11(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDouble11); - -function mathPowDoubleInt11(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleInt11); -function test11(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble11(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt11(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test11); -test11(37.676522764377296, 3.0, 53482.591444930236, 53482.591444930236); diff --git a/implementation-contributed/javascriptcore/stress/math-pow-becomes-custom-function.js b/implementation-contributed/javascriptcore/stress/math-pow-becomes-custom-function.js deleted file mode 100644 index 8893acc5075ff9ecf803a6ca60222556bfad1801..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-becomes-custom-function.js +++ /dev/null @@ -1,18 +0,0 @@ -function mathPowWrapper(x, y) { - return Math.pow(x, y); -} -noInline(mathPowWrapper); - -function testChangingMathPow() { - var result = 0; - for (var i = 0; i < 10000; ++i) { - result += mathPowWrapper(3, 2); - } - Math.pow = function(a, b) { return a + b; } - for (var i = 0; i < 10000; ++i) { - result += mathPowWrapper(3, 2); - } - if (result !== 140000) - throw "Result = " + result + ", expected 140000"; -} -testChangingMathPow(); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-pow-coherency.js b/implementation-contributed/javascriptcore/stress/math-pow-coherency.js deleted file mode 100644 index 636032bcc0fc1141e5c8f78130b7f8f2d8881639..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-coherency.js +++ /dev/null @@ -1,95 +0,0 @@ -//@ skip - -// This test checks that the pow function returns coherent results: -// (a) Across different compilation tiers -// (b) With integer exponents represented as int32 or as double - -function pow42() { - return { value: Math.pow(2.1, 42), ftl: isFinalTier() }; -} - -function build42AsDouble() { - function opaqueAdd(x, y) { return x + y; } - return opaqueAdd(42 - 0.123, 0.123); -} - -var double42 = build42AsDouble(); - -if (double42 !== 42) - throw new Error("42 (as double) should be === to 42 (as int)"); - -function powDouble42() { - return { value: Math.pow(2.1, double42), ftl: isFinalTier() }; -} - -function clobber() { } -noInline(clobber); - -function pow42NoConstantFolding() { - var obj = { x: 2.1, y: 42 }; - clobber(obj); - return { value: Math.pow(obj.x, obj.y), ftl: isFinalTier() }; -} - -function powDouble42NoConstantFolding() { - var obj = { x: 2.1, y: double42 }; - clobber(obj); - return { value: Math.pow(obj.x, obj.y), ftl: isFinalTier() }; -} - -var results = { 'jit': {}, 'dfg': {}, 'ftl': {} }; -var funs = [ - [ 'pow42', pow42 ], - [ 'powDouble42', powDouble42 ], - [ 'pow42NoConstantFolding', pow42NoConstantFolding ], - [ 'powDouble42NoConstantFolding', powDouble42NoConstantFolding ] -]; -var tiers = ['jit', 'dfg', 'ftl']; - -for (var i = 0; i < 100000; ++i) { - for (var j in funs) { - var name = funs[j][0]; - var fun = funs[j][1]; - var result = fun(); - if (result.ftl) - results['ftl'][name] = result.value; - else if (numberOfDFGCompiles(fun) > 0) - results['dfg'][name] = result.value; - else - results['jit'][name] = result.value; - } -} - -var errors = []; -var valuesFor = {}; -for (var i in tiers) { - var tier = tiers[i]; - var result = results[tier]; - // We don't have this tier - if (Object.keys(result).length === 0) - continue; - - for (var j in funs) { - var name = funs[j][0]; - if (!(name in result)) - errors.push(name + " was not compiled to " + tier); - else if (!(name in valuesFor)) - valuesFor[name] = { value: result[name], tiers: [tier] }; - else if (result[name] !== valuesFor[name].value) - errors.push(name + " has different results in " + tier + " (" + result[name] + ") and " + valuesFor[name].tiers + " (" + valuesFor[name].value + ")"); - else - valuesFor[name].tiers.push(tier); - } -} - -var reference = funs[0][0]; -var result = valuesFor[reference].value; - -for (var j in funs) { - var name = funs[j][0]; - if (valuesFor[name].value !== result) - errors.push(name + " (" + valuesFor[name].value + ") and " + reference + " (" + result + ") have different results"); -} - -if (errors.length > 0) - throw new Error(errors.join('\n')); diff --git a/implementation-contributed/javascriptcore/stress/math-pow-integer-exponent-fastpath.js b/implementation-contributed/javascriptcore/stress/math-pow-integer-exponent-fastpath.js deleted file mode 100644 index d606c44f9525587b105e6eb6a725b216cc1f3790..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-integer-exponent-fastpath.js +++ /dev/null @@ -1,56 +0,0 @@ -function valuesAreClose(a, b) { - return Math.abs(a / b) - 1 < 1e-10; -} - -// Small exponent values are handled through a simpler inline loop. Test that it is not observable. -function mathPowDoubleDoubleTestExponentFifty(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDoubleTestExponentFifty); - -function mathPowDoubleIntTestExponentFifty(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleIntTestExponentFifty); -function testExponentFifty(x, y, expected) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDoubleTestExponentFifty(x, y); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, Math.pow(" + x + ", " + y + ") = " + result + " expected value close to " + expected; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleIntTestExponentFifty(x, integerY); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, Math.pow(" + x + ", " + integerY + ") = " + result + " expected value close to " + expected; - } -} -noInline(testExponentFifty); -testExponentFifty(53.70901164133102, 50.0, 3.179494118120144e+86); -testExponentFifty(53.70901164133102, -10.0, 5.006432842621192e-18); - -function mathPowDoubleDoubleTestExponentTenThousands(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleDoubleTestExponentTenThousands); - -function mathPowDoubleIntTestExponentTenThousands(x, y) { - return Math.pow(x, y) -} -noInline(mathPowDoubleIntTestExponentTenThousands); -function testExponentTenThousands(x, y, expected) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDoubleTestExponentTenThousands(x, y); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, Math.pow(" + x + ", " + y + ") = " + result + " expected value close to " + expected; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleIntTestExponentTenThousands(x, integerY); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, Math.pow(" + x + ", " + integerY + ") = " + result + " expected value close to " + expected; - } -} -noInline(testExponentTenThousands); -testExponentTenThousands(1.001, 10000.0, 21916.681339048373); -testExponentTenThousands(1.001, -1.0, 0.9990009990009991); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-pow-nan-behaviors.js b/implementation-contributed/javascriptcore/stress/math-pow-nan-behaviors.js deleted file mode 100644 index d67a1f99fb6e51e383366ecad02ff29723db8eaa..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-nan-behaviors.js +++ /dev/null @@ -1,209 +0,0 @@ -// If an argument is NaN, the result of Math.pow(x, y) is NaN. -function testIntegerBaseWithNaNExponentStatic() { - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(5, NaN); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(5, NaN) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(i, NaN); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(i, NaN) = " + result + " with i = " + i; - } -} -noInline(testIntegerBaseWithNaNExponentStatic); -testIntegerBaseWithNaNExponentStatic(); - -function mathPowIntegerBaseWithNaNExponentDynamic(x, y) { - return Math.pow(x, y); -} -noInline(mathPowIntegerBaseWithNaNExponentDynamic); -function testIntegerBaseWithNaNExponentDynamic() { - // Warm up with 2 integers. - for (var i = 0; i < 10000; ++i) { - var result = mathPowIntegerBaseWithNaNExponentDynamic(2, 5); - if (result !== 32) - throw "Error: bad result, mathPowIntegerBaseWithNaNExponentDynamic(2, 5) = " + result + ", expected 32." - } - - for (var i = 0; i < 10000; ++i) { - var result = mathPowIntegerBaseWithNaNExponentDynamic(i, NaN); - if (!isNaN(result)) - throw "Error: bad result, mathPowIntegerBaseWithNaNExponentDynamic(i, NaN) = " + result + " with i = " + i + ", expected NaN"; - } -} -noInline(testIntegerBaseWithNaNExponentDynamic); -testIntegerBaseWithNaNExponentDynamic(); - -function testFloatingPointBaseWithNaNExponentStatic() { - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(5.5, NaN); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(5.5, NaN) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(i + 0.5, NaN); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(i + 0.5, NaN) = " + result + " with i = " + i; - } -} -noInline(testFloatingPointBaseWithNaNExponentStatic); -testFloatingPointBaseWithNaNExponentStatic(); - -function mathPowFloatingPointBaseWithNaNExponentDynamic(x, y) { - return Math.pow(x, y); -} -noInline(mathPowFloatingPointBaseWithNaNExponentDynamic); -function testFloatingPointBaseWithNaNExponentDynamic() { - // Warm up with 2 double. - for (var i = 0; i < 10000; ++i) { - var result = mathPowFloatingPointBaseWithNaNExponentDynamic(2.5, 5.1); - if (result !== 107.02717054543135) - throw "Error: bad result, mathPowFloatingPointBaseWithNaNExponentDynamic(2.5, 5.1) = " + result + ", expected 107.02717054543135." - } - - for (var i = 0; i < 10000; ++i) { - var result = mathPowFloatingPointBaseWithNaNExponentDynamic(i + 0.5, NaN); - if (!isNaN(result)) - throw "Error: bad result, mathPowFloatingPointBaseWithNaNExponentDynamic(i + 0.5, NaN) = " + result + " with i = " + i + ", expected NaN"; - } -} -noInline(testFloatingPointBaseWithNaNExponentDynamic); -testFloatingPointBaseWithNaNExponentDynamic(); - -// If y is +0, the result is 1, even if x is NaN. -// If y is -0, the result is 1, even if x is NaN. -// If x is NaN and y is nonzero, the result is NaN. -function testNaNBaseStatic() { - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(NaN, i + 1); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(NaN, i + 1) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(NaN, i + 1.5); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(NaN, i + 1.5) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(NaN, 0); - if (result !== 1) - throw "Error: bad result, Math.pow(NaN, 0) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(NaN, -0); - if (result !== 1) - throw "Error: bad result, Math.pow(NaN, -0) = " + result; - } -} -noInline(testNaNBaseStatic); -testNaNBaseStatic(); - -function mathPowNaNBaseDynamic1(x, y) { - return Math.pow(x, y); -} -function mathPowNaNBaseDynamic2(x, y) { - return Math.pow(x, y); -} -function mathPowNaNBaseDynamic3(x, y) { - return Math.pow(x, y); -} -function mathPowNaNBaseDynamic4(x, y) { - return Math.pow(x, y); -} -noInline(mathPowNaNBaseDynamic1); -noInline(mathPowNaNBaseDynamic2); -noInline(mathPowNaNBaseDynamic3); -noInline(mathPowNaNBaseDynamic4); -function testNaNBaseDynamic() { - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic1(NaN, i + 1); - if (!isNaN(result)) - throw "Error: bad result, mathPowNaNBaseDynamic1(NaN, i + 1) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic2(NaN, i + 1.5); - if (!isNaN(result)) - throw "Error: bad result, mathPowNaNBaseDynamic2(NaN, i + 1.5) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic3(NaN, 0); - if (result !== 1) - throw "Error: bad result, mathPowNaNBaseDynamic3(NaN, 0) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic4(NaN, -0); - if (result !== 1) - throw "Error: bad result, mathPowNaNBaseDynamic4(NaN, -0) = " + result; - } -} -noInline(testNaNBaseDynamic); -testNaNBaseDynamic(); - -// If abs(x) is 1 and y is +Inf the result is NaN. -// If abs(x) is 1 and y is −Inf the result is NaN. -function infiniteExponentsStatic() { - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(1, Number.POSITIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(1, Number.POSITIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(-1, Number.POSITIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(-1, Number.POSITIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(1, Number.NEGATIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(1, Number.NEGATIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = Math.pow(-1, Number.NEGATIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, Math.pow(-1, Number.NEGATIVE_INFINITY) = " + result; - } -} -noInline(infiniteExponentsStatic); -infiniteExponentsStatic(); - -function mathPowInfiniteExponentsDynamic1(x, y) { - return Math.pow(x, y); -} -function mathPowInfiniteExponentsDynamic2(x, y) { - return Math.pow(x, y); -} -function mathPowInfiniteExponentsDynamic3(x, y) { - return Math.pow(x, y); -} -function mathPowInfiniteExponentsDynamic4(x, y) { - return Math.pow(x, y); -} -noInline(mathPowInfiniteExponentsDynamic1); -noInline(mathPowInfiniteExponentsDynamic2); -noInline(mathPowInfiniteExponentsDynamic3); -noInline(mathPowInfiniteExponentsDynamic4); -function infiniteExponentsDynamic() { - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic1(1, Number.POSITIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic1(1, Number.POSITIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic2(-1, Number.POSITIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic2(-1, Number.POSITIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic3(1, Number.NEGATIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic3(1, Number.NEGATIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic4(-1, Number.NEGATIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic4(-1, Number.NEGATIVE_INFINITY) = " + result; - } -} -noInline(infiniteExponentsDynamic); -infiniteExponentsDynamic(); diff --git a/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js b/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js deleted file mode 100644 index 24553a53428b9eb2faa843fa4cb2230ca29fa688..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js +++ /dev/null @@ -1,21 +0,0 @@ -// Verify that we have the correct speculation checks for Math.pow(NaN, 0). - -function func(x) { - return fiatInt52(Math.pow(NaN, (x > 1))); -}; - -noInline(func); - -function test(f) -{ - for (let i = 0; i < 10000; ++i) { - if (f(0) != 1) - throw "Wrong expected value"; - - if (f(1) != 1) - throw "Wrong expected value"; - } -} - -test(func); - diff --git a/implementation-contributed/javascriptcore/stress/math-pow-stable-results.js b/implementation-contributed/javascriptcore/stress/math-pow-stable-results.js deleted file mode 100644 index d2a1de2295342f066a3db9d5bd0fc7c43e71f29a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-stable-results.js +++ /dev/null @@ -1,85 +0,0 @@ -// This test verify the results of Math.pow() do not change as we change optimization tier. - -function opaquePow(a, b) -{ - return Math.pow(a, b); -} -noInline(opaquePow); - - -let caseStrings = [ - "0", - "-0.", - "0.5", - "1", - "2", - "-0.5", - "-1", - "999", - "1000", - "1001", - "NaN", - "Infinity", - "-Infinity", - "Math.PI", - "Math.LN2", - "Math.LN10", - "Math.E", - "Math.LOG10E", - "Math.LOG2E", - "Math.SQRT2" -]; -let cases = []; -for (let caseString of caseStrings) { - cases.push(eval(caseString)); -} - -let expectedResults = []; -let constantBaseFunctions = []; -let constantExponentFunctions = []; -for (let i = 0; i < cases.length; ++i) { - let base = cases[i]; - - expectedResults[i] = []; - for (let j = 0; j < cases.length; ++j) { - let exponent = cases[j]; - expectedResults[i][j] = Math.pow(base, exponent); - } - - eval("constantBaseFunctions[i] = function (exponent) { return Math.pow(" + caseStrings[i] + ", exponent); }"); - eval("constantExponentFunctions[i] = function (base) { return Math.pow(base, " + caseStrings[i] + "); }"); -} - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - -for (let tierUpLoopCounter = 0; tierUpLoopCounter < 1e3; ++tierUpLoopCounter) { - for (let i = 0; i < cases.length; ++i) { - let base = cases[i]; - for (let j = 0; j < cases.length; ++j) { - let exponent = cases[j]; - let expectedResult = expectedResults[i][j]; - let result = opaquePow(base, exponent); - if (!isIdentical(result, expectedResult)) - throw `Failed opaquePow with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`; - - result = constantBaseFunctions[i](exponent); - if (!isIdentical(result, expectedResult)) - throw `Failed constantBaseFunctions with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`; - - result = constantExponentFunctions[j](base); - if (!isIdentical(result, expectedResult)) - throw `Failed constantExponentFunctions with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`; - } - } -} diff --git a/implementation-contributed/javascriptcore/stress/math-pow-with-constants.js b/implementation-contributed/javascriptcore/stress/math-pow-with-constants.js deleted file mode 100644 index 090f5b7728cc6de788094ba8d8957f5487053832..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-with-constants.js +++ /dev/null @@ -1,285 +0,0 @@ -function exponentIsZero(x) { - return Math.pow(x, 0); -} -noInline(exponentIsZero); - -function testExponentIsZero() { - for (var i = 0; i < 10000; ++i) { - var result = exponentIsZero(5); - if (result !== 1) - throw "Error: zeroExponent(5) should be 1, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = exponentIsZero(5.5); - if (result !== 1) - throw "Error: zeroExponent(5.5) should be 1, was = " + result; - } -} -testExponentIsZero(); - - -function exponentIsOne(x) { - return Math.pow(x, 1); -} -noInline(exponentIsOne); - -function testExponentIsOne() { - for (var i = 0; i < 10000; ++i) { - var result = exponentIsOne(5); - if (result !== 5) - throw "Error: exponentIsOne(5) should be 5, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = exponentIsOne(5.5); - if (result !== 5.5) - throw "Error: exponentIsOne(5.5) should be 5.5, was = " + result; - } -} -testExponentIsOne(); - - -function powUsedAsSqrt(x) { - return Math.pow(x, 0.5); -} -noInline(powUsedAsSqrt); - -function testPowUsedAsSqrt() { - for (let i = 0; i < 1e4; ++i) { - let result = powUsedAsSqrt(4); - if (result !== Math.sqrt(4)) - throw "Error: powUsedAsSqrt(4) should be 2, was = " + result; - result = powUsedAsSqrt(4.4); - if (result !== Math.sqrt(4.4)) - throw "Error: powUsedAsSqrt(4) should be " + Math.sqrt(4.4) + ", was = " + result; - if (powUsedAsSqrt(Infinity) !== Infinity) - throw "Failed powUsedAsSqrt(Infinity)"; - if (powUsedAsSqrt(-Infinity) !== Infinity) - throw "Failed powUsedAsSqrt(-Infinity)"; - let nanResult = powUsedAsSqrt(NaN) - if (nanResult === nanResult) - throw "Failed powUsedAsSqrt(NaN)"; - let zeroResult = powUsedAsSqrt(0.) - if (zeroResult || (1 / zeroResult) !== Infinity) - throw "Failed powUsedAsSqrt(0.)"; - let negativeZeroResult = powUsedAsSqrt(-0) - if (negativeZeroResult || (1 / negativeZeroResult) !== Infinity) - throw "Failed powUsedAsSqrt(-0)"; - } -} -testPowUsedAsSqrt(); - -function powUsedAsOneOverSqrt(x) { - return Math.pow(x, -0.5); -} -noInline(powUsedAsOneOverSqrt); - -function testPowUsedAsOneOverSqrt() { - for (let i = 0; i < 1e4; ++i) { - let result = powUsedAsOneOverSqrt(4); - if (result !== 0.5) - throw "Error: powUsedAsOneOverSqrt(4) should be 0.5, was = " + result; - result = powUsedAsOneOverSqrt(4.4); - if (result !== 1/Math.sqrt(4.4)) - throw "Error: powUsedAsOneOverSqrt(4) should be " + 1/Math.sqrt(4.4) + ", was = " + result; - if (powUsedAsOneOverSqrt(Infinity) !== 0) - throw "Failed powUsedAsOneOverSqrt(Infinity)"; - if (powUsedAsOneOverSqrt(-Infinity) !== 0) - throw "Failed powUsedAsOneOverSqrt(-Infinity)"; - let nanResult = powUsedAsOneOverSqrt(NaN) - if (nanResult === nanResult) - throw "Failed powUsedAsOneOverSqrt(NaN)"; - if (powUsedAsOneOverSqrt(0) !== Infinity) - throw "Failed powUsedAsOneOverSqrt(0)"; - if (powUsedAsOneOverSqrt(-0.) !== Infinity) - throw "Failed powUsedAsOneOverSqrt(-0.)"; - } -} -testPowUsedAsOneOverSqrt(); - -function powUsedAsSquare(x) { - return Math.pow(x, 2); -} -noInline(powUsedAsSquare); - -function testPowUsedAsSquare() { - for (let i = 0; i < 1e4; ++i) { - let result = powUsedAsSquare(2); - if (result !== 4) - throw "Error: powUsedAsSquare(4) should be 2, was = " + result; - result = powUsedAsSquare(4.4); - if (result !== 19.360000000000003) - throw "Error: powUsedAsSquare(4) should be " + 19.360000000000003 + ", was = " + result; - result = powUsedAsSquare(Math.PI); - if (result !== 9.869604401089358) - throw "Error: powUsedAsSquare(4) should be " + 9.869604401089358 + ", was = " + result; - if (powUsedAsSquare(Infinity) !== Infinity) - throw "Failed powUsedAsSquare(Infinity)"; - if (powUsedAsSquare(-Infinity) !== Infinity) - throw "Failed powUsedAsSquare(-Infinity)"; - let nanResult = powUsedAsSquare(NaN) - if (nanResult === nanResult) - throw "Failed powUsedAsSquare(NaN)"; - let zeroResult = powUsedAsSquare(0.) - if (zeroResult || (1 / zeroResult) !== Infinity) - throw "Failed powUsedAsSquare(0.)"; - let negativeZeroResult = powUsedAsSquare(-0) - if (negativeZeroResult || (1 / negativeZeroResult) !== Infinity) - throw "Failed powUsedAsSquare(-0)"; - } -} -testPowUsedAsSquare(); - -function intIntConstantsSmallNumbers() { - return Math.pow(42, 3); -} -function intIntConstantsLargeNumbers() { - // The result does not fit in a integer. - return Math.pow(42, 42); -} -function intIntSmallConstants() { - return Math.pow(42, 3); -} -function intDoubleConstants() { - return Math.pow(14, 42.5); -} -function doubleDoubleConstants() { - return Math.pow(13.5, 42.5); -} -function doubleIntConstants() { - return Math.pow(13.5, 52); -} -noInline(intIntConstantsSmallNumbers); -noInline(intIntConstantsLargeNumbers); -noInline(intDoubleConstants); -noInline(doubleDoubleConstants); -noInline(doubleIntConstants); - -function testBaseAndExponentConstantLiterals() -{ - for (var i = 0; i < 10000; ++i) { - var result = intIntConstantsSmallNumbers(); - if (result !== 74088) - throw "Error: intIntConstantsSmallNumbers() should be 74088, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = intIntConstantsLargeNumbers(); - if (result !== 1.5013093754529656e+68) - throw "Error: intIntConstantsLargeNumbers() should be 1.5013093754529656e+68, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = intDoubleConstants(); - if (result !== 5.1338303882015765e+48) - throw "Error: intDoubleConstants() should be 5.1338303882015765e+48, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = doubleDoubleConstants(); - if (result !== 1.0944228729647829e+48) - throw "Error: doubleDoubleConstants() should be 1.0944228729647829e+48, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = doubleIntConstants(); - if (result !== 5.989022735311158e+58) - throw "Error: doubleIntConstants() should be 5.989022735311158e+58, was = " + result; - } -} -testBaseAndExponentConstantLiterals(); - - -function exponentIsIntegerConstant(x) { - return Math.pow(x, 42); -} -noInline(exponentIsIntegerConstant); - -function testExponentIsIntegerConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsIntegerConstant(2); - if (result !== 4398046511104) - throw "Error: exponentIsIntegerConstant(2) should be 4398046511104, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsIntegerConstant(5); - if (result !== 2.2737367544323207e+29) - throw "Error: exponentIsIntegerConstant(5) should be 2.2737367544323207e+29, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsIntegerConstant(2.1); - if (result !== 34135823067412.42) - throw "Error: exponentIsIntegerConstant(2.1) should be 34135823067412.42, was = " + result; - } -} -testExponentIsIntegerConstant(); - - -function exponentIsDoubleConstant(x) { - return Math.pow(x, 42.5); -} -noInline(exponentIsDoubleConstant); - -function testExponentIsDoubleConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsDoubleConstant(2); - if (result !== 6219777023950.95) - throw "Error: exponentIsDoubleConstant(2) should be 6219777023950.95, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsDoubleConstant(5); - if (result !== 5.084229945850415e+29) - throw "Error: exponentIsDoubleConstant(5) should be 5.084229945850415e+29, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsDoubleConstant(2.1); - if (result !== 49467507261113.805) - throw "Error: exponentIsDoubleConstant(2.1) should be 49467507261113.805, was = " + result; - } -} -testExponentIsDoubleConstant(); - - -function exponentIsInfinityConstant(x) { - return Math.pow(x, Infinity); -} -noInline(exponentIsInfinityConstant); - -function testExponentIsInfinityConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsInfinityConstant(2); - if (result !== Infinity) - throw "Error: exponentIsInfinityConstant(2) should be Infinity, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsInfinityConstant(5); - if (result !== Infinity) - throw "Error: exponentIsInfinityConstant(5) should be Infinity, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsInfinityConstant(2.1); - if (result !== Infinity) - throw "Error: exponentIsInfinityConstant(2.1) should be Infinity, was = " + result; - } -} -testExponentIsInfinityConstant(); - - -function exponentIsNegativeInfinityConstant(x) { - return Math.pow(x, -Infinity); -} -noInline(exponentIsNegativeInfinityConstant); - -function testExponentIsNegativeInfinityConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsNegativeInfinityConstant(2); - if (result !== 0) - throw "Error: exponentIsNegativeInfinityConstant(2) should be zero, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsNegativeInfinityConstant(5); - if (result !== 0) - throw "Error: exponentIsNegativeInfinityConstant(5) should be zero, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsNegativeInfinityConstant(2.1); - if (result !== 0) - throw "Error: exponentIsNegativeInfinityConstant(2.1) should be zero, was = " + result; - } -} -testExponentIsNegativeInfinityConstant(); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-pow-with-never-NaN-exponent.js b/implementation-contributed/javascriptcore/stress/math-pow-with-never-NaN-exponent.js deleted file mode 100644 index d5d6bc0d639cbac9b7a689c17dd4fafbbd0246d5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-pow-with-never-NaN-exponent.js +++ /dev/null @@ -1,24 +0,0 @@ -function exponentIsNonNanDouble1(x, doubleArrayIndex) { - var doubleArray = [4.4]; - return Math.pow(x, doubleArray[doubleArrayIndex]); -} -noInline(exponentIsNonNanDouble1); - -function exponentIsNonNanDouble2(x, doubleArray) { - return Math.pow(x, doubleArray[0]); -} -noInline(exponentIsNonNanDouble2); - -function testExponentIsDoubleConstant() { - for (var i = 0; i < 10000; ++i) { - var result = exponentIsNonNanDouble1(2, 0); - if (result !== 21.112126572366314) - throw "Error: exponentIsNonNanDouble1(2, 0) should be 21.112126572366314, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = exponentIsNonNanDouble2(3, [-1.5]); - if (result !== 0.19245008972987526) - throw "Error: exponentIsNonNanDouble2(3, [-1.5]) should be 0.19245008972987526, was = " + result; - } -} -testExponentIsDoubleConstant(); diff --git a/implementation-contributed/javascriptcore/stress/math-round-arith-rounding-mode.js b/implementation-contributed/javascriptcore/stress/math-round-arith-rounding-mode.js deleted file mode 100644 index 09a27723aa6a5c30152f45d6c61b5917205057b2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-round-arith-rounding-mode.js +++ /dev/null @@ -1,44 +0,0 @@ -function firstCareAboutZeroSecondDoesNot(a) { - var resultA = Math.round(a); - var resultB = Math.round(a)|0; - return { resultA:resultA, resultB:resultB }; -} -noInline(firstCareAboutZeroSecondDoesNot); - -function firstDoNotCareAboutZeroSecondDoes(a) { - var resultA = Math.round(a)|0; - var resultB = Math.round(a); - return { resultA:resultA, resultB:resultB }; -} -noInline(firstDoNotCareAboutZeroSecondDoes); - -// Warmup with doubles, but nothing that would round to -0 to ensure we never -// see a double as result. The result must be integers, the input is kept to small values. -function warmup() { - for (var i = 0; i < 1e4; ++i) { - firstCareAboutZeroSecondDoesNot(42.6 + i); - firstDoNotCareAboutZeroSecondDoes(42.4 + i); - } -} -warmup(); - -function verifyNegativeZeroIsPreserved() { - for (var i = 0; i < 1e4; ++i) { - var result1 = firstCareAboutZeroSecondDoesNot(-0.1); - if (1 / result1.resultA !== -Infinity) { - throw "Failed firstCareAboutZeroSecondDoesNot(-0.1), resultA = " + result1.resultA; - } - if (1 / result1.resultB !== Infinity) { - throw "Failed firstCareAboutZeroSecondDoesNot(-0.1), resultB = " + result1.resultB; - } - var result2 = firstDoNotCareAboutZeroSecondDoes(-0.1); - if (1 / result2.resultA !== Infinity) { - throw "Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultA = " + result1.resultA; - } - if (1 / result2.resultB !== -Infinity) { - throw "Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultB = " + result1.resultB; - } - - } -} -verifyNegativeZeroIsPreserved(); \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-round-basics.js b/implementation-contributed/javascriptcore/stress/math-round-basics.js deleted file mode 100644 index f61a6d4f4769585fe5b9f56ff0eabc402302413c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-round-basics.js +++ /dev/null @@ -1,257 +0,0 @@ - -function mathRoundOnIntegers(value) -{ - return Math.round(value); -} -noInline(mathRoundOnIntegers); - -function mathRoundOnDoubles(value) -{ - return Math.round(value); -} -noInline(mathRoundOnDoubles); - -function mathRoundOnBooleans(value) -{ - return Math.round(value); -} -noInline(mathRoundOnBooleans); - -// The trivial cases first. -for (var i = 1; i < 1e4; ++i) { - var roundedValue = mathRoundOnIntegers(i); - if (roundedValue !== i) - throw "mathRoundOnIntegers(" + i + ") = " + roundedValue; - - var roundedValue = mathRoundOnIntegers(-i); - if (roundedValue !== -i) - throw "mathRoundOnIntegers(" + -i + ") = " + roundedValue; - - var doubleLow = i + 0.4; - var roundedValue = mathRoundOnDoubles(doubleLow); - if (roundedValue !== i) - throw "mathRoundOnDoubles(" + doubleLow + ") = " + roundedValue; - - var doubleHigh = i + 0.6; - var roundedValue = mathRoundOnDoubles(doubleHigh); - if (roundedValue !== i + 1) - throw "mathRoundOnDoubles(" + doubleHigh + ") = " + roundedValue; - - var doubleMid = i + 0.5; - var roundedValue = mathRoundOnDoubles(doubleMid); - if (roundedValue !== i + 1) - throw "mathRoundOnDoubles(" + doubleMid + ") = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(-0.6); - if (roundedValue !== -1) - throw "mathRoundOnDoubles(-0.6) = " + roundedValue; -} - -// Some more interesting cases, some of them well OSR exit when the return value is zero. -for (var i = 0; i < 1e4; ++i) { - var roundedValue = mathRoundOnIntegers(i); - if (roundedValue !== i) - throw "mathRoundOnIntegers(" + i + ") = " + roundedValue; - - var roundedValue = mathRoundOnIntegers(-i); - if (roundedValue !== -i) - throw "mathRoundOnIntegers(-" + i + ") = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(-0.4); - if (roundedValue !== 0) - throw "mathRoundOnDoubles(-0.4) = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(-0.5); - if (roundedValue !== 0) - throw "mathRoundOnDoubles(-0.5) = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(-0); - if (!(roundedValue === 0 && (1/roundedValue) === -Infinity)) - throw "mathRoundOnDoubles(-0) = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(NaN); - if (roundedValue === roundedValue) - throw "mathRoundOnDoubles(NaN) = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(Number.POSITIVE_INFINITY); - if (roundedValue !== Number.POSITIVE_INFINITY) - throw "mathRoundOnDoubles(Number.POSITIVE_INFINITY) = " + roundedValue; - - var roundedValue = mathRoundOnDoubles(Number.NEGATIVE_INFINITY); - if (roundedValue !== Number.NEGATIVE_INFINITY) - throw "mathRoundOnDoubles(Number.NEGATIVE_INFINITY) = " + roundedValue; - - var boolean = !!(i % 2); - var roundedBoolean = mathRoundOnBooleans(boolean); - if (roundedBoolean != boolean) - throw "mathRoundOnDoubles(" + boolean + ") = " + roundedBoolean; -} - -function uselessMathRound(value) -{ - return Math.round(value|0); -} -noInline(uselessMathRound); - -for (var i = 0; i < 1e4; ++i) { - var roundedValue = uselessMathRound(i); - if (roundedValue !== i) - throw "uselessMathRound(" + i + ") = " + roundedValue; - - var doubleLow = i + 0.4; - var roundedValue = uselessMathRound(doubleLow); - if (roundedValue !== i) - throw "uselessMathRound(" + doubleLow + ") = " + roundedValue; - - var doubleHigh = i + 0.6; - var roundedValue = uselessMathRound(doubleHigh); - if (roundedValue !== i) - throw "uselessMathRound(" + doubleHigh + ") = " + roundedValue; - - var doubleMid = i + 0.5; - var roundedValue = uselessMathRound(doubleMid); - if (roundedValue !== i) - throw "uselessMathRound(" + doubleMid + ") = " + roundedValue; - - var roundedValue = uselessMathRound(-0.4); - if (roundedValue !== 0) - throw "uselessMathRound(-0.4) = " + roundedValue; - - var roundedValue = uselessMathRound(-0.5); - if (roundedValue !== 0) - throw "uselessMathRound(-0.5) = " + roundedValue; - - var roundedValue = uselessMathRound(-0.6); - if (roundedValue !== 0) - throw "uselessMathRound(-0.6) = " + roundedValue; -} - -function mathRoundWithOverflow(value) -{ - return Math.round(value); -} -noInline(mathRoundWithOverflow); - -for (var i = 0; i < 1e4; ++i) { - var bigValue = 1000000000000; - var roundedValue = mathRoundWithOverflow(bigValue); - if (roundedValue !== bigValue) - throw "mathRoundWithOverflow(" + bigValue + ") = " + roundedValue; -} - -function mathRoundConsumedAsDouble(value) -{ - return Math.round(value) * 0.5; -} -noInline(mathRoundConsumedAsDouble); - -for (var i = 0; i < 1e4; ++i) { - var doubleValue = i + 0.1; - var roundedValue = mathRoundConsumedAsDouble(doubleValue); - if (roundedValue !== (i * 0.5)) - throw "mathRoundConsumedAsDouble(" + doubleValue + ") = " + roundedValue; - - var doubleValue = i + 0.6; - var roundedValue = mathRoundConsumedAsDouble(doubleValue); - if (roundedValue !== ((i + 1) * 0.5)) - throw "mathRoundConsumedAsDouble(" + doubleValue + ") = " + roundedValue; - -} - -function mathRoundDoesNotCareAboutMinusZero(value) -{ - return Math.round(value)|0; -} -noInline(mathRoundDoesNotCareAboutMinusZero); - -for (var i = 0; i < 1e4; ++i) { - var doubleMid = i + 0.5; - var roundedValue = mathRoundDoesNotCareAboutMinusZero(doubleMid); - if (roundedValue !== i + 1) - throw "mathRoundDoesNotCareAboutMinusZero(" + doubleMid + ") = " + roundedValue; -} - - -// *** Function arguments. *** -function mathRoundNoArguments() -{ - return Math.round(); -} -noInline(mathRoundNoArguments); - -function mathRoundTooManyArguments(a, b, c) -{ - return Math.round(a, b, c); -} -noInline(mathRoundTooManyArguments); - -for (var i = 0; i < 1e4; ++i) { - var value = mathRoundNoArguments(); - if (value === value) - throw "mathRoundNoArguments() = " + value; - - var value = mathRoundTooManyArguments(2.1, 3, 5); - if (value !== 2) - throw "mathRoundTooManyArguments() = " + value; -} - - -// *** Constant as arguments. *** -function testMathRoundOnConstants() -{ - var value = Math.round(0); - if (value !== 0) - throw "Math.round(0) = " + value; - var value = Math.round(-0); - if (!(value === 0 && (1/value) === -Infinity)) - throw "Math.round(-0) = " + value; - var value = Math.round(1); - if (value !== 1) - throw "Math.round(1) = " + value; - var value = Math.round(-1); - if (value !== -1) - throw "Math.round(-1) = " + value; - var value = Math.round(42); - if (value !== 42) - throw "Math.round(42) = " + value; - var value = Math.round(-42.2); - if (value !== -42) - throw "Math.round(-42.2) = " + value; - var value = Math.round(NaN); - if (value === value) - throw "Math.round(NaN) = " + value; - var value = Math.round(Number.POSITIVE_INFINITY); - if (value !== Infinity) - throw "Math.round(Number.POSITIVE_INFINITY) = " + value; - var value = Math.round(Number.NEGATIVE_INFINITY); - if (value !== -Infinity) - throw "Math.round(Number.NEGATIVE_INFINITY) = " + value; - var value = Math.round(Math.E); - if (value !== 3) - throw "Math.round(Math.E) = " + value; -} -noInline(testMathRoundOnConstants); - -for (var i = 0; i < 1e4; ++i) { - testMathRoundOnConstants(); -} - - -// *** Struct transition. *** -function mathRoundStructTransition(value) -{ - return Math.round(value); -} -noInline(mathRoundStructTransition); - -for (var i = 0; i < 1e4; ++i) { - var value = mathRoundStructTransition(42.5); - if (value !== 43) - throw "mathRoundStructTransition(42.5) = " + value; -} - -Math.round = function() { return arguments[0] + 5; } - -var value = mathRoundStructTransition(42); -if (value !== 47) - throw "mathRoundStructTransition(42) after transition = " + value; diff --git a/implementation-contributed/javascriptcore/stress/math-round-should-not-use-truncate.js b/implementation-contributed/javascriptcore/stress/math-round-should-not-use-truncate.js deleted file mode 100644 index bae0782d34022d7985af36b68749913763c064e7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-round-should-not-use-truncate.js +++ /dev/null @@ -1,12 +0,0 @@ -function mathRoundDoesNotCareAboutMinusZero(value) -{ - return Math.round(value); -} -noInline(mathRoundDoesNotCareAboutMinusZero); - -for (var i = 0; i < 1e4; ++i) { - var doubleMid = -9901 - 0.6; - var roundedValue = mathRoundDoesNotCareAboutMinusZero(doubleMid); - if (roundedValue !== -9902) - throw "mathRoundDoesNotCareAboutMinusZero(" + doubleMid + ") = " + roundedValue; -} diff --git a/implementation-contributed/javascriptcore/stress/math-rounding-infinity.js b/implementation-contributed/javascriptcore/stress/math-rounding-infinity.js deleted file mode 100644 index a935380041314fbf2d011be6013222840831206d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-rounding-infinity.js +++ /dev/null @@ -1,39 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function testRound(value) -{ - return Math.round(value); -} -noInline(testRound); - -function testFloor(value) -{ - return Math.floor(value); -} -noInline(testFloor); - -function testCeil(value) -{ - return Math.ceil(value); -} -noInline(testCeil); - -function testTrunc(value) -{ - return Math.trunc(value); -} -noInline(testTrunc); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testRound(Infinity), Infinity); - shouldBe(testRound(-Infinity), -Infinity); - shouldBe(testFloor(Infinity), Infinity); - shouldBe(testFloor(-Infinity), -Infinity); - shouldBe(testCeil(Infinity), Infinity); - shouldBe(testCeil(-Infinity), -Infinity); - shouldBe(testTrunc(Infinity), Infinity); - shouldBe(testTrunc(-Infinity), -Infinity); -} diff --git a/implementation-contributed/javascriptcore/stress/math-rounding-nan.js b/implementation-contributed/javascriptcore/stress/math-rounding-nan.js deleted file mode 100644 index de1e1344a06da05e2ad8df70552b7687cc241c09..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-rounding-nan.js +++ /dev/null @@ -1,35 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function testRound(value) -{ - return Math.round(value); -} -noInline(testRound); - -function testFloor(value) -{ - return Math.floor(value); -} -noInline(testFloor); - -function testCeil(value) -{ - return Math.ceil(value); -} -noInline(testCeil); - -function testTrunc(value) -{ - return Math.trunc(value); -} -noInline(testTrunc); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(Number.isNaN(testRound(NaN)), true); - shouldBe(Number.isNaN(testFloor(NaN)), true); - shouldBe(Number.isNaN(testCeil(NaN)), true); - shouldBe(Number.isNaN(testTrunc(NaN)), true); -} diff --git a/implementation-contributed/javascriptcore/stress/math-rounding-negative-zero.js b/implementation-contributed/javascriptcore/stress/math-rounding-negative-zero.js deleted file mode 100644 index 1a5baa24bea73303fd3fd1513cfd34661e32cb22..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-rounding-negative-zero.js +++ /dev/null @@ -1,79 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function testRound(value) -{ - return Math.round(value); -} -noInline(testRound); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(1 / testRound(-0.4), -Infinity); - shouldBe(1 / testRound(-0.5), -Infinity); - shouldBe(1 / testRound(-0.6), -1.0); - shouldBe(1 / testRound(-0.0), -Infinity); - shouldBe(1 / testRound(0.1), Infinity); -} - -function testFloor(value) -{ - return Math.floor(value); -} -noInline(testFloor); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(1 / testFloor(-0.0), -Infinity); -} - -function testCeil(value) -{ - return Math.ceil(value); -} -noInline(testCeil); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(1 / testCeil(-0.0), -Infinity); - shouldBe(1 / testCeil(-0.9), -Infinity); -} - -function testRoundNonNegativeZero(value) -{ - return Math.round(value) | 0; -} -noInline(testRoundNonNegativeZero); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(testRoundNonNegativeZero(0.4), 0); - shouldBe(testRoundNonNegativeZero(0.5), 1); - shouldBe(testRoundNonNegativeZero(0.6), 1); - shouldBe(testRoundNonNegativeZero(0.0), 0); - shouldBe(testRoundNonNegativeZero(0.1), 0); -} -shouldBe(1 / testRoundNonNegativeZero(-0.4), Infinity); - -function testRoundNonNegativeZero2(value) -{ - return Math.round(value) | 0; -} -noInline(testRoundNonNegativeZero2); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(1 / testRoundNonNegativeZero2(-0.4), Infinity); - shouldBe(1 / testRoundNonNegativeZero2(-0.5), Infinity); - shouldBe(1 / testRoundNonNegativeZero2(-0.6), -1.0); - shouldBe(1 / testRoundNonNegativeZero2(-0.0), Infinity); - shouldBe(1 / testRoundNonNegativeZero2(0.1), Infinity); -} - -function testTrunc(value) -{ - return Math.trunc(value); -} -noInline(testTrunc); - -for (var i = 0; i < 1e4; ++i) { - shouldBe(1 / testTrunc(0.0), Infinity); - shouldBe(1 / testTrunc(-0.0), -Infinity); -} diff --git a/implementation-contributed/javascriptcore/stress/math-sqrt-basics-disable-architecture-specific-optimizations.js b/implementation-contributed/javascriptcore/stress/math-sqrt-basics-disable-architecture-specific-optimizations.js deleted file mode 100644 index 33325238d3c17d162780ea668ec3ba9fa437df84..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-sqrt-basics-disable-architecture-specific-optimizations.js +++ /dev/null @@ -1,48 +0,0 @@ -//@ run("no-architecture-specific-optimizations", "--useArchitectureSpecificOptimizations=false", *NO_CJIT_OPTIONS) -//@ run("no-architecture-specific-optimizations-ftl", "--useArchitectureSpecificOptimizations=false", *FTL_OPTIONS) - -// Basic cases of Math.sqrt(). -function sqrtOnInteger(radicand) { - return Math.sqrt(radicand); -} -noInline(sqrtOnInteger); - -function testSquareRoot16() { - for (var i = 0; i < 10000; ++i) { - var result = sqrtOnInteger(16); - if (result !== 4) - throw "sqrtOnInteger(16) = " + result + ", expected 4"; - } -} -testSquareRoot16(); - -var sqrtOnIntegerNegativeNumber = sqrtOnDouble(-4); -if (!isNaN(sqrtOnIntegerNegativeNumber)) - throw "sqrtOnDouble(-4) = " + sqrtOnIntegerNegativeNumber + ", expected NaN"; - -var sqrtOnIntegerFallback = sqrtOnInteger(Math.PI); -if (sqrtOnIntegerFallback != 1.7724538509055159) - throw "sqrtOnInteger(Math.PI) = " + sqrtOnIntegerFallback + ", expected 1.7724538509055159"; - - -function sqrtOnDouble(radicand) { - return Math.sqrt(radicand); -} -noInline(sqrtOnDouble); - -function testSquareRootDouble() { - for (var i = 0; i < 10000; ++i) { - var result = sqrtOnInteger(Math.LN2); - if (result !== 0.8325546111576977) - throw "sqrtOnInteger(Math.LN2) = " + result + ", expected 0.8325546111576977"; - } -} -testSquareRootDouble(); - -var sqrtOnDoubleNegativeNumber = sqrtOnDouble(-Math.PI); -if (!isNaN(sqrtOnDoubleNegativeNumber)) - throw "sqrtOnDouble(-Math.PI) = " + sqrtOnDoubleNegativeNumber + ", expected NaN"; - -var sqrtOnDoubleFallback = sqrtOnDouble(4); -if (sqrtOnDoubleFallback !== 2) - throw "sqrtOnDouble(4) = " + sqrtOnDoubleFallback + ", expected 2"; \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-sqrt-basics.js b/implementation-contributed/javascriptcore/stress/math-sqrt-basics.js deleted file mode 100644 index f19b752b5bec3d25f699ffe51ac002051ef5aa07..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-sqrt-basics.js +++ /dev/null @@ -1,45 +0,0 @@ -// Basic cases of Math.sqrt(). -function sqrtOnInteger(radicand) { - return Math.sqrt(radicand); -} -noInline(sqrtOnInteger); - -function testSquareRoot16() { - for (var i = 0; i < 10000; ++i) { - var result = sqrtOnInteger(16); - if (result !== 4) - throw "sqrtOnInteger(16) = " + result + ", expected 4"; - } -} -testSquareRoot16(); - -var sqrtOnIntegerNegativeNumber = sqrtOnDouble(-4); -if (!isNaN(sqrtOnIntegerNegativeNumber)) - throw "sqrtOnDouble(-4) = " + sqrtOnIntegerNegativeNumber + ", expected NaN"; - -var sqrtOnIntegerFallback = sqrtOnInteger(Math.PI); -if (sqrtOnIntegerFallback != 1.7724538509055159) - throw "sqrtOnInteger(Math.PI) = " + sqrtOnIntegerFallback + ", expected 1.7724538509055159"; - - -function sqrtOnDouble(radicand) { - return Math.sqrt(radicand); -} -noInline(sqrtOnDouble); - -function testSquareRootDouble() { - for (var i = 0; i < 10000; ++i) { - var result = sqrtOnInteger(Math.LN2); - if (result !== 0.8325546111576977) - throw "sqrtOnInteger(Math.LN2) = " + result + ", expected 0.8325546111576977"; - } -} -testSquareRootDouble(); - -var sqrtOnDoubleNegativeNumber = sqrtOnDouble(-Math.PI); -if (!isNaN(sqrtOnDoubleNegativeNumber)) - throw "sqrtOnDouble(-Math.PI) = " + sqrtOnDoubleNegativeNumber + ", expected NaN"; - -var sqrtOnDoubleFallback = sqrtOnDouble(4); -if (sqrtOnDoubleFallback !== 2) - throw "sqrtOnDouble(4) = " + sqrtOnDoubleFallback + ", expected 2"; \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/math-trunc-arith-rounding-mode.js b/implementation-contributed/javascriptcore/stress/math-trunc-arith-rounding-mode.js deleted file mode 100644 index ddfb1e3913978ca57056466e4865e7400c8fa926..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-trunc-arith-rounding-mode.js +++ /dev/null @@ -1,85 +0,0 @@ -function firstCareAboutZeroSecondDoesNot(a) { - var resultA = Math.trunc(a); - var resultB = Math.trunc(a)|0; - return { resultA:resultA, resultB:resultB }; -} -noInline(firstCareAboutZeroSecondDoesNot); - -function firstDoNotCareAboutZeroSecondDoes(a) { - var resultA = Math.trunc(a)|0; - var resultB = Math.trunc(a); - return { resultA:resultA, resultB:resultB }; -} -noInline(firstDoNotCareAboutZeroSecondDoes); - -// Warmup with doubles, but nothing that would trunc to -0 to ensure we never -// see a double as result. The result must be integers, the input is kept to small values. -function warmup() { - for (var i = 0; i < 1e4; ++i) { - firstCareAboutZeroSecondDoesNot(42.6 + i); - firstDoNotCareAboutZeroSecondDoes(42.4 + i); - } -} -warmup(); - -function verifyNegativeZeroIsPreserved() { - for (var i = 0; i < 1e4; ++i) { - var result1 = firstCareAboutZeroSecondDoesNot(-0.1); - if (1 / result1.resultA !== -Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.1), resultA = " + result1.resultA); - } - if (1 / result1.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.1), resultB = " + result1.resultB); - } - var result2 = firstDoNotCareAboutZeroSecondDoes(-0.1); - if (1 / result2.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultA = " + result1.resultA); - } - if (1 / result2.resultB !== -Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.1), resultB = " + result1.resultB); - } - var result3 = firstCareAboutZeroSecondDoesNot(-0.0); - if (1 / result3.resultA !== -Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.0), resultA = " + result3.resultA); - } - if (1 / result3.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(-0.0), resultB = " + result3.resultB); - } - var result4 = firstDoNotCareAboutZeroSecondDoes(-0.0); - if (1 / result4.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.0), resultA = " + result4.resultA); - } - if (1 / result4.resultB !== -Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(-0.0), resultB = " + result4.resultB); - } - var result5 = firstCareAboutZeroSecondDoesNot(0.0); - if (1 / result5.resultA !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.0), resultA = " + result5.resultA); - } - if (1 / result5.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.0), resultB = " + result5.resultB); - } - var result6 = firstDoNotCareAboutZeroSecondDoes(0.0); - if (1 / result6.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.0), resultA = " + result6.resultA); - } - if (1 / result6.resultB !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.0), resultB = " + result6.resultB); - } - var result7 = firstCareAboutZeroSecondDoesNot(0.1); - if (1 / result7.resultA !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.1), resultA = " + result7.resultA); - } - if (1 / result7.resultB !== Infinity) { - throw new Error("Failed firstCareAboutZeroSecondDoesNot(0.1), resultB = " + result7.resultB); - } - var result8 = firstDoNotCareAboutZeroSecondDoes(0.1); - if (1 / result8.resultA !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.1), resultA = " + result8.resultA); - } - if (1 / result8.resultB !== Infinity) { - throw new Error("Failed firstDoNotCareAboutZeroSecondDoes(0.1), resultB = " + result8.resultB); - } - } -} -verifyNegativeZeroIsPreserved(); diff --git a/implementation-contributed/javascriptcore/stress/math-trunc-basics.js b/implementation-contributed/javascriptcore/stress/math-trunc-basics.js deleted file mode 100644 index add4e50a800d2ac50061f3b94c8435aa610787ec..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-trunc-basics.js +++ /dev/null @@ -1,256 +0,0 @@ -function mathTruncOnIntegers(value) -{ - return Math.trunc(value); -} -noInline(mathTruncOnIntegers); - -function mathTruncOnDoubles(value) -{ - return Math.trunc(value); -} -noInline(mathTruncOnDoubles); - -function mathTruncOnBooleans(value) -{ - return Math.trunc(value); -} -noInline(mathTruncOnBooleans); - -// The trivial cases first. -for (var i = 1; i < 1e4; ++i) { - var truncedValue = mathTruncOnIntegers(i); - if (truncedValue !== i) - throw new Error("mathTruncOnIntegers(" + i + ") = " + truncedValue); - - var truncedValue = mathTruncOnIntegers(-i); - if (truncedValue !== -i) - throw new Error("mathTruncOnIntegers(" + -i + ") = " + truncedValue); - - var doubleLow = i + 0.4; - var truncedValue = mathTruncOnDoubles(doubleLow); - if (truncedValue !== i) - throw new Error("mathTruncOnDoubles(" + doubleLow + ") = " + truncedValue); - - var doubleHigh = i + 0.6; - var truncedValue = mathTruncOnDoubles(doubleHigh); - if (truncedValue !== i) - throw new Error("mathTruncOnDoubles(" + doubleHigh + ") = " + truncedValue); - - var doubleMid = i + 0.5; - var truncedValue = mathTruncOnDoubles(doubleMid); - if (truncedValue !== i) - throw new Error("mathTruncOnDoubles(" + doubleMid + ") = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(-0.6); - if (truncedValue !== -0.0) - throw new Error("mathTruncOnDoubles(-0.6) = " + truncedValue); -} - -// Some more interesting cases, some of them well OSR exit when the return value is zero. -for (var i = 0; i < 1e4; ++i) { - var truncedValue = mathTruncOnIntegers(i); - if (truncedValue !== i) - throw new Error("mathTruncOnIntegers(" + i + ") = " + truncedValue); - - var truncedValue = mathTruncOnIntegers(-i); - if (truncedValue !== -i) - throw new Error("mathTruncOnIntegers(-" + i + ") = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(-0.4); - if (truncedValue !== -0.0) - throw new Error("mathTruncOnDoubles(-0.4) = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(-0.5); - if (truncedValue !== -0.0) - throw new Error("mathTruncOnDoubles(-0.5) = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(-0); - if (!(truncedValue === 0 && (1/truncedValue) === -Infinity)) - throw new Error("mathTruncOnDoubles(-0) = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(NaN); - if (truncedValue === truncedValue) - throw new Error("mathTruncOnDoubles(NaN) = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(Number.POSITIVE_INFINITY); - if (truncedValue !== Number.POSITIVE_INFINITY) - throw new Error("mathTruncOnDoubles(Number.POSITIVE_INFINITY) = " + truncedValue); - - var truncedValue = mathTruncOnDoubles(Number.NEGATIVE_INFINITY); - if (truncedValue !== Number.NEGATIVE_INFINITY) - throw new Error("mathTruncOnDoubles(Number.NEGATIVE_INFINITY) = " + truncedValue); - - var boolean = !!(i % 2); - var truncedBoolean = mathTruncOnBooleans(boolean); - if (truncedBoolean != boolean) - throw new Error("mathTruncOnDoubles(" + boolean + ") = " + truncedBoolean); -} - -function uselessMathTrunc(value) -{ - return Math.trunc(value|0); -} -noInline(uselessMathTrunc); - -for (var i = 0; i < 1e4; ++i) { - var truncedValue = uselessMathTrunc(i); - if (truncedValue !== i) - throw new Error("uselessMathTrunc(" + i + ") = " + truncedValue); - - var doubleLow = i + 0.4; - var truncedValue = uselessMathTrunc(doubleLow); - if (truncedValue !== i) - throw new Error("uselessMathTrunc(" + doubleLow + ") = " + truncedValue); - - var doubleHigh = i + 0.6; - var truncedValue = uselessMathTrunc(doubleHigh); - if (truncedValue !== i) - throw new Error("uselessMathTrunc(" + doubleHigh + ") = " + truncedValue); - - var doubleMid = i + 0.5; - var truncedValue = uselessMathTrunc(doubleMid); - if (truncedValue !== i) - throw new Error("uselessMathTrunc(" + doubleMid + ") = " + truncedValue); - - var truncedValue = uselessMathTrunc(-0.4); - if (truncedValue !== 0) - throw new Error("uselessMathTrunc(-0.4) = " + truncedValue); - - var truncedValue = uselessMathTrunc(-0.5); - if (truncedValue !== 0) - throw new Error("uselessMathTrunc(-0.5) = " + truncedValue); - - var truncedValue = uselessMathTrunc(-0.6); - if (truncedValue !== 0) - throw new Error("uselessMathTrunc(-0.6) = " + truncedValue); -} - -function mathTruncWithOverflow(value) -{ - return Math.trunc(value); -} -noInline(mathTruncWithOverflow); - -for (var i = 0; i < 1e4; ++i) { - var bigValue = 1000000000000; - var truncedValue = mathTruncWithOverflow(bigValue); - if (truncedValue !== bigValue) - throw new Error("mathTruncWithOverflow(" + bigValue + ") = " + truncedValue); -} - -function mathTruncConsumedAsDouble(value) -{ - return Math.trunc(value) * 0.5; -} -noInline(mathTruncConsumedAsDouble); - -for (var i = 0; i < 1e4; ++i) { - var doubleValue = i + 0.1; - var truncedValue = mathTruncConsumedAsDouble(doubleValue); - if (truncedValue !== (i * 0.5)) - throw new Error("mathTruncConsumedAsDouble(" + doubleValue + ") = " + truncedValue); - - var doubleValue = i + 0.6; - var truncedValue = mathTruncConsumedAsDouble(doubleValue); - if (truncedValue !== (i * 0.5)) - throw new Error("mathTruncConsumedAsDouble(" + doubleValue + ") = " + truncedValue); - -} - -function mathTruncDoesNotCareAboutMinusZero(value) -{ - return Math.trunc(value)|0; -} -noInline(mathTruncDoesNotCareAboutMinusZero); - -for (var i = 0; i < 1e4; ++i) { - var doubleMid = i + 0.5; - var truncedValue = mathTruncDoesNotCareAboutMinusZero(doubleMid); - if (truncedValue !== i) - throw new Error("mathTruncDoesNotCareAboutMinusZero(" + doubleMid + ") = " + truncedValue); -} - - -// *** Function arguments. *** -function mathTruncNoArguments() -{ - return Math.trunc(); -} -noInline(mathTruncNoArguments); - -function mathTruncTooManyArguments(a, b, c) -{ - return Math.trunc(a, b, c); -} -noInline(mathTruncTooManyArguments); - -for (var i = 0; i < 1e4; ++i) { - var value = mathTruncNoArguments(); - if (value === value) - throw new Error("mathTruncNoArguments() = " + value); - - var value = mathTruncTooManyArguments(2.1, 3, 5); - if (value !== 2) - throw new Error("mathTruncTooManyArguments() = " + value); -} - - -// *** Constant as arguments. *** -function testMathTruncOnConstants() -{ - var value = Math.trunc(0); - if (value !== 0) - throw new Error("Math.trunc(0) = " + value); - var value = Math.trunc(-0); - if (!(value === 0 && (1/value) === -Infinity)) - throw new Error("Math.trunc(-0) = " + value); - var value = Math.trunc(1); - if (value !== 1) - throw new Error("Math.trunc(1) = " + value); - var value = Math.trunc(-1); - if (value !== -1) - throw new Error("Math.trunc(-1) = " + value); - var value = Math.trunc(42); - if (value !== 42) - throw new Error("Math.trunc(42) = " + value); - var value = Math.trunc(-42.2); - if (value !== -42) - throw new Error("Math.trunc(-42.2) = " + value); - var value = Math.trunc(NaN); - if (value === value) - throw new Error("Math.trunc(NaN) = " + value); - var value = Math.trunc(Number.POSITIVE_INFINITY); - if (value !== Infinity) - throw new Error("Math.trunc(Number.POSITIVE_INFINITY) = " + value); - var value = Math.trunc(Number.NEGATIVE_INFINITY); - if (value !== -Infinity) - throw new Error("Math.trunc(Number.NEGATIVE_INFINITY) = " + value); - var value = Math.trunc(Math.E); - if (value !== 2) - throw new Error("Math.trunc(Math.E) = " + value); -} -noInline(testMathTruncOnConstants); - -for (var i = 0; i < 1e4; ++i) { - testMathTruncOnConstants(); -} - - -// *** Struct transition. *** -function mathTruncStructTransition(value) -{ - return Math.trunc(value); -} -noInline(mathTruncStructTransition); - -for (var i = 0; i < 1e4; ++i) { - var value = mathTruncStructTransition(42.5); - if (value !== 42) - throw new Error("mathTruncStructTransition(42.5) = " + value); -} - -Math.trunc = function() { return arguments[0] + 5; } - -var value = mathTruncStructTransition(42); -if (value !== 47) - throw new Error("mathTruncStructTransition(42) after transition = " + value); diff --git a/implementation-contributed/javascriptcore/stress/math-trunc-should-be-truncate.js b/implementation-contributed/javascriptcore/stress/math-trunc-should-be-truncate.js deleted file mode 100644 index fb9ea9bba83b327a3f2f3b001530a58c080f1fe2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-trunc-should-be-truncate.js +++ /dev/null @@ -1,12 +0,0 @@ -function mathTrunc(value) -{ - return Math.trunc(value); -} -noInline(mathTrunc); - -for (var i = 0; i < 1e4; ++i) { - var doubleMid = -9901 - 0.6; - var roundedValue = mathTrunc(doubleMid); - if (roundedValue !== -9901) - throw "mathRoundDoesNotCareAboutMinusZero(" + doubleMid + ") = " + roundedValue; -} diff --git a/implementation-contributed/javascriptcore/stress/math-unary-no-arg.js b/implementation-contributed/javascriptcore/stress/math-unary-no-arg.js deleted file mode 100644 index f4f491fe2e1b8d6541e732d2f8c2403ebb86c042..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/math-unary-no-arg.js +++ /dev/null @@ -1,38 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -let functions = [ - 'sin', - 'sinh', - 'cos', - 'cosh', - 'tan', - 'tanh', - 'asin', - 'asinh', - 'acos', - 'acosh', - 'atan', - 'atanh', - 'log', - 'log10', - 'log1p', - 'log2', - 'cbrt', - 'exp', - 'expm1' -]; - -let repository = {}; -for (let func of functions) { - let wrap = new Function(`return Math.${func}()`); - noInline(wrap); - repository[func] = wrap; -} - -for (let i = 0; i < 1e4; ++i) { - for (let func of functions) - shouldBe(Number.isNaN(repository[func]()), true); -} diff --git a/implementation-contributed/javascriptcore/stress/max-boolean-exit.js b/implementation-contributed/javascriptcore/stress/max-boolean-exit.js deleted file mode 100644 index 66aee2593a84cacbc8d09dd993547fa595778062..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/max-boolean-exit.js +++ /dev/null @@ -1,22 +0,0 @@ -function foo(a, b) { - return Math.max(a.f, b.f); -} - -noInline(foo); - -function test(a, b, c) { - var result = foo({f:a}, {f:b}); - if (result != c) - throw "Error: expected " + c + " but got: " + result; -} - -for (var i = 0; i < 100000; ++i) - test(true, 42, 42); - -// Now try some unexpected things, in descending order of possible badness. -test(true, 2147483647, 2147483647); -test(false, 42, 42); -test(1, 2, 2); -test(true, true, 1); -test(1.5, 1.5, 1.5); - diff --git a/implementation-contributed/javascriptcore/stress/may-exit-should-be-false-regexp-constant-folding.js b/implementation-contributed/javascriptcore/stress/may-exit-should-be-false-regexp-constant-folding.js deleted file mode 100644 index 0378a0c7d85c3cdd0b19453cfc8cc3d5e45f2257..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/may-exit-should-be-false-regexp-constant-folding.js +++ /dev/null @@ -1,25 +0,0 @@ -//@ runDefault("--jitPolicyScale=0", "--useConcurrentJIT=0", "--validateGraphAtEachPhase=1") - -let re0 = /a/; -let str0 = 'b'; -function foo() { - /a/.exec('b'); - for (var i = 0; i < 6; i++) { - } - for (var i = 0; i < 3; i++) { - re0.exec('a'); - } - str0.match(/a/); - for (var i = 0; i < 2; i++) { - str0.match(/a/g); - } -} -function bar() { - for (var i = 0; i < 6; i++) { - 'a'.match(/b/); - } -} - -foo(); -bar(); -foo(); diff --git a/implementation-contributed/javascriptcore/stress/method-name.js b/implementation-contributed/javascriptcore/stress/method-name.js deleted file mode 100644 index 45ee5ba489782d573bd779e249f1d9cf6dc1bd1d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/method-name.js +++ /dev/null @@ -1,46 +0,0 @@ -function testSyntax(script) { - try { - eval(script); - } catch (error) { - if (error instanceof SyntaxError) - throw new Error("Bad error: " + String(error)); - } -} - -function testSyntaxError(script, message) { - var error = null; - try { - eval(script); - } catch (e) { - error = e; - } - if (!error) - throw new Error("Expected syntax error not thrown"); - - if (String(error) !== message) - throw new Error("Bad error: " + String(error)); -} - -testSyntaxError(` -class Hello { - hello hello() { } -} -`, `SyntaxError: Unexpected identifier 'hello'. Expected an opening '(' before a method's parameter list.`); - -testSyntaxError(` -let obj = { - hello hello() { } -} -`, `SyntaxError: Unexpected identifier 'hello'. Expected a ':' following the property name 'hello'.`); - -testSyntaxError(` -class Hello { - get hello hello() { } -} -`, `SyntaxError: Unexpected identifier 'hello'. Expected a parameter list for getter definition.`); - -testSyntaxError(` -class Hello { - set hello hello(v) { } -} -`, `SyntaxError: Unexpected identifier 'hello'. Expected a parameter list for setter definition.`); diff --git a/implementation-contributed/javascriptcore/stress/misaligned-int8-view-byte-offset.js b/implementation-contributed/javascriptcore/stress/misaligned-int8-view-byte-offset.js deleted file mode 100644 index 66882981272afa871628085d74e14ce367420e9d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/misaligned-int8-view-byte-offset.js +++ /dev/null @@ -1,25 +0,0 @@ -function make(offset) { - // Default offset is 1. - if (offset === void 0) - offset = 1; - - var int8Array = new Int8Array(100); - for (var i = 0; i < int8Array.length; ++i) - int8Array[i] = i; - - return new Int8Array(int8Array.buffer, offset, int8Array.length - offset); -} -noInline(make); - -function foo(o) { - return o.byteOffset; -} - -noInline(foo); - -var o = make(); -for (var i = 0; i < 10000; ++i) { - var result = foo(o); - if (result != 1) - throw "Error: bad result: " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/misaligned-int8-view-read.js b/implementation-contributed/javascriptcore/stress/misaligned-int8-view-read.js deleted file mode 100644 index 25b9d8acebfc4560ab18f29a9c57bc8814fa8908..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/misaligned-int8-view-read.js +++ /dev/null @@ -1,26 +0,0 @@ -function make(offset) { - // Default offset is 1. - if (offset === void 0) - offset = 1; - - var int8Array = new Int8Array(100); - for (var i = 0; i < int8Array.length; ++i) - int8Array[i] = i; - - return new Int8Array(int8Array.buffer, offset, int8Array.length - offset); -} -noInline(make); - -function foo(o, i) { - return o[i]; -} - -noInline(foo); - -var o = make(); -for (var i = 0; i < 10000; ++i) { - var index = i % o.length; - var result = foo(o, index); - if (result != index + 1) - throw "Read test error: bad result for index = " + index + ": " + result + "; expected " + (index + 1); -} diff --git a/implementation-contributed/javascriptcore/stress/misaligned-int8-view-write.js b/implementation-contributed/javascriptcore/stress/misaligned-int8-view-write.js deleted file mode 100644 index 04bc5753c1ef160f0f705349609402d763dc4cfe..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/misaligned-int8-view-write.js +++ /dev/null @@ -1,30 +0,0 @@ -function make(offset) { - // Default offset is 1. - if (offset === void 0) - offset = 1; - - var int8Array = new Int8Array(100); - for (var i = 0; i < int8Array.length; ++i) - int8Array[i] = i; - - return new Int8Array(int8Array.buffer, offset, int8Array.length - offset); -} -noInline(make); - -function foo(o, i, v) { - o[i] = v; -} - -noInline(foo); - -var o = make(); -var real = new Int8Array(o.buffer); -for (var i = 0; i < 10000; ++i) { - var index = i % o.length; - var value = i % 7; - foo(o, index, value); - var result = real[index + 1]; - if (result != value) - throw "Write test error: bad result for index = " + index + ": " + result + "; expected " + value; -} - diff --git a/implementation-contributed/javascriptcore/stress/misc-is-object-or-null.js b/implementation-contributed/javascriptcore/stress/misc-is-object-or-null.js deleted file mode 100644 index e8968e545dc65c39e3e4f6c31f21ae951738ba8b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/misc-is-object-or-null.js +++ /dev/null @@ -1,13 +0,0 @@ -function foo(p) { - var x = p ? null : false; - return (typeof x) == "object"; -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - var p = !!(i & 1); - var result = foo(p); - if (result !== p) - throw "Error: bad result for p = " + p + ": " + result; -} diff --git a/implementation-contributed/javascriptcore/stress/miss-variant-merge.js b/implementation-contributed/javascriptcore/stress/miss-variant-merge.js deleted file mode 100644 index 258c4415e577c5b8157d005a66597f379a64e692..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/miss-variant-merge.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} -noInline(shouldBe); - -function test(object) -{ - return object.return; -} -noInline(test); - -var object1 = {}; -var object2 = { hello: 42 }; -for (var i = 0; i < 10; ++i) { - shouldBe(test(object1), undefined); -} -for (var i = 0; i < 1e6; ++i) { - shouldBe(test(object1), undefined); - shouldBe(test(object2), undefined); -} diff --git a/implementation-contributed/javascriptcore/stress/model-effects-properly-of-spread-over-phantom-create-rest.js b/implementation-contributed/javascriptcore/stress/model-effects-properly-of-spread-over-phantom-create-rest.js deleted file mode 100644 index 287906d5bda2669bb9e7399a40c6d2bd650805e6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/model-effects-properly-of-spread-over-phantom-create-rest.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -function f1(o) { - let result = []; - for (let key of Object.getOwnPropertyNames(o)) { - result.push(key) - } - return result; -} -function f2(a1, a2, ...args) { - let r = f1(a1); - let index = r[a2 % r.length]; - a1[index](...args) -} -let theObj = {}; -let o2 = { - valueOf: function (a, b) { - a === 42 - b === theObj - try {} catch (e) {} - } -}; -for (let i = 0; i < 1e5; ++i) { - for (let j = 0; j < 100; j++) {} - f2(o2, 897989, 42, theObj); -} diff --git a/implementation-contributed/javascriptcore/stress/modify-map-during-iteration.js b/implementation-contributed/javascriptcore/stress/modify-map-during-iteration.js deleted file mode 100644 index 6261689cb52e9b4dfa7ba8d89395d91d2bfe48a3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/modify-map-during-iteration.js +++ /dev/null @@ -1,97 +0,0 @@ - -function testValue(value, expected) { - if (value !== expected) - throw new Error("bad value: expected:(" + expected + "),actual:(" + value +")."); -} - -function identityPairs(array) { - return array.map(function (i) { return [i, i]; }); -} - -var map = new Map(identityPairs([0])); -var counter = 0; -for (var [elm, _] of map) { - testValue(elm, counter); - map.set(elm + 1, elm + 1); - if (elm > 10000) { - map.clear(); - } - ++counter; -} -testValue(counter, 10002); - -var map = new Map(identityPairs([0, 1, 2, 3])); -var counter = 0; -for (var [elm, _] of map) { - testValue(elm, counter); - map.clear(); - ++counter; -} -testValue(counter, 1); - -var map = new Map(identityPairs([0, 1, 2, 3])); -var exp = [0, 2, 3]; -var counter = 0; -for (var [elm, _] of map) { - testValue(elm, exp[counter]); - map.delete(counter + 1); - ++counter; -} -testValue(counter, 3); - -var map = new Map(identityPairs([0, 1, 2, 3])); -var iter = map.keys(); -var iter2 = map.keys(); -testValue(iter2.next().value, 0); - -// Consume all output of iter. -for (var elm of iter); - -testValue(iter.next().done, true); -testValue(iter.next().value, undefined); - -map.clear(); -map.set(1, 1).set(2, 2).set(3, 3); - -testValue(iter.next().done, true); -testValue(iter.next().value, undefined); -testValue(iter2.next().value, 1); -testValue(iter2.next().value, 2); -testValue(iter2.next().value, 3); - -var map = new Map(); -map.set(1, 1); -map.delete(1); -map.forEach(function (i) { - throw new Error("unreeachable."); -}); - -var map = new Map(); -var iter = map[Symbol.iterator](); -map.set(1, 1); -map.delete(1); -for (var [elm, _] of map) { - throw new Error("unreeachable."); -} - -var map = new Map(); -for (var i = 0; i < 5; ++i) - map.set(i, i); -testValue(map.size, 5); -var iter = map.keys(); -testValue(iter.next().value, 0); -testValue(iter.next().value, 1); -testValue(iter.next().value, 2); -testValue(iter.next().value, 3); -map.delete(0); -map.delete(1); -map.delete(2); -map.delete(3); -// It will cause MapData packing. -for (var i = 5; i < 1000; ++i) - map.set(i, i); -gc(); -for (var i = 4; i < 1000; ++i) - testValue(iter.next().value, i); -testValue(iter.next().value, undefined); - diff --git a/implementation-contributed/javascriptcore/stress/modify-set-during-iteration.js b/implementation-contributed/javascriptcore/stress/modify-set-during-iteration.js index a7398473912a70a193fcdc85304a9978addb8f81..0c4c0f91ba9b483480e9d2edd4241d3fa204b929 100644 --- a/implementation-contributed/javascriptcore/stress/modify-set-during-iteration.js +++ b/implementation-contributed/javascriptcore/stress/modify-set-during-iteration.js @@ -1,3 +1,4 @@ +// Reviewed function testValue(value, expected) { if (value !== expected) diff --git a/implementation-contributed/javascriptcore/stress/module-namespace-access-change.js b/implementation-contributed/javascriptcore/stress/module-namespace-access-change.js deleted file mode 100644 index 6e495675f22b0ac3e2c716516ce424a1f4199ac1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/module-namespace-access-change.js +++ /dev/null @@ -1,19 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function access(namespace) -{ - return namespace.test; -} -noInline(access); - -import("./resources/module-namespace-access.js").then((ns) => { - for (var i = 0; i < 1e4; ++i) - shouldBe(access(ns), 42) - ns.change(); - for (var i = 0; i < 1e4; ++i) - shouldBe(access(ns), 55) -}); -drainMicrotasks(); diff --git a/implementation-contributed/javascriptcore/stress/module-namespace-access-non-constant.js b/implementation-contributed/javascriptcore/stress/module-namespace-access-non-constant.js deleted file mode 100644 index 02d7065f20f32591fd3fcccc71530f6f0a3c5015..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/module-namespace-access-non-constant.js +++ /dev/null @@ -1,13 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -import("./resources/module-namespace-access.js").then((ns) => { - ns.change(); - for (var i = 0; i < 1e6; ++i) { - shouldBe(ns.test, 55); - shouldBe(ns.cocoa(), 55); - } -}); -drainMicrotasks(); diff --git a/implementation-contributed/javascriptcore/stress/module-namespace-access-poly.js b/implementation-contributed/javascriptcore/stress/module-namespace-access-poly.js deleted file mode 100644 index 5dfcac72db0519ab3961289f853e9dd39086bec1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/module-namespace-access-poly.js +++ /dev/null @@ -1,24 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function access(ns) -{ - return ns.test; -} -noInline(access); - -import("./resources/module-namespace-access.js").then((ns) => { - for (var i = 0; i < 1e4; ++i) { - shouldBe(access(ns), 42); - } - let nonNS = { test: 50 }; - let nonNS2 = { ok: 22, test: 52 }; - for (var i = 0; i < 1e4; ++i) { - shouldBe(access(ns), 42); - shouldBe(access(nonNS), 50); - shouldBe(access(nonNS2), 52); - } -}); -drainMicrotasks(); diff --git a/implementation-contributed/javascriptcore/stress/module-namespace-access-transitive-exports.js b/implementation-contributed/javascriptcore/stress/module-namespace-access-transitive-exports.js deleted file mode 100644 index b74e5e5c9b28efa8cf1e2a5fbb364d6c25a5870b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/module-namespace-access-transitive-exports.js +++ /dev/null @@ -1,12 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -import("./resources/module-namespace-access-transitive-exports.js").then((ns) => { - for (var i = 0; i < 1e6; ++i) { - shouldBe(ns.test, 42); - shouldBe(ns.cocoa(), 42); - } -}); -drainMicrotasks(); diff --git a/implementation-contributed/javascriptcore/stress/module-namespace-access.js b/implementation-contributed/javascriptcore/stress/module-namespace-access.js deleted file mode 100644 index 2ac1409003487a91fbcd6e77e852c444b3921252..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/module-namespace-access.js +++ /dev/null @@ -1,12 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -import("./resources/module-namespace-access.js").then((ns) => { - for (var i = 0; i < 1e6; ++i) { - shouldBe(ns.test, 42); - shouldBe(ns.cocoa(), 42); - } -}); -drainMicrotasks(); diff --git a/implementation-contributed/javascriptcore/stress/modules-syntax-error-with-names.js b/implementation-contributed/javascriptcore/stress/modules-syntax-error-with-names.js deleted file mode 100644 index ef7d54fa2db25a8a91152c8173c5dbcbd9f302fe..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/modules-syntax-error-with-names.js +++ /dev/null @@ -1,255 +0,0 @@ -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -function checkModuleSyntaxError(source, errorMessage) { - shouldThrow(() => checkModuleSyntax(source), errorMessage); -} - -// --------------- import ------------------- - -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -const A = 20; -`, `SyntaxError: Cannot declare a const variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -const A = 20; -import A from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -let A = 20; -`, `SyntaxError: Cannot declare a let variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -let A = 20; -import A from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import * as A from "Cocoa" -const A = 20; -`, `SyntaxError: Cannot declare a const variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -const A = 20; -import * as A from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import * as A from "Cocoa" -let A = 20; -`, `SyntaxError: Cannot declare a let variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -let A = 20; -import * as A from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import { A } from "Cocoa" -const A = 20; -`, `SyntaxError: Cannot declare a const variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -const A = 20; -import { A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import { A } from "Cocoa" -let A = 20; -`, `SyntaxError: Cannot declare a let variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -let A = 20; -import { A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import { B as A } from "Cocoa" -const A = 20; -`, `SyntaxError: Cannot declare a const variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -const A = 20; -import { B as A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import { B as A } from "Cocoa" -let A = 20; -`, `SyntaxError: Cannot declare a let variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -let A = 20; -import { B as A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:3`); - -checkModuleSyntax(String.raw` -import { A as B } from "Cocoa" -const A = 20; -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntax(String.raw` -const A = 20; -import { A as B } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntax(String.raw` -import { A as B } from "Cocoa" -let A = 20; -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntax(String.raw` -let A = 20; -import { A as B } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import { A, B as A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import { A, A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import { C as A, B as A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import A, { A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import A, { B as A } from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import A, * as A from "Cocoa" -`, `SyntaxError: Cannot declare an imported binding name twice: 'A'.:2`); - -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -const { A } = obj; -`, `SyntaxError: Unexpected token '}'. Cannot declare a lexical variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -const [ A ] = array; -`, `SyntaxError: Unexpected identifier 'A'. Cannot declare a lexical variable twice: 'A'.:3`); - -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -const { B:A } = obj; -`, `SyntaxError: Unexpected identifier 'A'. Cannot declare a lexical variable twice: 'A'.:3`); - -checkModuleSyntax(String.raw` -import A from "Cocoa" -const { A:B } = obj; -`); - -// --------------- export ------------------- - -checkModuleSyntaxError(String.raw` -export { A as B } from 'mod' -export B from 'mod2' -`, `SyntaxError: Unexpected identifier 'B'. Expected either a declaration or a variable statement.:3`); - -checkModuleSyntax(String.raw` -export { A as B } from 'mod' -const A = 42; -const B = 'Cocoa'; -`); - -checkModuleSyntaxError(String.raw` -export { A as B } -const B = 'Cocoa'; -`, `SyntaxError: Exported binding 'A' needs to refer to a top-level declared variable.:4`); - - -checkModuleSyntaxError(String.raw` -export default 20; -export default function hello () { } -`, `SyntaxError: Only one 'default' export is allowed.:4`); - -checkModuleSyntaxError(String.raw` -export default function hello () { } -export default 20; -`, `SyntaxError: Only one 'default' export is allowed.:4`); - -checkModuleSyntaxError(String.raw` -var a = 42; -var b = 55; -export { a as Cocoa, b as Cocoa }; -`, `SyntaxError: Cannot export a duplicate name 'Cocoa'.:4`); - -checkModuleSyntaxError(String.raw` -var a = 42; -var b = 55; -export { a as Cocoa, b as Cocoa }; -`, `SyntaxError: Cannot export a duplicate name 'Cocoa'.:4`); - -checkModuleSyntaxError(String.raw` -var Cocoa = 42; -var b = 55; -export { Cocoa, b as Cocoa }; -`, `SyntaxError: Cannot export a duplicate name 'Cocoa'.:4`); - -checkModuleSyntaxError(String.raw` -export var Cocoa = 42; -var b = 55; -export { b as Cocoa }; -`, `SyntaxError: Cannot export a duplicate name 'Cocoa'.:4`); - -checkModuleSyntaxError(String.raw` -var a = 42; -export { a as Cocoa }; -export function Cocoa() { } -`, `SyntaxError: Cannot export a duplicate function name: 'Cocoa'.:5`); - -checkModuleSyntaxError(String.raw` -var a = 42; -export { a as Cocoa }; -export class Cocoa { } -`, `SyntaxError: Cannot export a duplicate class name: 'Cocoa'.:5`); - -// FIXME: These tests also should be passed. But now, var and lexical declared names can be co-exist on Script / Module top level scope. -// This will be fixed when this issue is fixed for Script environment. -// http://www.ecma-international.org/ecma-262/6.0/#sec-scripts-static-semantics-early-errors -// http://www.ecma-international.org/ecma-262/6.0/#sec-module-semantics-static-semantics-early-errors -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -var A = 20; -`, `SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: 'A'.:3`); - -// checkModuleSyntaxError(String.raw` -// var A = 20; -// import A from "Cocoa" -// `, ``); - -checkModuleSyntaxError(String.raw` -import A from "Cocoa" -var A = 20; -`, `SyntaxError: Cannot declare a var variable that shadows a let/const/class variable: 'A'.:3`); - -// checkModuleSyntaxError(String.raw` -// var A = 20; -// import A from "Cocoa" -// `, ``); - - diff --git a/implementation-contributed/javascriptcore/stress/modules-syntax-error.js b/implementation-contributed/javascriptcore/stress/modules-syntax-error.js deleted file mode 100644 index 51828def71760e470a2449631935d5f400f1fb68..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/modules-syntax-error.js +++ /dev/null @@ -1,318 +0,0 @@ -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -function checkModuleSyntaxError(source, errorMessage) { - shouldThrow(() => checkModuleSyntax(source), errorMessage); -} - -// --------------- import ------------------- - -checkModuleSyntaxError(String.raw` -import {,} from "Cocoa" -`, `SyntaxError: Unexpected token ','. Expected an imported name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import * from "Cocoa" -`, `SyntaxError: Unexpected identifier 'from'. Expected 'as' before imported binding name.:2`); - -checkModuleSyntaxError(String.raw` -import * from "Cocoa" -`, `SyntaxError: Unexpected identifier 'from'. Expected 'as' before imported binding name.:2`); - -checkModuleSyntaxError(String.raw` -import * of name from "Cocoa" -`, `SyntaxError: Unexpected identifier 'of'. Expected 'as' before imported binding name.:2`); - -checkModuleSyntaxError(String.raw` -import * as name fro "Cocoa" -`, `SyntaxError: Unexpected identifier 'fro'. Expected 'from' before imported module name.:2`); - -checkModuleSyntaxError(String.raw` -import * as name fro "Cocoa" -`, `SyntaxError: Unexpected identifier 'fro'. Expected 'from' before imported module name.:2`); - -checkModuleSyntaxError(String.raw` -import d, { e, f, g as c }, c from "Cappuccino" -`, `SyntaxError: Unexpected token ','. Expected 'from' before imported module name.:2`); - -checkModuleSyntaxError(String.raw` -import d, c from "Cappuccino" -`, `SyntaxError: Unexpected identifier 'c'. Expected namespace import or import list.:2`); - -checkModuleSyntaxError(String.raw` -import i, * as j, * as k from "Cappuccino" -`, `SyntaxError: Unexpected token ','. Expected 'from' before imported module name.:2`); - -checkModuleSyntaxError(String.raw` -import * as a, b from "Cappuccino" -`, `SyntaxError: Unexpected token ','. Expected 'from' before imported module name.:2`); - -checkModuleSyntaxError(String.raw` -import { a, b, c as d }, e from "Cappuccino" -`, `SyntaxError: Unexpected token ','. Expected 'from' before imported module name.:2`); - -checkModuleSyntaxError(String.raw` -import a -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import a from -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import { a } -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import {} from -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import * -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import * as -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import * from -`, `SyntaxError: Unexpected identifier 'from'. Expected 'as' before imported binding name.:2`); - -checkModuleSyntaxError(String.raw` -import * as from from -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import * as from from d -`, `SyntaxError: Unexpected identifier 'd'. Imported modules names must be string literals.:2`); - -checkModuleSyntaxError(String.raw` -import * as from from 20 -`, `SyntaxError: Unexpected number '20'. Imported modules names must be string literals.:2`); - -checkModuleSyntaxError(String.raw` -function noTopLevel() { - import * as from from "Cocoa" -} -`, `SyntaxError: Unexpected token '*'. import call expects exactly one argument.:3`); - -checkModuleSyntaxError(String.raw` -if (noTopLevel) { - import * as from from "Cocoa" -} -`, `SyntaxError: Unexpected token '*'. import call expects exactly one argument.:3`); - -checkModuleSyntaxError(String.raw` -{ - import * as from from "Cocoa" -} -`, `SyntaxError: Unexpected token '*'. import call expects exactly one argument.:3`); - -checkModuleSyntaxError(String.raw` -for (var i = 0; i < 1000; ++i) { - import * as from from "Cocoa" -} -`, `SyntaxError: Unexpected token '*'. import call expects exactly one argument.:3`); - -checkModuleSyntaxError(String.raw` -import for from "Cocoa"; -`, `SyntaxError: Unexpected keyword 'for'. Expected namespace import or import list.:2`); - -checkModuleSyntaxError(String.raw` -import enum from "Cocoa"; -`, `SyntaxError: Unexpected use of reserved word 'enum'. Expected namespace import or import list.:2`); - -checkModuleSyntaxError(String.raw` -import * as for from "Cocoa"; -`, `SyntaxError: Unexpected keyword 'for'. Expected a variable name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import * as enum from "Cocoa"; -`, `SyntaxError: Unexpected use of reserved word 'enum'. Expected a variable name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import { module as default } from "Cocoa" -`, `SyntaxError: Unexpected keyword 'default'. Expected a variable name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import { module as enum } from "Cocoa" -`, `SyntaxError: Unexpected use of reserved word 'enum'. Expected a variable name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import { for } from "Cocoa" -`, `SyntaxError: Cannot use keyword as imported binding name.:2`); - - -checkModuleSyntaxError(String.raw` -import a, { [assign] as c } from "Cocoa" -`, `SyntaxError: Unexpected token '['. Expected an imported name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import d, { g as {obj} } from "Cappuccino" -`, `SyntaxError: Unexpected token '{'. Expected a variable name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import d, { {obj} } from "Cappuccino" -`, `SyntaxError: Unexpected token '{'. Expected an imported name for the import declaration.:2`); - -checkModuleSyntaxError(String.raw` -import { binding -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import { hello, binding as -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -import { hello, binding as -`, `SyntaxError: Unexpected end of script:3`); - -// --------------- export ------------------- - -checkModuleSyntaxError(String.raw` -export { , } from "Cocoa" -`, `SyntaxError: Unexpected token ','. Expected a variable name for the export declaration.:2`); - -checkModuleSyntaxError(String.raw` -export { a, , } from "Cocoa" -`, `SyntaxError: Unexpected token ','. Expected a variable name for the export declaration.:2`); - -checkModuleSyntaxError(String.raw` -export a from "Cocoa" -`, `SyntaxError: Unexpected identifier 'a'. Expected either a declaration or a variable statement.:2`); - -checkModuleSyntaxError(String.raw` -export a -`, `SyntaxError: Unexpected identifier 'a'. Expected either a declaration or a variable statement.:2`); - -checkModuleSyntaxError(String.raw` -export * as b from "Cocoa" -`, `SyntaxError: Unexpected identifier 'as'. Expected 'from' before exported module name.:2`); - -checkModuleSyntaxError(String.raw` -export * "Cocoa" -`, `SyntaxError: Unexpected string literal "Cocoa". Expected 'from' before exported module name.:2`); - -checkModuleSyntaxError(String.raw` -export const a; -`, `SyntaxError: Unexpected token ';'. const declared variable 'a' must have an initializer.:2`); - -checkModuleSyntaxError(String.raw` -export const a = 20, b; -`, `SyntaxError: Unexpected token ';'. const declared variable 'b' must have an initializer.:2`); - -checkModuleSyntaxError(String.raw` -export default 20, 30, 40; -`, `SyntaxError: Unexpected token ','. Expected a ';' following a targeted export declaration.:2`); - -checkModuleSyntaxError(String.raw` -export function () { } -`, `SyntaxError: Function statements must have a name.:2`); - -checkModuleSyntaxError(String.raw` -export class { } -`, `SyntaxError: Class statements must have a name.:2`); - -checkModuleSyntaxError(String.raw` -export class extends Drink { -} -`, `SyntaxError: Cannot use the keyword 'extends' as a class name.:2`); - -checkModuleSyntaxError(String.raw` -export default 20 30 -`, `SyntaxError: Unexpected number '30'. Expected a ';' following a targeted export declaration.:2`); - -checkModuleSyntaxError(String.raw` -export default 20 + 30, 40; -`, `SyntaxError: Unexpected token ','. Expected a ';' following a targeted export declaration.:2`); - -checkModuleSyntaxError(String.raw` -export { default as default } -`, `SyntaxError: Cannot use keyword as exported variable name.:3`); - -checkModuleSyntaxError(String.raw` -export { default } -`, `SyntaxError: Cannot use keyword as exported variable name.:3`); - -checkModuleSyntaxError(String.raw` -export { default as binding } -`, `SyntaxError: Cannot use keyword as exported variable name.:3`); - -checkModuleSyntaxError(String.raw` -export { hello, default as binding } -`, `SyntaxError: Cannot use keyword as exported variable name.:3`); - -checkModuleSyntaxError(String.raw` -export { implements } -`, `SyntaxError: Cannot use keyword as exported variable name.:3`); - -checkModuleSyntaxError(String.raw` -export { static } -`, `SyntaxError: Cannot use keyword as exported variable name.:3`); - -checkModuleSyntaxError(String.raw` -export { binding -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -export { hello, binding as -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -export { hello, binding as -`, `SyntaxError: Unexpected end of script:3`); - -checkModuleSyntaxError(String.raw` -function noTopLevel() { - export * from "Cocoa" -} -`, `SyntaxError: Unexpected keyword 'export':3`); - -checkModuleSyntaxError(String.raw` -if (noTopLevel) { - export * from "Cocoa" -} -`, `SyntaxError: Unexpected keyword 'export':3`); - -checkModuleSyntaxError(String.raw` -{ - export * from "Cocoa" -} -`, `SyntaxError: Unexpected keyword 'export':3`); - -checkModuleSyntaxError(String.raw` -for (var i = 0; i < 1000; ++i) { - export * from "Cocoa" -} -`, `SyntaxError: Unexpected keyword 'export':3`); - -// --------------- other --------------------- - -checkModuleSyntaxError(String.raw` -new.target; -`, `SyntaxError: new.target is only valid inside functions.:2`); - -checkModuleSyntaxError(String.raw` -super(); -`, `SyntaxError: super is not valid in this context.:2`); - -checkModuleSyntaxError(String.raw` -super.test(); -`, `SyntaxError: super is not valid in this context.:2`); - -checkModuleSyntaxError(String.raw` -super.test = 20; -`, `SyntaxError: super is not valid in this context.:2`); diff --git a/implementation-contributed/javascriptcore/stress/modules-syntax.js b/implementation-contributed/javascriptcore/stress/modules-syntax.js deleted file mode 100644 index 6feffb17e34ac103cde704b0191498492a291754..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/modules-syntax.js +++ /dev/null @@ -1,312 +0,0 @@ -checkModuleSyntax(String.raw` -import "Cocoa"; -`); - -// Examples in 15.2.1.16 -// http://www.ecma-international.org/ecma-262/6.0/#sec-source-text-module-records -checkModuleSyntax(String.raw` -import v from "mod"; -`); - -checkModuleSyntax(String.raw` -import * as ns from "mod"; -`); - -checkModuleSyntax(String.raw` -import {x} from "mod"; -`); - -checkModuleSyntax(String.raw` -import {x,} from "mod"; -`); - -checkModuleSyntax(String.raw` -import {} from "mod"; -`); - -checkModuleSyntax(String.raw` -import {x as v} from "mod"; -`); - -checkModuleSyntax(String.raw` -import "mod"; -`); - -checkModuleSyntax(String.raw` -export var v; -`); - -checkModuleSyntax(String.raw` -export default function f(){}; -`); - -checkModuleSyntax(String.raw` -export default function(){}; -`); - -checkModuleSyntax(String.raw` -export default 42; -`); - -checkModuleSyntax(String.raw` -const x = 20; -export {x}; -`); - -checkModuleSyntax(String.raw` -const v = 20; -export {v as x}; -`); - -checkModuleSyntax(String.raw` -export {x} from "mod"; -`); - -checkModuleSyntax(String.raw` -export {v as x} from "mod"; -`); - -checkModuleSyntax(String.raw` -export * from "mod"; -`); - -// semicolon is not needed. -checkModuleSyntax(String.raw` -export default function () { } 40; -`); - -checkModuleSyntax(String.raw` -export default class { } 40; -`); - -checkModuleSyntax(String.raw` -export default function Cappuccino() { } 40 -`); - -checkModuleSyntax(String.raw` -export default class Cappuccino { } 40 -`); - -checkModuleSyntax(String.raw` -import a, { b as c } from "Cocoa" -import d, { e, f, g as h } from "Cappuccino" -import { } from "Cappuccino" -import i, * as j from "Cappuccino" -`); - -checkModuleSyntax(String.raw` -import a, { } from "Cappuccino" -`); - -checkModuleSyntax(String.raw` -import a, { b, } from "Cappuccino" -`); - -checkModuleSyntax(String.raw` -import * as from from "Matcha" -import * as as from "Cocoa" -`); - -checkModuleSyntax(String.raw` -import { default as module } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export * from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { a } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { a as b } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { a, b } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { a, c as d, b } -let a, c, b; -`); - -checkModuleSyntax(String.raw` -export { } -`); - -checkModuleSyntax(String.raw` -export { a } -let a; -`); - -checkModuleSyntax(String.raw` -export { a, } -let a; -`); - -checkModuleSyntax(String.raw` -var a = 20; -export { a as b } -`); - -checkModuleSyntax(String.raw` -export { a, b } -var a, b = 40; -`); - -checkModuleSyntax(String.raw` -export { a, c as d, b } -let a, c, b; -`); - -checkModuleSyntax(String.raw` -export var a; -`); - -checkModuleSyntax(String.raw` -export var a, b, c = 20; -`); - -checkModuleSyntax(String.raw` -export var a, { b, c } = obj, d = 20; -`); - -checkModuleSyntax(String.raw` -export const a = 20; -`); - -checkModuleSyntax(String.raw` -export const [b, ...a] = obj; -`); - -checkModuleSyntax(String.raw` -export const {b, c: d} = obj; -`); - -checkModuleSyntax(String.raw` -export let a; -`); - -checkModuleSyntax(String.raw` -export let a = 20; -`); - -checkModuleSyntax(String.raw` -export let a = 20, b = 30; -`); - -checkModuleSyntax(String.raw` -export let [b, ...a] = obj; -`); - -checkModuleSyntax(String.raw` -export let {b, c: d} = obj; -`); - -checkModuleSyntax(String.raw` -export function Cocoa() { -} -`); - -checkModuleSyntax(String.raw` -export class Cocoa { -} -`); - -checkModuleSyntax(String.raw` -export class Cocoa extends Drink { -} -`); - -checkModuleSyntax(String.raw` -export default function Cocoa() { -} -`); - -checkModuleSyntax(String.raw` -export default function () { -} -`); - -checkModuleSyntax(String.raw` -export default class Cocoa { -} -`); - -checkModuleSyntax(String.raw` -export default class { -} -`); - -checkModuleSyntax(String.raw` -export default class Cocoa extends Drink { -} -`); - -checkModuleSyntax(String.raw` -export default class extends Drink { -} -`); - -checkModuleSyntax(String.raw` -export default 20; -`); - -checkModuleSyntax(String.raw` -export default "Cocoa"; -`); - -checkModuleSyntax(String.raw` -export default 20 + 30; -`); - -checkModuleSyntax(String.raw` -export default call(); -`); - -checkModuleSyntax(String.raw` -export { default } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { enum } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { default as default } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { enum as enum } from "Cocoa" -`); - -checkModuleSyntax(String.raw` -export { binding as default } -let binding = 20; -`); - -checkModuleSyntax(String.raw` -export { binding as enum } -var binding = 40; -`); - -checkModuleSyntax(String.raw` -export { binding as for } -const binding = 40; -`); - -// --------------- other --------------------- - -checkModuleSyntax(String.raw` -let i = 20; -`); - -checkModuleSyntax(String.raw` -const i = 20; -`); diff --git a/implementation-contributed/javascriptcore/stress/mul-boolean-exit.js b/implementation-contributed/javascriptcore/stress/mul-boolean-exit.js deleted file mode 100644 index ba5883c99e787f8bf7fc18ef2dc13bfe4f334ef3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/mul-boolean-exit.js +++ /dev/null @@ -1,30 +0,0 @@ -function foo(a, b) { - return Math.max(a.f, b.f); -} - -noInline(foo); - -var f = new Float64Array(1); -var i = new Int32Array(f.buffer); - -function test(a, b, c) { - var result = foo({f:a}, {f:b}); - f[0] = c; - var expectedA = i[0]; - var expectedB = i[1]; - f[0] = result; - if (i[0] != expectedA || i[1] != expectedB) - throw "Error: expected " + c + " but got: " + result; -} - -for (var i = 0; i < 100000; ++i) - test(true, 42, 42); - -// Now try some unexpected things, in descending order of possible badness. -test(true, 2147483647, 2147483647); -test(false, 42, 42); -test(false, -42, -0); -test(1, 2, 2); -test(true, true, 1); -test(1.5, 1.5, 2.25); - diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-dce.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-dce.js deleted file mode 100644 index bce1e823fcd8063c14a2f68f66a04254698f9937..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-dce.js +++ /dev/null @@ -1,22 +0,0 @@ -function foo(o) { - var tmp = o.f; - return 42; -} - -noInline(foo); - -var array = [{f:1}, {g:1, f:2}]; -for (var i = 0; i < 10000; ++i) { - var result = foo(array[i % array.length]); - if (result != 42) - throw "Error: bad result in loop: " + result; -} - -var o = {}; -var didCallGetter = false; -o.__defineGetter__("f", function() { didCallGetter = true; return 73; }); -var result = foo(o); -if (result != 42) - throw "Error: bad result at end: " + result; -if (!didCallGetter) - throw "Error: did not call getter at end."; diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-hoist-around-structure-check.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-hoist-around-structure-check.js deleted file mode 100644 index 5fbb919eab4862f451c71d1e277e03febc85bbee..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-hoist-around-structure-check.js +++ /dev/null @@ -1,30 +0,0 @@ -function foo(o, start) { - var result = 0; - for (var i = 0; i < 100; ++i) - result += o.f; - return result; -} - -noInline(foo); - -var o = {}; -o.f = 42; -var f = {}; -f.f = 43; -f.g = 44; - -for (var i = 0; i < 10000; ++i) - o.f = i; -o.f = 42; - -for (var i = 0; i < 10000; ++i) { - var p; - if (i & 1) - p = o; - else - p = Object.create(o); - var result = foo(p); - if (result != 100 * 42) - throw "Error: bad result: " + result; -} - diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-and-self.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-and-self.js deleted file mode 100644 index e4510b3f1ef60262810b2a5d48bbfd7fae14cdff..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-and-self.js +++ /dev/null @@ -1,20 +0,0 @@ -function foo(o) { - return o.f; -} - -noInline(foo); - -function Foo() { } -Foo.prototype.f = 42; - -for (var i = 0; i < 100000; ++i) { - if (i & 1) { - var result = foo(new Foo()); - if (result != 42) - throw "Error: bad result for new Foo(): " + result; - } else { - var result = foo({f:24}); - if (result != 24) - throw "Error: bad result for {f:24}: " + result; - } -} diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-or-unset.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-or-unset.js deleted file mode 100644 index 72bc25dc0f9e69f1fd40b437695a0c53ce1d040d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-or-unset.js +++ /dev/null @@ -1,30 +0,0 @@ -function foo(o, start) { - var result = 0; - for (var i = 0; i < 100; ++i) - result += o.f; - return result; -} - -noInline(foo); - -var o = {}; -o.f = 42; -var f = {}; - -for (var i = 0; i < 10000; ++i) - o.f = i; -o.f = 42; - -for (var i = 0; i < 10000; ++i) { - if (foo(o) !== 4200) - throw new Error("bad result: " + result); - var result = foo(f); - if (!Number.isNaN(result)) - throw "Error: bad result: " + result; -} - -var q = {}; -q.f = 43; -var result = foo(q); -if (result != 100 * 43) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-self-or-unset.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-self-or-unset.js deleted file mode 100644 index 31556d56b607cbe14e1f0bec5c7181b675661cec..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-proto-self-or-unset.js +++ /dev/null @@ -1,42 +0,0 @@ -function foo(o, start) { - var result = 0; - for (var i = 0; i < 100; ++i) - result += o.f; - return result; -} - -noInline(foo); - - -var p = {}; -p.f = 42; -var o = Object.create(p); - -var q = {} -q.f = 42; - -var f = {}; - -for (var i = 0; i < 10000; ++i) - o.f = i; -o.f = 42; - -for (var i = 0; i < 10000; ++i) { - if (i % 100 === 0) { - let result = foo(q) - if (result !== 4200) - throw new Error("bad result: " + result); - } - - if (foo(o) !== 4200) - throw new Error("bad result: " + result); - var result = foo(f); - if (!Number.isNaN(result)) - throw new Error("bad result: " + result); -} - -var q = {}; -q.f = 43; -var result = foo(q); -if (result != 100 * 43) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-self-or-proto.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-self-or-proto.js deleted file mode 100644 index 6c226d527f379194ebffe4cc00007e843a13112a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-self-or-proto.js +++ /dev/null @@ -1,35 +0,0 @@ -function foo(o, start) { - var result = 0; - for (var i = 0; i < 100; ++i) - result += o.f; - return result; -} - -noInline(foo); - -var o = {}; -o.f = 42; -var f = {}; -f.f = 43; -f.g = 44; - -for (var i = 0; i < 10000; ++i) - o.f = i; -o.f = 42; - -for (var i = 0; i < 10000; ++i) { - var p; - if (i & 1) - p = o; - else - p = Object.create(o); - var result = foo(p); - if (result != 100 * 42) - throw "Error: bad result: " + result; -} - -var q = {}; -q.f = 43; -var result = foo(q); -if (result != 100 * 43) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-self-or-unset.js b/implementation-contributed/javascriptcore/stress/multi-get-by-offset-self-or-unset.js deleted file mode 100644 index 72bc25dc0f9e69f1fd40b437695a0c53ce1d040d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-get-by-offset-self-or-unset.js +++ /dev/null @@ -1,30 +0,0 @@ -function foo(o, start) { - var result = 0; - for (var i = 0; i < 100; ++i) - result += o.f; - return result; -} - -noInline(foo); - -var o = {}; -o.f = 42; -var f = {}; - -for (var i = 0; i < 10000; ++i) - o.f = i; -o.f = 42; - -for (var i = 0; i < 10000; ++i) { - if (foo(o) !== 4200) - throw new Error("bad result: " + result); - var result = foo(f); - if (!Number.isNaN(result)) - throw "Error: bad result: " + result; -} - -var q = {}; -q.f = 43; -var result = foo(q); -if (result != 100 * 43) - throw "Error: bad result at end: " + result; diff --git a/implementation-contributed/javascriptcore/stress/multi-put-by-offset-multiple-transitions.js b/implementation-contributed/javascriptcore/stress/multi-put-by-offset-multiple-transitions.js deleted file mode 100644 index 99987ef370c8c0af3a630aeb9020a5ac44a2e74a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-put-by-offset-multiple-transitions.js +++ /dev/null @@ -1,30 +0,0 @@ -function foo(o) { - o.x = 1; - o.y = 2; - o.a = 3; - o.b = 4; - o.c = 5; - o.d = 6; - o.e = 7; - o.f = 8; - o.g = 9; - o.h = 10; - o.i = 11; -} - -noInline(foo); - -function Foo() { - foo(this); -} - -var result = 0; - -for (var i = 0; i < 100000; ++i) { - foo({f:42}); - result += (new Foo()).x; -} - -if (result != 100000) - throw "Bad result: " + result; - diff --git a/implementation-contributed/javascriptcore/stress/multi-put-by-offset-reallocation-butterfly-cse.js b/implementation-contributed/javascriptcore/stress/multi-put-by-offset-reallocation-butterfly-cse.js deleted file mode 100644 index d283f3ff02dd3646a852a0f9518f227cb14096ae..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-put-by-offset-reallocation-butterfly-cse.js +++ /dev/null @@ -1,102 +0,0 @@ -var foos = [ - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; }, - function(o) { o[0] = 5; o.ff = 42; o[0] = 6; } -]; - -if (foos.length != 8) - throw "Error"; - -function bar(o, n) { - if (n == 0) - return; - o.na = 1; - if (n == 1) - return; - o.nb = 2; - if (n == 2) - return; - o.nc = 3; - if (n == 3) - return; - o.nd = 4; - if (n == 4) - return; - o.ne = 5; - if (n == 5) - return; - o.nf = 6; - if (n == 6) - return; - o.ng = 7; - if (n == 7) - return; - o.nh = 8; -} - -function baz(o, n) { - if (n == 0) - return; - if (o.na != 1) - throw "Memory corruption; have o.na = " + o.na; - if (n == 1) - return; - if (o.nb != 2) - throw "Memory corruption"; - if (n == 2) - return; - if (o.nc != 3) - throw "Memory corruption"; - if (n == 3) - return; - if (o.nd != 4) - throw "Memory corruption"; - if (n == 4) - return; - if (o.ne != 5) - throw "Memory corruption"; - if (n == 5) - return; - if (o.nf != 6) - throw "Memory corruption"; - if (n == 6) - return; - if (o.ng != 7) - throw "Memory corruption"; - if (n == 7) - return; - if (o.nh != 8) - throw "Memory corruption"; -} - -for (var i = 0; i < 8; ++i) - noInline(foos[i]); -noInline(bar); - -for (var i = 0; i < 100000; ++i) { - var o = {}; - var p = {a:1, b:2, c:3, d:4, e:5, f:6}; - o[0] = 0; - p[0] = 0; - bar(o, i % 8); - bar(p, i % 8); - - foos[i % 8](o); - foos[i % 8](p); - - if (o.ff != 42) - throw "Bad result in o: " + o.ff; - if (p.ff != 42) - throw "Bad result in o: " + p.ff; - - if (p.a != 1 || p.b != 2 || p.c != 3 || p.d != 4 || p.e != 5 || p.f != 6) - throw "Memory corruption" - baz(o, i % 8); - baz(p, i % 8); -} - diff --git a/implementation-contributed/javascriptcore/stress/multi-put-by-offset-reallocation-cases.js b/implementation-contributed/javascriptcore/stress/multi-put-by-offset-reallocation-cases.js deleted file mode 100644 index f8f386c1d5e2fe86efeb2b9847b4be666fb402a9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multi-put-by-offset-reallocation-cases.js +++ /dev/null @@ -1,100 +0,0 @@ -var foos = [ - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; }, - function(o) { o.ff = 42; } -]; - -if (foos.length != 8) - throw "Error"; - -function bar(o, n) { - if (n == 0) - return; - o.na = 1; - if (n == 1) - return; - o.nb = 2; - if (n == 2) - return; - o.nc = 3; - if (n == 3) - return; - o.nd = 4; - if (n == 4) - return; - o.ne = 5; - if (n == 5) - return; - o.nf = 6; - if (n == 6) - return; - o.ng = 7; - if (n == 7) - return; - o.nh = 8; -} - -function baz(o, n) { - if (n == 0) - return; - if (o.na != 1) - throw "Memory corruption"; - if (n == 1) - return; - if (o.nb != 2) - throw "Memory corruption"; - if (n == 2) - return; - if (o.nc != 3) - throw "Memory corruption"; - if (n == 3) - return; - if (o.nd != 4) - throw "Memory corruption"; - if (n == 4) - return; - if (o.ne != 5) - throw "Memory corruption"; - if (n == 5) - return; - if (o.nf != 6) - throw "Memory corruption"; - if (n == 6) - return; - if (o.ng != 7) - throw "Memory corruption"; - if (n == 7) - return; - if (o.nh != 8) - throw "Memory corruption"; -} - -for (var i = 0; i < 8; ++i) - noInline(foos[i]); -noInline(bar); - -for (var i = 0; i < 100000; ++i) { - var o = {}; - var p = {a:1, b:2, c:3, d:4, e:5, f:6}; - bar(o, i % 8); - bar(p, i % 8); - - foos[i % 8](o); - foos[i % 8](p); - - if (o.ff != 42) - throw "Bad result in o: " + o.ff; - if (p.ff != 42) - throw "Bad result in o: " + p.ff; - - if (p.a != 1 || p.b != 2 || p.c != 3 || p.d != 4 || p.e != 5 || p.f != 6) - throw "Memory corruption" - baz(o, i % 8); - baz(p, i % 8); -} - diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/eighth.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/eighth.js deleted file mode 100644 index f92517c3906434404b67a4f950a7ebe275a71196..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/eighth.js +++ /dev/null @@ -1,2 +0,0 @@ -let foo = 10; -sentinel = "__s__"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/fifth.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/fifth.js deleted file mode 100644 index dfa947d36fabbe0be4c6146660cc94f5fc5881ad..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/fifth.js +++ /dev/null @@ -1,2 +0,0 @@ -let globalVar = "bad"; -sentinel = "bad"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/first.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/first.js deleted file mode 100644 index 511fdc5ea6c6d65a5964add557f5020fd72f163c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/first.js +++ /dev/null @@ -1,2 +0,0 @@ -let globalLet = "bad"; -sentinel = "bad"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/fourth.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/fourth.js deleted file mode 100644 index 2b0d3ac3ea00af459a7b556ae1cf0a84aad26dce..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/fourth.js +++ /dev/null @@ -1,2 +0,0 @@ -let globalConst = "bad"; -sentinel = "bad"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/ninth.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/ninth.js deleted file mode 100644 index ddda6af7f0b19206b8ca783cd134c9bd2468d5ee..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/ninth.js +++ /dev/null @@ -1,2 +0,0 @@ -let bar = 10; -sentinel = "__s__"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/second.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/second.js deleted file mode 100644 index 6eb8092b1e043c54ef680f431a8bc35e38718c7f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/second.js +++ /dev/null @@ -1,2 +0,0 @@ -let globalFunction = "bad"; -sentinel = "bad"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/seventh.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/seventh.js deleted file mode 100644 index c60542f0758754019229bf3be2b47fc17a2d233e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/seventh.js +++ /dev/null @@ -1,2 +0,0 @@ -let Array = 2; -sentinel = "__s__"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/sixth.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/sixth.js deleted file mode 100644 index 33760561bd2a8fe7c2c75f9d4fa0d7fc66b627aa..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/sixth.js +++ /dev/null @@ -1,2 +0,0 @@ -let globalProperty = "good"; -sentinel = "__s__"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/tenth.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/tenth.js deleted file mode 100644 index aac67128d1b258716222f650adc237a2225fc2e9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/tenth.js +++ /dev/null @@ -1,2 +0,0 @@ -let zoo = 2; -sentinel = "__s__"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/third.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/third.js deleted file mode 100644 index 3292e52b10c16967355432e766d49fef287c5b65..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redeclare-variable/third.js +++ /dev/null @@ -1,2 +0,0 @@ -let globalClass = "bad"; -sentinel = "bad"; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redefine-const/first.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redefine-const/first.js deleted file mode 100644 index 55e076a58e45947de3d7f1ead26c3600d2d0dbc8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redefine-const/first.js +++ /dev/null @@ -1,21 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); -function shouldThrowInvalidConstAssignment(f) { - var threw = false; - try { - f(); - } catch(e) { - if (e.name.indexOf("TypeError") !== -1 && e.message.indexOf("readonly") !== -1) - threw = true; - } - assert(threw); -} -noInline(shouldThrowInvalidConstAssignment); - - -const constValue = "const"; -const {a: destructureObj} = {a: 20}; -const [destructureArr] = [40]; diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redefine-const/second.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redefine-const/second.js deleted file mode 100644 index 12337fe25cda1b732280c5fd2e05a9f145118a0f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-redefine-const/second.js +++ /dev/null @@ -1,22 +0,0 @@ -function foo() { - constValue = 20; -} - -function bar() { - destructureObj = 100; -} - -function baz() { - destructureArr = 100; -} - -for (var i = 0; i < 1000; i++) { - shouldThrowInvalidConstAssignment(foo); - assert(constValue === "const"); - - shouldThrowInvalidConstAssignment(bar); - assert(destructureObj === 20); - - shouldThrowInvalidConstAssignment(baz); - assert(destructureArr === 40); -} diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-tdz/first.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-tdz/first.js deleted file mode 100644 index 2e1c3d2dadbaf508d19b866c671ac278e4c0ba68..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-tdz/first.js +++ /dev/null @@ -1,29 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -function shouldThrowTDZ(func) { - var hasThrown = false; - try { - func(); - } catch(e) { - if (e.name.indexOf("ReferenceError") !== -1) - hasThrown = true; - } - assert(hasThrown); -} -noInline(shouldThrowTDZ); - - - - -function foo() { - return lexicalVariableNotYetDefined; -} - -function bar() { - lexicalVariableNotYetDefinedSecond = 300; - return lexicalVariableNotYetDefinedSecond; -} diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-tdz/second.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-tdz/second.js deleted file mode 100644 index 81dcedcdebedb2c0857400587cdbeab8cd4d5aed..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-tdz/second.js +++ /dev/null @@ -1,12 +0,0 @@ - -for (var i = 0; i < 1000; i++) - shouldThrowTDZ(foo); - -let lexicalVariableNotYetDefined = 100; -assert(foo() === lexicalVariableNotYetDefined); - - -for (var i = 0; i < 1000; i++) - shouldThrowTDZ(bar); -let lexicalVariableNotYetDefinedSecond = 200; -assert(bar() === 300); diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-unresolved-property/first.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-unresolved-property/first.js deleted file mode 100644 index 854c79e3e09adcf90f7e4991c1a3073c85d141fb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-unresolved-property/first.js +++ /dev/null @@ -1,27 +0,0 @@ -function assert(cond) { - if (!cond) - throw new Error("broke assertion"); -} -noInline(assert); - -function shouldThrowTDZ(func) { - var hasThrown = false; - try { - func(); - } catch(e) { - if (e.name.indexOf("ReferenceError") !== -1) - hasThrown = true; - } - assert(hasThrown); -} -noInline(shouldThrowTDZ); - - -let b = false; -function foo() { - if (b) { - x = x; - return x; - } -} -foo(); // Link as UnresolvedProperty. diff --git a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-unresolved-property/second.js b/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-unresolved-property/second.js deleted file mode 100644 index f234b851947a72d402268b834ff17248ade94407..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/multiple-files-tests/global-lexical-variable-unresolved-property/second.js +++ /dev/null @@ -1,14 +0,0 @@ -b = true; -let x = "x"; -for (var i = 0; i < 1000; i++) { - assert(foo() === "x"); - assert(x === "x"); -} - -x = 20; -x = 40; -for (var i = 0; i < 1000; i++) { - assert(foo() === 40); - assert(x === 40); -} - diff --git a/implementation-contributed/javascriptcore/stress/object-from-entries.js b/implementation-contributed/javascriptcore/stress/object-from-entries.js deleted file mode 100644 index 9e3befcc8c752b41695acce76511c495191a4689..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/object-from-entries.js +++ /dev/null @@ -1,196 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -shouldBe(JSON.stringify(Object.getOwnPropertyDescriptor(Object, "fromEntries")), `{"writable":true,"enumerable":false,"configurable":true}`); -shouldBe(Object.fromEntries.length, 1); - -shouldThrow(() => Object.fromEntries(null), `TypeError: null is not an object`); -shouldThrow(() => Object.fromEntries(undefined), `TypeError: undefined is not an object`); -shouldThrow(() => Object.fromEntries(0), `TypeError: undefined is not a function`); -shouldThrow(() => Object.fromEntries(true), `TypeError: undefined is not a function`); -shouldThrow(() => Object.fromEntries(Symbol("Cocoa")), `TypeError: undefined is not a function`); -shouldThrow(() => Object.fromEntries("Cocoa"), `TypeError: Object.fromEntries requires the first iterable parameter yields objects`); -shouldThrow(() => Object.fromEntries([0]), `TypeError: Object.fromEntries requires the first iterable parameter yields objects`); -shouldThrow(() => Object.fromEntries([["Cocoa", "Cappuccino"], 0]), `TypeError: Object.fromEntries requires the first iterable parameter yields objects`); - -{ - let object = Object.fromEntries([]); - shouldBe(JSON.stringify(object), `{}`); -} -{ - let object = Object.fromEntries([["Cocoa", "Cappuccino"]]); - shouldBe(JSON.stringify(object), `{"Cocoa":"Cappuccino"}`); - shouldBe(JSON.stringify(Object.getOwnPropertyDescriptor(object, "Cocoa")), `{"value":"Cappuccino","writable":true,"enumerable":true,"configurable":true}`); -} -{ - let obj = { abc: 1, def: 2, ghij: 3 }; - let res = Object.fromEntries( - Object.entries(obj) - .filter(([ key, val ]) => key.length === 3) - .map(([ key, val ]) => [ key, val * 2 ]) - ); - shouldBe(JSON.stringify(res), `{"abc":2,"def":4}`); -} -{ - let map = new Map([ [ 'a', 1 ], [ 'b', 2 ], [ 'c', 3 ] ]); - let obj = Object.fromEntries(map); - shouldBe(JSON.stringify(obj), `{"a":1,"b":2,"c":3}`); -} -{ - let arr = [ { name: 'Alice', age: 40 }, { name: 'Bob', age: 36 } ]; - let obj = Object.fromEntries(arr.map(({ name, age }) => [ name, age ])); - shouldBe(JSON.stringify(obj), `{"Alice":40,"Bob":36}`); -} -{ - Object.defineProperty(Object.prototype, "bad", { - get() { throw new Error("out"); }, - set(v) { throw new Error("out"); } - }); - shouldThrow(() => { - let object = {}; - object.bad; - }, `Error: out`); - shouldThrow(() => { - let object = {}; - object.bad = 42; - }, `Error: out`); - let object = Object.fromEntries([["bad", "value"]]); - shouldBe(JSON.stringify(object), `{"bad":"value"}`); -} -{ - var counter = 0; - class Recorder { - constructor(first, second) - { - this.first = first; - this.second = second; - } - - get 0() - { - shouldBe(counter++, this.first); - return this.first; - } - - get 1() - { - shouldBe(counter++, this.second); - return this.second; - } - } - var result = Object.fromEntries([new Recorder(0, 1), new Recorder(2, 3)]); - shouldBe(result[0], 1); - shouldBe(result[2], 3); - shouldBe(counter, 4); -} -{ - class Iterable { - constructor() - { - } - - *[Symbol.iterator]() - { - yield [0, 1]; - yield [1, 2]; - } - } - - var result = Object.fromEntries(new Iterable); - shouldBe(result[0], 1); - shouldBe(result[1], 2); -} -{ - class Iterator { - constructor() - { - this.index = 0; - } - - next() - { - if (this.index === 4) - throw new Error("out"); - - this.index++; - return { - value: [0, 1], - done: false - }; - } - } - - class Iterable { - constructor() - { - } - - [Symbol.iterator]() - { - return new Iterator; - } - } - - try { - Object.fromEntries(new Iterable); - } catch (error) { - shouldBe(String(error), `Error: out`); - } -} -{ - let array = [[], ['c', 'd']]; - let object = Object.fromEntries(array); - shouldBe(JSON.stringify(Object.keys(object).sort()), `["c","undefined"]`); - shouldBe(object.c, 'd'); - shouldBe(object.undefined, undefined); -} -{ - let symbol = Symbol('Cocoa'); - let array = [[symbol, 42]]; - let object = Object.fromEntries(array); - shouldBe(Object.getOwnPropertySymbols(object).length, 1); - shouldBe(Object.getOwnPropertyNames(object).length, 0); - shouldBe(object.hasOwnProperty(symbol), true); - shouldBe(object[symbol], 42); -} -{ - Object.defineProperty(Object.prototype, "hello", { - get() { - throw new Error("out"); - }, - set() { - throw new Error("out"); - } - }); - let result = Object.fromEntries([["hello", 42]]); - shouldBe(result.hello, 42); -} -{ - let array = [['a', 'b'], ['c', 'd']]; - Object.defineProperty(array, 0, { - get() - { - array.push(['e', 'f']); - return ['a', 'b']; - } - }); - let object = Object.fromEntries(array); - shouldBe(JSON.stringify(object), `{"a":"b","c":"d","e":"f"}`); -} diff --git a/implementation-contributed/javascriptcore/stress/pow-basics.js b/implementation-contributed/javascriptcore/stress/pow-basics.js deleted file mode 100644 index 8842d495bfe8237fd914d1833ce1eda438130aa1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-basics.js +++ /dev/null @@ -1,286 +0,0 @@ -function valuesAreClose(a, b) { - return Math.abs(a / b) - 1 < 1e-10; -} - -// Some random values. -function mathPowDoubleDouble1(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble1); - -function mathPowDoubleInt1(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt1); - -function test1(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble1(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble1(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt1(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt1(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test1); -test1(376.76522764377296, 10.81699226051569, 7.333951929109252e+27, 5.76378989575089e+25); - -function mathPowDoubleDouble2(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble2); - -function mathPowDoubleInt2(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt2); -function test2(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble2(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble2(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt2(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt2(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test2); -test2(376.76522764377296, -5.81699226051569, 1.035180331187579e-15, 1.3171824310400265e-13); - -function mathPowDoubleDouble3(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble3); - -function mathPowDoubleInt3(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt3); -function test3(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble3(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble3(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt3(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt3(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test3); -test3(-37.676522764377296, 10.0, 5763789895750892, 5763789895750892); - -// Exponent zero. -function mathPowDoubleDouble4(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble4); - -function mathPowDoubleInt4(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt4); -function test4(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble4(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble4(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt4(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt4(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test4); -test4(-37.676522764377296, 0, 1, 1); - -// Exponent minus zero. -function mathPowDoubleDouble5(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble5); - -function mathPowDoubleInt5(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt5); -function test5(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble5(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble5(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt5(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test5); -test5(-37.676522764377296, -0, 1, 1); - -// Exponent 1. -function mathPowDoubleDouble6(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble6); - -function mathPowDoubleInt6(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt6); -function test6(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble6(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble6(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt6(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt6(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test6); -test6(-37.676522764377296, 1.0, -37.676522764377296, -37.676522764377296); - -// Exponent -1. -function mathPowDoubleDouble7(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble7); - -function mathPowDoubleInt7(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt7); -function test7(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble7(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble7(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble7(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleDouble7(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test7); -test7(-37.676522764377296, -1.0, -0.026541727490454296, -0.026541727490454296); - -// Let's square things. -function mathPowDoubleDouble8(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble8); - -function mathPowDoubleInt8(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt8); -function test8(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble8(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble8(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt8(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt8(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test8); -test8(-37.676522764377296, 2.0, 1419.5203676146407, 1419.5203676146407); - -function mathPowDoubleDouble9(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble9); - -function mathPowDoubleInt9(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt9); -function test9(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble9(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble9(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt9(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt9(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test9); -test9(37.676522764377296, 2.0, 1419.5203676146407, 1419.5203676146407); - -// Let's cube things. -function mathPowDoubleDouble10(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble10); - -function mathPowDoubleInt10(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt10); -function test10(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble10(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt10(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test10); -test10(-37.676522764377296, 3.0, -53482.591444930236, -53482.591444930236); - -function mathPowDoubleDouble11(x, y) { - return x ** y; -} -noInline(mathPowDoubleDouble11); - -function mathPowDoubleInt11(x, y) { - return x ** y; -} -noInline(mathPowDoubleInt11); -function test11(x, y, expected1, expected2) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDouble11(x, y); - if (!valuesAreClose(result, expected1)) - throw "Error: bad result, mathPowDoubleDouble(" + x + ", " + y + ") = " + result + " expected a value close to " + expected1; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleInt11(x, integerY); - if (!valuesAreClose(result, expected2)) - throw "Error: bad result, mathPowDoubleInt(" + x + ", " + integerY + ") = " + result + " expected a value close to " + expected2; - } -} -noInline(test11); -test11(37.676522764377296, 3.0, 53482.591444930236, 53482.591444930236); diff --git a/implementation-contributed/javascriptcore/stress/pow-coherency.js b/implementation-contributed/javascriptcore/stress/pow-coherency.js deleted file mode 100644 index 29671a42dbd82ce568c3c2869b18a3093d813821..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-coherency.js +++ /dev/null @@ -1,95 +0,0 @@ -//@ skip - -// This test checks that the pow function returns coherent results: -// (a) Across different compilation tiers -// (b) With integer exponents represented as int32 or as double - -function pow42() { - return { value: 2.1 ** 42, ftl: isFinalTier() }; -} - -function build42AsDouble() { - function opaqueAdd(x, y) { return x + y; } - return opaqueAdd(42 - 0.123, 0.123); -} - -var double42 = build42AsDouble(); - -if (double42 !== 42) - throw new Error("42 (as double) should be === to 42 (as int)"); - -function powDouble42() { - return { value: 2.1 ** double42, ftl: isFinalTier() }; -} - -function clobber() { } -noInline(clobber); - -function pow42NoConstantFolding() { - var obj = { x: 2.1, y: 42 }; - clobber(obj); - return { value: obj.x ** obj.y, ftl: isFinalTier() }; -} - -function powDouble42NoConstantFolding() { - var obj = { x: 2.1, y: double42 }; - clobber(obj); - return { value: obj.x ** obj.y, ftl: isFinalTier() }; -} - -var results = { 'jit': {}, 'dfg': {}, 'ftl': {} }; -var funs = [ - [ 'pow42', pow42 ], - [ 'powDouble42', powDouble42 ], - [ 'pow42NoConstantFolding', pow42NoConstantFolding ], - [ 'powDouble42NoConstantFolding', powDouble42NoConstantFolding ] -]; -var tiers = ['jit', 'dfg', 'ftl']; - -for (var i = 0; i < 100000; ++i) { - for (var j in funs) { - var name = funs[j][0]; - var fun = funs[j][1]; - var result = fun(); - if (result.ftl) - results['ftl'][name] = result.value; - else if (numberOfDFGCompiles(fun) > 0) - results['dfg'][name] = result.value; - else - results['jit'][name] = result.value; - } -} - -var errors = []; -var valuesFor = {}; -for (var i in tiers) { - var tier = tiers[i]; - var result = results[tier]; - // We don't have this tier - if (Object.keys(result).length === 0) - continue; - - for (var j in funs) { - var name = funs[j][0]; - if (!(name in result)) - errors.push(name + " was not compiled to " + tier); - else if (!(name in valuesFor)) - valuesFor[name] = { value: result[name], tiers: [tier] }; - else if (result[name] !== valuesFor[name].value) - errors.push(name + " has different results in " + tier + " (" + result[name] + ") and " + valuesFor[name].tiers + " (" + valuesFor[name].value + ")"); - else - valuesFor[name].tiers.push(tier); - } -} - -var reference = funs[0][0]; -var result = valuesFor[reference].value; - -for (var j in funs) { - var name = funs[j][0]; - if (valuesFor[name].value !== result) - errors.push(name + " (" + valuesFor[name].value + ") and " + reference + " (" + result + ") have different results"); -} - -if (errors.length > 0) - throw new Error(errors.join('\n')); diff --git a/implementation-contributed/javascriptcore/stress/pow-evaluation-order.js b/implementation-contributed/javascriptcore/stress/pow-evaluation-order.js deleted file mode 100644 index 7154647dd5faba0a75c531df6e0ace88034060c9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-evaluation-order.js +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (C) 2016 Rick Waldron. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -{ - let capture = []; - let leftValue = { valueOf() { capture.push("leftValue"); return 3; }}; - let rightValue = { valueOf() { capture.push("rightValue"); return 2; }}; - - (capture.push("left"), leftValue) ** +(capture.push("right"), rightValue); -// ^ -// Changes the order - - // Expected per operator evaluation order: "left", "right", "rightValue", "leftValue" - shouldBe(capture[0], "left"); - shouldBe(capture[1], "right"); - shouldBe(capture[2], "rightValue"); - shouldBe(capture[3], "leftValue"); -} - -{ - let capture = []; - let leftValue = { valueOf() { capture.push("leftValue"); return 3; }}; - let rightValue = { valueOf() { capture.push("rightValue"); return 2; }}; - - (+(capture.push("left"), leftValue)) ** (capture.push("right"), rightValue); -// ^ -// Changes the order - - // Expected per operator evaluation order: "left", "right", "rightValue", "leftValue" - shouldBe(capture[0], "left"); - shouldBe(capture[1], "leftValue"); - shouldBe(capture[2], "right"); - shouldBe(capture[3], "rightValue"); -} diff --git a/implementation-contributed/javascriptcore/stress/pow-expects-update-expression-on-lhs.js b/implementation-contributed/javascriptcore/stress/pow-expects-update-expression-on-lhs.js deleted file mode 100644 index cd4cd2eb41d946ae96c3312eaa38ba33a71cec80..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-expects-update-expression-on-lhs.js +++ /dev/null @@ -1,96 +0,0 @@ -function testSyntax(script) { - try { - eval(script); - } catch (error) { - if (error instanceof SyntaxError) - throw new Error("Bad error: " + String(error)); - } -} - -function testSyntaxError(script, message) { - var error = null; - try { - eval(script); - } catch (e) { - error = e; - } - if (!error) - throw new Error("Expected syntax error not thrown"); - - if (String(error) !== message) - throw new Error("Bad error: " + String(error)); -} - -{ - let tokens = [ - '-', - '+', - '~', - '!', - 'typeof', - 'void', - 'delete', - ]; - - for (let token of tokens) { - testSyntaxError(` - function pow(a, b) - { - return ${token} a ** b; - } - `, `SyntaxError: Unexpected token '**'. Amiguous unary expression in the left hand side of the exponentiation expression; parenthesis must be used to disambiguate the expression.`); - } -} - -{ - let tokens = [ - '-', - '+', - '~', - '!', - 'typeof', - 'void', - 'delete', - ]; - - for (let token of tokens) { - testSyntax(` - function pow(a, b) - { - return (${token} a) ** b; - } - `); - } -} - -{ - let tokens = [ - '++', - '--', - ]; - - for (let token of tokens) { - testSyntax(` - function pow(a, b) - { - return ${token} a ** b; - } - `); - } -} - -{ - let tokens = [ - '++', - '--', - ]; - - for (let token of tokens) { - testSyntax(` - function pow(a, b) - { - return a ${token} ** b; - } - `); - } -} diff --git a/implementation-contributed/javascriptcore/stress/pow-integer-exponent-fastpath.js b/implementation-contributed/javascriptcore/stress/pow-integer-exponent-fastpath.js deleted file mode 100644 index 21ee27cb6a122583b9f61f8c93d1738ba67b5802..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-integer-exponent-fastpath.js +++ /dev/null @@ -1,56 +0,0 @@ -function valuesAreClose(a, b) { - return Math.abs(a / b) - 1 < 1e-10; -} - -// Small exponent values are handled through a simpler inline loop. Test that it is not observable. -function mathPowDoubleDoubleTestExponentFifty(x, y) { - return x ** y -} -noInline(mathPowDoubleDoubleTestExponentFifty); - -function mathPowDoubleIntTestExponentFifty(x, y) { - return x ** y -} -noInline(mathPowDoubleIntTestExponentFifty); -function testExponentFifty(x, y, expected) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDoubleTestExponentFifty(x, y); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, (" + x + ") ** (" + y + ") = " + result + " expected value close to " + expected; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleIntTestExponentFifty(x, integerY); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, (" + x + ") ** (" + integerY + ") = " + result + " expected value close to " + expected; - } -} -noInline(testExponentFifty); -testExponentFifty(53.70901164133102, 50.0, 3.179494118120144e+86); -testExponentFifty(53.70901164133102, -10.0, 5.006432842621192e-18); - -function mathPowDoubleDoubleTestExponentTenThousands(x, y) { - return x ** y -} -noInline(mathPowDoubleDoubleTestExponentTenThousands); - -function mathPowDoubleIntTestExponentTenThousands(x, y) { - return x ** y -} -noInline(mathPowDoubleIntTestExponentTenThousands); -function testExponentTenThousands(x, y, expected) { - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleDoubleTestExponentTenThousands(x, y); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, (" + x + ") ** (" + y + ") = " + result + " expected value close to " + expected; - } - var integerY = y | 0; - for (var i = 0; i < 10000; ++i) { - var result = mathPowDoubleIntTestExponentTenThousands(x, integerY); - if (!valuesAreClose(result, expected)) - throw "Error: bad result, (" + x + ") ** (" + integerY + ") = " + result + " expected value close to " + expected; - } -} -noInline(testExponentTenThousands); -testExponentTenThousands(1.001, 10000.0, 21916.681339048373); -testExponentTenThousands(1.001, -1.0, 0.9990009990009991); diff --git a/implementation-contributed/javascriptcore/stress/pow-nan-behaviors.js b/implementation-contributed/javascriptcore/stress/pow-nan-behaviors.js deleted file mode 100644 index 3d754824238f7f7c775d9b8d28df2d6e98ac5304..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-nan-behaviors.js +++ /dev/null @@ -1,209 +0,0 @@ -// If an argument is NaN, the result of x ** y is NaN. -function testIntegerBaseWithNaNExponentStatic() { - for (var i = 0; i < 10000; ++i) { - var result = 5 ** NaN; - if (!isNaN(result)) - throw "Error: bad result, 5 ** NaN = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = i ** NaN; - if (!isNaN(result)) - throw "Error: bad result, i ** NaN = " + result + " with i = " + i; - } -} -noInline(testIntegerBaseWithNaNExponentStatic); -testIntegerBaseWithNaNExponentStatic(); - -function mathPowIntegerBaseWithNaNExponentDynamic(x, y) { - return x ** y; -} -noInline(mathPowIntegerBaseWithNaNExponentDynamic); -function testIntegerBaseWithNaNExponentDynamic() { - // Warm up with 2 integers. - for (var i = 0; i < 10000; ++i) { - var result = mathPowIntegerBaseWithNaNExponentDynamic(2, 5); - if (result !== 32) - throw "Error: bad result, mathPowIntegerBaseWithNaNExponentDynamic(2, 5) = " + result + ", expected 32." - } - - for (var i = 0; i < 10000; ++i) { - var result = mathPowIntegerBaseWithNaNExponentDynamic(i, NaN); - if (!isNaN(result)) - throw "Error: bad result, mathPowIntegerBaseWithNaNExponentDynamic(i, NaN) = " + result + " with i = " + i + ", expected NaN"; - } -} -noInline(testIntegerBaseWithNaNExponentDynamic); -testIntegerBaseWithNaNExponentDynamic(); - -function testFloatingPointBaseWithNaNExponentStatic() { - for (var i = 0; i < 10000; ++i) { - var result = 5.5 ** NaN; - if (!isNaN(result)) - throw "Error: bad result, 5.5 ** NaN = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = (i + 0.5) ** NaN; - if (!isNaN(result)) - throw "Error: bad result, (i + 0.5) ** NaN = " + result + " with i = " + i; - } -} -noInline(testFloatingPointBaseWithNaNExponentStatic); -testFloatingPointBaseWithNaNExponentStatic(); - -function mathPowFloatingPointBaseWithNaNExponentDynamic(x, y) { - return x ** y; -} -noInline(mathPowFloatingPointBaseWithNaNExponentDynamic); -function testFloatingPointBaseWithNaNExponentDynamic() { - // Warm up with 2 double. - for (var i = 0; i < 10000; ++i) { - var result = mathPowFloatingPointBaseWithNaNExponentDynamic(2.5, 5.1); - if (result !== 107.02717054543135) - throw "Error: bad result, mathPowFloatingPointBaseWithNaNExponentDynamic(2.5, 5.1) = " + result + ", expected 107.02717054543135." - } - - for (var i = 0; i < 10000; ++i) { - var result = mathPowFloatingPointBaseWithNaNExponentDynamic(i + 0.5, NaN); - if (!isNaN(result)) - throw "Error: bad result, mathPowFloatingPointBaseWithNaNExponentDynamic(i + 0.5, NaN) = " + result + " with i = " + i + ", expected NaN"; - } -} -noInline(testFloatingPointBaseWithNaNExponentDynamic); -testFloatingPointBaseWithNaNExponentDynamic(); - -// If y is +0, the result is 1, even if x is NaN. -// If y is -0, the result is 1, even if x is NaN. -// If x is NaN and y is nonzero, the result is NaN. -function testNaNBaseStatic() { - for (var i = 0; i < 10000; ++i) { - var result = NaN ** (i + 1); - if (!isNaN(result)) - throw "Error: bad result, NaN ** (i + 1) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = NaN ** (i + 1.5); - if (!isNaN(result)) - throw "Error: bad result, NaN ** (i + 1.5) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = NaN ** 0; - if (result !== 1) - throw "Error: bad result, NaN ** 0 = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = NaN ** -0; - if (result !== 1) - throw "Error: bad result, NaN ** -0 = " + result; - } -} -noInline(testNaNBaseStatic); -testNaNBaseStatic(); - -function mathPowNaNBaseDynamic1(x, y) { - return x ** y; -} -function mathPowNaNBaseDynamic2(x, y) { - return x ** y; -} -function mathPowNaNBaseDynamic3(x, y) { - return x ** y; -} -function mathPowNaNBaseDynamic4(x, y) { - return x ** y; -} -noInline(mathPowNaNBaseDynamic1); -noInline(mathPowNaNBaseDynamic2); -noInline(mathPowNaNBaseDynamic3); -noInline(mathPowNaNBaseDynamic4); -function testNaNBaseDynamic() { - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic1(NaN, i + 1); - if (!isNaN(result)) - throw "Error: bad result, mathPowNaNBaseDynamic1(NaN, i + 1) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic2(NaN, i + 1.5); - if (!isNaN(result)) - throw "Error: bad result, mathPowNaNBaseDynamic2(NaN, i + 1.5) = " + result + " with i = " + i; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic3(NaN, 0); - if (result !== 1) - throw "Error: bad result, mathPowNaNBaseDynamic3(NaN, 0) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowNaNBaseDynamic4(NaN, -0); - if (result !== 1) - throw "Error: bad result, mathPowNaNBaseDynamic4(NaN, -0) = " + result; - } -} -noInline(testNaNBaseDynamic); -testNaNBaseDynamic(); - -// If abs(x) is 1 and y is +Inf the result is NaN. -// If abs(x) is 1 and y is −Inf the result is NaN. -function infiniteExponentsStatic() { - for (var i = 0; i < 10000; ++i) { - var result = 1 ** Number.POSITIVE_INFINITY; - if (!isNaN(result)) - throw "Error: bad result, 1 ** Number.POSITIVE_INFINITY = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = (-1) ** Number.POSITIVE_INFINITY; - if (!isNaN(result)) - throw "Error: bad result, -1 ** Number.POSITIVE_INFINITY = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = 1 ** Number.NEGATIVE_INFINITY; - if (!isNaN(result)) - throw "Error: bad result, 1 ** Number.NEGATIVE_INFINITY = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = (-1) ** Number.NEGATIVE_INFINITY; - if (!isNaN(result)) - throw "Error: bad result, -1 ** Number.NEGATIVE_INFINITY = " + result; - } -} -noInline(infiniteExponentsStatic); -infiniteExponentsStatic(); - -function mathPowInfiniteExponentsDynamic1(x, y) { - return x ** y; -} -function mathPowInfiniteExponentsDynamic2(x, y) { - return x ** y; -} -function mathPowInfiniteExponentsDynamic3(x, y) { - return x ** y; -} -function mathPowInfiniteExponentsDynamic4(x, y) { - return x ** y; -} -noInline(mathPowInfiniteExponentsDynamic1); -noInline(mathPowInfiniteExponentsDynamic2); -noInline(mathPowInfiniteExponentsDynamic3); -noInline(mathPowInfiniteExponentsDynamic4); -function infiniteExponentsDynamic() { - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic1(1, Number.POSITIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic1(1, Number.POSITIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic2(-1, Number.POSITIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic2(-1, Number.POSITIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic3(1, Number.NEGATIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic3(1, Number.NEGATIVE_INFINITY) = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = mathPowInfiniteExponentsDynamic4(-1, Number.NEGATIVE_INFINITY); - if (!isNaN(result)) - throw "Error: bad result, mathPowInfiniteExponentsDynamic4(-1, Number.NEGATIVE_INFINITY) = " + result; - } -} -noInline(infiniteExponentsDynamic); -infiniteExponentsDynamic(); diff --git a/implementation-contributed/javascriptcore/stress/pow-no-result.js b/implementation-contributed/javascriptcore/stress/pow-no-result.js deleted file mode 100644 index ebe8f1f4c94e34b4c0ef9df7664d32807c022878..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-no-result.js +++ /dev/null @@ -1,13 +0,0 @@ -var o = {}; -o.__defineSetter__("foo", Math.pow); - -function foo() -{ - o.foo = 42; -} - -noInline(foo); - -for (var i = 0; i < 10000; ++i) - foo(); - diff --git a/implementation-contributed/javascriptcore/stress/pow-simple.js b/implementation-contributed/javascriptcore/stress/pow-simple.js deleted file mode 100644 index be5e9cf8444dd6020b4e48fe587a59a0f939d9a3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-simple.js +++ /dev/null @@ -1,39 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -{ - let i = 2; - let j = 3; - shouldBe(2 ** 3, 8); - shouldBe(i ** 3, 8); - shouldBe(2 ** j, 8); - shouldBe(i ** j, 8); -} - -{ - shouldBe(2 ** 3 ** 3, 134217728); - shouldBe(2 ** 3 + 3, 11); - shouldBe(2 ** 3 + 3 ** 3, 35); - shouldBe(2 ** 3 * 3, 24); - shouldBe(2 ** 3 * 3 ** 3, 216); - - shouldBe(2 + 3 ** 3, 29); - shouldBe(2 * 3 ** 3, 54); -} - -{ - let i = 2; - i **= 4; - shouldBe(i, 16); - i **= 1 + 1; - shouldBe(i, 256); -} - -for (let i = 0; i < 1e4; ++i) { - let a = Math.random(); - let b = Math.random(); - shouldBe(a ** b, Math.pow(a, b)); -} diff --git a/implementation-contributed/javascriptcore/stress/pow-stable-results.js b/implementation-contributed/javascriptcore/stress/pow-stable-results.js deleted file mode 100644 index 9828fa9ae64be1f69a6089772475d05605507c71..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-stable-results.js +++ /dev/null @@ -1,85 +0,0 @@ -// This test verify the results of `**` do not change as we change optimization tier. - -function opaquePow(a, b) -{ - return a ** b; -} -noInline(opaquePow); - - -let caseStrings = [ - "0", - "-0.", - "0.5", - "1", - "2", - "-0.5", - "-1", - "999", - "1000", - "1001", - "NaN", - "Infinity", - "-Infinity", - "Math.PI", - "Math.LN2", - "Math.LN10", - "Math.E", - "Math.LOG10E", - "Math.LOG2E", - "Math.SQRT2" -]; -let cases = []; -for (let caseString of caseStrings) { - cases.push(eval(caseString)); -} - -let expectedResults = []; -let constantBaseFunctions = []; -let constantExponentFunctions = []; -for (let i = 0; i < cases.length; ++i) { - let base = cases[i]; - - expectedResults[i] = []; - for (let j = 0; j < cases.length; ++j) { - let exponent = cases[j]; - expectedResults[i][j] = base ** exponent; - } - - eval("constantBaseFunctions[i] = function (exponent) { return (" + caseStrings[i] + ") ** exponent; }"); - eval("constantExponentFunctions[i] = function (base) { return base ** (" + caseStrings[i] + "); }"); -} - -function isIdentical(result, expected) -{ - if (expected === expected) { - if (result !== expected) - return false; - if (!expected && 1 / expected === -Infinity && 1 / result !== -Infinity) - return false; - - return true; - } - return result !== result; -} - -for (let tierUpLoopCounter = 0; tierUpLoopCounter < 1e3; ++tierUpLoopCounter) { - for (let i = 0; i < cases.length; ++i) { - let base = cases[i]; - for (let j = 0; j < cases.length; ++j) { - let exponent = cases[j]; - let expectedResult = expectedResults[i][j]; - let result = opaquePow(base, exponent); - if (!isIdentical(result, expectedResult)) - throw `Failed opaquePow with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`; - - result = constantBaseFunctions[i](exponent); - if (!isIdentical(result, expectedResult)) - throw `Failed constantBaseFunctions with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`; - - result = constantExponentFunctions[j](base); - if (!isIdentical(result, expectedResult)) - throw `Failed constantExponentFunctions with base = ${base} exponent = ${exponent} expected (${expectedResult}) got (${result})`; - } - } -} diff --git a/implementation-contributed/javascriptcore/stress/pow-to-number-should-be-executed-in-code-side.js b/implementation-contributed/javascriptcore/stress/pow-to-number-should-be-executed-in-code-side.js deleted file mode 100644 index 873107a4e49679b2a57305daef7de22d21ecc3a0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-to-number-should-be-executed-in-code-side.js +++ /dev/null @@ -1,77 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -{ - let value = { - valueOf() - { - throw new Error("NG"); - } - }; - let error = null; - - try { - 2 ** value; - } catch (e) { - error = e; - } - // global, and valueOf. - shouldBe(error.stack.split("\n").length, 2); -} - -{ - let value = { - valueOf() - { - throw new Error("NG"); - } - }; - let error = null; - - try { - value ** 2; - } catch (e) { - error = e; - } - // global, and valueOf. - shouldBe(error.stack.split("\n").length, 2); -} - -{ - let value = { - valueOf() - { - throw new Error("NG"); - } - }; - let error = null; - - try { - Math.pow(value, 2); - } catch (e) { - error = e; - } - // global, Math.pow, and valueOf. - shouldBe(error.stack.split("\n").length, 3); -} - -{ - let value = { - valueOf() - { - throw new Error("NG"); - } - }; - let error = null; - - try { - Math.pow(2, value); - } catch (e) { - error = e; - } - // global, Math.pow, and valueOf. - shouldBe(error.stack.split("\n").length, 3); -} diff --git a/implementation-contributed/javascriptcore/stress/pow-with-constants.js b/implementation-contributed/javascriptcore/stress/pow-with-constants.js deleted file mode 100644 index 79e6af741d16983a1b9b9ef32577d2bd4ade03f2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-with-constants.js +++ /dev/null @@ -1,285 +0,0 @@ -function exponentIsZero(x) { - return x ** 0; -} -noInline(exponentIsZero); - -function testExponentIsZero() { - for (var i = 0; i < 10000; ++i) { - var result = exponentIsZero(5); - if (result !== 1) - throw "Error: zeroExponent(5) should be 1, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = exponentIsZero(5.5); - if (result !== 1) - throw "Error: zeroExponent(5.5) should be 1, was = " + result; - } -} -testExponentIsZero(); - - -function exponentIsOne(x) { - return x ** 1; -} -noInline(exponentIsOne); - -function testExponentIsOne() { - for (var i = 0; i < 10000; ++i) { - var result = exponentIsOne(5); - if (result !== 5) - throw "Error: exponentIsOne(5) should be 5, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = exponentIsOne(5.5); - if (result !== 5.5) - throw "Error: exponentIsOne(5.5) should be 5.5, was = " + result; - } -} -testExponentIsOne(); - - -function powUsedAsSqrt(x) { - return x ** 0.5; -} -noInline(powUsedAsSqrt); - -function testPowUsedAsSqrt() { - for (let i = 0; i < 1e4; ++i) { - let result = powUsedAsSqrt(4); - if (result !== Math.sqrt(4)) - throw "Error: powUsedAsSqrt(4) should be 2, was = " + result; - result = powUsedAsSqrt(4.4); - if (result !== Math.sqrt(4.4)) - throw "Error: powUsedAsSqrt(4) should be " + Math.sqrt(4.4) + ", was = " + result; - if (powUsedAsSqrt(Infinity) !== Infinity) - throw "Failed powUsedAsSqrt(Infinity)"; - if (powUsedAsSqrt(-Infinity) !== Infinity) - throw "Failed powUsedAsSqrt(-Infinity)"; - let nanResult = powUsedAsSqrt(NaN) - if (nanResult === nanResult) - throw "Failed powUsedAsSqrt(NaN)"; - let zeroResult = powUsedAsSqrt(0.) - if (zeroResult || (1 / zeroResult) !== Infinity) - throw "Failed powUsedAsSqrt(0.)"; - let negativeZeroResult = powUsedAsSqrt(-0) - if (negativeZeroResult || (1 / negativeZeroResult) !== Infinity) - throw "Failed powUsedAsSqrt(-0)"; - } -} -testPowUsedAsSqrt(); - -function powUsedAsOneOverSqrt(x) { - return x ** -0.5; -} -noInline(powUsedAsOneOverSqrt); - -function testPowUsedAsOneOverSqrt() { - for (let i = 0; i < 1e4; ++i) { - let result = powUsedAsOneOverSqrt(4); - if (result !== 0.5) - throw "Error: powUsedAsOneOverSqrt(4) should be 0.5, was = " + result; - result = powUsedAsOneOverSqrt(4.4); - if (result !== 1/Math.sqrt(4.4)) - throw "Error: powUsedAsOneOverSqrt(4) should be " + 1/Math.sqrt(4.4) + ", was = " + result; - if (powUsedAsOneOverSqrt(Infinity) !== 0) - throw "Failed powUsedAsOneOverSqrt(Infinity)"; - if (powUsedAsOneOverSqrt(-Infinity) !== 0) - throw "Failed powUsedAsOneOverSqrt(-Infinity)"; - let nanResult = powUsedAsOneOverSqrt(NaN) - if (nanResult === nanResult) - throw "Failed powUsedAsOneOverSqrt(NaN)"; - if (powUsedAsOneOverSqrt(0) !== Infinity) - throw "Failed powUsedAsOneOverSqrt(0)"; - if (powUsedAsOneOverSqrt(-0.) !== Infinity) - throw "Failed powUsedAsOneOverSqrt(-0.)"; - } -} -testPowUsedAsOneOverSqrt(); - -function powUsedAsSquare(x) { - return x ** 2; -} -noInline(powUsedAsSquare); - -function testPowUsedAsSquare() { - for (let i = 0; i < 1e4; ++i) { - let result = powUsedAsSquare(2); - if (result !== 4) - throw "Error: powUsedAsSquare(4) should be 2, was = " + result; - result = powUsedAsSquare(4.4); - if (result !== 19.360000000000003) - throw "Error: powUsedAsSquare(4) should be " + 19.360000000000003 + ", was = " + result; - result = powUsedAsSquare(Math.PI); - if (result !== 9.869604401089358) - throw "Error: powUsedAsSquare(4) should be " + 9.869604401089358 + ", was = " + result; - if (powUsedAsSquare(Infinity) !== Infinity) - throw "Failed powUsedAsSquare(Infinity)"; - if (powUsedAsSquare(-Infinity) !== Infinity) - throw "Failed powUsedAsSquare(-Infinity)"; - let nanResult = powUsedAsSquare(NaN) - if (nanResult === nanResult) - throw "Failed powUsedAsSquare(NaN)"; - let zeroResult = powUsedAsSquare(0.) - if (zeroResult || (1 / zeroResult) !== Infinity) - throw "Failed powUsedAsSquare(0.)"; - let negativeZeroResult = powUsedAsSquare(-0) - if (negativeZeroResult || (1 / negativeZeroResult) !== Infinity) - throw "Failed powUsedAsSquare(-0)"; - } -} -testPowUsedAsSquare(); - -function intIntConstantsSmallNumbers() { - return 42 ** 3; -} -function intIntConstantsLargeNumbers() { - // The result does not fit in a integer. - return 42 ** 42; -} -function intIntSmallConstants() { - return 42 ** 3; -} -function intDoubleConstants() { - return 14 ** 42.5; -} -function doubleDoubleConstants() { - return 13.5 ** 42.5; -} -function doubleIntConstants() { - return 13.5 ** 52; -} -noInline(intIntConstantsSmallNumbers); -noInline(intIntConstantsLargeNumbers); -noInline(intDoubleConstants); -noInline(doubleDoubleConstants); -noInline(doubleIntConstants); - -function testBaseAndExponentConstantLiterals() -{ - for (var i = 0; i < 10000; ++i) { - var result = intIntConstantsSmallNumbers(); - if (result !== 74088) - throw "Error: intIntConstantsSmallNumbers() should be 74088, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = intIntConstantsLargeNumbers(); - if (result !== 1.5013093754529656e+68) - throw "Error: intIntConstantsLargeNumbers() should be 1.5013093754529656e+68, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = intDoubleConstants(); - if (result !== 5.1338303882015765e+48) - throw "Error: intDoubleConstants() should be 5.1338303882015765e+48, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = doubleDoubleConstants(); - if (result !== 1.0944228729647829e+48) - throw "Error: doubleDoubleConstants() should be 1.0944228729647829e+48, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = doubleIntConstants(); - if (result !== 5.989022735311158e+58) - throw "Error: doubleIntConstants() should be 5.989022735311158e+58, was = " + result; - } -} -testBaseAndExponentConstantLiterals(); - - -function exponentIsIntegerConstant(x) { - return x ** 42; -} -noInline(exponentIsIntegerConstant); - -function testExponentIsIntegerConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsIntegerConstant(2); - if (result !== 4398046511104) - throw "Error: exponentIsIntegerConstant(2) should be 4398046511104, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsIntegerConstant(5); - if (result !== 2.2737367544323207e+29) - throw "Error: exponentIsIntegerConstant(5) should be 2.2737367544323207e+29, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsIntegerConstant(2.1); - if (result !== 34135823067412.42) - throw "Error: exponentIsIntegerConstant(2.1) should be 34135823067412.42, was = " + result; - } -} -testExponentIsIntegerConstant(); - - -function exponentIsDoubleConstant(x) { - return x ** 42.5; -} -noInline(exponentIsDoubleConstant); - -function testExponentIsDoubleConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsDoubleConstant(2); - if (result !== 6219777023950.95) - throw "Error: exponentIsDoubleConstant(2) should be 6219777023950.95, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsDoubleConstant(5); - if (result !== 5.084229945850415e+29) - throw "Error: exponentIsDoubleConstant(5) should be 5.084229945850415e+29, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsDoubleConstant(2.1); - if (result !== 49467507261113.805) - throw "Error: exponentIsDoubleConstant(2.1) should be 49467507261113.805, was = " + result; - } -} -testExponentIsDoubleConstant(); - - -function exponentIsInfinityConstant(x) { - return x ** Infinity; -} -noInline(exponentIsInfinityConstant); - -function testExponentIsInfinityConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsInfinityConstant(2); - if (result !== Infinity) - throw "Error: exponentIsInfinityConstant(2) should be Infinity, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsInfinityConstant(5); - if (result !== Infinity) - throw "Error: exponentIsInfinityConstant(5) should be Infinity, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsInfinityConstant(2.1); - if (result !== Infinity) - throw "Error: exponentIsInfinityConstant(2.1) should be Infinity, was = " + result; - } -} -testExponentIsInfinityConstant(); - - -function exponentIsNegativeInfinityConstant(x) { - return x ** -Infinity; -} -noInline(exponentIsNegativeInfinityConstant); - -function testExponentIsNegativeInfinityConstant() { - for (var i = 0; i < 1000; ++i) { - var result = exponentIsNegativeInfinityConstant(2); - if (result !== 0) - throw "Error: exponentIsNegativeInfinityConstant(2) should be zero, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsNegativeInfinityConstant(5); - if (result !== 0) - throw "Error: exponentIsNegativeInfinityConstant(5) should be zero, was = " + result; - } - for (var i = 0; i < 1000; ++i) { - var result = exponentIsNegativeInfinityConstant(2.1); - if (result !== 0) - throw "Error: exponentIsNegativeInfinityConstant(2.1) should be zero, was = " + result; - } -} -testExponentIsNegativeInfinityConstant(); diff --git a/implementation-contributed/javascriptcore/stress/pow-with-never-NaN-exponent.js b/implementation-contributed/javascriptcore/stress/pow-with-never-NaN-exponent.js deleted file mode 100644 index cd6b991aa202a424caf25d2af199d5992eaa1c2e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/pow-with-never-NaN-exponent.js +++ /dev/null @@ -1,24 +0,0 @@ -function exponentIsNonNanDouble1(x, doubleArrayIndex) { - var doubleArray = [4.4]; - return x ** doubleArray[doubleArrayIndex]; -} -noInline(exponentIsNonNanDouble1); - -function exponentIsNonNanDouble2(x, doubleArray) { - return x ** doubleArray[0]; -} -noInline(exponentIsNonNanDouble2); - -function testExponentIsDoubleConstant() { - for (var i = 0; i < 10000; ++i) { - var result = exponentIsNonNanDouble1(2, 0); - if (result !== 21.112126572366314) - throw "Error: exponentIsNonNanDouble1(2, 0) should be 21.112126572366314, was = " + result; - } - for (var i = 0; i < 10000; ++i) { - var result = exponentIsNonNanDouble2(3, [-1.5]); - if (result !== 0.19245008972987526) - throw "Error: exponentIsNonNanDouble2(3, [-1.5]) should be 0.19245008972987526, was = " + result; - } -} -testExponentIsDoubleConstant(); diff --git a/implementation-contributed/javascriptcore/stress/primitive-poly-proto.js b/implementation-contributed/javascriptcore/stress/primitive-poly-proto.js deleted file mode 100644 index db3917dc7933146920adb0271d66ad47ddf1291c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/primitive-poly-proto.js +++ /dev/null @@ -1,53 +0,0 @@ -let y = 42; -function makePolyProtoInstance() { - function foo() { - class C { - constructor() { this.x = 20; } - }; - C.prototype.y = y; - return new C; - } - - for (let i = 0; i < 5; ++i) - foo(); - return foo(); -} - -let polyProtoInstance = makePolyProtoInstance(); -String.prototype.__proto__ = polyProtoInstance; -Symbol.prototype.__proto__ = polyProtoInstance; -let strings = [ - "foo", - Symbol("foo"), - "bar", - Symbol("bar"), -]; - -function assert(b) { - if (!b) - throw new Error("Bad asssertion") -} -noInline(assert); - -function validate(s) { - assert(s.x === 20); - assert(s.y === y); - assert(s.nonExistentProperty === undefined); - assert(typeof s.hasOwnProperty === "function"); - assert(s.hasOwnProperty === Object.prototype.hasOwnProperty); -} -noInline(validate); - -for (let i = 0; i < 1000; ++i) { - for (let s of strings) { - validate(s); - } -} - -y = 27; -polyProtoInstance.__proto__ = {z:400, y: y}; -for (let i = 0; i < 1000; ++i) { - for (let s of strings) { - validate(s); - } -} diff --git a/implementation-contributed/javascriptcore/stress/private-name-as-anonymous-builtin.js b/implementation-contributed/javascriptcore/stress/private-name-as-anonymous-builtin.js index 41081f930a1f799463fa681d022374226c9699ff..4b21dd17b7e59f8fb26529a5d256316e486b1603 100644 --- a/implementation-contributed/javascriptcore/stress/private-name-as-anonymous-builtin.js +++ b/implementation-contributed/javascriptcore/stress/private-name-as-anonymous-builtin.js @@ -1,3 +1,10 @@ +// Reviewed +/*** +- jsc +- ch +- d8: Error: bad value: ["length","name"] +- jsshell: Error: bad value: ["length","name"] + */ function shouldBe(actual, expected) { if (actual !== expected) diff --git a/implementation-contributed/javascriptcore/stress/proxy-all-the-parameters.js b/implementation-contributed/javascriptcore/stress/proxy-all-the-parameters.js deleted file mode 100644 index 4de6ccc83179711b630ae6a2ed32f94993da023d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-all-the-parameters.js +++ /dev/null @@ -1,68 +0,0 @@ -const verbose = false; - -function isPropertyOfType(obj, name, type) { - let desc; - desc = Object.getOwnPropertyDescriptor(obj, name) - return typeof type === 'undefined' || typeof desc.value === type; -} - -function getProperties(obj, type) { - let properties = []; - for (let name of Object.getOwnPropertyNames(obj)) { - if (isPropertyOfType(obj, name, type)) - properties.push(name); - } - return properties; -} - -function* generateObjects(root = this, level = 0) { - if (level > 4) - return; - let obj_names = getProperties(root, 'object'); - for (let obj_name of obj_names) { - if (obj_name.startsWith('$')) - continue; // Ignore internal objects. - let obj = root[obj_name]; - yield obj; - yield* generateObjects(obj, level + 1); - } -} - -function getObjects() { - let objects = []; - for (let obj of generateObjects()) - if (!objects.includes(obj)) - objects.push(obj); - return objects; -} - -function getFunctions(obj) { - return getProperties(obj, 'function'); -} - -const thrower = new Proxy({}, { get() { throw 0xc0defefe; } }); - -for (let o of getObjects()) { - for (let f of getFunctions(o)) { - const arityPlusOne = o[f].length + 1; - if (verbose) - print(`Calling ${o}['${f}'](${Array(arityPlusOne).fill("thrower")})`); - try { - o[f](Array(arityPlusOne).fill(thrower)); - } catch (e) { - if (`${e}`.includes('constructor without new is invalid')) { - try { - if (verbose) - print(` Constructing instead`); - new o[f](Array(arityPlusOne).fill(thrower)); - } catch (e) { - if (verbose) - print(` threw ${e}`); - } - } else { - if (verbose) - print(` threw ${e}`); - } - } - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-and-json-stringify.js b/implementation-contributed/javascriptcore/stress/proxy-and-json-stringify.js deleted file mode 100644 index a437ebc37d98dcfae7d32c368d1f9e500f3eb54c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-and-json-stringify.js +++ /dev/null @@ -1,28 +0,0 @@ -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -// This test just ensure that proxy.[[Get]]'s throwing works correctly with JSON.stringify. -var proxy = new Proxy([0, 1, 2, 3], { - get: function (target, name) - { - if (name === '2') - throw new Error('ng'); - return target[name]; - } -}); - -shouldThrow(() => { - JSON.stringify(proxy); -}, `Error: ng`); diff --git a/implementation-contributed/javascriptcore/stress/proxy-and-typed-array.js b/implementation-contributed/javascriptcore/stress/proxy-and-typed-array.js deleted file mode 100644 index 145c0d67ccd95dffb159323cba804c7283305266..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-and-typed-array.js +++ /dev/null @@ -1,17 +0,0 @@ -var array = [0, 1, 2, 3]; -var proxy = new Proxy(array, { - get: function (target, name, receiver) - { - throw new Error(String(name)); - } -}); -var thrown = null; -try { - var typedArray = new Uint8Array(proxy); -} catch (error) { - thrown = error; -} -if (thrown === null) - throw new Error(`not thrown`); -if (String(thrown) !== `Error: Symbol(Symbol.iterator)`) - throw new Error(`bad error: ${String(thrown)}`); diff --git a/implementation-contributed/javascriptcore/stress/proxy-array-prototype-methods.js b/implementation-contributed/javascriptcore/stress/proxy-array-prototype-methods.js deleted file mode 100644 index 8e71b5ae55a18bc8a1f842b948724076e08e98cf..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-array-prototype-methods.js +++ /dev/null @@ -1,204 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion!"); -} - -function test(f) { - for (let i = 0; i < 1000; i++) - f(); -} - -function shallowEq(a, b) { - if (a.length !== b.length) - return false; - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) - return false; - } - return true; -} - -test(function() { - let delProps = new Set; - let hasProps = new Set; - let getProps = new Set; - let target = [ , , 1, , 4]; - let handler = { - get(theTarget, key) { - getProps.add(key); - return Reflect.get(theTarget, key); - }, - has(theTarget, key) { - hasProps.add(key); - return Reflect.has(theTarget, key); - }, - deleteProperty(theTarget, key) - { - delProps.add(key); - return Reflect.deleteProperty(theTarget, key); - } - }; - - let proxy = new Proxy(target, handler); - proxy.unshift(20); - - assert(delProps.size === 3); - assert(delProps.has("1")); - assert(delProps.has("2")); - assert(delProps.has("4")); - - assert(hasProps.size === 5); - assert(hasProps.has("0")); - assert(hasProps.has("1")); - assert(hasProps.has("2")); - assert(hasProps.has("3")); - assert(hasProps.has("4")); - - assert(getProps.size === 4); - assert(getProps.has("unshift")); - assert(getProps.has("length")); - assert(getProps.has("2")); - assert(getProps.has("4")); -}); - -test(function() { - let delProps = new Set; - let hasProps = new Set; - let getProps = new Set; - let target = [ 0, 0, , 1, , 4]; - let handler = { - get(theTarget, key) { - getProps.add(key); - return Reflect.get(theTarget, key); - }, - has(theTarget, key) { - hasProps.add(key); - return Reflect.has(theTarget, key); - }, - deleteProperty(theTarget, key) - { - delProps.add(key); - return Reflect.deleteProperty(theTarget, key); - } - }; - - let proxy = new Proxy(target, handler); - proxy.shift(); - assert(target.length === 5); - - assert(delProps.size === 3); - assert(delProps.has("1")); - assert(delProps.has("3")); - assert(delProps.has("5")); - - assert(hasProps.size === 5); - assert(hasProps.has("1")); - assert(hasProps.has("2")); - assert(hasProps.has("3")); - assert(hasProps.has("4")); - assert(hasProps.has("5")); - - assert(getProps.size === 6); - assert(getProps.has("shift")); - assert(getProps.has("length")); - assert(getProps.has("0")); - assert(getProps.has("1")); - assert(getProps.has("3")); - assert(getProps.has("5")); -}); - -test(function() { - let delProps = new Set; - let hasProps = new Set; - let getProps = new Set; - let target = [ 0, , 1, , 2]; - let handler = { - get(theTarget, key) { - getProps.add(key); - return Reflect.get(theTarget, key); - }, - has(theTarget, key) { - hasProps.add(key); - return Reflect.has(theTarget, key); - }, - deleteProperty(theTarget, key) - { - delProps.add(key); - return Reflect.deleteProperty(theTarget, key); - } - }; - - let proxy = new Proxy(target, handler); - proxy.splice(2, 2); - - assert(delProps.size === 2); - assert(delProps.has("3")); - assert(delProps.has("4")); - - assert(hasProps.size === 3); - assert(hasProps.has("2")); - assert(hasProps.has("3")); - assert(hasProps.has("4")); - - assert(getProps.size === 5); - assert(getProps.has("splice")); - assert(getProps.has("length")); - assert(getProps.has("constructor")); - assert(getProps.has("2")); - assert(getProps.has("4")); -}); - -test(function() { - let delProps = new Set; - let hasProps = new Set; - let getProps = new Set; - let target = [ 0, , 1, , 2]; - let handler = { - get(theTarget, key) { - getProps.add(key); - return Reflect.get(theTarget, key); - }, - has(theTarget, key) { - hasProps.add(key); - return Reflect.has(theTarget, key); - }, - deleteProperty(theTarget, key) - { - delProps.add(key); - return Reflect.deleteProperty(theTarget, key); - } - }; - - let proxy = new Proxy(target, handler); - proxy.slice(1, 5); - - assert(delProps.size === 0); - - assert(hasProps.size === 4); - assert(hasProps.has("1")); - assert(hasProps.has("2")); - assert(hasProps.has("3")); - assert(hasProps.has("4")); - - assert(getProps.size === 5); - assert(getProps.has("slice")); - assert(getProps.has("length")); - assert(getProps.has("constructor")); - assert(getProps.has("2")); - assert(getProps.has("4")); -}); - -test(function() { - let x = [1,2,3]; - x.__proto__ = new Proxy([], { - get(theTarget, prop, receiver) { - assert(prop === "shift"); - assert(receiver === x); - return Reflect.get(theTarget, prop); - } - }); - x.shift(); - assert(x.length === 2); - assert(x[0] === 2); - assert(x[1] === 3); -}); diff --git a/implementation-contributed/javascriptcore/stress/proxy-basic.js b/implementation-contributed/javascriptcore/stress/proxy-basic.js deleted file mode 100644 index c0ec1578ea7cf74ed3f6250e7766ae332c9a2d22..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-basic.js +++ /dev/null @@ -1,335 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -assert(Proxy instanceof Function); -assert(Proxy.length === 2); -assert(Proxy.prototype === undefined); - -{ - for (let i = 0; i < 100; i++) - assert((new Proxy({}, {})).__proto__ === Object.prototype); -} - -{ - for (let i = 0; i < 100; i++) { - let threw = false; - try { - new Proxy({}, 20); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: A Proxy's 'handler' should be an Object"); - } - assert(threw); - } -} - -{ - for (let i = 0; i < 100; i++) { - let threw = false; - try { - new Proxy({}, ""); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: A Proxy's 'handler' should be an Object"); - } - assert(threw); - } -} - -{ - for (let i = 0; i < 100; i++) { - let threw = false; - try { - new Proxy(20, {}); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: A Proxy's 'target' should be an Object"); - } - assert(threw); - } -} - -{ - for (let i = 0; i < 100; i++) { - let threw = false; - try { - new Proxy("", {}); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: A Proxy's 'target' should be an Object"); - } - assert(threw); - } -} - -{ - // When we call Proxy it should throw - for (let i = 0; i < 100; i++) { - let threw = false; - try { - Proxy({}, {}); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: calling Proxy constructor without new is invalid"); - } - assert(threw === true); - } - - let theTarget = { - x: 30 - }; - - let handler = { - get: function(target, propName, proxyArg) { - assert(target === theTarget); - assert(proxyArg === proxy); - if (propName === "y") - return 45; - assert(propName === "x"); - return target[propName]; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 1000; i++) { - assert(proxy.x === 30); - assert(proxy.y === 45); - assert(proxy["x"] === 30); - assert(proxy["y"] === 45); - } - -} - -{ - let handler = {get: null}; - let target = {x: 20}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - if (i % 2) - proxy.foo; - else - proxy["foo"]; - } catch(e) { - threw = true; - } - assert(!threw); - } -} - -{ - let handler = {get: {}}; - let target = {x: 20}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - if (i % 2) - proxy.foo; - else - proxy["foo"]; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: 'get' property of a Proxy's handler object should be callable"); - } - assert(threw); - } -} - -{ - let handler = {}; - let target = {x: 20}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy.x === 20); - assert(proxy.y === undefined); - } -} - -{ - let handler = {}; - let target = [1, 2, 3]; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy[0] === 1); - assert(proxy[1] === 2); - assert(proxy[2] === 3); - } -} - -{ - let theTarget = [1, 2, 3]; - let handler = { - get: function(target, propName, proxyArg) { - switch (propName) { - case "0": - case "1": - return 100; - case "2": - case "length": - return target[propName]; - } - assert(false); - } - }; - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 500; i++) { - assert(proxy[0] === 100); - assert(proxy[1] === 100); - assert(proxy[2] === 3); - assert(proxy.length === 3); - assert(proxy["length"] === 3); - } -} - -{ - let wasCalled = false; - let theTarget = { - get x() { - wasCalled = true; - return 25; - } - }; - let j = 0; - let handler = { - get: function(target, propName, proxyArg) { - assert(target === theTarget); - let x = j++; - if (x % 2) - return target[propName]; - else - return "hello"; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 500; i++) { - if (i % 2) - assert(proxy.x === 25); - else - assert(proxy.x === "hello"); - - } - - assert(wasCalled); -} - -{ - let theTarget = { - x: 40 - }; - let handler = { - get: function(target, propName, proxyArg) { - return 30; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 500; i++) { - assert(proxy.x === 30); - } - handler.get = undefined; - for (let i = 0; i < 500; i++) { - assert(proxy.x === 40); - } -} - -{ - let error = null; - let theTarget = new Proxy({}, { - getOwnPropertyDescriptor: function(theTarget, propName) { - error = new Error("hello!") - throw error; - } - }); - - let handler = { - get: function(target, propName, proxyArg) { - return 30; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 500; i++) { - try { - proxy.x; - } catch(e) { - assert(e === error); - } - } -} - -{ - let field = Symbol(); - let theTarget = { - [field]: 40 - }; - let handler = { - get: function(target, propName, proxyArg) { - assert(propName === field); - return target[field]; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 500; i++) { - assert(proxy[field] === 40); - } -} - -{ - let prop = Symbol(); - let theTarget = { }; - Object.defineProperty(theTarget, prop, { - enumerable: true, - configurable: true - }); - let called = false; - let handler = { - getOwnPropertyDescriptor: function(target, propName) { - assert(prop === propName); - called = true; - return { - enumerable: true, - configurable: true - }; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 100; i++) { - let pDesc = Object.getOwnPropertyDescriptor(proxy, prop); - assert(pDesc.configurable); - assert(pDesc.enumerable); - assert(called); - called = false; - } -} - -{ - let prop = Symbol(); - let theTarget = { }; - Object.defineProperty(theTarget, prop, { - enumerable: true, - configurable: true - }); - let called = false; - let handler = { - has: function(target, propName) { - assert(prop === propName); - called = true; - return true; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 100; i++) { - let result = prop in proxy; - assert(result); - assert(called); - called = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-call-apply-handler-to-this.js b/implementation-contributed/javascriptcore/stress/proxy-call-apply-handler-to-this.js deleted file mode 100644 index 9507bd94462fe0c70c1bef420e772428ad718068..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-call-apply-handler-to-this.js +++ /dev/null @@ -1,39 +0,0 @@ -//@ runDefault("--useBigInt=1") - -let expectedThis; - -function applyHandler(target, thisValue) { - if (thisValue !== expectedThis) - throw new Error("got weird this value: " + thisValue); -} - -let handler = { - apply: applyHandler -}; -let f = new Proxy(function() {}, handler); - -function withScope(o) { - with (o) { - f(); - } -} - -function lexicalScope() { - let x; - f(); -} - -// globalScope -f(); - -function strictEvalScope() { - "use strict"; - eval("var x; f();"); -} - -let primitives = [undefined, null, true, 1.324, "test", Symbol("test"), BigInt(12), {}, []]; - -for (let primitive of primitives) { - expectedThis = primitive; - f.call(primitive); -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-call.js b/implementation-contributed/javascriptcore/stress/proxy-call.js deleted file mode 100644 index b3b5eff841154e9b1d5781ce08b9fe5f48735841..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-call.js +++ /dev/null @@ -1,394 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = function foo(...args) { - assert(args[0] === 10); - assert(args[1] === 20); - return "foo"; - } - let handler = { - apply: function(theTarget, thisArg, argArray) { - assert(theTarget === target); - assert(argArray[0] === 10); - assert(argArray[1] === 20); - return theTarget.apply(thisArg, argArray); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy(10, 20) === "foo"); - } -} - -{ - let target = function foo() { } - let error = null; - let handler = { - get apply() { - error = new Error(); - throw error; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - proxy(10, 20); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let called = false; - let globalThis = this; - let target = function foo() { - assert(this === globalThis); - called = true; - } - let handler = { - apply: null - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - proxy(); - assert(called); - called = false; - } -} - -{ - let called = false; - let globalThis = this; - let target = function foo() { - assert(this === globalThis); - called = true; - } - let handler = { - apply: undefined - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - proxy(); - assert(called); - called = false; - } -} - -{ - let called = false; - let thisValue = {}; - let target = function foo(x, y, z) { - assert(this === thisValue); - assert(x === 20); - assert(y === 45); - assert(z === "foo"); - called = true; - } - - let handler = { - apply: undefined - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - proxy.call(thisValue, 20, 45, "foo"); - assert(called); - called = false; - proxy.apply(thisValue, [20, 45, "foo"]); - assert(called); - called = false; - } -} - -{ - let called = false; - let thisValue = {}; - let target = function foo(x, y, z) { - assert(this === thisValue); - assert(x === 20); - assert(y === 45); - assert(z === "foo"); - called = true; - return this; - } - - let handler = { - apply: function(theTarget, thisArg, argArray) { - assert(theTarget === target); - assert(argArray[0] === 20); - assert(argArray[1] === 45); - assert(argArray[2] === "foo"); - assert(thisArg === thisValue); - return theTarget.apply(thisArg, argArray); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy.call(thisValue, 20, 45, "foo") === thisValue); - assert(called); - called = false; - assert(proxy.apply(thisValue, [20, 45, "foo"]) === thisValue); - assert(called); - called = false; - } -} - -{ - let called = false; - let target = Error; - - let handler = { - apply: function(theTarget, thisArg, argArray) { - called = true; - assert(theTarget === Error); - return theTarget.apply(thisArg, argArray); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let error = proxy(); - assert(!!error.stack); - called = false; - } -} - -{ - let called = false; - let self = this; - let target = (x) => { - called = true; - assert(this === self); - return x; - }; - - let handler = { }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = proxy(i); - assert(result === i); - called = false; - } -} - -{ - let called = false; - let self = this; - let target = (x) => { - assert(this === self); - return x; - }; - - let handler = { - apply: function(theTarget, thisArg, argArray) { - called = true; - assert(theTarget === target); - return theTarget.apply(thisArg, argArray); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = proxy(i); - assert(result === i); - called = false; - } -} - -{ - let called = false; - let self = this; - let target = (x) => { - assert(this === self); - return x; - }; - - let handler = { - apply: function(theTarget, thisArg, argArray) { - called = true; - assert(theTarget === target); - return theTarget.apply(null, argArray); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = proxy(i); - assert(called); - assert(result === i); - called = false; - } -} - -{ - let called = false; - let target = (x) => { }; - let error = null; - - let handler = { - apply: function(theTarget, thisArg, argArray) { - error = new Error(); - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - proxy(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let called = false; - let error = null; - let target = (x) => { - error = new Error(); - throw error; - }; - - let handler = { - apply: function(theTarget, thisArg, argArray) { - assert(theTarget === target); - return theTarget.apply(null, argArray); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - proxy(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let called = false; - let error = null; - let target = new Proxy((x) => x, {}); - - let handler = { - apply: function(theTarget, thisArg, argArray) { - assert(theTarget === target); - called = true; - return theTarget.apply(null, argArray); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy(i) === i); - assert(called); - called = false; - } -} - -{ - let target = (x) => x; - let handler = { - apply: function(theTarget, thisArg, argArray) { - return theTarget.apply(thisArg, argArray); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "function"); - } -} - -{ - let target = function() { } - let handler = { - apply: function(theTarget, thisArg, argArray) { - return theTarget.apply(thisArg, argArray); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "function"); - } -} - -{ - let target = Error; - let handler = { - apply: function(theTarget, thisArg, argArray) { - return theTarget.apply(thisArg, argArray); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "function"); - } -} - -{ - let target = (function foo() { }).bind({}); - let handler = { - apply: function(theTarget, thisArg, argArray) { - return theTarget.apply(thisArg, argArray); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "function"); - } -} - -{ - let target = function() { }; - let handler = {}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "function"); - } -} - -{ - let target = {}; - let handler = {}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "object"); - } -} - -{ - let target = []; - let handler = {}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "object"); - } -} - -{ - let target = new String("foo"); - let handler = {}; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(typeof proxy === "object"); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-class.js b/implementation-contributed/javascriptcore/stress/proxy-class.js deleted file mode 100644 index da064230ff93a4e00116df0a691942a725f319a8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-class.js +++ /dev/null @@ -1,34 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - const value = 'foo-bar'; - - class SuperClass { - constructor() { - this._id = value; - } - } - - let ProxiedSuperClass = new Proxy(SuperClass, {}); - - for (let i = 0; i < 500; i++) { - let p = new ProxiedSuperClass; - assert(p._id === value); - } - - class A extends ProxiedSuperClass { - constructor() { - super(); - } - } - - assert(A.__proto__ === ProxiedSuperClass); - - for (let i = 0; i < 500; i++) { - let a = new A; - assert(a._id === value); - } -} \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/proxy-construct.js b/implementation-contributed/javascriptcore/stress/proxy-construct.js deleted file mode 100644 index b6b80c2643621d9b448731e99d9464af133c89e1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-construct.js +++ /dev/null @@ -1,263 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = function() { } - let handler = { - construct: 45 - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: 'construct' property of a Proxy's handler should be constructible"); - } - assert(threw); - } -} - -{ - let target = function() { } - let handler = { - construct: "hello" - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: 'construct' property of a Proxy's handler should be constructible"); - } - assert(threw); - } -} - -{ - let target = function() { } - let error = null; - let handler = { - get construct() { - error = new Error; - throw error; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - error = null; - } -} - -{ - let target = function() { } - let error = null; - let handler = { - construct: function() { - error = new Error; - throw error; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - error = null; - } -} - -{ - let error = null; - let target = function() { - assert(new.target === proxy); - error = new Error; - throw error; - }; - let handler = { }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - assert(e === error); - error = null; - threw = true; - } - assert(threw); - } -} - -{ - let target = function() { } - let handler = { - construct: function() { - return 25; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Result from Proxy handler's 'construct' method should be an object"); - } - assert(threw); - } -} - -{ - let target = function() { } - let handler = { - construct: function() { - return "hello"; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Result from Proxy handler's 'construct' method should be an object"); - } - assert(threw); - } -} - -{ - let target = function() { } - let handler = { - construct: function() { - return Symbol(); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - new proxy; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Result from Proxy handler's 'construct' method should be an object"); - } - assert(threw); - } -} - -{ - let a = {}; - let b = {}; - let retValue = null; - let target = function() { - return retValue; - }; - let error = null; - let handler = { - construct: function(theTarget, argArray, newTarget) { - assert(theTarget === target); - assert(newTarget === proxy); - return new theTarget(...argArray); - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - retValue = i % 2 ? a : b; - assert(new proxy === retValue); - } -} - -{ - let a = {}; - let b = {}; - let target = function() { - assert(new.target === proxy); - return a; - }; - let error = null; - let construct = function(theTarget, argArray, newTarget) { - assert(theTarget === target); - assert(newTarget === proxy); - return b; - }; - let handler = { }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - if (i % 2) - handler.construct = construct; - else - handler.construct = null; - let result = new proxy; - if (i % 2) - assert(result === b) - else - assert(result === a); - } -} - -{ - let target = function(...args) { - assert(new.target === target); - assert(args[0] === 0); - assert(args[1] === 1); - assert(args[2] === "foo"); - }; - let error = null; - let construct = function(theTarget, argArray, newTarget) { - assert(theTarget === target); - assert(newTarget === proxy); - return new target(...argArray); - }; - let handler = { }; - handler.construct = construct; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - new proxy(0, 1, "foo"); - } -} - -{ - let obj = null; - let target = function(...args) { - assert(new.target === target); - assert(args[0] === 0); - assert(obj); - assert(args[1] === obj); - assert(args[2] === "foo"); - }; - let error = null; - let construct = function(theTarget, argArray, newTarget) { - assert(theTarget === target); - assert(newTarget === proxy); - return new target(...argArray); - }; - let handler = { }; - handler.construct = construct; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - obj = {}; - new proxy(0, obj, "foo"); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-define-own-property.js b/implementation-contributed/javascriptcore/stress/proxy-define-own-property.js deleted file mode 100644 index 97e704a6c0d77cbd3a92b2fafee1875fca6d9f6f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-define-own-property.js +++ /dev/null @@ -1,614 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = {}; - let handler = { - defineProperty: 25 - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: 55 - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: 'defineProperty' property of a Proxy's handler should be callable"); - } - - assert(threw); - } - -} - -{ - let target = {}; - let error = null; - let handler = { - get defineProperty() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: 55 - }); - } catch(e) { - threw = true; - assert(e === error); - } - - assert(threw); - } -} - -{ - let target = {}; - let error = null; - let handler = { - defineProperty: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: 55 - }); - } catch(e) { - threw = true; - assert(e === error); - } - - assert(threw); - } -} - -{ - let target = {}; - let handler = { - defineProperty: null - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - Object.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: i - }); - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === i); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -} - -{ - let target = {}; - let handler = { - defineProperty: undefined - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: i - }); - assert(result); - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === i); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -} - -{ - let target = {}; - let called = false; - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - called = true; - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: i - }); - assert(result); - assert(called); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === i); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -} - -{ - let target = {}; - let called = false; - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - called = true; - Reflect.defineProperty(theTarget, propName, descriptor); - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: i - }); - assert(!result); - assert(called); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === i); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -} - -{ - let target = {}; - let called = false; - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: false, - value: i - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy's 'defineProperty' trap returned true for a non-configurable field even though getOwnPropertyDescriptor of the Proxy's target returned undefined"); - } - assert(called); - assert(threw); - called = false; - } -} - -{ - let target = {}; - let called = false; - Object.preventExtensions(target); - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - value: i - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy's 'defineProperty' trap returned true even though getOwnPropertyDescriptor of the Proxy's target returned undefined and the target is non-extensible"); - } - assert(called); - assert(threw); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(propName === "x"); - assert(descriptor.configurable === false); - called = true; - return Reflect.defineProperty(theTarget, "x", { - enumerable: true, - configurable: true, - value: descriptor.value - }); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - try { - Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: false, - value: i - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy's 'defineProperty' trap did not define a non-configurable property on its target even though the input descriptor to the trap said it must do so"); - } - assert(called); - assert(threw); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === i); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -} - -{ - let target = {}; - let called = false; - Object.defineProperty(target, "x", { - configurable: false, - writable: true, - value: 55 - }); - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(propName === "x"); - assert(descriptor.configurable === true); - called = true; - Reflect.defineProperty(theTarget, "x", { - enumerable: true, - configurable: true, - value: descriptor.value - }); - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.defineProperty(proxy, "x", { - configurable: true, - writable: false, - value: 45 - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy's 'defineProperty' trap did not define a property on its target that is compatible with the trap's input descriptor"); - } - assert(called); - assert(threw); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === 55); - assert(pDesc.configurable === false); - } - } -} - -{ - let target = {}; - let called = false; - Object.defineProperty(target, "x", { - configurable: false, - writable: true, - value: 55 - }); - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(propName === "x"); - assert(descriptor.configurable === true); - called = true; - Reflect.defineProperty(theTarget, "x", descriptor); - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.defineProperty(proxy, "x", { - configurable: true, - set:function(){}, - get:function(){} - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy's 'defineProperty' trap did not define a property on its target that is compatible with the trap's input descriptor"); - } - assert(called); - assert(threw); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === 55); - assert(pDesc.configurable === false); - } - } -} - -{ - let target = {}; - let called = false; - let setter = function(){}; - let getter = function(){}; - Object.defineProperty(target, "x", { - configurable: false, - get: getter, - set: setter - }); - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(propName === "x"); - assert(descriptor.configurable === true); - called = true; - Reflect.defineProperty(theTarget, "x", descriptor); - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.defineProperty(proxy, "x", { - configurable: true, - value: 45 - }); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy's 'defineProperty' trap did not define a property on its target that is compatible with the trap's input descriptor"); - } - assert(called); - assert(threw); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === undefined); - assert(pDesc.configurable === false); - assert(pDesc.get === getter); - assert(pDesc.set === setter); - } - } -} - -{ - let target = {}; - let called = false; - let setter = function(){}; - let getter = function(){}; - Object.defineProperty(target, "x", { - configurable: false, - get: getter, - set: setter - }); - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(propName === "x"); - assert(descriptor.configurable === true); - called = true; - return Reflect.defineProperty(theTarget, "x", descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - configurable: true, - value: 45 - }); - assert(!result); - assert(called); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(pDesc.value === undefined); - assert(pDesc.configurable === false); - assert(pDesc.get === getter); - assert(pDesc.set === setter); - } - } -} - -{ - let error = false; - let target = new Proxy({}, { - getOwnPropertyDescriptor: function() { - error = new Error; - throw error; - } - }); - - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.defineProperty(proxy, "x", { - configurable: true, - value: 45 - }); - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - } -} - -{ - let target = {}; - Reflect.defineProperty(target, "x", { - writable: true, - configurable: false, - value: 55 - }); - - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(theTarget === target); - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - configurable: false, - value: 55 - }); - assert(result); - assert(target.x === 55); - delete target.x; - assert(target.x === 55); - } -} - -{ - let target = {}; - Reflect.defineProperty(target, "x", { - writable: false, - configurable: false, - value: 55 - }); - - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(theTarget === target); - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - writable: false, - configurable: false, - value: 55 - }); - assert(result); - assert(target.x === 55); - delete target.x; - assert(target.x === 55); - } -} - -{ - let target = {}; - Reflect.defineProperty(target, "x", { - writable: false, - configurable: false, - value: 55 - }); - - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(theTarget === target); - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - writable: false, - configurable: false, - value: "not 55" - }); - assert(!result); - assert(target.x === 55); - delete target.x; - assert(target.x === 55); - } -} - -{ - let target = {}; - Reflect.defineProperty(target, "x", { - writable: false, - configurable: false, - value: 55 - }); - - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - assert(theTarget === target); - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - writable: true, - configurable: false, - value: "whatever value goes here" - }); - assert(!result); - assert(target.x === 55); - delete target.x; - assert(target.x === 55); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-delete.js b/implementation-contributed/javascriptcore/stress/proxy-delete.js deleted file mode 100644 index 498ba3dc5a8f27003f27312e5bc73b0e20ee2e0d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-delete.js +++ /dev/null @@ -1,277 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("bad assertion"); -} - -{ - let target = {x: 20}; - let error = null; - let handler = { - get deleteProperty() { - error = new Error; - throw error; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - delete proxy.x; - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let target = {x: 20}; - let error = null; - let handler = { - deleteProperty: function() { - error = new Error; - throw error; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - delete proxy.x; - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let target = {x: 20}; - let error = null; - let handler = { - deleteProperty: 45 - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - delete proxy.x; - } catch(e) { - assert(e.toString() === "TypeError: 'deleteProperty' property of a Proxy's handler should be callable"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - configurable: false, - value: 25 - }); - let error = null; - let handler = { - deleteProperty: function(theTarget, propName) { - delete theTarget[propName]; - return true; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - delete proxy.x; - } catch(e) { - assert(e.toString() === "TypeError: Proxy handler's 'deleteProperty' method should return false when the target's property is not configurable"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let error = null; - let handler = { - deleteProperty: null - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target.x = i; - assert(proxy.x === i); - let result = delete proxy.x; - assert(result); - assert(proxy.x === undefined); - } -} - -{ - let target = {}; - let error = null; - let handler = { - deleteProperty: undefined - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target[i] = i; - assert(proxy[i] === i); - let result = delete proxy[i]; - assert(result); - assert(proxy[i] === undefined); - } -} - -{ - let target = {}; - let called = false; - let handler = { - deleteProperty: function(theTarget, propName) { - called = true; - assert(theTarget === target); - assert(propName === "x"); - return delete theTarget[propName]; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target.x = i; - assert(proxy.x === i); - let result = delete proxy.x; - assert(result); - assert(proxy.x === undefined); - assert(target.x === undefined); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - deleteProperty: function(theTarget, propName) { - called = true; - assert(theTarget === target); - assert(propName === "x"); - return delete theTarget[propName]; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target.x = i; - assert(proxy.x === i); - let result = delete proxy["x"]; - assert(result); - assert(proxy.x === undefined); - assert(target.x === undefined); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - deleteProperty: function(theTarget, propName) { - called = true; - assert(theTarget === target); - return delete theTarget[propName]; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target[i] = i; - assert(proxy[i] === i); - let result = delete proxy[i]; - assert(result); - assert(proxy[i] === undefined); - assert(target[i] === undefined); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - deleteProperty: function(theTarget, propName) { - called = true; - assert(theTarget === target); - delete theTarget[propName]; - return false; // We're liars. - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target[i] = i; - assert(proxy[i] === i); - let result = delete proxy[i]; - assert(!result); - assert(proxy[i] === undefined); - assert(target[i] === undefined); - assert(called); - called = false; - } -} - -{ - let target = {}; - let error = null; - let called = false; - let handler = { - deleteProperty: function(theTarget, propName) { - called = true; - return delete theTarget[propName]; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - Object.defineProperty(target, "x", { - configurable: true, - writable: false, - value: 25 - }); - target.x = 30; - assert(target.x === 25); - assert(proxy.x === 25); - delete proxy.x; - assert(target.x === undefined); - assert(proxy.x === undefined); - assert(!("x" in proxy)); - assert(!("x" in target)); - assert(called); - called = false; - } -} - -{ - let target = {}; - let error = null; - Object.defineProperty(target, "x", { - configurable: false, - writable: false, - value: 25 - }); - let called = false; - let handler = { - deleteProperty: function(theTarget, propName) { - called = true; - return delete theTarget[propName]; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - target.x = 30; - assert(target.x === 25); - assert(proxy.x === 25); - let result = delete proxy.x; - assert(!result); - assert(called); - called = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-get-and-set-recursion-stack-overflow.js b/implementation-contributed/javascriptcore/stress/proxy-get-and-set-recursion-stack-overflow.js deleted file mode 100644 index 2f0ec7379e4755424ee7879fdc1a29e663f1d2b4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-get-and-set-recursion-stack-overflow.js +++ /dev/null @@ -1,67 +0,0 @@ -function assert(b) { - if (!b) - throw new Error('bad assertion'); -} - -function testStackOverflowGet() { - let threw = false; - try { - let o = {}; - let p = new Proxy(o, {}); - Object.setPrototypeOf(o, p); - p.anyField; - } catch(e) { - threw = true; - assert(e.toString() === "RangeError: Maximum call stack size exceeded."); - } - assert(threw); -} - -function testStackOverflowIndexedGet(i) { - let threw = false; - try { - let o = {}; - let p = new Proxy(o, {}); - Object.setPrototypeOf(o, p); - p[i]; - } catch(e) { - threw = true; - assert(e.toString() === "RangeError: Maximum call stack size exceeded."); - } - assert(threw); -} - -function testStackOverflowSet() { - let threw = false; - try { - let o = {}; - let p = new Proxy(o, {}); - Object.setPrototypeOf(o, p); - p.anyField = 50; - } catch(e) { - threw = true; - assert(e.toString() === "RangeError: Maximum call stack size exceeded."); - } - assert(threw); -} - -function testStackOverflowIndexedSet(i) { - let threw = false; - try { - let o = {}; - let p = new Proxy(o, {}); - Object.setPrototypeOf(o, p); - p[i] = 50; - } catch(e) { - threw = true; - assert(e.toString() === "RangeError: Maximum call stack size exceeded."); - } - assert(threw); -} - -for (let i = 0; i < 250; i++) { - testStackOverflowGet(); - testStackOverflowIndexedGet(i); - testStackOverflowSet(); - testStackOverflowIndexedSet(i); -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-get-own-property.js b/implementation-contributed/javascriptcore/stress/proxy-get-own-property.js deleted file mode 100644 index ac8e58487fe6a630519224985e067a7cba26e13f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-get-own-property.js +++ /dev/null @@ -1,451 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("bad assertion"); -} - -{ - let target = {x: 20}; - let called = false; - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - called = true; - assert(theTarget === target); - assert(propName === "x"); - return undefined; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(Object.getOwnPropertyDescriptor(proxy, "x") === undefined); - assert(called); - called = false; - } -} - -{ - let target = {}; - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return 25; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - assert(e.toString() === "TypeError: result of 'getOwnPropertyDescriptor' call should either be an Object or undefined"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: false - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - assert(theTarget === target); - assert(propName === "x"); - return undefined; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - assert(e.toString() === "TypeError: When the result of 'getOwnPropertyDescriptor' is undefined the target must be configurable"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: true - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - assert(theTarget === target); - assert(propName === "x"); - return {configurable: false}; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - assert(e.toString() === "TypeError: Result from 'getOwnPropertyDescriptor' can't be non-configurable when the 'target' doesn't have it as an own property or if it is a configurable own property on 'target'"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - enumerable: false, - configurable: false - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - assert(theTarget === target); - assert(propName === "x"); - return {enumerable: true}; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - assert(e.toString() === "TypeError: Result from 'getOwnPropertyDescriptor' fails the IsCompatiblePropertyDescriptor test"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let handler = { - getOwnPropertyDescriptor: 45 - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - assert(e.toString() === "TypeError: 'getOwnPropertyDescriptor' property of a Proxy's handler should be callable"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let handler = { - getOwnPropertyDescriptor: null - }; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: false - }); - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let pDesc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(pDesc.configurable === false); - assert(pDesc.enumerable === true); - } -} - -{ - let target = {}; - let handler = { - getOwnPropertyDescriptor: undefined - }; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: false - }); - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let pDesc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(pDesc.configurable === false); - assert(pDesc.enumerable === true); - } -} - -{ - let target = {}; - let handler = { }; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: false - }); - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let pDesc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(pDesc.configurable === false); - assert(pDesc.enumerable === true); - } -} - -{ - let target = {}; - let error = null; - let handler = { get getOwnPropertyDescriptor() { - error = new Error("blah"); - throw error; - }}; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: false - }); - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - let pDesc = Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - } -} - - - -Object.prototype.fooBarBaz = 20; // Make for-in go over the prototype chain to the top. - -{ - let target = {}; - let called = false; - let handler = { - getOwnPropertyDescriptor: function() { - called = true; - return undefined; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - let set = new Set(); - for (let p in proxy) { - set.add(p); - } - assert(set.has("fooBarBaz")); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - getOwnPropertyDescriptor: function() { - called = true; - return undefined; - } - }; - - let proxy = new Proxy(target, handler); - let proxyish = Object.create(proxy, { - x: {value: 20, enumerable: true}, - y: {value: 20, enumerable: true} - }); - for (let i = 0; i < 1000; i++) { - let set = new Set; - for (let p in proxyish) { - set.add(p); - } - assert(set.has("x")); - assert(set.has("y")); - assert(set.has("fooBarBaz")); - assert(called); - called = false; - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - enumerable: false, - configurable: false, - writable: true, - value: 50 - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {enumerable: false, value: 45}; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let desc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(desc.configurable === false); - assert(desc.enumerable === false); - assert(desc.writable === false); - assert(desc.value === 45); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - enumerable: false, - configurable: false, - writable: true - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {enumerable: false, value: 45}; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let desc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(desc.configurable === false); - assert(desc.enumerable === false); - assert(desc.writable === false); - assert(desc.value === 45); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - enumerable: true, - configurable: true, - writable: true - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {configurable: true, value: 45, enumerable: true}; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let desc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(desc.configurable === true); - assert(desc.enumerable === true); - assert(desc.writable === false); - assert(desc.value === 45); - } -} - -{ - let target = {}; - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {configurable: true, value: 45, enumerable: true}; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let desc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(desc.configurable === true); - assert(desc.enumerable === true); - assert(desc.writable === false); - assert(desc.value === 45); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - get: function() { return 25; }, - set: function() { return 50; }, - configurable: false - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {configurable: false, set:function(){}, get:function(){} }; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Result from 'getOwnPropertyDescriptor' fails the IsCompatiblePropertyDescriptor test"); - } - assert(threw); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - get: function() { return 25; }, - set: function() { return 50; }, - configurable: true - }); - let a = function() { }; - let b = function() {} - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {configurable: true, set: a, get: b }; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(result.configurable); - assert(result.set === a); - assert(result.get === b); - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - get: function() { return 25; }, - set: function() { return 50; }, - configurable: false - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return {configurable: false, set:function(){}, get:function(){} }; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.getOwnPropertyDescriptor(proxy, "x"); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Result from 'getOwnPropertyDescriptor' fails the IsCompatiblePropertyDescriptor test"); - } - assert(threw); - } -} - -{ - let target = {}; - let setter = function() { }; - let getter = function() { }; - Object.defineProperty(target, "x", { - get: getter, - set: setter, - configurable: false - }); - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - return { - configurable: false, - set: setter, - get: getter - }; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let desc = Object.getOwnPropertyDescriptor(proxy, "x"); - assert(desc.configurable === false); - assert(desc.get === getter); - assert(desc.set === setter); - assert(desc.enumerable === false); - assert(desc.writable === undefined); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-get-prototype-of.js b/implementation-contributed/javascriptcore/stress/proxy-get-prototype-of.js deleted file mode 100644 index de01de45776a39fc5e0db04d0e7e1fb621b70eff..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-get-prototype-of.js +++ /dev/null @@ -1,428 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = {}; - let error = null; - let handler = { - get getPrototypeOf() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - let error = null; - let handler = { - getPrototypeOf: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } - } -} - -{ - let error = null; - let target = new Proxy({}, { - isExtensible: function() { - error = new Error; - throw error; - } - }); - - let handler = { - getPrototypeOf: function() { - return target.__proto__; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - let handler = { - getPrototypeOf: 25 - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e.toString() === "TypeError: 'getPrototypeOf' property of a Proxy's handler should be callable"); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - let handler = { - getPrototypeOf: function() { - return 25; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e.toString() === "TypeError: Proxy handler's 'getPrototypeOf' trap should either return an object or null"); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - let handler = { - getPrototypeOf: function() { - return Symbol(); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e.toString() === "TypeError: Proxy handler's 'getPrototypeOf' trap should either return an object or null"); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - Reflect.preventExtensions(target); - let handler = { - getPrototypeOf: function() { - return null; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e.toString() === "TypeError: Proxy's 'getPrototypeOf' trap for a non-extensible target should return the same value as the target's prototype"); - threw = true; - } - assert(threw); - } - } -} - -{ - let notProto = {}; - let target = {}; - Reflect.preventExtensions(target); - let handler = { - getPrototypeOf: function() { - return notProto; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let threw = false; - try { - get(); - } catch(e) { - assert(e.toString() === "TypeError: Proxy's 'getPrototypeOf' trap for a non-extensible target should return the same value as the target's prototype"); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - Reflect.preventExtensions(target); - let called = false; - let handler = { - getPrototypeOf: function() { - called = true; - return Object.prototype; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let result = get(); - assert(result === Object.prototype); - assert(called); - called = false; - } - } -} - -{ - let target = {}; - let theProto = {x: 45}; - target.__proto__ = theProto; - Reflect.preventExtensions(target); - let called = false; - let handler = { - getPrototypeOf: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.getPrototypeOf(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - let result = get(); - assert(result === theProto); - assert(called); - called = false; - } - } -} - -{ - let target = {}; - let handler = { - getPrototypeOf: null - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let proto = Object.prototype; - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - assert(get() === proto); - } - } -} - -{ - let target = {}; - let proto = {}; - let called = false; - let handler = { - getPrototypeOf: function(theTarget) { - assert(theTarget === target); - called = true; - return proto; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - assert(get() === proto); - assert(called); - called = false; - } - } -} - -{ - let target = {}; - let proto = null; - let called = false; - let handler = { - getPrototypeOf: function(theTarget) { - assert(theTarget === target); - called = true; - return proto; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - assert(get() === proto); - assert(called); - called = false; - } - } -} - -{ - let target = {}; - let proto = null; - let called = false; - let handler = { - getPrototypeOf: function(theTarget) { - assert(theTarget === target); - called = true; - return proto; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let getters = [ - () => Reflect.getPrototypeOf(proxy), - () => Object.getPrototypeOf(proxy), - ]; - for (let get of getters) { - assert(get() === proto); - assert(called); - called = false; - } - } -} - -{ - let target = {}; - let proto = null; - let called = false; - let handler = { - getPrototypeOf: function(theTarget) { - assert(theTarget === target); - called = true; - return proto; - }, - has: function() { - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(called); - called = false; - } -} - -{ - let target = {}; - let proto = null; - let called = false; - let handler = { - getPrototypeOf: function(theTarget) { - called = true; - return proto; - }, - has: function() { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(!called); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-get-set-correct-receiver.js b/implementation-contributed/javascriptcore/stress/proxy-get-set-correct-receiver.js deleted file mode 100644 index e7fc18c34774797a752d83b224f8133553f81548..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-get-set-correct-receiver.js +++ /dev/null @@ -1,117 +0,0 @@ -"use strict"; - -function assert(b) { - if (!b) - throw new Error("Bad") -} - -function test(f, count = 1000) { - noInline(f); - for (let i = 0; i < count; ++i) - f(); -} - -test(function() { - let called = false; - let target = { - set prop(x) - { - assert(x === 20); - called = true; - assert(this === proxy) - } - } - - let proxy = new Proxy(target, {}) - proxy.prop = 20; - assert(called); -}); - -test(function() { - let called = false; - let target = { - get prop() - { - called = true; - assert(this === proxy) - } - } - - let proxy = new Proxy(target, {}) - proxy.prop - assert(called); -}); - -test(function() { - let target = { - get prop() - { - called = true; - assert(this === proxy) - } - } - let p1 = new Proxy(target, {}); - - let called = false; - let proxy = new Proxy(p1, {}); - proxy.prop - assert(called); -}); - -test(function() { - let t = {}; - let p1 = new Proxy(t, { - get(target, prop, receiver) { - called = true; - assert(target === t); - assert(receiver === proxy); - assert(prop === "prop"); - } - }); - - let called = false; - let proxy = new Proxy(p1, {}); - proxy.prop - assert(called); -}); - -test(function() { - let t = {}; - let callCount = 0; - let handler = { - get(target, prop, receiver) { - if (callCount === 200) - assert(target === t); - ++callCount; - assert(receiver === proxy); - assert(prop === "prop"); - return Reflect.get(target, prop, receiver); - } - }; - let proxy = new Proxy(t, handler); - for (let i = 0; i < 200; ++i) - proxy = new Proxy(proxy, handler); - proxy.prop - assert(callCount === 201); -}, 10); - -test(function() { - let t = {}; - let callCount = 0; - let handler = { - set(target, prop, value, receiver) { - if (callCount === 200) - assert(target === t); - ++callCount; - assert(receiver === proxy); - assert(prop === "prop"); - assert(value === 20); - return Reflect.set(target, prop, value, receiver); - } - }; - let proxy = new Proxy(t, handler); - for (let i = 0; i < 200; ++i) - proxy = new Proxy(proxy, handler); - proxy.prop = 20; - assert(callCount === 201); -}, 10); diff --git a/implementation-contributed/javascriptcore/stress/proxy-get-with-primitive-receiver.js b/implementation-contributed/javascriptcore/stress/proxy-get-with-primitive-receiver.js deleted file mode 100644 index 2b3d3bdec8544226eb455d24528d87ec0c90d5fd..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-get-with-primitive-receiver.js +++ /dev/null @@ -1,22 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - - -shouldBe(Reflect.get(new Proxy({}, {}), 0, 1), undefined); -shouldBe(Reflect.get(new Proxy({}, {}), 'hello', 1), undefined); - -{ - let target = {}; - let handlers = { - get: function(theTarget, propName, receiver) { - // Receiver can be a primitive value. - shouldBe(receiver, 1); - return 42; - } - }; - let proxy = new Proxy(target, handlers); - shouldBe(Reflect.get(proxy, 0, 1), 42); - shouldBe(Reflect.get(proxy, 'hello', 1), 42); -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-has-property.js b/implementation-contributed/javascriptcore/stress/proxy-has-property.js deleted file mode 100644 index eb941a8395561e522271bfaf8c2fa0542e540389..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-has-property.js +++ /dev/null @@ -1,465 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let error = null; - let target = { - x: 40 - }; - - let handler = { - get has() { - error = new Error(); - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - } -} - -{ - let error = null; - let target = { - x: 40 - }; - - let handler = { - has: function() { - error = new Error(); - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - } -} - -{ - let target = { - x: 40 - }; - - let called = false; - let handler = { - has: function(theTarget, propName) { - called = true; - return propName in theTarget; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(result); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: true, value: 45}); - - let called = false; - let handler = { - has: function(theTarget, propName) { - called = true; - return propName in theTarget; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(result); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: true, value: 45}); - let handler = { }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - if (i % 2) - handler.has = null; - else - handler.has = undefined; - let result = "x" in proxy; - assert(result); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: true, value: 45}); - let handler = { - has: function() { - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(!result); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let handler = { - has: function() { - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - assert(e.toString() === "TypeError: Proxy 'has' must return 'true' for non-configurable properties"); - threw = true; - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let handler = { - has: function() { - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - assert(e.toString() === "TypeError: Proxy 'has' must return 'true' for non-configurable properties"); - threw = true; - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let handler = { - has: function() { - return null; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - assert(e.toString() === "TypeError: Proxy 'has' must return 'true' for non-configurable properties"); - threw = true; - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let handler = { - has: function() { - return undefined; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - assert(e.toString() === "TypeError: Proxy 'has' must return 'true' for non-configurable properties"); - threw = true; - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let handler = { - has: function() { - return 0; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "x" in proxy; - } catch(e) { - assert(e.toString() === "TypeError: Proxy 'has' must return 'true' for non-configurable properties"); - threw = true; - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let called = false; - let handler = { - has: function() { - called = true; - return 1; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(result); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { enumerable: true, configurable: false, value: 45}); - let called = false; - let handler = { - has: function() { - called = true; - return "hello"; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(result); - assert(called); - called = false; - } -} - -{ - let target = { }; - let called = false; - let handler = { - has: function() { - called = true; - return true - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(result); - assert(called); - called = false; - } -} - -{ - let proto = {x: 20}; - let target = Object.create(proto); - assert(target.__proto__ === proto); - let called = false; - let handler = { - has: function(target, propName) { - called = true; - return propName in target; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = "x" in proxy; - assert(result); - assert(called); - called = false; - } -} - -{ - let target = {x: 20}; - let handler = { - has: function(theTarget, propName) { - assert(theTarget === target); - called = true; - return propName in theTarget; - } - }; - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy); - assert(Reflect.getPrototypeOf(obj) === proxy); - let called = false; - - for (let i = 0; i < 500; i++) { - let result = "x" in obj; - assert(result); - assert(called); - called = false; - } -} - -{ - let error = null; - let target = new Proxy({}, { - getOwnPropertyDescriptor: function() { - error = new Error(); - throw error; - } - }); - let handler = { - has: function(theTarget, propName) { - return false; - } - }; - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "foo" in proxy; - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let e1 = null; - let e2 = null; - let t1 = {}; - let called1 = false; - let h1 = { - has: function(theTarget, propName) { - called1 = true; - e1 = new Error; - throw e1; - return false; - } - }; - let p1 = new Proxy(t1, h1); - - let t2 = {}; - t2.__proto__ = p1; - let h2 = { - has: function(theTarget, propName) { - e2 = new Error; - throw e2; - return false; - } - }; - let p2 = new Proxy(t2, h2); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - 10 in p2; - } catch(e) { - assert(e === e2); - threw = true; - } - assert(threw); - assert(!called1); - } -} - -{ - let e1 = null; - let e2 = null; - let t1 = {}; - let called1 = false; - let h1 = { - has: function(theTarget, propName) { - called1 = true; - e1 = new Error; - throw e1; - return false; - } - }; - let p1 = new Proxy(t1, h1); - - let t2 = {}; - t2.__proto__ = p1; - let h2 = { - has: function(theTarget, propName) { - e2 = new Error; - throw e2; - return false; - } - }; - let p2 = new Proxy(t2, h2); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - "foo" in p2; - } catch(e) { - assert(e === e2); - threw = true; - } - assert(threw); - assert(!called1); - } -} - -{ - let called = false; - let handler = { - has: function(...args) { - called = true; - return Reflect.has(...args); - } - }; - let proxy = new Proxy({}, handler); - let foo = function() { - assert(!Reflect.has(proxy, "x")); - assert(called); - called = false; - } - noInline(foo) - for (let i = 0; i < 10000; i++) { - foo(); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-in-proto-chain.js b/implementation-contributed/javascriptcore/stress/proxy-in-proto-chain.js deleted file mode 100644 index 444da6a097837f28ae8a682d044dc2b8d50d355f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-in-proto-chain.js +++ /dev/null @@ -1,28 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -let theTarget = { - x: 30 -}; - -let handler = { - get: function(target, propName, proxyArg) { - assert(target === theTarget); - assert(proxyArg === obj); - if (propName === "y") - return 45; - assert(propName === "x"); - return target[propName]; - } -}; - -let proxy = new Proxy(theTarget, handler); - -let obj = Object.create(proxy); - -for (let i = 0; i < 1000; i++) { - assert(obj.x === 30); - assert(obj.y === 45); -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-instanceof.js b/implementation-contributed/javascriptcore/stress/proxy-instanceof.js deleted file mode 100644 index 14bc383c69688a6c0f20f796934298548870e671..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-instanceof.js +++ /dev/null @@ -1,39 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -function test(f) { - for (let i = 0; i < 1000; i++) - f(); -} - -let constructors = [Error, String, RegExp, function() {}, class C {}]; - -for (let constructor of constructors) { - test(function() { - let proxy = new Proxy(constructor, {}); - assert(new constructor instanceof proxy); - }); -} - -test(function() { - let called = false; - let proxy = new Proxy(function(){ called = true; }, {}); - assert(new proxy instanceof proxy); - assert(called); -}); - -test(function() { - let called = false; - let handler = { - get: function(target, prop) { - if (prop === "prototype") - return {}; - return target[prop]; - } - }; - let proxy = new Proxy(function(){ called = true; }, handler); - assert(!(new proxy instanceof proxy)); - assert(called); -}); diff --git a/implementation-contributed/javascriptcore/stress/proxy-is-array.js b/implementation-contributed/javascriptcore/stress/proxy-is-array.js deleted file mode 100644 index bcadcb76893206322ab92cd3279bbab098727cda..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-is-array.js +++ /dev/null @@ -1,61 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion.") -} - -function test(f) { - for (let i = 0; i < 500; i++) - f(); -} - -test(function() { - let proxy = new Proxy([], {}); - assert(Array.isArray(proxy)); -}); - -test(function() { - let {proxy, revoke} = Proxy.revocable([], {}); - assert(Array.isArray(proxy)); - - revoke(); - let threw = false; - try { - Array.isArray(proxy); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Array.isArray cannot be called on a Proxy that has been revoked"); - } - assert(threw); -}); - -test(function() { - let proxyChain = new Proxy([], {}); - for (let i = 0; i < 400; i++) - proxyChain = new Proxy(proxyChain, {}); - assert(Array.isArray(proxyChain)); -}); - -test(function() { - let proxyChain = new Proxy([], {}); - let revoke = null; - for (let i = 0; i < 400; i++) { - if (i !== 250) { - proxyChain = new Proxy(proxyChain, {}); - } else { - let result = Proxy.revocable(proxyChain, {}); - proxyChain = result.proxy; - revoke = result.revoke; - } - } - assert(Array.isArray(proxyChain)); - - revoke(); - let threw = false; - try { - Array.isArray(proxyChain); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Array.isArray cannot be called on a Proxy that has been revoked"); - } - assert(threw); -}); diff --git a/implementation-contributed/javascriptcore/stress/proxy-is-extensible.js b/implementation-contributed/javascriptcore/stress/proxy-is-extensible.js deleted file mode 100644 index 7a56d6fa922a6650a2768b72a61d914de205088e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-is-extensible.js +++ /dev/null @@ -1,340 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = {}; - let error = null; - let handler = { - get isExtensible() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let error = null; - let handler = { - isExtensible: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let error = null; - let target = new Proxy({}, { - isExtensible: function() { - error = new Error; - throw error; - } - }); - let handler = { - isExtensible: function(theTarget) { - return Reflect.isExtensible(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let handler = { - isExtensible: function(theTarget) { - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's 'isExtensible' trap returned false when the target is extensible. It should have returned true"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Reflect.preventExtensions(target); - let handler = { - isExtensible: function(theTarget) { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's 'isExtensible' trap returned true when the target is non-extensible. It should have returned false"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.freeze(target); - let handler = { - isExtensible: function(theTarget) { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's 'isExtensible' trap returned true when the target is non-extensible. It should have returned false"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.seal(target); - let handler = { - isExtensible: function(theTarget) { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's 'isExtensible' trap returned true when the target is non-extensible. It should have returned false"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - Object.preventExtensions(target); - let handler = { - isExtensible: function(theTarget) { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.isExtensible(proxy); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's 'isExtensible' trap returned true when the target is non-extensible. It should have returned false"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let called = false; - let handler = { - isExtensible: function(theTarget) { - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - let result = Reflect.isExtensible(proxy); - assert(result); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - Reflect.preventExtensions(target); - let handler = { - isExtensible: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.isExtensible(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - let result = Object.isExtensible(proxy); - assert(!result); - assert(called); - called = false; - - result = Object.isFrozen(proxy); - assert(result); - assert(called); - called = false; - - result = Object.isSealed(proxy); - assert(result); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - Object.freeze(target); - let handler = { - isExtensible: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.isExtensible(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - let result = Object.isExtensible(proxy); - assert(!result); - assert(called); - called = false; - - result = Object.isFrozen(proxy); - assert(result); - assert(called); - called = false; - - result = Object.isSealed(proxy); - assert(result); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - Object.seal(target); - let handler = { - isExtensible: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.isExtensible(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - let result = Object.isExtensible(proxy); - assert(!result); - assert(called); - called = false; - - result = Object.isFrozen(proxy); - assert(result); - assert(called); - called = false; - - result = Object.isSealed(proxy); - assert(result); - assert(called); - called = false; - } -} - -{ - let target = {}; - Object.defineProperty(target, "x", { - writable: true, - configurable: true, - value: 45, - enumerable: true - }); - let called = false; - Reflect.preventExtensions(target); - let handler = { - isExtensible: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.isExtensible(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - let result = Object.isExtensible(proxy); - assert(!result); - assert(called); - called = false; - - result = Object.isFrozen(proxy); - assert(!result); - assert(called); - called = false; - - result = Object.isSealed(proxy); - assert(!result); - assert(called); - called = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-json.js b/implementation-contributed/javascriptcore/stress/proxy-json.js deleted file mode 100644 index e22999cbe740aa5e047f47f42043652c61206cf6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-json.js +++ /dev/null @@ -1,161 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -function test(f) { - for (let i = 0; i < 500; i++) - f(); -} - -test(function() { - let proxy = new Proxy([], {}); - assert(JSON.stringify(proxy) === "[]"); -}); - -test(function() { - let target = ["foo"]; - let proxy = new Proxy(target, {}); - assert(JSON.stringify(proxy) === JSON.stringify(target)); -}); - -test(function() { - let target = { - foo: 25, - bar: false, - 0: 45 - }; - let proxy = new Proxy(target, {}); - assert(JSON.stringify(proxy) === JSON.stringify(target)); -}); - -test(function() { - let target = { - foo: ["baz", {foo: 45}], - bar: false, - 0: 45, - baz: "hello world", - jaz: 4553.434 - }; - let proxy = new Proxy(target, {}); - assert(JSON.stringify(proxy) === JSON.stringify(target)); -}); - -test(function() { - let target = { - foo: ["baz", {foo: 45}], - bar: false, - 0: 45, - baz: "hello world", - jaz: 4553.434 - }; - let proxy = new Proxy(target, {}); - for (let i = 0; i < 50; i++) - proxy = new Proxy(proxy, {}); - assert(JSON.stringify(proxy) === JSON.stringify(target)); -}); - -test(function() { - let target = [20, 30, "foo", {hello: "world"}]; - let proxy = new Proxy(target, {}); - for (let i = 0; i < 50; i++) - proxy = new Proxy(proxy, {}); - assert(JSON.stringify(proxy) === JSON.stringify(target)); -}); - -test(function() { - let target = { - foo: ["baz", {foo: 45}], - bar: false, - 0: 45, - baz: "hello world", - jaz: 4553.434 - }; - let {proxy, revoke} = Proxy.revocable(target, {}); - assert(JSON.stringify(proxy) === JSON.stringify(target)); - - revoke(); - JSON.stringify(target); // Things are ok. - let threw = false; - try { - JSON.stringify(proxy); // Things are not ok. - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy has already been revoked. No more operations are allowed to be performed on it"); - } - assert(threw); -}); - -test(function() { - let target = ["foo", "bar", 25, false]; - let proxy = new Proxy(target, {}); - let revoke; - for (let i = 0; i < 50; i++) { - if (i === 25) { - let result = Proxy.revocable(proxy, {}); - proxy = result.proxy; - revoke = result.revoke; - } else { - proxy = new Proxy(proxy, {}); - } - } - assert(JSON.stringify(proxy) === JSON.stringify(target)); - - revoke(); - JSON.stringify(target); // Things are ok. - let threw = false; - try { - JSON.stringify(proxy); // Things are not ok. - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy has already been revoked. No more operations are allowed to be performed on it"); - } - assert(threw); -}); - -test(function() { - let arr = ["foo", 25, "bar"]; - let handler = { - get: function(theTarget, propName) { - assert(propName === "toJSON"); - return function() { - return arr; - } - } - }; - let proxy = new Proxy({}, handler); - assert(JSON.stringify(proxy) === JSON.stringify(arr)); -}); - -test(function() { - let arr = ["foo", 25, "bar"]; - let handler = { - get: function(theTarget, propName) { - assert(propName === "toJSON"); - return function() { - return arr; - } - } - }; - let proxy = new Proxy({}, handler); - let o1 = {foo: arr}; - let o2 = {foo: proxy}; - assert(JSON.stringify(o1) === JSON.stringify(o2)); -}); - -test(function() { - let arr = ["foo", 25, "bar"]; - let proxy = new Proxy(function() { return arr; }, {}); - assert(JSON.stringify({toJSON: proxy}) === JSON.stringify(arr)); -}); - -test(function() { - let arr = ["foo", 25, "bar"]; - let proxy = new Proxy({}, {}); - let o = {foo: 20}; - Object.defineProperty(o, "toJSON", { - enumerable: false, - value: proxy - }); - assert(JSON.stringify(o) === JSON.stringify({foo: 20})); -}); diff --git a/implementation-contributed/javascriptcore/stress/proxy-of-a-proxy.js b/implementation-contributed/javascriptcore/stress/proxy-of-a-proxy.js deleted file mode 100644 index b279cd37467097d2203f4da96f4cb72c6d5c734c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-of-a-proxy.js +++ /dev/null @@ -1,34 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let ogTarget = {x: 20}; - let theTarget = new Proxy(ogTarget, { - get: function(target, propName, proxyArg) { - assert(target === ogTarget); - if (propName === "y") - return 45; - return target[propName]; - } - }); - let handler = { - get: function(target, propName, proxyArg) { - if (propName === "z") - return 60; - return target[propName]; - } - }; - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 500; i++) { - assert(proxy.x === 20); - assert(proxy["x"] === 20); - - assert(proxy.y === 45); - assert(proxy["y"] === 45); - - assert(proxy.z === 60); - assert(proxy["z"] === 60); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-own-keys.js b/implementation-contributed/javascriptcore/stress/proxy-own-keys.js deleted file mode 100644 index 189b20b36ef047d466edee765e215c98019eed4a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-own-keys.js +++ /dev/null @@ -1,664 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let error = null; - let target = { }; - let handler = { - ownKeys: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - } -} - -{ - let error = null; - let target = { }; - let handler = { - get ownKeys() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let handler = { - ownKeys: function(theTarget) { - called = true; - return ["1", 2, 3]; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy handler's 'ownKeys' method must return an array-like object containing only Strings and Symbols"); - } - assert(threw); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: false, - enumerable: true, - value: 400 - }); - let called = false; - let handler = { - ownKeys: function(theTarget) { - called = true; - return []; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy object's 'target' has the non-configurable property 'x' that was not in the result from the 'ownKeys' trap"); - } - assert(threw); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: true, - enumerable: true, - value: 400 - }); - Object.preventExtensions(target); - let called = false; - let handler = { - ownKeys: function(theTarget) { - called = true; - return []; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy object's non-extensible 'target' has configurable property 'x' that was not in the result from the 'ownKeys' trap"); - } - assert(threw); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: true, - enumerable: true, - value: 400 - }); - Object.preventExtensions(target); - let called = false; - let handler = { - ownKeys: function(theTarget) { - called = true; - return ["x", "y"]; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy handler's 'ownKeys' method returned a key that was not present in its non-extensible target"); - } - assert(threw); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called1 = false; - let called2 = false; - Object.defineProperty(target, 'a', { value: 42, configurable: false }); - let p1 = new Proxy(target, { - ownKeys() { - called1 = true; - return ['a', 'a']; - } - }); - let p2 = new Proxy(p1, { - ownKeys() { - called2 = true; - return ['a']; - } - }); - - for (let i = 0; i < 500; i++) { - // FIXME: we may update the spec to make this test not throw. - // see: https://github.com/tc39/ecma262/pull/594 - let threw = false; - try { - Reflect.ownKeys(p2); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's 'target' has the non-configurable property 'a' that was not in the result from the 'ownKeys' trap"); - threw = true; - } - assert(threw); - assert(called1); - assert(called2); - } -} - -{ - let target = {}; - let called1 = false; - let called2 = false; - Object.defineProperty(target, 'a', { value: 42, configurable: true }); - Object.preventExtensions(target); - let p1 = new Proxy(target, { - ownKeys() { - called1 = true; - return ['a', 'a']; - } - }); - let p2 = new Proxy(p1, { - ownKeys() { - called2 = true; - return ['a']; - } - }); - - for (let i = 0; i < 500; i++) { - // FIXME: we may update the spec to make this test not throw. - // see: https://github.com/tc39/ecma262/pull/594 - let threw = false; - try { - Reflect.ownKeys(p2); - } catch(e) { - assert(e.toString() === "TypeError: Proxy object's non-extensible 'target' has configurable property 'a' that was not in the result from the 'ownKeys' trap"); - threw = true; - } - assert(threw); - assert(called1); - assert(called2); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: true, - enumerable: true, - value: 400 - }); - Object.preventExtensions(target); - let called = false; - let handler = { - ownKeys: function(theTarget) { - called = true; - return ["x", "x"]; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - Object.keys(proxy); - assert(called); - called = false; - } -} - -{ - let target = { }; - let handler = { - ownKeys: 45 - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: 'ownKeys' property of a Proxy's handler should be callable"); - } - assert(threw); - } -} - -function shallowEq(a, b) { - if (a.length !== b.length) - return false; - for (let i = 0; i < a.length; i++) { - if (a[i] !== b[i]) - return false; - } - - return true; -} - -{ - let target = { - x: 40 - }; - let called = false; - let arr = ["a", "b", "c"]; - let handler = { - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Object.keys(proxy); - assert(result !== arr); - assert(shallowEq(result, [])); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let arr = ["a", "b", "c"]; - let handler = { - getOwnPropertyDescriptor: function(theTarget, propertyName) { - if (arr.indexOf(propertyName) >= 0) { - return { - enumerable: true, - configurable: true - }; - } - return Reflect.getOwnPropertyDescriptor(theTarget, propertyName); - }, - - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Object.keys(proxy); - assert(result !== arr); - assert(shallowEq(result, arr)); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let arr = ["a", "b", "c"]; - let handler = { - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.ownKeys(proxy); - assert(result !== arr); - assert(shallowEq(result, arr)); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Object.getOwnPropertySymbols(proxy); - assert(shallowEq(result, [s1, s2])); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - getOwnPropertyDescriptor(theTarget, propertyName) { - if (arr.indexOf(propertyName) >= 0) { - return { - enumerable: true, - configurable: true - } - } - return Reflect.getOwnPropertyDescriptor(theTarget, propertyName); - }, - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Object.keys(proxy); - assert(shallowEq(result, ["a", "b", "c"])); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.ownKeys(proxy); - assert(shallowEq(result, ["a", "b", "c", s1, s2])); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - getOwnPropertyDescriptor: () => { - return { enumerable: true, configurable: true } - }, - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let set = new Set; - for (let p in proxy) - set.add(p); - assert(set.size === 3); - assert(set.has("a")); - assert(set.has("b")); - assert(set.has("c")); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - getOwnPropertyDescriptor: () => { - return { enumerable: true, configurable: true } - }, - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let set = new Set; - for (let p in proxy) - set.add(p); - if (i === 40) { // Make sure we don't cache the result. - arr.push("d"); - } - assert(set.size === i > 40 ? 4 : 3); - assert(set.has("a")); - assert(set.has("b")); - assert(set.has("c")); - if (i > 40) - assert(set.has("d")); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - getOwnPropertyDescriptor: () => { - return { enumerable: true, configurable: true } - }, - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - let proxyish = Object.create(proxy, { - d: { enumerable: true, configurable: true } - }); - for (let i = 0; i < 500; i++) { - let set = new Set; - for (let p in proxyish) - set.add(p); - assert(set.size === 4); - assert(set.has("a")); - assert(set.has("b")); - assert(set.has("c")); - assert(set.has("d")); - assert(called); - called = false; - } -} - -{ - let target = { - x: 40 - }; - let called = false; - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - getOwnPropertyDescriptor: () => { - return { enumerable: true, configurable: true } - }, - ownKeys: function(theTarget) { - called = true; - return arr; - } - }; - - let proxy = new Proxy(target, handler); - let proxyish = Object.create(proxy, { - d: { enumerable: true, configurable: true } - }); - for (let i = 0; i < 500; i++) { - let set = new Set; - for (let p in proxyish) - set.add(p); - assert(set.size === 4); - assert(set.has("a")); - assert(set.has("b")); - assert(set.has("c")); - assert(set.has("d")); - assert(called); - called = false; - } -} - -{ - let called = false; - let target = {x: 20, y: 40}; - let handler = { - ownKeys: null - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let keys = Object.keys(proxy); - assert(keys.indexOf("x") !== -1); - assert(keys.indexOf("y") !== -1); - } -} - -{ - let called = false; - let target = new Proxy({}, { - ownKeys: function(theTarget) { - called = true; - return Reflect.ownKeys(theTarget); - } - }); - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - ownKeys: function(theTarget) { - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let keys = Object.keys(proxy); - assert(called); - called = false; - } -} - -{ - let error = null; - let target = new Proxy({}, { - ownKeys: function(theTarget) { - error = new Error; - throw error; - } - }); - let s1 = Symbol(); - let s2 = Symbol(); - let arr = ["a", "b", s1, "c", s2]; - let handler = { - ownKeys: function(theTarget) { - return arr; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Object.keys(proxy); - } catch(e) { - threw = true; - assert(e === error); - } - assert(threw); - error = null; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-prevent-extensions.js b/implementation-contributed/javascriptcore/stress/proxy-prevent-extensions.js deleted file mode 100644 index 0908e308237fa1d076ff74633a7999611b399268..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-prevent-extensions.js +++ /dev/null @@ -1,265 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = {}; - let error = null; - let handler = { - get preventExtensions() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.preventExtensions(proxy); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let error = null; - let handler = { - preventExtensions: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.preventExtensions(proxy); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let error = null; - let target = new Proxy({}, { - preventExtensions: function() { - error = new Error; - throw error; - } - }); - let handler = { - preventExtensions: function(theTarget) { - return Reflect.preventExtensions(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.preventExtensions(proxy); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let handler = { - preventExtensions: 45 - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.preventExtensions(proxy); - } catch(e) { - assert(e.toString() === "TypeError: 'preventExtensions' property of a Proxy's handler should be callable"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let handler = { - preventExtensions: null - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.preventExtensions(proxy); - assert(result); - assert(!Reflect.isExtensible(target)); - } -} - -{ - let target = {}; - let handler = { - preventExtensions: undefined - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.preventExtensions(proxy); - assert(result); - assert(!Reflect.isExtensible(target)); - } -} - -{ - let target = {}; - let handler = { - preventExtensions: function(theTarget) { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let threw = false; - try { - Reflect.preventExtensions(proxy); - } catch(e) { - assert(e.toString() === "TypeError: Proxy's 'preventExtensions' trap returned true even though its target is extensible. It should have returned false"); - threw = true; - } - assert(threw); - } -} - -{ - let target = {}; - let called = false; - let handler = { - preventExtensions: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.preventExtensions(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.preventExtensions(proxy); - assert(result); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - preventExtensions: function(theTarget) { - assert(theTarget === target); - called = true; - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.preventExtensions(proxy); - assert(!result); - assert(called); - called = false; - } -} - -{ - let target = {}; - let called = false; - let handler = { - preventExtensions: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.preventExtensions(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.preventExtensions(proxy); - assert(result); - assert(called); - called = false; - - assert(!Reflect.isExtensible(proxy)); - assert(!Reflect.isExtensible(target)); - assert(!Object.isExtensible(target)); - assert(Object.isFrozen(target)); - assert(Object.isSealed(target)); - } -} - -{ - for (let i = 0; i < 500; i++) { - let target = {}; - let called = false; - let handler = { - preventExtensions: function(theTarget) { - assert(theTarget === target); - called = true; - return Reflect.preventExtensions(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - - let result = Reflect.preventExtensions(proxy); - assert(result); - assert(called); - called = false; - - assert(!Reflect.isExtensible(proxy)); - assert(!Reflect.isExtensible(target)); - assert(!Object.isExtensible(target)); - assert(Object.isFrozen(target)); - assert(Object.isSealed(target)); - } -} - -{ - for (let i = 0; i < 500; i++) { - let target = {}; - let called = false; - let handler = { - preventExtensions: function(theTarget) { - assert(theTarget === target); - called = true; - return Object.preventExtensions(theTarget); - } - }; - - let proxy = new Proxy(target, handler); - - let result = Reflect.preventExtensions(proxy); - assert(result); - assert(called); - called = false; - - assert(!Reflect.isExtensible(proxy)); - assert(!Reflect.isExtensible(target)); - assert(!Object.isExtensible(target)); - assert(Object.isFrozen(target)); - assert(Object.isSealed(target)); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-property-descriptor.js b/implementation-contributed/javascriptcore/stress/proxy-property-descriptor.js deleted file mode 100644 index cb94a5bde93e07c9b384fc7e98d2ea4945cfc1d2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-property-descriptor.js +++ /dev/null @@ -1,83 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -let theTarget = {}; -Object.defineProperty(theTarget, "x", { - writable: false, - configurable: false, - value: 45 -}); - -Object.defineProperty(theTarget, "y", { - writable: false, - configurable: false, - value: 45 -}); - -Object.defineProperty(theTarget, "getter", { - configurable: false, - set: function(x) { } -}); - -Object.defineProperty(theTarget, "badGetter", { - configurable: false, - set: function(x) { } -}); - -let handler = { - get: function(target, propName, proxyArg) { - assert(target === theTarget); - assert(proxyArg === proxy); - if (propName === "x") - return 45; - else if (propName === "y") - return 30; - else if (propName === "getter") - return undefined; - else { - assert(propName === "badGetter"); - return 25; - } - } -}; - -let proxy = new Proxy(theTarget, handler); - -for (let i = 0; i < 1000; i++) { - assert(proxy.x === 45); - assert(proxy["x"] === 45); -} - -for (let i = 0; i < 1000; i++) { - try { - if (i % 2) - proxy.y; - else - proxy["y"]; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy handler's 'get' result of a non-configurable and non-writable property should be the same value as the target's property"); - } - assert(threw === true); -} - -for (let i = 0; i < 1000; i++) { - assert(proxy.getter === undefined); - assert(proxy["getter"] === undefined); -} - -for (let i = 0; i < 1000; i++) { - try { - if (i % 2) - proxy.badGetter; - else - proxy["badGetter"]; - - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy handler's 'get' result of a non-configurable accessor property without a getter should be undefined"); - } - assert(threw === true); -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-returning-incomplete-property-descriptor.js b/implementation-contributed/javascriptcore/stress/proxy-returning-incomplete-property-descriptor.js deleted file mode 100644 index a37341ebfae9cb1fc122a936b6c51c2f3262ffd0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-returning-incomplete-property-descriptor.js +++ /dev/null @@ -1,36 +0,0 @@ -// This test should not crash. -function truthiness(x) { - return !!x; -} - -function compare(a, b) { - for (var i in a.desc) { - let propA = a.desc[i]; - let propB = b.desc[i]; - if (propA == propB) - continue; - if (typeof propA == "boolean" && truthiness(propA) == truthiness(propB)) - continue; - throw Error(a.name + "[" + i + "] : " + propA + " != " + b.name + "[" + i + "] : " + propB); - } -} - -function shouldBe(actualDesc, expectedDesc) { - compare({ name: "actual", desc: actualDesc }, { name: "expected", desc: expectedDesc }); - compare({ name: "expected", desc: expectedDesc }, { name: "actual", desc: actualDesc }); -} - -function test(expectedDesc) { - var desc = Object.getOwnPropertyDescriptor(new Proxy({a:0}, { - getOwnPropertyDescriptor(t,pk) { - return expectedDesc - } - }), ""); - shouldBe(desc, expectedDesc); -} - -test({ configurable:true }); -test({ writable:true, configurable:true }); -test({ writable:true, enumerable:true, configurable:true }); -test({ enumerable:true, configurable:true, get: function() {} }); -test({ enumerable:true, configurable:true, set: function() {} }); diff --git a/implementation-contributed/javascriptcore/stress/proxy-revoke.js b/implementation-contributed/javascriptcore/stress/proxy-revoke.js deleted file mode 100644 index 5dc1a0e8df44e9dbeecc2e01babe8407e9556127..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-revoke.js +++ /dev/null @@ -1,193 +0,0 @@ -//@ defaultNoNoLLIntRun if $architecture == "arm64" or $architecture == "arm" - -function assert(b) { - if (!b) - throw new Error("bad assertion"); -} - -{ - assert(Proxy.revocable.length === 2); - assert(Proxy.revocable.name === "revocable"); - - { - let threw = false; - try { - new Proxy.revocable; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy.revocable cannot be constructed. It can only be called"); - } - assert(threw); - } - - { - let threw = false; - try { - Proxy.revocable(); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy.revocable needs to be called with two arguments: the target and the handler"); - } - assert(threw); - } - - { - let threw = false; - try { - Proxy.revocable({}); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy.revocable needs to be called with two arguments: the target and the handler"); - } - assert(threw); - } - - { - let threw = false; - try { - Proxy.revocable({}, null); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: A Proxy's 'handler' should be an Object"); - } - assert(threw); - } - - { - let threw = false; - try { - Proxy.revocable(null, {}); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: A Proxy's 'target' should be an Object"); - } - assert(threw); - } - - { - let threw = false; - try { - Proxy.revocable({}, {}, {}); // It's okay to call with > 2 arguments. - } catch(e) { - threw = true; - } - assert(!threw); - } - - for (let i = 0; i < 500; i++) { - let threw = false; - try { - let {revoke} = Proxy.revocable({}, {}); // It's okay to call with > 2 arguments. - new revoke; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: function is not a constructor (evaluating 'new revoke')"); - } - assert(threw); - } - - for (let i = 0; i < 500; i++) { - function foo() { - let threw = false; - let {proxy, revoke} = Proxy.revocable({}, {}); - revoke(); - try { - new Proxy(proxy, {}); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: If a Proxy's handler is another Proxy object, the other Proxy should not have been revoked"); - } - assert(threw); - } - foo(); - } -} - -function callAllHandlers(proxy) { - Reflect.getPrototypeOf(proxy); - Reflect.setPrototypeOf(proxy, null); - Reflect.isExtensible(proxy); - Reflect.preventExtensions(proxy); - Reflect.getOwnPropertyDescriptor(proxy, "x") - Reflect.has(proxy, "x") - Reflect.get(proxy, "x") - proxy["x"] = 20; // Reflect.set - Reflect.deleteProperty(proxy, "x"); - Reflect.defineProperty(proxy, "x", {value: 40, enumerable: true, configurable: true}); - Reflect.ownKeys(proxy); - Reflect.apply(proxy, this, []); - Reflect.construct(proxy, []); -} - -function shouldThrowNullHandler(f) { - let threw = false; - try { - f(); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy has already been revoked. No more operations are allowed to be performed on it"); - } - assert(threw); -} - -function allHandlersShouldThrow(proxy) { - shouldThrowNullHandler(() => Reflect.getPrototypeOf(proxy)); - shouldThrowNullHandler(() => Reflect.setPrototypeOf(proxy, null)); - shouldThrowNullHandler(() => Reflect.isExtensible(proxy)); - shouldThrowNullHandler(() => Reflect.preventExtensions(proxy)); - shouldThrowNullHandler(() => Reflect.getOwnPropertyDescriptor(proxy, "x")); - shouldThrowNullHandler(() => Reflect.has(proxy, "x")); - shouldThrowNullHandler(() => Reflect.get(proxy, "x")); - shouldThrowNullHandler(() => proxy["x"] = 20); // Reflect.set - shouldThrowNullHandler(() => Reflect.deleteProperty(proxy, "x")); - shouldThrowNullHandler(() => Reflect.defineProperty(proxy, "x", {value: 40, enumerable: true, configurable: true})); - shouldThrowNullHandler(() => Reflect.ownKeys(proxy)); - shouldThrowNullHandler(() => Reflect.apply(proxy, this, [])); - shouldThrowNullHandler(() => Reflect.construct(proxy, [])); -} - -const traps = [ - "getPrototypeOf", - "setPrototypeOf", - "isExtensible", - "preventExtensions", - "getOwnPropertyDescriptor", - "has", - "get", - "set", - "deleteProperty", - "defineProperty", - "ownKeys", - "apply", - "construct" -]; - -for (let i = 0; i < 500; i++) { - let handler = {}; - let count = 0; - let trapsCalled = new Set; - for (let trap of traps) { - let func; - if (trap !== "set") { - func = `(function ${trap}(...args) { count++; trapsCalled.add(${"'" + trap + "'"}); return Reflect.${trap}(...args); })`; - } else { - func = `(function ${trap}(proxy, prop, v) { trapsCalled.add(${"'" + trap + "'"}); count++; proxy[prop] = v; })`; - } - handler[trap] = eval(func); - } - - - let {proxy, revoke} = Proxy.revocable(function(){}, handler); // To make callable and constructible true. - callAllHandlers(proxy); - assert(count >= traps.length); - for (let trap of traps) { - let result = trapsCalled.has(trap); - assert(result); - } - - revoke(); - allHandlersShouldThrow(proxy); - - for (let i = 0; i < 50; i++) - revoke(); // Repeatedly calling revoke is OK. -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-set-prototype-of.js b/implementation-contributed/javascriptcore/stress/proxy-set-prototype-of.js deleted file mode 100644 index 89bf64cde93d099af8c3ae01229c5e0d1b58c073..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-set-prototype-of.js +++ /dev/null @@ -1,371 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion!"); -} - -{ - let target = {}; - let error = null; - let handler = { - get setPrototypeOf() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let setters = [ - () => Reflect.setPrototypeOf(proxy, {}), - () => Object.setPrototypeOf(proxy, {}), - ]; - for (let set of setters) { - let threw = false; - try { - set(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - let error = null; - let handler = { - setPrototypeOf: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let setters = [ - () => Reflect.setPrototypeOf(proxy, {}), - () => Object.setPrototypeOf(proxy, {}), - ]; - for (let set of setters) { - let threw = false; - try { - set(); - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - let error = null; - let handler = { - setPrototypeOf: 25 - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let setters = [ - () => Reflect.setPrototypeOf(proxy, {}), - () => Object.setPrototypeOf(proxy, {}), - ]; - for (let set of setters) { - let threw = false; - try { - set(); - } catch(e) { - assert(e.toString() === "TypeError: 'setPrototypeOf' property of a Proxy's handler should be callable"); - threw = true; - } - assert(threw); - } - } -} - -{ - let target = {}; - target.__proto__ = null; - let handler = { - setPrototypeOf: function(theTarget, value) { - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let setters = [ - () => Reflect.setPrototypeOf(proxy, {}), - () => Object.setPrototypeOf(proxy, {}), - ]; - for (let set of setters) { - let result = set(); - assert(result); - assert(Reflect.getPrototypeOf(target) === null); - assert(Reflect.getPrototypeOf(proxy) === null); - assert(proxy.__proto__ === undefined); - } - } -} - -{ - let target = {}; - target.__proto__ = null; - let handler = { - setPrototypeOf: function(theTarget, value) { - assert(theTarget === target); - return Reflect.setPrototypeOf(theTarget, value); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let obj = {}; - let setters = [ - () => Reflect.setPrototypeOf(proxy, obj), - () => Object.setPrototypeOf(proxy, obj), - ]; - for (let set of setters) { - let result = set(); - assert(result); - assert(Reflect.getPrototypeOf(target) === obj); - assert(Reflect.getPrototypeOf(proxy) === obj); - assert(proxy.__proto__ === obj); - } - } -} - -{ - let target = {}; - target.__proto__ = null; - Reflect.preventExtensions(target); - let called = false; - let handler = { - setPrototypeOf: function(theTarget, value) { - called = true; - assert(theTarget === target); - assert(value !== null); - Reflect.setPrototypeOf(theTarget, value); - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let obj = {}; - let setters = [ - () => Reflect.setPrototypeOf(proxy, obj), - () => Object.setPrototypeOf(proxy, obj), - ]; - for (let set of setters) { - let threw = false; - try { - set(); - } catch(e) { - threw = true; - assert(called); - called = false; - assert(e.toString() === "TypeError: Proxy 'setPrototypeOf' trap returned true when its target is non-extensible and the new prototype value is not the same as the current prototype value. It should have returned false"); - } - - assert(threw); - assert(Reflect.getPrototypeOf(target) === null); - assert(Reflect.getPrototypeOf(proxy) === null); - assert(proxy.__proto__ === undefined); - } - } -} - -{ - let target = {}; - target.__proto__ = null; - Reflect.preventExtensions(target); - let called = false; - let handler = { - setPrototypeOf: function(theTarget, value) { - called = true; - assert(theTarget === target); - assert(value === null); - return Reflect.setPrototypeOf(theTarget, value); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let proto = null; - let setters = [ - [() => Reflect.setPrototypeOf(proxy, null), true], - [() => Object.setPrototypeOf(proxy, null), proxy], - ]; - for (let [set, expectedResult] of setters) { - let result = set(); - assert(result === expectedResult); - assert(called); - called = false; - assert(Reflect.getPrototypeOf(target) === null); - assert(Reflect.getPrototypeOf(proxy) === null); - assert(proxy.__proto__ === undefined); - } - } -} - -{ - let target = {}; - let obj = {}; - target.__proto__ = obj; - Reflect.preventExtensions(target); - let called = false; - let handler = { - setPrototypeOf: function(theTarget, value) { - called = true; - assert(theTarget === target); - assert(value === obj); - return Reflect.setPrototypeOf(theTarget, value); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let proto = null; - let setters = [ - [() => Reflect.setPrototypeOf(proxy, obj), true], - [() => Object.setPrototypeOf(proxy, obj), proxy], - ]; - for (let [set, expectedResult] of setters) { - let result = set(); - assert(result === expectedResult); - assert(called); - called = false; - assert(Reflect.getPrototypeOf(target) === obj); - assert(Reflect.getPrototypeOf(proxy) === obj); - assert(proxy.__proto__ === obj); - } - } -} - -{ - let target = {}; - target.__proto__ = null; - Reflect.preventExtensions(target); - let handler = { - setPrototypeOf: function(theTarget, value) { - return Reflect.setPrototypeOf(theTarget, value); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let obj = {}; - let threw = false; - try { - Object.setPrototypeOf(proxy, obj); - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy 'setPrototypeOf' returned false indicating it could not set the prototype value. The operation was expected to succeed"); - } - - assert(threw); - assert(Reflect.getPrototypeOf(target) === null); - assert(Reflect.getPrototypeOf(proxy) === null); - assert(proxy.__proto__ === undefined); - } -} - -{ - let target = {}; - target.__proto__ = null; - Reflect.preventExtensions(target); - - let called = false; - let handler = { - setPrototypeOf: function(theTarget, value) { - called = true; - return Reflect.setPrototypeOf(theTarget, value); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.setPrototypeOf(proxy, {}); - assert(!result); - assert(Reflect.getPrototypeOf(target) === null); - - assert(called); - called = false; - assert(Reflect.getPrototypeOf(proxy) === null); - assert(proxy.__proto__ === undefined); - } -} - -{ - let target = {}; - target.__proto__ = null; - Reflect.preventExtensions(target); - - let called = false; - let handler = { - setPrototypeOf: function(theTarget, value) { - called = true; - return Reflect.setPrototypeOf(theTarget, value); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.setPrototypeOf(proxy, null); - assert(result); - assert(Reflect.getPrototypeOf(target) === null); - assert(called); - called = false; - - assert(Reflect.getPrototypeOf(proxy) === null); - assert(proxy.__proto__ === undefined); - } -} - -{ - let target = {}; - let handler = { - setPrototypeOf: null - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let obj = {}; - let result = Reflect.setPrototypeOf(proxy, obj); - assert(result); - assert(Reflect.getPrototypeOf(target) === obj); - } -} - -{ - let target = {}; - let handler = { - setPrototypeOf: undefined - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let obj = {}; - let result = Reflect.setPrototypeOf(proxy, obj); - assert(result); - assert(Reflect.getPrototypeOf(target) === obj); - } -} - -{ - let target = {}; - let handler = { }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let obj = {}; - let result = Reflect.setPrototypeOf(proxy, obj); - assert(result); - assert(Reflect.getPrototypeOf(target) === obj); - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-set.js b/implementation-contributed/javascriptcore/stress/proxy-set.js deleted file mode 100644 index 2ebb2c1bde359053677490e562fecdf8177aa429..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-set.js +++ /dev/null @@ -1,656 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -{ - let target = { - x: 30 - }; - - let called = false; - let handler = { - set: 45 - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - let threw = false; - try { - proxy.x = 40; - } catch(e) { - assert(e.toString() === "TypeError: 'set' property of a Proxy's handler should be callable"); - threw = true; - } - assert(threw); - } -} - -{ - let target = { - x: 30 - }; - - let error = null; - let handler = { - get set() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - let threw = false; - try { - proxy.x = 40; - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - error = null; - } -} - -{ - let target = { - x: 30 - }; - - let error = null; - let handler = { - set: function() { - error = new Error; - throw error; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - let threw = false; - try { - proxy.x = 40; - } catch(e) { - assert(e === error); - threw = true; - } - assert(threw); - error = null; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: false, - writable: false, - value: 500 - }); - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === target); - called = true; - theTarget[propName] = value; - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy.x = 40; - assert(called); - assert(proxy.x === 500); - assert(target.x === 500); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: false, - writable: false, - value: 500 - }); - - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === target); - theTarget[propName] = value; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - let threw = false; - try { - proxy.x = 40; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy handler's 'set' on a non-configurable and non-writable property on 'target' should either return false or be the same value already on the 'target'"); - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: false, - get: function() { - return 25; - } - }); - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === target); - called = true; - theTarget[propName] = value; - return false; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy.x = 40; - assert(proxy.x === 25); - assert(called); - called = false; - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: false, - get: function() { - return 25; - } - }); - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === target); - called = true; - theTarget[propName] = value; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - let threw = false; - try { - proxy.x = 40; - } catch(e) { - threw = true; - assert(e.toString() === "TypeError: Proxy handler's 'set' method on a non-configurable accessor property without a setter should return false"); - } - assert(threw); - } -} - -{ - let target = { }; - Object.defineProperty(target, "x", { - configurable: false, - writable: true, - value: 50 - }); - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === target); - called = true; - theTarget[propName] = value; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy.x = i; - assert(called); - assert(proxy.x === i); - assert(target.x === i); - called = false; - } -} - -{ - let target = { - x: 30 - }; - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === proxy); - called = true; - theTarget[propName] = value; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy.x = i; - assert(called); - assert(proxy.x === i); - assert(target.x === i); - called = false; - - proxy["y"] = i; - assert(called); - assert(proxy.y === i); - assert(target.y === i); - called = false; - } -} - -{ - let target = { - x: 30 - }; - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === proxy); - called = true; - theTarget[propName] = value; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy.x = i; - assert(called); - assert(proxy.x === i); - assert(target.x === i); - called = false; - - proxy["y"] = i; - assert(called); - assert(proxy.y === i); - assert(target.y === i); - called = false; - } -} - -{ - let target = []; - - let called = false; - let handler = { }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy[i] = i; - assert(proxy[i] === i); - assert(target[i] === i); - } -} - -{ - let target = []; - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === proxy); - called = true; - theTarget[propName] = value; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy[i] = i; - assert(proxy[i] === i); - assert(target[i] === i); - assert(called); - called = false; - } -} - -{ - let target = []; - - let called = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === proxy); - called = true; - theTarget[propName] = value; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy[i] = i; - assert(proxy[i] === i); - assert(target[i] === i); - assert(called); - called = false; - } -} - -{ - let called = false; - let throughProxy = false; - let target = { - set x(v) { - assert(this === target); - this._x = v; - called = true; - }, - get x() { - if (throughProxy) - assert(this === proxy); - else - assert(this === target); - return this._x; - } - }; - - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === proxy); - theTarget[propName] = value; - return true; - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 1000; i++) { - proxy.x = i; - assert(called); - throughProxy = true; - assert(proxy.x === i); - throughProxy = false; - assert(target.x === i); - assert(proxy._x === i); - assert(target._x === i); - called = false; - } -} - -{ - let called = false; - let target = {}; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === obj); - theTarget[propName] = value; - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - own: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj.own = i; - assert(!called); - assert(obj.own === i); - - obj.notOwn = i; - assert(target.notOwn === i); - assert(proxy.notOwn === i); - assert(obj.notOwn === i); - assert(called); - called = false; - } -} - -{ - let target = {}; - let handler = { }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - own: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj.own = i; - assert(obj.own === i); - assert(proxy.own === undefined); - - obj.notOwn = i; - // The receiver is always |obj|. - // obj.[[Set]](P, V, obj) -> Proxy.[[Set]](P, V, obj) -> target.[[Set]](P, V, obj) - assert(target.notOwn === undefined); - assert(proxy.notOwn === undefined); - assert(obj.notOwn === i); - } -} - -{ - let called = false; - let target = {}; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === obj); - theTarget[propName] = value; - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - [0]: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj[0] = i; - assert(!called); - assert(obj[0] === i); - assert(proxy[0] === undefined); - - obj[1] = i; - assert(target[1] === i); - assert(proxy[1] === i); - assert(obj[1] === i); - assert(called); - called = false; - } -} - -{ - let target = {}; - let handler = { }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - [0]: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj[0] = i; - assert(obj[0] === i); - assert(proxy[0] === undefined); - - obj[1] = i; - // The receiver is always |obj|. - // obj.[[Set]](P, V, obj) -> Proxy.[[Set]](P, V, obj) -> target.[[Set]](P, V, obj) - assert(target[1] === undefined); - assert(proxy[1] === undefined); - assert(obj[1] === i); - } -} - -{ - let called = false; - let target = {}; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === obj); - theTarget[propName] = value; - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - [0]: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj[0] = i; - assert(!called); - assert(obj[0] === i); - assert(proxy[0] === undefined); - - obj[1] = i; - assert(target[1] === i); - assert(proxy[1] === i); - assert(obj[1] === i); - assert(called); - called = false; - } -} - -{ - let called = false; - let target = [25]; - let handler = { - set: function(theTarget, propName, value, receiver) { - assert(target === theTarget); - assert(receiver === obj); - theTarget[propName] = value; - called = true; - return true; - } - }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - [0]: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj[0] = i; - assert(!called); - assert(obj[0] === i); - assert(proxy[0] === 25); - - obj[1] = i; - assert(target[1] === i); - assert(proxy[1] === i); - assert(obj[1] === i); - assert(called); - called = false; - } -} - -{ - let called = false; - let ogTarget = {}; - let target = new Proxy(ogTarget, { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === ogTarget); - assert(receiver === obj); - called = true; - theTarget[propName] = value; - } - }); - let handler = { }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - own: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj.own = i; - assert(!called); - assert(obj.own === i); - assert(proxy.own === undefined); - - obj.notOwn = i; - assert(target.notOwn === i); - assert(proxy.notOwn === i); - assert(obj.notOwn === i); - assert(called); - called = false; - } -} - -{ - let called = false; - let ogTarget = [25]; - let target = new Proxy(ogTarget, { - set: function(theTarget, propName, value, receiver) { - assert(theTarget === ogTarget); - assert(receiver === obj); - called = true; - theTarget[propName] = value; - } - }); - let handler = { }; - - let proxy = new Proxy(target, handler); - let obj = Object.create(proxy, { - [0]: { - writable: true, - configurable: true, - value: null - } - }); - for (let i = 0; i < 1000; i++) { - obj[0] = i; - assert(!called); - assert(obj[0] === i); - assert(proxy[0] === 25); - - obj[1] = i; - assert(target[1] === i); - assert(proxy[1] === i); - assert(obj[1] === i); - assert(called); - called = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-stack-overflow-exceptions.js b/implementation-contributed/javascriptcore/stress/proxy-stack-overflow-exceptions.js deleted file mode 100644 index c28ab94f68ebb5f2e0d3c289eada2726ec0e09cc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-stack-overflow-exceptions.js +++ /dev/null @@ -1,161 +0,0 @@ -function shouldThrowStackOverflow(f) { - let threw = false; - const verbose = false; - try { - f(); - } catch(e) { - threw = e instanceof RangeError; - } - if (!threw) - throw new Error("No stack overflow error thrown."); - if (verbose) - print("passed test: " + f + "\n\n"); -} - -const emptyFunction = function() { }; -let seenStartObjects = new Map; -function makeLongProxyChain(startObject = emptyFunction) { - if (seenStartObjects.has(startObject)) - return seenStartObjects.get(startObject); - - let p = new Proxy(startObject, { }); - for (let i = 0; i < 500000; i++) - p = new Proxy(p, {}); - seenStartObjects.set(startObject, p); - return p; -} - -shouldThrowStackOverflow(function longProxyChain() { - let f = makeLongProxyChain(); - f.name; -}); - -shouldThrowStackOverflow(function effecivelyCyclicProxyProtoChain1() { - let t = {}; - let p = new Proxy(t, {}); - Object.setPrototypeOf(t, p); - t.propertyDoesNotExist; -}); - -shouldThrowStackOverflow(function effecivelyCyclicProxyProtoChain2() { - let t = {}; - let p = new Proxy(t, {}); - Object.setPrototypeOf(t, p); - for (var k in p) - break; -}); - -shouldThrowStackOverflow(function effecivelyCyclicProxyProtoChain3() { - let t = {}; - let p = new Proxy(t, {}); - Object.setPrototypeOf(t, p); - Object.prototype.toString.call(p); -}); - -shouldThrowStackOverflow(function longProxyChainBind() { - let p = makeLongProxyChain(); - Function.prototype.bind.call(p) -}); - -shouldThrowStackOverflow(function longProxyChainPropertyAccess() { - let p = makeLongProxyChain(); - p.nonExistentProperty; -}); - -shouldThrowStackOverflow(function longProxyChainReflectConstruct() { - let p = makeLongProxyChain(); - Reflect.construct(Array, [], p); -}); - -shouldThrowStackOverflow(function longProxyChainReflectSet() { - let p = makeLongProxyChain(); - Reflect.set([null], 0, 0, p); -}); - -shouldThrowStackOverflow(function longProxyChainReflectOwnKeys() { - let p = makeLongProxyChain(); - Reflect.ownKeys(p); -}); - -shouldThrowStackOverflow(function longProxyChainGetPrototypeOf() { - let p = makeLongProxyChain(); - Reflect.getPrototypeOf(p); -}); - -shouldThrowStackOverflow(function longProxyChainSetPrototypeOf() { - let p = makeLongProxyChain(); - Reflect.setPrototypeOf(p, null); -}); - -shouldThrowStackOverflow(function longProxyChainGetOwnPropertyDescriptor() { - let p = makeLongProxyChain(); - Reflect.getOwnPropertyDescriptor(p, ""); -}); - -shouldThrowStackOverflow(function longProxyChainDefineProperty() { - let p = makeLongProxyChain(); - Reflect.defineProperty(p, "", {}); -}); - -shouldThrowStackOverflow(function longProxyChainIsExtensible() { - let p = makeLongProxyChain(); - Reflect.isExtensible(p); -}); - -shouldThrowStackOverflow(function longProxyChainPreventExtensions() { - let p = makeLongProxyChain(); - Reflect.preventExtensions(p) -}); - -shouldThrowStackOverflow(function longProxyChainDeleteProperty() { - let p = makeLongProxyChain(); - Reflect.deleteProperty(p, ""); -}); - -shouldThrowStackOverflow(function longProxyChainWithScope() { - let p = makeLongProxyChain(); - with (p) { - propertyLookup; - } -}); - -shouldThrowStackOverflow(function longProxyChainWithScope2() { - let p = makeLongProxyChain(); - with (p) { - storeToProperty = 0; - } -}); - -shouldThrowStackOverflow(function longProxyChainWithScope3() { - let p = makeLongProxyChain(); - with (p) { - someFunctionPropertyLookup() - } -}); - -shouldThrowStackOverflow(function longProxyChainArrayPrototypePush() { - let p = makeLongProxyChain(); - Array.prototype.push.call(p, 0); -}); - -shouldThrowStackOverflow(function longProxyChainWithScope4() { - let p = makeLongProxyChain(); - with (p) { - eval(""); - } -}); - -shouldThrowStackOverflow(function longProxyChainCall() { - let p = makeLongProxyChain(); - p(); -}); - -shouldThrowStackOverflow(function longProxyChainConstruct() { - let p = makeLongProxyChain(); - new p; -}); - -shouldThrowStackOverflow(function longProxyChainHas() { - let p = makeLongProxyChain(); - Reflect.has(p, "foo"); -}); diff --git a/implementation-contributed/javascriptcore/stress/proxy-underscore-proto.js b/implementation-contributed/javascriptcore/stress/proxy-underscore-proto.js deleted file mode 100644 index 11eeed69861ce5d2771a77442f5a83844812402b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-underscore-proto.js +++ /dev/null @@ -1,110 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion!"); -} - -{ - let p = {}; - let target = {__proto__: p}; - let called = false; - let handler = { - get(target, key, receiver) { - called = true; - assert(key === "__proto__"); - return target[key]; - }, - - getPrototypeOf() { - assert(false); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy.__proto__ === p); - assert(called); - called = false; - } -} - -{ - let p = {}; - let target = {__proto__: p}; - let called1 = false; - let called2 = false; - let handler = { - get(target, key, receiver) { - called1 = true; - assert(key === "__proto__"); - return Reflect.get(target, key, receiver); - }, - - getPrototypeOf(...args) { - called2 = true; - return Reflect.getPrototypeOf(...args); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - assert(proxy.__proto__ === p); - assert(called1); - assert(called2); - called1 = false; - called2 = false; - } -} - -{ - let p = {}; - let target = {__proto__: null}; - let called = false; - let handler = { - set(target, key, value, receiver) { - called = true; - assert(key === "__proto__"); - return target[key] = value; - }, - - setPrototypeOf() { - assert(false); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - proxy.__proto__ = p; - assert(proxy.__proto__ === p); - assert(target.__proto__ === p); - target.__proto__ = null; - assert(called); - called = false; - } -} - -{ - let p = {}; - let target = {__proto__: null}; - let called = false; - let handler = { - set(target, key, value, receiver) { - called = true; - assert(key === "__proto__"); - return Reflect.set(target, key, value, receiver); - }, - - setPrototypeOf() { - assert(false); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - proxy.__proto__ = p; - assert(proxy.__proto__ === p); - assert(target.__proto__ === p); - target.__proto__ = null; - assert(called); - called = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-with-private-symbols.js b/implementation-contributed/javascriptcore/stress/proxy-with-private-symbols.js deleted file mode 100644 index 0bf1cfb54acf21fd5ab101b663303ef40467246c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-with-private-symbols.js +++ /dev/null @@ -1,88 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("bad assertion"); -} - -// Currently, only "get", "getOwnPropertyDescriptor", and "set" are testable. - -{ - let theTarget = []; - let sawPrivateSymbolAsString = false; - let handler = { - get: function(target, propName, proxyArg) { - if (typeof propName === "string") - sawPrivateSymbolAsString = propName === "PrivateSymbol.arrayIterationKind"; - return target[propName]; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 100; i++) { - let threw = false; - try { - proxy[Symbol.iterator]().next.call(proxy); - } catch(e) { - // this will throw because we convert private symbols to strings. - assert(e.message === "%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance"); - threw = true; - } - assert(threw); - assert(!sawPrivateSymbolAsString); - sawPrivateSymbolAsString = false; - } -} - -{ - let theTarget = []; - let sawPrivateSymbolAsString = false; - let handler = { - getOwnPropertyDescriptor: function(theTarget, propName) { - if (typeof propName === "string") - sawPrivateSymbolAsString = propName === "PrivateSymbol.arrayIterationKind"; - return target[propName]; - } - }; - - let proxy = new Proxy(theTarget, handler); - for (let i = 0; i < 100; i++) { - let threw = false; - try { - proxy[Symbol.iterator]().next.call(proxy); - } catch(e) { - // this will throw because we convert private symbols to strings. - assert(e.message === "%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance"); - threw = true; - } - assert(threw); - assert(!sawPrivateSymbolAsString); - sawPrivateSymbolAsString = false; - } -} - -{ - let theTarget = [1,2,3,4,5]; - let iterator = theTarget[Symbol.iterator](); - let sawPrivateSymbolAsString = false; - let handler = { - set: function(theTarget, propName, value, receiver) { - if (typeof propName === "string") - sawPrivateSymbolAsString = propName === "PrivateSymbol.arrayIterationKind"; - return target[propName]; - } - }; - - let proxy = new Proxy(iterator, handler); - for (let i = 0; i < 100; i++) { - let threw = false; - try { - proxy.next(); - } catch(e) { - // this will throw because we convert private symbols to strings. - assert(e.message === "%ArrayIteratorPrototype%.next requires that |this| be an Array Iterator instance"); - threw = true; - } - assert(!threw); - assert(!sawPrivateSymbolAsString); - sawPrivateSymbolAsString = false; - } -} diff --git a/implementation-contributed/javascriptcore/stress/proxy-with-statement.js b/implementation-contributed/javascriptcore/stress/proxy-with-statement.js deleted file mode 100644 index 9920133fb3b4f062e3e7d2a07c6163dc0726a136..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-with-statement.js +++ /dev/null @@ -1,26 +0,0 @@ -(function () { - var target = {}; - var handler = { - get: function () - { - throw new Error('ng'); - } - }; - var array = { - hello: 42 - }; - var proxy = new Proxy(target, handler); - array[Symbol.unscopables] = proxy; - var thrown = null; - try { - with (array) { - hello; - } - } catch (error) { - thrown = error; - } - if (thrown === null) - throw new Error(`not thrown`); - if (String(thrown) !== `Error: ng`) - throw new Error(`bad error: ${String(thrown)}`); -}()); diff --git a/implementation-contributed/javascriptcore/stress/proxy-with-unbalanced-getter-setter.js b/implementation-contributed/javascriptcore/stress/proxy-with-unbalanced-getter-setter.js deleted file mode 100644 index 5cd5ce9ab1ddef35572b822631c171843480949d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/proxy-with-unbalanced-getter-setter.js +++ /dev/null @@ -1,70 +0,0 @@ -function assert(b) { - if (!b) - throw new Error("Bad assertion"); -} - -// Setting the getter only. -(function () { - let target = {}; - let called = false; - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - called = true; - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - get: function(){}, - }); - assert(result); - assert(called); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(typeof pDesc.get === "function"); - assert(typeof pDesc.set === "undefined"); - assert(pDesc.get.toString() === (function(){}).toString()); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -})(); - -// Setting the setter only. -(function () { - let target = {}; - let called = false; - let handler = { - defineProperty: function(theTarget, propName, descriptor) { - called = true; - return Reflect.defineProperty(theTarget, propName, descriptor); - } - }; - - let proxy = new Proxy(target, handler); - for (let i = 0; i < 500; i++) { - let result = Reflect.defineProperty(proxy, "x", { - enumerable: true, - configurable: true, - set: function(x){}, - }); - assert(result); - assert(called); - called = false; - - for (let obj of [target, proxy]) { - let pDesc = Object.getOwnPropertyDescriptor(obj, "x"); - assert(typeof pDesc.get === "undefined"); - assert(typeof pDesc.set === "function"); - assert(pDesc.set.toString() === (function(x){}).toString()); - assert(pDesc.configurable === true); - assert(pDesc.enumerable === true); - } - } -})(); diff --git a/implementation-contributed/javascriptcore/stress/regress-132147.js b/implementation-contributed/javascriptcore/stress/regress-132147.js deleted file mode 100644 index 0073dd5ec016a9e65d4c0345bd21565fd62edbb6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-132147.js +++ /dev/null @@ -1,28 +0,0 @@ -var foo = function(a, b, count) { - a = a | 0; - b = b | 0; - - if (false) { - return 1; - } else { - a = a & 0xff00; - b = b & 0x00ff; - - orA = a | 0xff00; - xorB = b ^ 0xff; - } - - return orA | xorB; -}; - -var argA = 0; -var argB = 0x22; -var result = 0; - -noInline(foo) - -for (i = 0; i < 100000; i++) - result = result | foo(argA, argB, 4) - -if (result != 0xffdd) - throw new Error("Incorrect result!"); diff --git a/implementation-contributed/javascriptcore/stress/regress-135155.js b/implementation-contributed/javascriptcore/stress/regress-135155.js deleted file mode 100644 index 4b3224749d66de643ea4cfef27ef6233627a0fa1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-135155.js +++ /dev/null @@ -1,9 +0,0 @@ -function run() { - for (var t = 1, i = 0; i < 10000; t++, i++) { - t.length = function() { - var foo = iv.charCodeAt(foo, undefined); - }; - } -} - -run(); diff --git a/implementation-contributed/javascriptcore/stress/regress-141489.js b/implementation-contributed/javascriptcore/stress/regress-141489.js deleted file mode 100644 index bbca89c9b60c91caf6a7e3c1cdb3ed33a07bca3b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-141489.js +++ /dev/null @@ -1,34 +0,0 @@ -// this test checks that register r9 is not a callee save on ios armv7. -function ident(a) { - return a; -} - -function foo(array,obj) { - var a = array[0]; - var b = array[1]; - var c = array[2]; - obj.a = array; - obj.b = array; - obj.c = array; - obj.d = array; - obj.e = array; - obj.f = array; - obj.h = array; - return a(b(c(10))); -} -noInline(foo); - -var arr = [ident,ident,ident]; - -for (var i = 0; i < 100; i++) { - var obj = {}; - for (var j = 0; j < 200; j ++) { - obj["j"+j] = i; - } - foo(arr, obj); -} - -for (var i = 0; i < 100; i++) { - var obj = {}; - foo(arr, obj); -} \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/regress-141883.js b/implementation-contributed/javascriptcore/stress/regress-141883.js deleted file mode 100644 index 8af17195d16fd0bf95447d1c6e015ace26650196..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-141883.js +++ /dev/null @@ -1,15 +0,0 @@ -// This test is taken almost literally from the bug report: https://bugs.webkit.org/show_bug.cgi?id=141883. -// The only change is to use a loop bound of 1e4 instead of 1e5 to make the test run faster. This -// change still caused a reliable crash in every optimizing JIT configuration prior to the fix. - -(function() { -var b=!2; -var n = 1e4; -for(i = 0; i< n; i++) { -b[b=this]; -for (var i = 0; i < n; i++) { - if (a = b*3) { - } -} -} -})() diff --git a/implementation-contributed/javascriptcore/stress/regress-148564.js b/implementation-contributed/javascriptcore/stress/regress-148564.js deleted file mode 100644 index 52675b87f46c5ae5dbf8ce5a03ccc50f1321d8fb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-148564.js +++ /dev/null @@ -1,72 +0,0 @@ -//@ runNoCJITNoAccessInlining - -// Regression test for https://bugs.webkit.org/show_bug.cgi?id=148542 -// -// In order to manifest, the bug being tested requires all these conditions to be true: -// 1. A put operation must not being optimized by the DFG into a PutByOffset. -// It needs to be a PutById node instead so that it will use the inline cache. -// This is satisfied by using the --useAccessInlining=false option above. -// -// 2. The PutById's execution must go through its transition stub. -// -// 3. In the transition stub, the object being put into must require a reallocation of its -// storage butterfly. This causes the stub to generate code to save some registers. -// -// 4. The transition stub needs to call the slow path for flushing the heap write barrier -// buffer. -// -// 5. The caller of the test must not be DFG compiled. This was not a strictly needed -// condition of the bug, but allowing the caller to compile seems to interfere with -// our method below of achieving condition 3. -// -// With the bug fixed, this test should not crash. - -var val = { a: 5, b: 10 } - -function test(obj, val, j, x, y, z) { - obj.a = val.a; // PutById after GetById - if (val.b) // GetById to access val in a register again. - val.b++; -} - -noInline(test); - -function runTest() { - for (var j = 0; j < 50; j++) { - var objs = []; - - let numberOfObjects = 200; - for (var k = 0; k < numberOfObjects; k++) { - var obj = { }; - - // Condition 3. - // Fuzzing the amount of property storage used so that we can get the - // repatch stub generator to resize the object out of line storage, and - // create more register pressure to do that work. This in turn causes it to - // need to preserve registers on the stack. - var numInitialProps = j % 20; - for (var i = 0; i < numInitialProps; i++) - obj["i" + i] = i; - - objs[k] = obj; - } - - // Condition 4. - // Put all the objects in the GC's oldGen so that we can exercise the write - // barrier when we exercise the PutById. - gc(); - - for (var k = 0; k < numberOfObjects; k++) { - // Condition 2. - // Eventually, the IC will converge on the slow path. Need to gc() - // periodically to repatch anew. - if (k % 97 == 1 && j % 5 == 1) - gc(); - - test(objs[k], val, j); - } - } -} - -noDFG(runTest); // Condition 5. -runTest(); diff --git a/implementation-contributed/javascriptcore/stress/regress-151324.js b/implementation-contributed/javascriptcore/stress/regress-151324.js deleted file mode 100644 index cf5c6f6a1e437c813e657320b9a3788116eaf18e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-151324.js +++ /dev/null @@ -1,1700 +0,0 @@ -load('./resources/standalone-pre.js'); - -shouldThrow(`InspectorFrontendAPI.dispatchMessageAsync({ - "method":"Timeline.eventRecorded", - "params":{ - "record":{ - "startTime":0.4574042089516297, - "data":{ - - }, - "children":[ - { - "startTime":0.45765518594998866, - "frameId":"0.1", - "data":{ - "type":"unload" - }, - "children":[ - { - "startTime":0.45767247199546546, - "frameId":"0.1", - "data":{ - "type":"unload" - }, - "children":[ - { - "startTime":0.4577469859505072, - "frameId":"0.1", - "data":{ - "scriptName":"http://bogojoker.com/shell/js/jquery.js", - "scriptLine":25, - "profile":{ - "rootNodes":[ - { - "id":10666325, - "callInfo":{ - "callCount":1, - "startTime":0.4600456530461088, - "endTime":0.5723258559592068, - "totalTime":0.11228020291309804 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":11278, - "children":[ - { - "id":9047718, - "callInfo":{ - "callCount":1, - "startTime":0.4602741169510409, - "endTime":0.5723157339962199, - "totalTime":0.11204161704517901 - }, - "functionName":"handle", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":1710, - "children":[ - { - "id":4202292, - "callInfo":{ - "callCount":1, - "startTime":0.46182347903959453, - "endTime":0.46567703399341553, - "totalTime":0.0038535549538210034 - }, - "functionName":"fix", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":2250, - "children":[ - { - "id":10521023, - "callInfo":{ - "callCount":1, - "startTime":0.4640483419643715, - "endTime":0.46420134196523577, - "totalTime":0.00015300000086426735 - }, - "functionName":"split" - } - ] - }, - { - "id":10521023, - "callInfo":{ - "callCount":1, - "startTime":0.46569668501615524, - "endTime":0.4657133989967406, - "totalTime":0.000016713980585336685 - }, - "functionName":"split" - }, - { - "id":14911479, - "callInfo":{ - "callCount":1, - "startTime":0.4657505040522665, - "endTime":0.4665822129463777, - "totalTime":0.0008317088941112161 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":10326340, - "callInfo":{ - "callCount":1, - "startTime":0.4666974269784987, - "endTime":0.5723000540165231, - "totalTime":0.10560262703802437 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5202, - "children":[ - { - "id":11633846, - "callInfo":{ - "callCount":1, - "startTime":0.46711588103789836, - "endTime":0.47081808699294925, - "totalTime":0.0037022059550508857 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":1, - "startTime":0.4674249020172283, - "endTime":0.4708091530483216, - "totalTime":0.0033842510310932994 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283, - "children":[ - { - "id":4233234, - "callInfo":{ - "callCount":1, - "startTime":0.4688438760349527, - "endTime":0.46978856704663485, - "totalTime":0.0009446910116821527 - }, - "functionName":"isFunction", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":18, - "columnNumber":1024, - "children":[ - { - "id":10491348, - "callInfo":{ - "callCount":1, - "startTime":0.46960152103565633, - "endTime":0.4696109419455752, - "totalTime":0.0000094209099188447 - }, - "functionName":"valueOf" - }, - { - "id":16692393, - "callInfo":{ - "callCount":1, - "startTime":0.46964985702652484, - "endTime":0.46968269103672355, - "totalTime":0.00003283401019871235 - }, - "functionName":"toString" - }, - { - "id":2722971, - "callInfo":{ - "callCount":1, - "startTime":0.46969330694992095, - "endTime":0.4697769519407302, - "totalTime":0.0000836449908092618 - }, - "functionName":"test" - } - ] - }, - { - "id":11418222, - "callInfo":{ - "callCount":1, - "startTime":0.4698098510270938, - "endTime":0.47037055995315313, - "totalTime":0.0005607089260593057 - }, - "functionName":"makeArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":23, - "columnNumber":1405 - }, - { - "id":4289586, - "callInfo":{ - "callCount":1, - "startTime":0.47038226504810154, - "endTime":0.47079936298541725, - "totalTime":0.00041709793731570244 - }, - "functionName":"setArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":427, - "children":[ - { - "id":10262917, - "callInfo":{ - "callCount":1, - "startTime":0.47075928503181785, - "endTime":0.4707893270533532, - "totalTime":0.00003004202153533697 - }, - "functionName":"push" - } - ] - } - ] - } - ] - }, - { - "id":488105, - "callInfo":{ - "callCount":1, - "startTime":0.47083144600037485, - "endTime":0.4769594370154664, - "totalTime":0.006127991015091538 - }, - "functionName":"unbind", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5372, - "children":[ - { - "id":16235438, - "callInfo":{ - "callCount":1, - "startTime":0.471148986951448, - "endTime":0.47694955894257873, - "totalTime":0.00580057199113071 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":515, - "children":[ - { - "id":15419017, - "callInfo":{ - "callCount":1, - "startTime":0.47142826195340604, - "endTime":0.47693974093999714, - "totalTime":0.005511478986591101 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":9497284, - "callInfo":{ - "callCount":1, - "startTime":0.4730144899804145, - "endTime":0.4769267829833552, - "totalTime":0.003912293002940714 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5407, - "children":[ - { - "id":10024927, - "callInfo":{ - "callCount":1, - "startTime":0.4732826850377023, - "endTime":0.47690031595993787, - "totalTime":0.0036176309222355485 - }, - "functionName":"remove", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":11923, - "children":[ - { - "id":14911479, - "callInfo":{ - "callCount":1, - "startTime":0.47489556402433664, - "endTime":0.4749327319441363, - "totalTime":0.00003716791979968548 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":10521023, - "callInfo":{ - "callCount":1, - "startTime":0.47496555594261736, - "endTime":0.47498407296370715, - "totalTime":0.00001851702108979225 - }, - "functionName":"split" - }, - { - "id":15419017, - "callInfo":{ - "callCount":1, - "startTime":0.47499843896366656, - "endTime":0.4768601800315082, - "totalTime":0.001861741067841649 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":11810108, - "callInfo":{ - "callCount":1, - "startTime":0.47504206001758575, - "endTime":0.47683112300001085, - "totalTime":0.0017890629824250937 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":12273, - "children":[ - { - "id":10521023, - "callInfo":{ - "callCount":1, - "startTime":0.4764995139557868, - "endTime":0.4765173509949818, - "totalTime":0.000017837039195001125 - }, - "functionName":"split" - }, - { - "id":14911479, - "callInfo":{ - "callCount":1, - "startTime":0.4766902349656448, - "endTime":0.47672319202683866, - "totalTime":0.00003295706119388342 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":13528547, - "callInfo":{ - "callCount":1, - "startTime":0.4767302969703451, - "endTime":0.47679690702352673, - "totalTime":0.00006661005318164825 - }, - "functionName":"removeEventListener" - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "id":11938226, - "callInfo":{ - "callCount":1, - "startTime":0.4769882570253685, - "endTime":0.5722886399598792, - "totalTime":0.09530038293451071 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":27, - "columnNumber":1877, - "children":[ - { - "id":11633846, - "callInfo":{ - "callCount":1, - "startTime":0.4773472750093788, - "endTime":0.4885393399745226, - "totalTime":0.0111920649651438 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":1, - "startTime":0.47737314202822745, - "endTime":0.48852962302044034, - "totalTime":0.011156480992212892 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283, - "children":[ - { - "id":12623361, - "callInfo":{ - "callCount":1, - "startTime":0.47739895700942725, - "endTime":0.477487865020521, - "totalTime":0.0000889080110937357 - }, - "functionName":"exec" - }, - { - "id":11633846, - "callInfo":{ - "callCount":1, - "startTime":0.47750373696908355, - "endTime":0.47760105098132044, - "totalTime":0.00009731401223689318 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":1, - "startTime":0.47752914403099567, - "endTime":0.4775912419427186, - "totalTime":0.00006209791172295809 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283 - } - ] - }, - { - "id":6695340, - "callInfo":{ - "callCount":1, - "startTime":0.47761483397334814, - "endTime":0.48851928603835404, - "totalTime":0.010904452065005898 - }, - "functionName":"find", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":2421, - "children":[ - { - "id":16700220, - "callInfo":{ - "callCount":1, - "startTime":0.47815056005492806, - "endTime":0.48736846703104675, - "totalTime":0.009217906976118684 - }, - "functionName":"map", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":426, - "children":[ - { - "id":6556246, - "callInfo":{ - "callCount":1, - "startTime":0.4788244169903919, - "endTime":0.48721889895386994, - "totalTime":0.008394481963478029 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":2466, - "children":[ - { - "id":10111157, - "callInfo":{ - "callCount":1, - "startTime":0.4791237829485908, - "endTime":0.4872086669784039, - "totalTime":0.00808488402981311 - }, - "functionName":"find", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":6583, - "children":[ - { - "id":4146357, - "callInfo":{ - "callCount":1, - "startTime":0.4843939649872482, - "endTime":0.48479653301183134, - "totalTime":0.0004025680245831609 - }, - "functionName":"trim", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":23, - "columnNumber":1336, - "children":[ - { - "id":14946989, - "callInfo":{ - "callCount":1, - "startTime":0.4847100869519636, - "endTime":0.48478551500011235, - "totalTime":0.00007542804814875126 - }, - "functionName":"replace" - } - ] - }, - { - "id":12623361, - "callInfo":{ - "callCount":4, - "startTime":0.48481361102312803, - "endTime":0.4851868849946186, - "totalTime":0.00029874895699322224 - }, - "functionName":"exec" - }, - { - "id":15678801, - "callInfo":{ - "callCount":1, - "startTime":0.48498469195328653, - "endTime":0.4849950469797477, - "totalTime":0.000010355026461184025 - }, - "functionName":"indexOf" - }, - { - "id":14946989, - "callInfo":{ - "callCount":2, - "startTime":0.4852056399686262, - "endTime":0.48676540004089475, - "totalTime":0.00006531213875859976 - }, - "functionName":"replace" - }, - { - "id":8888104, - "callInfo":{ - "callCount":1, - "startTime":0.4853037269786, - "endTime":0.4853140809573233, - "totalTime":0.000010353978723287582 - }, - "functionName":"toLowerCase" - }, - { - "id":15667683, - "callInfo":{ - "callCount":1, - "startTime":0.48533563304226846, - "endTime":0.4853546470403671, - "totalTime":0.000019013998098671436 - }, - "functionName":"getElementsByTagName" - }, - { - "id":13439957, - "callInfo":{ - "callCount":2, - "startTime":0.4853657509665936, - "endTime":0.4871977570001036, - "totalTime":0.0017730630934238434 - }, - "functionName":"merge", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":24, - "columnNumber":168 - } - ] - } - ] - }, - { - "id":10650488, - "callInfo":{ - "callCount":1, - "startTime":0.487244653981179, - "endTime":0.48735911201220006, - "totalTime":0.00011445803102105856 - }, - "functionName":"concat" - } - ] - }, - { - "id":2722971, - "callInfo":{ - "callCount":1, - "startTime":0.487386625027284, - "endTime":0.48743854300118983, - "totalTime":0.00005191797390580177 - }, - "functionName":"test" - }, - { - "id":15678801, - "callInfo":{ - "callCount":1, - "startTime":0.4874507150379941, - "endTime":0.4874597470043227, - "totalTime":0.00000903196632862091 - }, - "functionName":"indexOf" - }, - { - "id":8643473, - "callInfo":{ - "callCount":1, - "startTime":0.4874700449872762, - "endTime":0.48850960296113044, - "totalTime":0.0010395579738542438 - }, - "functionName":"pushStack", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":347, - "children":[ - { - "id":11633846, - "callInfo":{ - "callCount":1, - "startTime":0.4877791110193357, - "endTime":0.48846802301704884, - "totalTime":0.0006889119977131486 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":1, - "startTime":0.48780164995696396, - "endTime":0.4884582340018824, - "totalTime":0.0006565840449184179 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283, - "children":[ - { - "id":4233234, - "callInfo":{ - "callCount":1, - "startTime":0.4878246319713071, - "endTime":0.48785160097759217, - "totalTime":0.000026969006285071373 - }, - "functionName":"isFunction", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":18, - "columnNumber":1024 - }, - { - "id":11418222, - "callInfo":{ - "callCount":1, - "startTime":0.4878640250535682, - "endTime":0.48823340400122106, - "totalTime":0.0003693789476528764 - }, - "functionName":"makeArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":23, - "columnNumber":1405 - }, - { - "id":4289586, - "callInfo":{ - "callCount":1, - "startTime":0.48824399698060006, - "endTime":0.4884476319421083, - "totalTime":0.00020363496150821447 - }, - "functionName":"setArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":427, - "children":[ - { - "id":10262917, - "callInfo":{ - "callCount":1, - "startTime":0.48826338397338986, - "endTime":0.4884373639943078, - "totalTime":0.00017398002091795206 - }, - "functionName":"push" - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "id":13091494, - "callInfo":{ - "callCount":1, - "startTime":0.48855383903719485, - "endTime":0.5076191630214453, - "totalTime":0.019065323984250426 - }, - "functionName":"add", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":14, - "columnNumber":250, - "children":[ - { - "id":9004706, - "callInfo":{ - "callCount":1, - "startTime":0.4890042010229081, - "endTime":0.48967376397922635, - "totalTime":0.0006695629563182592 - }, - "functionName":"get", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":266, - "children":[ - { - "id":11418222, - "callInfo":{ - "callCount":1, - "startTime":0.48931563401129097, - "endTime":0.48966451501473784, - "totalTime":0.000348881003446877 - }, - "functionName":"makeArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":23, - "columnNumber":1405 - } - ] - }, - { - "id":11418222, - "callInfo":{ - "callCount":1, - "startTime":0.4896885330090299, - "endTime":0.48971870401874185, - "totalTime":0.000030171009711921215 - }, - "functionName":"makeArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":23, - "columnNumber":1405 - }, - { - "id":13439957, - "callInfo":{ - "callCount":1, - "startTime":0.48972829105332494, - "endTime":0.4897498949430883, - "totalTime":0.000021603889763355255 - }, - "functionName":"merge", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":24, - "columnNumber":168 - }, - { - "id":2759216, - "callInfo":{ - "callCount":1, - "startTime":0.4897593869827688, - "endTime":0.506864722003229, - "totalTime":0.01710533502046019 - }, - "functionName":"unique", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":72, - "children":[ - { - "id":14911479, - "callInfo":{ - "callCount":212, - "startTime":0.49046733195427805, - "endTime":0.506835420965217, - "totalTime":0.009655389352701604 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":10262917, - "callInfo":{ - "callCount":212, - "startTime":0.49055562098510563, - "endTime":0.5068554510362446, - "totalTime":0.001536340918391943 - }, - "functionName":"push" - } - ] - }, - { - "id":8643473, - "callInfo":{ - "callCount":1, - "startTime":0.5068748430348933, - "endTime":0.5076102019520476, - "totalTime":0.0007353589171543717 - }, - "functionName":"pushStack", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":347, - "children":[ - { - "id":11633846, - "callInfo":{ - "callCount":1, - "startTime":0.5068993769818917, - "endTime":0.5075981400441378, - "totalTime":0.0006987630622461438 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":1, - "startTime":0.5069203609600663, - "endTime":0.5075888170395046, - "totalTime":0.0006684560794383287 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283, - "children":[ - { - "id":4233234, - "callInfo":{ - "callCount":1, - "startTime":0.5069418509956449, - "endTime":0.5069665010087192, - "totalTime":0.00002465001307427883 - }, - "functionName":"isFunction", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":18, - "columnNumber":1024 - }, - { - "id":11418222, - "callInfo":{ - "callCount":1, - "startTime":0.5069789109984413, - "endTime":0.5073867529863492, - "totalTime":0.0004078419879078865 - }, - "functionName":"makeArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":23, - "columnNumber":1405 - }, - { - "id":4289586, - "callInfo":{ - "callCount":1, - "startTime":0.5073979030130431, - "endTime":0.5075787319801748, - "totalTime":0.0001808289671316743 - }, - "functionName":"setArray", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":427, - "children":[ - { - "id":10262917, - "callInfo":{ - "callCount":1, - "startTime":0.5074169930303469, - "endTime":0.5075692009413615, - "totalTime":0.00015220791101455688 - }, - "functionName":"push" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "id":488105, - "callInfo":{ - "callCount":1, - "startTime":0.5076321549713612, - "endTime":0.57227890600916, - "totalTime":0.06464675103779882 - }, - "functionName":"unbind", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5372, - "children":[ - { - "id":16235438, - "callInfo":{ - "callCount":1, - "startTime":0.5076667669927701, - "endTime":0.572270018979907, - "totalTime":0.0646032519871369 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":515, - "children":[ - { - "id":15419017, - "callInfo":{ - "callCount":1, - "startTime":0.5076878629624844, - "endTime":0.5722610909724608, - "totalTime":0.06457322800997645 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":9497284, - "callInfo":{ - "callCount":212, - "startTime":0.5077157670166343, - "endTime":0.5722492639906704, - "totalTime":0.06122412241529673 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5407, - "children":[ - { - "id":10024927, - "callInfo":{ - "callCount":212, - "startTime":0.5077362669399008, - "endTime":0.5722395799821243, - "totalTime":0.05579547712113708 - }, - "functionName":"remove", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":11923, - "children":[ - { - "id":14911479, - "callInfo":{ - "callCount":230, - "startTime":0.5077663060510531, - "endTime":0.5719964860472828, - "totalTime":0.005681783542968333 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":10024927, - "callInfo":{ - "callCount":32, - "startTime":0.5098302339902148, - "endTime":0.5719179699663073, - "totalTime":0.03613383590709418 - }, - "functionName":"remove", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":11923, - "children":[ - { - "id":14911479, - "callInfo":{ - "callCount":50, - "startTime":0.509867444052361, - "endTime":0.571639965986833, - "totalTime":0.0010316309053450823 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":7559434, - "callInfo":{ - "callCount":32, - "startTime":0.5099190620239824, - "endTime":0.5713644659845158, - "totalTime":0.00018110312521457672 - }, - "functionName":"charAt" - }, - { - "id":10521023, - "callInfo":{ - "callCount":32, - "startTime":0.5099465129896998, - "endTime":0.5713880989933386, - "totalTime":0.000504822819493711 - }, - "functionName":"split" - }, - { - "id":15419017, - "callInfo":{ - "callCount":32, - "startTime":0.5099760990124196, - "endTime":0.5715895700268447, - "totalTime":0.02507637918461114 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":11810108, - "callInfo":{ - "callCount":32, - "startTime":0.5100070700282231, - "endTime":0.5715776670258492, - "totalTime":0.023956994991749525 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":12273, - "children":[ - { - "id":10521023, - "callInfo":{ - "callCount":32, - "startTime":0.5100298100151122, - "endTime":0.5714387450134382, - "totalTime":0.0003970271209254861 - }, - "functionName":"split" - }, - { - "id":14911479, - "callInfo":{ - "callCount":6, - "startTime":0.5101313069462776, - "endTime":0.5715348520316184, - "totalTime":0.0001477630576118827 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":13528547, - "callInfo":{ - "callCount":6, - "startTime":0.5101638509659097, - "endTime":0.571557622984983, - "totalTime":0.0001082209637388587 - }, - "functionName":"removeEventListener" - }, - { - "id":1932713, - "callInfo":{ - "callCount":13, - "startTime":0.5170135640073568, - "endTime":0.5636187120107934, - "totalTime":0.007674403954297304 - }, - "functionName":"teardown", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":4267, - "children":[ - { - "id":11633846, - "callInfo":{ - "callCount":13, - "startTime":0.5173674599500373, - "endTime":0.5631630329880863, - "totalTime":0.0007915140595287085 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":13, - "startTime":0.5173888490535319, - "endTime":0.5631537339650095, - "totalTime":0.000419716932810843 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283 - } - ] - }, - { - "id":488105, - "callInfo":{ - "callCount":13, - "startTime":0.5174522290471941, - "endTime":0.5636094439541921, - "totalTime":0.006016437197104096 - }, - "functionName":"unbind", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5372, - "children":[ - { - "id":16235438, - "callInfo":{ - "callCount":13, - "startTime":0.5174769869772717, - "endTime":0.5636000350350514, - "totalTime":0.0056232352508232 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":515, - "children":[ - { - "id":15419017, - "callInfo":{ - "callCount":13, - "startTime":0.5174947320483625, - "endTime":0.5635905610397458, - "totalTime":0.005255497177131474 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":9497284, - "callInfo":{ - "callCount":13, - "startTime":0.5175209649605677, - "endTime":0.5635784750338644, - "totalTime":0.004808090161532164 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5407, - "children":[ - { - "id":10024927, - "callInfo":{ - "callCount":13, - "startTime":0.5175394839607179, - "endTime":0.5635684269946069, - "totalTime":0.004470365238375962 - }, - "functionName":"remove", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":11923, - "children":[ - { - "id":14911479, - "callInfo":{ - "callCount":13, - "startTime":0.5175549449631944, - "endTime":0.5632668699836358, - "totalTime":0.00022441917099058628 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":7559434, - "callInfo":{ - "callCount":13, - "startTime":0.5176310209790245, - "endTime":0.5632796649588272, - "totalTime":0.00007680489215999842 - }, - "functionName":"charAt" - }, - { - "id":10521023, - "callInfo":{ - "callCount":13, - "startTime":0.5177862700074911, - "endTime":0.5633019669912755, - "totalTime":0.00018701096996665 - }, - "functionName":"split" - }, - { - "id":15419017, - "callInfo":{ - "callCount":13, - "startTime":0.5178207469871268, - "endTime":0.5635312650119886, - "totalTime":0.0027500687865540385 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":11810108, - "callInfo":{ - "callCount":13, - "startTime":0.5178566400427371, - "endTime":0.5635183999547735, - "totalTime":0.0022494520526379347 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":12273, - "children":[ - { - "id":10521023, - "callInfo":{ - "callCount":13, - "startTime":0.5178755599772558, - "endTime":0.5633663949556649, - "totalTime":0.00015613273717463017 - }, - "functionName":"split" - }, - { - "id":14911479, - "callInfo":{ - "callCount":13, - "startTime":0.5179461860097945, - "endTime":0.5634484669426456, - "totalTime":0.00030205503571778536 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":13528547, - "callInfo":{ - "callCount":13, - "startTime":0.517973372945562, - "endTime":0.5634730849415064, - "totalTime":0.0002499391557648778 - }, - "functionName":"removeEventListener" - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "id":7516897, - "callInfo":{ - "callCount":13, - "startTime":0.5184197369962931, - "endTime":0.564691312960349, - "totalTime":0.009912022738717496 - }, - "functionName":"teardown", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":4700, - "children":[ - { - "id":11633846, - "callInfo":{ - "callCount":13, - "startTime":0.5188653949880973, - "endTime":0.5640319919912145, - "totalTime":0.0007843798957765102 - }, - "functionName":"$", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":93, - "children":[ - { - "id":11974810, - "callInfo":{ - "callCount":13, - "startTime":0.5188895519822836, - "endTime":0.5640219210181385, - "totalTime":0.0004164050333201885 - }, - "functionName":"init", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":11, - "columnNumber":283 - } - ] - }, - { - "id":488105, - "callInfo":{ - "callCount":13, - "startTime":0.5189610470551997, - "endTime":0.5646812729537487, - "totalTime":0.008086794055998325 - }, - "functionName":"unbind", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5372, - "children":[ - { - "id":16235438, - "callInfo":{ - "callCount":13, - "startTime":0.5189879050012678, - "endTime":0.5646517019486055, - "totalTime":0.0076663600048050284 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":12, - "columnNumber":515, - "children":[ - { - "id":15419017, - "callInfo":{ - "callCount":13, - "startTime":0.5190068449592218, - "endTime":0.5646408109460026, - "totalTime":0.007320980075746775 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":9497284, - "callInfo":{ - "callCount":13, - "startTime":0.5190380819840357, - "endTime":0.5646168040111661, - "totalTime":0.004754591034725308 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":26, - "columnNumber":5407, - "children":[ - { - "id":10024927, - "callInfo":{ - "callCount":13, - "startTime":0.5190725360298529, - "endTime":0.5646060470025986, - "totalTime":0.004371779155917466 - }, - "functionName":"remove", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":11923, - "children":[ - { - "id":14911479, - "callInfo":{ - "callCount":13, - "startTime":0.5190910790115595, - "endTime":0.5642198349814862, - "totalTime":0.00029840413480997086 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":7559434, - "callInfo":{ - "callCount":13, - "startTime":0.5191326700150967, - "endTime":0.5642341560451314, - "totalTime":0.00007180299144238234 - }, - "functionName":"charAt" - }, - { - "id":10521023, - "callInfo":{ - "callCount":13, - "startTime":0.5191488530253991, - "endTime":0.5642752950079739, - "totalTime":0.0001995321363210678 - }, - "functionName":"split" - }, - { - "id":15419017, - "callInfo":{ - "callCount":13, - "startTime":0.5191799569875002, - "endTime":0.5645474110497162, - "totalTime":0.002659469028003514 - }, - "functionName":"each", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":841, - "children":[ - { - "id":11810108, - "callInfo":{ - "callCount":13, - "startTime":0.5192120099673048, - "endTime":0.5645325899822637, - "totalTime":0.0021874881349503994 - }, - "functionName":"(anonymous function)", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":25, - "columnNumber":12273, - "children":[ - { - "id":10521023, - "callInfo":{ - "callCount":13, - "startTime":0.5192305189557374, - "endTime":0.5643490799702704, - "totalTime":0.0002011689357459545 - }, - "functionName":"split" - }, - { - "id":14911479, - "callInfo":{ - "callCount":13, - "startTime":0.5193049629451707, - "endTime":0.5644499149639159, - "totalTime":0.0002809580182656646 - }, - "functionName":"data", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":244 - }, - { - "id":13528547, - "callInfo":{ - "callCount":13, - "startTime":0.5193320829421282, - "endTime":0.5644753449596465, - "totalTime":0.0002735854359343648 - }, - "functionName":"removeEventListener" - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "id":1551406, - "callInfo":{ - "callCount":36, - "startTime":0.5103220000164583, - "endTime":0.5719092530198395, - "totalTime":0.004639018443413079 - }, - "functionName":"removeData", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":501, - "children":[ - { - "id":1551406, - "callInfo":{ - "callCount":17, - "startTime":0.5113199719926342, - "endTime":0.5719003339763731, - "totalTime":0.0006783058634027839 - }, - "functionName":"removeData", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":501 - } - ] - } - ] - }, - { - "id":1551406, - "callInfo":{ - "callCount":36, - "startTime":0.511483859969303, - "endTime":0.5722305719973519, - "totalTime":0.0023077416699379683 - }, - "functionName":"removeData", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":501, - "children":[ - { - "id":1551406, - "callInfo":{ - "callCount":17, - "startTime":0.5115306000225246, - "endTime":0.5721727140480652, - "totalTime":0.0009444230236113071 - }, - "functionName":"removeData", - "url":"http://bogojoker.com/shell/js/jquery.js", - "lineNumber":19, - "columnNumber":501 - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "children":[ - - ], - "endTime":0.5747030830243602, - "type":"FunctionCall" - } - ], - "endTime":0.5747211320558563, - "type":"EventDispatch" - } - ], - "endTime":0.5747311169980094, - "type":"EventDispatch" - }, - { - "startTime":0.5919318459928036, - "frameId":"0.1", - "data":{ - - }, - "children":[ - - ], - "endTime":0.5923666310263798, - "type":"RecalculateStyles" - }, - { - "startTime":0.6193571890471503, - "frameId":"0.1", - "data":{ - - }, - "children":[ - - ], - "endTime":0.6194131550146267, - "type":"RecalculateStyles" - }, - { - "startTime":0.6195009789662436, - "data":{ - - }, - "frameId":"0.1", - "type":"ScheduleStyleRecalculation" - } - ], - "endTime":0.6323551860405132, - "type":"RenderingFrame" - } - } -})`, `new ReferenceError("Can't find variable: InspectorFrontendAPI").toString()`); - -finishJSTest(); diff --git a/implementation-contributed/javascriptcore/stress/regress-153486.js b/implementation-contributed/javascriptcore/stress/regress-153486.js deleted file mode 100644 index fa6837112e832ff451b79120d97e81a8d4a648b0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-153486.js +++ /dev/null @@ -1,48 +0,0 @@ -// Check frozen Array.of and Array.from don't modify unwritable/unconfigurable entries. - -let totalFailed = 0; - -function shouldEqual(testId, iteration, actual, expected) { - if (actual != expected) { - throw "Test #" + testId + ", iteration " + iteration + ", ERROR: expected \"" + expected + "\", got \"" + actual + "\""; - } -} - -function makeUnwriteableUnconfigurableObject() -{ - return Object.defineProperty([], 0, {value: "frozen", writable: false, configurable: false}); -} - -function testArrayOf(obj) -{ - Array.of.call(function() { return obj; }, "no longer frozen"); -} - -noInline(testArrayOf); - -function testArrayFrom(obj) -{ - Array.from.call(function() { return obj; }, ["no longer frozen"]); -} - -noInline(testArrayFrom); - -let numIterations = 10000; - -function runTest(testId, test, sourceMaker, expectedException) { - for (var i = 0; i < numIterations; i++) { - var exception = "No exception"; - var obj = sourceMaker(); - - try { - test(obj); - } catch (e) { - exception = "" + e; - exception = exception.substr(0, 10); // Search for "TypeError:". - } - shouldEqual(testId, i, exception, expectedException); - } -} - -runTest(1, testArrayOf, makeUnwriteableUnconfigurableObject, "TypeError:"); -runTest(2, testArrayFrom, makeUnwriteableUnconfigurableObject, "TypeError:"); diff --git a/implementation-contributed/javascriptcore/stress/regress-153816.js b/implementation-contributed/javascriptcore/stress/regress-153816.js deleted file mode 100644 index 81a11da1dc8cb4afdea24b9b3eb4dce709abb15d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-153816.js +++ /dev/null @@ -1,11 +0,0 @@ -(function deleteSymbolFromJSSymbolTableObject(globalProxy) { - var symbolProperty = Symbol("test"); - - globalProxy[symbolProperty] = symbolProperty; - if (globalProxy[symbolProperty] !== symbolProperty) - throw new Error("bad value: " + String(globalProxy[symbolProperty])); - - delete globalProxy[symbolProperty]; - if (symbolProperty in globalProxy) - throw new Error("bad value: " + String(globalProxy[symbolProperty])); -})(this); diff --git a/implementation-contributed/javascriptcore/stress/regress-156765.js b/implementation-contributed/javascriptcore/stress/regress-156765.js deleted file mode 100644 index 8255a596ee196d9bdb60a8896731472be232bb77..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-156765.js +++ /dev/null @@ -1,27 +0,0 @@ -// Regression test for https://webkit.org/b/156765. This test should not hang. - -"use strict"; - -let forty = 40; - -function realValue() -{ - return forty + 2; -} - -var object = { - get hello() { - return realValue(); - } -}; - -function ok() { - var value = 'hello'; - if (object[value] + 20 !== 62) - throw new Error(); -} - -noInline(ok); - -for (var i = 0; i < 100000; ++i) - ok(); diff --git a/implementation-contributed/javascriptcore/stress/regress-157322.js b/implementation-contributed/javascriptcore/stress/regress-157322.js deleted file mode 100644 index 05284d822a09c544b5d69123b6802cc85a2bfc1e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-157322.js +++ /dev/null @@ -1,43 +0,0 @@ -// Regression test for https://bugs.webkit.org/show_bug.cgi?id=157322. This test should not crash. - -let fromArray = []; -let toArray = []; -let dummyArray = []; -let endObj1 = { - valueOf: function() { - let originalLength = fromArray.length; - fromArray.length = 1; - - dummyArray = new Float64Array(1000); - - return originalLength; - } -}; - -let endObj2 = { - valueOf: function() { - let originalLength = fromArray.length; - fromArray.length = 1; - - dummyArray = new Float64Array(1000); - - fromArray = []; - fromArray.length = originalLength; - - return originalLength; - } -}; - -let initialArray = []; -for (let i = 0; i < 8000; i++) - initialArray.push(i + 0.1); - -for (let loop = 0; loop < 1000; loop++) { - fromArray = initialArray.slice(0); - - let endObj = (loop % 2 == 1) ? endObj1 : endObj2; - - // These calls shouldn't crash - toArray = fromArray.slice(0, endObj); - toArray = fromArray.splice(0, endObj); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-157595.js b/implementation-contributed/javascriptcore/stress/regress-157595.js deleted file mode 100644 index 6b5afb52dedb86011665893f38b6e157d83746c5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-157595.js +++ /dev/null @@ -1,28 +0,0 @@ -// Test that an overridden global on a RegExp object doesn't cause an infinite loop -// in String.match(). Instead it should eventually throw an Out of Memory exception. -// Skipping until the test doesn't timeout on the bots - <https://bugs.webkit.org/show_bug.cgi?id=157903> -//@ skip - -class MyRegExp extends RegExp { - constructor(pattern) { - super(pattern, ""); - } - - get global() { - return true; - } -}; - -function test() -{ - let r = new MyRegExp("."); - - return "abc".match(r); -} - -try { - test(); -} catch(e) { - if (e.message != "Out of memory") - throw "Wrong error: " + e; -} diff --git a/implementation-contributed/javascriptcore/stress/regress-158411.js b/implementation-contributed/javascriptcore/stress/regress-158411.js deleted file mode 100644 index a0f900e32e866254fbaff2705a4a3c102b205d72..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-158411.js +++ /dev/null @@ -1,11 +0,0 @@ -//@ defaultNoSamplingProfilerRun - -// Should not crash. -try { - function foo(){ - [].slice({}); - foo(); - } - foo(); -} catch (e) { -} \ No newline at end of file diff --git a/implementation-contributed/javascriptcore/stress/regress-158437.js b/implementation-contributed/javascriptcore/stress/regress-158437.js deleted file mode 100644 index a9573fbaa7b76dcb40f7d490a3d057066db0a113..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-158437.js +++ /dev/null @@ -1,11 +0,0 @@ -// This test should not crash. - -try { - let x = eval("0o19"); -} catch(e) { -} - -try { - let x = eval("0b19"); -} catch(e) { -} diff --git a/implementation-contributed/javascriptcore/stress/regress-159537.js b/implementation-contributed/javascriptcore/stress/regress-159537.js deleted file mode 100644 index f60558884b007d2d9bc137c746d5388300940828..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-159537.js +++ /dev/null @@ -1,62 +0,0 @@ -// This test verifies that we don't crash in FTL generated code due to lack of a store barrier -// for a put-by-val when we don't know when the value was allocated. - -class MyNumber -{ - constructor(v) - { - this._v = v; - } - - plusOne() - { - return this._v + 1; - } -} - -noDFG(MyNumber.plusOne); - -let count = 0; -let bogus = null; - -function bar() -{ - count++; - - if (!(count % 100)) - fullGC(); - return new MyNumber(count); -} - -noDFG(bar); -noInline(bar); - -function foo(index, arg) -{ - var result = [arg[0]]; - if (arg.length > 1) - result[1] = bar(); - return result; -} - -noInline(foo); - -function test() -{ - for (let i = 0; i < 50000; i++) - { - let a = [1, i]; - let x = foo(i, a); - - if (!(count % 100)) - edenGC(); - - for (let j = 0; j < 100; j++) - bogus = new MyNumber(-1); - - if ((count + 1) != x[1].plusOne()) - throw("Wrong value for count"); - } -} - -test(); diff --git a/implementation-contributed/javascriptcore/stress/regress-159744.js b/implementation-contributed/javascriptcore/stress/regress-159744.js deleted file mode 100644 index 524fa13e16d775648194e013a02f3b9c5ad9baf7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-159744.js +++ /dev/null @@ -1,14 +0,0 @@ -// Regression test for 159744. This test should not crash or throw an exception. - -function testRegExp(pattern, flags, string, result) -{ - let r = new RegExp(pattern, flags); - if (r.exec(string) !== result) - throw("Expected " + r + "exec(\"" + string + "\") to return " + result + "."); -} - -testRegExp("(\\w+)(?:\\s(\\1)){1100000000,}", "i", "word Word WORD WoRd", null); -testRegExp("\\d{4,}.{1073741825}", "", "1234567\u1234", null); -testRegExp("(?:abcd){2148473648,}", "", "abcdabcdabcd", null); -testRegExp("(?:abcd){2148473648,}", "y", "abcdabcdabcd", null); -testRegExp("(ab){1073741825,}(xy){1073741825,}", "", "abxyabxy", null); diff --git a/implementation-contributed/javascriptcore/stress/regress-159779-1.js b/implementation-contributed/javascriptcore/stress/regress-159779-1.js deleted file mode 100644 index b07151d5aa2ee200585edaa19260a7cea2592357..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-159779-1.js +++ /dev/null @@ -1,4889 +0,0 @@ -//@ skip -//@ defaultRunNoisyTest - -var jsStrictMode = false; -var ENGINE_UNKNOWN = 0; -var ENGINE_SPIDERMONKEY_TRUNK = 1; -var ENGINE_SPIDERMONKEY_MOZILLA45 = 3; -var ENGINE_JAVASCRIPTCORE = 4;var engine = ENGINE_UNKNOWN; -var jsshell = (typeof window == "undefined"); -var xpcshell = jsshell && (typeof Components == "object"); -var dump; -var dumpln; -var printImportant; -if (jsshell) { - dumpln = print; - printImportant = function(s) { dumpln("***"); dumpln(s); }; - if (typeof verifyprebarriers == "function") { - - - - if (typeof wasmIsSupported == "function") { - engine = ENGINE_SPIDERMONKEY_TRUNK; - } else { - engine = ENGINE_SPIDERMONKEY_MOZILLA45; - } - readline = function(){}; - version(180); - } else if (typeof XPCNativeWrapper == "function") { - - engine = ENGINE_SPIDERMONKEY_TRUNK; - } else if (typeof debug == "function") { - engine = ENGINE_JAVASCRIPTCORE; - } -} else { - if (navigator.userAgent.indexOf("WebKit") != -1) { - - engine = ENGINE_JAVASCRIPTCORE; - - dump = function(s) { console.log(s); }; - } else if (navigator.userAgent.indexOf("Gecko") != -1) { - engine = ENGINE_SPIDERMONKEY_TRUNK; - } else if (typeof dump != "function") { - - dump = function() { }; - } - dumpln = function(s) { dump(s + "\n"); }; printImportant = function(s) { - dumpln(s); - var p = document.createElement("pre"); - p.appendChild(document.createTextNode(s)); - document.body.appendChild(p); - }; -}if (typeof gc == "undefined") - this.gc = function(){}; -var gcIsQuiet = !(gc()); -var HOTLOOP = 60; -function loopCount() { return rnd(rnd(HOTLOOP * 3)); } -function loopModulo() { return (rnd(2) ? rnd(rnd(HOTLOOP * 2)) : rnd(5)) + 2; }function simpleSource(s) -{ - function hexify(c) - { - var code = c.charCodeAt(0); - var hex = code.toString(16); - while (hex.length < 4) - hex = "0" + hex; - return "\\u" + hex; - } if (typeof s == "string") - return ("\"" + - s.replace(/\\/g, "\\\\") - .replace(/\"/g, "\\\"") - .replace(/\0/g, "\\0") - .replace(/\n/g, "\\n") - .replace(/[^ -~]/g, hexify) + - "\""); - else - return "" + s; -}var haveRealUneval = (typeof uneval == "function"); -if (!haveRealUneval) - uneval = simpleSource;if (engine == ENGINE_UNKNOWN) - printImportant("Targeting an unknown JavaScript engine!"); -else if (engine == ENGINE_SPIDERMONKEY_TRUNK) - printImportant("Targeting SpiderMonkey / Gecko (trunk)."); -else if (engine == ENGINE_SPIDERMONKEY_MOZILLA45) - printImportant("Targeting SpiderMonkey / Gecko (ESR45 branch)."); -else if (engine == ENGINE_JAVASCRIPTCORE) - printImportant("Targeting JavaScriptCore / WebKit."); -function whatToTestSpidermonkeyTrunk(code) -{ - /* jshint laxcomma: true */ - - var codeL = code.replace(/\s/g, " "); return { allowParse: true, allowExec: unlikelyToHang(code) - && (jsshell || code.indexOf("nogeckoex") == -1) - , allowIter: true, - - expectConsistentOutput: true - && (gcIsQuiet || code.indexOf("gc") == -1) - && code.indexOf("/*NODIFF*/") == -1 - && code.indexOf(".script") == -1 - && code.indexOf(".parameterNames") == -1 - && code.indexOf(".environment") == -1 - && code.indexOf(".onNewGlobalObject") == -1 - && code.indexOf(".takeCensus") == -1 - && code.indexOf(".findScripts") == -1 - && code.indexOf("Date") == -1 - && code.indexOf("backtrace") == -1 - && code.indexOf("drainAllocationsLog") == -1 - && code.indexOf("dumpObject") == -1 - && code.indexOf("dumpHeap") == -1 - && code.indexOf("dumpStringRepresentation") == -1 - && code.indexOf("evalInWorker") == -1 - && code.indexOf("getBacktrace") == -1 - && code.indexOf("getLcovInfo") == -1 - && code.indexOf("load") == -1 - && code.indexOf("offThreadCompileScript") == -1 - && code.indexOf("oomAfterAllocations") == -1 - && code.indexOf("oomAtAllocation") == -1 - && code.indexOf("printProfilerEvents") == -1 - && code.indexOf("validategc") == -1 - && code.indexOf("inIon") == -1 - && code.indexOf("inJit") == -1 - && code.indexOf("random") == -1 - && code.indexOf("timeout") == -1 - , expectConsistentOutputAcrossIter: true - - && code.indexOf("options") == -1 - , expectConsistentOutputAcrossJITs: true - - && code.indexOf("'strict") == -1 - && code.indexOf("disassemble") == -1 - && code.indexOf(".length") == -1 - && code.indexOf(".splice") == -1 - && !( codeL.match(/\/.*[\u0000\u0080-\uffff]/)) }; -}function whatToTestSpidermonkeyMozilla45(code) -{ - /* jshint laxcomma: true */ - - var codeL = code.replace(/\s/g, " "); return { allowParse: true, allowExec: unlikelyToHang(code) - && (jsshell || code.indexOf("nogeckoex") == -1) - , allowIter: true, - - expectConsistentOutput: true - && (gcIsQuiet || code.indexOf("gc") == -1) - && code.indexOf("/*NODIFF*/") == -1 - && code.indexOf(".script") == -1 - && code.indexOf(".parameterNames") == -1 - && code.indexOf(".environment") == -1 - && code.indexOf(".onNewGlobalObject") == -1 - && code.indexOf(".takeCensus") == -1 - && code.indexOf(".findScripts") == -1 - && code.indexOf("Date") == -1 - && code.indexOf("backtrace") == -1 - && code.indexOf("drainAllocationsLog") == -1 - && code.indexOf("dumpObject") == -1 - && code.indexOf("dumpHeap") == -1 - && code.indexOf("dumpStringRepresentation") == -1 - && code.indexOf("evalInWorker") == -1 - && code.indexOf("getBacktrace") == -1 - && code.indexOf("getLcovInfo") == -1 - && code.indexOf("load") == -1 - && code.indexOf("offThreadCompileScript") == -1 - && code.indexOf("oomAfterAllocations") == -1 - && code.indexOf("oomAtAllocation") == -1 - && code.indexOf("printProfilerEvents") == -1 - && code.indexOf("validategc") == -1 - && code.indexOf("inIon") == -1 - && code.indexOf("inJit") == -1 - && code.indexOf("random") == -1 - && code.indexOf("timeout") == -1 - , expectConsistentOutputAcrossIter: true - - && code.indexOf("options") == -1 - , expectConsistentOutputAcrossJITs: true - - && code.indexOf("'strict") == -1 - && code.indexOf("disassemble") == -1 - && code.indexOf(".length") == -1 - && code.indexOf("preventExtensions") == -1 - && code.indexOf("Math.round") == -1 - && code.indexOf("with") == -1 - && code.indexOf("Number.MAX_VALUE") == -1 - && code.indexOf("arguments") == -1 - && code.indexOf(".splice") == -1 - && !( codeL.match(/\/.*[\u0000\u0080-\uffff]/)) }; -}function whatToTestJavaScriptCore(code) -{ - return { allowParse: true, - allowExec: unlikelyToHang(code), - allowIter: false, - expectConsistentOutput: false, - expectConsistentOutputAcrossIter: false, - expectConsistentOutputAcrossJITs: false }; -}function whatToTestGeneric(code) -{ - return { - allowParse: true, - allowExec: unlikelyToHang(code), - allowIter: (typeof Iterator == "function"), - expectConsistentOutput: false, - expectConsistentOutputAcrossIter: false, - expectConsistentOutputAcrossJITs: false - }; -}var whatToTest; -if (engine == ENGINE_SPIDERMONKEY_TRUNK) - whatToTest = whatToTestSpidermonkeyTrunk; -else if (engine == ENGINE_SPIDERMONKEY_MOZILLA45) - whatToTest = whatToTestSpidermonkeyMozilla45; -else if (engine == ENGINE_JAVASCRIPTCORE) - whatToTest = whatToTestJavaScriptCore; -else - whatToTest = whatToTestGeneric; -function unlikelyToHang(code) -{ - var codeL = code.replace(/\s/g, " "); - return true - && code.indexOf("infloop") == -1 - && !( codeL.match( /for.*in.*uneval/ )) - && !( codeL.match( /for.*for.*for/ )) - && !( codeL.match( /for.*for.*gc/ )) - ; -} -function confused(s) -{ - if (jsshell) { - - print("jsfunfuzz broke its own scripting environment: " + s); - quit(); - } -}function foundABug(summary, details) -{ - - - printImportant("Found" + " a bug: " + summary); - if (details) { - printImportant(details); - } - if (jsshell) { - dumpln("jsfunfuzz stopping due to finding a bug."); - quit(); - } -}function errorToString(e) -{ - try { - return ("" + e); - } catch (e2) { - return "Can't toString the error!!"; - } -}function errorstack() -{ - print("EEE"); - try { - void ([].qwerty.qwerty); - } catch(e) { print(e.stack); } -} -var Random = { - twister: null, init: function (seed) { - if (seed == null || seed === undefined) { - seed = new Date().getTime(); - } - this.twister = new MersenneTwister19937(); - this.twister.seed(seed); - }, - number: function (limit) { - if (limit == 0) { - return limit; - } - if (limit == null || limit === undefined) { - limit = 0xffffffff; - } - return (Random.twister.int32() >>> 0) % limit; - }, - float: function () { - return (Random.twister.int32() >>> 0) * (1.0/4294967295.0); - }, - range: function (start, limit) { - if (isNaN(start) || isNaN(limit)) { - Utils.traceback(); - throw new TypeError("Random.range() received a non number type: '" + start + "', '" + limit + "')"); - } - return Random.number(limit - start + 1) + start; - }, - index: function (list, emptyr) { - if (!(list instanceof Array || (typeof list != "string" && "length" in list))) { - Utils.traceback(); - throw new TypeError("Random.index() received a non array type: '" + list + "'"); - } - if (!list.length) - return emptyr; - return list[this.number(list.length)]; - }, - key: function (obj) { - var list = []; - for (var i in obj) { - list.push(i); - } - return this.index(list); - }, - bool: function () { - return this.index([true, false]); - }, - pick: function (obj) { - if (typeof obj == "function") { - return obj(); - } - if (obj instanceof Array) { - return this.pick(this.index(obj)); - } - return obj; - }, - chance: function (limit) { - if (limit == null || limit === undefined) { - limit = 2; - } - if (isNaN(limit)) { - Utils.traceback(); - throw new TypeError("Random.chance() received a non number type: '" + limit + "'"); - } - return this.number(limit) == 1; - }, - choose: function (list, flat) { - if (!(list instanceof Array)) { - Utils.traceback(); - throw new TypeError("Random.choose() received a non-array type: '" + list + "'"); - } - var total = 0; - for (var i = 0; i < list.length; i++) { - total += list[i][0]; - } - var n = this.number(total); - for (var i = 0; i < list.length; i++) { - if (n <= list[i][0]) { - if (flat == true) { - return list[i][1]; - } else { - return this.pick([list[i][1]]); - } - } - n = n - list[i][0]; - } - if (flat == true) { - return list[0][1]; - } - return this.pick([list[0][1]]); - }, - weighted: function (wa) { - - var a = []; - for (var i = 0; i < wa.length; ++i) { - for (var j = 0; j < wa[i].w; ++j) { - a.push(wa[i].v); - } - } - return a; - }, - use: function (obj) { - return Random.bool() ? obj : ""; - }, - shuffle: function (arr) { - var len = arr.length; - var i = len; - while (i--) { - var p = Random.number(i + 1); - var t = arr[i]; - arr[i] = arr[p]; - arr[p] = t; - } - }, - shuffled: function (arr) { - var newArray = arr.slice(); - Random.shuffle(newArray); - return newArray; - }, - subset: function(a) { - - - var subset = []; - for (var i = 0; i < a.length; ++i) { - if (rnd(2)) { - subset.push(a[i]); - } - } - return subset; - },};function rnd(n) { return Random.number(n); } -/* - A C-program for MT19937, with initialization improved 2002/1/26. - Coded by Takuji Nishimura and Makoto Matsumoto. Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, - All rights reserved. Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. 3. The names of its contributors may not be used to endorse or promote - products derived from this software without specific prior written - permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - Any feedback is very welcome. - http: - email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) -*/ -function MersenneTwister19937() -{ - const N = 624; - const M = 397; - const MAG01 = new Int32Array([0, 0x9908b0df]); var mt = new Int32Array(N); /* the array for the state vector */ - var mti = 625; this.seed = function (s) { - mt[0] = s | 0; - for (mti=1; mti<N; mti++) { - mt[mti] = Math.imul(1812433253, mt[mti-1] ^ (mt[mti-1] >>> 30)) + mti; - } - }; this.export_state = function() { return [mt, mti]; }; - this.import_state = function(s) { mt = s[0]; mti = s[1]; }; - this.export_mta = function() { return mt; }; - this.import_mta = function(_mta) { mt = _mta; }; - this.export_mti = function() { return mti; }; - this.import_mti = function(_mti) { mti = _mti; }; function mag01(y) - { - return MAG01[y & 0x1]; - } this.int32 = function () { - var y; - var kk; if (mti >= N) { /* generate N words at one time */ - for (kk=0;kk<N-M;kk++) { - y = ((mt[kk]&0x80000000)|(mt[kk+1]&0x7fffffff)); - mt[kk] = (mt[kk+M] ^ (y >>> 1) ^ mag01(y)); - } - for (;kk<N-1;kk++) { - y = ((mt[kk]&0x80000000)|(mt[kk+1]&0x7fffffff)); - mt[kk] = (mt[kk+(M-N)] ^ (y >>> 1) ^ mag01(y)); - } - y = ((mt[N-1]&0x80000000)|(mt[0]&0x7fffffff)); - mt[N-1] = (mt[M-1] ^ (y >>> 1) ^ mag01(y)); - mti = 0; - } y = mt[mti++]; /* Tempering */ - y = y ^ (y >>> 11); - y = y ^ ((y << 7) & 0x9d2c5680); - y = y ^ ((y << 15) & 0xefc60000); - y = y ^ (y >>> 18); return y; - }; -} -function fuzzTestingFunctionsCtor(browser, fGlobal, fObject) -{ - var prefix = browser ? "fuzzPriv." : ""; function numberOfAllocs() { return Math.floor(Math.exp(rnd(rnd(6000)) / 1000)); } - function gcSliceSize() { return Math.floor(Math.pow(2, Random.float() * 32)); } - function maybeCommaShrinking() { return rnd(5) ? "" : ", 'shrinking'"; } function enableGCZeal() - { - var level = rnd(15); - if (browser && level == 9) level = 0; - var period = numberOfAllocs(); - return prefix + "gczeal" + "(" + level + ", " + period + ");"; - } function callSetGCCallback() { - - var phases = Random.index(["both", "begin", "end"]); - var actionAndOptions = rnd(2) ? 'action: "majorGC", depth: ' + rnd(17) : 'action: "minorGC"'; - var arg = "{ " + actionAndOptions + ", phases: \"" + phases + "\" }"; - return prefix + "setGCCallback(" + arg + ");"; - } function tryCatch(statement) - { - return "try { " + statement + " } catch(e) { }"; - } function setGcparam() { - switch(rnd(2)) { - case 0: return _set("sliceTimeBudget", rnd(100)); - default: return _set("markStackLimit", rnd(2) ? (1 + rnd(30)) : 4294967295); - } function _set(name, value) { - - return tryCatch(prefix + "gcparam" + "('" + name + "', " + value + ");"); - } - } - - var sharedTestingFunctions = [ - - { w: 10, v: function(d, b) { return "void " + prefix + "gc" + "(" + ");"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "gc" + "(" + "'compartment'" + maybeCommaShrinking() + ");"; } }, - { w: 5, v: function(d, b) { return "void " + prefix + "gc" + "(" + fGlobal(d, b) + maybeCommaShrinking() + ");"; } }, - { w: 20, v: function(d, b) { return prefix + "minorgc" + "(false);"; } }, - { w: 20, v: function(d, b) { return prefix + "minorgc" + "(true);"; } }, - - { w: 20, v: function(d, b) { return tryCatch(prefix + "startgc" + "(" + gcSliceSize() + maybeCommaShrinking() + ");"); } }, - { w: 20, v: function(d, b) { return prefix + "gcslice" + "(" + gcSliceSize() + ");"; } }, - { w: 10, v: function(d, b) { return prefix + "abortgc" + "(" + ");"; } }, - { w: 10, v: function(d, b) { return prefix + "selectforgc" + "(" + fObject(d, b) + ");"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "schedulegc" + "(" + fGlobal(d, b) + ");"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "schedulegc" + "(" + numberOfAllocs() + ");"; } }, - { w: 10, v: setGcparam }, - - - { w: 10, v: function(d, b) { return prefix + "verifyprebarriers" + "();"; } }, - - { w: 1, v: function(d, b) { return "void " + prefix + "hasChild(" + fObject(d, b) + ", " + fObject(d, b) + ");"; } }, - { w: 5, v: function(d, b) { return prefix + "validategc" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "validategc" + "(true);"; } }, - { w: 5, v: function(d, b) { return prefix + "fullcompartmentchecks" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "fullcompartmentchecks" + "(true);"; } }, - { w: 5, v: function(d, b) { return prefix + "setIonCheckGraphCoherency" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "setIonCheckGraphCoherency" + "(true);"; } }, - { w: 1, v: function(d, b) { return prefix + "enableOsiPointRegisterChecks" + "();"; } }, - { w: 1, v: function(d, b) { return prefix + "assertJitStackInvariants" + "();"; } }, - { w: 1, v: function(d, b) { return prefix + "setJitCompilerOption" + "('baseline.warmup.trigger', " + rnd(20) + ");"; } }, - { w: 1, v: function(d, b) { return prefix + "setJitCompilerOption" + "('ion.warmup.trigger', " + rnd(40) + ");"; } }, - { w: 1, v: function(d, b) { return prefix + "setJitCompilerOption" + "('ion.forceinlineCaches\', " + rnd(2) + ");"; } }, - - { w: 1, v: function(d, b) { return tryCatch(prefix + "setJitCompilerOption" + "('ion.enable', " + rnd(2) + ");"); } }, - { w: 1, v: function(d, b) { return tryCatch(prefix + "setJitCompilerOption" + "('baseline.enable', " + rnd(2) + ");"); } }, - { w: 1, v: function(d, b) { return prefix + "enableSPSProfiling" + "();"; } }, - { w: 1, v: function(d, b) { return prefix + "enableSPSProfilingWithSlowAssertions" + "();"; } }, - { w: 5, v: function(d, b) { return prefix + "disableSPSProfiling" + "();"; } }, - { w: 1, v: function(d, b) { return "void " + prefix + "readSPSProfilingStack" + "();"; } }, - { w: 5, v: function(d, b) { return prefix + "deterministicgc" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "deterministicgc" + "(true);"; } }, - { w: 5, v: function(d, b) { return prefix + "gcPreserveCode" + "();"; } }, - { w: 1, v: function(d, b) { return "void " + prefix + "getLcovInfo" + "();"; } }, - { w: 1, v: function(d, b) { return "void " + prefix + "getLcovInfo" + "(" + fGlobal(d, b) + ");"; } }, - ]; - - var shellOnlyTestingFunctions = [ - - { w: 5, v: function(d, b) { return prefix + "bailout" + "();"; } }, - - { w: 1, v: function(d, b) { return tryCatch("(void" + prefix + "disableSingleStepProfiling" + "()" + ")"); } }, - { w: 1, v: function(d, b) { return tryCatch("(" + prefix + "enableSingleStepProfiling" + "()" + ")"); } }, - { w: 10, v: function(d, b) { return "void " + prefix + "relazifyFunctions" + "();"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "relazifyFunctions" + "('compartment');"; } }, - { w: 5, v: function(d, b) { return "void " + prefix + "relazifyFunctions" + "(" + fGlobal(d, b) + ");"; } }, - - { w: 1, v: function(d, b) { return (typeof oomAfterAllocations == "function" && rnd(1000) === 0) ? prefix + "oomAfterAllocations" + "(" + (numberOfAllocs() - 1) + ");" : "void 0;"; } }, - - { w: 1, v: function(d, b) { return (typeof oomAtAllocation == "function" && rnd(100) === 0) ? prefix + "oomAtAllocation" + "(" + (numberOfAllocs() - 1) + ");" : "void 0;"; } }, - - { w: 1, v: function(d, b) { return (typeof resetOOMFailure == "function") ? "void " + prefix + "resetOOMFailure" + "(" + ");" : "void 0;"; } }, - - { w: 1, v: function(d, b) { return (rnd(100) === 0) ? (enableGCZeal()) : "void 0;"; } }, { w: 10, v: callSetGCCallback }, - ]; var testingFunctions = Random.weighted(browser ? sharedTestingFunctions : sharedTestingFunctions.concat(shellOnlyTestingFunctions)); return { testingFunctions: testingFunctions, enableGCZeal: enableGCZeal }; -} -/* - It might be more interesting to use Object.getOwnPropertyDescriptor to find out if - a thing is exposed as a getter (like Debugger.prototype.enabled). But there are exceptions: <Jesse> why is Array.prototype.length not a getter? http: - <jorendorff> backward compatibility - <jorendorff> ES3 already allowed programs to create objects with arbitrary __proto__ - <jorendorff> .length was specified to work as a data property; accessor properties inherit differently, especially when setting - <jorendorff> maybe only when setting, come to think of it - <jorendorff> I guess it could've been made an accessor property without breaking anything important. I didn't realize it at the time. -*/var constructors = []; -var builtinFunctions = []; -var builtinProperties = []; -var allMethodNames = []; -var allPropertyNames = []; var builtinObjectNames = []; -var builtinObjects = {}; (function exploreBuiltins(glob, debugMode) { function exploreDeeper(a, an) - { - if (!a) - return; - var hns = Object.getOwnPropertyNames(a); - var propertyNames = []; - for (var j = 0; j < hns.length; ++j) { - var hn = hns[j]; - propertyNames.push(hn); - allPropertyNames.push(hn); var fullName = an + "." + hn; - builtinProperties.push(fullName); var h; - try { - h = a[hn]; - } catch(e) { - if (debugMode) { - dumpln("Threw: " + fullName); - } - h = null; - } if (typeof h == "function" && hn != "constructor") { - allMethodNames.push(hn); - builtinFunctions.push(fullName); - } - } - builtinObjects[an] = propertyNames; - builtinObjectNames.push(an); - } function exploreConstructors() - { - var gns = Object.getOwnPropertyNames(glob); - for (var i = 0; i < gns.length; ++i) { - var gn = gns[i]; - - - if (0x40 < gn.charCodeAt(0) && gn.charCodeAt(0) < 0x60 && gn != "PerfMeasurement" && !(jsshell && gn == "Worker")) { - var g = glob[gn]; - if (typeof g == "function" && g.toString().indexOf("[native code]") != -1) { - constructors.push(gn); - builtinProperties.push(gn); - builtinFunctions.push(gn); - exploreDeeper(g, gn); - exploreDeeper(g.prototype, gn + ".prototype"); - } - } - } - } exploreConstructors(); exploreDeeper(Math, "Math"); - exploreDeeper(JSON, "JSON"); - exploreDeeper(Proxy, "Proxy"); if (debugMode) { - for (let x of constructors) print("^^^^^ " + x); - for (let x of builtinProperties) print("***** " + x); - for (let x of builtinFunctions) print("===== " + x); - for (let x of allMethodNames) print("!!!!! " + x); - for (let x of allPropertyNames) print("&&&&& " + x); - print(uneval(builtinObjects)); - quit(); - }})(this, false);function cat(toks) -{ - if (rnd(1700) === 0) - return totallyRandom(2, ["x"]); var torture = (rnd(1700) === 57); - if (torture) - dumpln("Torture!!!"); var s = maybeLineBreak(); - for (var i = 0; i < toks.length; ++i) { - - - - - if (typeof(toks[i]) != "string") { - dumpln("Strange item in the array passed to cat: typeof toks[" + i + "] == " + typeof(toks[i])); - dumpln(cat.caller); - dumpln(cat.caller.caller); - } if (!(torture && rnd(12) === 0)) - s += toks[i]; s += maybeLineBreak(); if (torture) switch(rnd(120)) { - case 0: - case 1: - case 2: - case 3: - case 4: - s += maybeSpace() + totallyRandom(2, ["x"]) + maybeSpace(); - break; - case 5: - s = "(" + s + ")"; - break; - case 6: - s = ""; - break; - case 7: - return s; - case 8: - s += UNTERMINATED_COMMENT; - break; - case 9: - s += UNTERMINATED_STRING_LITERAL; - break; - case 10: - if (rnd(2)) - s += "("; - s += UNTERMINATED_REGEXP_LITERAL; - break; - default: - } } return s; -} -/* -function catNice(toks) -{ - var s = "" - var i; - for (i=0; i<toks.length; ++i) { - if(typeof(toks[i]) != "string") - confused("Strange toks[i]: " + toks[i]); s += toks[i]; - } return s; -} -*/ -var UNTERMINATED_COMMENT = "/*"; /* this comment is here so my text editor won't get confused */ -var UNTERMINATED_STRING_LITERAL = "'"; -var UNTERMINATED_REGEXP_LITERAL = "/";function maybeLineBreak() -{ - if (rnd(900) === 3) - return Random.index(["\r", "\n", "//h\n", "/*\n*/"]); - else if (rnd(400) === 3) - return rnd(2) ? "\u000C" : "\t"; - else - return ""; -}function maybeSpace() -{ - if (rnd(2) === 0) - return " "; - else - return ""; -}function stripSemicolon(c) -{ - var len = c.length; - if (c.charAt(len - 1) == ";") - return c.substr(0, len - 1); - else - return c; -}var TOTALLY_RANDOM = 1000;var allMakers = getListOfMakers(this);function totallyRandom(d, b) { - d = d + (rnd(5) - 2); var maker = Random.index(allMakers); - var val = maker(d, b); - if (typeof val != "string") { - print(maker.name); - print(maker); - throw "We generated something that isn't a string!"; - } - return val; -}function getListOfMakers(glob) -{ - var r = []; - for (var f in glob) { - if (f.indexOf("make") == 0 && typeof glob[f] == "function" && f != "makeFinalizeObserver" && f != "makeFakePromise") { - r.push(glob[f]); - } - } - return r; -} -/* -function testEachMaker() -{ - for (var f of allMakers) { - dumpln(""); - dumpln(f.name); - dumpln("=========="); - dumpln(""); - for (var i = 0; i < 100; ++i) { - try { - var r = f(8, ["A", "B"]); - if (typeof r != "string") - throw ("Got a " + typeof r); - dumpln(r); - } catch(e) { - dumpln(""); - dumpln(uneval(e)); - dumpln(e.stack); - dumpln(""); - throw "testEachMaker found a bug in jsfunfuzz"; - } - } - dumpln(""); - } -} -*/ -/*************************** - * GENERATE ASM.JS MODULES * - ***************************/ -function asmJSInterior(foreignFunctions, sanePlease) -{ - function mess() - { - if (!sanePlease && rnd(600) === 0) - return makeStatement(8, ["x"]) + "\n"; - if (!sanePlease && rnd(600) === 0) - return totallyRandom(8, ["x"]); - return ""; - } var globalEnv = {stdlibImported: {}, stdlibImports: "", heapImported: {}, heapImports: "", foreignFunctions: foreignFunctions, sanePlease: !!sanePlease}; - var asmFunDecl = asmJsFunction(globalEnv, "f", rnd(2) ? "signed" : "double", [rnd(2) ? "i0" : "d0", rnd(2) ? "i1" : "d1"]); - var interior = mess() + globalEnv.stdlibImports + - mess() + importForeign(foreignFunctions) + - mess() + globalEnv.heapImports + - mess() + asmFunDecl + - mess() + " return f;" + - mess(); - return interior; -}function importForeign(foreignFunctions) -{ - var s = ""; - for (let h of foreignFunctions) { - s += " var " + h + " = foreign." + h + ";\n"; - } - return s; -}function asmJsFunction(globalEnv, name, ret, args) -{ - var s = " function " + name + "(" + args.join(", ") + ")\n"; - s += " {\n"; - s += parameterTypeAnnotations(args); - var locals = args; - while (rnd(2)) { - var isDouble = rnd(2); - var local = (isDouble ? "d" : "i") + locals.length; - s += " var " + local + " = " + (isDouble ? doubleLiteral() : "0") + ";\n"; - locals.push(local); - } var env = {globalEnv: globalEnv, locals: locals, ret: ret}; - if (locals.length) { - while (rnd(5)) { - s += asmStatement(" ", env, 6); - } - } - if (ret != "void" || rnd(2)) - s += asmReturnStatement(" ", env); s += " }\n"; return s; -}function asmStatement(indent, env, d) -{ - if (!env.globalEnv.sanePlease && rnd(100) === 0) - return makeStatement(3, ["x"]); if (rnd(5) === 0 && d > 0) { - return indent + "{\n" + asmStatement(indent + " ", env, d - 1) + indent + "}\n"; - } - if (rnd(20) === 0 && d > 3) { - return asmSwitchStatement(indent, env, d); - } - if (rnd(10) === 0) { - return asmReturnStatement(indent, env); - } - if (rnd(50) === 0 && env.globalEnv.foreignFunctions.length) { - return asmVoidCallStatement(indent, env); - } - if (rnd(100) === 0) - return ";"; - return asmAssignmentStatement(indent, env); -}function asmVoidCallStatement(indent, env) -{ - return indent + asmFfiCall(8, env) + ";\n"; -}function asmAssignmentStatement(indent, env) -{ - if (rnd(5) === 0 || !env.locals.length) { - if (rnd(2)) { - return indent + intishMemberExpr(8, env) + " = " + intishExpr(10, env) + ";\n"; - } else { - return indent + doublishMemberExpr(8, env) + " = " + doublishExpr(10, env) + ";\n"; - } - } var local = Random.index(env.locals); - if (local.charAt(0) == "d") { - return indent + local + " = " + doubleExpr(10, env) + ";\n"; - } else { - return indent + local + " = " + intExpr(10, env) + ";\n"; - } -}function asmReturnStatement(indent, env) -{ - var ret = rnd(2) ? env.ret : Random.index(["double", "signed", "void"]); - if (env.ret == "double") - return indent + "return +" + doublishExpr(10, env) + ";\n"; - else if (env.ret == "signed") - return indent + "return (" + intishExpr(10, env) + ")|0;\n"; - else - return indent + "return;\n"; -}function asmSwitchStatement(indent, env, d) -{ - var s = indent + "switch (" + signedExpr(4, env) + ") {\n"; - while (rnd(3)) { - s += indent + " case " + (rnd(5)-3) + ":\n"; - s += asmStatement(indent + " ", env, d - 2); - if (rnd(4)) - s += indent + " break;\n"; - } - if (rnd(2)) { - s += indent + " default:\n"; - s += asmStatement(indent + " ", env, d - 2); - } - s += indent + "}\n"; - return s; -}function parameterTypeAnnotations(args) -{ - var s = ""; - for (var a = 0; a < args.length; ++a) { - var arg = args[a]; - if (arg.charAt(0) == "i") - s += " " + arg + " = " + arg + "|0;\n"; - else - s += " " + arg + " = " + "+" + arg + ";\n"; - } - return s; -} -var additive = ["+", "-"]; -var intExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return intLiteralRange(-0x8000000, 0xffffffff); }}, - {w: 1, v: function(d, e) { return intExpr(d - 3, e) + " ? " + intExpr(d - 3, e) + " : " + intExpr(d - 3, e); }}, - {w: 1, v: function(d, e) { return "!" + intExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return signedExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 1, e); }}, - {w: 10, v: function(d, e) { return intVar(e); }}, - {w: 1, v: function(d, e) { return e.globalEnv.foreignFunctions.length ? asmFfiCall(d, e) + "|0" : "1"; }}, - {w: 1, v: function(d, e) { return signedExpr(d - 2, e) + Random.index([" < ", " <= ", " > ", " >= ", " == ", " != "]) + signedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 2, e) + Random.index([" < ", " <= ", " > ", " >= ", " == ", " != "]) + unsignedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doubleExpr(d - 2, e) + Random.index([" < ", " <= ", " > ", " >= ", " == ", " != "]) + doubleExpr(d - 2, e); }}, -]));var intishExpr = autoExpr(Random.weighted([ - {w: 10, v: function(d, e) { return intExpr(d, e); }}, - {w: 1, v: function(d, e) { return intishMemberExpr(d, e); }}, - - {w: 10, v: function(d, e) { return intExpr(d - 1, e) + Random.index(additive) + intExpr(d - 1, e); }}, - {w: 5, v: function(d, e) { return intExpr(d - 2, e) + Random.index(additive) + intExpr(d - 2, e) + Random.index(additive) + intExpr(d - 2, e); }}, - - {w: 2, v: function(d, e) { return intExpr(d - 1, e) + "*" + intLiteralRange(-0xfffff, 0xfffff); }}, - {w: 2, v: function(d, e) { return intLiteralRange(-0xfffff, 0xfffff) + "*" + intExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "-" + intExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return signedExpr(d - 2, e) + " / " + signedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 2, e) + " / " + unsignedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return signedExpr(d - 2, e) + " % " + signedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 2, e) + " % " + unsignedExpr(d - 2, e); }}, -]));var signedExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return intLiteralRange(-0x8000000, 0x7fffffff); }}, - {w: 1, v: function(d, e) { return "~" + intishExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "~~" + doubleExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return intishExpr(d - 1, e) + "|0"; }}, - {w: 1, v: function(d, e) { return ensureMathImport(e, "imul") + "(" + intExpr(d - 2, e) + ", " + intExpr(d - 2, e) + ")|0"; }}, - {w: 1, v: function(d, e) { return ensureMathImport(e, "abs") + "(" + signedExpr(d - 1, e) + ")|0"; }}, - {w: 5, v: function(d, e) { return intishExpr(d - 2, e) + Random.index([" | ", " & ", " ^ ", " << ", " >> "]) + intishExpr(d - 2, e); }}, -]));var unsignedExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return intLiteralRange(0, 0xffffffff); }}, - {w: 1, v: function(d, e) { return intishExpr(d - 2, e) + ">>>" + intishExpr(d - 2, e); }}, -]));var doublishExpr = autoExpr(Random.weighted([ - {w: 10, v: function(d, e) { return doubleExpr(d, e); }}, - {w: 1, v: function(d, e) { return doublishMemberExpr(d, e); }}, - -]));var doubleExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return doubleLiteral(); }}, - {w: 20, v: function(d, e) { return doubleVar(e); }}, - {w: 1, v: function(d, e) { return e.globalEnv.foreignFunctions.length ? "+" + asmFfiCall(d, e) : "1.0"; }}, - {w: 1, v: function(d, e) { return "+(1.0/0.0)"; }}, - {w: 1, v: function(d, e) { return "+(0.0/0.0)"; }}, - {w: 1, v: function(d, e) { return "+(-1.0/0.0)"; }}, - - {w: 1, v: function(d, e) { return "+" + signedExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "+" + unsignedExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "+" + doublishExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "-" + doublishExpr(d - 1, e); }}, - - {w: 1, v: function(d, e) { return doubleExpr(d - 2, e) + " + " + doubleExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " - " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " * " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " / " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " % " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return intExpr(d - 3, e) + " ? " + doubleExpr(d - 3, e) + " : " + doubleExpr(d - 3, e); }}, - - {w: 1, v: function(d, e) { return "+" + ensureMathImport(e, Random.index(["acos", "asin", "atan", "cos", "sin", "tan", "ceil", "floor", "exp", "log", "sqrt"])) + "(" + doublishExpr(d - 1, e) + ")"; }}, - {w: 1, v: function(d, e) { return "+" + ensureMathImport(e, "abs") + "(" + doublishExpr(d - 1, e) + ")"; }}, - {w: 1, v: function(d, e) { return "+" + ensureMathImport(e, Random.index(["atan2", "pow"])) + "(" + doublishExpr(d - 2, e) + ", " + doublishExpr(d - 2, e) + ")"; }}, - {w: 1, v: function(d, e) { return ensureImport(e, "Infinity"); }}, - {w: 1, v: function(d, e) { return ensureImport(e, "NaN"); }}, -]));var externExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return doubleExpr(d, e); } }, - {w: 1, v: function(d, e) { return signedExpr(d, e); } }, -]));var intishMemberExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return ensureView(e, Random.index(["Int8Array", "Uint8Array" ])) + "[" + asmIndex(d, e, 0) + "]"; }}, - {w: 1, v: function(d, e) { return ensureView(e, Random.index(["Int16Array", "Uint16Array"])) + "[" + asmIndex(d, e, 1) + "]"; }}, - {w: 1, v: function(d, e) { return ensureView(e, Random.index(["Int32Array", "Uint32Array"])) + "[" + asmIndex(d, e, 2) + "]"; }}, -]), true);var doublishMemberExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return ensureView(e, "Float32Array") + "[" + asmIndex(d, e, 2) + "]"; }}, - {w: 1, v: function(d, e) { return ensureView(e, "Float64Array") + "[" + asmIndex(d, e, 3) + "]"; }}, -]), true);function asmIndex(d, e, logSize) -{ - if (rnd(2) || d < 2) - return Random.index(["0", "1", "2", "4096"]); return intishExpr(d - 2, e) + " >> " + logSize; -}function asmFfiCall(d, e) -{ - var argList = ""; - while (rnd(6)) { - if (argList) - argList += ", "; - d -= 1; - argList += externExpr(d, e); - } return "/*FFI*/" + Random.index(e.globalEnv.foreignFunctions) + "(" + argList + ")"; -} -function ensureView(e, t) -{ - var varName = t + "View"; - if (!(varName in e.globalEnv.heapImported)) { - e.globalEnv.heapImports += " var " + varName + " = new stdlib." + t + "(heap);\n"; - e.globalEnv.heapImported[varName] = true; - } - return varName; -}function ensureMathImport(e, f) -{ - return ensureImport(e, f, "Math."); -}function ensureImport(e, f, prefix) -{ - if (!(f in e.globalEnv.stdlibImported)) { - e.globalEnv.stdlibImports += " var " + f + " = stdlib." + (prefix||"") + f + ";\n"; - e.globalEnv.stdlibImported[f] = true; - } - return f; -} -var anyAsmExpr = [intExpr, intishExpr, signedExpr, doublishExpr, doubleExpr, intishMemberExpr, doublishMemberExpr];function autoExpr(funs, avoidSubst) -{ - return function(d, e) { - var f = d < 1 ? funs[0] : - rnd(50) === 0 && !e.globalEnv.sanePlease ? function(_d, _e) { return makeExpr(5, ["x"]); } : - rnd(50) === 0 && !avoidSubst ? Random.index(anyAsmExpr) : - Random.index(funs); - return "(" + f(d, e) + ")"; - }; -}function intVar(e) -{ - var locals = e.locals; - if (!locals.length) - return intLiteralRange(-0x8000000, 0xffffffff); - var local = Random.index(locals); - if (local.charAt(0) == "i") - return local; - return intLiteralRange(-0x8000000, 0xffffffff); -}function doubleVar(e) -{ - var locals = e.locals; - if (!locals.length) - return doubleLiteral(); - var local = Random.index(locals); - if (local.charAt(0) == "d") - return local; - return doubleLiteral(); -} -function doubleLiteral() -{ - return Random.index(["-", ""]) + positiveDoubleLiteral(); -}function positiveDoubleLiteral() -{ - if (rnd(3) === 0) { - Random.index(["0.0", "1.0", "1.2345e60"]); - } - var value = Math.pow(2, rnd(100) - 10); - if (rnd(3)) { - value += 1; - } else if (value > 1 && rnd(2)) { - value -= 1; - } var str = value + ""; - if (str.indexOf(".") == -1) { - return str + ".0"; - } - - return str; -}function fuzzyRange(min, max) -{ - if (rnd(10000) === 0) - return min - 1; - if (rnd(10000) === 0) - return max + 1; - if (rnd(10) === 0) - return min; - if (rnd(10) === 0) - return max; - if (max > min + 0x100000000 && rnd(3) === 0) - return min + 0x100000000 + rnd(max - (min + 0x100000000) + 1); - return min + rnd(max - min + 1); -}function intLiteralRange(min, max) -{ - var val = fuzzyRange(min, max); - var sign = val < 0 ? "-" : ""; - return sign + "0x" + Math.abs(val).toString(16); -} -const NUM_MATH_FUNCTIONS = 6;var binaryMathOps = [ - " * ", /* NODIFF " / " */, " % ", - " + ", " - ", - " ** ", - " << ", " >> ", " >>> ", - " < ", " > ", " <= ", " >= ", - " == ", " != ", - " === ", " !== ", - " & ", " | ", " ^ ", " && ", " || ", - " , ", -];var leftUnaryMathOps = [ - " ! ", " + ", " - ", " ~ ", -];var unaryMathFunctions = [ - "abs", - "acos", - "acosh", - "asin", - "asinh", - "atan", - "atanh", - "cbrt", - "ceil", - "cos", - "cosh", - "exp", - "expm1", - - "fround", - "log", - "log2", - "log10", - "log1p", - - "round", - "sign", - "sin", - "sinh", - "sqrt", - "tan", - "tanh", - "trunc", -]; -var binaryMathFunctions = [ - "atan2", - "hypot", - "imul", - "max", - "min", - "pow", -];function makeMathFunction(d, b, i) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var ivars = ["x", "y"]; - if (rnd(10) == 0) { - - ivars = ivars.concat(b); - } - return "(function(x, y) { " + directivePrologue() + "return " + makeMathExpr(d, ivars, i) + "; })"; -}function makeMathExpr(d, b, i) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - if (d < rnd(5)) { - if (rnd(4)) { - return Random.index(b); - } - return Random.index(numericVals); - } if (rnd(500) == 0 && d > 0) - return makeExpr(d - 1, b); function r() { return makeMathExpr(d - 1, b, i); } - - var commonCoercion = rnd(10); - function mc(expr) { - switch(rnd(3) ? commonCoercion : rnd(10)) { - case 0: return "(" + " + " + expr + ")"; - case 1: return "Math.fround(" + expr + ")"; - case 2: return "(" + expr + " | 0)"; - case 3: return "(" + expr + " >>> 0)"; - default: return expr; - } - } if (i > 0 && rnd(10) == 0) { - - return mc("mathy" + rnd(i) + "(" + mc(r()) + ", " + mc(r()) + ")"); - } if (rnd(20) == 0) { - return mc("(" + mc(r()) + " ? " + mc(r()) + " : " + mc(r()) + ")"); - } switch(rnd(4)) { - case 0: return mc("(" + mc(r()) + Random.index(binaryMathOps) + mc(r()) + ")"); - case 1: return mc("(" + Random.index(leftUnaryMathOps) + mc(r()) + ")"); - case 2: return mc("Math." + Random.index(unaryMathFunctions) + "(" + mc(r()) + ")"); - default: return mc("Math." + Random.index(binaryMathFunctions) + "(" + mc(r()) + ", " + mc(r()) + ")"); - } -}/**************************** - * GRAMMAR-BASED GENERATION * - ****************************/ -function makeScript(d, ignoredB) -{ - return directivePrologue() + makeScriptBody(d, ignoredB); -}function makeScriptBody(d, ignoredB) -{ - if (rnd(3) == 0) { - return makeMathyFunAndTest(d, ["x"]); - } - return makeStatement(d, ["x"]); -}function makeScriptForEval(d, b) -{ - switch (rnd(4)) { - case 0: return makeExpr(d - 1, b); - case 1: return makeStatement(d - 1, b); - case 2: return makeUseRegressionTest(d, b); - default: return makeScript(d - 3, b); - } -}function makeStatement(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(2)) - return makeBuilderStatement(d, b); if (d < 6 && rnd(3) === 0) - return makePrintStatement(d, b); if (d < rnd(8)) - return makeLittleStatement(d, b); d = rnd(d); return (Random.index(statementMakers))(d, b); -}var varBinder = ["var ", "let ", "const ", ""]; -var varBinderFor = ["var ", "let ", ""]; -function forLoopHead(d, b, v, reps) -{ - var sInit = Random.index(varBinderFor) + v + " = 0"; - var sCond = v + " < " + reps; - var sNext = "++" + v; while (rnd(10) === 0) - sInit += ", " + makeLetHeadItem(d - 2, b); - while (rnd(10) === 0) - sInit += ", " + makeExpr(d - 2, b); while (rnd(20) === 0) - sCond = sCond + " && (" + makeExpr(d - 2, b) + ")"; - while (rnd(20) === 0) - sCond = "(" + makeExpr(d - 2, b) + ") && " + sCond; while (rnd(20) === 0) - sNext = sNext + ", " + makeExpr(d - 2, b); - while (rnd(20) === 0) - sNext = makeExpr(d - 2, b) + ", " + sNext; return "for (" + sInit + "; " + sCond + "; " + sNext + ")"; -}function makeOpaqueIdiomaticLoop(d, b) -{ - var reps = loopCount(); - var vHidden = uniqueVarName(); - return "/*oLoop*/" + forLoopHead(d, b, vHidden, reps) + " { " + - makeStatement(d - 2, b) + - " } "; -}function makeTransparentIdiomaticLoop(d, b) -{ - var reps = loopCount(); - var vHidden = uniqueVarName(); - var vVisible = makeNewId(d, b); - return "/*vLoop*/" + forLoopHead(d, b, vHidden, reps) + - " { " + - Random.index(varBinder) + vVisible + " = " + vHidden + "; " + - makeStatement(d - 2, b.concat([vVisible])) + - " } "; -}function makeBranchUnstableLoop(d, b) -{ - var reps = loopCount(); - var v = uniqueVarName(); - var mod = loopModulo(); - var target = rnd(mod); - return "/*bLoop*/" + forLoopHead(d, b, v, reps) + " { " + - "if (" + v + " % " + mod + " == " + target + ") { " + makeStatement(d - 2, b) + " } " + - "else { " + makeStatement(d - 2, b) + " } " + - " } "; -}function makeTypeUnstableLoop(d, b) { - var a = makeMixedTypeArray(d, b); - var v = makeNewId(d, b); - var bv = b.concat([v]); - return "/*tLoop*/for (let " + v + " of " + a + ") { " + makeStatement(d - 2, bv) + " }"; -} -function makeFunOnCallChain(d, b) { - var s = "arguments.callee"; - while (rnd(2)) - s += ".caller"; - return s; -} -var statementMakers = Random.weighted([ - { w: 15, v: function(d, b) { return cat([makeStatement(d - 1, b), makeStatement(d - 1, b) ]); } }, - { w: 15, v: function(d, b) { return cat([makeStatement(d - 1, b), "\n", makeStatement(d - 1, b), "\n"]); } }, - { w: 1, v: function(d, b) { return cat([stripSemicolon(makeStatement(d, b)), "\n", makeStatement(d, b)]); } }, - { w: 1, v: function(d, b) { return cat([stripSemicolon(makeStatement(d, b)), "\n" ]); } }, - { w: 1, v: function(d, b) { return stripSemicolon(makeStatement(d, b)); } }, - { w: 4, v: function(d, b) { var v = makeNewId(d, b); return cat([Random.index(varBinder), v, " = ", makeExpr(d, b), ";", makeStatement(d - 1, b.concat([v]))]); } }, - { w: 4, v: function(d, b) { var v = makeNewId(d, b); return cat([makeStatement(d - 1, b.concat([v])), Random.index(varBinder), v, " = ", makeExpr(d, b), ";"]); } }, - { w: 10, v: function(d, b) { return cat([Random.index(varBinder), makeLetHead(d, b), ";", makeStatement(d - 1, b)]); } }, - { w: 2, v: function(d, b) { return cat(["{", makeStatement(d, b), " }"]); } }, - { w: 2, v: function(d, b) { return cat(["{", makeStatement(d - 1, b), makeStatement(d - 1, b), " }"]); } }, - { w: 2, v: function(d, b) { return cat([maybeLabel(), "with", "(", makeExpr(d, b), ")", makeStatementOrBlock(d, b)]); } }, - { w: 2, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "with", "(", "{", v, ": ", makeExpr(d, b), "}", ")", makeStatementOrBlock(d, b.concat([v]))]); } }, - - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", makeExpr(d, b), "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " = ", makeExpr(d, b), "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeDestructuringLValue(d, b), " = ", makeExpr(d, b), "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 6, v: makeTransparentIdiomaticLoop }, - { w: 6, v: makeOpaqueIdiomaticLoop }, - { w: 6, v: makeBranchUnstableLoop }, - { w: 8, v: makeTypeUnstableLoop }, - - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeForInLHS(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeForInLHS(d, b), " in ", "(", "(", makeFunction(d, b), ")", "(", makeExpr(d, b), ")", ")", ")", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " in ", "(", "(", makeFunction(d, b), ")", "(", makeExpr(d, b), ")", ")", ")", makeStatementOrBlock(d, b.concat([v]))]); } }, - - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), " for ", " each", "(", Random.index(varBinderFor), makeLValue(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), " for ", " each", "(", Random.index(varBinderFor), v, " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), " for ", "(", Random.index(varBinderFor), makeLValue(d, b), " of ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), " for ", "(", Random.index(varBinderFor), v, " of ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - - - - - - { w: 1, v: function(d, b) { return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeId(d, b), " = ", makeExpr(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " = ", makeExpr(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b), w = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), "[", v, ", ", w, "]", " = ", makeExpr(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v, w]))]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "while((", makeExpr(d, b), ") && 0)" /*don't split this, it's needed to avoid marking as infloop*/, makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "while", "(", makeExpr(d, b), ")", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "do ", makeStatementOrBlock(d, b), " while((", makeExpr(d, b), ") && 0)" /*don't split this, it's needed to avoid marking as infloop*/, ";"]); } }, - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "do ", makeStatementOrBlock(d, b), " while", "(", makeExpr(d, b), ");"]); } }, - { w: 3, v: function(d, b) { return cat([maybeLabel(), "switch", "(", makeExpr(d, b), ")", " { ", makeSwitchBody(d, b), " }"]); } }, - { w: 2, v: function(d, b) { var v = makeNewId(d, b); return cat(["let ", "(", v, ")", " { ", makeStatement(d, b.concat([v])), " }"]); } }, - { w: 2, v: function(d, b) { return cat(["let ", "(", makeLetHead(d, b), ")", " { ", makeStatement(d, b), " }"]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", makeStatementOrBlock(d - 1, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", makeStatementOrBlock(d - 1, b)]); } }, - - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", "{", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", makeStatementOrBlock(d - 1, b), "}"]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", "{", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b), "}", " else ", makeStatementOrBlock(d - 1, b)]); } }, - { w: 5, v: function(d, b) { return cat([makeExpr(d, b), ";"]); } }, - { w: 5, v: function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); } }, - { w: 6, v: function(d, b) { return makeExceptionyStatement(d - 1, b) + makeExceptionyStatement(d - 1, b); } }, - { w: 7, v: function(d, b) { return makeExceptionyStatement(d, b); } }, - { w: 1, v: function(d, b) { return cat(["L", ": ", makeStatementOrBlock(d, b)]); } }, - { w: 10, v: function(d, b) { return cat([makeStatement(d-2, b), "function ", makeId(d, b), "(", makeFormalArgList(d, b), ")", makeFunctionBody(d - 1, b), makeStatement(d-2, b)]); } }, - { w: 8, v: makeNamedFunctionAndUse }, - - - { w: 1, v: function(d, b) { if (rnd(200)==0) return "/*DUPTRY" + rnd(10000) + "*/" + makeStatement(d - 1, b); return ";"; } }, { w: 1, v: function(d, b) { return makeShapeyConstructorLoop(d, b); } }, - { w: 1, v: function(d, b) { var x = makeId(d, b); return x + " = linkedList(" + x + ", " + (rnd(100) * rnd(100)) + ");"; } }, - { w: 1, v: function(d, b) { return directivePrologue() + makeStatement(d - 1, b); } }, - { w: 3, v: function(d, b) { return makeTestingFunctionCall(d, b); } }, - { w: 3, v: function(d, b) { return makeTestingFunctionCall(d - 1, b) + " " + makeStatement(d - 1, b); } }, - { w: 8, v: makeTypedArrayStatements }, - { w: 8, v: makePrintStatement }, { w: 20, v: makeRegexUseBlock }, { w: 1, v: makeRegisterStompBody }, { w: 20, v: makeUseRegressionTest }, - - -]);if (typeof oomTest == "function" && engine != ENGINE_SPIDERMONKEY_MOZILLA45) { - statementMakers = statementMakers.concat([ - function(d, b) { return "oomTest(" + makeFunction(d, b-1) + ")"; }, - ]); -} -function makeUseRegressionTest(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (typeof regressionTestList != "object") { - return "/* no regression tests found */"; - } var maintest = regressionTestsRoot + Random.index(regressionTestList); - var files = regressionTestDependencies(maintest); var s = ""; if (rnd(5) == 0) { - - - s += "assertEq = function(x, y) { if (x != y) { print(0); } }; "; - } for (var i = 0; i < files.length; ++i) { - var file = files[i]; if (regressionTestIsEvil(read(file))) { - continue; - } switch (rnd(2)) { - case 0: - - s += "/* regression-test-inline */ " + inlineRegressionTest(file); - break; - default: - - s += "/* regression-test-load */ " + "load(" + simpleSource(file) + ");"; - break; - - } - } - return s; -}function regressionTestIsEvil(contents) -{ - if (contents.indexOf("SIMD") != -1) { - - return true; - } - if (contents.indexOf("print = ") != -1) { - - return true; - } - return false; -}function inlineRegressionTest(filename) -{ - const s = "/* " + filename + " */ " + read(filename) + "\n"; const noDiffTestingFunctions = [ - - "gcparam", - "startgc", - "setJitCompilerOption", - "disableSingleStepProfiling", - "enableSingleStepProfiling", - - "isAsmJSCompilationAvailable", - "isSimdAvailable", - "hasChild", - "PerfMeasurement", - ]; for (var f of noDiffTestingFunctions) { - if (s.indexOf(f) != -1) { - return "/*NODIFF*/ " + s; - } - } return s; -} -function regressionTestDependencies(maintest) -{ - var files = []; if (rnd(3)) { - - for (var i = regressionTestsRoot.length; i < maintest.length; ++i) { - if (maintest.charAt(i) == "/" || maintest.charAt(i) == "\\") { - var shelljs = maintest.substr(0, i + 1) + "shell.js"; - if (regressionTestList.indexOf(shelljs) != -1) { - files.push(shelljs); - } - } - } - if (maintest.indexOf("jit-test") != -1) { - files.push(libdir + "prologue.js"); - } - } files.push(maintest); - return files; -} -function linkedList(x, n) -{ - for (var i = 0; i < n; ++i) - x = {a: x}; - return x; -}function makeNamedFunctionAndUse(d, b) { - - var funcName = uniqueVarName(); - var formalArgList = makeFormalArgList(d, b); - var bv = formalArgList.length == 1 ? b.concat(formalArgList) : b; - var declStatement = cat(["/*hhh*/function ", funcName, "(", formalArgList, ")", "{", makeStatement(d - 1, bv), "}"]); - var useStatement; - if (rnd(2)) { - - useStatement = cat([funcName, "(", makeActualArgList(d, b), ")", ";"]); - } else { - - useStatement = "/*iii*/" + makeStatement(d - 1, b.concat([funcName])); - } - if (rnd(2)) { - return declStatement + useStatement; - } else { - return useStatement + declStatement; - } -}function makePrintStatement(d, b) -{ - if (rnd(2) && b.length) - return "print(" + Random.index(b) + ");"; - else - return "print(" + makeExpr(d, b) + ");"; -} -function maybeLabel() -{ - if (rnd(4) === 1) - return cat([Random.index(["L", "M"]), ":"]); - else - return ""; -} -function uniqueVarName() -{ - - var i, s = ""; - for (i = 0; i < 6; ++i) - s += String.fromCharCode(97 + rnd(26)); - return s; -}function makeSwitchBody(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var haveSomething = false; - var haveDefault = false; - var output = ""; do { if (!haveSomething || rnd(2)) { - if (!haveDefault && rnd(2)) { - output += "default: "; - haveDefault = true; - } - else { - - - output += "case " + (rnd(2) ? rnd(10) : makeExpr(d, b)) + ": "; - } haveSomething = true; - } - if (rnd(2)) - output += makeStatement(d, b); - if (rnd(2)) - output += "break; "; if (rnd(2)) - --d; } while (d && rnd(5)); return output; -}function makeLittleStatement(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if (rnd(4) === 1) - return makeStatement(d, b); return (Random.index(littleStatementMakers))(d, b); -}var littleStatementMakers = -[ - - function(d, b) { return cat([";"]); }, - function(d, b) { return cat(["{", "}"]); }, - function(d, b) { return cat([""]); }, - function(d, b) { return cat(["throw ", makeExpr(d, b), ";"]); }, - function(d, b) { return cat([Random.index(["continue", "break"]), " ", Random.index(["L", "M", "", ""]), ";"]); }, - - function(d, b) { return makeFunction(d, b); }, - function(d, b) { return cat(["return ", makeExpr(d, b), ";"]); }, - function(d, b) { return "return;"; }, - function(d, b) { return cat(["yield ", makeExpr(d, b), ";"]); }, - function(d, b) { return "yield;"; }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, -]; -function makeStatementOrBlock(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return (Random.index(statementBlockMakers))(d - 1, b); -}var statementBlockMakers = [ - function(d, b) { return makeStatement(d, b); }, - function(d, b) { return makeStatement(d, b); }, - function(d, b) { return cat(["{", makeStatement(d, b), " }"]); }, - function(d, b) { return cat(["{", makeStatement(d - 1, b), makeStatement(d - 1, b), " }"]); }, -]; -function makeExceptionyStatement(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; - if (d < 1) - return makeLittleStatement(d, b); return (Random.index(exceptionyStatementMakers))(d, b); -}var exceptionProperties = ["constructor", "message", "name", "fileName", "lineNumber", "stack"];var exceptionyStatementMakers = [ - function(d, b) { return makeTryBlock(d, b); }, function(d, b) { return makeStatement(d, b); }, - function(d, b) { return makeLittleStatement(d, b); }, function(d, b) { return "return;"; }, - function(d, b) { return cat(["return ", makeExpr(d, b), ";"]); }, - function(d, b) { return cat(["yield ", makeExpr(d, b), ";"]); }, - function(d, b) { return cat(["throw ", makeId(d, b), ";"]); }, - function(d, b) { return "throw StopIteration;"; }, - function(d, b) { return "this.zzz.zzz;"; }, - function(d, b) { return b[b.length - 1] + "." + Random.index(exceptionProperties) + ";"; }, - function(d, b) { return makeId(d, b) + "." + Random.index(exceptionProperties) + ";"; }, - function(d, b) { return cat([makeId(d, b), " = ", makeId(d, b), ";"]); }, - function(d, b) { return cat([makeLValue(d, b), " = ", makeId(d, b), ";"]); }, - - function(d, b) { var v = makeNewId(d, b); return "for(let " + v + " in []);"; }, - function(d, b) { var v = makeNewId(d, b); return "for(let " + v + " in " + makeIterable(d, b) + ") " + makeExceptionyStatement(d, b.concat([v])); }, - function(d, b) { var v = makeNewId(d, b); return "for(let " + v + " of " + makeIterable(d, b) + ") " + makeExceptionyStatement(d, b.concat([v])); }, - - function(d, b) { return "with({}) " + makeExceptionyStatement(d, b); }, - function(d, b) { return "with({}) { " + makeExceptionyStatement(d, b) + " } "; }, - function(d, b) { var v = makeNewId(d, b); return "let(" + v + ") { " + makeExceptionyStatement(d, b.concat([v])) + "}"; }, - function(d, b) { var v = makeNewId(d, b); return "let(" + v + ") ((function(){" + makeExceptionyStatement(d, b.concat([v])) + "})());"; }, - function(d, b) { return "let(" + makeLetHead(d, b) + ") { " + makeExceptionyStatement(d, b) + "}"; }, - function(d, b) { return "let(" + makeLetHead(d, b) + ") ((function(){" + makeExceptionyStatement(d, b) + "})());"; }, -/* - - function(d, b) { return "(function () { try { yield " + makeExpr(d, b) + " } finally { " + makeStatement(d, b) + " } })().next()"; }, function(d, b) { return "(function () { try { yield " + makeExpr(d, b) + " } finally { " + makeStatement(d, b) + " } })()"; }, - function(d, b) { return "(function () { try { yield " + makeExpr(d, b) + " } finally { " + makeStatement(d, b) + " } })"; }, - function(d, b) { - return "function gen() { try { yield 1; } finally { " + makeStatement(d, b) + " } } var i = gen(); i.next(); i = null;"; - }*/ -];function makeTryBlock(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - - - d = d - rnd(3); - var s = cat(["try", " { ", makeExceptionyStatement(d, b), " } "]); var numCatches = 0; while(rnd(3) === 0) { - - ++numCatches; - var catchId = makeId(d, b); - var catchBlock = makeExceptionyStatement(d, b.concat([catchId])); - if (rnd(2)) - s += cat(["catch", "(", catchId, " if ", makeExpr(d, b), ")", " { ", catchBlock, " } "]); - else - s += cat(["catch", "(", catchId, " if ", "(function(){", makeExceptionyStatement(d, b), "})())", " { ", catchBlock, " } "]); - } if (rnd(2)) { - - ++numCatches; - var catchId = makeId(d, b); - var catchBlock = makeExceptionyStatement(d, b.concat([catchId])); - s += cat(["catch", "(", catchId, ")", " { ", catchBlock, " } "]); - } if (numCatches == 0 || rnd(2) === 1) { - - s += cat(["finally", " { ", makeExceptionyStatement(d, b), " } "]); - } return s; -} -function makeExpr(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d <= 0 || (rnd(7) === 1)) - return makeTerm(d - 1, b); if (rnd(6) === 1 && b.length) - return Random.index(b); if (rnd(10) === 1) - return makeImmediateRecursiveCall(d, b); d = rnd(d); var expr = (Random.index(exprMakers))(d, b); if (rnd(4) === 1) - return "(" + expr + ")"; - else - return expr; -}var binaryOps = [ - - " * ", " / ", " % ", " + ", " - ", " << ", " >> ", " >>> ", " < ", " > ", " <= ", " >= ", " instanceof ", " in ", " == ", " != ", " === ", " !== ", - " & ", " | ", " ^ ", " && ", " || ", " = ", " *= ", " /= ", " %= ", " += ", " -= ", " <<= ", " >>= ", " >>>= ", " &= ", " ^= ", " |= ", " , ", " ** ", " **= " -];var leftUnaryOps = [ - "!", "+", "-", "~", - "void ", "typeof ", "delete ", - "new ", - "yield " -];var incDecOps = [ - "++", "--", -]; -var specialProperties = [ - "__iterator__", "__count__", - "__parent__", "__proto__", "constructor", "prototype", - "wrappedJSObject", - "arguments", "caller", "callee", - "toString", "toSource", "valueOf", - "call", "apply", - "length", - "0", "1", -]; -/* -function addPropertyName(p) -{ - p = "" + p; - if ( - p != "floor" && - p != "random" && - p != "parent" && - true) { - print("Adding: " + p); - allPropertyNames.push(p); - } -} -*/var exprMakers = -[ - - function(d, b) { return cat([makeLValue(d, b), Random.index(incDecOps)]); }, - function(d, b) { return cat([Random.index(incDecOps), makeLValue(d, b)]); }, - function(d, b) { return cat([Random.index(leftUnaryOps), makeExpr(d, b)]); }, - function(d, b) { var id = makeId(d, b); return cat(["/*UUV1*/", "(", id, ".", Random.index(allMethodNames), " = ", makeFunction(d, b), ")"]); }, - function(d, b) { var id = makeId(d, b); return cat(["/*UUV2*/", "(", id, ".", Random.index(allMethodNames), " = ", id, ".", Random.index(allMethodNames), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", Random.index(allMethodNames), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "valueOf", "(", uneval("number"), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeId(d, b), Random.index(binaryOps), makeId(d, b)]); }, - function(d, b) { return cat([makeId(d, b), Random.index(binaryOps), makeId(d, b)]); }, - function(d, b) { return cat([makeId(d, b), Random.index(binaryOps), makeId(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), " ? ", makeExpr(d, b), " : ", makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), " ? ", makeExpr(d, b), " : ", makeExpr(d, b)]); }, - function(d, b) { return cat(["yield ", makeExpr(d, b)]); }, - function(d, b) { return cat(["(", "yield ", makeExpr(d, b), ")"]); }, - - - - function(d, b) { return cat([makeArrayLiteral(d, b), ".", Random.index(["map", "filter", "some", "sort"]) ]); }, - function(d, b) { return cat([makeArrayLiteral(d, b), ".", Random.index(["map", "filter", "some", "sort"]), "(", makeFunction(d, b), ", ", makeExpr(d, b), ")"]); }, - function(d, b) { return cat([makeArrayLiteral(d, b), ".", Random.index(["map", "filter", "some", "sort"]), "(", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["'fafafa'", ".", "replace", "(", "/", "a", "/", "g", ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["[", makeExpr(d, b), "]"]); }, - function(d, b) { return cat(["(", "{", makeId(d, b), ": ", makeExpr(d, b), "}", ")"]); }, - function(d, b) { return makeFunction(d, b); }, - function(d, b) { return makeFunction(d, b) + ".prototype"; }, - function(d, b) { return cat(["(", makeFunction(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat([ makeExpr(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat([ makeFunction(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["(", makeFunction(d, b), ")", ".", "call", "(", makeExpr(d, b), ", ", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["new ", makeExpr(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["new ", "(", makeExpr(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, function(d, b) { return cat(["new ", makeFunction(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["new ", "(", makeFunction(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return stripSemicolon(makeLittleStatement(d, b)); }, - function(d, b) { return ""; }, - function(d, b) { var v = makeNewId(d, b); return cat(["let ", "(", v, ") ", makeExpr(d - 1, b.concat([v]))]); }, - function(d, b) { var v = makeNewId(d, b); return cat(["let ", "(", v, " = ", makeExpr(d - 1, b), ") ", makeExpr(d - 1, b.concat([v]))]); }, - function(d, b) { return cat(["let ", "(", makeLetHead(d, b), ") ", makeExpr(d, b)]); }, - function(d, b) { return cat([" /* Comment */", makeExpr(d, b)]); }, - function(d, b) { return cat(["\n", makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), "\n"]); }, - function(d, b) { return cat([makeLValue(d, b)]); }, - function(d, b) { return cat([ makeLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([ makeLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat(["(", makeLValue(d, b), " = ", makeExpr(d, b), ")"]); }, - function(d, b) { return cat(["(", makeLValue(d, b), ")", " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([ makeDestructuringLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([ makeDestructuringLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat(["(", makeDestructuringLValue(d, b), " = ", makeExpr(d, b), ")"]); }, - function(d, b) { return cat(["(", makeDestructuringLValue(d, b), ")", " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([makeDestructuringLValue(d, b), " = ", makeDestructuringLValue(d, b)]); }, - function(d, b) { return cat([makeLValue(d, b), Random.index(["|=", "%=", "+=", "-="]), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "watch", "(", makePropertyName(d, b), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "unwatch", "(", makePropertyName(d, b), ")"]); }, - function(d, b) { return cat(["Object.defineProperty", "(", makeId(d, b), ", ", makePropertyName(d, b), ", ", makePropertyDescriptor(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "__defineGetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "__defineSetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["this", ".", "__defineGetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["this", ".", "__defineSetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["(", "{", makeObjLiteralPart(d, b), " }", ")"]); }, - function(d, b) { return cat(["(", "{", makeObjLiteralPart(d, b), ", ", makeObjLiteralPart(d, b), " }", ")"]); }, - function(d, b) { return "(p={}, (p.z = " + makeExpr(d, b) + ")())"; }, - - - function(d, b) { return cat([makeExpr(d, b), ".", "throw", "(", makeExpr(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "yoyo", "(", makeExpr(d, b), ")"]); }, - - function(d, b) { return makeExpr(d, b) + ".eval(" + uneval(makeScriptForEval(d, b)) + ")"; }, - function(d, b) { return "eval(" + uneval(makeScriptForEval(d, b)) + ")"; }, - function(d, b) { return "eval(" + uneval(makeScriptForEval(d, b)) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return "(uneval(" + makeExpr(d, b) + "))"; }, - function(d, b) { return "new " + Random.index(constructors) + "(" + makeActualArgList(d, b) + ")"; }, - function(d, b) { return Random.index(constructors) + "(" + makeActualArgList(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(unaryMathFunctions) + "(" + makeExpr(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(unaryMathFunctions) + "(" + makeNumber(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeExpr(d, b) + ", " + makeExpr(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeExpr(d, b) + ", " + makeNumber(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeNumber(d, b) + ", " + makeExpr(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeNumber(d, b) + ", " + makeNumber(d, b) + ")"; }, - function(d, b) { return makeId(d, b) + " = " + "Proxy.create(" + makeProxyHandler(d, b) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return makeId(d, b) + " = " + "Proxy.createFunction(" + makeProxyHandler(d, b) + ", " + makeFunction(d, b) + ")"; }, - function(d, b) { return makeId(d, b) + " = " + "Proxy.createFunction(" + makeProxyHandler(d, b) + ", " + makeFunction(d, b) + ", " + makeFunction(d, b) + ")"; }, function(d, b) { return cat(["delete", " ", makeId(d, b), ".", makeId(d, b)]); }, - function(d, b) { return "(void options('strict_mode'))"; }, - function(d, b) { return "(void options('strict'))"; }, - function(d, b) { return "(void version(" + Random.index([170, 180, 185]) + "))"; }, - - - function(d, b) { return "(void shapeOf(" + makeExpr(d, b) + "))"; }, - function(d, b) { return "intern(" + makeExpr(d, b) + ")"; }, - function(d, b) { return "allocationMarker()"; }, - function(d, b) { return "timeout(1800)"; }, - function(d, b) { return "(makeFinalizeObserver('tenured'))"; }, - function(d, b) { return "(makeFinalizeObserver('nursery'))"; }, makeRegexUseExpr, - makeShapeyValue, - makeIterable, - function(d, b) { return makeMathExpr(d + rnd(3), b); }, -]; -var fuzzTestingFunctions = fuzzTestingFunctionsCtor(!jsshell, fuzzTestingFunctionArg, fuzzTestingFunctionArg); -function fuzzTestingFunctionArg(d, b) { return "this"; }function makeTestingFunctionCall(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var callStatement = Random.index(fuzzTestingFunctions.testingFunctions)(d, b); - - var callBlock = "{ void 0; " + callStatement + " }"; if (jsshell && rnd(5) === 0) { - - - - - - - - - - - - - var cond = (rnd(2) ? "!" : "") + "isAsmJSCompilationAvailable()"; - return "{ if (" + cond + ") " + callBlock + " void 0; }"; - } return callBlock; -} -if (typeof evalcx == "function") { - exprMakers = exprMakers.concat([ - function(d, b) { return makeGlobal(d, b); }, - function(d, b) { return "evalcx(" + uneval(makeScriptForEval(d, b)) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return "evalcx(" + uneval(makeScriptForEval(d, b)) + ", " + makeGlobal(d, b) + ")"; }, - ]); -} -if (typeof XPCNativeWrapper == "function") { - exprMakers = exprMakers.extend([ - function(d, b) { return "new XPCNativeWrapper(" + makeExpr(d, b) + ")"; }, - function(d, b) { return "new XPCSafeJSObjectWrapper(" + makeExpr(d, b) + ")"; }, - ]); -}function makeNewGlobalArg(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - var propStrs = []; - if (rnd(2)) - propStrs.push("sameZoneAs: " + makeExpr(d - 1, b)); - if (rnd(2)) - propStrs.push("cloneSingletons: " + makeBoolean(d - 1, b)); - if (rnd(2)) - propStrs.push("disableLazyParsing: " + makeBoolean(d - 1, b)); - return "{ " + propStrs.join(", ") + " }"; -}function makeGlobal(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(10)) - return "this"; var gs; - switch(rnd(4)) { - case 0: gs = "evalcx('')"; break; - case 1: gs = "evalcx('lazy')"; break; - default: gs = "newGlobal(" + makeNewGlobalArg(d - 1, b) + ")"; break; - } if (rnd(2)) - gs = "fillShellSandbox(" + gs + ")"; return gs; -}if (xpcshell) { - exprMakers = exprMakers.concat([ - function(d, b) { var n = rnd(4); return "newGeckoSandbox(" + n + ")"; }, - function(d, b) { var n = rnd(4); return "s" + n + " = newGeckoSandbox(" + n + ")"; }, - - function(d, b) { var n = rnd(4); return "evalInSandbox(" + uneval(makeStatement(d, b)) + ", newGeckoSandbox(" + n + "))"; }, - function(d, b) { var n = rnd(4); return "evalInSandbox(" + uneval(makeStatement(d, b)) + ", s" + n + ")"; }, - function(d, b) { return "evalInSandbox(" + uneval(makeStatement(d, b)) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return "(Components.classes ? quit() : gc()); }"; }, - ]); -} -function makeShapeyConstructor(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - var argName = uniqueVarName(); - var t = rnd(4) ? "this" : argName; - var funText = "function shapeyConstructor(" + argName + "){" + directivePrologue(); - var bp = b.concat([argName]); var nPropNames = rnd(6) + 1; - var propNames = []; - for (var i = 0; i < nPropNames; ++i) { - propNames[i] = makePropertyName(d, b); - } var nStatements = rnd(11); - for (var i = 0; i < nStatements; ++i) { - var propName = Random.index(propNames); - var tprop = t + "[" + propName + "]"; - if (rnd(5) === 0) { - funText += "if (" + (rnd(2) ? argName : makeExpr(d, bp)) + ") "; - } - switch(rnd(8)) { - case 0: funText += "delete " + tprop + ";"; break; - case 1: funText += "Object.defineProperty(" + t + ", " + (rnd(2) ? propName : makePropertyName(d, b)) + ", " + makePropertyDescriptor(d, bp) + ");"; break; - case 2: funText += "{ " + makeStatement(d, bp) + " } "; break; - case 3: funText += tprop + " = " + makeExpr(d, bp) + ";"; break; - case 4: funText += tprop + " = " + makeFunction(d, bp) + ";"; break; - case 5: funText += "for (var ytq" + uniqueVarName() + " in " + t + ") { }"; break; - case 6: funText += "Object." + Random.index(["preventExtensions","seal","freeze"]) + "(" + t + ");"; break; - default: funText += tprop + " = " + makeShapeyValue(d, bp) + ";"; break; - } - } - funText += "return " + t + "; }"; - return funText; -} -var propertyNameMakers = Random.weighted([ - { w: 1, v: function(d, b) { return makeExpr(d - 1, b); } }, - { w: 1, v: function(d, b) { return maybeNeg() + rnd(20); } }, - { w: 1, v: function(d, b) { return '"' + maybeNeg() + rnd(20) + '"'; } }, - { w: 1, v: function(d, b) { return "new String(" + '"' + maybeNeg() + rnd(20) + '"' + ")"; } }, - { w: 5, v: function(d, b) { return simpleSource(Random.index(specialProperties)); } }, - { w: 1, v: function(d, b) { return simpleSource(makeId(d - 1, b)); } }, - { w: 5, v: function(d, b) { return simpleSource(Random.index(allMethodNames)); } }, -]);function maybeNeg() { return rnd(5) ? "" : "-"; }function makePropertyName(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return (Random.index(propertyNameMakers))(d, b); -}function makeShapeyConstructorLoop(d, b) -{ - var a = makeIterable(d, b); - var v = makeNewId(d, b); - var v2 = uniqueVarName(d, b); - var bvv = b.concat([v, v2]); - return makeShapeyConstructor(d - 1, b) + - "/*tLoopC*/for (let " + v + " of " + a + ") { " + - "try{" + - "let " + v2 + " = " + Random.index(["new ", ""]) + "shapeyConstructor(" + v + "); print('EETT'); " + - - makeStatement(d - 2, bvv) + - "}catch(e){print('TTEE ' + e); }" + - " }"; -} -function makePropertyDescriptor(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var s = "({"; switch(rnd(3)) { - case 0: - - if (rnd(2)) s += "value: " + makeExpr(d, b) + ", "; - if (rnd(2)) s += "writable: " + makeBoolean(d, b) + ", "; - break; - case 1: - - if (rnd(2)) s += "get: " + makeFunction(d, b) + ", "; - if (rnd(2)) s += "set: " + makeFunction(d, b) + ", "; - break; - default: - } if (rnd(2)) s += "configurable: " + makeBoolean(d, b) + ", "; - if (rnd(2)) s += "enumerable: " + makeBoolean(d, b) + ", "; - if (s.length > 2) - s = s.substr(0, s.length - 2); s += "})"; - return s; -}function makeBoolean(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - switch(rnd(4)) { - case 0: return "true"; - case 1: return "false"; - case 2: return makeExpr(d - 2, b); - default: var m = loopModulo(); return "(" + Random.index(b) + " % " + m + Random.index([" == ", " != "]) + rnd(m) + ")"; - } -} -function makeObjLiteralPart(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(8)) - { - - - - case 2: return cat([" get ", makeObjLiteralName(d, b), maybeName(d, b), "(", makeFormalArgList(d - 1, b), ")", makeFunctionBody(d, b)]); - case 3: return cat([" set ", makeObjLiteralName(d, b), maybeName(d, b), "(", makeFormalArgList(d - 1, b), ")", makeFunctionBody(d, b)]); case 4: return "/*toXFun*/" + cat([Random.index(["toString", "toSource", "valueOf"]), ": ", makeToXFunction(d - 1, b)]); default: return cat([makeObjLiteralName(d, b), ": ", makeExpr(d, b)]); - } -}function makeToXFunction(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(4)) { - case 0: return "function() { return " + makeExpr(d, b) + "; }"; - case 1: return "function() { return this; }"; - case 2: return makeEvilCallback(d, b); - default: return makeFunction(d, b); - } -} -function makeObjLiteralName(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(6)) - { - case 0: return simpleSource(makeNumber(d, b)); - case 1: return makeNumber(d, b); - case 2: return Random.index(allPropertyNames); - case 3: return Random.index(specialProperties); - default: return makeId(d, b); - } -} -function makeFunction(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if(rnd(5) === 1) - return makeExpr(d, b); if (rnd(4) === 1) - return Random.index(builtinFunctions); return (Random.index(functionMakers))(d, b); -} -function maybeName(d, b) -{ - if (rnd(2) === 0) - return " " + makeId(d, b) + " "; - else - return ""; -}function directivePrologue() -{ - var s = ""; - if (rnd(3) === 0) - s += '"use strict"; '; - if (rnd(30) === 0) - s += '"use asm"; '; - return s; -}function makeFunctionBody(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(5)) { - case 0: return cat([" { ", directivePrologue(), makeStatement(d - 1, b), " } "]); - case 1: return cat([" { ", directivePrologue(), "return ", makeExpr(d, b), " } "]); - case 2: return cat([" { ", directivePrologue(), "yield ", makeExpr(d, b), " } "]); - case 3: return '"use asm"; ' + asmJSInterior([]); - default: return makeExpr(d, b); - } -} -var functionMakers = [ - makeFunOnCallChain, - makeMathFunction, - makeMathyFunRef, - function(d, b) { var v = makeNewId(d, b); return cat(["function", " ", maybeName(d, b), "(", v, ")", makeFunctionBody(d, b.concat([v]))]); }, - function(d, b) { return cat(["function", " ", maybeName(d, b), "(", makeFormalArgList(d, b), ")", makeFunctionBody(d, b)]); }, - function(d, b) { var v = makeNewId(d, b); return cat([ v, " => ", makeFunctionBody(d, b.concat([v]))]); }, - function(d, b) { return cat(["(", makeFormalArgList(d, b), ")", " => ", makeFunctionBody(d, b)]); }, - function(d, b) { return "function(q) { " + directivePrologue() + "return q; }"; }, - function(d, b) { return "q => q"; }, - function(d, b) { return "function(y) { " + directivePrologue() + makeStatement(d, b.concat(["y"])) + " }"; }, - function(d, b) { return "function(y) { " + directivePrologue() + "return " + makeExpr(d, b.concat(["y"])) + " }"; }, - function(d, b) { return "function(y) { " + directivePrologue() + "yield y; " + makeStatement(d, b.concat(["y"])) + "; yield y; }"; }, - function(d, b) { return "(1 for (x in []))"; }, - function(d, b) { return "/*wrap1*/(function(){ " + directivePrologue() + makeStatement(d, b) + "return " + makeFunction(d, b) + "})()"; }, - function(d, b) { var v1 = uniqueVarName(); var v2 = uniqueVarName(); return "/*wrap2*/(function(){ " + directivePrologue() + "var " + v1 + " = " + makeExpr(d, b) + "; var " + v2 + " = " + makeFunction(d, b.concat([v1])) + "; return " + v2 + ";})()"; }, - function(d, b) { var v1 = uniqueVarName(); var v2 = uniqueVarName(); return "/*wrap3*/(function(){ " + directivePrologue() + "var " + v1 + " = " + makeExpr(d, b) + "; (" + makeFunction(d, b.concat([v1])) + ")(); })"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").apply"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").call"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").bind"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").bind(" + makeActualArgList(d, b) + ")"; }, - function(d, b) { return cat([makeExpr(d, b), ".", Random.index(allMethodNames)]); }, - function(d, b) { return "eval"; }, - function(d, b) { return "(let (e=eval) e)"; }, - function(d, b) { return "new Function"; }, - function(d, b) { return "(new Function(" + uneval(makeStatement(d, b)) + "))"; }, - function(d, b) { return "Function"; }, - function(d, b) { return "decodeURI"; }, - function(d, b) { return "decodeURIComponent"; }, - function(d, b) { return "encodeURI"; }, - function(d, b) { return "encodeURIComponent"; }, - function(d, b) { return "neuter"; }, - function(d, b) { return "objectEmulatingUndefined"; }, - function(d, b) { return makeProxyHandlerFactory(d, b); }, - function(d, b) { return makeShapeyConstructor(d, b); }, - function(d, b) { return Random.index(typedArrayConstructors); }, - function(d, b) { return Random.index(constructors); }, -];if (typeof XPCNativeWrapper == "function") { - functionMakers = functionMakers.concat([ - function(d, b) { return "XPCNativeWrapper"; }, - function(d, b) { return "XPCSafeJSObjectWrapper"; }, - ]); -}if (typeof oomTest == "function" && engine != ENGINE_SPIDERMONKEY_MOZILLA45) { - functionMakers = functionMakers.concat([ - function(d, b) { return "oomTest"; } - ]); -}var typedArrayConstructors = [ - "Int8Array", - "Uint8Array", - "Int16Array", - "Uint16Array", - "Int32Array", - "Uint32Array", - "Float32Array", - "Float64Array", - "Uint8ClampedArray" -];function makeTypedArrayStatements(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 0) return ""; var numViews = rnd(d) + 1; - var numExtraStatements = rnd(d) + 1; - var buffer = uniqueVarName(); - var bufferSize = (1 + rnd(2)) * (1 + rnd(2)) * (1 + rnd(2)) * rnd(5); - var statements = "var " + buffer + " = new " + arrayBufferType() + "(" + bufferSize + "); "; - var bv = b.concat([buffer]); - for (var j = 0; j < numViews; ++j) { - var view = buffer + "_" + j; - var type = Random.index(typedArrayConstructors); - statements += "var " + view + " = new " + type + "(" + buffer + "); "; - bv.push(view); - var view_0 = view + "[0]"; - bv.push(view_0); - if (rnd(3) === 0) - statements += "print(" + view_0 + "); "; - if (rnd(3)) - statements += view_0 + " = " + makeNumber(d - 2, b) + "; "; - bv.push(view + "[" + rnd(11) + "]"); - } - for (var j = 0; j < numExtraStatements; ++j) { - statements += makeStatement(d - numExtraStatements, bv); - } - return statements; -}function makeNumber(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var signStr = rnd(2) ? "-" : ""; switch(rnd(70)) { - case 0: return makeExpr(d - 2, b); - case 1: return signStr + "0"; - case 2: return signStr + (rnd(1000) / 1000); - case 3: return signStr + (rnd(0xffffffff) / 2); - case 4: return signStr + rnd(0xffffffff); - case 5: return Random.index(["0.1", ".2", "3", "1.3", "4.", "5.0000000000000000000000", "1.2e3", "1e81", "1e+81", "1e-81", "1e4", "0", "-0", "(-0)", "-1", "(-1)", "0x99", "033", "3.141592653589793", "3/0", "-3/0", "0/0", "0x2D413CCC", "0x5a827999", "0xB504F332", "(0x50505050 >> 1)", "0x80000000"]); - case 6: return signStr + (Math.pow(2, rnd(66)) + (rnd(3) - 1)); - default: return signStr + rnd(30); - } -} -function makeLetHead(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var items = (d > 0 || rnd(2) === 0) ? rnd(10) + 1 : 1; - var result = ""; for (var i = 0; i < items; ++i) { - if (i > 0) - result += ", "; - result += makeLetHeadItem(d - i, b); - } return result; -}function makeLetHeadItem(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if (d < 0 || rnd(2) === 0) - return rnd(2) ? uniqueVarName() : makeId(d, b); - else if (rnd(5) === 0) - return makeDestructuringLValue(d, b) + " = " + makeExpr(d, b); - else - return makeId(d, b) + " = " + makeExpr(d, b); -} -function makeActualArgList(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var nArgs = rnd(3); if (nArgs == 0) - return ""; var argList = makeExpr(d, b); for (var i = 1; i < nArgs; ++i) - argList += ", " + makeExpr(d - i, b); return argList; -}function makeFormalArgList(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var argList = []; var nArgs = rnd(5) ? rnd(3) : rnd(100); - for (var i = 0; i < nArgs; ++i) { - argList.push(makeFormalArg(d - i, b)); - } if (rnd(5) === 0) { - - argList.push("..." + makeId(d, b)); - } return argList.join(", "); -}function makeFormalArg(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(8) === 1) - return makeDestructuringLValue(d, b); return makeId(d, b) + (rnd(5) ? "" : " = " + makeExpr(d, b)); -} -function makeNewId(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return Random.index(["a", "b", "c", "d", "e", "w", "x", "y", "z"]); -}function makeId(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(3) === 1 && b.length) - return Random.index(b); switch(rnd(200)) - { - case 0: - return makeTerm(d, b); - case 1: - return makeExpr(d, b); - case 2: case 3: case 4: case 5: - return makeLValue(d, b); - case 6: case 7: - return makeDestructuringLValue(d, b); - case 8: case 9: case 10: - - - return Random.index(["get", "set", "getter", "setter", "delete", "let", "yield", "of"]); - case 11: case 12: case 13: - return "this." + makeId(d, b); - case 14: case 15: case 16: - return makeObjLiteralName(d - 1, b); - case 17: case 18: - return makeId(d - 1, b); - case 19: - return " "; - case 20: - return "this"; - } return Random.index(["a", "b", "c", "d", "e", "w", "x", "y", "z", - "window", "eval", "\u3056", "NaN", ]); - -} -function makeComprehension(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 0) - return ""; switch(rnd(7)) { - case 0: - return ""; - case 1: - return cat([" for ", "(", makeForInLHS(d, b), " in ", makeExpr(d - 2, b), ")"]) + makeComprehension(d - 1, b); - - case 2: - return cat([" for ", "each ", "(", makeId(d, b), " in ", makeExpr(d - 2, b), ")"]) + makeComprehension(d - 1, b); - case 3: - return cat([" for ", "each ", "(", makeId(d, b), " in ", makeIterable(d - 2, b), ")"]) + makeComprehension(d - 1, b); - case 4: - return cat([" for ", "(", makeId(d, b), " of ", makeExpr(d - 2, b), ")"]) + makeComprehension(d - 1, b); - case 5: - return cat([" for ", "(", makeId(d, b), " of ", makeIterable(d - 2, b), ")"]) + makeComprehension(d - 1, b); - default: - return cat([" if ", "(", makeExpr(d - 2, b), ")"]); - } -}function makeForInLHS(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - return makeLValue(d, b); -} -function makeLValue(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d <= 0 || (rnd(2) === 1)) - return makeId(d - 1, b); d = rnd(d); return (Random.index(lvalueMakers))(d, b); -} -var lvalueMakers = [ - - function(d, b) { return cat([makeId(d, b)]); }, - function(d, b) { return cat(["(", makeLValue(d, b), ")"]); }, - function(d, b) { return makeDestructuringLValue(d, b); }, - function(d, b) { return "(" + makeDestructuringLValue(d, b) + ")"; }, - function(d, b) { return cat([makeId(d, b), "(", makeExpr(d, b), ")"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", "(", makeExpr(d, b), ")"]); }, - function(d, b) { return Random.index(builtinProperties); }, - function(d, b) { return Random.index(builtinObjectNames); }, - function(d, b) { return "arguments"; }, - function(d, b) { return cat(["arguments", "[", makePropertyName(d, b), "]"]); }, - function(d, b) { return makeFunOnCallChain(d, b) + ".arguments"; }, - function(d, b) { return cat([makeExpr(d, b), ".", makeId(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "__proto__"]); }, - function(d, b) { return cat([makeExpr(d, b), "[", makePropertyName(d, b), "]"]); }, - function(d, b) { return "this.zzz.zzz"; }, - function(d, b) { return makeExpr(d, b); }, -]; -function makeDestructuringLValue(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if (d < 0 || rnd(4) === 1) - return makeId(d, b); if (rnd(6) === 1) - return makeLValue(d, b); return (Random.index(destructuringLValueMakers))(d, b); -}var destructuringLValueMakers = [ - - function(d, b) - { - var len = rnd(d, b); - if (len == 0) - return "[]"; var Ti = []; - Ti.push("["); - Ti.push(maybeMakeDestructuringLValue(d, b)); - for (var i = 1; i < len; ++i) { - Ti.push(", "); - Ti.push(maybeMakeDestructuringLValue(d, b)); - } Ti.push("]"); return cat(Ti); - }, - function(d, b) - { - var len = rnd(d, b); - if (len == 0) - return "{}"; - var Ti = []; - Ti.push("{"); - for (var i = 0; i < len; ++i) { - if (i > 0) - Ti.push(", "); - Ti.push(makeId(d, b)); - if (rnd(3)) { - Ti.push(": "); - Ti.push(makeDestructuringLValue(d, b)); - } - } - Ti.push("}"); return cat(Ti); - } -]; -function maybeMakeDestructuringLValue(d, b) -{ - if (rnd(2) === 0) - return ""; return makeDestructuringLValue(d, b); -}function makeTerm(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return (Random.index(termMakers))(d, b); -}var termMakers = [ - - function(d, b) { return makeId(d, b); }, - function(d, b) { return Random.index([ - - "[]", "[1]", "[[]]", "[[1]]", "[,]", "[,,]", "[1,,]", - - "{}", "({})", "({a1:1})", - - "[z1]", "[z1,,]", "[,,z1]", - - "({a2:z2})", - "function(id) { return id }", - "function ([y]) { }", - "(function ([y]) { })()", "arguments", - "Math", - "this", - "length", '"\u03A0"', - ]); - }, - makeNumber, - function(d, b) { return Random.index([ "true", "false", "undefined", "null"]); }, - function(d, b) { return Random.index([ "this", "window" ]); }, - function(d, b) { return Random.index([" \"\" ", " '' "]); }, - randomUnitStringLiteral, - function(d, b) { return Random.index([" /x/ ", " /x/g "]); }, - makeRegex, -];function randomUnitStringLiteral() -{ - var s = "\"\\u"; - for (var i = 0; i < 4; ++i) { - s += "0123456789ABCDEF".charAt(rnd(16)); - } - s += "\""; - return s; -} -function maybeMakeTerm(d, b) -{ - if (rnd(2)) - return makeTerm(d - 1, b); - else - return ""; -} -function makeCrazyToken() -{ - if (rnd(3) === 0) { - return String.fromCharCode(32 + rnd(128 - 32)); - } - if (rnd(6) === 0) { - return String.fromCharCode(rnd(65536)); - } return Random.index([ - "//", UNTERMINATED_COMMENT, (UNTERMINATED_COMMENT + "\n"), "/*\n*/", - "[", "]", - "{", "}", - "(", ")", - "!", "@", "%", "^", "*", "**", "|", ":", "?", "'", "\"", ",", ".", "/", - "~", "_", "+", "=", "-", "++", "--", "+=", "%=", "|=", "-=", - "...", "=>", - " in ", " instanceof ", " let ", " new ", " get ", " for ", " if ", " else ", " else if ", " try ", " catch ", " finally ", " export ", " import ", " void ", " with ", - " default ", " goto ", " case ", " switch ", " do ", " /*infloop*/while ", " return ", " yield ", " break ", " continue ", " typeof ", " var ", " const ", - " package ", - " enum ", - " debugger ", - " super ", " this ", - " null ", - " undefined ", - "\n", - "\r", - "\u2028", - "\u2029", - "<" + "!" + "--", - "--" + ">", - "", - "\0", - ]); -} -function makeShapeyValue(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(10) === 0) - return makeExpr(d, b); var a = [ - - [ - "0", "1", "2", "3", "0.1", ".2", "1.3", "4.", "5.0000000000000000000000", - "1.2e3", "1e81", "1e+81", "1e-81", "1e4", "-0", "(-0)", - "-1", "(-1)", "0x99", "033", "3/0", "-3/0", "0/0", - "Math.PI", - "0x2D413CCC", "0x5a827999", "0xB504F332", "-0x2D413CCC", "-0x5a827999", "-0xB504F332", "0x50505050", "(0x50505050 >> 1)", - - "0x10000000", "0x20000000", "0x3FFFFFFE", "0x3FFFFFFF", "0x40000000", "0x40000001", "0x80000000", "-0x80000000", - ], - [ "(1/0)", "(-1/0)", "(0/0)" ], - [" \"\" ", " '' ", " 'A' ", " '\\0' ", ' "use strict" '], - [ " /x/ ", " /x/g "], - [ "true", "false" ], - [ "(void 0)", "null" ], - [ "[]", "[1]", "[(void 0)]", "{}", "{x:3}", "({})", "({x:3})" ], - [ "NaN", "Infinity", "-Infinity", "undefined"], - [ "new Boolean(true)", "new Boolean(false)" ], - [ "new Number(1)", "new Number(1.5)" ], - [ "new String('')", "new String('q')" ], - [ "function(){}" ], - [ "{}", "[]", "[1]", "['z']", "[undefined]", "this", "eval", "arguments", "arguments.caller", "arguments.callee" ], - [ "objectEmulatingUndefined()" ], - [ b.length ? Random.index(b) : "x" ] - ]; return Random.index(Random.index(a)); -}function mixedTypeArrayElem(d, b) -{ - while (true) { - var s = makeShapeyValue(d - 3, b); - if (s.length < 60) - return s; - } -}function makeMixedTypeArray(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - var q = rnd(4) + 2; - var picks = []; - for (var j = 0; j < q; ++j) { - picks.push(mixedTypeArrayElem(d, b)); - } - var c = []; - var count = loopCount(); - for (var j = 0; j < count; ++j) { - var elem = Random.index(picks); - - - var repeat = count === 0 ? rnd(4)===0 : rnd(50)===0; - var repeats = repeat ? rnd(30) : 1; - for (var k = 0; k < repeats; ++k) { - c.push(elem); - } - } return "/*MARR*/" + "[" + c.join(", ") + "]"; -}function makeArrayLiteral(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(2) === 0) - return makeMixedTypeArray(d, b); var elems = []; - while (rnd(5)) elems.push(makeArrayLiteralElem(d, b)); - return "/*FARR*/" + "[" + elems.join(", ") + "]"; -}function makeArrayLiteralElem(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch (rnd(5)) { - case 0: return "..." + makeIterable(d - 1, b); - case 1: return ""; - default: return makeExpr(d - 1, b); - } -}function makeIterable(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 1) - return "[]"; return (Random.index(iterableExprMakers))(d, b); -}var iterableExprMakers = Random.weighted([ - - { w: 1, v: function(d, b) { return "new Array(" + makeNumber(d, b) + ")"; } }, - { w: 8, v: makeArrayLiteral }, - { w: 1, v: function(d, b) { return cat(["[", makeExpr(d, b), makeComprehension(d, b), "]"]); } }, - { w: 1, v: function(d, b) { return cat([ makeExpr(d, b), makeComprehension(d, b) ]); } }, - { w: 1, v: function(d, b) { return cat(["(", makeExpr(d, b), makeComprehension(d, b), ")"]); } }, - { w: 1, v: function(d, b) { return "(function() { " + directivePrologue() + "yield " + makeExpr(d - 1, b) + "; } })()"; } }, - - { w: 1, v: function(d, b) { return "/*PTHR*/(function() { " + directivePrologue() + "for (var i of " + makeIterable(d - 1, b) + ") { yield i; } })()"; } }, { w: 1, v: makeFunction }, - { w: 1, v: makeExpr }, -]);function strTimes(s, n) -{ - if (n == 0) return ""; - if (n == 1) return s; - var s2 = s + s; - var r = n % 2; - var d = (n - r) / 2; - var m = strTimes(s2, d); - return r ? m + s : m; -} -function makeAsmJSModule(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var interior = asmJSInterior([]); - return '(function(stdlib, foreign, heap){ "use asm"; ' + interior + ' })'; -}function makeAsmJSFunction(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var interior = asmJSInterior(["ff"]); - return '(function(stdlib, foreign, heap){ "use asm"; ' + interior + ' })(this, {ff: ' + makeFunction(d - 2, b) + '}, new ' + arrayBufferType() + '(4096))'; -}var proxyHandlerProperties = { - getOwnPropertyDescriptor: { - empty: "function(){}", - forward: "function(name) { var desc = Object.getOwnPropertyDescriptor(x); desc.configurable = true; return desc; }", - throwing: "function(name) { return {get: function() { throw 4; }, set: function() { throw 5; }}; }", - }, - getPropertyDescriptor: { - empty: "function(){}", - forward: "function(name) { var desc = Object.getPropertyDescriptor(x); desc.configurable = true; return desc; }", - throwing: "function(name) { return {get: function() { throw 4; }, set: function() { throw 5; }}; }", - }, - defineProperty: { - empty: "function(){}", - forward: "function(name, desc) { Object.defineProperty(x, name, desc); }" - }, - getOwnPropertyNames: { - empty: "function() { return []; }", - forward: "function() { return Object.getOwnPropertyNames(x); }" - }, - delete: { - empty: "function() { return true; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(name) { return delete x[name]; }" - }, - fix: { - empty: "function() { return []; }", - yes: "function() { return []; }", - no: "function() { }", - forward: "function() { if (Object.isFrozen(x)) { return Object.getOwnProperties(x); } }" - }, - has: { - empty: "function() { return false; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(name) { return name in x; }" - }, - hasOwn: { - empty: "function() { return false; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(name) { return Object.prototype.hasOwnProperty.call(x, name); }" - }, - get: { - empty: "function() { return undefined }", - forward: "function(receiver, name) { return x[name]; }", - bind: "function(receiver, name) { var prop = x[name]; return (typeof prop) === 'function' ? prop.bind(x) : prop; }" - }, - set: { - empty: "function() { return true; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(receiver, name, val) { x[name] = val; return true; }" - }, - iterate: { - empty: "function() { return (function() { throw StopIteration; }); }", - forward: "function() { return (function() { for (var name in x) { yield name; } })(); }" - }, - enumerate: { - empty: "function() { return []; }", - forward: "function() { var result = []; for (var name in x) { result.push(name); }; return result; }" - }, - keys: { - empty: "function() { return []; }", - forward: "function() { return Object.keys(x); }" - } -};function makeProxyHandlerFactory(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 1) - return "({/*TOODEEP*/})"; try { - var preferred = Random.index(["empty", "forward", "yes", "no", "bind", "throwing"]); - var fallback = Random.index(["empty", "forward"]); - var fidelity = rnd(10); var handlerFactoryText = "(function handlerFactory(x) {"; - handlerFactoryText += "return {"; if (rnd(2)) { - - bp = b.concat(['x']); - } else { - - handlerFactoryText = handlerFactoryText.replace(/x/, ""); - bp = b; - } for (var p in proxyHandlerProperties) { - var funText; - if (proxyHandlerProperties[p][preferred] && rnd(10) <= fidelity) { - funText = proxyMunge(proxyHandlerProperties[p][preferred], p); - } else { - switch(rnd(7)) { - case 0: funText = makeFunction(d - 3, bp); break; - case 1: funText = "undefined"; break; - case 2: funText = "function() { throw 3; }"; break; - default: funText = proxyMunge(proxyHandlerProperties[p][fallback], p); - } - } - handlerFactoryText += p + ": " + funText + ", "; - } handlerFactoryText += "}; })"; return handlerFactoryText; - } catch(e) { - return "({/* :( */})"; - } -}function proxyMunge(funText, p) -{ - - return funText; -}function makeProxyHandler(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return makeProxyHandlerFactory(d, b) + "(" + makeExpr(d - 3, b) + ")"; -} -/* -David Anderson suggested creating the following recursive structures: - - recurse down an array of mixed types, car cdr kinda thing - - multiple recursive calls in a function, like binary search left/right, sometimes calls neither and sometimes calls both the recursion support in spidermonkey only works with self-recursion. - that is, two functions that call each other recursively will not be traced. two trees are formed, going down and going up. - type instability matters on both sides. - so the values returned from the function calls matter. so far, what i've thought of means recursing from the top of a function and if..else. - but i'd probably also want to recurse from other points, e.g. loops. special code for tail recursion likely coming soon, but possibly as a separate patch, because it requires changes to the interpreter. -*/ -var recursiveFunctions = [ - { - - text: "(function too_much_recursion(depth) { @; if (depth > 0) { @; too_much_recursion(depth - 1); @ } else { @ } @ })", - vars: ["depth"], - args: function(d, b) { return singleRecursionDepth(d, b); }, - test: function(f) { try { f(5000); } catch(e) { } return true; } - }, - { - text: "(function factorial(N) { @; if (N == 0) { @; return 1; } @; return N * factorial(N - 1); @ })", - vars: ["N"], - args: function(d, b) { return singleRecursionDepth(d, b); }, - test: function(f) { return f(10) == 3628800; } - }, - { - text: "(function factorial_tail(N, Acc) { @; if (N == 0) { @; return Acc; } @; return factorial_tail(N - 1, Acc * N); @ })", - vars: ["N", "Acc"], - args: function(d, b) { return singleRecursionDepth(d, b) + ", 1"; }, - test: function(f) { return f(10, 1) == 3628800; } - }, - { - - text: "(function fibonacci(N) { @; if (N <= 1) { @; return 1; } @; return fibonacci(N - 1) + fibonacci(N - 2); @ })", - vars: ["N"], - args: function(d, b) { return "" + rnd(8); }, - test: function(f) { return f(6) == 13; } - }, - { - - text: "(function a_indexing(array, start) { @; if (array.length == start) { @; return EXPR1; } var thisitem = array[start]; var recval = a_indexing(array, start + 1); STATEMENT1 })", - vars: ["array", "start", "thisitem", "recval"], - args: function(d, b) { return makeMixedTypeArray(d-1, b) + ", 0"; }, - testSub: function(text) { return text.replace(/EXPR1/, "0").replace(/STATEMENT1/, "return thisitem + recval;"); }, - randSub: function(text, varMap, d, b) { - var expr1 = makeExpr(d, b.concat([varMap["array"], varMap["start"]])); - var statement1 = rnd(2) ? - makeStatement(d, b.concat([varMap["thisitem"], varMap["recval"]])) : - "return " + makeExpr(d, b.concat([varMap["thisitem"], varMap["recval"]])) + ";"; return (text.replace(/EXPR1/, expr1) - .replace(/STATEMENT1/, statement1) - ); }, - test: function(f) { return f([1,2,3,"4",5,6,7], 0) == "123418"; } - }, - { - - text: "(function sum_indexing(array, start) { @; return array.length == start ? 0 : array[start] + sum_indexing(array, start + 1); })", - vars: ["array", "start"], - args: function(d, b) { return makeMixedTypeArray(d-1, b) + ", 0"; }, - test: function(f) { return f([1,2,3,"4",5,6,7], 0) == "123418"; } - }, - { - text: "(function sum_slicing(array) { @; return array.length == 0 ? 0 : array[0] + sum_slicing(array.slice(1)); })", - vars: ["array"], - args: function(d, b) { return makeMixedTypeArray(d-1, b); }, - test: function(f) { return f([1,2,3,"4",5,6,7]) == "123418"; } - } -];function singleRecursionDepth(d, b) -{ - if (rnd(2) === 0) { - return "" + rnd(4); - } - if (rnd(10) === 0) { - return makeExpr(d - 2, b); - } - return "" + rnd(100000); -}(function testAllRecursiveFunctions() { - for (var i = 0; i < recursiveFunctions.length; ++i) { - var a = recursiveFunctions[i]; - var text = a.text; - if (a.testSub) text = a.testSub(text); - var f = eval(text.replace(/@/g, "")); - if (!a.test(f)) - throw "Failed test of: " + a.text; - } -})();function makeImmediateRecursiveCall(d, b, cheat1, cheat2) -{ - if (rnd(10) !== 0) - return "(4277)"; var a = (cheat1 == null) ? Random.index(recursiveFunctions) : recursiveFunctions[cheat1]; - var s = a.text; - var varMap = {}; - for (var i = 0; i < a.vars.length; ++i) { - var prettyName = a.vars[i]; - varMap[prettyName] = uniqueVarName(); - s = s.replace(new RegExp(prettyName, "g"), varMap[prettyName]); - } - var actualArgs = cheat2 == null ? a.args(d, b) : cheat2; - s = s + "(" + actualArgs + ")"; - s = s.replace(/@/g, function() { if (rnd(4) === 0) return makeStatement(d-2, b); return ""; }); - if (a.randSub) s = a.randSub(s, varMap, d, b); - s = "(" + s + ")"; - return s; -}/********************************* - * GENERATING REGEXPS AND INPUTS * - *********************************/var POTENTIAL_MATCHES = 10; -var backrefHack = []; -for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - backrefHack[i] = ""; -}function regexNumberOfMatches() -{ - if (rnd(10)) - return rnd(5); - return Math.pow(2, rnd(40)) + rnd(3) - 1; -}function regexPattern(depth, parentWasQuantifier) -{ - if (depth == 0 || (rnd(depth) == 0)) - return regexTerm(); var dr = depth - 1; var index = rnd(regexMakers.length); - if (parentWasQuantifier && rnd(30)) index = rnd(regexMakers.length - 1) + 1; - return (Random.index(regexMakers[index]))(dr); -}var regexMakers = -[ - [ - - function(dr) { return regexQuantified(dr, "+", 1, rnd(10)); }, - function(dr) { return regexQuantified(dr, "*", 0, rnd(10)); }, - function(dr) { return regexQuantified(dr, "?", 0, 1); }, - function(dr) { return regexQuantified(dr, "+?", 1, 1); }, - function(dr) { return regexQuantified(dr, "*?", 0, 1); }, - function(dr) { var x = regexNumberOfMatches(); return regexQuantified(dr, "{" + x + "}", x, x); }, - function(dr) { var x = regexNumberOfMatches(); return regexQuantified(dr, "{" + x + ",}", x, x + rnd(10)); }, - function(dr) { var min = regexNumberOfMatches(); var max = min + regexNumberOfMatches(); return regexQuantified(dr, "{" + min + "," + max + "}", min, max); } - ], - [ - - function(dr) { return regexConcatenation(dr); }, - function(dr) { return regexDisjunction(dr); } - ], - [ - - function(dr) { return ["\\" + (rnd(3) + 1), backrefHack.slice(0)]; }, - function(dr) { return regexGrouped("(", dr, ")"); }, - function(dr) { return regexGrouped("(?:", dr, ")"); }, - function(dr) { return regexGrouped("(?=", dr, ")"); }, - function(dr) { return regexGrouped("(?!", dr, ")"); } - ] -]; -function quantifierHelper(pm, min, max, pms) -{ - var repeats = Math.min(min + rnd(max - min + 5) - 2, 10); - var returnValue = ""; - for (var i = 0; i < repeats; i++) - { - if (rnd(100) < 80) - returnValue = returnValue + pm; - else - returnValue = returnValue + Random.index(pms); - } - return returnValue; -}function regexQuantified(dr, operator, min, max) -{ - var [re, pms] = regexPattern(dr, true); - var newpms = []; - for (var i = 0; i < POTENTIAL_MATCHES; i++) - newpms[i] = quantifierHelper(pms[i], min, max, pms); - return [re + operator, newpms]; -} -function regexConcatenation(dr) -{ - var [re1, strings1] = regexPattern(dr, false); - var [re2, strings2] = regexPattern(dr, false); - var newStrings = []; for (var i = 0; i < POTENTIAL_MATCHES; i++) - { - var chance = rnd(100); - if (chance < 10) - newStrings[i] = ""; - else if (chance < 20) - newStrings[i] = strings1[i]; - else if (chance < 30) - newStrings[i] = strings2[i]; - else if (chance < 65) - newStrings[i] = strings1[i] + strings2[i]; - else - newStrings[i] = Random.index(strings1) + Random.index(strings2); - } return [re1 + re2, newStrings]; -}function regexDisjunction(dr) -{ - var [re1, strings1] = regexPattern(dr, false); - var [re2, strings2] = regexPattern(dr, false); - var newStrings = []; for (var i = 0; i < POTENTIAL_MATCHES; i++) - { - var chance = rnd(100); - if (chance < 10) - newStrings[i] = ""; - else if (chance < 20) - newStrings[i] = Random.index(strings1) + Random.index(strings2); - else if (chance < 60) - newStrings[i] = strings1[i]; - else - newStrings[i] = strings2[i]; - } - return [re1 + "|" + re2, newStrings]; -}function regexGrouped(prefix, dr, postfix) -{ - var [re, strings] = regexPattern(dr, false); - var newStrings = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - newStrings[i] = rnd(5) ? strings[i] : ""; - if (prefix == "(" && strings[i].length < 40 && rnd(3) === 0) { - backrefHack[i] = strings[i]; - } - } - return [prefix + re + postfix, newStrings]; -} -var letters = -["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", - "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];var hexDigits = [ - "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", - "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", - "a", "b", "c", "d", "e", "f", - "A", "B", "C", "D", "E", "F" -];function regexTerm() -{ - var [re, oneString] = regexTermPair(); - var strings = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - strings[i] = rnd(5) ? oneString : regexTermPair()[1]; - } - return [re, strings]; -}function regexCharCode() -{ - return rnd(2) ? rnd(256) : rnd(65536); -} -var regexCharacterMakers = Random.weighted([ - - { w:20, v: function() { var cc = regexCharCode(); return [ String.fromCharCode(cc), cc]; } }, - { w: 4, v: function() { var cc = regexCharCode(); return ["\\" + String.fromCharCode(cc), cc]; } }, - { w: 1, v: function() { return ["\\0", 0]; } }, - { w: 1, v: function() { return ["\\B", 66]; } }, - { w: 1, v: function() { return ["\\b", 8]; } }, - { w: 1, v: function() { return ["\\t", 9]; } }, - { w: 1, v: function() { return ["\\n", 10]; } }, - { w: 1, v: function() { return ["\\v", 11]; } }, - { w: 1, v: function() { return ["\\f", 12]; } }, - { w: 1, v: function() { return ["\\r", 13]; } }, - { w: 5, v: function() { var controlCharacterCode = rnd(26) + 1; return ["\\c" + String.fromCharCode(64 + controlCharacterCode), controlCharacterCode]; } }, - - { w: 5, v: function() { var twoHex = Random.index(hexDigits) + Random.index(hexDigits); return ["\\x" + twoHex, parseInt(twoHex, 16)]; } }, - { w: 5, v: function() { var twoHex = Random.index(hexDigits) + Random.index(hexDigits); return ["\\u00" + twoHex, parseInt(twoHex, 16)]; } }, - { w: 5, v: function() { var fourHex = Random.index(hexDigits) + Random.index(hexDigits) + Random.index(hexDigits) + Random.index(hexDigits); return ["\\u" + fourHex, parseInt(fourHex, 16)]; } }, -]);function regexCharacter() -{ - var [matcher, charcode] = Random.index(regexCharacterMakers)(); - switch(rnd(10)) { - case 0: return [matcher, charcode + 32]; - case 1: return [matcher, charcode - 32]; - case 2: return [matcher, regexCharCode()]; - default: return [matcher, charcode]; - } -} -var regexBuiltInCharClasses = [ - "\\d", "\\D", - "\\s", "\\S", - "\\w", "\\W", -]; -function regexOneCharStringsWith(frequentChars) { - var matches = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - matches.push(rnd(8) ? Random.index(frequentChars) : String.fromCharCode(regexCharCode())); - } - return matches; -} -function regexShortStringsWith(frequentChars) { - var matches = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - var s = ""; - while (rnd(3)) { - s += rnd(4) ? Random.index(frequentChars) : String.fromCharCode(regexCharCode()); - } - matches.push(s); - } - return matches; -}var regexTermMakers = - [ - function() { return regexCharacterClass(); }, - function() { var [re, cc] = regexCharacter(); return [re, regexOneCharStringsWith([String.fromCharCode(cc)])]; }, - function() { return [Random.index(regexBuiltInCharClasses), regexOneCharStringsWith(["0", "a", "_"])]; }, - function() { return ["[^]", regexOneCharStringsWith(["\n"])]; }, - function() { return [".", regexOneCharStringsWith(["\n"])]; }, - function() { return [Random.index(["^", "$"]), regexShortStringsWith(["\n"])]; }, - function() { return [Random.index(["\\b", "\\B"]), regexShortStringsWith([" ", "\n", "a", "1"])]; }, - ];function regexTerm() -{ - return Random.index(regexTermMakers)(); -}function regexCharacterClass() -{ - var ranges = rnd(5); - var inRange = rnd(2); - var charBucket = [String.fromCharCode(regexCharCode())]; var re = "["; - if (!inRange) { - re += "^"; - } var lo, hi; for (var i = 0; i < ranges; ++i) { - if (rnd(100) == 0) { - - re += "-"; - if (rnd(2)) { - re += String.fromCharCode(regexCharCode()); - } - } if (rnd(3) == 1) { - - re += Random.index(regexBuiltInCharClasses); - charBucket.push("a"); - charBucket.push("0"); - charBucket.push("_"); - } else if (rnd(2)) { - - var a = regexCharacter(); - var b = regexCharacter(); - if ((a[1] <= b[1]) == !!rnd(10)) { - [lo, hi] = [a, b]; - } else { - [lo, hi] = [b, a]; - } re += lo[0] + "-" + hi[0]; - charBucket.push(String.fromCharCode(lo[1] + rnd(3) - 1)); - charBucket.push(String.fromCharCode(hi[1] + rnd(3) - 1)); - charBucket.push(String.fromCharCode(lo[1] + rnd(Math.max(hi[1] - lo[1], 1)))); - } else { - - var a = regexCharacter(); - re += a[0]; - charBucket.push(String.fromCharCode(a[1])); - } - } re += "]"; - return [re, pickN(charBucket, POTENTIAL_MATCHES)]; -}function pickN(bucket, picks) -{ - var picked = []; - for (var i = 0; i < picks; ++i) { - picked.push(Random.index(bucket)); - } - return picked; -}function makeRegisterStompFunction(d, b, pure) -{ - var args = []; - var nArgs = (rnd(10) ? rnd(20) : rnd(100)) + 1; - for (var i = 0; i < nArgs; ++i) { - args.push("a" + i); - } var bv = b.concat(args); return ( - "(function(" + args.join(", ") + ") { " + - makeRegisterStompBody(d, bv, pure) + - "return " + Random.index(bv) + "; " + - "})" - ); -}function makeRegisterStompBody(d, b, pure) -{ - var bv = b.slice(0); - var lastRVar = 0; - var s = ""; function value() - { - return rnd(3) && bv.length ? Random.index(bv) : "" + rnd(10); - } function expr() - { - return value() + Random.index([" + ", " - ", " / ", " * ", " % ", " | ", " & ", " ^ "]) + value(); - } while (rnd(100)) { - if (bv.length == 0 || rnd(4)) { - var newVar = "r" + lastRVar; - ++lastRVar; - s += "var " + newVar + " = " + expr() + "; "; - bv.push(newVar); - } else if (rnd(5) === 0 && !pure) { - s += "print(" + Random.index(bv) + "); "; - } else { - s += Random.index(bv) + " = " + expr() + "; "; - } - } return s; -} -/*********************** - * TEST BUILT-IN TYPES * - ***********************/var makeBuilderStatement; -var makeEvilCallback;(function setUpBuilderStuff() { - var ARRAY_SIZE = 20; - var OBJECTS_PER_TYPE = 3; - var smallPowersOfTwo = [1, 2, 4, 8]; - function bufsize() { return rnd(ARRAY_SIZE) * Random.index(smallPowersOfTwo); } - function arrayIndex(d, b) { - switch(rnd(8)) { - case 0: return m("v"); - case 1: return makeExpr(d - 1, b); - case 2: return "({valueOf: function() { " + makeStatement(d, b) + "return " + rnd(ARRAY_SIZE) + "; }})"; - default: return "" + rnd(ARRAY_SIZE); - } - } - function m(t) - { - if (!t) - t = "aosmevbtihgfp"; - t = t.charAt(rnd(t.length)); - var name = t + rnd(OBJECTS_PER_TYPE); - switch(rnd(16)) { - case 0: return m("o") + "." + name; - case 1: return m("g") + "." + name; - case 2: return "this." + name; - default: return name; - } - } function val(d, b) - { - if (rnd(10)) - return m(); - return makeExpr(d, b); - } - function assign(d, b, t, rhs) - { - switch(rnd(18)) { - - case 0: return ( - "Object.defineProperty(" + - (rnd(8)?"this":m("og")) + ", " + - simpleSource(m(t)) + ", " + - "{ " + propertyDescriptorPrefix(d-1, b) + " get: function() { " + (rnd(8)?"":makeBuilderStatement(d-1,b)) + " return " + rhs + "; } }" + - ");" - ); - case 1: return Random.index(varBinder) + m(t) + " = " + rhs + ";"; - default: return m(t) + " = " + rhs + ";"; - } - } function makeCounterClosure(d, b) - { - - var v = uniqueVarName(); - var infrequently = infrequentCondition(v, 10); - return ( - "(function mcc_() { " + - "var " + v + " = 0; " + - "return function() { " + - "++" + v + "; " + - (rnd(3) ? - "if (" + infrequently + ") { dumpln('hit!'); " + makeBuilderStatements(d, b) + " } " + - "else { dumpln('miss!'); " + makeBuilderStatements(d, b) + " } " - : m("f") + "(" + infrequently + ");" - ) + - "};" + - "})()"); - } function fdecl(d, b) - { - var argName = m(); - var bv = b.concat([argName]); - return "function " + m("f") + "(" + argName + ") " + makeFunctionBody(d, bv); - } function makeBuilderStatements(d, b) - { - var s = ""; - var extras = rnd(4); - for (var i = 0; i < extras; ++i) { - s += "try { " + makeBuilderStatement(d - 2, b) + " } catch(e" + i + ") { } "; - } - s += makeBuilderStatement(d - 1, b); - return s; - } var builderFunctionMakers = Random.weighted([ - { w: 9, v: function(d, b) { return "(function() { " + makeBuilderStatements(d, b) + " return " + m() + "; })"; } }, - { w: 1, v: function(d, b) { return "(function() { " + makeBuilderStatements(d, b) + " throw " + m() + "; })"; } }, - { w: 1, v: function(d, b) { return "(function(j) { " + m("f") + "(j); })"; } }, - - { w: 4, v: function(d, b) { return "(function(j) { if (j) { " + makeBuilderStatements(d, b) + " } else { " + makeBuilderStatements(d, b) + " } })"; } }, - { w: 4, v: function(d, b) { return "(function() { for (var j=0;j<" + loopCount() + ";++j) { " + m("f") + "(j%"+(2+rnd(4))+"=="+rnd(2)+"); } })"; } }, - { w: 1, v: function(d, b) { return Random.index(builtinFunctions) + ".bind(" + m() + ")"; } }, - { w: 5, v: function(d, b) { return m("f"); } }, - { w: 3, v: makeCounterClosure }, - { w: 2, v: makeFunction }, - { w: 1, v: makeAsmJSModule }, - { w: 1, v: makeAsmJSFunction }, - { w: 1, v: makeRegisterStompFunction }, - ]); - makeEvilCallback = function(d, b) { - return (Random.index(builderFunctionMakers))(d - 1, b); - }; var handlerTraps = ["getOwnPropertyDescriptor", "getPropertyDescriptor", "defineProperty", "getOwnPropertyNames", "delete", "fix", "has", "hasOwn", "get", "set", "iterate", "enumerate", "keys"]; function forwardingHandler(d, b) { - return ( - "({"+ - "getOwnPropertyDescriptor: function(name) { Z; var desc = Object.getOwnPropertyDescriptor(X); desc.configurable = true; return desc; }, " + - "getPropertyDescriptor: function(name) { Z; var desc = Object.getPropertyDescriptor(X); desc.configurable = true; return desc; }, " + - "defineProperty: function(name, desc) { Z; Object.defineProperty(X, name, desc); }, " + - "getOwnPropertyNames: function() { Z; return Object.getOwnPropertyNames(X); }, " + - "delete: function(name) { Z; return delete X[name]; }, " + - "fix: function() { Z; if (Object.isFrozen(X)) { return Object.getOwnProperties(X); } }, " + - "has: function(name) { Z; return name in X; }, " + - "hasOwn: function(name) { Z; return Object.prototype.hasOwnProperty.call(X, name); }, " + - "get: function(receiver, name) { Z; return X[name]; }, " + - "set: function(receiver, name, val) { Z; X[name] = val; return true; }, " + - "iterate: function() { Z; return (function() { for (var name in X) { yield name; } })(); }, " + - "enumerate: function() { Z; var result = []; for (var name in X) { result.push(name); }; return result; }, " + - "keys: function() { Z; return Object.keys(X); } " + - "})" - ) - .replace(/X/g, m()) - .replace(/Z/g, function() { - switch(rnd(20)){ - case 0: return "return " + m(); - case 1: return "throw " + m(); - default: return makeBuilderStatement(d - 2, b); - } - }); - } function propertyDescriptorPrefix(d, b) - { - return "configurable: " + makeBoolean(d, b) + ", " + "enumerable: " + makeBoolean(d, b) + ", "; - } function strToEval(d, b) - { - switch(rnd(5)) { - case 0: return simpleSource(fdecl(d, b)); - case 1: return simpleSource(makeBuilderStatement(d, b)); - default: return simpleSource(makeScriptForEval(d, b)); - } - } function evaluateFlags(d, b) - { - - return ("({ global: " + m("g") + - ", fileName: " + Random.index(["'evaluate.js'", "null"]) + - ", lineNumber: 42, newContext: " + makeBoolean(d, b) + - ", isRunOnce: " + makeBoolean(d, b) + - ", noScriptRval: " + makeBoolean(d, b) + - ", catchTermination: " + makeBoolean(d, b) + - ", saveFrameChain: " + ("bug 881999" && rnd(10000) ? "false" : makeBoolean(d, b)) + - ((rnd(5) == 0) ? ( - ((rnd(2) == 0) ? (", element: " + m("o")) : "") + - ((rnd(2) == 0) ? (", elementProperty: " + m("s")) : "") + - ((rnd(2) == 0) ? (", sourceMapURL: " + m("s")) : "") + - ((rnd(2) == 0) ? (", sourcePolicy: " + Random.index(["'NO_SOURCE'", "'LAZY_SOURCE'", "'SAVE_SOURCE'"])) : "") - ) : "" - ) + - " })"); - } var initializedEverything = false; - function initializeEverything(d, b) - { - if (initializedEverything) - return ";"; - initializedEverything = true; var s = ""; - for (var i = 0; i < OBJECTS_PER_TYPE; ++i) { - s += "a" + i + " = []; "; - s += "o" + i + " = {}; "; - s += "s" + i + " = ''; "; - s += "r" + i + " = /x/; "; - s += "g" + i + " = " + makeGlobal(d, b) + "; "; - s += "f" + i + " = function(){}; "; - s += "m" + i + " = new WeakMap; "; - s += "e" + i + " = new Set; "; - s += "v" + i + " = null; "; - s += "b" + i + " = new ArrayBuffer(64); "; - s += "t" + i + " = new Uint8ClampedArray; "; - - } - return s; - } - - - - function method(d, b, clazz, obj, meth, arglist) - { - - if (rnd(10) == 0) - arglist = []; - while (rnd(2)) - arglist.push(val(d, b)); - switch (rnd(4)) { - case 0: return clazz + ".prototype." + meth + ".apply(" + obj + ", [" + arglist.join(", ") + "])"; - case 1: return clazz + ".prototype." + meth + ".call(" + [obj].concat(arglist).join(", ") + ")"; - default: return obj + "." + meth + "(" + arglist.join(", ") + ")"; - } - } function severalargs(f) - { - var arglist = []; - arglist.push(f()); - while (rnd(2)) { - arglist.push(f()); - } - return arglist; - } var builderStatementMakers = Random.weighted([ - - { w: 1, v: function(d, b) { return assign(d, b, "a", "[]"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", "new Array"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", makeIterable(d, b)); } }, - { w: 1, v: function(d, b) { return m("a") + ".length = " + arrayIndex(d, b) + ";"; } }, - { w: 8, v: function(d, b) { return assign(d, b, "v", m("at") + ".length"); } }, - { w: 4, v: function(d, b) { return m("at") + "[" + arrayIndex(d, b) + "]" + " = " + val(d, b) + ";"; } }, - { w: 4, v: function(d, b) { return val(d, b) + " = " + m("at") + "[" + arrayIndex(d, b) + "]" + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", makeFunOnCallChain(d, b) + ".arguments"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", "arguments"); } }, - { w: 3, v: function(d, b) { return m("at") + "[" + arrayIndex(d, b) + "]" + ";"; } }, - { w: 3, v: function(d, b) { return m("at") + "[" + arrayIndex(d, b) + "] = " + makeExpr(d, b) + ";"; } }, - { w: 1, v: function(d, b) { return "/*ADP-1*/Object.defineProperty(" + m("a") + ", " + arrayIndex(d, b) + ", " + makePropertyDescriptor(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "/*ADP-2*/Object.defineProperty(" + m("a") + ", " + arrayIndex(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "get: " + makeEvilCallback(d,b) + ", set: " + makeEvilCallback(d, b) + " });"; } }, - { w: 1, v: function(d, b) { return "/*ADP-3*/Object.defineProperty(" + m("a") + ", " + arrayIndex(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "writable: " + makeBoolean(d,b) + ", value: " + val(d, b) + " });"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "push", severalargs(() => val(d, b))) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "pop", []) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "unshift", severalargs(() => val(d, b))) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "shift", []) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "reverse", []) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "sort", [makeEvilCallback(d, b)]) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "splice", [arrayIndex(d, b) - arrayIndex(d, b), arrayIndex(d, b)]) + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", method(d, b, "Array", m("a"), "join", [m("s")])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "concat", severalargs(() => m("at")))); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "slice", [arrayIndex(d, b) - arrayIndex(d, b), arrayIndex(d, b) - arrayIndex(d, b)])); } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "forEach", [makeEvilCallback(d, b)]) + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "map", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "filter", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), "some", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), "every", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), Random.index(["reduce, reduceRight"]), [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), Random.index(["reduce, reduceRight"]), [makeEvilCallback(d, b), val(d, b)])); } }, - - - - - { w: 1, v: function(d, b) { return assign(d, b, "o", "{}"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "o", "new Object"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "o", "Object.create(" + val(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return "selectforgc(" + m("o") + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", "''"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", "new String"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", "new String(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", m("s") + ".charAt(" + arrayIndex(d, b) + ")"); } }, - { w: 5, v: function(d, b) { return m("s") + " += 'x';"; } }, - { w: 5, v: function(d, b) { return m("s") + " += " + m("s") + ";"; } }, - - { w: 1, v: function(d, b) { return assign(d, b, "m", "new Map"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "m", "new Map(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "m", "new WeakMap"); } }, - { w: 5, v: function(d, b) { return m("m") + ".has(" + val(d, b) + ");"; } }, - { w: 4, v: function(d, b) { return m("m") + ".get(" + val(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, null, m("m") + ".get(" + val(d, b) + ")"); } }, - { w: 5, v: function(d, b) { return m("m") + ".set(" + val(d, b) + ", " + val(d, b) + ");"; } }, - { w: 3, v: function(d, b) { return m("m") + ".delete(" + val(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "e", "new Set"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "e", "new Set(" + m() + ")"); } }, - { w: 5, v: function(d, b) { return m("e") + ".has(" + val(d, b) + ");"; } }, - { w: 5, v: function(d, b) { return m("e") + ".add(" + val(d, b) + ");"; } }, - { w: 3, v: function(d, b) { return m("e") + ".delete(" + val(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "b", "new " + arrayBufferType() + "(" + bufsize() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "b", m("t") + ".buffer"); } }, - { w: 1, v: function(d, b) { return "neuter(" + m("b") + ", " + (rnd(2) ? '"same-data"' : '"change-data"') + ");"; } }, - - { w: 1, v: function(d, b) { return assign(d, b, "t", "new " + Random.index(typedArrayConstructors) + "(" + arrayIndex(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return assign(d, b, "t", "new " + Random.index(typedArrayConstructors) + "(" + m("abt") + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "t", "new " + Random.index(typedArrayConstructors) + "(" + m("b") + ", " + bufsize() + ", " + arrayIndex(d, b) + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "t", m("t") + ".subarray(" + arrayIndex(d, b) + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "t", m("t") + ".subarray(" + arrayIndex(d, b) + ", " + arrayIndex(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return m("t") + ".set(" + m("at") + ", " + arrayIndex(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m("tb") + ".byteLength"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m("t") + ".byteOffset"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m("t") + ".BYTES_PER_ELEMENT"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "h", "{}"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "h", forwardingHandler(d, b)); } }, - { w: 1, v: function(d, b) { return "delete " + m("h") + "." + Random.index(handlerTraps) + ";"; } }, - { w: 4, v: function(d, b) { return m("h") + "." + Random.index(handlerTraps) + " = " + makeEvilCallback(d, b) + ";"; } }, - { w: 4, v: function(d, b) { return m("h") + "." + Random.index(handlerTraps) + " = " + m("f") + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, null, "Proxy.create(" + m("h") + ", " + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "f", "Proxy.createFunction(" + m("h") + ", " + m("f") + ", " + m("f") + ")"); } }, - - - { w: 1, v: function(d, b) { return assign(d, b, "r", makeRegex(d, b)); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", m("r") + ".exec(" + m("s") + ")"); } }, - { w: 3, v: function(d, b) { return makeRegexUseBlock(d, b, m("r")); } }, - { w: 3, v: function(d, b) { return makeRegexUseBlock(d, b, m("r"), m("s")); } }, - { w: 3, v: function(d, b) { return assign(d, b, "v", m("r") + "." + Random.index(builtinObjects["RegExp.prototype"])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "g", makeGlobal(d, b)); } }, - { w: 5, v: function(d, b) { return assign(d, b, "v", m("g") + ".eval(" + strToEval(d, b) + ")"); } }, - { w: 5, v: function(d, b) { return assign(d, b, "v", "evalcx(" + strToEval(d, b) + ", " + m("g") + ")"); } }, - { w: 5, v: function(d, b) { return assign(d, b, "v", "evaluate(" + strToEval(d, b) + ", " + evaluateFlags(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return "(void schedulegc(" + m("g") + "));"; } }, - { w: 3, v: function(d, b) { return "/*MXX1*/" + assign(d, b, "o", m("g") + "." + Random.index(builtinProperties)); } }, - { w: 3, v: function(d, b) { return "/*MXX2*/" + m("g") + "." + Random.index(builtinProperties) + " = " + m() + ";"; } }, - { w: 3, v: function(d, b) { var prop = Random.index(builtinProperties); return "/*MXX3*/" + m("g") + "." + prop + " = " + m("g") + "." + prop + ";"; } }, - - { w: 1, v: function(d, b) { return assign(d, b, "f", makeEvilCallback(d, b)); } }, - { w: 1, v: fdecl }, - { w: 2, v: function(d, b) { return m("f") + "(" + m() + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "i", "new Iterator(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "i", "new Iterator(" + m() + ", true)"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "i", m("ema") + "." + Random.index(["entries", "keys", "values", "iterator"])); } }, - { w: 3, v: function(d, b) { return m("i") + ".next();"; } }, - { w: 3, v: function(d, b) { return m("i") + ".send(" + m() + ");"; } }, - - { w: 2, v: function(d, b) { return assign(d, b, "v", Random.index(["4", "4.2", "NaN", "0", "-0", "Infinity", "-Infinity"])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", "new Number(" + Random.index(["4", "4.2", "NaN", "0", "-0", "Infinity", "-Infinity"]) + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", "new Number(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", makeBoolean(d, b)); } }, - { w: 2, v: function(d, b) { return assign(d, b, "v", Random.index(["undefined", "null", "true", "false"])); } }, - { w: 1, v: function(d, b) { return "/*ODP-1*/Object.defineProperty(" + m() + ", " + makePropertyName(d, b) + ", " + makePropertyDescriptor(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "/*ODP-2*/Object.defineProperty(" + m() + ", " + makePropertyName(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "get: " + makeEvilCallback(d,b) + ", set: " + makeEvilCallback(d, b) + " });"; } }, - { w: 1, v: function(d, b) { return "/*ODP-3*/Object.defineProperty(" + m() + ", " + makePropertyName(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "writable: " + makeBoolean(d,b) + ", value: " + val(d, b) + " });"; } }, - { w: 1, v: function(d, b) { return "Object.prototype.watch.call(" + m() + ", " + makePropertyName(d, b) + ", " + makeEvilCallback(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "Object.prototype.unwatch.call(" + m() + ", " + makePropertyName(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "delete " + m() + "[" + makePropertyName(d, b) + "];"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m() + "[" + makePropertyName(d, b) + "]"); } }, - { w: 1, v: function(d, b) { return m() + "[" + makePropertyName(d, b) + "] = " + val(d, b) + ";"; } }, - { w: 5, v: function(d, b) { return "print(" + m() + ");"; } }, - { w: 5, v: function(d, b) { return "print(uneval(" + m() + "));"; } }, - { w: 5, v: function(d, b) { return m() + ".toString = " + makeEvilCallback(d, b) + ";"; } }, - { w: 5, v: function(d, b) { return m() + ".toSource = " + makeEvilCallback(d, b) + ";"; } }, - { w: 5, v: function(d, b) { return m() + ".valueOf = " + makeEvilCallback(d, b) + ";"; } }, - { w: 2, v: function(d, b) { return m() + ".__iterator__ = " + makeEvilCallback(d, b) + ";"; } }, - { w: 1, v: function(d, b) { return m() + " = " + m() + ";"; } }, - { w: 1, v: function(d, b) { return m() + " = " + m("g") + ".objectEmulatingUndefined();"; } }, - { w: 1, v: function(d, b) { return m("o") + " = " + m() + ".__proto__;"; } }, - { w: 5, v: function(d, b) { return m() + ".__proto__ = " + m() + ";"; } }, - { w: 10, v: function(d, b) { return "for (var p in " + m() + ") { " + makeBuilderStatements(d, b) + " }"; } }, - { w: 10, v: function(d, b) { return "for (var v of " + m() + ") { " + makeBuilderStatements(d, b) + " }"; } }, - { w: 10, v: function(d, b) { return m() + " + " + m() + ";"; } }, - { w: 10, v: function(d, b) { return m() + " + '';"; } }, - { w: 10, v: function(d, b) { return m("v") + " = (" + m() + " instanceof " + m() + ");"; } }, - { w: 10, v: function(d, b) { return m("v") + " = Object.prototype.isPrototypeOf.call(" + m() + ", " + m() + ");"; } }, - { w: 2, v: function(d, b) { return "Object." + Random.index(["preventExtensions", "seal", "freeze"]) + "(" + m() + ");"; } }, - { w: 1, v: function(d, b) { return m() + " = x;"; } }, - { w: 1, v: function(d, b) { return "x = " + m() + ";"; } }, - { w: 5, v: makeStatement }, { w: 5, v: initializeEverything }, - ]); - makeBuilderStatement = function(d, b) { - return (Random.index(builderStatementMakers))(d - 1, b); - }; -})(); -function infrequentCondition(v, n) -{ - switch (rnd(20)) { - case 0: return true; - case 1: return false; - case 2: return v + " > " + rnd(n); - default: var mod = rnd(n) + 2; var target = rnd(mod); return "/*ICCD*/" + v + " % " + mod + (rnd(8) ? " == " : " != ") + target; - } -}var arrayBufferType = "SharedArrayBuffer" in this ? - function() { return rnd(2) ? "SharedArrayBuffer" : "ArrayBuffer"; } : - function() { return "ArrayBuffer"; };/*************************** - * TEST ASM.JS CORRECTNESS * - ***************************/ -var compareAsm = (function() { function isSameNumber(a, b) - { - if (!(typeof a == "number" && typeof b == "number")) - return false; - if (a === 0 && b === 0) - return 1/a === 1/b; - return a === b || (a !== a && b !== b); - } var asmvals = [ - 1, Math.PI, 42, - - 0, -0, 0/0, 1/0, -1/0, - - 0x07fffffff, 0x080000000, 0x080000001, - -0x07fffffff, -0x080000000, -0x080000001, - 0x0ffffffff, 0x100000000, 0x100000001, - -0x0ffffffff, -0x100000000, 0x100000001, - - Number.MIN_VALUE, -Number.MIN_VALUE, - Number.MAX_VALUE, -Number.MAX_VALUE, - ]; - var asmvalsLen = asmvals.length; function compareUnaryFunctions(f, g) - { - for (var i = 0; i < asmvalsLen; ++i) { - var x = asmvals[i]; - var fr = f(x); - var gr = g(x); - if (!isSameNumber(fr, gr)) { - foundABug("asm mismatch", "(" + uneval(x) + ") -> " + uneval(fr) + " vs " + uneval(gr)); - } - } - } function compareBinaryFunctions(f, g) - { - for (var i = 0; i < asmvalsLen; ++i) { - var x = asmvals[i]; - for (var j = 0; j < asmvalsLen; ++j) { - var y = asmvals[j]; - var fr = f(x, y); - var gr = g(x, y); - if (!isSameNumber(fr, gr)) { - foundABug("asm mismatch", "(" + uneval(x) + ", " + uneval(y) + ") -> " + uneval(fr) + " vs " + uneval(gr)); - } - } - } - } return {compareUnaryFunctions: compareUnaryFunctions, compareBinaryFunctions: compareBinaryFunctions}; -})();function nanBitsMayBeVisible(s) -{ - - return (s.indexOf("Uint") != -1 || s.indexOf("Int") != -1) + (s.indexOf("Float32Array") != -1) + (s.indexOf("Float64Array") != -1) > 1; -}var pureForeign = { - identity: function(x) { return x; }, - quadruple: function(x) { return x * 4; }, - half: function(x) { return x / 2; }, - - asString: function(x) { return uneval(x); }, - asValueOf: function(x) { return { valueOf: function() { return x; } }; }, - - sum: function() { var s = 0; for (var i = 0; i < arguments.length; ++i) s += arguments[i]; return s; }, - - stomp: function() { }, -};for (var f in unaryMathFunctions) { - pureForeign["Math_" + unaryMathFunctions[f]] = Math[unaryMathFunctions[f]]; -}for (var f in binaryMathFunctions) { - pureForeign["Math_" + binaryMathFunctions[f]] = Math[binaryMathFunctions[f]]; -}var pureMathNames = Object.keys(pureForeign);function generateAsmDifferential() -{ - var foreignFunctions = rnd(10) ? [] : pureMathNames; - return asmJSInterior(foreignFunctions, true); -}function testAsmDifferential(stdlib, interior) -{ - if (nanBitsMayBeVisible(interior)) { - dumpln("Skipping correctness test for asm module that could expose low bits of NaN"); - return; - } var asmJs = "(function(stdlib, foreign, heap) { 'use asm'; " + interior + " })"; - var asmModule = eval(asmJs); if (isAsmJSModule(asmModule)) { - var asmHeap = new ArrayBuffer(4096); - (new Int32Array(asmHeap))[0] = 0x12345678; - var asmFun = asmModule(stdlib, pureForeign, asmHeap); var normalHeap = new ArrayBuffer(4096); - (new Int32Array(normalHeap))[0] = 0x12345678; - var normalJs = "(function(stdlib, foreign, heap) { " + interior + " })"; - var normalModule = eval(normalJs); - var normalFun = normalModule(stdlib, pureForeign, normalHeap); compareAsm.compareBinaryFunctions(asmFun, normalFun); - } -} -function startAsmDifferential() -{ - var asmFuzzSeed = 110798809; //Math.floor(Math.random() * Math.pow(2,28)); - // dumpln("asmFuzzSeed: " + asmFuzzSeed); - Random.init(asmFuzzSeed); while (true) { var stompStr = makeRegisterStompFunction(8, [], true); - print(stompStr); - pureForeign.stomp = eval(stompStr); for (var i = 0; i < 100; ++i) { - var interior = generateAsmDifferential(); - print(interior); - testAsmDifferential(this, interior); - } - gc(); - } -}var numericVals = [ - "1", "Math.PI", "42", - - "0", "-0", "0/0", "1/0", "-1/0", - - "0x07fffffff", "0x080000000", "0x080000001", - "-0x07fffffff", "-0x080000000", "-0x080000001", - "0x0ffffffff", "0x100000000", "0x100000001", - "-0x0ffffffff", "-0x100000000", "0x100000001", - - "Number.MIN_VALUE", "-Number.MIN_VALUE", - "Number.MAX_VALUE", "-Number.MAX_VALUE", -];var confusableVals = [ - "0", - "0.1", - "-0", - "''", - "'0'", - "'\\0'", - "[]", - "[0]", - "/0/", - "'/0/'", - "1", - "({toString:function(){return '0';}})", - "({valueOf:function(){return 0;}})", - "({valueOf:function(){return '0';}})", - "false", - "true", - "undefined", - "null", - "(function(){return 0;})", - "NaN", - "(new Boolean(false))", - "(new Boolean(true))", - "(new String(''))", - "(new Number(0))", - "(new Number(-0))", - "objectEmulatingUndefined()", -];function hashStr(s) -{ - var hash = 0; - var L = s.length; - for (var i = 0; i < L; i++) { - var c = s.charCodeAt(i); - hash = (Math.imul(hash, 31) + c) | 0; - } - return hash; -}function testMathyFunction(f, inputs) -{ - var results = []; - if (f) { - for (var j = 0; j < inputs.length; ++j) { - for (var k = 0; k < inputs.length; ++k) { - try { - results.push(f(inputs[j], inputs[k])); - } catch(e) { - results.push(errorToString(e)); - } - } - } - } - /* Use uneval to distinguish -0, 0, "0", etc. */ - /* Use hashStr to shorten the output and keep compareJIT files small. */ - print(hashStr(uneval(results))); -}function mathInitFCM() -{ - - var cookie = "/*F" + "CM*/"; print(cookie + hashStr.toString().replace(/\n/g, " ")); - print(cookie + testMathyFunction.toString().replace(/\n/g, " ")); -}function makeMathyFunAndTest(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var i = rnd(NUM_MATH_FUNCTIONS); - var s = ""; if (rnd(5)) { - if (rnd(8)) { - s += "mathy" + i + " = " + makeMathFunction(6, b, i) + "; "; - } else { - s += "mathy" + i + " = " + makeAsmJSFunction(6, b) + "; "; - } - } if (rnd(5)) { - var inputsStr; - switch(rnd(8)) { - case 0: inputsStr = makeMixedTypeArray(d - 1, b); break; - case 1: inputsStr = "[" + Random.shuffled(confusableVals).join(", ") + "]"; break; - default: inputsStr = "[" + Random.shuffled(numericVals).join(", ") + "]"; break; - } s += "testMathyFunction(mathy" + i + ", " + inputsStr + "); "; - } return s; -}function makeMathyFunRef(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return "mathy" + rnd(NUM_MATH_FUNCTIONS); -}/******************************* - * EXECUTION CONSISTENCY TESTS * - *******************************/function sandboxResult(code, zone) -{ - - var result; - var resultStr = ""; - try { - - - var sandbox = newGlobal({sameZoneAs: zone}); result = evalcx(code, sandbox); - if (typeof result != "object") { - - resultStr = "" + result; - } - } catch(e) { - result = "Error: " + errorToString(e); - } - - return resultStr; -}function nestingConsistencyTest(code) -{ - - - function nestExpr(e) { return "(function() { return " + code + "; })()"; } - var codeNestedOnce = nestExpr(code); - var codeNestedDeep = code; - var depth = (count % 7) + 14; - for (var i = 0; i < depth; ++i) { - codeNestedDeep = nestExpr(codeNestedDeep); - } - var resultO = sandboxResult(codeNestedOnce, null); var resultD = sandboxResult(codeNestedDeep, null); - if (resultO != resultD) { - foundABug("NestTest mismatch", - "resultO: " + resultO + "\n" + - "resultD: " + resultD); - } -} -function optionalTests(f, code, wtt) -{ - if (count % 100 == 1) { - tryHalves(code); - } if (count % 100 == 2 && engine == ENGINE_SPIDERMONKEY_TRUNK) { - try { - Reflect.parse(code); - } catch(e) { - } - } if (count % 100 == 3 && f && typeof disassemble == "function") { - - - disassemble("-r", f); - } if (0 && f && wtt.allowExec && engine == ENGINE_SPIDERMONKEY_TRUNK) { - simpleDVGTest(code); - tryEnsureSanity(); - } if (count % 100 == 6 && f && wtt.allowExec && wtt.expectConsistentOutput && wtt.expectConsistentOutputAcrossIter - && engine == ENGINE_SPIDERMONKEY_TRUNK && getBuildConfiguration()['more-deterministic']) { - nestingConsistencyTest(code); - } -} -function simpleDVGTest(code) -{ - var fullCode = "(function() { try { \n" + code + "\n; throw 1; } catch(exx) { this.nnn.nnn } })()"; try { - eval(fullCode); - } catch(e) { - if (e.message != "this.nnn is undefined" && e.message.indexOf("redeclaration of") == -1) { - - foundABug("Wrong error " + "message", e); - } - } -} -function tryHalves(code) -{ - var f, firstHalf, secondHalf; try { firstHalf = code.substr(0, code.length / 2); - if (verbose) - dumpln("First half: " + firstHalf); - f = new Function(firstHalf); - void ("" + f); - } - catch(e) { - if (verbose) - dumpln("First half compilation error: " + e); - } try { - secondHalf = code.substr(code.length / 2, code.length); - if (verbose) - dumpln("Second half: " + secondHalf); - f = new Function(secondHalf); - void ("" + f); - } - catch(e) { - if (verbose) - dumpln("Second half compilation error: " + e); - } -}/***************** - * USING REGEXPS * - *****************/function randomRegexFlags() { - var s = ""; - if (rnd(2)) - s += "g"; - if (rnd(2)) - s += "y"; - if (rnd(2)) - s += "i"; - if (rnd(2)) - s += "m"; - return s; -}function toRegexSource(rexpat) -{ - return (rnd(2) === 0 && rexpat.charAt(0) != "*") ? - "/" + rexpat + "/" + randomRegexFlags() : - "new RegExp(" + simpleSource(rexpat) + ", " + simpleSource(randomRegexFlags()) + ")"; -}function makeRegexUseBlock(d, b, rexExpr, strExpr) -{ - var rexpair = regexPattern(10, false); - var rexpat = rexpair[0]; - var str = rexpair[1][rnd(POTENTIAL_MATCHES)]; if (!rexExpr) rexExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : toRegexSource(rexpat); - if (!strExpr) strExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : simpleSource(str); var bv = b.concat(["s", "r"]); return ("/*RXUB*/var r = " + rexExpr + "; " + - "var s = " + strExpr + "; " + - "print(" + - Random.index([ - "r.exec(s)", - "uneval(r.exec(s))", - "r.test(s)", - "s.match(r)", - "uneval(s.match(r))", - "s.search(r)", - "s.replace(r, " + makeReplacement(d, bv) + (rnd(3) ? "" : ", " + simpleSource(randomRegexFlags())) + ")", - "s.split(r)" - ]) + - "); " + - (rnd(3) ? "" : "print(r.lastIndex); ") - ); -}function makeRegexUseExpr(d, b) -{ - var rexpair = regexPattern(8, false); - var rexpat = rexpair[0]; - var str = rexpair[1][rnd(POTENTIAL_MATCHES)]; var rexExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : toRegexSource(rexpat); - var strExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : simpleSource(str); return "/*RXUE*/" + rexExpr + ".exec(" + strExpr + ")"; -}function makeRegex(d, b) -{ - var rexpair = regexPattern(8, false); - var rexpat = rexpair[0]; - var rexExpr = toRegexSource(rexpat); - return rexExpr; -}function makeReplacement(d, b) -{ - switch(rnd(3)) { - case 0: return Random.index(["''", "'x'", "'\\u0341'"]); - case 1: return makeExpr(d, b); - default: return makeFunction(d, b); - } -}function start(glob) -{ - var fuzzSeed = 110798809;//Math.floor(Math.random() * Math.pow(2,28)); - dumpln("fuzzSeed: " + fuzzSeed); - Random.init(fuzzSeed); - - - var cookie = "/*F"; - cookie += "RC*/"; - var dumpEachSeed = false; if (dumpEachSeed) { - dumpln(cookie + "Random.init(0);"); - } mathInitFCM(); count = 0; if (jsshell) { - - var MAX_TOTAL_TIME = (glob.maxRunTime) || (Infinity); - var startTime = new Date(); - var lastTime; do { - testOne(); - var elapsed1 = new Date() - lastTime; - if (elapsed1 > 1000) { - print("That took " + elapsed1 + "ms!"); - } - lastTime = new Date(); - } while(lastTime - startTime < MAX_TOTAL_TIME); - } else { - setTimeout(testStuffForAWhile, 200); - } function testStuffForAWhile() - { - for (var j = 0; j < 100; ++j) - testOne(); if (count % 10000 < 100) - printImportant("Iterations: " + count); setTimeout(testStuffForAWhile, 30); - } function testOne() - { - ++count; - - var depth = 14; if (dumpEachSeed) { - - var MTA = uneval(Random.twister.export_mta()); - var MTI = Random.twister.export_mti(); - if (MTA != Random.lastDumpedMTA) { - dumpln(cookie + "Random.twister.import_mta(" + MTA + ");"); - Random.lastDumpedMTA = MTA; - } - dumpln(cookie + "Random.twister.import_mti(" + MTI + "); void (makeScript(" + depth + "));"); - } var code = makeScript(depth); if (count == 1 && engine == ENGINE_SPIDERMONKEY_TRUNK && rnd(5)) { - code = "tryRunning = useSpidermonkeyShellSandbox(" + rnd(4) + ");"; - - } - - - - - dumpln(cookie + "count=" + count + "; tryItOut(" + uneval(code) + ");"); tryItOut(code); - } -} -function failsToCompileInTry(code) { - - try { - var codeInTry = "try { " + code + " } catch(e) { }"; - void new Function(codeInTry); - return false; - } catch(e) { - return true; - } -}/********************* - * SANDBOXED RUNNING * - *********************/var tryRunning = xpcshell ? useGeckoSandbox() : tryRunningDirectly; -function fillShellSandbox(sandbox) -{ - var safeFuns = [ - "print", - "schedulegc", "selectforgc", "gczeal", "gc", "gcslice", - "verifyprebarriers", "gcPreserveCode", - "minorgc", "abortgc", - "evalcx", "newGlobal", "evaluate", - "dumpln", "fillShellSandbox", - "testMathyFunction", "hashStr", - "isAsmJSCompilationAvailable", - ]; for (var i = 0; i < safeFuns.length; ++i) { - var fn = safeFuns[i]; - if (sandbox[fn]) { - - } else if (this[fn]) { - sandbox[fn] = this[fn].bind(this); - } else { - - } - } return sandbox; -}function useSpidermonkeyShellSandbox(sandboxType) -{ - var primarySandbox; switch (sandboxType) { - case 0: primarySandbox = evalcx(''); - case 1: primarySandbox = evalcx('lazy'); - case 2: primarySandbox = newGlobal({sameZoneAs: {}}); - default: primarySandbox = newGlobal(); - } fillShellSandbox(primarySandbox); return function(f, code, wtt) { - try { - evalcx(code, primarySandbox); - } catch(e) { - dumpln("Running in sandbox threw " + errorToString(e)); - } - }; -} -function newGeckoSandbox(n) -{ - var t = (typeof n == "number") ? n : 1; - var s = Components.utils.Sandbox("http://x" + t + ".example.com/"); - s.newGeckoSandbox = newGeckoSandbox; - s.evalInSandbox = function(str, sbx) { - return Components.utils.evalInSandbox(str, sbx); - }; - s.print = function(str) { print(str); }; return s; -}function useGeckoSandbox() { - var primarySandbox = newGeckoSandbox(0); return function(f, code, wtt) { - try { - Components.utils.evalInSandbox(code, primarySandbox); - } catch(e) { - - } - }; -} -/*********************** - * UNSANDBOXED RUNNING * - ***********************/function directEvalC(s) { var c; /* evil closureizer */ return eval(s); } function newFun(s) { return new Function(s); }function tryRunningDirectly(f, code, wtt) -{ - if (count % 23 == 3) { - dumpln("Plain eval!"); - try { eval(code); } catch(e) { } - tryEnsureSanity(); - return; - } if (count % 23 == 4) { - dumpln("About to recompile, using eval hack."); - f = directEvalC("(function(){" + code + "});"); - } try { - if (verbose) - dumpln("About to run it!"); - var rv = f(); - if (verbose) - dumpln("It ran!"); - if (wtt.allowIter && rv && typeof rv == "object") { - tryIteration(rv); - } - } catch(runError) { - if(verbose) - dumpln("Running threw! About to toString to error."); - var err = errorToString(runError); - dumpln("Running threw: " + err); - } tryEnsureSanity(); -}var realEval = eval; -var realMath = Math; -var realFunction = Function; -var realGC = gc; -var realUneval = uneval; -var realToString = toString; -var realToSource = this.toSource; -function tryEnsureSanity() -{ - - - try { - if (typeof resetOOMFailure == "function") - resetOOMFailure(); - } catch(e) { } try { - - - if (typeof gczeal == "function") - gczeal(0); - } catch(e) { } - try { eval(""); } catch(e) { dumpln("That really shouldn't have thrown: " + errorToString(e)); } if (!this) { - - return; - } try { - - delete this.unwatch; - if ('unwatch' in this) { - this.unwatch("eval"); - this.unwatch("Function"); - this.unwatch("gc"); - this.unwatch("uneval"); - this.unwatch("toSource"); - this.unwatch("toString"); - } if ('__defineSetter__' in this) { - - if (!jsStrictMode) - delete this.eval; - delete this.Math; - delete this.Function; - delete this.gc; - delete this.uneval; - delete this.toSource; - delete this.toString; - } this.Math = realMath; - this.eval = realEval; - this.Function = realFunction; - this.gc = realGC; - this.uneval = realUneval; - this.toSource = realToSource; - this.toString = realToString; - } catch(e) { - confused("tryEnsureSanity failed: " + errorToString(e)); - } - if (this.eval != realEval) - confused("Fuzz script replaced |eval|"); - if (Function != realFunction) - confused("Fuzz script replaced |Function|"); -}function tryIteration(rv) -{ - try { - if (Iterator(rv) !== rv) - return; - } - catch(e) { - - dumpln("Error while trying to determine whether it's an iterator!"); - dumpln("The error was: " + e); - return; - } dumpln("It's an iterator!"); - try { - var iterCount = 0; - for (var iterValue of rv) - ++iterCount; - dumpln("Iterating succeeded, iterCount == " + iterCount); - } catch (iterError) { - dumpln("Iterating threw!"); - dumpln("Iterating threw: " + errorToString(iterError)); - } -}function tryItOut(code) -{ - - if (typeof gczeal == "function") - gczeal(0); - if (count % 1000 == 0) { - dumpln("Paranoid GC (count=" + count + ")!"); - realGC(); - } var wtt = whatToTest(code); if (!wtt.allowParse) - return; code = code.replace(/\/\*DUPTRY\d+\*\//, function(k) { var n = parseInt(k.substr(8), 10); dumpln(n); return strTimes("try{}catch(e){}", n); }); - - if (jsStrictMode) - code = "'use strict'; " + code; var f; - try { - f = new Function(code); - } catch(compileError) { - dumpln("Compiling threw: " + errorToString(compileError)); - } if (f && wtt.allowExec && wtt.expectConsistentOutput && wtt.expectConsistentOutputAcrossJITs) { - if (code.indexOf("\n") == -1 && code.indexOf("\r") == -1 && code.indexOf("\f") == -1 && code.indexOf("\0") == -1 && - code.indexOf("\u2028") == -1 && code.indexOf("\u2029") == -1 && - code.indexOf("<--") == -1 && code.indexOf("-->") == -1 && code.indexOf("//") == -1) { - - var cookie1 = "/*F"; - var cookie2 = "CM*/"; - var nCode = code; - - - - - if (nCode.indexOf("return") != -1 || nCode.indexOf("yield") != -1 || nCode.indexOf("const") != -1 || failsToCompileInTry(nCode)) - nCode = "(function(){" + nCode + "})()"; - dumpln(cookie1 + cookie2 + " try { " + nCode + " } catch(e) { }"); - } - } if (tryRunning != tryRunningDirectly) { - optionalTests(f, code, wtt); - } if (wtt.allowExec && f) { - tryRunning(f, code, wtt); - } if (verbose) - dumpln("Done trying out that function!"); dumpln(""); -} -var count = 0; -var verbose = false; - -/*FRC*/Random.init(0); -/*FCM*/function hashStr(s) { var hash = 0; var L = s.length; for (var i = 0; i < L; i++) { var c = s.charCodeAt(i); hash = (Math.imul(hash, 31) + c) | 0; } return hash; } -/*FCM*/function testMathyFunction(f, inputs) { var results = []; if (f) { for (var j = 0; j < inputs.length; ++j) { for (var k = 0; k < inputs.length; ++k) { try { results.push(f(inputs[j], inputs[k])); } catch(e) { results.push(errorToString(e)); } } } } /* Use uneval to distinguish -0, 0, "0", etc. */ /* Use hashStr to shorten the output and keep compareJIT files small. */ print(hashStr(uneval(results))); } -/*FRC*/Random.twister.import_mta(110798809,-2117707362,-1669736818,-575237825,1969514672,-1787099430,538659646,2092621181,-1801142796,-933128169,-512773138,-1613311604,-1463309550,-557707939,-1052208092,-1711517070,1236956736,-2019528522,1669909270,-1152880858,-519430840,-1548242516,693188540,-1711105725,-1009696835,584897551,251965701,1656259604,705583461,1396920822,1378715025,794804719,286878315,1709653848,1016176447,-1033532674,-1839449355,-357404008,-1644615091,656078930,1053153922,2005714803,224703012,990612575,1682323623,-1198575701,178142939,-66125930,1371837177,435991561,894097599,-1782662514,1340638576,1211965130,-1322989235,1751626594,1537130823,-335890729,-1249012258,1326636039,-698743654,1781051802,-396950171,1778562941,-1683505108,-666275737,-455418954,-941651028,582730575,-624798352,680214949,-325766304,1527923031,-997929673,648137166,1064688785,1350606465,-317650739,-888096876,-923189790,1234817813,-1858995403,447319045,821422924,1795522896,-526950838,-47430621,-271843081,-1096092516,246223023,-1325515675,-42863618,1634904109,-143661639,1093414080,-5770876,1278511523,1238368075,-1582017900,-697246831,-1727675650,428001745,-1085179685,-289419516,1957195051,-586904581,360378690,-1251245707,-638336161,-1740877895,1754499125,-544960269,1466801952,1850700150,1464955749,1637812967,-186752206,19487690,1375097128,-1413744988,514926070,-1158766457,-206601741,-564677589,1964735556,1799091382,1235123121,2106064111,-1618728858,-209882123,658990736,1123977043,-267106850,-1234315850,-2002869110,-1403276753,-306028215,-1262027589,-993020281,2084284063,637881058,962035127,365725889,942161332,1355918484,-1406675878,717348682,-234769723,-826179918,1106949482,1290589901,133688083,1126296087,1363222855,1516934968,-443929832,307328323,1253646092,-503171649,566546379,-127492425,844558757,-1692294213,-1158506080,559697806,-1528798805,409532755,-1541617306,-656541412,1035854052,1333771934,79842406,-95110422,-2083295334,1447780262,1937644690,-636423761,1169712525,116129006,1475881113,-1094099796,-120803493,-1644214674,1868207443,367250450,-1215093293,1627505967,75131361,404500353,1360119714,-1186005235,-1340954454,-264867064,-1302771944,234616836,-734069161,-683586584,365999996,-1578254158,-1548011977,-1605254991,-918171032,-1424734207,-1784740614,-466768220,-1290909776,1457425416,-16969380,-1782795701,-1160091490,1181401694,1320978254,-67917313,-1023546047,653585888,1930345015,636509734,893483991,620555181,1604555036,2012989005,-1886918439,507056709,321790744,1470345560,-1829987842,463773006,893570729,-1231881583,-1910863900,41661604,1324747163,225129642,-752827909,-1048428606,919105808,-1190777796,-1429298333,1553751859,-352235095,1608463106,-294601696,1344140737,1553315251,-1255476690,-1530980271,-240253771,1663517381,-1533789108,-790394433,1117713446,2054173534,-715449225,-1504162111,1314025197,-1672081381,-1186939939,-231901444,-1248367971,-1423628098,-711348432,-758551772,1440753257,-1026240497,-2120187452,506472999,1252032877,1888083111,1040376970,2067268991,-428041788,-974836846,347195973,-213468342,-1071581729,-107496225,-1494007840,576071487,1303852017,1604513479,-59102410,-2017105406,480039706,-192007075,-1397557198,-222454771,1773408420,561372984,41814584,1455030585,1787917370,-197955734,919152273,2096550234,-2132325107,317157138,-247630526,-1312420658,-1987036762,943424223,-1331889625,584023750,-971048116,-237015462,-1885131955,-2135531940,-1660581304,-365483419,507400562,-1706416849,-1923038985,824327904,-297226344,434388064,-2114243814,1008402867,-1166706725,1080715994,-1389863771,-418189790,-1160864443,-2036331196,-1456884768,1374022509,1520873184,-1417647862,-1592346258,1495659747,-2043375502,1192815993,-2110592606,-2139304597,1695104185,388722149,-13309529,-1805323517,-1561957963,-1417960060,-502856400,-1762502286,-242599292,-762554472,-176323459,-841042675,1126428126,1284649300,-1486424861,-1026423008,950242603,-549472684,-585596751,-194508391,1432696098,307409712,-1563073710,-410648589,1298492180,-1729856082,-1726307774,404112551,-1072204213,-209308719,-395586236,815736174,-942431278,-1075741726,1113637070,-1862018534,1558439144,701039198,-953926008,1351749962,300873483,1523145676,-1842549161,395871744,-1729962120,1332770459,-1123207620,1273992689,-2041341652,1412894371,1861974376,-82896660,-1546273077,166516686,2022728648,1557983440,-1581130503,2140898188,-1499701977,-1853059552,-546158862,-324798562,494843771,1535916050,-1260827637,-2085957094,997965062,1663290093,1630231724,258942674,979285100,887028783,-365451489,-1842943071,-1293274139,-880928070,-1944285803,573222188,-1648959498,648802527,-271163241,1833914369,-1038446178,62093712,-1798502544,-1174539365,2109537791,-647027495,1032336806,-1426259421,-690191957,838471919,-717121805,-1657340327,-850522479,-1013587131,531440202,1320035039,-680619708,391074226,-119439638,-1572813666,-586608834,879077828,1750196232,-445565374,58339931,-2002414946,1460426052,1650627314,439158425,645561624,1189950516,-1241974874,-46368398,1139827796,232526921,-1733422194,-34102274,-245294700,-1725830825,-846033586,-510986713,1149788667,739472234,-1403632485,-1796345049,1526905956,564748965,1008810470,509734796,44658699,1847335207,848643023,81168765,916661540,289008904,-1494495747,1111408241,733680647,-558389349,-598902575,1173819060,-1807045564,-1248759942,592458805,-1542981689,-585093224,678018311,-1492036444,-2001912480,-1478448243,2086418511,-593103189,2098346542,-2070078094,1959628568,-1940072506,-1502280130,-937061481,-1948684464,748277575,-2020816911,-852430898,792613585,1839171430,-952660843,1933623073,-659322476,177740168,-1503404898,-289831037,758511480,469883985,1037715183,-73603770,-1669635275,-1354263120,-1506258120,2002313697,1410465632,-1268011962,864509142,-1762645903,-1316322717,-1475191990,17796462,64269421,103374345,-270275434,-224717357,244051227,2127888563,608602695,-876245231,-1610607063,-351091705,-714507355,257138832,-254055709,-555545484,-58680312,1519154541,-1439358541,768935405,984755610,-1175885348,-808414031,-977539498,-167541082,1022717495,-1672418094,878231600,-1490189039,-122573407,1265841421,-282371104,-679690828,700369497,-1493272508,-491983930,-2033683486,507025802,-1589284963,-361094425,51890721,1718970931,1099278825,-419351880,247208184,-933587958,1563704000,-1068271271,-699003721,-441755334,-873941324,798558059,71643760,1482348650,-2003458190,-843710100,1838938632,1503099083,-303250447,115593914,-557994077,-1322062750,540451875,878346003,-1824895036,18641252,-224181573,-1943679776,2008861043,-546865596,-296103090,1587516589,1547286057,542656534,1107441917,440621500,733742461,-1031204445,367171187,-2045908813,1574603050,-556981427,-1913278947,1391807379,-1456081677,16096879,-71701722,-650930955,650866027,1304260757,-1861705533,-1481263227,1654237604,1642872187,896568709,1271334109,1495443761,-1752731050,-722792053,-1479035632,863966339,649213209,-1570220472,2103289758,1040202536,332906806,1526670013); -/*FRC*/Random.twister.import_mti(624); void (makeScript(14)); -/*FRC*/count=1; tryItOut("\"use strict\"; v2 = false;"); -/*FRC*/Random.twister.import_mta(-2092302635,1967609409,-1796197715,463038708,97691071,1783828979,-1819598258,-530187803,1864275829,-1034032622,-2070580612,-662743012,-733799587,-49113628,1784011238,-1962189897,1855940698,-1277234155,504843779,-465040940,-400151731,689202721,1298585767,-983033177,1654380795,1213622774,10900197,1498286750,-1265150302,2102426758,1295168365,-1909905504,2086518131,1345252868,914199757,684184399,-686162478,184363719,1743312365,1999834441,1203758372,97020745,204006510,-64489016,-416434696,-966088405,410845907,-1224225385,537795965,2123474418,1227831571,1781028593,-1129276181,2087548807,-2058174427,770062635,1634166522,-1152631608,-1173766361,121532711,-649978794,969851210,-1223993595,746226355,-921882358,1812759127,1632024029,-1505146785,536111479,-912549520,15318164,-440894084,497097657,292444822,-1391900016,1879005188,1942834280,545215870,-264883531,1213543983,-1296008848,1885045018,-983901634,501972399,-1755645055,1865658286,1225661225,587809281,50056739,-60451645,-98179955,-1652790319,786666949,-958197666,-134845611,1959500638,-1854504899,-1755910469,1056977625,1673311150,-1202302127,1100447783,69163171,1005522910,-1122833238,-320953281,1829042150,-658201080,-921220270,-795135446,1297489376,-137515867,-1738527477,345528917,-559950771,1853804281,-184614493,461141058,-2094148829,-19787624,745389014,-506397368,-168311129,2091180075,-629270835,1331468500,-1455381581,1897337984,-990870686,-1738130343,410510687,-753342744,-1906339458,1260188373,1073611563,822774799,1072386698,-1578950927,1293959715,1054318748,-1089395810,705142115,-742094229,-304924644,-535794549,1771405714,1012434287,1396211561,-942612572,1204778520,-780111781,1471356468,1725210056,76251589,-1808044600,848093624,-1550517148,-1238289526,1756346535,1329716579,-1020001748,-219346127,486335801,-1213262465,-2050713358,493246588,1329225331,-1405254185,-2004288315,-1038842251,-913731449,313743902,1168934333,863991737,-1322604229,2042022244,-1773176815,1524795068,1595434850,428309740,1003702481,-3322027,-829202859,1051433242,301690354,-392944852,1771488916,421751807,1597254306,1523101981,-1236236517,646229289,85267877,1722135572,-250218743,1910766664,1632919235,-763366918,-583549513,1328396340,964190238,307214226,-952488864,551787713,-256714965,1805310059,-993565816,182811919,2074499364,780669370,-1235819676,54842277,-1695551525,848710539,-1778425791,1497312206,-628448251,485603167,-80029435,86173417,-1380691920,-257553180,-1409333308,1452048178,930510807,1577422737,-648612554,17314626,843716019,-707925761,-1511334682,57098218,-624180783,-213238353,-1157512851,1939702123,238160764,1943268666,1962360855,-1146322212,-903164940,-1689021479,1011429809,1946816845,2022295778,-3605370,215160937,-93571733,-663940575,740926132,-128974072,-784407009,-2106393015,-24652468,-831671732,1900002195,71747576,-1896761604,-608455681,378628843,961174422,-981125338,-1868231785,-1748386512,-588411125,-609213052,-696298555,1488885601,-1587750615,1058449548,-1630180351,880664581,-3541874,-513423133,1388618535,1937212045,-1229846862,-151252940,-588148403,-2104653456,1066386054,-887314008,-1901489190,926816995,1528447505,-824985739,394567355,-662890166,-1952747255,-2109477608,375600390,190911133,1383590650,-130178172,-281346090,661312470,-1854365929,1143054407,548211916,-1662527883,1074390517,-1912195274,386985769,-1391171311,1613003344,-1095436399,-1538911294,-35696183,-462019758,451021466,1165648607,-1602311091,599896478,1240695460,-468946425,-2033597167,-1672437330,1975089664,-285926208,-359896136,-2051860740,-1553812827,-2060329417,-1138370739,-2104042946,1871408750,-1775830784,-1152640152,-1156364732,84290674,-489039436,1453244969,2118361618,-879348758,201224022,23908183,-2061049624,1012244344,-1129021412,-526045111,2111730073,1026139820,-1852234592,-1787889844,1026911464,160831885,-1615129848,-382415460,-833673630,41104928,-1617406920,-1328772004,1182122316,-1205202406,-1679991898,-1572718872,-1810627954,1425716350,102462564,928815748,-1411949598,1271654793,1766137528,469926755,-32267520,739254852,911625617,-782183958,1055071308,-262761169,-2053492551,1911531473,1156656244,-1404681573,418659433,-878596072,-1182794358,-821630139,-1421057005,1711100254,-140986805,-1555639940,252407246,1802933214,-221816723,1424460099,1630512395,1255955599,-1927230729,-1766163595,-9874833,-360858741,1798808499,-1735543535,-2114217506,200075807,-2084442248,-1808511484,-1171648585,1966681067,885581008,-1408896243,-86964308,979114817,-1963375693,-1620718001,2084073905,-455754044,-1361569341,-1069010514,-185151062,-1088885402,121322483,1218154075,1492834103,1431480602,-1623263217,1367755067,-1824813158,1540427638,-355236390,57870083,-1340717856,-755227291,99368457,580389408,-1209009847,1991176507,-1408231902,-326277950,1799631896,-859674530,985315876,-1438391273,1356311021,1334749472,472943259,1860389526,118889194,-244726407,61276914,31544274,1241650498,-100909537,101567628,-2052790852,1692062915,844294859,-51313373,-721119685,775746552,-487705693,952944950,815480570,-96160928,608414726,1525578349,1989449130,1860592088,1394065500,-312827556,-1271843157,-339637839,-1607157968,-208536574,-275467146,-1594027954,-1028244112,288278008,-1000415658,-119592047,-824529936,149352497,1848155955,-263625911,-2103073380,-460781455,1935362100,-1079053869,1330548757,-317751522,-1975833348,-1144562038,-480220416,967572854,-1523405080,350217298,1126997018,-1012179771,-1012955000,1792263204,-1727973213,351564536,1286701282,1042735238,1875591326,165243711,608574100,-724234422,-745525180,-1540766681,1106595176,-1658588781,-534184690,1643400899,1528038117,-1086063661,-390413373,-1665178768,-575292858,-711271732,1897053601,-723099306,1313288400,1242414509,1247183079,-699744067,1457845169,-1820068748,-932448991,-808692273,260031968,-114846332,924495761,-821406277,-1673036901,1441754558,-1400359127,2109356603,1354317665,208759999,257293418,-1057703531,1342740907,1909289423,731124091,129702999,1502533169,1587435210,1092372149,854737399,595490243,-1998474376,-964902474,-14219177,195394255,373113313,-1306084596,-925045633,1223035844,-1352995985,-205475875,753883039,-650463803,853941369,1462167528,-578455107,1223416946,-279665150,1304640334,-1933033578,802366803,1878446647,1007152283,-831116804,-832492415,-2058261741,-1290124557,1057701780,-1112258411,-1859902219,1542351966,2136728713,712515506,1187650747,-1925263553,-1272622802,-956227063,2044685970,-984592870,-1313393160,-615292140,35333994,-771300098,-1238605800,698927942,1081111331,1569726827,-52460990,2036939443,-1542770750,-214822946,-1597599707,-1910868577,43592204,-1527949110,-1631858246,871633344,-1373782016,-1266468510,567543869,-1048165503,-159562357,1290700591,90959151,345664646,-193875488,1028316502,-771095122,-1493843028,-389651005,1311533788,-511808252,1793858592,-1180605291,-557117313,1443709419,1966667836,-79064913,362377340,-2020759419,-2012186299,-1080308834,460169421); -/*FRC*/Random.twister.import_mti(11); void (makeScript(14)); -/*FRC*/count=2; tryItOut("d.fileName;for(let w in []);"); -/*FRC*/Random.twister.import_mti(30); void (makeScript(14)); -/*FRC*/count=3; tryItOut("v2 = (t0 instanceof h0);"); -/*FRC*/Random.twister.import_mti(45); void (makeScript(14)); -/*FRC*/count=4; tryItOut("delete h2.delete;"); -/*FRC*/Random.twister.import_mti(55); void (makeScript(14)); -/*FRC*/count=5; tryItOut("for (var p in i2) { try { t2[({valueOf: function() { for (var p in this.s0) { try { s2 + ''; } catch(e0) { } try { g1.f0 = Proxy.createFunction(h2, f1, f1); } catch(e1) { } try { o2 = new Object; } catch(e2) { } g0.g2.toString = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Int16ArrayView = new stdlib.Int16Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n d0 = (((Float64ArrayView[1])) - ((d0)));\n d0 = (((+(1.0/0.0))) - ((d1)));\n d0 = (+((d1)));\n d0 = (((((Int16ArrayView[1])) ? (d1) : (d0))) / ((-((+(1.0/0.0))))));\n return (((0xfbec617b)))|0;\n }\n return f; })(this, {ff: (new Function(\"break ;\"))}, new ArrayBuffer(4096)); }return 3; }})] = f2; } catch(e0) { } try { b1 + ''; } catch(e1) { } b0.__proto__ = g0.p1; }"); -/*FRC*/Random.twister.import_mti(306); void (makeScript(14)); -/*FRC*/count=6; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return (Math.tan((( + Math.hypot((( ! (x >>> 0)) >>> 0), ( + (((1/0 , ( ! ( ~ (((y >>> 0) , (x >>> 0)) >>> 0)))) != Math.fround(( ! (-0x100000000 >>> 0)))) >>> 0)))) >>> 0)) >>> 0); }); testMathyFunction(mathy0, [Math.PI, 0x100000001, 42, -0, -0x080000000, 0x080000001, Number.MIN_VALUE, 0x07fffffff, 0, -0x0ffffffff, 0x100000001, 0x100000000, 0x0ffffffff, 1, Number.MAX_VALUE, 0/0, -0x100000000, -0x07fffffff, -Number.MIN_VALUE, -1/0, 0x080000000, 1/0, -0x080000001, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(455); void (makeScript(14)); -/*FRC*/count=7; tryItOut("v2 = t2.length;"); -/*FRC*/Random.twister.import_mti(468); void (makeScript(14)); -/*FRC*/count=8; tryItOut("/*tLoop*/for (let y of /*MARR*/[objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), x, x, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), x, x]) { a0 = []; o0 = {}; s0 = ''; r0 = /x/; g0 = this; f0 = function(){}; m0 = new WeakMap; e0 = new Set; v0 = null; b0 = new ArrayBuffer(64); t0 = new Uint8ClampedArray; a1 = []; o1 = {}; s1 = ''; r1 = /x/; g1 = this; f1 = function(){}; m1 = new WeakMap; e1 = new Set; v1 = null; b1 = new ArrayBuffer(64); t1 = new Uint8ClampedArray; a2 = []; o2 = {}; s2 = ''; r2 = /x/; g2 = this; f2 = function(){}; m2 = new WeakMap; e2 = new Set; v2 = null; b2 = new ArrayBuffer(64); t2 = new Uint8ClampedArray; }"); -/*FRC*/Random.twister.import_mti(568); void (makeScript(14)); -/*FRC*/count=9; tryItOut("this.g1.__iterator__ = f1;"); -/*FRC*/Random.twister.import_mti(581); void (makeScript(14)); -/*FRC*/count=10; tryItOut("\"use strict\"; { void 0; minorgc(true); } v2 = (a0 instanceof a0);"); -/*FRC*/Random.twister.import_mti(604); void (makeScript(14)); -/*FRC*/count=11; tryItOut("/*RXUB*/var r = r0; var s = this.g1.s2; print(r.test(s)); "); -/*FRC*/Random.twister.import_mta(720571367,-499935320,821277334,1185504420,-86019936,1088519831,-1455287935,-1596332719,-1596445226,115053470,-1049421029,-119876578,966280241,-1223946877,230037579,-274001515,748579377,-1062963396,843137396,1033466185,-939054746,981722761,1041845992,-829141445,510037491,-968933917,856221717,1398205430,1169932475,-1047680931,155254074,-645173839,-437663138,-969900085,-510832448,-98179439,1558336700,-252122529,1378983186,2074358320,1071811999,1501347054,1602042824,1177523993,1210640352,343286995,1074993343,-610770581,463291903,-1882090241,1321435419,-584501565,-1442375844,1657009556,-11835597,-1646019017,2045742794,-1694946341,1441584468,-579079825,1993647188,-741121057,-655178722,543784959,1231392123,-62638976,1826782240,2046813250,1612516089,-1027997191,-409343436,971701791,-667196157,-809011458,-1376850512,687928475,1603965697,397141727,908368912,2036065255,2069830904,-728270073,-2041290309,2074714680,2046793268,-2090995793,1128030393,-688769388,1920199805,720161871,897898739,1480814842,-224139216,1701961977,102902201,1987667367,821323616,-1118924910,-988790529,637110052,-24897900,332087031,-524125265,-1129416665,-1913090478,-1216078434,158765700,-1005554368,162707529,-444399619,-91282228,-1695832031,147053126,2007755335,-778948786,-741771769,1446958148,-1996326542,525947427,-815295477,1688054158,27873863,-1117266111,777189918,1879204110,648561338,-1817886977,1403642382,991167014,1629718658,1405600194,-856812356,-34010377,1321464776,33187238,-1336891207,1707238421,922251575,1186881977,84123802,-1360515571,-684266013,372335070,596583352,2015396315,-1922927637,-605213662,-1844229429,1617975133,-673493932,1496092590,-1403346423,122880562,-201715183,-2020687589,-511534604,-403486278,-547822003,1570506102,1446834445,-1168854457,-790830191,907216246,-1360261186,-2087980051,1984025246,1886186782,-1324929939,-566505057,347261432,-105997636,1320865036,2112411871,588123868,-548442546,1281007744,2049495711,122339615,-1439627668,-360536942,-977954947,-45531211,-169077204,408584393,-2043232549,163206847,610586502,87505560,1613481583,1173985503,-1566428105,-472651541,-1044286260,-1702852450,-863191300,2068519811,189420143,-1187035020,-670961232,1907044099,734211906,-931648336,-800703193,-705163709,-1473353877,448804906,127375911,-2013592975,-2065845523,-1003336614,-1092905300,-1927109781,-663924510,-854701371,-1343470278,732556900,-1959020350,-1010209381,-1592066776,361339903,149147396,559466360,1165287964,836884756,10039043,-1899391785,848423310,1739160232,-1758204071,-1632219429,479039786,705387582,-769733174,-1424067105,-59704787,-485117217,320279185,-513758731,-718218419,1395058180,475550062,-50187449,213905717,1947252068,94834542,1498200826,-804472821,-179476416,346111798,1201259452,673710309,-328653095,-896941723,1276154930,-1520963354,1111008532,1513266535,1174127565,748438123,-2144231225,-1907753518,367832373,1669893430,387703871,-1083397780,2003688609,99662819,-1985043699,1978704719,-537507970,-1120206551,862969805,-1997516625,936089861,-884802715,-746058393,1648763050,-893866404,-338196239,990256243,400776854,1127724062,1211586124,-1594628687,-856275393,-505636358,-434073659,-1183231345,559023788,-1304378310,426469102,1985991770,1267624522,-830356423,1418274703,1842732421,-224115923,-1889584197,588785283,-325636190,589112957,-1297120103,1845653705,-317316301,-663677478,992184937,1174220655,-898703129,471647246,-1122317369,763933642,-1313884254,975447793,-1477596143,1776993291,-294137529,-501991626,1238290785,-800062007,-1829815202,2030810525,655148313,-1059241913,2000787553,1321536937,-306299135,1711268761,556016821,-1253694576,498694828,763328424,1942320967,1784045969,1192627339,-1661665150,-1822747175,-1887072931,1944675067,-295632911,-277888216,2086606446,-1895744975,1685067930,1905719353,226216250,623538159,-1879958759,2084124666,-1998623389,-1398207635,732384904,-582488298,664241851,-1920157376,-1961215802,-1756624895,-1154496662,56237601,1225558513,-2033400320,1409200447,1711150457,-2094230657,-1864094629,1838570150,-2013846576,-1183775879,-918322503,-517024513,1261941747,426324512,2019027354,-592509968,1047151417,-932326072,1288655210,-579627212,1569229492,1306909399,-1540773769,-2055493918,-1010699974,1773056351,1754987296,-11531357,-458733904,-726474854,-1888532779,-2079526926,-1105872173,823987028,-509779922,1337457598,-1903801207,-356075519,1584462598,194897284,1392959036,1560892915,1915821096,1310772033,1391391745,1642333813,634842854,1950236088,846134222,-45653965,-1234656347,-1921627500,-2037420811,1117564699,-1543755982,1892633586,2112577380,-644448864,-521208663,-741169034,-403133491,-595920447,1985343472,-748363429,-1341790201,-1674692096,963212003,1089838334,1898272148,1741082511,-1893159499,358396551,-1019982197,889184160,490540281,708562565,-1860116370,345307722,1908453566,-1224226611,1412935180,1201207379,2089092695,-824758264,243688929,1424271087,-993468983,-187504338,1483283411,1082424831,-9102436,-1397691221,-891512932,-640197457,86489151,-39033671,542668145,-1446740532,647889437,726280928,1382853811,-511059721,1634298706,1178508125,-925579107,87351817,-1539961252,1883566039,-931701950,500430159,1058212553,-1509082593,-1675773079,-1691664755,-1750464353,-69209834,1563433006,1688830922,1179989124,1031187187,684393102,-600972565,-458098980,-2064543896,1804529974,-220623047,-926874649,-1249921807,1346959976,1620047327,-1227383319,-616980023,-253628202,970934274,2061253304,-995060244,-111258936,823168831,275593803,-750729019,1925946120,1839648390,1678473097,1272954036,983232247,795086368,1285061878,228009856,-1417421220,-852963456,-861525030,-902966912,875297263,-1243699648,-1452742673,-756854129,-2090202823,-1228210997,870758275,-1676527357,-2013304313,907198567,-1617181192,1923848513,-1045059818,1062979576,-1456502928,199917956,-1488708763,-1412320286,241553814,-495522064,-203605154,-634694188,1865259226,1725143052,1060814806,909476738,393750075,1224426710,-27108571,969367078,-955897168,17042535,2120594982,1094612487,1149356691,-444112837,348839481,-871331008,390619656,24169229,-1627019552,1464593128,2123156051,1009069905,1882210014,2087297099,-117868236,1646256880,383125035,398602600,-1863021403,1578073702,-2020223479,1513042486,1133927533,-1755371929,-89562894,1728124323,-313913134,542625475,1010458063,-597375530,1519701569,40865122,-2136178773,-1868804838,-1511656843,1511568442,-1509009081,1550822512,276601471,707479546,-568267794,379525664,-767489396,1331660133,-1760672631,1002855096,2082333963,-772792695,362060689,-662755156,1509602367,639118138,-1791998345,273574588,-70522477,498471390,-1750639297,-975606940,1217334203,-1426709201,-307448977,766440569,200632234,1144054742,436249987,-1965476986,-632855814,-1321533436,-1844870333,-5451013,-438050491,-965167901,755658109,-1017922990,-1919754850,608516402,-880127071,400847228,-2117524353,-2038255834,38841582,-1890034546,-940781400); -/*FRC*/Random.twister.import_mti(173); void (makeScript(14)); -/*FRC*/count=12; tryItOut("\"use strict\"; \"use asm\"; /*hhh*/function haftzw(){;}haftzw(intern( /x/g ), false);"); -/*FRC*/Random.twister.import_mti(247); void (makeScript(14)); -/*FRC*/count=13; tryItOut("L: print(g0);"); -/*FRC*/Random.twister.import_mti(273); void (makeScript(14)); -/*FRC*/count=14; tryItOut("mathy5 = (function(x, y) { return ( + ( ~ Math.fround((( + ( ! (( + (( + ( ~ -Number.MAX_VALUE)) / ( - y))) >>> 0))) * Math.fround((Math.fround(Math.max(((((x | 0) ^ -1/0) | 0) >> (x | 0)), Math.fround(Math.fround(((y >>> 0) ? Math.fround(y) : Math.fround(( + (y >= Math.expm1(x))))))))) % Math.fround((Math.fround(( + ( ! ( + Math.fround(( - y)))))) , Math.fround(Math.fround((Math.fround(y) ? Math.fround(( - -1/0)) : Math.fround(y)))))))))))); }); testMathyFunction(mathy5, [Math.PI, 0x080000000, 0x07fffffff, -Number.MIN_VALUE, 0x100000001, -0x0ffffffff, -0x07fffffff, -Number.MAX_VALUE, 0x080000001, -0x100000000, -0x080000001, Number.MIN_VALUE, 0x100000001, 0/0, -0x080000000, Number.MAX_VALUE, 1/0, -0, 42, 0x0ffffffff, 1, 0x100000000, -1/0, 0]); "); -/*FRC*/Random.twister.import_mti(563); void (makeScript(14)); -/*FRC*/count=15; tryItOut("/*infloop*/L:while(((function factorial_tail(zbwhpo, yogoku) { ; if (zbwhpo == 0) { t1.set(t2, ({valueOf: function() { ((Object.defineProperty(w, \"c\", ({configurable: false}))));return 11; }}));; return yogoku; } ; return factorial_tail(zbwhpo - 1, yogoku * zbwhpo); })(75476, 1)))x.lineNumber;yield;"); -/*FRC*/Random.twister.import_mta(1646204392,91262136,1365619322,1934586641,-1416168555,-330449302,-323834735,609364819,1896034817,1156996449,-905590358,1219680339,67230443,-1655761951,220274471,-1081553355,1572431098,-2135499494,1730868434,-137282363,598861910,-1015652683,-937985998,90118013,169002537,1554185941,281151256,-81736580,-924110491,593932562,988130226,1739085736,958710193,1144616896,-114864274,1145758939,810821022,2106340547,1276291494,838745821,2022305915,1747346871,-962953980,-356301832,-1649031337,-303719825,1879858595,538245902,-964075149,-1091760723,1223241762,-105683195,-1145213610,2138726377,-757147653,-2124700708,-1272164285,-1020127386,-1859433867,1344305354,-494031485,-1913603336,-1470798734,-75174593,-151596323,1933958169,-1731593091,-649930124,1881336673,1847525461,-85015271,320354369,-67239914,-841201579,1512227341,1293551689,-806528098,2143014338,-470780504,14230671,-1685581870,101671657,-1721423936,-1207024526,-215435714,172953530,-474474323,1431237136,-600429424,-482006663,-1695144556,-496478767,458338421,-1547244543,-655869772,-590698916,-403106559,-896524385,1116862937,-335363185,-1574521684,-993049714,-1554711739,220461981,1633214520,1809794914,1854948950,-800666757,4854141,-1334878746,417025813,-1907606365,-1762214893,-1659391513,1501883443,-1174652755,-2014628480,1617880325,-1923232423,-295899708,505639931,-1314283752,-927811337,1252698566,-756971957,-1350440872,-1057261961,375423127,-1747591388,-2110631165,672324552,92461908,-1799568710,-623483129,-301106087,-1925571879,-1118947438,-1939733631,368703094,-964173041,217160971,1927278281,-691946644,-1541604267,-505659636,751362070,-1803493591,213384010,1059551251,-1601778537,-1737653293,1121536532,1072701239,-1920714054,239961769,1339853708,-2037056217,312976112,1257222509,-432207092,-407845060,1288418259,-2021487750,-2034092209,-55230650,1645823161,-1038255484,1632271991,-1326447602,1540774141,-1978173868,-2018831757,767384225,-205294863,1018797569,-1502391054,436318203,-2054894036,-794517444,-1580544165,1101166146,647604070,-983995708,-1338464184,66416750,78478819,-790980672,-431827315,754595897,-1281363844,-1795382879,-1324309265,1490345950,-1103530030,-1118336735,-1162497326,-1984961971,2085524068,437702349,139953791,-1281668249,888325416,-1149518779,1743365701,-1597198470,-1217558091,-1862248883,-1621718401,2014938030,-709560112,98468752,-586307467,1837504254,-1470435226,-1338567049,-1008375678,-706319505,-1814117178,1583259838,540335792,-618254307,895352946,-1724266251,533104760,-1673734566,-703551415,-197628420,-259108197,-752674038,522418927,1716182286,-2103861904,550122586,193093976,-858766621,-1585443946,-313607868,966071507,555854673,170783324,986102429,-763996318,-2055170937,1600840525,-1408204697,-702277624,-1921546011,1776383949,-524632213,1158400159,-1436338994,-161573308,984265932,40501099,-1707303178,2096811785,-1735139285,-1247593896,-21481708,2113945432,-1748528763,-924644875,-691034597,803369256,-1624085940,-673037176,-1407066236,-1686564605,1205683720,17780047,712776897,12935135,789112370,-861564722,-791130782,-1213566682,-1682875773,-1542830971,1027135971,-1337146851,1591838182,-154829603,137028059,1264567171,-1277404261,2066988360,-1785437870,-1306218795,-1798252315,-455026939,-1062533358,-751704072,-854749478,1803935589,1990231145,-797410776,-1330107049,845833863,626241424,863511543,1300445894,-1272231242,-493246193,-1546268301,-1155352535,1476809408,-1125719005,-712610347,-2121615403,-811499995,-1596350557,926029209,-2135856787,239454839,-75650452,-1388562677,514519318,735483823,-1423979522,-19080604,692600402,1636706376,1046665907,1502814986,1699197120,-1452885814,1704485130,-1199200924,-1978401064,-1242873711,-1379274527,-847552465,-782437896,1625998871,14938440,-562010356,1351834692,-1226604494,-100934345,-388417756,60791840,733798526,406844526,-2125016803,-336371155,330067978,-1874823623,-2092665451,2130029169,-1654579277,1678335565,404944329,-1454918408,-2055837164,-993119160,-901628783,1519905996,-1784926225,115652692,1682647802,1898044772,1989379385,1547746347,-880469311,-1885760919,-800471275,992907916,-445757525,-1907587089,-629857668,-1741223784,-812925196,-353013419,-1330236019,1792037887,295613321,-834500147,664264295,-909824272,2102250566,-328941017,-476942631,2073163292,540297257,1626571176,548855456,948050105,-1514753851,-1966481819,-552857904,-1240692904,-1687240039,-61681118,779523675,242353140,-1254164788,1918187491,1033596018,-1095525273,-1817866274,1136441390,-1790759452,-1265097855,538882343,-1665944629,1997512954,1677078102,119100168,-53042749,1025478038,-1580811311,2073220503,978899537,-65951472,255662086,1158900738,1500190021,1674145182,-902147305,-395436116,2134061838,-213871583,2131344252,-1445647310,1155283118,-1325590059,-1765056390,1614652155,-1939844430,-519810155,-260075290,752482535,-1073874558,-615896216,-1481190880,-91039977,-1079037994,-1088794778,2051513217,1257082618,1980854857,55440863,2022291129,-1349574664,1726151152,-418107746,529421182,343340695,1345342396,1826281085,-1000479560,1004688601,523510318,-522562790,986309450,-964292998,-1357013911,-813268566,-231921447,-1696741077,-1226787383,390234936,-1281684296,207912560,497990002,-155131607,-1934833689,-1329031347,91240969,1360902942,-1917364259,-771786516,-1195633633,-1088206592,1254878607,1728666317,1366182360,494761316,-2079953622,2027058040,2007926768,978905525,-2121073115,1529121420,-578336916,1475837220,-60604045,1666445758,-1332481634,-1977613798,311192692,-1117118278,-1420988948,1839278276,172440825,-143289675,2020245707,481262466,-1412934460,182925416,1222661994,-949335438,-1847177379,-1652897469,-1312052309,1538047523,-702556176,1006071078,903360757,314946299,-2031943509,1134903811,-1550972661,1475981288,1927235019,64058555,1041748697,44750846,-587463420,760279717,1264520430,688744341,-990922352,-179475051,-1195320342,1891333729,1951058748,2092453310,-842672359,-1886649371,-733799138,-2008320977,1201343787,-1476647454,1194511895,-1510533698,1771627368,-63295312,347144385,1497096065,829886820,1122640304,376726173,-1251872300,-121943956,-1927836066,-1250366624,-1325864181,1846344504,1439117255,-2230532,-497182793,-1853970523,-1029438992,-2064049666,-82047072,663286619,-1507268523,1544132258,-1101312309,-98001460,1844734035,1715730917,-1036746840,-877186997,326362937,-562282675,-893596770,-1398178234,906860165,1964246754,-356211556,-1963786496,-670150476,1220426864,335147116,393118671,171870325,-1995175895,-1135470843,-1436147741,-1887323816,-480069161,-1540317535,118734196,1527223560,-1018337120,-1060019457,-1521387474,1887381629,1047588865,-1667921932,1138316529,1930012626,1099105213,-1063809280,1219378236,-86262486,851741686,1720111901,1600707813,-1525704420,342098012,-329582554,-1281409927,-861292749,275676475,-1258733019,866000807,-1655754818,-875755436,-1698206970,-281323327,422299024,-478159350,-655670532,1673631711,-33636378,42131577,-1089239631,1868480556,165555635,-691495272,56278295); -/*FRC*/Random.twister.import_mti(86); void (makeScript(14)); -/*FRC*/count=16; tryItOut("/*hhh*/function nkpcxw(){f0(s2);\nswitch( '' ) { default: print(Math.tanh(new XPCSafeJSObjectWrapper( /x/g )));break; }\n}/*iii*/a1.shift(e0, f1, t0);"); -/*FRC*/Random.twister.import_mti(236); void (makeScript(14)); -/*FRC*/count=17; tryItOut("\"use strict\"; /*RXUB*/var r = r1; var s = g1.s0; print(uneval(r.exec(s))); "); -/*FRC*/Random.twister.import_mta(1059269166,-1778301606,856327817,-813730501,-479857967,1539949846,-348187567,1027250708,-864272747,1190447747,-95907842,1742666857,-1431259975,2120123549,-44170670,1417961516,-62208099,2091410031,-403488065,146006382,-612699621,-1372459250,868820173,-483204923,1142512532,2003351792,-1807398388,-1180626749,-514965156,-1950763613,1407813935,167412405,-1021777803,-856934575,-671860139,-1479021747,2089058774,-2118154509,2070247590,451110708,302108002,1493869827,1066151686,-1581047491,-323516361,-1719195465,-1081777537,-592512618,560601239,2080033647,-1314392630,233766167,-1972418218,1949974426,2068809015,-601179440,-2126292823,-346753361,-1365888481,122944119,-1988174634,-1509451040,2115440491,1418947704,-135733781,653738585,1623528266,-55084003,1489490396,684922292,1615608754,948910594,-1359269909,2041480708,1853541399,-1622492720,-1057050655,2066995035,-1100122027,1554665009,-948800305,-2001404214,617959745,238738671,2139057768,692470444,830731140,-207859420,-1084401337,-1323805767,-1955632247,1681103227,46908613,2130210862,-753962092,1102665651,-1847486508,-234393398,1484538797,695851677,2127092293,1667930553,-713132679,2018256758,-226104893,-1498518410,743513121,1759908810,1134235856,58376357,-1512455256,-408166877,-985212201,1932117613,-967577974,-528772149,-1094292043,-310832200,1962869337,-401679365,444471410,565045664,1208329798,-81297644,2127401913,1033548404,662019329,-1289079688,-1465192641,541304536,2121867284,-946096572,2079293625,978129901,1474218396,423368418,2026214653,231617836,532436198,-1226269390,1549629195,1070718327,-1841491596,1100549858,344871355,-2059616810,-214299535,2116043962,73160906,1615239766,-778809855,-386120580,1392849562,569607543,-978070927,188508649,-1946693496,948334999,-939357658,1414566085,1497727331,1606996767,1681057203,-2072903057,-2047837488,1196246183,731508812,-741395892,-409961576,-612924313,274854520,1669293001,-1763401950,-1304397507,-100856091,1593481250,-624150622,552365166,-636213474,2009053422,426924998,-1413956277,-464633055,-342054956,350205814,-888147401,1310278968,-932834889,1120431414,272337071,22118487,-918874175,1868796820,-103578546,-1043374435,-1643768568,221179616,-712977404,1572142304,-932501168,-1599938626,-1234049781,-1938116384,1326353240,1739713817,-974349403,989400518,-812384850,-428618917,1384201459,58140352,1163728088,-1990043763,182334384,-80355513,482401705,1355065331,-1940877739,-923718236,-681951474,-1487814689,-1760119588,-252657267,1631628033,-69285560,-1395349402,-501930875,1454548907,1083721970,3139598,-835470461,-1291785988,1577645498,1415546367,1845141471,-1160027593,-2093551563,1943071369,1657275719,786127144,1466281772,647428302,-1573281451,1934243697,398093931,943732242,-448009641,1915690353,1438432158,653835946,-1742885913,424411634,-279644262,-1722088073,1591003032,1947140502,-781703025,750097061,1996135705,1374916712,831849332,630937991,-265890855,1931326704,-363944777,762681188,-833134742,1911516774,-1064979589,-1279618631,950615565,-80479442,-1076502320,-672578354,-2021932795,-172358391,-1325966862,1983064548,-1933562682,-450917467,-699387605,-1504557819,1619913678,27641275,-1764939765,-1537473866,-951509566,1511915643,1300185533,507677922,1024171908,-1855055226,-901964492,-1029840479,-729071351,-1718388824,-387017176,1927670906,-1204053210,-2009419128,1673208671,-2042714033,1470685622,73876266,389086779,957790875,-1352546300,515874810,1986851079,-307155377,-861182212,-433100287,-143911096,205334194,1007352446,-267902516,1039902897,-1629450634,459142217,1450171372,1312777226,1429646866,1836107318,-1555935308,-424399697,716206888,893061167,1002513705,-1600681682,445791702,-2013714498,-1708420801,1339277218,740353157,1202069580,735231730,403374268,1076665836,-1815657039,-2071391033,1727510098,-900983619,2044218266,1379363964,-1532023875,-438859366,816075246,-66290283,-1240082778,-1559643713,1849603375,1785612741,2132903806,1158842149,1325636335,-975103655,-1283128848,1024162878,-172088519,1132424715,-1744019026,-520738986,-1510593699,-1509823210,-52271495,1110121888,492244536,-2106358749,1391152201,-567896776,643617176,-117679666,1148131279,526030161,-270029407,-1166693133,-1434073670,-176760455,-1772445089,-62921898,-919469372,-1199888001,-2110849758,-1148317604,685579975,1296774821,-545032072,-2060853618,810472567,1060415007,1355666428,-69659711,-1988182187,748745142,-917485270,129126582,-977653154,-1775203180,716022822,-147143883,-1193152561,985247738,-1744998290,1302159000,1533787155,-336646091,1949503850,-1106134024,-180913280,1839574550,257785280,-1862570367,-184080705,159893819,-353392714,-143304885,568278624,-1119610621,-1123280873,284822035,1501265537,-1102347485,-1964211439,1866527415,1425467441,382815453,561858802,-1500317977,1610316830,-196773741,-2140485644,2018447832,-1471574511,1763861718,735192826,-1180410704,218897216,-413377569,1613484965,727866998,-1838122624,1585034436,185029205,599120651,-1076192998,-2026503141,1147794586,-1891001855,947089213,-757189679,-1514589774,-196814753,-1665564181,-1083058912,1978769558,-1910622695,1743562971,774741808,1734786230,-1670373503,536790115,1949768067,-51815153,-1914590068,-776459582,-1114188181,-273178031,-1932197129,236463425,1038793316,464882439,-756230981,1741787794,421964879,-660406072,2097913714,675677208,-1709269646,1696938062,-729566110,494911858,-954922923,429737168,-5534919,1196305463,-775713409,542795959,702348219,1619744906,-1184832029,1839768749,-1075310015,1537540870,1383887305,-748873757,632832961,-1108530056,760026223,-1103075558,-1683633307,-195272201,1451251316,571462007,1897544952,-2098346454,-1479555266,-1193001674,1437899150,909651111,-84616380,-109063067,503487569,-811543230,1731071992,-1023538439,-881059826,521660189,326475014,1590612747,-275604669,1326703284,-151216703,2050847165,-1265697827,-1817122923,-2111897928,-1234791337,-598640628,1492130146,1032417081,-649442846,-302659471,719890538,1441800144,205788453,44073139,-743688681,536565315,1404712222,-271081478,759707242,-1372029969,-356984538,1101401223,-664057511,1105297913,-1759830346,960043414,-421689042,1386102088,1264858288,922996642,1273131984,2001175760,1179591417,1784365148,-1869678301,-369234705,470713989,851964228,-1009622925,-309367711,180912422,-455595962,-1868702033,636611272,-505974520,815991153,138571552,1129466091,1733639730,-506047427,-1982815808,1425756118,-168786525,615131038,1058950490,-205782556,-1387269480,-1290127280,47340425,-1480952101,250734294,-267591862,277395130,-736585879,-1172344917,-895164999,29426615,600236930,-1471467796,67534046,2075119177,-1533132999,-1573370973,918311511,-481604691,2134807651,1387757727,-221001374,232610271,-1512723057,-1940336416,1782770521,170570303,1197812765,2135683739,167099848,-1227047264,-406292216,-152197665,-968359304,31380589,-298018947,-379813904,-660164793,30145004,-2004610273,2102944198,-19800253,-1320724560,-499906970,-552091934,-634673335); -/*FRC*/Random.twister.import_mti(147); void (makeScript(14)); -/*FRC*/count=18; tryItOut("f0(o1.f2);"); -/*FRC*/Random.twister.import_mti(162); void (makeScript(14)); -/*FRC*/count=19; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return (Math.atan2(Math.fround(Math.hypot(Math.hypot(mathy0((x | 0), Math.PI), (( + 0x080000001) >>> 0)), Math.fround((-0 >>> Math.fround((Math.acos((y >>> 0)) >>> 0)))))), Math.fround(mathy0(( + (x % y)), x))) ? Math.fround(( ! Math.imul(mathy0((Math.cbrt((Math.fround(Math.log2(Math.fround(x))) | 0)) | 0), (x <= 0x07fffffff)), ( - x)))) : (( + ((( - Math.acos(Math.max(Math.fround(( - Math.fround(y))), Math.PI))) | 0) >>> 0)) >>> 0)); }); testMathyFunction(mathy1, [0x07fffffff, 42, 1/0, -0x100000000, -0, 0x100000001, 1, -0x0ffffffff, 0, -Number.MIN_VALUE, -0x080000001, Math.PI, 0x080000000, Number.MIN_VALUE, -Number.MAX_VALUE, 0x080000001, 0x100000001, -0x080000000, 0x0ffffffff, -1/0, 0/0, 0x100000000, -0x07fffffff, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(505); void (makeScript(14)); -/*FRC*/count=20; tryItOut("/*oLoop*/for (let pgihmz = 0; pgihmz < 167; ++pgihmz) { /* no regression tests found */ } "); -/*FRC*/Random.twister.import_mti(534); void (makeScript(14)); -/*FRC*/count=21; tryItOut("h0 = {};"); -/*FRC*/Random.twister.import_mti(544); void (makeScript(14)); -/*FRC*/count=22; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(553); void (makeScript(14)); -/*FRC*/count=23; tryItOut("\"use strict\"; mathy4 = (function(x, y) { \"use asm\"; return ( ! ( + (Math.max((( + ( ! ( - (y >>> 0)))) >>> 0), (((y | 0) | ((Math.fround(Math.log(Math.fround(x))) % y) | 0)) | 0)) >>> 0))); }); testMathyFunction(mathy4, [Number.MAX_VALUE, Math.PI, -Number.MAX_VALUE, 0/0, -1/0, -Number.MIN_VALUE, 1, -0x080000001, Number.MIN_VALUE, 0x100000001, -0x080000000, -0x100000000, 0x080000000, 1/0, 0x100000001, 0x07fffffff, -0x0ffffffff, -0, 0x080000001, 0, -0x07fffffff, 0x0ffffffff, 42, 0x100000000]); "); -/*FRC*/Random.twister.import_mta(-1657786823,-366979139,1234028919,1348183672,1465732465,996821657,318772114,-463662202,295560619,1226266261,1425437971,2036830467,-1954390905,837975273,-88514921,1378547118,-287618861,1075754550,-1288919044,-1788151886,-363008380,2111847086,-1200895314,997708619,-2046828709,-2133973481,-1432827383,609339551,-905632045,-780059462,996607842,-411059973,188470244,1922591233,-1297328991,-703869190,-252373136,1449171625,-1261048022,67960305,1389476225,2146288678,-1567916489,2099449156,-1951231936,-842181707,1306699712,1986471310,600035699,1555697279,1354126421,1027918742,-1463604196,18236406,-632191689,1158716768,1406344872,-1145960122,1421835261,1666434736,2100187712,-2124051492,-1237734979,-1123935671,-1102837648,-863251286,716350045,-1109671380,-1442882383,-544096376,-1869438986,-2140339605,1094580582,-1249878573,-582383533,-1633258051,-38275267,1587350589,-1974073163,-1829269856,-565911017,-1371070415,1251371722,583038534,-743036669,22854930,-966417493,-2115489717,273093756,-52073044,-1026717735,-119141833,-2044928524,1143938407,1178339655,1398130924,729794988,644581098,-1475600816,461500805,-2047809428,234351993,-410789666,1410737609,98000975,-315625544,1164522781,-1558163902,1064966067,-1442259742,-1083587008,-845942509,443058349,-631889120,-147331733,164320071,294815268,562641674,1718863148,1378413348,61041110,2060189736,-771676983,-1451385929,-399391493,-259059742,-1390681631,1592598741,-767611436,-1990589347,-6511826,-1139840543,-1180215792,-224056020,-513031424,-1887251765,1394017606,60440406,433376810,613039437,-1726281689,1520745892,-1894049653,-1106792856,-1398397692,170749889,1052126938,-632986308,1908591826,651790697,1296513960,-1889595293,-613462228,-256545449,-342537335,1310301076,-1307833148,1649305578,-1719944991,623151437,1594963391,-1222687613,-1443479380,-2127930085,388071149,520386816,-851463840,-480910493,-784164828,-1444444108,-1743517622,53485745,-2089106262,-2103244385,-1901389780,-1531528687,76380641,-654666196,1601567721,866607289,2137583518,1180722135,-959157318,1220378674,456474399,1778205770,1295476558,1911324705,1158538209,599727967,1999758982,1987103357,523182501,1369715069,1258649178,1027127609,-1906420421,-857588269,311019263,-1290132366,-1123101127,344643823,-1789621042,-1492312180,506155138,-786147837,1300960654,-535042227,-1221786949,2129682939,727398308,728049081,-1566089008,1384118947,287366259,-1330366645,1897685128,-1926960862,-1291079488,-882141476,-1022408335,-1675054625,393820700,-1935133932,-1268886955,924163199,679101507,-1115944384,-365452358,-140729239,165401094,945371052,-2008205127,-1124733790,1614287426,-921817746,-1443392754,-56965265,1846164887,-1607431407,582549646,1923956450,-1299751223,2081345337,1547611455,411165192,1970653653,-1065176245,1855743483,762163074,2010239922,-1303010154,1433080947,-973952571,508971092,2075755083,517162295,-1726809807,-813272881,334582366,-111315427,330796434,-1350232958,1557853684,14307611,-1812053857,2096843458,-342109981,-1086833627,1742164462,1085993171,-732405720,-1506151982,-1755842659,-1783457835,2075688330,665033357,1456882230,-691814757,1524859990,-885534293,-1441304368,-590688414,-1044563342,-375650275,924579100,-1756072366,-1030143423,-1908093523,-1464048001,-1246423286,-614824214,885888165,-637554170,-250447368,-578283611,-1495053899,-1936764315,-999269585,-1444358122,798472491,-1231161208,-1667902424,1864841471,-618733137,-1645810505,-576175779,2088381003,26675145,751032756,-924879975,-1476386137,1195519563,-664740204,-1175707475,-676171525,-208328041,376163618,-741218367,-1593610255,1857309294,1887726172,1123348278,-1053987036,1932771198,731458200,-1620454450,-1782895365,1086256018,-461419775,-2146738807,1648279454,1647783205,1723475259,-1228336837,863999981,-1977708012,797103175,383765423,1762874244,1719179681,-1948532570,550561145,-1697799387,1398996935,1042410971,-182033103,1487504005,-1304400856,1008127617,88215434,-677312700,1259273391,328375369,-451601242,-1946309332,-673203646,1548419693,1152937531,-1247713593,-2099364217,714630769,-595450816,-1267824987,1653584262,394217782,-1128575101,1768300252,1974990648,-600477625,-2105965937,1469652540,-1668770378,-1873983275,511116186,612380175,-982887158,-1620911528,-247406136,-1074377138,897599799,-1434307304,333353914,2137666424,-572306329,-1229323043,1739613706,-1640042661,831366995,-2121225902,634283044,-896101992,1230242267,-375941643,-1601385672,-207650549,-486551938,-851256743,-1582960140,1174569874,-536879518,-2057986021,-1032317603,-1339025609,1946533609,627864412,749714757,99832414,817018076,-1048914598,-641169491,-121758561,-1271525368,2017506453,-1822516389,367164625,-1542085887,-1329636782,-1492811861,-1432736198,-678870989,-1753512179,-745508675,1026396668,1585589090,37184134,962326494,-755800010,-1214196615,-715002060,-617965728,-1828247723,-1514838936,1482819315,-53884651,-240447717,-732496693,-1035571543,1054083714,-1415619568,1027809473,-1918122618,946235921,1861299205,1471634416,-784381299,1439165187,104746544,743381224,1168483013,1870852068,1661608575,1756198639,1384289288,595304851,13190920,-527799311,979930205,-1352038221,1589307991,535220412,-951841766,-1879114968,-1054112145,995695749,-2133238688,2136128181,-54680847,1817732048,643115925,-865069637,802579574,-1927674640,1495550385,-1106805518,2059364343,543351099,88297365,-1743487321,466941130,2138086704,1385753148,-580585720,-461577229,687574865,111408203,-1642619044,-921118120,-1777381444,1079637515,-635024373,1829294232,600361124,-866291220,542065116,-1580291559,-1468437754,1603978078,8533317,1159688694,-65545049,498978737,1127572470,651524504,87138729,-1968070656,809093265,1227061031,-1754456718,964531599,397722757,-833854788,1150087904,790873073,-1490596282,1489473276,-1593399044,64671312,1973123988,1396991487,2072595513,352612857,1590155924,1983089312,-847237831,105619931,-943692784,1139783066,827457483,-1338969895,-2133496808,-1905609318,-1222712481,1115880208,-467477811,-1320571875,-97074614,-519935722,-1611928230,300299646,1450464188,-860861378,778684007,1185431268,-275530495,-665032550,-39853254,1574604537,432764152,1732703598,-626226955,1455589014,272296176,625406573,-1600746283,-772718628,159976873,1459924500,2069710652,-623465021,-1988811820,-206745176,18056142,1532546460,2105155875,640971563,-1471518749,1650044465,863654924,326793824,858667492,394964775,1415334448,1456903999,184324426,-1378923899,97046131,1407579846,-1909712020,-1821417036,-1723394053,-1569853491,-1275346295,-1617174241,-279971578,-2134939343,1241233604,1530269571,997922736,-928533706,-160581430,-967776643,-1673992587,1957682829,-1422883032,-585440719,983730857,841675295,1861286541,1131317638,464465613,1482386410,-928388228,1501019338,634977417,1475192922,-1156804438,787355239,-647624292,-241110646,474886724,67409550,413990844,320756210,1801783335,1902664613,484052994,1533170887,1828114150,301443587,-1735551290,-821619639,126018160,896494013); -/*FRC*/Random.twister.import_mti(63); void (makeScript(14)); -/*FRC*/count=24; tryItOut("{M:if((x % 40 == 6)) {for (var v of i0) { try { Object.freeze(m0); } catch(e0) { } try { b0 = new ArrayBuffer(96); } catch(e1) { } try { Array.prototype.forEach.apply(a0, [(function() { try { o1.a0.shift(b0, m2, g2.a2); } catch(e0) { } m0.get(m1); return a0; }), t1, m2, h1, v2, o0]); } catch(e2) { } v2 = false; } } else if (Map((4277), (x(7, window)))) (let (e) -23); else /*ADP-3*/Object.defineProperty(a0, v2, { configurable: false, enumerable: true, writable: (x % 45 != 16), value: f0 });let (z) { s0 += s0; } }"); -/*FRC*/Random.twister.import_mti(417); void (makeScript(14)); -/*FRC*/count=25; tryItOut("mathy1 = (function(x, y) { return Math.exp(Math.fround(( + Math.fround((mathy0(( + Math.min(Math.fround(Math.imul(x, y)), x)), (( + x) / (mathy0(x, -Number.MIN_VALUE) ** (Math.sqrt((y | 0)) | 0)))) >>> 0))))); }); testMathyFunction(mathy1, [Number.MIN_VALUE, 0x100000000, -0x0ffffffff, -0x100000000, 1/0, 0x0ffffffff, -0x07fffffff, -0x080000000, 42, Math.PI, 0x100000001, 0x080000000, -Number.MIN_VALUE, -Number.MAX_VALUE, -0x080000001, 0x080000001, 0/0, -0, 0x100000001, Number.MAX_VALUE, 1, 0, -1/0, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(584); void (makeScript(14)); -/*FRC*/count=26; tryItOut("\"use strict\"; testMathyFunction(mathy2, [Number.MIN_VALUE, 0x07fffffff, -0x080000001, 0x100000001, 0x0ffffffff, 1, -0, 0, 0/0, -0x080000000, Math.PI, -0x0ffffffff, -0x07fffffff, -Number.MIN_VALUE, 0x080000001, 0x080000000, -Number.MAX_VALUE, Number.MAX_VALUE, 1/0, -1/0, 0x100000001, 42, 0x100000000, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(616); void (makeScript(14)); -/*FRC*/count=27; tryItOut("\"use strict\"; /*ADP-2*/Object.defineProperty(a2, 14, { configurable: true, enumerable: (x % 4 == 2), get: this.f1, set: (function mcc_() { var zhyqas = 0; return function() { ++zhyqas; if (/*ICCD*/zhyqas % 9 != 5) { dumpln('hit!'); try { print(uneval(i1)); } catch(e0) { } try { i0.send(g1); } catch(e1) { } v2 = g0.t0.BYTES_PER_ELEMENT; } else { dumpln('miss!'); v1 = t2.byteLength; } };})() });"); -/*FRC*/Random.twister.import_mta(559563096,1550558608,1848594606,1834600453,31995272,-872932204,-2111922444,-1513882397,-1729140535,-1612957933,-1605883392,-1401214400,9133041,2107414585,-1851038136,441648318,407891854,-1966552923,1599538952,-784608189,-833665275,-1154442500,1848211264,1283333953,1309943001,534029670,-166869652,-494401324,1794637019,1692953711,2017723540,-230867573,1965386475,1534332399,-134037464,-573575216,-1436877960,-425509248,715505980,1681297620,-38761286,-1231485626,-720446798,949643489,1917181059,1586969073,1438826178,-547486826,1718287725,-460033546,412888059,942575334,86934334,-610099808,25324751,1095039419,1331400875,-802378574,828417104,-568507695,987384243,1836969138,-1724688468,1086641284,-1593711025,1135549145,-540645511,-156368382,-284064860,924579150,629379867,214343523,-1516391005,1004298573,-108138889,1791578033,-1352499344,572835959,868524199,-699916049,-882348206,-44086334,179621865,-811386514,305575093,1734252034,1031817993,1624769903,953238173,1719266415,744714140,-721346234,-1152989081,1613822071,1151481070,913779826,-546786663,877219572,1963385348,-1434378448,-2140568259,860084522,-1239624755,1744100447,724187245,-1198962265,927293113,-1014752593,-1615475087,1871522737,-1226686607,1129441787,341214239,-181958929,329350080,1279635954,1072127604,-1809929008,1909717870,-1596515305,1052560964,-980199121,-1628301061,-1768350053,1833170440,-1857905989,-2142393835,-459293741,-605154518,-1207028345,-2065649227,1837257923,-916298161,-262107752,1352887328,-560635396,1129309371,-389497384,973341284,1874065030,-1940899900,24039872,1323688522,2572606,279857921,825413898,1804242042,-1754080408,1379409137,-616792338,-1015171561,1954337646,-2045447398,913219054,835603292,154988178,1415692696,891543674,443272101,-1089919063,-712786806,799434602,55260049,1542270077,-64000728,663509886,-1275425550,366701873,1925691185,-465542202,-1161228618,851916377,-886878608,1954264562,-589741328,-1894627809,2058083369,-61940639,756304390,981252540,-371361806,-1387909455,-147742291,232077483,-1768731160,-1788841682,1046811088,1421981737,141055553,1919110023,-116991390,-1377552451,2038242135,-739310617,1103366718,35617847,-1948880709,2071778440,-996675576,-47361686,-513331529,1683668202,283641408,1421510284,-373166028,-1368628805,-260898893,-414790389,-1315100552,-1365177480,-1571539868,-936003084,26721284,-1915294558,-2057945612,1612894200,361508195,853594183,350064843,-464190363,-1937851145,659182568,396604297,1537871667,226847401,-1967689586,735145117,1413582981,-1095940229,717404589,1903514579,-1664739061,-1786582331,-234711083,-2126189996,-871063218,2023351419,1313178644,627826455,1373100982,1154090824,299923955,-44248067,-1353184818,-2037892703,-52079811,1752317241,537511207,-1383707331,1438752409,1431620874,-1112990145,-1541062309,-1188634298,1180465454,-57217377,-244735960,-2037412820,-1144679260,-796696262,313510694,-272610711,-1281190614,859792170,1985261072,1423467613,-923547526,992223863,-982340175,1817907716,313940213,559490154,-1942719776,-2045557257,-1568522925,-323780364,-805351187,-1426766743,1432308941,-1178739916,-1901517368,1877412734,563766402,-1566759814,-1952360900,986357625,643388206,-453992518,-1607766190,-1008083927,761894897,1651481794,1867563994,-1487971451,23247119,627611553,-397087581,-558690733,1479734120,1801378281,546479369,-1211693981,-2074975471,468041592,-169931021,-1005047594,830309653,1386962025,-348215528,-1210857734,44800226,-392228017,1265563976,-125899904,-1844867635,-669817079,759958270,-1669124957,478684769,-870519472,1483918681,1708671861,383884256,-1494127322,562420664,2058488803,2035562898,-533267212,-1737175947,1863437782,384533392,-2093408736,316468197,-1255577861,53698950,-1699051653,-1589317299,612723321,2010660921,-1100842992,-255170884,-624838237,-668217153,-815886008,302443234,-767002327,1435200906,664598608,43028144,-1672274114,-1119249095,-1848887168,25388096,-1295571898,-1587450555,-1342058997,1327694958,1068775031,-296069249,285592019,1008995967,2128772608,497717873,839400568,-478734013,-1118759558,453048808,-1232352168,-1233331908,-1764650030,1810615840,518652378,-534985281,615583159,473595056,1888302708,-1802693694,-1143093517,730330185,1172072286,590317410,2015429249,915011374,-476522636,-143240501,1773402272,689889499,340647932,795751363,1370227075,2124833969,26074394,-1974525605,-474158738,-182706837,62410766,468303413,-367266228,1371961232,-455302847,-1344678624,619575425,1308818779,-1717455998,-285678129,-1572133765,948244627,-242995812,-1912912868,48059044,-394099141,-863484436,1883806651,-1362957150,-2026359138,-2090191074,708634286,864867688,-123133792,-1951331439,22704318,-1325104449,1552528585,-1533582070,2053596619,-667285529,-732633743,599782484,250235760,2105363952,-2077121031,-1155841536,1532351005,1461627878,110885465,1119807170,1451920627,-46255835,-570812420,-968975173,-1962733983,1080932387,-833427163,1045921947,-2089302562,-415836779,-414571651,-1705430909,-1668271531,543343739,-215503149,-1596235519,-1544144246,-1553724277,1411724033,400605788,-285323428,-3594411,1788075263,-1703837029,-778006056,-960784448,898224806,-1136796954,1311320612,-1010158958,-159270383,853948064,-1681761050,1114401279,-122471435,-2147140647,159369018,2003927872,-1000421885,616533375,-832009844,-1068088698,-264018854,-1684205629,-1872063400,1760428714,396373945,1008523103,483837654,-1261544694,-1274082282,1504210168,384041395,129565680,1169886054,1739639362,1928780971,-1730910060,-1295267932,-1857152974,60191659,-1946160504,64396433,725036140,1371869936,-2095543128,-2540488,1416573158,-1347578775,-1807017894,69521528,-2061522063,-1437503130,-1287080417,-2051336924,-370725044,-1269576098,902493197,-2003609404,-1331152084,-2113619199,396634683,-758833438,-878914279,885380006,771839045,510743281,1469860576,77491809,2077409632,178848548,-1590504909,920112336,-1002908387,1557194165,928567171,-1520874146,-1704699732,-1828242760,-1775909315,-950865295,1298034255,-1603532304,1616171158,-567882337,1547034145,-79202181,-2087885663,-257091346,1648875516,1006181107,1419212581,1450916290,-1564512443,-846188947,697872320,-249970166,-266875097,-1999740134,1169750654,1150524124,725950478,928708638,1449556495,-855650769,1136304225,-1223237195,116478211,-1365777613,-84557033,1447436247,-378057542,-746814317,-1044591539,1569945092,942198778,1613464169,1358243119,-1468797491,-646162090,-1247681443,-1168142193,-662992806,-735551646,2063164287,1637104862,1724157531,948238573,-421318096,-1968731363,-1516863795,563709351,1521592219,1721519636,-936837223,878959270,1577994979,244890236,1091440031,1915038903,382491138,-979696711,1063077145,1958994438,144488514,946768142,473360401,527031641,-1876225314,906083356,-1952195406,261915564,15825476,2024730124,-509961165,-81777387,1614599257,-2052795369,-1242479887,553860034,-451568833,1222443970,-1870743356,-2046170568,490197909,-1227002797,-2147003377,189046425); -/*FRC*/Random.twister.import_mti(60); void (makeScript(14)); -/*FRC*/count=28; tryItOut("function shapeyConstructor(lxjsxp){\"use strict\"; if (lxjsxp) for (var ytqhjcatr in this) { }delete this[new String(\"15\")];return this; }/*tLoopC*/for (let c of /*FARR*/[ /* Comment */return, , '' ()]) { try{let rxesbp = new shapeyConstructor(c); print('EETT'); v2 = r0.exec;}catch(e){print('TTEE ' + e); } }"); -/*FRC*/Random.twister.import_mti(218); void (makeScript(14)); -/*FRC*/count=29; tryItOut("/*oLoop*/for (let rwvsug = 0; rwvsug < 74; ++rwvsug) { /*oLoop*/for (var phsvdz = 0; phsvdz < 81; ++phsvdz) { print(x); } } "); -/*FRC*/Random.twister.import_mti(266); void (makeScript(14)); -/*FRC*/count=30; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return mathy2(( + Math.log1p(Math.min(-0x080000001, Math.cosh(Math.fround(( ! ( + y))))))), Math.acos(( + Math.atanh(mathy0(( + x), Math.max(x, Math.min(x, ( + x)))))))); }); testMathyFunction(mathy3, [Number.MAX_VALUE, 0x100000001, 42, 1/0, 0/0, 1, -0x100000000, 0x100000000, 0x07fffffff, -Number.MAX_VALUE, 0x100000001, -0x080000001, 0x0ffffffff, -0x080000000, -0x0ffffffff, 0x080000001, -1/0, -Number.MIN_VALUE, 0, -0, -0x07fffffff, Number.MIN_VALUE, 0x080000000, Math.PI]); "); -/*FRC*/Random.twister.import_mti(437); void (makeScript(14)); -/*FRC*/count=31; tryItOut("\"use strict\"; m0.delete(f1);"); -/*FRC*/Random.twister.import_mti(450); void (makeScript(14)); -/*FRC*/count=32; tryItOut("const ylqtev, x = ({14: y ? false : /(?:\\3|(?:[\\xAa-\ufc89]){3})(?![^])(\\ubCDa|\u3159(?=\\B)*){0,16777215}{0,}/gm, set length x ()[] = x = this }), e = (({x: ((void version(180)))})), xswdgu, x = /x/g , fxhnwq, z = {} = /x/g , x = /(?:.)*?(?:(?!.))|\\D+?|[\\W]{4,4}?/yi;let (x, gjuuzw, yjozhb, pjspoc, zhyknm, NaN, c, window, jjvadx, x) { ; }"); -/*FRC*/Random.twister.import_mta(-1415642179,2016917786,-67429418,1627508825,-969999465,-1585284107,74303810,-1786077851,-1404039416,-1437493964,-1067841212,-268425491,1335929466,-835931013,-1270919307,-1362568150,-63351324,1662321840,-863918224,-136759997,-706120842,966063503,275422910,1983341312,-1310218951,-95436716,1159690081,922466031,1386382631,-277058933,-964993255,1836064045,10359114,185580460,-590956590,-995104585,-546604212,-773315881,-415913391,1848063758,-942843611,-74393906,777041682,1629004805,1195988358,2100118029,-1446356224,-423979287,-1602069570,-316578051,-2093270490,340752055,506502690,-567758817,-321623983,-2115712659,-1808478448,-1065644062,-930416179,681387865,1040885333,-488044969,-339711768,-141711872,-1611611971,1967848848,1950852976,-1731548572,2042169417,-926199180,877431870,-579015055,2032421737,131870588,1144075143,-71063087,493541369,-1194762749,-1752739944,-1200377788,-1884998009,-1089159430,-1977785535,1981958312,-1413802341,1598031919,1888065850,-1957612696,-836164192,215017157,881703536,-123365105,-1614339120,-1947199379,1660640288,969808168,-1316367413,392368717,1959164504,1727054372,-1550967159,-2058501620,-504053045,-1692981984,-414288685,2012130051,203362200,-1685667051,1525545276,917977694,344741052,1483810454,1760923341,1153117551,-956216873,-1211248312,-1113597309,-1647052337,-245818765,676273626,36160016,1626264663,1922937178,369609086,1199739596,1086765088,1693106336,-485268108,1209478686,2016402050,-2125820157,-883912977,1729428534,187250813,451911589,219640052,889233495,159578517,1961647613,-582816907,1737461736,-1476962913,1039185234,-1875896429,-279066659,1300278855,-1804242214,1805906128,-937781731,-7365277,1417874541,-1016560081,-616492676,158705993,956396526,753189794,2041013705,-584947294,439418046,2018581073,1234834781,356908582,-505087149,500669357,2027692815,64341720,-2077589632,524539838,-1845932852,-779365425,1791694678,-1630604650,-616990340,1501961980,-1418709374,-1718489963,1020854869,-1548591292,-1981628164,1621751764,-490556359,-1869083230,-1684507011,-919368385,-2013760422,1508929521,-2137670171,-1329440413,-1649599143,-2048409234,2032890399,-676323828,-1383357520,179354972,-555977354,-1834781528,-887426115,-258699596,-122969346,-173242116,1144412605,-125516537,530740303,-1590266036,1214765808,818580039,1808689311,-909502793,1594523385,-636318594,1342887261,-1405146903,-877607423,809309534,1640864112,244282809,1841796922,1051726636,1907529285,756107923,1649054308,-700615153,165175649,-315128366,-262663196,-1665855072,2097179163,-1094509990,223530831,-1479007735,1215154658,-1314070755,-386449418,-1281121932,74894173,1385782299,-1135352128,-25898188,1790427347,-1367357895,-584107214,953568231,-1699113414,583349014,-704981570,990299248,1581122231,852177376,-1349899163,-1793042297,1288504127,-1402358185,2017058416,-2068041270,-1442173251,-567106194,-2141592955,501944549,-1271618857,1274165577,-1810762547,-1221248824,-887269024,-281168041,579778370,-246308876,-1177670383,2121109545,722216009,1938970231,1493365439,403703734,1375065502,2135625273,1786240213,-1614999068,249390726,-2108164850,-399226289,817776840,-621346882,1943154832,-1498041973,-263684043,-1726041380,502498129,-1121671980,1903276708,-1203843160,1179080215,-211041329,-1693030703,-483666288,-197025837,1534107110,-448970036,-1476326839,-216675968,59888960,-806888247,-982464153,766451736,-175793712,238471307,-1822690878,-1706582017,617110254,-195486079,412131751,1703604300,-1336810768,-1114574582,1039794600,1188197172,913805305,-728569077,518179103,-676996268,744564067,-1178573846,1761960055,-798315222,1893140529,-410693105,-1841699037,27182480,625387096,27983863,-535438426,379480720,1762048827,556880896,-1200093942,2055870446,-1039058553,1013335106,421168534,1202555747,-182260419,1962175656,-1059075542,-519643849,-860964158,-1649095137,761008270,1327233705,-405727856,-564009952,1339334195,937208619,-1329859502,-1315671920,-1551919062,1893357751,381526286,-1164034397,-783809621,-331840884,1339108392,-68912453,214891312,2023135061,240053739,-1537292269,2143082832,-2131006723,790752946,1102354294,1948692172,-2063717989,-1494932031,-1380662276,-677608130,1359109308,1231831141,1388754818,1471547272,793556381,1852819441,-1552511918,307542214,208918352,1761480946,-725962699,1668502942,-1862133294,-666011700,-1618602743,-1372806707,-655118264,1543392635,-1907459475,1486664271,984784742,-1470125575,-1896940263,1753009488,1141831356,-1460138876,510723154,903239632,908821740,-716771223,666072899,-1556725301,-1792777143,959266135,1174971494,-2082878025,1231729948,1967079749,-793523157,-457140070,-576658235,-1895682104,-1648057859,-319021547,146843107,1172278624,-114579917,-1104391441,-158380796,-651321943,960127033,374644057,-1342185176,-1379060538,-1711990526,1128993897,1868203235,961015805,1663296386,1191782719,-971267455,-1606127308,-1198655168,-659610070,1293711423,-44466384,1069515229,716526092,-500324099,213680827,1271260949,1324762891,-541521896,-771376211,-1634917595,-1625625749,-182666594,1157747109,-1300831770,1611056850,1505771903,-1340043158,-766961537,-1914981242,723118224,-1303978015,-1876124155,-1341715148,59595523,-1613085311,598452559,1752600432,-1665553595,-799502948,-231475605,2141153592,1531279980,124654837,2127127648,-787329377,-1837986189,-2039262955,-1870014991,-1250756745,1549039775,-704839633,1501360161,-713321409,1970854743,-1935702963,2068270230,1919954115,1528432147,161696073,1256323920,1419822548,1145793272,-816671735,-1747109646,-880321608,-746847779,-341008992,-1183896980,-1691748218,735407902,1396183354,2112577831,-1774447602,1252649487,1055249940,289083444,-1573777864,-2138802981,-307465564,-25246217,-1917145832,-1147338050,539528280,2022038097,-1968295940,79112594,-1962450907,-1954261834,645504911,1357282294,1808336011,-347717583,-1504240772,-852641572,-317555871,-1774198228,921095415,-642514286,345094237,-2090929525,-1500913062,-1164852642,-852216719,-1638905816,-1287225034,141961595,1811767979,-1060668154,-1039769283,-683684782,-1330184813,-1111386345,584851275,2118025968,722129732,876679994,922199203,940354678,1397841279,382937868,-2079080693,1403531992,885461910,669170155,-1879223743,-829010844,-1297418178,378813136,1965739027,-2113215540,-1191846089,-1836258389,-732537019,-155267270,499931551,1150161652,1838779174,-1692121753,1353643910,-1588005172,-1335520170,550457961,806998697,-982849301,784927152,-954680496,-1161604169,50161691,-1651776621,-1174049159,1975030396,-2119497784,1910487897,952022015,296739474,-821374731,2107897856,-1347242007,1027395007,1385049080,-1654044429,-116967806,772237952,1243928330,1747683061,-1924138953,-1154209353,589135297,-945091420,1409834957,1953650962,-627852069,116662382,-1175097546,353952373,-770706844,-815576162,-527456572,-612544531,392041162,769887373,-945807273,-1809532817,-1865481016,-490715982,-1994824578,1549478909,-25555447,-436513438,1012261155,-904052902,1122420131,-391122196,-400680792,-1057831443,-457442223); -/*FRC*/Random.twister.import_mti(567); void (makeScript(14)); -/*FRC*/count=33; tryItOut("testMathyFunction(mathy0, /*MARR*/[false, 0x80000000, 0x80000000, false, Infinity, new Number(1), Infinity, 0x80000000, 0x80000000, new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), false]); "); -/*FRC*/Random.twister.import_mti(622); void (makeScript(14)); -/*FRC*/count=34; tryItOut("\"use strict\"; if(yield) for (var v of f2) { try { a0 + ''; } catch(e0) { } try { o0 = v2.__proto__; } catch(e1) { } v0 = (t0 instanceof g1.s1); } else {print(uneval(i2));(void schedulegc(o0.g0)); }"); -/*FRC*/Random.twister.import_mta(940911153,-1794801297,-134652767,-1882613052,-1963575,-1754262328,-1266775762,-182565297,-1072910637,1493187061,-1493170225,-469133174,-143368194,-1238870496,-2015911362,-1696845208,-1406507363,-1455227792,2132839299,-2046253138,-855478277,1307230783,-1037035597,1071067308,-1951879890,581605062,-1152447599,-1509069035,21587122,1475881877,1984276299,1124342988,1792891189,388281364,-1736661242,683447449,937886517,1255544003,-811703609,1648441959,819204952,-1435425607,-1774492928,152172751,1169406244,408530747,-1584390978,515336916,807472057,-1818745154,1302472865,-1878875014,1124094542,-1436330670,1804350863,706519386,972916366,1299012691,521091852,198596467,-2090476700,-945362027,-336966395,1727520181,2032674251,-1510369735,802094205,-1918714997,-1193540993,-1971401853,1166356876,-1710883757,1487629778,-1132577303,-635436969,112170428,387879341,-844040487,-860877357,1806228715,64890850,167444816,577623157,1504620461,-2083491937,-1260697392,2129646882,358923795,-2072328786,333812849,-272922872,457397308,-1732520431,-1104201191,-1959119770,1246429826,29702180,-774922100,-1978184834,333858589,1769180696,-1161117568,811660215,2090049208,-1470754991,954880472,-2047819423,-817565018,-1679824396,-404072198,-767142212,550034081,13116630,-1700751252,593703669,1298756194,-749312598,1789091267,-542909861,661290631,-107372286,1384635430,-532306802,-2053746150,-313596724,-546890959,-1481224042,1391287288,-442241069,-1925427453,2147353891,-721183679,638447295,1498106748,-1730416558,818831810,-1782586002,-930874230,2003744867,-1312708919,1573705282,-296835270,751905793,-864400262,-2114558708,556821033,1100016466,-1947050126,-557592040,-1609012330,-1368401724,-374130763,-1910876509,675785313,831576122,707154042,-536381259,-5077407,-1280047321,-923830686,-2002248481,286200385,1164940962,1899036189,-145478570,534341215,187693355,1701129536,1793662047,634092589,-1371566201,-570873624,1275878679,631359976,279621246,-374523835,-691956494,-30264375,1923716081,904005968,-230070104,-1585702499,2084204936,841187700,-850512680,-1997697857,241388699,-1434597773,-314484898,-660487057,2035688702,-877881045,-1134598100,23679035,58027358,-1800515596,-184172691,-949880632,1506490815,1018728613,-247296623,-1565797398,-905410691,1657261334,949525194,-1174968603,1877101024,971949117,-846798597,712021404,-1740032415,-785162414,-1614894344,-1530759977,243273419,-735867089,-1774096920,-41234432,1912216479,-723641264,-1908151557,402243381,1954350922,-1870398690,-1505456008,662323263,-69570180,-407569079,534847668,-1815103408,236406165,-1952868814,-828259214,1867340895,1163548829,-567976525,641355887,1263753081,1782500169,-1713126809,1934344972,-1970575069,-876696605,-2032726974,-188637624,-919127545,-1620230306,1137690902,-1636671837,1029580531,-1326752936,-139181546,552898083,2000858128,-921420382,-663935697,-2147151048,-178829569,-1074417481,-102952052,1287530608,-34468938,-970260499,1721784468,1920916281,175228048,-2072034644,-1134906973,179355485,598911616,85588756,1833522155,-1091266312,228803083,292151846,2001713402,-1833706439,-1599029927,-933396450,1853566353,-745911014,-505520747,-886025825,1970462688,-1701040860,27093350,1936625185,-1619346256,1032712257,1264000061,-1300996606,146656899,1188161807,1115075214,-1086579987,1976842116,-202100925,72211244,620667624,-1558464066,-357978651,-522007361,-658751194,515074380,429623801,-1630265180,-930290828,-694237202,993950070,977609997,124180264,-584224949,-1749913270,-52649471,-1507493047,1375932926,943159771,545498470,128148937,1966200565,-1776653172,1784217761,-528409766,-774800534,-1862221244,-1733027758,-1975809991,1501127627,-242879032,-1645535499,1812673720,-1268118060,1169119791,1039199613,-1854418809,-1756189889,1563700628,1910477053,1521675509,547865027,1932215848,1161064340,-1698978382,-2047316499,-735702968,-330608493,1213893783,125525700,-798934676,-132620633,-581146030,-1125046055,1040353205,-1394049007,-693439370,336551641,-81785275,404132663,1912148419,1617597223,-66539511,116668024,-1142311660,-362706490,1375140139,553537338,-1860440718,1742700836,1966670632,-424997314,-1700778620,-365418605,1236354167,-64062529,-1567554381,-182922788,783712647,5278691,-133664356,-953152832,780026313,99602499,-1720469313,-1849765254,-147617144,-544031551,505728057,1186397414,2104937061,-1315438400,-283151372,34784686,41953772,-2046255864,-1155865837,517438199,130811763,-1169978939,-1832801599,1458009855,1051986846,-1560189291,595342139,1582433480,766030130,-1221083771,384195427,1789738668,-976665837,-542285323,-2089625666,-1087473515,2134199810,1239571327,2107057746,37218443,97068609,1538908750,1848769261,2051142020,2049898169,-152366251,1362874167,1730625822,-794949540,254649308,1883380772,166705018,202252612,1336131676,1398160599,-2112569718,66193274,1069576570,1705523357,-1580108818,-705291940,-1494906375,400830307,-1964768258,215748726,-774439095,1758055546,674430642,-766094324,-2114947434,43007261,1489383313,1836573306,-1879744697,-1984394259,-699927791,-1835872161,-473286327,395887017,1494022903,-968668136,-1908630854,1518823919,-1767750936,-1216134911,-742405502,385366475,302061527,-603508220,34770311,2045938061,210007952,-1490430955,1359024454,-1179402638,1161824728,419876321,1163667211,-1836870863,1573098951,-897799581,52259728,33721049,-1824394013,-1795788444,1448300379,-1513192604,540390790,1104344361,573351116,-592581084,1726892698,-539509046,2022376758,760136941,398292709,-87591775,-240579460,-521329515,1193558814,1985486095,746976137,-894151769,-1242918145,-234944557,236652844,2144481504,-2085954779,2046441451,-1098139316,-2008219723,-1789453418,-1139745590,-1692133453,-801603049,-1614071078,1137114543,-270168340,-625436949,-138834087,1663312326,513305752,-1542037948,368731313,618688224,1354602370,1053542034,831519207,681040485,-138490343,1002205220,-1175626552,-1112920688,657386433,1369132376,1077463394,1139246278,1685775102,-151160467,-1019872969,1373291300,-969598658,449123359,1607781936,-1010572423,-1281355029,1210292323,-1169941675,1015411549,-1224508503,2119713651,219874262,59578829,-85814639,1529386816,267836347,-49568,-747703258,305364643,1377313566,-1662095597,-1451660292,1680132318,-1232288430,1185909472,1184451735,-1256873403,1811474439,-448462191,853907254,806075045,723094531,-1940162945,465566777,1044752711,-2092788592,-809038533,-1942776429,-552773098,1202485370,1007835460,-1484774548,-1138447555,-538580282,700410161,-562232001,-1434286468,-2047741371,-1765312484,-1234188349,1227720411,1807000751,2054663481,-320208812,-814489021,-51672434,-1085209602,1435060598,-1353085157,1458341242,363303175,-1600585459,1585006881,181097536,-522925020,1897252182,-601937682,1225204808,1880578177,213804725,-1935735899,-1584974000,-1086885705,1248416855,-640069602,-2041337647,-1692528898,-385750760,-528266435,260792532,1991917710,-904795047,-93775968,920113306,-234385060,1114321210,-176016384,-1026678092); -/*FRC*/Random.twister.import_mti(99); void (makeScript(14)); -/*FRC*/count=35; tryItOut("var z = /((?=\\cK|[^\\S\\W].|[^]{1,5}){4,5})/ym;a2.push(i1, e1, o0);"); -/*FRC*/Random.twister.import_mti(477); void (makeScript(14)); -/*FRC*/count=36; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(486); void (makeScript(14)); -/*FRC*/count=37; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(495); void (makeScript(14)); -/*FRC*/count=38; tryItOut("let(y) { let(z) ((function(){;})());}"); -/*FRC*/Random.twister.import_mti(521); void (makeScript(14)); -/*FRC*/count=39; tryItOut("v2 = Object.prototype.isPrototypeOf.call(v1, g1.g2);"); -/*FRC*/Random.twister.import_mti(539); void (makeScript(14)); -/*FRC*/count=40; tryItOut("\"use strict\"; /*RXUB*/var r = /\\B/; var s = \"\\n\\n\"; print(s.match(r)); "); -/*FRC*/Random.twister.import_mta(701102509,1882567758,285457309,-665993307,-390501135,2034464684,-1110075600,-727296380,1119818144,-1670453157,413790953,-1099731732,-2068231451,-1063713119,-230661727,-1339503213,490939719,-1693461684,20167516,-96427677,-1539034226,-702463509,631925202,2147131438,-1480697802,-711656928,-1389803957,-1875199483,-1109850423,-764903586,678279452,-1603781375,1144101462,1600679764,1329742873,-2130102721,-2086417468,-613435103,1241079298,-845410064,718646138,1559863011,1466191686,772132068,1156749323,2013381157,1734953944,1397645583,-2009307703,-45508206,1355251116,217566045,-1698368018,1702240757,-1018584132,-1905519848,1551116223,404708399,-974167663,-940465750,1961320367,-1233453134,2094079213,304079675,1481355585,-669518038,-1915159859,425821156,-567977831,456134987,-1735509658,-881040644,-701055123,1303056006,102220550,-1954466328,-91427656,1842554119,-1323349139,-879511150,132180792,-1975726020,647893994,202831476,205450035,-625382923,-1282450864,1139775486,-220799445,-344969824,726655108,1250092317,-1097586459,1758715614,1922627492,-98178893,-649143238,-1511620310,-1746939825,1122097667,836801481,193764003,-1952227933,2094837924,1382949312,-467476337,-469196170,873841425,-847342287,-512764693,1547421209,-1133195615,-1770759291,411151282,-1182825493,1785581434,62689490,1818348313,1023672517,1609101639,2010874507,-1808495613,1462848956,1380392070,-1509512507,1829826265,1492735003,-2091999917,673732935,-582237590,174334519,2007263760,193678975,1576449393,408942979,1228437105,3873979,339907971,1121819276,1060939781,-250459485,-710593856,2045372429,-2093428225,2050004768,1760292298,-1078119188,1407457873,-418427294,695185169,-523622189,-578256317,935982974,1138817885,451277702,1458844389,901711817,-756953617,913283119,1102238115,2029408771,1184039823,387713667,2097519819,-1870835865,696970767,1498054311,1228487777,-1190618625,-1105408583,1172641911,1935009835,158275789,907083384,782022765,-1532508350,1780628648,1062282033,1566407890,87485712,1849073533,-1036413959,-957076868,253260637,50557887,1958449390,164077987,-530066509,1127716139,898012324,-680896283,609753391,894834838,-825666324,-155406988,1557884055,909751570,1521787675,-776438281,-1274124528,-238229256,-1569342912,2074653387,-57114303,-186202373,-1410462690,-856099191,-807626717,1501965435,431171658,-920741639,-253221429,-2130649373,127002532,894099353,-801196022,-1748729576,24573485,635727612,-1466759892,417694492,-1068002299,1050029333,-1591355040,-1998675462,-932246338,672984271,1715038711,2043832422,-822040184,-578718532,-1880518968,-1746048676,108006305,1656506498,-2002089656,550499128,-1262606446,730479872,-48452765,1557398255,244810895,-213693518,1730407011,1721564816,1317348595,-1683536408,846572544,294052429,1038075006,69239077,1858908152,-298472408,-1985783654,1694799949,-35942571,835415294,-291516008,-595151673,577670766,1636919951,-1252029648,-229041547,596907655,-564700311,1271332692,179960062,-159038453,1293994915,1441313484,-2119576114,1535693943,-1478962177,1876802251,1760148850,409811722,874084321,887733667,-490541750,-1291725981,-1936605216,1071201196,-187335448,1362768173,1490151580,1699780190,-934477838,-1289152688,182042995,1709913068,-817253211,-500435687,-114512275,189679460,1670092838,2128084967,1494678749,-1963890670,-621691357,980080960,-1529686010,1783227285,-992444082,1867094171,1656304981,-715572521,-1596138907,1518327683,236384869,623736958,-1148653298,1206375318,1038059562,2039830315,720248577,2009453081,-80609517,-1315511617,-384647496,-1248256349,-2064126383,1121483273,-1832037114,-1848722152,-373519101,1271571596,-1219110087,153250093,-596531962,-39401473,1726592590,-1448002552,1674716910,1975253738,-424401327,-1545305093,1082698826,-395706180,892313247,-1344145263,974888056,-1272819406,-1315354285,1773115638,-2092117105,-1071516079,1549098533,1609244221,1898976143,966752405,-1791543243,1611618752,-496230898,866922016,1346470624,-1934561606,138951470,-1416619511,-560360612,-1400396124,512536141,95101705,1007202962,-238497551,71152158,1246784565,1288923287,-879834313,-420432417,884604623,1865183977,-2015328828,-806068022,2013070954,694710975,693943934,-1336976833,-590475235,-1106213085,-100767931,-669015133,-1890279674,506158040,1311163021,606085968,-529182996,1659482064,-549091346,1583285231,1620292473,1007484444,-1858249839,713990283,-1647329295,-1621478971,602286745,976599428,-1785889336,-2127633525,372579586,-1097269779,-433450705,-1953577690,2096522289,-1111339732,-1893277252,811627078,-707097045,887591900,-2024980061,-913834040,2090456254,-918418034,923546250,2020906793,-656689452,408577411,2038043980,427352557,-1857432811,1823763865,120191536,1867041816,511095100,488796917,-375819291,-1325810515,-137627558,-2052826514,-888464257,-40706556,-1256209082,-1274137437,1730435608,-550231596,863838421,-741778327,467943319,-174447564,-949037352,-1234032417,1093548452,-1004026029,-1091589346,1099877734,-39534419,502833723,777941537,1587907449,-482158532,1393463351,1486846218,545431749,-86491964,-742939565,1525927530,-2011241259,701132948,-2068271172,1428453635,1873800928,-1329011528,413315708,248277562,1824510350,-1904490215,-77688661,-699901894,1712786476,-275082101,92532367,-216586049,-182220887,200162479,-979577284,-1380972637,2085712310,-1675004778,-26942122,-1538354022,2072137704,2011421183,-1379838570,-2010470731,-7764994,-221232171,1360636707,1316664810,-921040469,2113325276,-1321067222,2050773478,856848746,-473441685,-1793628796,-284920325,-626852905,1039879362,-1737151017,1177542857,684736093,1459660034,-2135890361,-773006133,732717317,1072439887,-106275160,-761671291,-347897686,96570684,517975104,-1606801772,1386369320,1008206936,1375559715,2068566416,1789330848,-582837369,836663198,-346253027,588287141,2096003951,-15158325,-732585680,673628097,-2026928591,647788324,-100151602,-1596578134,-334157854,1331035178,1128986422,-412857432,44750348,-1561486393,1727763447,104330465,1877134302,1745728654,-2060007095,-1186075007,-671652881,-202412180,1014740578,857730996,255209438,-1290494136,473551464,-425622626,-10936666,255680538,-700247501,578674335,1732564151,539916450,1259217488,-1457884671,352047649,-1292411231,8774558,-805311362,1698056108,1326466855,-350052899,-1323775193,-1272777966,593858127,-1522624616,1626677233,934489391,1745801918,2108155341,523275335,869528366,1010639360,1866022701,710895907,1378737524,268283043,800791113,-2053497760,83935710,1463854919,1126926112,1773095223,587718894,5588012,-1161836530,870196003,-1028000916,-1883433546,1536504801,546621582,-1032380475,-1594324598,1965804931,-1107439978,-1726454106,-2105200668,-6420776,259515585,124249800,1306471514,290211488,1134138264,559396398,-1455555347,512535335,1936229874,851964887,-1811438022,1773085743,-1795835296,-1952400751,-1736427644,1694639016,-594283126,1094219212,-900287524,328034341,-50714772,-1516557371,1115765699,-136710771); -/*FRC*/Random.twister.import_mti(74); void (makeScript(14)); -/*FRC*/count=41; tryItOut("v0 = (this.o2 instanceof this.t1);"); -/*FRC*/Random.twister.import_mti(89); void (makeScript(14)); -/*FRC*/count=42; tryItOut("/*vLoop*/for (var dkgovy = 0; dkgovy < 19; d = Proxy.createFunction((function handlerFactory(x) {return {getOwnPropertyDescriptor: function(name) { var desc = Object.getOwnPropertyDescriptor(x); desc.configurable = true; return desc; }, getPropertyDescriptor: function() { throw 3; }, defineProperty: function() { throw 3; }, getOwnPropertyNames: function() { return Object.getOwnPropertyNames(x); }, delete: function() { return true; }, fix: function() { return []; }, has: function() { throw 3; }, hasOwn: function(name) { return Object.prototype.hasOwnProperty.call(x, name); }, get: function(receiver, name) { return x[name]; }, set: function() { throw 3; }, iterate: undefined, enumerate: undefined, keys: undefined, }; })(\"\\uE152\"), Proxy, (function(x, y) { return Math.fround(Math.atan2(Math.fround(-Number.MIN_VALUE), Math.fround((( ~ (y | 0)) | 0)))); })), ++dkgovy) { const y = dkgovy; e1.has(h0); } "); -/*FRC*/Random.twister.import_mti(205); void (makeScript(14)); -/*FRC*/count=43; tryItOut("mathy3 = (function(stdlib, foreign, heap){ \"use asm\"; var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = 8589934593.0;\n var d3 = 8193.0;\n var i4 = 0;\n {\n {\n i4 = ((((0xf8f244b9))>>>((0xfd606b75)-(0x183be8e3))));\n }\n }\n return (((i4)+(i0)))|0;\n return ((((((Float64ArrayView[2])) % ((Infinity))) != ((-35184372088833.0) + (18014398509481984.0)))))|0;\n }\n return f; })(this, {ff: Function}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mti(369); void (makeScript(14)); -/*FRC*/count=44; tryItOut("\"use strict\"; print((4277));v2 = new Number(g0);"); -/*FRC*/Random.twister.import_mti(404); void (makeScript(14)); -/*FRC*/count=45; tryItOut("/*bLoop*/for (hvnzsv = 0, y << window, ([] = b); hvnzsv < 117 && (({\u3056: (x = function ([y]) { })})); ++hvnzsv) { if (hvnzsv % 4 == 1) { v0 = t1.length; } else { m0 + this.v1; } } "); -/*FRC*/Random.twister.import_mti(562); void (makeScript(14)); -/*FRC*/count=46; tryItOut("mathy3 = (function(x, y) { return (mathy1(Math.fround(Math.fround(Math.tanh((Math.fround(Math.pow(Math.fround((Math.asin(Math.fround(Math.expm1(Math.fround(x)))) >>> y)), Math.fround((Math.imul((x >>> 0), x) >>> 0)))) | 0)))), (Math.min((mathy1(( + (Math.fround(Math.imul(Math.fround(x), Math.fround(x))) ? x : x)), Math.min(x, Math.min((mathy2(y, 0x080000000) >>> 0), (y >>> 0)))) >>> 0), ((Math.pow(( ! (mathy0((y >>> 0), ( + ( ! ( + x)))) | 0)), Math.imul(x, x)) | 0) >>> 0)) >>> 0)) | 0); }); testMathyFunction(mathy3, /*MARR*/[new String('q'), new String('q'), /x/g , /x/g , 'A' , 'A' , new String('q'), /*RXUE*//^/gy.exec((({6: '' }))), new String('q'), /x/g , /*RXUE*//^/gy.exec((({6: '' }))), 'A' , new String('q'), /x/g , new String('q'), 'A' , [(void 0)], [(void 0)], /x/g , /*RXUE*//^/gy.exec((({6: '' }))), /*RXUE*//^/gy.exec((({6: '' }))), /x/g , /*RXUE*//^/gy.exec((({6: '' }))), 'A' , /x/g , new String('q'), /*RXUE*//^/gy.exec((({6: '' }))), /*RXUE*//^/gy.exec((({6: '' }))), new String('q'), /x/g , /*RXUE*//^/gy.exec((({6: '' }))), new String('q'), new String('q'), 'A' , /*RXUE*//^/gy.exec((({6: '' }))), new String('q'), new String('q'), [(void 0)], /x/g , /*RXUE*//^/gy.exec((({6: '' }))), [(void 0)], 'A' , /*RXUE*//^/gy.exec((({6: '' }))), 'A' , [(void 0)], /x/g , /*RXUE*//^/gy.exec((({6: '' }))), /x/g , /x/g , 'A' , 'A' , 'A' , /*RXUE*//^/gy.exec((({6: '' }))), 'A' , /*RXUE*//^/gy.exec((({6: '' }))), 'A' , 'A' , [(void 0)], new String('q'), 'A' , /x/g , /x/g , 'A' , [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], [(void 0)], /x/g , [(void 0)], [(void 0)], new String('q'), 'A' , [(void 0)], [(void 0)], /x/g , /*RXUE*//^/gy.exec((({6: '' }))), [(void 0)], /*RXUE*//^/gy.exec((({6: '' }))), [(void 0)], [(void 0)], /x/g , /*RXUE*//^/gy.exec((({6: '' }))), [(void 0)], 'A' , 'A' , [(void 0)], /x/g , [(void 0)], new String('q'), new String('q'), new String('q'), /*RXUE*//^/gy.exec((({6: '' }))), 'A' , [(void 0)], /*RXUE*//^/gy.exec((({6: '' }))), /*RXUE*//^/gy.exec((({6: '' }))), 'A' , /x/g , 'A' , /*RXUE*//^/gy.exec((({6: '' }))), new String('q'), [(void 0)], /x/g , new String('q'), /x/g , new String('q'), /x/g , /x/g , [(void 0)], 'A' , [(void 0)], /*RXUE*//^/gy.exec((({6: '' }))), /x/g , /x/g , 'A' , new String('q'), /*RXUE*//^/gy.exec((({6: '' }))), /x/g , new String('q'), /x/g , /*RXUE*//^/gy.exec((({6: '' })))]); "); -/*FRC*/Random.twister.import_mta(-1382570001,279416474,-1558482417,1405942602,-1702122759,-1788604738,379932531,-593639940,404301134,-449037331,-891078563,-273447311,2114548268,699367367,-1115356504,518729714,982244140,955075207,2096322234,1249410116,-1956510362,1269683460,-1363901694,2137735554,1843627808,-1596661790,-815571743,-624541362,-2136126390,-456171485,2130138629,-407070907,-457233451,1127959767,747892358,-169881279,-1818544553,-1144484139,364062893,-2036102700,-1399832519,-567802985,-798216022,218354693,-467244951,-141335873,239086406,-593997987,-2097148828,1973099757,-1322440880,1405612430,150042649,1923760617,531198086,-676330555,1876894220,1749591108,957030079,1801845725,855052109,1675137301,-987547583,-628980065,-1664934099,-951681083,1115466696,-626668259,1525379427,-149320680,-1275696828,-1811619003,-1991306296,109580044,-153636277,-2006584843,-468771085,1142670165,-931538070,1067516970,-1724441464,-1389630301,-1572474976,-459961682,-1011360294,-200869698,-371364534,1609194548,-2023205627,79584097,-231508037,1331211526,161425331,-2012322056,-567929504,1605703543,-1321952514,1206926716,394012709,1532625644,-1590316724,78394329,943831195,31927997,-65444454,-223037572,317623708,-1810130110,-699172635,247401851,1437271562,963714487,1233213669,-1687626390,-720584407,1400641857,-1826598645,-696790882,-843638292,-935168966,1313893721,1514590528,-1031858338,-1457821416,-1821459236,1248635161,1291476806,-449174595,-1450547452,-89729312,-1042940986,1008415050,1541852549,-630017996,-18973487,2121364778,-1853674478,-2088544639,-529696982,-1481219729,87052990,-1913524137,497160553,-1001020143,-477981430,-332270310,-863958123,9980037,-1031190391,444152830,-336256106,-1119520735,1201787863,38771161,1680980894,-1582633564,-683900257,-502201238,-220202402,208268255,-1363483847,544336703,-1492148956,1590295314,-1459912588,-88225621,1454814002,882128647,1914971409,-660622677,94163794,-45472952,750473747,-431473065,1878263404,1780584979,-1250700695,311663721,1839352229,-2075355582,-365321129,1820834205,-247491784,487789920,1063061929,-894711991,-367993306,-1858325635,969190076,-1293363071,1906013254,695545704,-438478566,-186432756,-1393543819,998773255,1982201495,288098222,791477771,-988038422,-937247866,1717159518,1490744999,-334743709,1385226439,-1297356863,-274023826,-1236126342,764289547,347734094,-1046243,-1428137380,1896808453,397048105,1102084138,-552076564,1377005912,-1972240134,1900781886,-1864289276,-132444399,202708361,52397205,-1198164079,-1045647974,-1886913157,1573777833,-1853975588,925358686,-841234351,339229742,-780329385,1330953137,670788402,-657948328,1216273618,-10278876,-1624889635,1211458335,-1989426300,-1209266849,-2077972623,-193828324,163947620,-2035849183,1897985102,323136068,447333535,1430402875,900494159,1208817278,1526288692,-469404753,619290648,2099459643,-666305995,-746551057,-1984119623,-1232351118,1300180557,1502906703,-860368029,1025338077,632826684,-567545473,284153042,619289358,1393071415,-186885391,-793191859,-103870751,1858253129,427101957,976549375,-793849128,264011,-152603933,-2142481931,-1823495968,1320789993,759618623,633589490,640002956,1136121410,1524690795,489513286,854683765,-292331733,1361905891,2072990412,849333452,2036201668,-2099159945,1941530587,2093384241,-278347822,-228509679,1199965834,-919498779,-1691975733,-358330855,-725880084,1724484967,1281045638,-138416415,18810503,-879337676,120903013,-1078112100,-1082026201,-2023333019,-581428785,1371857908,1705169429,-50330137,603462227,-981624095,-2034620185,-1935895928,-756260796,1886055203,-683622429,391268859,1558342816,571830074,-1780583066,-2034006363,-1894947889,-478682887,1261790140,356495545,-1913620755,-932623863,-1195626901,1558276704,-1239994688,982125861,-1774945894,-1215737568,344757977,-2122713613,348706143,665572666,193890323,795843433,982844961,2126466043,-272575423,-545137195,1374436251,-652425736,-1571245093,331005449,1692048950,-480095008,-307332461,1986423611,-1365691800,1784209944,-1918358916,1102025071,-522574440,-543314547,-744622819,1067700292,1594651582,460960811,-280971122,1319485423,-1287874366,-945428493,-2072468113,-1748011473,1094550037,339089338,1134974281,-317291729,771084504,1488124764,-1297698087,1172690522,723785330,531708989,-986934473,-768892132,-2085933642,600516648,1486737937,-1993309604,-1190534614,-815798779,1689542894,1834133388,-2146231537,-59796844,1866398163,-765916081,-603778488,-1236226615,-1426088902,206931487,708011263,-1924001580,-1416432385,1426123959,898789510,933847432,-1337299527,-165041773,-1778619172,1667235647,469503854,-1859265012,1327637869,-1118705641,-320788318,-1906978265,-466635665,-1193707971,177200905,-143147500,-1688972423,884165273,-507742414,-1125642621,-296185726,-1090631993,-1963944271,-1697318722,638818725,-1232874048,-1851831735,-1053177139,-1070552444,1994659279,-1654506272,-1069502630,-985851129,-917032656,-1287740235,2000512507,-89445540,-2141180061,852760555,766038131,-1497415428,516341195,1312914034,1035237783,-208634799,-1797600492,1222987047,-1293163751,-1390505121,-66620183,-1440737045,-1723928549,375679984,585601545,2021870785,1067391342,-1801856922,1327032783,-918765341,18051726,-1399678059,-498077799,-991458487,719412715,800796036,-1454997276,1698569002,-1377871162,831308122,-713459823,728403936,1001965828,926901461,148773753,-1715186597,-2045707208,1807981808,89463216,-1404810992,1776037260,1192211772,1782740152,-468632251,-1303595251,633103432,1487274959,-945631798,-1207662280,1851926988,-1115545835,8755141,-1908048852,1828530389,-1797393934,-1810521868,297052030,1241387300,-235218447,976876222,112390157,-1348827212,-1090650124,1491541098,1730349164,692747692,1403700488,867289087,52519786,-2096664389,-751388701,1686014515,-869879856,1785788163,-704969579,1247914746,-725161293,-633181429,-2059243702,1065015086,-585534131,-1702906761,-1507485524,-1160815284,-1565433571,23294834,1845382941,-1005728971,1078619521,1139286536,-314463167,632166963,-2005863736,-1285506782,1187761588,-1804950421,-1756245187,-2064141743,2110112098,-588092101,-2128527608,-1793663700,-1661957776,1127885548,-1460916048,1355610614,-288664218,-366792534,1064611810,-1764443404,-1433767193,1861380390,-1740621197,-1790136522,-843938014,-275334090,-903410243,-496895700,445567217,-82913175,-869990381,2134058712,101965077,1745603284,-1776684265,330087525,-1403663830,-1174442603,595394486,1621220091,1096088328,1403443611,2029704481,1206559606,747474464,293056569,643497689,1372239772,-868501245,-608600193,-1088765409,1785872398,-1862807941,-2125975519,-1048126418,-1740429482,660593714,803845123,-415282045,1258680558,215871120,1348163748,-5198959,-2031652863,-71850493,1232876688,1116631409,853115287,1258321433,-858109213,1029573583,-719014411,1692948373,2085721251,-1420861626,364048160,687059455,-665747924,1601421345,1871393770,706528197,-1485211495,-644491060,-361447445,-1267047389,1395635258,1272331826,69713834,-841305142,496660327); -/*FRC*/Random.twister.import_mti(610); void (makeScript(14)); -/*FRC*/count=47; tryItOut("/*RXUB*/var r = /./gm; var s = (/*UUV2*/(x.isPrototypeOf = x.getSeconds)); print(r.test(s)); "); -/*FRC*/Random.twister.import_mta(-1806641915,1054188561,-1021714017,-1743199300,1619092384,1594361778,-2049174015,420249104,-1643848273,-875541127,1587224158,-1993535355,404972512,2107473515,1418303639,-1939328102,-899927823,-2094513334,-908257664,-1947938668,-2114363667,-1350355012,1966768072,-1048150652,-1958855544,-905292746,-1931520107,-54613850,87527500,1485659418,539389388,1904467339,-561606895,-1597365629,846729782,301785401,81550641,-1523240634,-1640761334,251674521,857844243,-1587467931,1823997544,-601431792,409610972,-952091968,-2054127462,1814615617,1165655637,105918051,664961717,-1597737660,1406004346,-1693551785,-97125350,-989564385,-1724202627,2039106409,110777818,424527714,-1098869851,-1719746826,-1932869807,-386521561,1848792923,774290475,2103875250,-177308960,-1759617639,-1145775301,401426996,1850135567,1828661762,187033886,-1207676145,1188062560,-896954321,-247096796,1958350325,925058880,-123592101,1509747881,-342978292,-406121771,297853103,1908125461,-1011783926,-211765295,-1671944109,-900497478,-2084738106,797676555,565925684,934611327,829486766,-1600207801,228210546,791985112,757634739,-1629510518,-1214021146,301309280,233736053,800593331,816073370,-1198678209,808730399,-191628128,1909305814,-1809285903,-581492114,-622127935,620630809,-1608247997,-1022919808,-1816528080,-398681868,-1242744043,6271022,839264675,1196662691,-188444870,518790774,-1653492515,645697368,-1556135703,-1796245969,-1982052657,-416489721,-959486641,-456997399,373995264,744106856,-1952857686,-1154125408,1217133448,-1692321385,-1653139500,-276981157,-890709097,747696598,-1861061153,793298492,-426731080,-219199268,-2104626057,95877542,963455891,-668319533,-1458956101,-2070927837,1379166596,-924613179,-590116695,-84523400,-840802702,-404997951,-739930168,-1311888362,370539312,1551690358,-566933072,-2131607105,-564474489,104312230,1909819752,2018276149,1816109636,-898347182,1155380412,1454300016,1498213057,-1182788719,-609236708,367465539,-1597135267,-1327455216,-292720891,1367380666,-1796294699,-1465790617,336742332,1610496649,-1594045742,-308812569,-1187785200,170907166,-470247615,-368141167,-398822312,-1779259499,-211259229,-500005168,-399542697,-349893153,1160053527,1133769529,-2109529782,1926661585,-1683884462,-171207890,1322413455,-428695554,-1295076915,-1299922264,1020603182,-1745661858,-225334763,-545671726,-1038556220,690076045,1254125467,-2022743189,137072106,-136674470,913995917,1790063511,1387860826,-1358306661,1016131483,896959984,754783926,-697450707,721447167,-622005816,976550849,354756233,-809289686,-2127499034,-1996095608,699325512,-1641836889,1291170347,-1447536979,2100498553,-1581954627,491515592,-1551294706,-1919356601,-622996080,-1501061876,783330713,-930422360,1342649406,-71812755,-1065598046,532185604,844166575,744341188,1362949367,-319105762,540292480,-1736539078,726039639,1234330979,-167811868,-2057587815,2070119925,-1909130638,1799650153,530152429,-167897209,52491431,-1295968943,-314385617,-1941490291,-1081293347,-1874380876,1345713308,-1990669881,844040555,-1915216511,1129509088,-1379407370,-1256037061,-419334149,-545343930,1845843653,1586501231,-597282118,-1980787666,-383309348,-455108290,759301655,1998388170,-2031461057,-1223895000,1327408907,-1531373680,-1786422985,-732374459,-162903617,-822952167,-636655755,-1025891063,1999008078,-663234434,-1434632935,-1159898315,-2136621615,1635258472,1382557027,1627258659,1751046016,683846072,1366368879,-307126995,-411268587,-1623943195,825561185,275754733,2032308565,-631081280,1681511718,999557671,669931004,268884758,-973921662,1191027753,-1064922502,-2061638063,-472817012,-1896877545,479232239,635142507,-146676418,1079092658,1594933573,1953443006,-1636175882,-1337418214,-845652159,2111518933,1581550127,-275223616,-1249900645,-1624096708,-2037150978,161869682,-1119200961,1934151475,-791506659,259395558,1719920031,833554650,-1509382900,-1662061732,-1315192426,87695912,845315210,1431657967,-156671869,-1856892942,-1520542625,1711524697,85416517,-779879301,-1846627099,278831678,-712682752,-1141583002,1307776953,-1202867751,-990850635,-1292816885,2076831889,-45578288,-758472962,-2004076098,-711817958,1034189776,536888084,2065401250,263058043,-2118733336,2007609755,-986921,-1463198835,-764444617,-1441698072,-918453360,1814456505,1987880758,-1899370161,-1842341613,-534005758,-1554799897,1491381080,-2102282075,2119500386,-1409221136,815726176,-388713424,108771967,-2102890894,2052094378,719076760,-1802617525,204678364,1721917505,1472121788,323886121,1812753661,1130914452,-196847802,1247027838,365113814,1253944177,1592553938,-1218873911,-1392325275,-452916255,1202353273,-1919970614,-1786248432,875349341,52764336,1352051796,791097336,-645309990,1015934772,678697036,1979398286,-2064694105,-177247989,-1264511379,1204882901,-1197346959,-2066542206,-46959330,1661576246,1259378449,1556971116,1971972710,-64965531,-1084628353,965664408,1300898069,-1973973730,1710842185,897456196,786572340,-166149209,-445715599,1105638180,2036468897,464540322,-1297872412,-1942120383,-1677665625,-696615245,1519497371,-172817743,-231855070,64717952,1420245044,-1036531088,-1579833965,996841496,1396326044,-1544242530,-2085104575,472094995,1573017487,751362587,1706538580,564568299,1795130150,963459931,-601251366,580401579,-313027570,-1732631793,-1408464621,1743106655,830593606,-743705022,1906141309,-1243697294,-612959706,1588048431,1262021051,-472039316,-239753889,1491361643,-1156202450,-1069263596,-541617996,-1491065437,-1233435233,-1861192780,-1321164877,-76144277,944077448,1225608329,1461144202,1714351474,941748626,-942486021,193504095,-1992760988,349681948,-1172468060,1160740511,2043155743,32434581,-1340752753,-1166143464,-41806070,-854918214,-1382918857,1988905599,509695421,1201615622,-1540795699,-2102771592,2041942633,1739450576,-1820681022,2107210399,774169135,-2139417940,681253593,1878249991,2118801405,-372271261,-574483593,-1456992199,316251354,-821401486,-749698363,-772853849,1887777643,1108999122,748894163,-1693651327,1753566448,1930053687,-367037505,146943873,-1085621039,1165421206,-1868573762,1352025234,-1887941612,142991505,-1592031476,-1855193591,-1950933385,-1182115676,1770068154,2053232282,-64243644,-1944310754,678032854,-515407528,-723535763,-695083637,-1168965286,-2118119724,796161721,1003991911,286251888,1613263082,-116778606,-1817923289,-1991263147,-515078553,819184,425519859,-1552620662,1611757313,256964782,-1136357672,20979076,-1605371801,295120177,1125358335,1729759296,460832833,-1917122671,-652826873,-238856923,386280875,-455633694,-2115111460,204078031,-617104015,30573586,-337485888,1242348395,409352341,508233958,-81366888,-85511508,777837737,266964421,-646506482,1153325404,-1017901627,-1882619281,1027488315,-926145483,945243631,458469800,957553442,221320294,-588895181,654253865,-82981098,-1562290599,1686194652,-672259593,794129370,-766466101,-293907261,-1838682808,1865776958,1493771389,-851465431,73950634,-1538967657,-1382678842,-1174607931); -/*FRC*/Random.twister.import_mti(65); void (makeScript(14)); -/*FRC*/count=48; tryItOut("\"use strict\"; ;"); -/*FRC*/Random.twister.import_mti(71); void (makeScript(14)); -/*FRC*/count=49; tryItOut("\"use strict\"; var xbwmej = new ArrayBuffer(2); var xbwmej_0 = new Int8Array(xbwmej); print(xbwmej_0[0]); xbwmej_0[0] = 28; var xbwmej_1 = new Float64Array(xbwmej); var xbwmej_2 = new Float32Array(xbwmej); print(xbwmej_2[0]); '' ;"); -/*FRC*/Random.twister.import_mti(140); void (makeScript(14)); -/*FRC*/count=50; tryItOut("mathy3 = (function(x, y) { return ( ~ (Math.fround(Math.atan(Math.fround(x))) || ( - ( + mathy0(( + ( - ( + Math.sign(x)))), ( + y)))))); }); "); -/*FRC*/Random.twister.import_mti(241); void (makeScript(14)); -/*FRC*/count=51; tryItOut("\"use strict\"; a1.splice(NaN, 18);"); -/*FRC*/Random.twister.import_mti(263); void (makeScript(14)); -/*FRC*/count=52; tryItOut("\"use strict\"; with({}) (\"\\uA639\");throw StopIteration;function w() { \"use strict\"; yield (this.zzz.zzz = \"\\u0D27\") } o0.e0.add(g1);"); -/*FRC*/Random.twister.import_mti(395); void (makeScript(14)); -/*FRC*/count=53; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return Math.imul(Math.fround(( ! Math.fround(( + ( + (Math.fround((( ! Math.fround(x)) | 0)) >= ( + Math.imul(Math.min(x, (y >>> 0)), Math.max(( + y), ( + y)))))))))), Math.cos(Math.fround(Math.imul(Math.max(Math.min(-0x100000000, ( + Math.max(y, ( + x)))), (Math.fround((( ~ (x >>> 0)) >>> 0)) - x)), (( - x) !== (Math.trunc(Math.fround(y)) | 0)))))); }); "); -/*FRC*/Random.twister.import_mta(1391222684,-1263049524,716050847,670988908,1019879408,-135604446,267279772,1649314126,-1229671395,2056175353,-685534228,318619682,278886947,508473841,-483061204,-1148396322,-870599825,-244938672,1910418711,-623836903,123156362,1438257180,-112564456,2031284592,1299264087,-1432607845,-89124620,-1208704723,-1729644320,1472346931,426291563,848881365,878630016,976596269,-622438574,-945037269,1729327813,-1288091552,1641106796,-1189692594,-1003354760,-66293206,1273631169,2034961706,222443860,-1261403158,175255694,-95208239,-482170033,-1855347929,-1564069050,-438604164,143610835,-1419738946,-1592051381,539415248,400800073,9875053,1476516741,1149186941,-311756056,-469272721,-1102471856,1306862060,229390987,579916362,1735748351,-28345336,-1587188970,1783629297,-992716290,252882522,-642034347,-1483562765,-1908431170,620125127,-726776831,-2068839302,705722854,1995593648,-2073317642,-2145785868,832291731,-1890618713,-353530130,-1039797271,286084712,-1883178083,-566460429,-2120556297,293268078,-1208119751,883519999,-1985476381,940002639,-1111803182,803153764,-963528945,1484298447,1040133505,1893416738,1479360158,-2057561767,-1855273943,-1852193188,2064589300,2137424079,19844596,-1829607630,-557961800,1308830375,922070617,1141916100,-871241481,1062254567,1786714567,-2074010029,-469333286,44164214,-1022038681,1573891917,-603155463,-366407634,2098898307,149684743,-68939503,-1307229761,-1798010719,329291035,917225820,-502445127,83134830,-892958553,-1899349483,-1247096221,-467853441,211972152,-1038792159,1735406485,1053635611,-494157305,-1111813983,998925149,-969074497,-1657233294,-767250579,-718773884,979754146,-989307885,2052793538,-126760245,919497802,1324035119,351943558,479263139,382539003,-437326854,1888412637,-1437762368,-85865130,-108299949,1663209818,2011551944,1819254890,54360019,-1272884683,1446486472,-600818117,-238392455,-1575431699,1424114648,-2050701593,1955270269,1888475508,-377547536,1461758630,1376422277,1770018009,858788690,-590382499,152746273,-772954661,185181480,1652049213,-2054206449,-1261126102,-1074604332,148400757,-168767504,-539485990,998979071,1892403066,117265460,-1500082853,-470021695,-1500888667,-100147139,444907675,596387712,1963738194,655793686,2005341859,54257148,-695475397,1666494380,-1019900902,-669573062,1961847617,1478453952,-1062635393,1619962657,-1136648637,-1088943645,-1727260684,-1498102459,2076149987,101317239,1557980761,691770321,-1998803024,2035020901,-348697804,28782473,689839438,1616378536,1041227101,-1642234928,309602287,-264922360,2121891771,-1310257696,-1011321286,2050903211,-394304129,-342057649,-133086343,1800024446,149379984,2140351210,1138537637,-803317790,-948935944,-745584959,1758404358,-1856460415,1040378901,1525795601,293202152,-466822472,-818475625,688450480,1095659594,1714924911,1198625434,-1928653985,1128452595,-1283765994,510839890,-567120962,-1566910039,-1715333583,41852382,1204017756,-2001031283,1813144185,-1491099811,-248176492,-1406599370,1638442518,-1950014037,-424692939,1827356964,-1573685487,-907300148,282802163,-1929514900,2137241754,344361134,-873957599,1282972100,-537717680,-747309612,-275816188,745391276,-1695862739,59226001,-1158098905,-13209312,936209195,1299005613,-1345800724,-203565608,-694234833,-1626290012,-2049162065,-1923184855,-1503253598,11683003,-699875219,-1459135135,397279901,659155440,282669063,-1060171555,889202066,-2051012689,-1673223579,1392072155,1099685659,-1599822790,718703314,-941836914,-1340532358,-1781531740,-1674063517,-700509576,-1553763914,-351500123,-1749104892,-282119672,-129975899,-428342117,1794886266,-1539680498,-47102576,944785942,-1954546180,1257023869,1460783461,-579316140,1856920406,1987898089,-853158852,1219147055,-1025081626,-580171988,-1644697401,181525790,-1319620071,-1531144574,2104496294,2028711956,-1070179369,-1665754562,-150808484,1289133528,-1680274004,525516377,-985813572,1502285318,-549018339,1078265342,809734113,1478235340,257398108,-1570120711,-413914127,-1438508378,775299310,-1757617900,1899692310,814004816,527288186,-858630174,653853366,1507094653,1470659428,-1496457512,-680373716,1700290229,-700630731,-1598725469,1285219983,-705480336,-658918224,1677235367,-1221117477,139377167,1673976638,709619175,-69091579,665758264,-2002694013,905861036,10174428,1659641196,-1768711942,1641747934,470290539,1642440240,874569562,928460235,1846820821,1466144497,-1592261906,-458984011,827817879,318493110,798836248,1599368099,-534747201,1181848145,1989450732,1747493414,212485606,970034105,1620647738,644645320,1397338080,-998214843,-1980731374,2136131308,-1307347121,-180955300,-876169212,-194887512,-141340944,739811843,1544514455,1488692142,-1297317507,-654207610,1039487785,431547495,-639829134,-647229003,-262929611,1702827735,153005100,1925134311,1779112044,1295126682,-101615319,2131741399,-1303696735,81266060,2137315370,1705340334,1471422008,-1515780671,-1904409106,78648393,-1879028348,1727701989,-110800682,618904192,-1852921022,-1503819622,1010800312,-209543153,-581012004,-1014576337,1192807244,-537871984,942128117,-785482192,-1214571091,-330153492,-366646924,1808011748,816594816,1015406873,1341708385,-467210068,977043642,-163001792,1990423862,1436580496,-379276779,466348747,1583666433,1141704921,-250865597,-1341414687,163120587,-839310951,787548534,870824969,754257241,-1871919961,-68856168,-1125797015,-1567575165,1174525564,66595909,-1106230988,-851373581,1398453311,-1068789810,256631686,1225937035,-2002664941,-79879655,1287337487,-2019337613,1388302511,-1747591838,1548641559,-1339580332,-1498478685,-2088735166,232124577,2002976764,-628161846,-1921430341,1256855993,289903048,-1590550571,-1242462199,542047040,-836546228,215165484,541601298,837077406,-1100787428,-769715520,2126230725,-1502217331,337238088,1485050087,-1624423950,1218017564,598728437,4960387,-1386397739,564230409,1687938466,1589824752,13426121,-528891462,825243601,-733344520,-1530070458,320702803,-965242300,902396259,2699518,-2033089582,448074385,917829581,-143356177,-1804060484,-1099681743,-1528866884,910608434,-2026699646,1049787859,613647937,-1162008375,507201063,-1727349693,-1021011534,2120113177,-548731113,2052024785,-1535728244,792201294,864541691,916254083,60252095,-867574717,-899574946,-310411431,-1586306034,-636799662,1828150508,1293051246,1031155550,-313690702,-779343342,1974899041,-257252341,1391778484,-612826258,-1770130763,352226299,-519408730,-322199235,-722053887,-1349075722,-1382025328,-289501423,1893891571,-717233792,-357244856,-248877610,598708083,835863327,91592112,-480040432,1508506487,702318277,1682393137,719053362,1760231507,1234052113,1239667378,-1268640357,404214942,-1837721753,308581554,1708594805,-1495562609,-1163992817,348600222,1700679949,-1657779423,831946830,438848947,1087982448,1203696450,-1302028296,893822081,649296832,-1880223904,1429989071,377428399,-2119369285,-2000664448,740297984,-599147035,-137167475,559068808,1478578265); -/*FRC*/Random.twister.import_mti(36); void (makeScript(14)); -/*FRC*/count=54; tryItOut("mathy1 = (function(x, y) { return Math.fround(Math.hypot(( + ( - (Math.imul(( - Math.fround(Math.exp(Math.fround(y)))), Math.cosh(( + ( + ( ~ ( + Math.fround(( + x)))))))) | 0))), Math.fround(Math.expm1(Math.exp(mathy0(x, ( ! ( + (( ! Math.fround(x)) ? x : -Number.MAX_VALUE))))))))); }); testMathyFunction(mathy1, [-0, 0x07fffffff, -1/0, 1, -0x0ffffffff, -Number.MAX_VALUE, Number.MAX_VALUE, -0x07fffffff, -Number.MIN_VALUE, 0x080000001, Math.PI, -0x080000001, 0x080000000, 0x0ffffffff, -0x100000000, 0, 0x100000001, Number.MIN_VALUE, 1/0, 0x100000000, 42, 0/0, -0x080000000, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(252); void (makeScript(14)); -/*FRC*/count=55; tryItOut("h1 = t1[2];"); -/*FRC*/Random.twister.import_mti(267); void (makeScript(14)); -/*FRC*/count=56; tryItOut("\"use strict\"; o1.p1 + b2;"); -/*FRC*/Random.twister.import_mti(282); void (makeScript(14)); -/*FRC*/count=57; tryItOut("{ void 0; minorgc(true); }"); -/*FRC*/Random.twister.import_mti(293); void (makeScript(14)); -/*FRC*/count=58; tryItOut("\"use strict\"; a1.reverse();"); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=59; tryItOut("testMathyFunction(mathy3, /*MARR*/[(new Promise.all(window)), /x/g , -Infinity, (void 0), /x/g , (new Promise.all(window)), -Infinity, (new Promise.all(window)), (new Promise.all(window)), [], (void 0), (void 0), [], [], [], [], [], [], [], [], [], [], (void 0), -Infinity, [], (new Promise.all(window)), -Infinity, -Infinity, [], [], (new Promise.all(window)), -Infinity, -Infinity, /x/g , (void 0), /x/g , (new Promise.all(window)), [], /x/g , [], (new Promise.all(window)), (void 0), (void 0), (new Promise.all(window)), (new Promise.all(window)), -Infinity, (void 0), -Infinity, -Infinity, (void 0), [], (new Promise.all(window)), (new Promise.all(window)), (void 0), /x/g , (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), /x/g , /x/g , /x/g , (new Promise.all(window)), (void 0), [], /x/g , (void 0), (void 0), -Infinity, -Infinity, (void 0), (void 0), [], [], [], [], [], [], (void 0), (void 0), [], /x/g , -Infinity, /x/g , (void 0), /x/g , [], -Infinity, /x/g , [], -Infinity, [], /x/g , (void 0), [], /x/g , -Infinity, /x/g , (new Promise.all(window)), -Infinity, (new Promise.all(window)), /x/g , [], -Infinity, /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , [], /x/g , [], [], -Infinity, (void 0), /x/g , -Infinity, (new Promise.all(window)), -Infinity, [], -Infinity, -Infinity, [], -Infinity]); "); -/*FRC*/Random.twister.import_mti(598); void (makeScript(14)); -/*FRC*/count=60; tryItOut("\"use strict\"; /*bLoop*/for (let iymcoc = 0; iymcoc < 69; ++iymcoc) { if (iymcoc % 3 == 1) { (3); } else { break ; } } "); -/*FRC*/Random.twister.import_mta(144729040,-473760248,1286297237,-29005753,2105866688,828618018,1494214273,-1896304841,-576822246,1258870476,1863475673,-1039228370,1387240290,-1200948988,580167811,1293295143,-1920625804,706829904,1073901819,-1271343819,113617421,1621776411,607312662,219981961,1430729876,1085102931,-615906258,-1783683326,730184947,1709763423,-449063582,322029164,-156413522,1199059909,-1209053104,326135956,1720938215,-1029469161,408115243,494787222,463688891,-1421236729,-1727888556,-1998841532,517494204,-717662781,-1025798830,298628526,-178267188,-1058163999,-726646876,-512716914,-432873392,349919654,-1818910137,-706631881,1186160249,-1926240536,1780045649,-2127666983,123292292,-1258182692,221675794,-1351445990,768444476,-448078399,-620671320,1787704625,443054183,1422481865,304688573,1555146848,-787871123,427492958,-1887529499,1112771228,-229400356,1555118392,-159380927,751099405,1944801267,-315597745,247713067,-1902931473,1156577858,-367651657,-655811731,-168909981,1742045584,-2047056700,-777206788,51873774,-1835575512,-1944500493,-1770233990,-1395478101,-151298729,1922541259,-716638544,-1346878733,1884879448,729881639,1997722984,-884175508,1884446811,-774303932,-635935696,-2080342238,632622949,-280054716,591427622,-1745245973,-1622229020,142850656,-1595664880,-1150283292,1139248371,-13393113,1788728492,-1990929476,293274286,1628262495,-1090391303,39055406,-329006773,-475148555,-752270324,2105918855,989108647,-862588767,481855559,-1129895611,1041525871,-219288001,1061958552,-492977574,-1423991652,751254353,-1280879695,-1469816542,1090829149,-562523168,-1935488179,-1175920938,1683152853,-723517197,-101860883,-1916119324,-98658589,-1683871639,2146742372,79695361,340155364,239759437,1363845904,1286154724,1040500262,1869207473,-653901017,-889912264,1108775766,225313255,899714954,1423955829,1232702107,-2040221763,375540684,1004974129,-1527544635,660817026,-1499661070,234898003,-372521304,1091115801,-1690635944,-486986071,1991350749,-1880753380,-1550744054,1016045545,1563804431,-1854765163,128069303,911270216,-1261121532,790304409,140207205,-800290896,-1631166021,-412965549,163029154,101400490,1763761250,-1323348152,-477030712,-2142500624,-24038752,2032997267,1929905720,1516805561,380186133,428484192,540792357,1674494820,1145950328,-892332398,1507976304,952664830,-603824659,1954524782,-1229045840,-592643683,207569034,-1913904833,1454631766,-1354045083,-1848264653,41645655,1364570391,-204319934,-1271441375,1360228251,950993831,-329105231,1910350844,777784160,-2011958415,817540692,100069642,1415106661,-1617341606,-1718390966,-1672169662,-1245112071,1811463764,-1472496475,1333492484,1356592300,2062043299,2057351315,-606943112,-765740228,963744164,471955307,-332883835,-193845844,-1132191423,886294353,-1640403441,1891020494,767266988,-11250948,1662358046,1153908062,1829175076,842537080,718376310,-903683907,-613148057,591719017,105348394,-1810973314,-1910138995,-1986859260,1210381158,1623836769,1265214733,1802962864,933463053,1935534609,-22431274,-1765187861,-1311994715,331261556,397561240,-1964111999,-894503242,1749857515,-2025012372,-909415816,2103518028,-464383291,-2083043999,-758221136,1441041919,-294809699,-21669815,-977842226,180336469,450026468,-694388490,-544583564,-1430079085,15195168,-1255553414,1230728630,-1919366325,-1610220204,-1858423281,64338940,182448806,505068857,-79908307,-1462521323,-950433232,564849580,-592395201,-903475039,-43905454,1537771586,-1384264920,484669183,-1594758811,268059395,-1628362145,912537931,1769115721,-1703698306,1954553578,2009053989,1714287713,-486426041,-1093690836,-2006712417,784303040,-789116850,1405527698,-1025987019,87897869,4585667,1769621703,1455458885,746906892,-76850365,-357180236,-230274087,-1440326965,-1562062347,-978852950,-503924809,888562282,435653412,-181707525,946266333,-1722225205,1735479930,1609907279,870700144,231266140,162140328,1651602129,1833612900,-811350893,-729641310,-172386140,-799654784,-1716191758,1269012528,-1220978225,1183444196,-357584105,821743653,-990582357,-127722041,-1725582416,-1737265661,-1157460402,717066827,903613541,1052043016,1891295064,-1692984243,-31876021,-1783536715,1698606184,2022554321,1183696305,1310187003,-1997715411,-1329711943,1570579793,-871187570,374735410,1044994504,1579145479,-766537894,-1172795689,-719705156,1033687807,800120871,-696454833,-411359826,886952986,116279995,-792970700,1699777489,773762137,-1320001538,-1197291683,1087587752,-1153867026,-1603224402,-689078342,1894038318,168136223,-1814230633,800710413,1955665151,708447976,1129977534,1241088574,886430588,1434484023,1840789607,-1434605596,-451950909,677790861,-1095195210,710340221,-377607165,-576748149,610471811,362334748,-763408615,-1936479338,-1842694275,-1310743027,304510979,-1176695476,356407827,1163381545,-507651021,744440614,-640892417,2057601080,-474992136,1185749177,-1654378324,1467468706,1264697981,1455201220,1588841876,1161758792,-1385754536,1342876439,1502799030,-1594058993,-366439555,-237334717,1442855241,346658297,307349082,27547560,1292410452,405639500,-952905981,577892499,-359929888,-328112200,-2080200574,847468714,-720608581,-1708653325,308624217,1811911052,28963384,1349553627,1986535853,112656006,-1890890757,-1490074664,1302733947,897532931,1632637819,-1960319166,-918426956,-263340011,-1563842849,1852473456,518469970,-2084744139,-1522133446,1362686790,-1306186869,-718618585,618406465,-740228951,644004557,-743748419,866389783,348831442,-1397566795,-1617108039,-776947477,-1692377288,1011444412,-2072876987,-423990788,1553362405,-267601020,-866324741,738407014,-1482062108,354082868,-1808725784,-1880159352,1079694669,-1097771113,-1267372187,-1530466873,-1800936538,1170250486,-157291694,-511381305,-1397176658,-320152088,-1864329475,-1668246318,1791027416,-1521215126,1688953006,1039571423,-797571800,37676158,1776152847,-1552464674,750050692,-1817105251,774266340,984357146,-2097761175,-1790970093,-248733734,-7664355,164240591,-42559955,1488996779,2033185471,-1632518714,37953229,1170628445,1489207960,1678480021,844231760,-1712709057,-1295937316,-50411302,-495202086,890546571,725775570,-370035898,-929555181,1717189402,-1209425243,-790364941,1386296106,-2138135071,-348352807,-838625979,-1817658382,-1638165780,84071367,-1560331810,-953958302,-727744637,-483471075,-11689960,38852787,1899077165,385393812,-1724186105,-266174319,1255003085,-1916570166,-527294126,1028517519,-423137047,-1862080370,981592095,-1720959141,987068917,348132994,-87438272,-319910442,859221723,2145791657,-949453388,-401245745,21710125,822650063,1971711610,839821175,-1927373030,377470648,-1754124132,288220476,-1114809062,1018246423,186967841,-1221863918,1045583952,-279191568,-1127581047,216948350,-441432670,528342370,-394955618,-914246825,-327279050,898202515,662378036,-1649132648,-1055509830,-1108375193,646932484,-1347686665,-1234293211,-1843604209,-1318378706,-2081310153,-468745054,-2146082448,-800550110,709795249); -/*FRC*/Random.twister.import_mti(50); void (makeScript(14)); -/*FRC*/count=61; tryItOut("let w = (--e), [] = (4277), x = \"\\uBFE6\", y, kjvsee;/*ODP-1*/Object.defineProperty(v0, \"length\", ({writable: (x % 6 == 3), enumerable: false}));"); -/*FRC*/Random.twister.import_mti(165); void (makeScript(14)); -/*FRC*/count=62; tryItOut("v0 = Object.prototype.isPrototypeOf.call(b1, o0);"); -/*FRC*/Random.twister.import_mti(180); void (makeScript(14)); -/*FRC*/count=63; tryItOut("x;"); -/*FRC*/Random.twister.import_mti(200); void (makeScript(14)); -/*FRC*/count=64; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return ( + Math.min(((( ! Math.fround(( ~ ((Number.MAX_VALUE + y) | 0)))) | 0) && (( + ((Math.pow(Math.acosh((mathy0((42 >>> 0), x) >>> 0)), (( + (Math.fround(x) !== x)) | 0)) | 0) | 0)) | 0)), (( + y) && (Math.max(0x080000001, (( + ( ~ ( + y))) >>> 0)) >>> 0)))); }); testMathyFunction(mathy2, [Number.MIN_VALUE, 42, 0/0, -0x100000000, -0x080000000, Math.PI, 0x080000001, -Number.MAX_VALUE, Number.MAX_VALUE, -0x0ffffffff, 0, 0x080000000, -0x080000001, 0x100000001, 1, -0, -0x07fffffff, 0x100000000, -1/0, 1/0, 0x100000001, 0x07fffffff, -Number.MIN_VALUE, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(432); void (makeScript(14)); -/*FRC*/count=65; tryItOut("Array.prototype.shift.apply(a2, []);"); -/*FRC*/Random.twister.import_mti(444); void (makeScript(14)); -/*FRC*/count=66; tryItOut("m2.get(this.v1);"); -/*FRC*/Random.twister.import_mti(457); void (makeScript(14)); -/*FRC*/count=67; tryItOut("\"use asm\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(466); void (makeScript(14)); -/*FRC*/count=68; tryItOut("testMathyFunction(mathy0, [-Number.MAX_VALUE, Number.MIN_VALUE, Math.PI, -0x07fffffff, 0x07fffffff, -Number.MIN_VALUE, Number.MAX_VALUE, -1/0, 1, 0, 42, -0x080000000, 0/0, 1/0, -0x0ffffffff, 0x100000000, 0x080000001, 0x080000000, 0x0ffffffff, -0, -0x080000001, 0x100000001, 0x100000001, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(498); void (makeScript(14)); -/*FRC*/count=69; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return Math.fround(( ! Math.fround(( ~ y)))); }); "); -/*FRC*/Random.twister.import_mti(547); void (makeScript(14)); -/*FRC*/count=70; tryItOut("\"use strict\"; t2.valueOf = (function(stdlib, foreign, heap){ \"use asm\"; function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n return (((0xffffffff)*0x9118f))|0;\n return ((((((0xfc5890f7)*0xfffff)|0))))|0;\n }\n return f; });"); -/*FRC*/Random.twister.import_mti(624); void (makeScript(14)); -/*FRC*/count=71; tryItOut("o2.toSource = (function() { try { m2.has(v0); } catch(e0) { } v0.toSource = (function() { try { /*RXUB*/var r = r1; var s = this.s1; print(s.replace(r, (function(x, y) { \"use strict\"; return ( + (Math.asinh(( + y)) << ( + (Math.imul(Math.atanh(Math.fround((Math.fround(Math.atan2(( + Math.PI), Math.fround(-0x100000000))) >>> Math.fround(Math.max(Math.min(x, 0x100000001), Math.pow(Math.fround(y), 0x07fffffff)))))), Math.log((( ~ (x | 0)) | 0))) >>> 0)))); }))); } catch(e0) { } try { this.v0 = a1.length; } catch(e1) { } v0 = null; return this.e0; }); throw v2; });"); -/*FRC*/Random.twister.import_mta(-2135744262,1207950536,-419872428,-973398514,-1195284929,1667382309,-292529046,1691008018,-161914127,-2127012034,1435911656,1131266905,1601137212,-2118424928,-1957272400,1396880525,950572879,326381382,1713052806,-234086060,400898404,944735222,1996015768,-147054655,-1656941835,943573003,-1733763944,1079625008,970355213,-2092806980,1539218229,-2104777317,-276106450,1587569409,-1476008839,-2044836726,1637201707,-1350198030,-317793101,-764149189,298341232,469142024,252694239,433107226,-316155990,609406689,-444511601,1789216497,-1595110119,-895186723,-1701784390,-2101084309,476943770,-2073299963,-508975842,-67811253,1268739360,-198604229,1588350896,1641895377,-267701234,-1427495119,-1816403569,1684380852,2124528772,-139943001,-30764770,-3990176,-1294602749,-1066619942,1479603613,-1220850833,-1007236908,966310389,747626805,207000685,252219367,695161533,103495021,1353766707,223950887,-1341925830,-2136587910,-506812140,155561150,-1538994641,1373293285,-1497366289,639766563,-1153998505,1743354170,-622794967,-325051215,1609863535,1674787519,2112486861,838064977,-1316740000,-224527590,-60942999,1785878320,1730086737,-710214350,763194889,82818500,-895109892,1461378981,1608728453,-1203220054,301656414,744829757,-70111081,-528011017,-2066356050,410554884,241475060,1192595851,-638178056,-398412746,-664987734,891194402,-330784389,-461512323,-879611692,-718745990,-1176328402,-436947358,-307294973,473238609,-69195400,350882016,-400237812,-1697489190,-581915227,-1536092610,-1532800620,819994730,-1995373112,-1455118660,-1588943654,1444133711,1105750207,1589080486,-1360560024,-340053442,-2114584900,1958010658,2112739729,1712862263,-2096852760,2031314693,1060603001,-1250952149,-1051401522,-288585247,2035832841,425064866,1701342655,937144630,-511316918,1954758389,-724315520,550494359,602924926,-1623706426,-372368328,1138239653,1609436478,-1331727524,-335290783,-598193851,1171553657,-277571129,-1801028949,408332058,-1466060804,-1976465340,-1319443881,-100494940,1364533681,11738011,-531083365,-2109452289,549392887,-633000687,1743572653,-993473010,-446877991,-1788883745,-2085376539,-351214054,903555868,696714091,72181022,1915265807,-229243318,-203323474,-1359596672,-1525605569,802257615,812918311,-2110669588,-2033404000,477409388,-902572871,-801470287,277487361,1387912075,1698826837,-215323834,1054834502,-1437483405,-1434985517,1277354911,320471029,284450428,1708819091,-1758658480,-1774008490,1971139306,1671287325,875827746,751315632,-1662954148,-1757715264,1296685637,1913899675,-2109187969,-186973147,-382342919,-1993168469,-152355426,-1601306490,-1687420096,-371215713,-1847271565,-1454004888,-236269210,-415945777,1921388032,-392774850,-672224158,-1000685593,-1749783598,1766669712,-1588478727,829256227,-2114896196,1075106961,1613037774,-929679681,-323494918,442390180,-1372871926,1497745676,750695606,1062964285,-1358158119,1243701360,-324448837,1420246462,1981783904,-1026084088,92786328,115984413,1370668778,-405831197,-1827593815,-1152331809,811274804,-876826960,751378727,1837997531,-296195005,-153422354,-977537470,663380599,-1724467956,-433698217,1658651708,793398712,961197937,-1835896045,-1201300736,1511521578,-1191292085,50786870,744251259,-1484567869,-1191846412,195081358,-1295495022,-1210364489,-457280989,-1687245893,756104057,-1871817360,-1985667515,-154036591,-963038841,-1348642890,-2011625220,-1053295176,1822706431,2042242923,-1317279827,-1398050884,1944600334,-573074917,-1776769810,917742260,-2143950637,2058444657,-945098987,1694149781,-1953240872,-1240551064,497645135,2016905828,1186879070,-142803821,1018492841,-1596935459,1722555057,-1711300537,-1686198189,1144713900,-1310426007,-30061585,2015324558,-1625973772,313378626,1847110018,574632447,-1077368138,1951648784,-645910149,1320600296,304208787,-1157889598,-2010239684,-1142584154,-882942651,-760129615,-1437694523,1588763342,-1045430894,872081292,-392320721,1280174282,-46699546,1810996460,-744234881,-1624737232,-2054941885,1357869736,-1640897184,-1770122024,-1956631170,915224462,472216936,520344116,1100640168,2087909810,1545601558,-188358245,1830608160,-705360478,1588730683,1726619146,979680913,230640836,1378222009,103516438,-660360154,-598317520,1023921866,-462588980,-27250950,1118428764,-413286647,-1511552776,1719465197,-1353538050,1280289298,-203471230,-1962346092,-1287264427,1510150732,-1829164817,1347581353,-984162613,1941014970,1803957695,-1269893111,1050187183,-190123618,419535412,633200557,-219666256,-996268804,1931483335,-789581205,373030804,566023747,886492925,-233497839,363732207,-1040890684,-1497854240,987102281,1770890069,-935828927,-772399620,248675687,1482972742,-1661993154,657662459,-1737716286,-566201999,-814460416,2028258817,1113657625,-1247260059,2129385697,1693874406,-3475951,748331137,1369841978,1030742763,-1247613270,-1675856598,1708415121,1842896669,1667351415,-1625540906,-40340720,1432656535,384429970,-2127981007,1669006677,830897105,105371216,-1797822521,-1142656501,523516942,-1721644149,-2106055325,-969097639,-1080799085,-1781942671,-1746317548,1808635247,2114257469,953749281,1022053555,-596632823,-16115081,-1259705889,-103830317,685933250,1036189753,1105129984,-1666552402,-248108934,1443225085,-793072119,-338836355,1229175104,-1748165109,1752156464,-352702642,150013339,889094530,-447624218,-1590000572,-1471585410,-1079806329,-473675949,-2104996767,-58152937,836350127,-1398500948,-859415311,1684703014,-86421253,647012354,-461755585,-1228593100,-927830943,-1965680867,-802223842,-1604169152,-1436569985,-852126473,543247138,1124476618,1023355037,349142245,-1834263943,-1202064016,-452053348,-1892252072,764601859,-557764408,520327214,-459464920,-327660843,-232689331,-658406720,-628763013,1633159299,1362402295,1431998817,1512649103,1996206434,-155347043,2126561506,-1604166617,-980484640,1666027027,-1286231761,1812875590,1032330536,-1742816214,-1601439661,1447630614,-124880572,-1789983631,1497634643,-1087176279,19687558,1471599100,1900466436,-732183353,683607569,864546158,971734103,1478285162,-1051017216,-339005863,-805841664,-1833233680,603132072,1154072097,105442825,931380787,889067657,689294784,-1809290370,-1679252249,-355287606,428001758,-1253852150,-659233284,1736092096,-1802920387,1629282697,1534696123,557146356,-104208189,-1363724711,398601249,717700709,-1507255623,1837566879,1658641732,700338933,-1332093204,1590324377,866690854,1444994300,1481842731,-1310266053,-195780588,1123459460,80518285,964636470,-28363874,398584922,-1790414479,-1193216669,647509059,1587675858,814068563,-1462496348,-611370058,-980916447,-1634783092,2069403797,-58909994,1521438107,-1074118969,1722140014,-1654390980,1081390518,-1581632418,-1493271074,371894221,218944401,830891758,533608893,-1709094641,266333211,-1412194947,-900033355,-1084115160,-1855803374,1714128366,1975615479,-1584875470,751088463,874525422,-665891434,1033412849,-1740851839,1124070071,149414974,497464079,28724203,730629383,-596987496,-222860376,-185376285); -/*FRC*/Random.twister.import_mti(255); void (makeScript(14)); -/*FRC*/count=72; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(264); void (makeScript(14)); -/*FRC*/count=73; tryItOut("m2 = new Map(a0);"); -/*FRC*/Random.twister.import_mti(277); void (makeScript(14)); -/*FRC*/count=74; tryItOut("mathy3 = (function(x, y) { return (mathy0((Math.max(Math.log1p(( + Math.pow(( + mathy1(-0x100000000, y)), ( + y)))), (x - 0x080000001)) | 0), (Math.sign((( ~ Math.hypot(Math.fround(Math.min(( + y), ( + y))), Math.atanh(Math.fround(Math.PI)))) | 0)) >>> 0)) >>> 0); }); testMathyFunction(mathy3, [-Number.MIN_VALUE, -0, 0x100000000, 0x100000001, Math.PI, -1/0, 1, 0x080000001, -0x080000000, 1/0, -0x080000001, -0x07fffffff, 0x100000001, 0, 0x0ffffffff, 0/0, 42, -0x0ffffffff, Number.MIN_VALUE, 0x07fffffff, -0x100000000, -Number.MAX_VALUE, 0x080000000, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(470); void (makeScript(14)); -/*FRC*/count=75; tryItOut("Math.imul(-6, -0) = o2.a2[v1];"); -/*FRC*/Random.twister.import_mti(506); void (makeScript(14)); -/*FRC*/count=76; tryItOut("\"use strict\"; mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Int8ArrayView = new stdlib.Int8Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n switch ((((i2)) ^ ((0x4490480) / (0x697c9915)))) {\n case 0:\n (Int8ArrayView[(((new Function(x, \"\\uC2BA\" ^= window)) ? (i2) : (i2))-(i2)) >> 0]) = (-0xab140*(!(i2)));\n break;\n case -3:\n d1 = (d1);\n case 1:\n return +((1.0625));\n case -2:\n return +((((-73786976294838210000.0)) / ((d1))));\n }\n return +(((0xffcd1825) ? (-3.022314549036573e+23) : (262145.0)));\n }\n return f; })(this, {ff: String.prototype.trim}, new ArrayBuffer(4096)); testMathyFunction(mathy0, /*MARR*/['fafafa'.replace(/a/g, function(y) { return this(-3) }), 'fafafa'.replace(/a/g, function(y) { return this(-3) }), \"\" , 'fafafa'.replace(/a/g, function(y) { return this(-3) }), \"\" , \"\" , 'fafafa'.replace(/a/g, function(y) { return this(-3) }), 'fafafa'.replace(/a/g, function(y) { return this(-3) }), 'fafafa'.replace(/a/g, function(y) { return this(-3) }), \"\" , 'fafafa'.replace(/a/g, function(y) { return this(-3) })]); "); -/*FRC*/Random.twister.import_mta(2063496272,381779719,-1877629001,32909116,-1684425206,-408429474,1683923357,-2087135260,1951064418,-1730266651,-1391440484,-297602598,-1503314512,2139016721,-1725675060,1298438457,-666105249,1038086948,1633832684,-685939828,991223808,-1559172722,2094452302,417491877,-1108176165,1312128853,-712724227,-83341000,1700224696,186452820,-1260928365,644044973,-885562444,950578249,-552380561,-1944701989,2048561508,-1930551823,1865320212,-1250141528,1486872467,-2006534110,-1916678468,1441328768,-89674626,-1383087160,2022536288,848987224,-479278913,-735469098,1511090697,-2012580716,615062094,-451058434,1931172846,235021311,-585533441,1468999929,-1794287996,-462061298,863484208,1681861063,-1946328439,397565056,-1625300683,1053538959,-481565922,827617188,909346832,631923736,1767428373,683203882,1376383534,-417298059,1977210279,-1770130761,-1186883581,2135744911,275406594,938299314,-1482515046,-1550358546,-227731221,-1205174712,-1158453401,1564558337,1185868889,-1368178712,2118799503,1432624287,1342367860,1503499955,1044419593,574044829,2010335015,563285815,-1298285489,-1266980486,-951652023,910101842,-1770513430,1041891964,1562205602,-1171378286,-1067651870,2108905813,-1687434978,-1025173475,1476322433,1806120553,1218044481,459954665,-1700039017,-1766219911,1718240889,-340335635,2040629021,772369300,450181815,-1405955700,-773054336,1263803462,-1605900918,165275950,-274400584,519311991,-766039178,1326222045,-1652822801,473699174,-862186302,-668587236,-1360727714,-318010698,1400750156,264683977,1976456160,-2131126375,2014991484,-1048149994,-2145912617,2001170361,-701956044,-1642678458,-1894962594,-387875487,-2079503169,-288549659,130721405,-771572370,-1301452182,-1431665910,-192800231,1971736776,259399953,354956559,520043018,-1017561753,1471700965,2009117080,1265961161,-1843996113,818058059,-162139488,-632276923,-282687316,87046394,-1100569833,-2104601488,-1778890439,-765666154,506143440,-1919819501,2139354283,1114508034,491512841,1883450575,-1990858554,-1286307453,-1650613857,-1873037276,644195518,-560540546,560092966,1377706730,83645252,-1258019487,-484252189,1879405961,-1375254341,-1620708689,323224038,2038311450,1549925262,1669615294,-972358384,836689070,1457767036,-1902856178,545822610,-1478057048,1431108637,1127648167,-1919468435,-287584966,1265432144,-1081364223,8005768,-204496618,-535951221,490921972,-1441212200,-1965506841,822933271,616471665,-1614429320,-740700738,1991885658,-494785292,-365319322,318631215,197305943,264692037,1611741031,600239205,1387675194,1826618627,-1717877091,-78431324,1300513725,2055453171,-874596791,-1441669634,-1984313331,1382156418,551564246,-534032042,1199728804,-1761478950,-1842454481,344561696,1644275424,113159376,-1393912681,-1266705017,-1596176606,-672793390,-1038730601,-1828558359,-1047173682,1857652312,-253904503,1495314128,-1188670341,-313062557,-470669191,-2053920537,-775458133,-1992339793,-1587217045,61301753,-25637141,-824847209,-530135627,-1539882364,-977144006,1711045283,-1673590621,-800378568,-1474323996,-1702572340,1432998476,61556022,65015447,1346862969,698567003,-659358896,-1341456387,-110823798,856439954,1622183833,-480587080,1378938495,-1340962454,-755453565,-728879201,1800609388,-1178686322,944097085,-835897138,248935625,1576728369,-711183551,938739228,-19643705,1040491176,-126854171,-1959220606,-755174090,96950773,-1557394165,356658043,2032625431,479476585,-17194362,1178593500,1310281781,272753736,-392481383,-1456158287,557333246,1587771392,-409173164,-1378153780,-1413821564,625805371,-2101864601,1813589318,2059582876,-1661576545,-446303850,-21778794,-875711824,661314739,1624018316,-1520728033,-1211792455,1885998786,1108719291,1385664600,-210187213,-145704925,-174329483,-2070963131,-1194525163,-499757853,217863965,-662585513,101996808,-558079991,-884254422,-1697818620,468121834,-1248955104,1095771891,973259902,-170941878,2091533512,762505251,-1629728647,2082547544,1602075224,1365258095,161321480,662385545,-1838997921,1459820810,-1993604483,-2090815269,-1594471446,-494246996,1940977560,838843664,1541296875,596891531,244595436,-344193337,1984316821,1144152252,1377038243,-1731653340,1058497885,-336283158,-1470327124,-2132400131,1497973016,-533461880,-849511145,-872518620,1579447618,662017204,-448730184,42035184,2027482883,-88695258,305931055,-1217727763,645169647,40042119,-1042081472,1307979034,-1551303528,1139614380,-2044726239,2015516959,-1193595713,-646413277,1502249887,660551304,-270601363,-1625602025,-216972568,1448483779,-107612367,171327335,324451540,1312956215,-1331619258,1966728142,452237957,-1934870957,-284515563,1812422074,1801825037,-820983104,2121435670,1687578777,-1823230898,-445871743,516162330,-1189402543,-608405779,1171678461,-677150719,1687748111,679048153,-271747315,-1892306123,-755778121,1508375794,-1013381384,87642541,-460822271,389275749,267662307,-1929144162,330626335,372647997,864330527,1651346578,-1329104352,664631129,212254788,388187236,958651741,2000321006,839715080,-387251492,-855621951,-601191774,736465133,-819423731,-189001733,-373568948,518410267,1281591039,-1425408423,-1174520381,775016703,-27222881,240187598,1921872258,783615233,-1733278357,-1249364347,643043585,2126525134,1881687168,-252733126,1921599560,-1718123728,1762635669,-1163720733,-447932127,-1836353355,-953755562,122449490,-2041375442,680603494,-1100199420,2025995507,-83541067,479835870,-140055692,1973643785,-629727570,173103147,1489369059,53037060,313946054,-2005843654,-200905820,166105306,-1704067065,-871387854,-238542243,795393397,166445153,-986394705,1602731918,1902581209,400309333,-429749627,-137206988,-7653398,-886408930,-600266457,-2136438816,-1892019240,-1501907555,1505115636,1667910823,1730926576,-548456844,-2101119937,-1709982676,-1320331073,-2014320123,1060997569,1026704535,-1219075500,-1999411612,549497916,-193002000,1115022964,-1176994115,964715863,1887649772,-521629683,-4827364,1543638826,-719140232,2124185694,-46398839,-585705569,-245841106,751421253,221663563,2114852864,191997095,-903815092,-488160516,1957986415,970225832,-164238691,-133442982,528606724,-235989130,-190342359,523325468,1375961686,739109219,-1074112998,-610275001,64444962,-782644870,-1156493245,1204597169,-406189991,1350022603,1255978934,1780832474,1851613966,-2032112994,927631943,930756522,1399585196,-754469284,1822482071,36875129,-1633805474,-193919431,-1141308868,-1880755648,500241418,-1239673158,-2107389982,1124515479,345853045,-1026775288,-857384858,-314599049,-1120788682,-699830148,-1656353873,-291033856,1530579109,-1379009558,-1760294131,264319099,-1350482695,-1520011209,2110183515,-439486119,377233230,1424980627,23908684,1255469597,-1600537526,-214463843,1051933357,352203685,-2018637878,1825929961,829982610,-1806780496,378875211,1415599683,1185473692,306527209,-1213069701,-525957295,1041991140,1890456138,-1285395472,-99240189,-980358305,-634534846,979069362,-819736336,-1473598227,24767691,1537879185,-1542996469); -/*FRC*/Random.twister.import_mti(260); void (makeScript(14)); -/*FRC*/count=77; tryItOut("\"use strict\"; s2 += s0;"); -/*FRC*/Random.twister.import_mti(272); void (makeScript(14)); -/*FRC*/count=78; tryItOut("s0 += 'x';"); -/*FRC*/Random.twister.import_mti(281); void (makeScript(14)); -/*FRC*/count=79; tryItOut("t0.toString = Function;"); -/*FRC*/Random.twister.import_mti(295); void (makeScript(14)); -/*FRC*/count=80; tryItOut("\"use strict\"; switch((x & !window).eval(\"/*RXUB*/var r = (w) = function ([y]) { }; var s = \\\"\\\"; print(s.search(r)); print(r.lastIndex); \")) { default: case Math.max((1 for (x in [])).prototype, = Proxy.createFunction((function handlerFactory(x) {return {getOwnPropertyDescriptor: function(){}, getPropertyDescriptor: undefined, defineProperty: function(){}, getOwnPropertyNames: function() { throw 3; }, delete: function() { return true; }, fix: function() { throw 3; }, has: function() { return false; }, hasOwn: function() { return false; }, get: function(receiver, name) { var prop = x[name]; return (typeof prop) === 'function' ? prop.bind(x) : prop; }, set: function() { return true; }, iterate: function() { return (function() { throw StopIteration; }); }, enumerate: x.__defineGetter__(\"x\", /x/g ), keys: function() { return []; }, }; })((Date.prototype.setUTCHours.prototype)), Set.prototype.has, EvalError)): { void 0; selectforgc(this); } L: {new RegExp(\"(?=(?:.)|[\\ub500]|\\\\2)+?\", \"gy\"); }L:for(var [b, y] = allocationMarker() in (x = (let (x) new RegExp(\"\\\\w|\\u00cf{1,1}\\\\u00d4*{3,4}|((?!.|\\\\B))[^].|(^){2,}|\\u5801\\\\b\", \"im\")))) p2.toSource = (function(j) { if (j) { try { Array.prototype.push.apply(a1, [this.i1, g2.o1.o0, t1, e2, o0, g2.a0]); } catch(e0) { } try { for (var p in f2) { try { for (var v of p2) { for (var p in e1) { try { this.m0.__iterator__ = (function() { try { this.o2.o2 = {}; } catch(e0) { } e2.has(this.h0); return p0; }); } catch(e0) { } try { g2.v1 = t2.length; } catch(e1) { } try { e1 = new Set; } catch(e2) { } /*ADP-2*/Object.defineProperty(this.a1, undefined, { configurable: (b % 3 != 1), enumerable: (x % 41 == 3), get: (function(j) { if (j) { try { neuter(this.b1, \"change-data\"); } catch(e0) { } try { Array.prototype.push.call(a0, p2); } catch(e1) { } s1 += s0; } else { try { v0 = evaluate(\"Array.prototype.push.apply(a2, [g0.i2, v2]);\", ({ global: g2, fileName: null, lineNumber: 42, newContext: 14, isRunOnce: true, noScriptRval: false, catchTermination: false, saveFrameChain: false })); } catch(e0) { } try { v0 = evalcx(\"/* no regression tests found */\", g1); } catch(e1) { } try { a1 + ''; } catch(e2) { } a2 = arguments.callee.caller.arguments; } }), set: (function(a0, a1, a2, a3, a4, a5) { a0 = y * a2; var r0 = x - 8; var r1 = 0 * 4; var r2 = 5 * a4; var r3 = b - 2; var r4 = r2 / a1; x = r2 | 3; var r5 = a0 + a5; print(r5); var r6 = a2 / 0; var r7 = 7 | r3; print(a3); var r8 = r3 ^ 2; var r9 = r8 / 5; var r10 = a0 ^ a3; var r11 = r9 % 5; var r12 = a2 ^ a4; var r13 = r7 * x; r1 = 5 | r9; r10 = y + 1; var r14 = 6 % r13; a0 = 0 & 4; var r15 = r0 ^ 5; var r16 = 8 ^ 6; var r17 = r9 | r15; var r18 = r10 * 3; var r19 = r10 + r7; var r20 = r18 - 0; print(r7); var r21 = r18 / r20; var r22 = r9 | 7; var r23 = r0 / r14; var r24 = r10 & r22; var r25 = a1 % r19; var r26 = r5 ^ 0; var r27 = r11 & a4; b = r18 + r24; print(r19); var r28 = x / r0; r23 = r14 & r1; r5 = r6 + r16; r2 = r13 - r4; print(r9); var r29 = 4 % b; var r30 = r6 & a1; var r31 = r19 + r4; var r32 = 6 * 3; print(r30); var r33 = a5 * r2; var r34 = r2 / r1; var r35 = r21 % r18; var r36 = r6 | 0; var r37 = 2 / 4; var r38 = 8 - r14; var r39 = r0 | 2; var r40 = a4 & 1; var r41 = 6 / r3; var r42 = 2 | r17; r37 = r1 * 2; a3 = r28 ^ 7; r36 = 2 + 6; return a0; }) }); } } } catch(e0) { } try { e1.add(o1); } catch(e1) { } v0.toString = (function() { try { o1.a1.toString = (function mcc_() { var rygucy = 0; return function() { ++rygucy; f2(/*ICCD*/rygucy % 5 == 4);};})(); } catch(e0) { } selectforgc(o2); return e0; }); } } catch(e1) { } print(uneval(a1)); } else { try { ; } catch(e0) { } try { yield true; } catch(e1) { } h2.set = (function() { v1 = g1.eval(\"e2.has(({}));\"); return m0; }); } }); }"); -/*FRC*/Random.twister.import_mta(753880819,2095493107,733378296,-1189658423,14917518,-1697913217,-1465733855,357516502,-895453516,2070878127,-1757709838,-1221583562,273976399,2113852790,522182860,763066342,858451626,-1927266352,-1567057720,1410538780,769087901,2091227017,1991876320,877884412,162483622,586401991,1873704025,1285479098,101468237,768866437,303168869,-88171152,-1601277491,-945023921,2007883323,1811149253,-831249346,2144653978,1735391840,-1626208137,-448163916,31387676,-1724970748,-1183305188,-243862583,-557378255,32347343,31617887,678404837,523454476,78218784,-2056288418,1122428500,-1517042351,-927315315,611706152,-1914370844,2010801236,-955098747,1136476609,1633821714,-1445539058,1803682662,-915274476,1292367614,363349789,107842596,-1756404961,965221458,1967532139,1295399377,1339484276,1140239683,2122269127,247946673,-1912123874,1769202683,-1878945881,1119370002,1547278404,-1825386089,825909815,1965687700,1766399520,1482855218,1406350758,743116596,-1685542839,-585482153,-1518352218,1809921184,-1727141616,2012462583,1003194699,1106023253,1249180109,2111527063,-545689375,-439173407,1729574044,907027233,1909873451,177125025,496976268,-1245317762,-1793171006,1481897994,1087334321,1370936047,478943051,-658502527,-154519704,-1279000542,740246156,711785329,-1884470637,-2139016464,-469793702,682929400,-214387485,914925932,-131646944,566364373,-1176758726,339588919,2133723310,-182238581,-399926886,-1850994730,-1503850429,-639945597,1857527496,1978667149,-754055315,2002570806,-95279474,1936054922,2074639827,-55856874,1850062535,2065434911,-1670109188,836337434,-68236175,-713294550,-596876232,361657857,-1914034434,256057212,-1994207109,390336748,-1121218324,1624002068,1121402517,-1335885654,-1037751123,1808834702,780806790,-1660398289,211601181,1284146585,-1364495019,1391150001,-1178914367,-2052906884,-188645382,1962348314,864212471,436944576,-1975681796,-1826317045,-1059561063,775873687,1215569570,273783008,1591831822,-1021821510,101449487,601522410,87590959,310558062,-1064653412,830721851,1441753434,171146969,-973961710,-567498587,1971690917,-2132739440,-69712727,-2125589192,-276631576,887049144,285249631,957791704,-478564935,2112200657,582873149,1267395572,85643984,-1390795492,1629541771,-966257073,1038374948,2079351066,1349599624,1046415082,-2035473030,1357119603,566799260,-1876355037,1308892930,1331858576,-1620799862,-1540660394,-1316802641,1592064012,795722430,-1049919343,-808581471,-1258092151,353603943,1282862322,1182567189,-324654685,799432730,-86874111,464299932,942263768,-870318806,-668054011,-1968938032,1971137744,-1037533825,1614837959,416855019,-1349590691,-1676602598,-78020614,1162917391,-1881382409,2101279927,-1042284425,1838411195,508333747,-1895388530,996874189,-1756779742,2137508928,-810654288,182231741,-351643630,-1616883139,24051393,162066168,1774444108,615323641,-1883716104,1128799117,-1425450279,683963640,-419201005,-224715309,-967812669,-147536664,126536858,1921047168,-610352909,1345349336,760386481,-1334309256,638031962,-744054518,1084184969,-1191251239,-564650675,-1060727494,-1409878567,-290947969,1213938800,-1684864498,130235535,-1302672554,788277781,147037147,2060464189,827585710,-727407742,796768723,213888287,735736742,-541193435,259551878,748222414,-1091327889,-1408760762,363218374,-1937098670,-948251490,-1577210876,-1149800086,134416126,-953010829,-811203512,167606099,10480215,-410883022,1440023504,316158024,-421298134,1387599942,-1162109380,1667045245,1261987644,1796356379,84716864,-699335169,758897682,-1901526817,-205936294,2005434953,-419876424,714681677,18578791,681236435,1759471644,-190621307,376637142,-232143056,-171137458,2112349581,1651779094,1161925728,1935108893,1856393778,-364987635,411742490,1001507032,-834397206,343009840,-807477124,1139481589,1897847339,353571901,-479540943,-243255296,1478491597,-994851152,771415530,1978755540,-1381852668,-1721642346,549349035,801524451,-50773248,94321470,-1940885571,1009005409,-426255138,-371689827,599769379,-1885498829,191699078,-2077287906,-376432072,1252155752,622091289,-733025078,127118024,-1459907905,1221527021,1683944402,-1360961360,-877383389,359536385,1719260145,1057324404,-2094765252,1328124190,-403413553,-276501299,1846762938,956611503,-567335738,-317652892,1265920492,79298287,-1188728812,-1333582423,-1863621585,-1686018741,854650642,-1040787409,543348453,2063655296,-1685481712,1170107895,-568659870,-1811080073,-1309316631,1108112742,-199824422,-1500145889,-322318162,-2041203879,-2037154754,-1746695953,155500664,-2067588451,139839659,471744317,256257756,1418934516,-1204950370,1790758830,-1255562881,-711746886,2037594791,-413733841,581924420,-519834870,-1849219170,-2114727666,-1550456720,588996955,-1473338348,198201283,-1736707536,1074507848,-1895871842,138222781,-209078496,190568816,62797007,1863493016,150071823,1401678128,-914886876,-1871495188,966309327,-1291608878,662911544,56719768,1940928721,1947988048,-605993049,-1258800831,-1395491168,19842070,1989299260,1337480296,-2010719766,-1330289189,197181969,-711196102,-221331974,813442822,-1550233158,238760619,-2106593888,808308462,1431197120,-35616344,-58334286,1966906463,-682258972,-1315333987,1906209985,925565559,-673505969,1873814049,-323270887,-734907922,-511403861,-847339807,-1872446708,-1930882134,-1450099531,-608710255,-1542158763,-1716156689,-92539096,1827347915,1208920611,-520000772,1918938538,-1131719740,-385157571,422174886,-876873845,1642876893,-2090473614,-24947834,1447758408,552650821,655337188,468188775,1913076931,1309355033,1597980379,-1129370638,-1559223144,-570205575,1247832092,-1928601626,-140630340,77254033,1747110732,2093050234,-590909632,1075985140,995479087,570298358,-1197421987,-1607844280,-330775179,1586899652,1699376505,1453716398,-446538516,-1655762710,187325395,-574945628,854657812,783423175,-1986671659,40387274,1537647158,1145377123,-1126818488,-1963190246,-1256222719,-49006241,1986787696,1451751508,-1179944809,127666619,363628939,471645096,-1431451390,-1709980846,918655359,-429607597,-975184086,624908315,1229027538,242750166,-144469366,-819286903,-100012812,-978392814,1842841380,594062094,-1767719763,803533545,-2015673323,1391040287,-345821892,-537453591,-1723730538,1232795809,1758570427,1203822341,603427254,-1110002210,-80471120,-1755069907,-790351251,-1877748344,1726070048,1981137640,-1928108489,-278887805,-1310506139,-166136277,972355856,400395373,-1908423431,-764210829,755447366,-1977162542,1530486336,-1039364113,1993142401,1387333376,-1647451125,175600842,-962689148,-1726456432,-478138553,1402999858,-906353040,-894392303,-1067738967,-1710971304,-333163569,-367815214,1305030027,-1261990792,-1111831906,1390482129,-644435140,1030130582,1832443827,2103592420,374363018,-1536654262,1322643959,525056628,-1583573738,-1273463195,1158012534,-2065373527,-1534252893,-336715165,933455791,-290086275,-1881315294,1582126978,-1148258063,-285073416,-1484869147,1560385264,-893289903); -/*FRC*/Random.twister.import_mti(188); void (makeScript(14)); -/*FRC*/count=81; tryItOut("o0.toString = f2;"); -/*FRC*/Random.twister.import_mti(201); void (makeScript(14)); -/*FRC*/count=82; tryItOut("\"use strict\"; s2 += 'x';"); -/*FRC*/Random.twister.import_mti(210); void (makeScript(14)); -/*FRC*/count=83; tryItOut("M:with({x: (yield \"\u03a0\")})var vmqcba = new ArrayBuffer(24); var vmqcba_0 = new Int16Array(vmqcba); print(vmqcba_0[0]); var vmqcba_1 = new Int32Array(vmqcba); vmqcba_1[0] = -12; var vmqcba_2 = new Int8Array(vmqcba); Array.prototype.forEach.apply(a1, [f0, b1, b1, g2.e2]);e2 + '';(void schedulegc(g0));"); -/*FRC*/Random.twister.import_mti(356); void (makeScript(14)); -/*FRC*/count=84; tryItOut("/*RXUB*/var r = /(?!\\s*){8191,8191}(?=y){2}\\w?|.|\\d*?{1,1}[\\s\ub06d\\S\\D]|(?:.)\\B|(?!\\d[^\\w\u00f9\\x59-\\cM]){4,7}|((?:.))|(?!.)+?(?:\\s)*?|(\\b)+?/g; var s = \"a\"; print(r.test(s)); "); -/*FRC*/Random.twister.import_mta(1668100032,-976408674,-1142168243,1946922856,1573360456,850918836,2034635152,-710267942,2124833659,-1437047480,-2031359669,-707968077,3635928,-2073983417,-335407556,928670870,-1113544514,1741012239,-405780393,-2139753724,-319711288,-832363341,-378817535,1259593856,-1356253739,-412757673,-603837749,1631175987,1067560270,-1573838848,436110162,1939106556,-1842886291,-1603717475,993765928,-2068542310,2008396694,-2024263824,2145805737,352519299,798768183,379908283,134186513,70312498,-399260638,-1486201321,1823263221,362774775,-932792920,-1250965650,1826990555,-459392993,-434473033,692372156,-204160815,-996766918,56579918,-2146023064,1720311877,1377102483,-456672433,144293655,2040115792,-543160562,2012873248,-441186321,622594640,1051042667,1753244025,-71722967,-394267936,-216486443,1962555007,-233152088,179009052,1394159438,-1200427743,-1231765107,-208274035,-2077561127,-1927546571,-717443733,2038661201,217223143,-2031691447,1073680648,-405886168,-1377877145,1060137194,637579358,1897039035,-45384938,330734388,-1059067595,1284681903,1700955939,2031139140,-1740281503,-1957846511,770270552,-694362916,-1084456807,-1214131525,-747548483,-1608752807,832870496,582409398,194932306,-942882156,-1926753642,-570597442,-399073674,-416902128,-1574206014,-1419937190,-1287256485,11685872,1770922332,-1995473133,-1389225871,1569057369,1448168067,-1055849985,781759742,1848645784,-584065708,-1255367767,282818251,-1512790204,1476022900,1026184138,-1872354533,-1164971590,719773101,-1867251487,-1613298132,-1330637108,1451069579,-2146416026,-1091072871,497545073,-1337782986,-1291524518,1197013892,-1527916136,1217248953,-1137254334,1964826228,-405447148,-1563388367,-748864015,1982474791,368308619,-926975414,478284568,1702304457,-652701337,475765606,1846336871,1747839457,1984035354,282983049,1944152882,1617210659,888838158,754002009,-358068014,921338418,1196876638,1218268910,1407855612,-820398844,-164902281,-279824469,92195717,-1797405106,-160068145,40822008,2015161461,-8408684,571291972,832157319,1741272470,-1326614782,-2035528150,880737267,1890582431,-1261667673,1778558757,-9550443,1118032937,-985369731,-923470237,724433284,-411656401,18880839,-606113421,1494875045,-1027345182,-940490559,-1616963118,553518386,1317879387,76097384,1580597223,1408886539,2096461645,-971982700,489691100,1177137863,-1185946434,-1902714920,-912981728,-678708648,-1435803052,1360664732,1960891794,1107848282,104538868,-1583586331,-1731848971,793841403,-1557180126,1818170251,909087622,1662388749,1727936304,1887552271,1014065158,1098158134,2036936769,1949297872,-870567337,-75623973,2060671142,-1902801559,-35627577,147053130,-2115284311,-482555160,1298703485,610869810,1662248430,982643495,1779119979,-818257462,-1866948406,135770068,622560113,-2126313239,-1247009490,-731840524,1055529120,-1695012983,930163942,1906810087,1442680855,454726067,1672843249,723148902,654272215,-921456289,-950824095,-519234501,231245434,890378895,1707300512,-13226532,-1323297382,119950067,942492239,550992736,-1862966754,1798102583,261248105,-1253495399,209448518,1860025689,-590121031,185643228,-1848322807,-1882430993,1799126369,1726073917,-917577055,1942376994,-134320055,-695135765,-938679116,161837630,-1623754521,-1698715439,-1852193558,-1008012635,-1195665854,-173062681,-513954445,1592023866,-1523353802,-148907764,-1701919600,629362536,-592646663,-490729873,692113865,-1998792538,764808364,-1540198126,-1446383656,770637925,1365812394,809975153,132046925,-305136260,1034432596,-372519941,-1025500797,-384296589,-1417264621,1711377422,-1185517652,753078288,-1967695084,1185935542,2057521637,2066382063,-1046874993,465905243,-463901029,-65391720,803606342,1884291088,327858529,-203843102,-992199640,-774271707,1309822159,1937252696,-22724246,-1118408373,958739492,189406370,1522522271,116028906,895717805,-624250490,-1428138177,-698932354,-1191741659,426604626,275634937,374659536,946593447,1047653679,1049808094,1687680774,-1054235851,-1593150944,724167923,1414349318,-1792120080,1256463540,-857163007,1870212646,2021414519,-997281887,1271962574,-1603411588,-908223536,-767278003,-1181498682,-2142170375,13043004,-1738299645,280088881,-2047784565,1021931479,9079283,1618618571,1085821510,429157575,541704077,1589677607,788074387,2109699856,379040740,974547776,154828297,-302307905,445179065,1975897956,-676107965,1672361456,-1272733623,1947472839,1932312957,1977223331,-2061921608,-1627950747,1295533842,-616373669,-2144190114,-868485911,1025718576,2049071168,1426306310,-436836793,-1672904506,2044862546,-1240761522,2164548,195473891,-1655029887,402748043,1681168278,2108821192,-1299161399,1270085022,-1543445404,1377315380,1005989374,-650735968,23359818,-1909182041,-1724539466,-91075648,1020520388,1112924266,-1495672341,1709425341,512284872,-1703797227,1057646826,1950428960,-777502214,366456919,1994293767,-2016350276,-717139515,-1821169591,-1791649663,-808945320,1434517622,129332590,-1642274646,999421551,921791000,542189528,1013128499,402819708,1956696678,619442810,1979358796,-1308635067,-696609058,1411631919,-1797164664,881873920,-389787604,669280452,1715352570,1938023401,1332550659,-7535055,1057056732,1009137203,1098506794,-585950853,40039940,-101163552,1369740314,1394656074,16975711,-462627385,1455645693,1904968494,168470741,-1214633563,-977269759,-1711592291,-339954218,1069430740,1742862321,128039861,383539107,-598065213,1835336091,-1107062000,-691252881,1566918041,-786573400,-1295323678,-497631480,1556147514,635542465,1184983012,-1041128025,1601926635,1041284609,-1884399823,-828311589,1728551664,1378677390,-2004332863,-665849329,-1097430324,1612881206,1047861612,-1008972180,-959995682,-769104788,464687951,243494871,-58051714,-1822281218,-2075669255,-1254588828,-956788683,-912165179,-872756876,1920125945,303686062,1873329319,743441004,300765837,2096739719,1768893000,-1120934150,-1323515707,-338549762,-877413607,-888258607,-432798824,-2033948525,-528964812,-1663838362,1048882875,-1622061704,963287362,516631864,-1294737901,1168114802,452716163,-312975691,-343658287,2040213355,-1242507098,-1101164024,-453920204,1578591978,-389930152,140586746,1966634523,-107782931,-1365057164,-444314666,366017777,740924679,130955201,1729407457,-422968377,-630506784,1370611516,-1276832646,1839810437,159611485,-2094898830,-1684804982,-1227355424,-1132034119,2012100415,-1871046347,-133358858,-1018223051,-838966798,-2142088435,-1190552116,-590231120,-172945037,-337540412,-1456742339,-119233957,-243734908,1544385305,-960545241,-2118024454,-1664489762,511872531,2102703410,-1918267472,395367544,-1276666351,-426679312,-1988444155,-30688550,-1883955653,-30079676,-247531012,98137500,518525558,174584440,1658237431,-1198665875,1045180940,1129294908,1226509877,1377902358,1506865104,-1542915023,-1925259893,1303199869,2046593313,410193296,155281509,-1201636811,-366866338,-579170803,-83100753,1329209328,-1868403568,-1645726354,-1311362026,957261455,1147969347); -/*FRC*/Random.twister.import_mti(406); void (makeScript(14)); -/*FRC*/count=85; tryItOut("(x);"); -/*FRC*/Random.twister.import_mti(433); void (makeScript(14)); -/*FRC*/count=86; tryItOut("v2 = Array.prototype.some.call(a1, (function(j) { f0(j); }), i2, g2);"); -/*FRC*/Random.twister.import_mti(463); void (makeScript(14)); -/*FRC*/count=87; tryItOut("mathy4 = (function(x, y) { return (mathy1(Math.fround(( + (Math.max(Math.min(x, 0x07fffffff), 0x0ffffffff) >>> 0))), mathy3((( - (x | 0)) == (y | 0)), ( + Math.exp(Math.log1p(-0x080000000))))) | 0); }); testMathyFunction(mathy4, [Math.PI, -0x100000000, 1, 0x100000001, Number.MIN_VALUE, 0x100000001, -Number.MIN_VALUE, -0x080000000, 0x0ffffffff, -0x080000001, Number.MAX_VALUE, 0/0, -0x07fffffff, 0x080000001, -0x0ffffffff, 0, -Number.MAX_VALUE, 42, 0x100000000, 0x080000000, 1/0, -1/0, 0x07fffffff, -0]); "); -/*FRC*/Random.twister.import_mti(624); void (makeScript(14)); -/*FRC*/count=88; tryItOut("a2.shift();"); -/*FRC*/Random.twister.import_mta(-1476459145,1510617884,926781606,-173986817,-1721122940,-258409439,402009309,-1669736158,1076856738,1066082877,1873252800,972660030,758319282,1981811802,1342931880,-2088080418,-219472685,-824966302,1032386378,-991390419,-1249192168,1237159611,932305524,-1251342389,864868052,-160574224,1738564577,-2031793391,-343221312,1881974381,2074072340,918719874,-1394611924,1125453276,-1742186408,1154527521,2012035224,928236529,-2040626487,-132633405,361375550,1337336338,-1855235760,-1590920560,91612812,-1159736237,-1804466742,-1171277186,1629885912,-645198294,-1961456888,-697919945,1285614370,-733871407,1184937959,877999595,-1309346575,1010226723,-467595591,1066015984,-371967148,-737638140,137653059,499331818,-665759551,501422379,2044159835,-1840650305,-1728951560,893786970,1033371470,-518562332,-1057657548,351350548,2058114285,-2077048560,640552414,-1241436700,-1432992611,-711990128,1141690319,537492726,109763505,1908894125,1614921552,1409720933,-934892839,1229218774,-816158740,-857410791,-2136592741,-1625875211,-469630500,777797408,426974892,-555818070,-907351723,-112199146,274060616,-356529207,-1713535624,-53942397,2132692912,128350120,1070978752,1131912405,-1924695576,-72772795,-134052985,249311977,1248745047,-1336998812,-1747819969,-2021205695,-619110211,1322928175,-934468656,250429096,1272344606,1123171223,1960347051,1881229029,-1665756405,1164625845,1015942916,-1405730388,-46855722,50790703,386178237,2012873645,739526568,-329566184,665452023,1524698038,-2065318713,-1100216066,1962020873,-529496569,1520476661,-379590180,-2022650909,1625877103,2103922938,-1599786273,-1192334351,81827490,-1747570289,-663838757,-1308896084,1163327105,1547712452,1996550702,2051595215,-1501354284,-1546513599,-1061384585,-1212247714,11288344,1218056185,787481084,-1118842724,1044283992,-835825745,-55095360,1427840531,1692792661,-393194141,1308767786,768466218,-1428720500,-1138806776,1422221060,1378299059,-1403395550,-1709901294,440364238,-2106043319,1761126167,-1074951225,-401669778,1561698860,-967455816,-208195259,-360855768,1003712381,1344776596,-547094891,716627306,662573295,1687206933,-1524103310,-2144960804,-666930318,-1121768656,1786716781,1383492502,2097057032,-548781909,1967459972,-1308980819,-1589511323,-1147708818,481067458,-1133134508,-769461587,536855572,491023942,232237010,-217618551,1317465417,513507388,-1060995935,-419757913,412676439,292652399,570648409,675634760,-1149375665,1675923827,135345320,900451341,1588442977,2139444618,-2030043987,425034191,175226135,-450572773,-1178095244,2058386183,-1836992423,-810099305,644814448,338641939,1788838030,37465929,-1479075426,2078986008,-161839029,1214773322,-762320301,1679072579,1635938655,130687634,1592145849,-381078649,1976870703,-2132589881,1041213055,-803948016,1833421027,-547719119,1828313732,1645836267,1008268690,658388413,1484563220,-458662293,-749886925,592428465,648604312,-23829076,1653154103,-1386311709,822705061,-1261273495,-1262540391,-947701203,1293561331,-1792165964,343231656,-1320696032,219109251,1447103383,179543841,964926573,656139003,2012045401,1014464523,-1813066151,-582864519,179077881,-1439286904,-1641192662,207304062,1171652402,1188464194,-842390310,-1915598578,-1864749029,-1633196049,-913025443,-1868713292,-450965338,629845114,1905718675,1901341854,1513371335,789464277,-1701269150,-1917710468,1177585824,-839740722,1817868024,-343484955,-1301331529,-60996917,-946414567,283654179,-269071333,775850468,-252950582,-89751639,1658936539,-1768770829,-458672396,925031410,559959935,1282260813,-333980942,-123128310,2016261928,472429350,-1115087887,1840512376,1574073534,-1450074160,1045817403,855212778,-2100953521,686639123,1066301344,-1357366609,2056998948,-282499076,172877064,100865343,929047109,1966929634,2011991070,-884934611,-2111580400,1867414573,1303343834,1274305497,596141675,-2018579618,702130728,-1314156826,1016593100,227069608,1312861021,-1179430776,705038308,-495161415,827128492,-1365705224,662649533,-527957746,-964847333,759089295,1066599916,999903640,-909074451,-775648275,1530880264,1061743634,-110552734,-476183029,-1866303338,565096857,2038762364,-124917393,-1847986692,1183214024,1134463937,1988613016,-602209625,-176843906,1465703181,-276144781,800016845,364569741,1321777505,-1990120746,199747306,1435581017,-1285190105,314241692,-361611045,-187914211,1315326910,617350379,-402876498,194178143,-291707317,-1909954140,-1470382640,1785477221,844725389,-426840767,-331300211,1694609593,1152315478,-1083606935,1115258260,337512507,-1507081971,568635909,-581929441,-1282952473,1990602502,-1401503646,-2060476402,-310790818,342874638,-1489072300,21579482,-1222085312,-383095866,-976984691,-1850184608,718084808,-865811558,811877331,-1576835765,724368742,-1865385576,723887951,1349389295,334032294,675545729,-1918384424,635392900,898649787,-566964442,1365284437,1299094167,-315385855,275994714,896105528,2138885627,2075198804,567926254,659238429,2143133863,2023498879,406431556,-1298992565,1387065951,1171602617,-1802893936,598265577,-1954093590,-1910930060,1256121404,1891681219,-926313895,-69929599,1973232146,657481198,-900283995,-1132097129,18426457,610958582,1900094349,1759185247,1695471153,623240769,1568563119,1863870623,2004243996,1891631351,-555058925,1921663974,113928168,1276731045,-276665106,615698158,-1190331371,398929152,1674047096,-1916371302,-1029386735,1993327973,1684540685,-856322653,967385872,217775556,-1791806684,-2049940425,1751911764,-973528595,-622895356,1283147538,1850383873,752735672,-490715518,927410431,-1815032636,-1474707291,2033209945,278258986,-1168673468,-2101204607,1664927085,-469794622,-1032274481,725788111,-917116441,-147238628,-661992442,-610469882,2022940669,-2072298459,1459167149,-901378263,1691590442,877420000,-178203122,86967685,747003053,-548791521,1736191400,-875942050,-2005258551,-1372642234,-1826227199,-2018093027,-1206156495,-1869931605,386497234,-1049280389,641189469,-1213559421,1585566608,700230553,563490648,-1403450517,-171710155,-494927091,-196955958,1893496170,-1736031113,-844437560,-1448568793,-152062303,-1484259570,173369906,1931673683,-1981281699,696478213,-28901524,206602617,1761908865,1077651201,1361391848,-1477364145,-1520313185,94035584,-789126888,-2112030068,1653934742,535928578,-658755240,-386532589,1987951783,-2037838488,-649080224,-1476030674,-1353655910,-624826468,1603201808,2130823323,1327930065,1753880511,1611871274,1675635312,-1383034053,-867985942,-409254107,117870155,1240500718,1503065259,-1658317455,-1603747725,-2011600268,-76071079,20537205,1028494912,-2112293423,1363145786,678940912,-486720305,-2038643697,1028405705,-270992844,1496436071,996782514,-134619052,-1796600640,-286948884,-959390552,698469022,-37956423,1223730363,2118931590,-1016976741,-1532786934,-903005545,-1323914880,748150425,132014114,-935772492,912065506,1739324083,499627778,272753941,704332870,748499619,-1459057383,1400501844,722666963,890672858,581734324); -/*FRC*/Random.twister.import_mti(12); void (makeScript(14)); -/*FRC*/count=89; tryItOut("m1 = g2.objectEmulatingUndefined();"); -/*FRC*/Random.twister.import_mti(24); void (makeScript(14)); -/*FRC*/count=90; tryItOut("\"use asm\"; function shapeyConstructor(hlqplw){this[new String(\"0\")] = false;{ } this[\"__proto__\"] = decodeURIComponent;for (var ytqjyvoku in this) { }if (hlqplw) delete this[new String(\"0\")];delete this[\"__proto__\"];return this; }/*tLoopC*/for (let y of []) { try{let ridevm = new shapeyConstructor(y); print('EETT'); print(\"\\uCD37\");}catch(e){print('TTEE ' + e); } }/*MXX1*/o1 = g1.Object.getOwnPropertyNames;"); -/*FRC*/Random.twister.import_mti(159); void (makeScript(14)); -/*FRC*/count=91; tryItOut("g1.v0 = evaluate(\"mathy3 = (function(x, y) { return Math.max(Math.tan(( + (( + Math.imul(Math.imul(Math.sign(Math.hypot(x, y)), y), ((Number.MIN_VALUE ? (x >>> 0) : y) != y))) ? Math.asinh(Math.fround(( ~ (y ^ Math.fround(Math.atanh(Number.MAX_VALUE)))))) : ( + (( - ((Math.fround(y) < Math.fround((( + (1 | 0)) | 0))) >>> 0)) >>> 0))))), ( - Math.fround(Math.min(((y != 0x100000000) | 0), ( + Math.ceil(( + (x !== x)))))))); }); \", ({ global: g2.g1, fileName: 'evaluate.js', lineNumber: 42, newContext: (x % 5 == 0), isRunOnce: false, noScriptRval: (x % 4 != 3), catchTermination: (x % 5 == 4), saveFrameChain: false }));"); -/*FRC*/Random.twister.import_mti(514); void (makeScript(14)); -/*FRC*/count=92; tryItOut("let (kewlld, x = (4277), x, fzzwyp, d, b, w) { for (var v of this.i1) { try { b0 = new ArrayBuffer(0); } catch(e0) { } try { s0 += s2; } catch(e1) { } s1.__iterator__ = f0; } }"); -/*FRC*/Random.twister.import_mti(623); void (makeScript(14)); -/*FRC*/count=93; tryItOut("this.m2.set((/*RXUE*/new RegExp(\"($^.[\\\\cA\\\\S]+?+)|(?=(\\\\d))[^Z-\\\\u4FcE\\u88b3\\u4181-\\u253c]\\\\b{3}+?*|[\\\\u97e7-\\\\u0030\\\\D]*?|\\\\b\\\\3\\\\b$*?\", \"im\").exec(\"\")) >>> undefined, b2);"); -/*FRC*/Random.twister.import_mta(669690132,166902584,-551139478,1046564141,-488620304,958633207,189868210,1947878076,1342001389,-1709429514,486409236,-1476391330,-2035858341,1510843138,1373487743,93457209,2115630793,-1368804064,1312502119,-687339743,214832774,1351415396,-1335208452,-1600937745,-1389881997,146260031,1244914293,-295075936,818609016,69309365,1838540494,-1989483582,-1931819908,-1169912675,-724275068,-1084496399,793530194,-1694894849,2087562221,1187697374,428924881,135468223,1158617175,-1089207926,1942180604,1805176784,-1969044500,3895680,990547860,-1434366418,1971692862,-1815875486,1314108934,-951413895,1859304971,-49959697,-1295254512,-1931793525,-1543842056,-1903741900,-582298424,-920514363,545925664,1119645094,1668592435,-1489997834,1440837545,-311249226,-303302468,2077269453,-950583825,-1955942655,1477363760,1723018679,432697675,-2000998440,581580577,395814638,550418894,567719314,707572756,1879230785,1621120936,-1610302292,1013259047,-1976063665,1315400495,1583242239,972577276,-1084131821,-1256419682,-755509647,-637991570,-1158703038,548554859,-1443474568,-600089988,1331513488,881538040,1324008303,-1651591601,1276639068,-129706508,2059698766,-956680813,1572941816,-1476040044,644692598,-1656036777,1722924468,1387868824,468782006,-1357703827,349334343,-1866540950,710643836,825722796,1552797531,795270465,496494179,2089942253,-47866669,-1189282601,512255371,-1546132972,-1439746198,621245628,-795838375,819527521,1567520067,-792747328,-884692687,747344527,1596356592,-2061531023,-2004546608,651483093,-1072554960,1493569399,-85694440,1911413306,-770140899,377073736,-1744176509,287672078,-1062720503,867311312,1219197704,-864639682,706751591,2027402509,620405930,-326956627,1654586292,-967856187,1719913351,821571077,66954342,779226093,-1685954505,-145629387,-1438195587,-1297947227,-275957987,1251754758,1437185473,-693986593,36093137,-2011469588,1506947370,-626200307,-785375756,1607081341,-196719753,-438849617,1348535939,-1675783987,672449455,1404182667,1362051359,-2022582390,-422753807,178789679,535726117,-1880573535,902348619,-1339030778,-2029682698,1829939342,-2110029007,1052299425,216756705,-1681937532,-1097800479,-1438456066,988879747,1857030669,-1799964653,-9224398,-1594504889,709943594,1969073040,-937259888,-408085312,1414476019,540284313,2052070401,626957726,1046782722,-775226730,126716325,-740392739,468149641,-1314044642,78604867,-994286234,-2072585348,340475947,-1072843030,196732495,1008636493,1847729583,77724544,1608769181,-322286915,1498035284,110133039,-500828707,-851935011,1070546062,1976335229,-211192416,-192193047,328446455,1133077895,-1894048071,797006966,557670348,-1714771196,-1122863350,220647776,-1589516163,-817531617,-206182553,1979496367,16422460,-1502467900,40566703,1759697756,-278191912,-60007134,-244315827,-2114220382,-288915910,131518413,504496658,-1587747666,-1640525045,-1342255347,870085591,1610371230,571351353,2088443157,753811989,-38831506,1081785466,653654967,1894708866,918373839,-316458407,-638896943,1209762526,-1923434006,1367312071,-497020781,1447708313,-1029037808,-1926790601,1603960555,1941393210,-259737134,150889714,1375554721,-1818413985,-936688544,-1096842430,2010449923,-501184790,-483672208,2065050112,1313181537,1483410616,-302869242,1462265846,-297279215,239474162,933336524,1672575605,828260988,1659243225,-1111379735,-1873177732,-1671312048,-311069281,966336497,1110880834,-167971218,1342408420,1999621175,-1569277926,1381420177,1250064933,-97837387,1112359598,1128641079,-820601634,-1990696673,1638361638,478885559,898717817,357178898,-1857598894,-1494445221,1550300933,-184444305,-1238720126,-1279090244,-1927394902,-820402221,358838131,-1988514985,-2092300108,207453892,1058266451,972947004,-14267150,1660423501,1094148335,-192411620,-1908169654,-867323575,-1600318983,-692866834,-1872912779,-689388528,-1713424201,-519008471,250239213,1148204532,924333501,-1985361591,-79694540,-807631286,601433062,-207182786,1785532616,-1582294595,1461657305,-1705138318,1683246302,-1744889159,104955257,672095330,1013609739,-1866336813,1358343073,-62516868,-374161848,1620865603,-2058831787,2082547774,-1128375404,1502210612,-810425391,361749841,753959752,1268370265,-1656871852,247587373,1288712579,-416794344,920170820,1356034491,-1901101006,546178955,-813733739,1772967528,1110227270,394354993,-807838115,-1836731897,1034166984,-1000541755,-903804299,-1061953526,189777139,-648136632,1519187513,-1172676227,1642849398,-333096487,1276882997,-388049413,2074921778,655372749,-1460496119,-1800761509,677154120,-1841950616,-112273027,-681804181,438942134,-303938315,1972939873,-1225004016,1411984302,-656135731,736396881,-540448254,1988114176,-315644262,1033249695,-1080721373,663513617,1050448308,-781005173,305376590,1920797209,-1347933515,1564338635,-900901008,-1624885965,-753265369,-1346829580,-1551230219,263972911,-80533438,-2081201287,-223552714,-1030733189,-30374963,-151223876,-828180883,141933497,513982289,-907867151,-1521703428,-1320617504,851410179,-1163205700,1184092708,-2146825372,349841116,-1095732940,-531356366,-494178584,994688817,-1364858231,1710843433,1518774525,-23360876,-1542951586,-970854210,-860965170,-802072280,1959108478,-579040289,223338826,201349112,354833259,623325410,1271108870,1334421661,1367521336,-836354718,-525798144,732267081,-983405649,-1244008723,-1831932090,-283756223,106325577,-61075317,1536731314,67087882,-1974182733,-1986656075,-1749758465,-1362136111,1000949050,1509660819,821007844,-227285795,234727344,-1742176594,692487919,33237862,10393875,-1744589094,-1229650363,-2076762435,-1257827504,-699836801,1802903233,1235210786,-174653058,276993040,-1165703362,-1040663083,1391075889,425980767,1481182258,1137211811,1234853710,1031177181,-1003419715,-1529172100,-159693705,-1109799768,-60378786,742286531,1720225214,1517919166,-1990990845,1980934751,2131481014,-1551581108,236303154,-452944096,-1805506647,-559206906,1459183073,1466879274,-1103792188,1648967618,2005980148,-2007218859,1294488799,-662894646,789054666,1153606237,758440461,521545626,1465283339,1173733762,1768569890,-910844651,1830384229,-547456422,-160961373,1789104786,-2138012160,-251055480,446926677,-1728666701,701224980,-1725799852,1861827080,-428012752,-59974270,921812363,809645600,-1410087684,397052658,320565698,765656878,471516793,-1508971010,-1508990579,498608824,578006501,-1698135713,2042626241,-593781834,1684665969,-87695246,1392814450,-1293787918,-829285911,1633396174,1072075257,39228853,1413912338,1063792606,2079229350,1048974940,1675163423,-903044556,1750648224,-2103902228,854573193,-1391889060,-1545999947,-1592633707,1260777740,97143214,193448029,-1120699981,714925941,-249816285,-2133664600,-1035426154,-1295068033,-323253863,1686857668,-723847753,-762568857,249254356,2028384467,-1099111600,586572200,-1218292671,991735086,1174093096,1724731072,2033222067,-1258163870,809762027,1044528787,1407790298,49254326,177053500,-2059044615,-1968476990); -/*FRC*/Random.twister.import_mti(578); void (makeScript(14)); -/*FRC*/count=94; tryItOut("return;for(let d in /*FARR*/[...[]]) ( /x/ );"); -/*FRC*/Random.twister.import_mti(621); void (makeScript(14)); -/*FRC*/count=95; tryItOut("try { } catch(y if (function(){print(x);})()) { print(29); } catch(eval if (function(){return /x/ ;})()) { (\"\\uC714\"); } catch(window if '' ) { this; } catch(x if (function(){(window);})()) { (-24); } "); -/*FRC*/Random.twister.import_mta(1584769957,-1786166584,-1479282113,-581613919,-1987917167,-311017054,1101130348,-1712969372,-1510174862,-623538863,1012697703,1215103642,-1807218436,1723477899,-2115498763,1273368398,1655469809,1223607420,-425355039,-1635573106,61013347,-939769604,-1077848152,582163708,-523930785,59032006,280548801,1727654920,1248507790,620322345,1992850424,-372946805,-1726537894,-1608028366,1501787924,-2068041074,1003309140,1152679900,752779584,1861482357,519199225,1227089858,-585481538,-2016335181,-1020205484,-873228389,1214776185,52951195,-593253146,-544311453,-1196883503,1435936256,465631,-1460519426,662728140,1304418516,1641370670,-1314304434,-1513556750,1441584469,1396462132,901542713,2077793838,1445553106,-1215276379,903477173,-99095147,-1497062026,-1876598457,1742710263,-772667883,1611084768,-1082690193,-1328891752,1335755498,-2016148526,1514761039,-566140539,-263999543,1051973699,1684783056,-2054568647,-2100514544,673973261,-1706753487,40310211,-306236014,520323828,216815461,-753381382,1741133336,-1036783258,1725860123,-1867903879,605338712,-1670493725,1783825400,-2106726574,-1757718649,-1774927714,1721066173,-1541290976,-875083934,1044559019,-605584212,-1035214027,943752186,-567143466,-2033197148,970853724,-1216593179,1333364668,-2121554099,289185642,224707596,1532213877,-19658692,-1278386782,1408386131,60482005,1373715137,2019492380,707408708,1037407689,866063883,150610400,940796144,-1216977616,-927704120,-1948577492,-222341259,709748408,-1141826479,1160534753,314300425,-1660152289,-1640203812,-1748858714,1256384504,-257251256,-47403378,-1824399378,-1174124204,206594522,-1805105962,1187981554,1929629327,1674482461,-1519215922,1826027340,2137268272,1880575571,-2027384455,-796068433,1792660252,1887278421,459103590,382146202,-1123919664,2072132881,-1563231511,639945021,312669907,1405066248,-2086773729,430586188,-810458043,387368372,1095493563,-1471934944,-828972284,1357062124,-1097613348,-913257747,1810936513,-288982920,295258814,-726116629,1264250914,1354515127,1485588693,315533217,-140226301,-1592099338,-1044743473,1281267345,2095747109,224907745,-1500289253,-1517539440,1431415323,1703350370,1155022147,1741599734,1769556034,227105900,843168323,882667157,-860348974,1588574408,-2019709829,244162877,-2100652733,1946022926,1264196741,384723616,-32192682,2075735621,-62945028,138570602,-1103322779,-1407339832,-1498791457,-106339242,-1791203598,2032648336,-1764348446,1187747253,-1511734709,839256219,-1638251805,1007862611,-451906741,-1383982537,1713931542,520484785,582035187,-1579066604,-898704241,71139166,-454951823,1792005306,1035413894,-110237584,123934439,-230940343,-901045577,817487845,384055583,-757374900,-284005526,2135033509,-1422635998,-2124767751,1217630050,-174289789,1186917766,936612045,-263597936,-1040746183,-1023170427,-1606896626,1961328347,-900005128,1777396993,1522845145,-219535501,-1203786591,690209215,-1226229995,673763185,-21608127,197370715,85652835,612966881,-1498624956,1451527220,-1666954303,-423966159,686254089,-472060964,-979518815,977593383,-531579921,-250975480,-34161554,1377959,1315737211,1816986013,944064054,-326299769,-1770620093,-579210716,96531998,-286879761,1193984044,1694275104,581537164,1211590201,-973936319,2048714126,-2123821018,1582154830,1413262786,-504909937,-1946834015,-821057518,-916642005,-931363245,949951940,-119115482,28238914,1751517634,-1618127768,-10864476,-893528834,1454512945,-957028076,-1800234700,1928292231,-1805284928,1045970356,1665250452,1427463254,948489371,-783755467,-1546913047,-259342948,1106505093,1820034578,-1744197296,-295025366,1800741566,-908362224,-646400109,-824572071,-792992693,-1743715957,2006500166,1449337366,2145890545,-1647756338,1154137411,616463588,-509528657,1857776093,-2142433804,-1925691669,140006809,2124795702,-663050423,1715281019,-1971993200,-1784649164,1714057510,-1166888168,-572031620,1943609403,-86267875,-1208588481,1078619987,1416713518,1494659091,29375215,-1035932332,1097131977,2036084383,-7240500,1483194583,688267730,-1627106174,113014328,439458885,257176554,1722903977,1958866758,-2072774804,342501232,149762843,-1005265589,302992400,-122900020,-132159035,-1597206280,1974915769,431411133,1649010022,-1593024007,-814225843,-1262711307,-1948209907,-608642274,1999263052,-770511236,-1469050353,-908790812,1519673778,807074478,-1732192564,-1024942321,225283436,951620642,-441316183,-1343712192,-877029614,1843723167,1544209891,1251173221,538373591,294233071,915776040,-963155741,-1827660319,-1692802425,1506388656,-1744369840,76678163,1368867041,-144606272,84074217,-334585555,1849944170,-1348833154,1737975341,1735607350,334086946,1769397351,2058690330,516361186,1917840910,-1609755930,-272942964,-951592517,756019865,-2060601073,-2052994187,-23491301,155257342,-115612409,-1477689605,-1520017848,-1142970679,1093856218,920222451,-1519619443,-1046078243,-793548279,-949302018,1415389994,1085976806,-2099829624,1801825563,-1542083181,9421461,-80568174,-146632523,1789031531,1577929917,558346893,-2040948135,-1383653499,742758008,6147883,1385903210,-794497952,247641032,-1972946235,253099962,-561762277,49999052,-1419125025,1685319352,-1804895698,-1571582429,1255870554,-1588409297,-1803775767,-384679786,-321282097,-1180183469,-1531226246,-161485837,-581054305,1638789943,1200089677,1016308075,2051996721,15200044,-379599955,-1704668508,276332803,-824814181,923308416,-216665994,605893159,-186616518,1681645877,-431503802,-1553798180,-1103700019,493698961,-2068290736,-531488868,1519432547,1359984745,-431530110,-1314876321,-270713679,131041628,-514335834,-1160564153,52850920,289735633,618327990,1957105348,604785557,621225385,360309170,1712052868,1220590420,702836743,1443496929,1676144523,-481335535,-1715880307,442118535,667417509,619709402,-10860407,-1856354576,1735977757,-858037680,374663551,755912162,-153563152,-641800587,2140521565,-899268938,-761837751,120823489,1845054023,-722641359,-710447332,664175824,-46366482,160697153,-1921778377,-1201993179,1776041937,-668445339,-628646513,923000662,1676369519,-2127488472,-1002462323,-64908336,-2080403457,-1213819779,206635940,503639031,-913097456,-1577308457,444821548,1170736461,-856363647,2064249452,555728658,1289303401,-469805809,-2034576551,1017079796,-195504175,627977380,-1983859435,-1679214212,-1621260678,1839380937,309675856,685836583,38052797,30186052,-2084388455,-1807778109,920336027,1320931330,-1822819164,-1366865594,-1106521224,618432457,-538097616,-1713127190,-396122403,1590751270,1152085068,-523071518,-259847289,202404040,-349686190,133171662,-632369954,433097028,-1370150484,-1119849261,-505344022,378471335,-1809422358,1132843341,-565604491,1495927938,-1200224367,-1041710157,-1244067751,-152847442,269244036,308915197,1060722977,-204397281,781927867,-997807434,642868632,1353413763,-167885672,-349606544,1777518290,-1786115416,-2109723011,63033765,-1958468870,290193999,-456799374,-1431413794,1343462321,682708478,-1439129362); -/*FRC*/Random.twister.import_mti(283); void (makeScript(14)); -/*FRC*/count=96; tryItOut("print( /x/g );\ng0.v1 = g1.t0.BYTES_PER_ELEMENT;\nfunction \u3056(c, window) { yield (Promise.reject).call((a => \"use asm\"; var tan = stdlib.Math.tan;\n var atan2 = stdlib.Math.atan2;\n var pow = stdlib.Math.pow;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n var d3 = 33.0;\n return (((-0x76c2b9b)*-0x32dfe))|0;\n (Float64ArrayView[0]) = ((+tan(((-2199023255553.0)))));\n return ((0x6f6c7*((0x28858e28) ? (i2) : ((d1) == (-((+atan2(((+pow(((281474976710657.0)), ((-147573952589676410000.0))))), ((d1))))))))))|0;\n }\n return f;)(Math.pow(yield ({x: \"\" }).valueOf(\"number\"), (/*FARR*/[, ...[]])), \"\\uDA9F\".valueOf(\"number\")), (4277), ([] = x + \"\" ).watch((4277), Proxy)) } { void 0; gcPreserveCode(); }"); -/*FRC*/Random.twister.import_mta(1079493121,-352869353,-433344416,-346261569,-1339275214,-205461289,-1746209227,188214537,1818587431,-1011551745,1973535148,-45776962,-279479821,1978800008,196145101,130350041,1138754579,-852936551,1554535013,-1313926647,1498103652,1093115958,588669040,157752214,-1367779217,1444086660,510854301,-1608981816,248894654,-973229849,-1532289692,-1248826710,-134248094,-911743550,-1182679154,483676144,344147229,-1291636179,1876383672,1187182122,-470073569,2060452469,-1705339552,-481339486,-1751853559,1495866608,-1743483385,-714901791,26024923,-1342290852,885399485,-1202942147,-1843362650,-28890781,177895954,817325372,1246729037,-2109696487,-46372419,-1543957537,-1933347079,-479690996,703487269,698958674,-1483233859,812137531,-248390504,-1681846234,1270197771,630006588,-1726883482,1785370023,-507344865,-1015785969,-172627430,695326183,-679087318,-1498509962,-87884395,1216029657,-1691632273,-1472619739,1467637885,-2074955580,384659365,30870345,-1131138804,-1151096502,-580103481,400042553,-950124811,1225072526,795568430,1332175293,327677822,-1787060640,1537622218,-2087017611,-1386397747,1541576158,-36839775,1646537453,662581548,-1759449071,-83152467,1298481708,197387869,935387414,2028162363,-1481526268,1925522028,-3753475,6223073,794169857,-492081660,1552804757,-1163277888,1766337659,-2103447118,-1774201318,417301204,-363900629,381172939,-406859577,-928615776,173890823,917864314,-1836916204,-1672253725,-1614618824,-1623142934,1449621950,-55770258,-39053668,1130620385,-1699130382,1819787395,-1739721966,834756453,-203052432,-235149870,886971259,-1644141176,-793526300,1415858991,-1016985097,702473081,-695800086,-1974802314,-1135763481,379945867,-1764885561,-280354305,-1124084578,13259938,388882079,1319865856,-764034583,-1614783429,-1451330887,-2033983192,1940299449,-1352327843,-1537672924,-1198666889,-1682035111,-1035216945,574913150,-1954578070,183093323,2047133862,933811913,-8096236,-314805253,-1264452187,-587998308,-2054181583,722905107,571436320,466214387,778317943,-2046419049,-1889503541,1614171474,390356298,-106100501,-619695005,1788054704,-1572529073,-5237478,-638861725,-1131108432,-374762203,762064229,-1466857574,1030232365,1655146623,819137870,-76432498,-649873489,519988,-1052248324,-1047986794,2102230318,-1095877367,-907421691,-187138695,745959299,2065198228,1976026482,2023070943,249248390,1518720947,439699450,-1989303088,-532513919,-1818247977,510712658,1112251119,-1780203509,1279652748,-1161000139,722237110,-642115243,-962998090,-1595838888,-1161294492,-1134027623,-1461118024,1297350279,-1640260126,-1359487759,-814342929,1297337753,-1423880846,-1874308957,48279250,-405049860,-735522920,-1730261946,-1822710779,506120668,-564066822,665437090,1861209607,1073161382,860777136,1634719532,-1194021771,-610335507,1501249937,1291999197,1933476600,-209468734,343027963,-1364690984,15390312,1764904292,938230271,987979269,1878290877,1701371644,-2024700514,-1613798094,-1605020657,76878242,-778542315,162458328,-1213528402,-1414209394,411646509,1404966085,-267783720,-527320189,-1416091434,-661706665,297841598,-1679282260,-1536283610,1030665146,745841693,1680245504,1918311987,-466328475,-506071537,-817749331,-1297230567,835745082,1486470003,1423978466,689818433,-927905894,443968218,1489681280,1194554665,741505538,-668270474,1680288400,908401477,-575557492,-2086460370,-1048121605,649560019,-1473712264,-1007655159,143868114,1795250003,-780996107,1212586041,1565041821,-612454882,659404271,727557474,970516382,181367311,360783724,1872590071,1051687144,2134432903,594525574,944915240,1714251297,-1315561112,-1374508068,2113867782,1544060215,-1897749052,-2046705918,1226161126,-2121967221,-1715180042,6741971,1597668446,-1575236523,-644487897,2026228673,2015700910,-1344161665,-1064018330,-1251272806,-985649949,-409891636,375250575,-910364333,1953592823,-328446196,1994127064,-1128602107,683463275,-275399747,-846759344,2099616374,-1816792913,395643344,1798840623,972409203,-1609949858,1786486110,1122265431,-215013073,-1091424896,-680289508,-1659680249,-970471800,-1574107983,871933139,-1177503288,1820707968,-1881357055,-687357056,-320477438,-1318891758,-1828437621,-905102598,1129658859,-1150412091,901980100,-401162126,1436224994,867354534,-786188015,2069855748,1042590113,-2086979624,-1231046629,-225809182,-1317859346,-1968993714,-1948622367,-371991573,-1207651531,324828668,-867539847,-1483269050,-843139218,1014125380,-1230452442,-217641326,-1503348767,-456218880,1467971413,1679901578,142055936,-378832791,655698875,-112271370,-1442132644,366251415,1569701948,544183938,387430759,9004405,325978914,-391539080,1667722529,267829923,-1024812393,-695714926,-2051845961,-105964458,1521594659,1379589016,-219721538,-113646553,-351578069,490065372,-1646054576,-1518162584,196696414,-1824795982,-1180033387,-566802204,1267586467,2137453792,-710029006,-1974900401,376611597,314248522,780559093,1542342135,-158391896,40878790,957164052,-1375277922,-52878377,-1374547963,602560138,-974218731,552138438,-456701525,-1885810071,1606387708,-1985153939,-1835369644,-83278467,886191621,181993818,678507824,-276125033,1137328991,1063926469,-1592463259,1483286381,1737303807,1853537076,119420723,-329815027,2084559677,-604925142,-1942180281,-980515196,-1723230569,-701927966,-1987760311,-433146042,486236850,-605228165,-186904424,3161743,-1576373594,1306548432,1341552699,-1759342621,-873660508,1396865017,-587660870,163626278,1044710483,-1552219707,1357884041,-1651288934,-797156415,-254412596,1612124158,982336793,1987312734,1163054601,1534000771,1662384406,879286308,-1593670665,976361953,-891134068,731067612,283556537,803540525,936526691,527518047,1078386346,-5400849,1446630730,1227796757,1743593978,1736030848,-436871898,-764217730,1184378383,-1883742246,-2145622814,-255676533,2124876456,-1794002615,984964339,-481859698,-1846482571,-790148684,-125653033,1944074069,454529348,-1992070609,458682559,-1457270649,1532494522,1436489508,212878474,-671623555,-1737649840,915931433,-1840173182,-552150150,1650001973,-1573753369,353997432,-1802889746,1086304512,-1479562329,-508278937,2121974522,-265837819,-1788887072,1742998632,817801232,-404435122,831546331,-75151820,1503290479,1054962656,825456558,-634190176,24498084,20911970,-1960643723,-450027116,902937360,-531662014,793621085,-1135496142,1211635887,2142989773,381391789,1364533568,-1486456247,772367518,1367744217,-1256843177,2147448520,-1332719103,115444075,1389575790,-549187366,-89363871,72374588,463503189,-1872536913,-1959614398,82596147,-960810490,-49665689,-95093389,-772075867,-787656098,1703251463,1124606758,1805617348,1721171829,1997970808,1630254309,-2140085949,877722629,1794674829,166268425,941941820,-211275385,-1509983515,1854069821,-176476238,-34089564,-211751862,678939848,-1887853761,-1184623212,-1022685533,-2039279733,-1145697606,1384852911,1395800556,-328086890,1772749517,557750341,-1726133866,1452695873,-639233647,695075635,1334548729); -/*FRC*/Random.twister.import_mti(227); void (makeScript(14)); -/*FRC*/count=97; tryItOut("/*ODP-1*/Object.defineProperty(o0, 7, ({configurable: w, enumerable: (yield \"\" / '' )}));"); -/*FRC*/Random.twister.import_mti(303); void (makeScript(14)); -/*FRC*/count=98; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return (mathy0((Math.max(((Math.imul(((((mathy0(y, y) | 0) >>> 0) || (x >>> 0)) >>> 0), (( + (x < x)) >>> 0)) >>> 0) - (((0x100000001 | 0) >= (y | 0)) | 0)), Math.tanh(x)) >>> 0), Math.fround(Math.cosh(Math.fround(x)))) * ( - Math.ceil(mathy0((( ~ (x >>> 0)) | 0), -0)))); }); testMathyFunction(mathy1, [0x080000001, -0, -0x100000000, 0x100000000, 1/0, 0, 42, Number.MAX_VALUE, 0x07fffffff, -1/0, 0x080000000, 0x100000001, Math.PI, -Number.MIN_VALUE, -Number.MAX_VALUE, Number.MIN_VALUE, 0x100000001, 0x0ffffffff, 1, 0/0, -0x07fffffff, -0x0ffffffff, -0x080000000, -0x080000001]); "); -/*FRC*/Random.twister.import_mti(547); void (makeScript(14)); -/*FRC*/count=99; tryItOut("\"use strict\"; mathy2 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n return (((i0)))|0;\n }\n return f; })(this, {ff: (function handlerFactory(x) {return {getOwnPropertyDescriptor: function(){}, getPropertyDescriptor: function() { throw 3; }, defineProperty: function(){}, getOwnPropertyNames: function() { throw 3; }, delete: function() { return true; }, fix: function() { return []; }, has: function() { return true; }, hasOwn: function() { return true; }, get: function() { return undefined }, set: function() { return true; }, iterate: function() { throw 3; }, enumerate: function() { return []; }, keys: function() { throw 3; }, }; })}, new ArrayBuffer(4096)); testMathyFunction(mathy2, ['0', (new Boolean(true)), false, objectEmulatingUndefined(), (new Number(0)), (new String('')), /0/, true, ({valueOf:function(){return 0;}}), '/0/', (new Number(-0)), ({toString:function(){return '0';}}), 0.1, NaN, [], 0, '', '\\0', undefined, null, -0, [0], ({valueOf:function(){return '0';}}), (new Boolean(false)), 1, (function(){return 0;})]); "); -/*FRC*/Random.twister.import_mta(1601465414,-713986095,141044736,258560844,-2067167426,-628469307,905461298,-2010176521,1100748758,-791007862,729166408,-1288909798,1519820102,-1949860258,-1704744890,-1416185356,1463139051,-1808010036,-1909851272,-1370553051,-165942391,-1808244593,-48459363,-729436725,959666778,1691771439,-382364349,-1402883468,-1497127568,-810107422,-11888579,1883676143,-135782317,-445988526,-1872924900,-658192398,-1057495,-1572439314,-1456991654,-1098412963,-153371473,598419525,709488166,609090163,1861962942,-1408246328,1572857649,622272229,-1175637461,-528356981,1086352724,1777906837,49049029,-891949216,1206138210,897813780,179470471,480231804,-64614603,-709883143,1506085558,578106586,1461641974,-1247192892,1613258407,1626458401,711831276,-1834427154,366519981,-522223426,-1878908623,1914202106,1955476895,-1084984439,1425657019,-34892681,-623744526,38238547,-506575999,1332845843,969436629,-226115986,-1608308028,-1617010723,-703247040,-1989634203,-1772279039,-1526927803,236823673,-1285090685,1523026836,-1261521582,-296441208,-1806651611,-624847631,-1660495703,-120394085,-181704160,461551281,-490958458,-1284220118,1890247040,-1494216461,1167043582,1551939831,1443568765,812860503,-1247826693,1010684975,1320211029,-1181047426,-1721691131,1896754992,1735156296,-1100942336,2058994970,-1965745054,-457562625,-1720902285,184020837,597116816,1380502104,1511388983,452211704,1228386069,569369422,-368699772,1188163291,-1626986968,-1222457054,416517002,625021171,-141205151,-470830448,-1535149698,-1268035036,1505357485,-849847321,-301661371,-527408199,-167789493,-1655628474,-1219558264,-1855742595,445372867,-654421221,-1077321061,94029115,1625412747,871249533,-334196794,512361253,-887073361,662775353,-1574897792,-1062139826,-2120076304,762173686,-1808929300,2105574260,-773289939,1418279121,1398387510,-999210490,1609913478,486570668,1693681199,-437208073,-214833497,-2125213599,-890977516,1081693895,-114484593,-1844613299,-920676473,-171572519,-1660552689,-1542345017,-351065874,1051392741,-1662372225,-1939098156,-1352714637,-250723132,-1584501354,-283060805,-450192137,51943098,2067028926,860249576,-1556055361,394823486,507881672,-985296493,-1573309874,-346859578,1945505379,1529750194,-2101348752,556286847,-1596777923,1419018958,341716506,-1883856814,-975652639,269271012,1791819259,1393486455,-812069621,1488300820,-200445687,-1673685042,-2107440958,-1110259716,706905020,1454661951,-191994093,-358199289,-1060591306,-1974258864,-305858680,1958257438,751367651,903514394,-1986615619,1946813825,-2001262998,184607130,718282829,125166321,-1055257109,2054830486,623577046,543725707,1493416825,15483071,-482894988,1096963460,-12326343,-1976303717,-992863568,-1252840773,-129869787,-112530121,-1950325089,-1752248800,-1627853133,1937313132,1627345446,145326474,1795962618,11279142,1561822030,973356513,-1154119272,-424227260,-80766128,2108950557,-197164494,1494919250,-673272276,-1812615725,-1759283861,919455729,-536022465,418157327,-95356623,-317833224,1987139586,-16399377,-1801830194,1459598418,1162850518,141816666,-799524335,-250778636,-311034275,318208839,927984968,-1914794220,-121196832,-406386012,-1634660359,-481244321,-499752715,1014519142,-1923600284,-327063600,134554411,-627525751,-1846412535,756247498,1284805857,-1862490969,-2068717073,969746070,-1832118794,303569996,1556135868,895461256,1184871467,-1632975987,-369105973,572713641,1175378234,1296455927,-20949706,-991719146,1160338687,-1919124021,1429222901,-1011113999,-1786452822,171057881,-1371774477,-1596215587,-1406095625,-61647608,-1518769263,-226653412,1045343466,-1039498171,-904950457,-2043844968,1109910628,485745747,-1581494777,-671185191,-379519590,-367909368,-1665895224,1931314904,-569488760,-978254309,1358297540,3098616,-1068974411,-640644531,-1009475640,-1968797282,346334254,1816570776,-949023380,1776621126,-762576263,-503257569,-1918751560,-289300870,-58022055,1020676639,1684471491,-639244387,1780836262,1184020172,-1021068611,-1895618425,-1038153843,-1599533058,-2049035077,-1460897887,-2007597282,1946053794,-679956128,-1851270102,229423441,-219324511,-1764588039,1796828692,-153944954,-1052903671,-908969228,-905885223,-1107767706,1198214833,-2128250746,973101929,132470340,-2032596681,122904822,2058959352,1513003323,607785871,-1048800350,1139105570,1411968647,-862688741,953239123,218957826,-1184340485,-1772922253,-1914733320,-522660251,1321989263,36494744,-1144417707,-396000716,-120563928,14559291,840828231,194646522,-1608659320,-853255545,1484459570,1468522253,-1732853444,-1105834432,-314045199,-1305618847,-1671659883,1037851167,1749173921,-1472632825,-613147001,227646136,-1645525196,-1018583510,1476542497,2022793787,1801390357,-367673210,-329712545,-1689609711,247928074,-1619324247,364168284,-1941016616,1944655307,-451955054,1560898455,-779906673,-525532128,957801199,801097108,1075451234,-1893536241,497626194,1374170545,2051469484,683804138,-1188786154,-52091233,916723382,1102518128,334120487,614983898,-1858239885,833408645,-1112503061,-539773164,-234083320,1510296292,340290644,1028077611,1815819275,-933148089,800891104,323844201,1876420735,-2103990042,-1550407061,-1444261786,-1405118448,-1440586977,-737491218,-605684030,1348529376,1831117530,-383069403,1782959431,-1702552729,753309347,-522923922,1246030171,-303057648,1023720501,-738092220,1925679558,-1306748574,296297077,1005039398,-2064142045,699170486,-2092912234,193335411,1405651136,-1327506271,-550462812,1600888337,1653262408,-1712660698,-939828530,-1738142119,1759974640,2115955554,-700988969,-841969703,1270484081,-1525629883,1288427584,-859422222,-865972363,-181856809,-1530596966,2081297374,-1676850034,-1246856154,460233572,-656031307,1092186380,-175250084,1590633226,-775884792,264538150,-1079845129,-2051531537,-230587149,-582707100,-771765896,-864383792,868684213,58510556,1088683849,141464913,1128059283,2053879958,-1182181240,-710472451,1259633801,50579013,1029450571,-1346653643,732092519,1737085797,-124225677,1980812023,153064535,1339608448,1545118260,-1406078388,2107691119,-2111593227,-458184497,-1432443862,-865110409,1992044548,1286338813,-1925125535,-1621766729,-2002429003,-1174566029,-1636683120,1909818307,-583834271,-1669403363,574293041,-166706070,-225731105,-1313998952,866607370,-560873159,1495846782,576940302,1523030640,-261160172,394191804,-570669615,2008167702,-1301175785,-32255343,-272261684,-480339011,-2054639562,1405835692,237080652,-1858198242,2110406278,-424788363,1292853748,-163057680,-1904483767,79338066,1476081096,507131151,-2021239892,2077726648,-1501319752,1331811277,1819586936,-2113184977,-1073866673,2054007798,740862146,-954033213,1016154780,1351753896,1599051307,1477261175,183694377,1718989120,537196989,1534672047,563728538,-235448636,-374568827,-1134256402,2041088548,50941917,236289887,-1165069617,-1647404696,-1150785364,-1910908515,-1857065146,-929275813,613684468,-1890549584,2072964042,71860229,-329878866,-1131907856,-1210620529,1987453715,1453915799,-680894197); -/*FRC*/Random.twister.import_mti(6); void (makeScript(14)); -/*FRC*/count=100; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(15); void (makeScript(14)); -/*FRC*/count=101; tryItOut("mathy4 = (function(x, y) { return (mathy1((((Math.min((y >>> 0), (x < x)) ? (Math.atan2((Math.fround((Math.fround(Math.ceil(x)) - Math.fround(y))) >>> 0), (x >>> 0)) >>> 0) : Math.fround(Math.pow(Math.fround(( ~ Math.min(-1/0, x))), x))) * mathy1((((Math.fround(Math.trunc(x)) >>> 0) ^ ((( + y) | 0) >>> 0)) >>> 0), x)) >>> 0), ((Math.max(((Math.cosh((Math.sinh(x) >>> 0)) >>> 0) >>> 0), ( - (Math.imul((x >>> 0), ( + Math.min(x, (Math.asinh((x | 0)) | 0)))) >>> 0))) >>> 0) >>> 0)) >>> 0); }); testMathyFunction(mathy4, /*MARR*/[this, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Math, Infinity, this, /x/g , /x/g , Math, this, Infinity, this, this, Math, Infinity, this, Math, this, Infinity, Infinity, this, /x/g , Infinity, /x/g , Infinity, Math, Math, this, Math, /x/g ]); "); -/*FRC*/Random.twister.import_mti(576); void (makeScript(14)); -/*FRC*/count=102; tryItOut("{ void 0; minorgc(true); }"); -/*FRC*/Random.twister.import_mti(587); void (makeScript(14)); -/*FRC*/count=103; tryItOut("this.e0 = new Set;"); -/*FRC*/Random.twister.import_mti(597); void (makeScript(14)); -/*FRC*/count=104; tryItOut("\"use strict\"; Array.prototype.push.call(a1, o1, e0);"); -/*FRC*/Random.twister.import_mti(619); void (makeScript(14)); -/*FRC*/count=105; tryItOut("x;"); -/*FRC*/Random.twister.import_mta(-1284624628,1982468935,204388444,-1569125097,963232442,42406187,-895943127,-126301481,-1770301307,-1192028715,-1413762964,-250138570,943711536,628331138,-34458371,702968621,126640350,-620774776,224826471,-1173945030,-1417289053,-1931874044,425699004,-1329507982,808000473,-1554681996,-917779565,1188370148,-342544087,-1790646006,69486778,-668831,-1556680410,-1467763794,1433698582,-918512673,288958485,-608770270,-605922653,-1282587847,-1298410415,1038545657,839572976,-879198016,547616850,-1235200969,-1737918070,-1587953392,2020984425,1372387375,272918142,1202532649,-681124936,972509269,243903198,-1592342345,1651823797,1870331138,-596896445,2142240050,2129490450,-1457989219,-1186855415,1089916906,89115743,-1089162135,-580999015,134290763,1611607231,-1137900899,-1876500264,-922065065,472355452,-544030687,1193912970,657317282,902084966,-1796526806,716301586,-148172813,-1956755883,1102624535,-316657641,-268626045,-200243749,1365677257,-1057958002,-1915819485,811918655,-1303158930,1158464696,362847500,1254766699,865280105,1340986066,-1920543902,76242546,50211408,-57751782,301998564,-582628219,-960798490,-1375628275,2066392017,1193552694,636871534,-3574404,1528501830,201237971,128174555,224263016,966682260,-969157512,1107253514,-1399057787,179176983,1425505495,1342579337,775078814,-863028308,-119821228,2021181332,1052575817,-1091589239,1343491822,1030594067,-1185114591,1978182530,-501728231,-1714501320,-1061403601,-1581136342,1286337027,-41677174,1905750389,-1839360788,1195174495,-1743062134,-530639532,-1406164102,313535639,-141070328,-1407603186,1450113227,1372008861,1819452856,397059125,-540775778,-866888932,-1152733822,1226341626,876462525,1932896432,-1889384112,294455268,-1646101351,-892862106,674099911,-1999632944,1131899158,1122097967,436975761,-56008646,919758141,753095768,-239670856,1537207856,-135356368,73211198,314594460,1262860715,1536028425,1070308021,517595297,1717764485,-2076109708,-987629584,-457723543,-1147669717,1909691797,188398366,954254358,-151207893,1417522329,-1184632886,-173552725,-972416783,1179499111,-1088388276,-943104435,665907943,-1926656181,72638553,728838865,1501627169,668019757,285629381,1372445584,-1764554933,-781448522,1622717774,1817880141,668969364,-1600270336,1772064616,1570347238,1495485793,44058804,368205742,-1610135674,1074508984,-71306578,-1020790122,-294049422,1011571165,838921232,617085063,1156595823,-898033384,225218574,2115293578,1664792704,-1503317891,705988110,-1787064052,1391685026,-1830153786,1057918965,-325561632,-1247080842,-549187108,737952081,-1950618191,2131858250,1627806295,-1478453953,-666747113,219346351,755400484,1515645032,-422398208,417048624,-867453591,-614145202,-1858544232,-619555871,-1011121268,-1678095440,-2004012607,752467393,-1332257567,513989246,660586843,-724496545,898527686,-1778189183,1922457051,1044089251,-1820811448,-1999002064,2020726168,-2014475396,187615480,-1204297259,247996026,2143459044,-989176635,-912033712,-1687378991,2017983895,-1595450647,33824825,-1302745702,692966493,-639666966,-1748530792,-2118126253,199463130,1094874787,-1425699640,1242879239,-657875459,1236671943,-1972939760,826726321,-624947855,166678234,-1545120936,492581510,1756515154,377453071,-1173539088,778196709,101640369,1424461312,1768498756,-182383429,-1102659834,-744115053,-1503594314,1238307128,-1428231248,-281798615,381933051,725660046,366071689,-1789212808,1891784949,-562153171,514890290,1462266020,-1093470322,-1921567366,1323718568,1152093586,-9174373,-864356886,-1900494417,1822316674,367881758,-1952525676,-1276992338,-829398994,1704504384,-1785763674,1968722118,-520629673,-1443515832,-1280150558,-530862487,44327101,1747127922,-567947076,-1749841506,1527559610,-1294841258,-230474718,1823978636,2093818459,-1939241361,2010909894,-1892969421,2119994676,-457585356,-1206984359,1759761858,-1141902191,529944359,-1088728508,-1786329097,185985176,621198653,505726325,29752224,-1419669730,438243072,-912634169,459009709,1824476453,142658956,-2072299301,1512778181,-628196615,-1730017752,946136197,842983287,-643623824,702108372,234961747,-923749516,-1436095240,255547054,-1764773313,389552246,466417653,-811141058,556702150,179424385,157375809,-953527054,74969160,825445941,-66006264,2043987706,-1754302699,1303385638,1173482775,-950183667,-936729225,-1169760698,-541671728,-762437952,-257915020,-546072635,-2082709206,2016753322,-878186402,-884864041,1581311988,801471985,-515670723,173967004,915032877,-914712722,-1145268663,1413170572,-1311912326,-602131317,-16361018,1540707236,-647387067,1305563222,-1284569353,-922764437,669608306,1244205955,1653170063,-1961376078,-1205637368,-344936791,-2306298,518162852,-1318840922,1541159403,1475013756,1982807409,-471084545,-1758154662,-577511851,1468607364,1696469416,2118151586,2106888791,-944076103,1282727581,-1542522455,-1658568752,1416279629,-416433499,610130182,-1255464407,479253093,-1560444964,915672298,-714722935,195546757,-1967364444,301795840,440184452,-882404081,540061732,315669958,-35240072,802292794,1758519173,2083937803,457722518,-569391697,-482368325,-548485758,688807746,-1390421241,-840567224,-1246707594,1696760799,462696009,-137678555,184082812,-1936616100,53497575,-351368327,1829902826,-303724183,70348105,-1308981742,-235997918,903344496,1632337156,55643629,-1137923819,-2147012604,875440397,1254704231,1534204347,-1084434644,-52375014,2120538599,1228190140,-1961302801,1758684575,1829525030,2059113474,1087234901,1998130417,910397283,1740182838,-205057174,-964512055,610730176,1298152191,-892211607,-1950544857,-373260169,-1883679980,1362407113,217398033,511696077,714632577,-502304941,651267138,-1568199660,1990497186,1545196245,-767823758,1137648126,1946058420,5091310,1883389031,2061897461,802959499,-1082677302,-908561289,-771752366,-938159888,-1568533694,545161778,1524790829,-783924539,762859210,1642164716,-635827945,-2121471773,-1332394769,2002391772,-314236415,-107847699,817679144,1093669250,1493839718,359552991,-1514753264,300212103,4917631,-1222316568,837127438,-214524563,-1018218470,1455738769,1981075912,-2119599770,-2072322690,572418761,-1569745257,685957264,-1828876163,1409224146,-1198697051,1534578744,-563913167,-1296976125,-2038285031,1987016834,-1964651556,-1174647300,-616487237,118765776,207218619,-1847765679,-121021739,-1761906635,-1501719249,-773108337,1878203876,-1284446690,1634947172,356842913,-218007795,808853344,-80479034,1551468636,708337988,1031021894,433858262,-1267628773,135936113,-1845029860,1052415280,477504915,-1663265475,-1481068798,-1896459703,-2097342021,1819689529,-236321756,-1619646178,-1156640713,1417771455,-1722010536,-2043569489,578526391,133492795,590830743,578292899,2132596401,1986365843,-1846719888,1495817090,-2143782416,2144600705,-1583028386,-1479501077,-540491594,-1326016812,398190445,-1057679019,-1242705774,560606875,-375552121,-1932909384,843285868,1027618451,830516926,-897009936,-1844385832); -/*FRC*/Random.twister.import_mti(15); void (makeScript(14)); -/*FRC*/count=106; tryItOut("mathy3 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var i2 = 0;\n i2 = (i0);\n i0 = ((d1) >= (d1));\n return (((0x3bb7a622)*0x5c028))|0;\n }\n return f; })(this, {ff: /*wrap2*/(function(){ \"use strict\"; var cepheb = 'fafafa'.replace(/a/g, Array.prototype.unshift); var nicvji = (Set.prototype.add).apply; return nicvji;})()}, new ArrayBuffer(4096)); testMathyFunction(mathy3, [0x100000001, -Number.MAX_VALUE, 1, -0, -0x0ffffffff, -Number.MIN_VALUE, -0x080000001, 0, -0x07fffffff, -0x100000000, Number.MAX_VALUE, 0x100000000, Math.PI, 42, 0x0ffffffff, 0x080000000, 0x07fffffff, -0x080000000, -1/0, Number.MIN_VALUE, 0x080000001, 0/0, 0x100000001, 1/0]); "); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=107; tryItOut("{ void 0; void relazifyFunctions('compartment'); }"); -/*FRC*/Random.twister.import_mti(195); void (makeScript(14)); -/*FRC*/count=108; tryItOut("\"use strict\"; mathy0 = (function(x, y) { \"use strict\"; return Math.fround((Math.fround((Math.acosh((Math.expm1(( ! (( + ( - ( + x))) | 0))) | 0)) | 0)) - Math.fround(Math.acos(( ~ (Math.fround(( ~ Math.fround(Math.imul(x, x)))) > (Math.fround(Math.pow(( + x), Math.fround(x))) >> x))))))); }); testMathyFunction(mathy0, ['', '\\0', objectEmulatingUndefined(), ({valueOf:function(){return 0;}}), false, NaN, '0', '/0/', undefined, (function(){return 0;}), null, 0, ({toString:function(){return '0';}}), (new Number(-0)), (new Number(0)), (new String('')), ({valueOf:function(){return '0';}}), [], true, -0, /0/, (new Boolean(true)), 0.1, [0], (new Boolean(false)), 1]); "); -/*FRC*/Random.twister.import_mti(377); void (makeScript(14)); -/*FRC*/count=109; tryItOut("\"use strict\"; m1.has(m1);"); -/*FRC*/Random.twister.import_mti(390); void (makeScript(14)); -/*FRC*/count=110; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(399); void (makeScript(14)); -/*FRC*/count=111; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"(?:\\\\3)\", \"m\"); var s = \"\"; print(s.match(r)); "); -/*FRC*/Random.twister.import_mti(437); void (makeScript(14)); -/*FRC*/count=112; tryItOut("mathy4 = (function(x, y) { return Math.fround((Math.fround(( + (( + Math.min(Math.fround(Math.fround(mathy0(((( + ((Math.hypot(y, (Number.MAX_VALUE | 0)) | 0) >>> 0)) >>> 0) >>> 0), 0x0ffffffff))), Math.acos(Math.hypot(mathy2(Math.fround(Math.exp(Math.fround(y))), y), (x | 0))))) === ( + (( ~ (Math.max((( ! Math.fround(y)) | 0), x) | 0)) | 0))))) / Math.fround(( ~ Math.fround(( ! Math.fround(Math.imul((Math.atan2((y >>> 0), (x >>> 0)) >>> 0), Math.atan2(( + ( + ( + y))), Math.fround((( + -0x100000000) || (Math.trunc(x) >>> 0)))))))))))); }); testMathyFunction(mathy4, [-1/0, 0x100000000, -0x07fffffff, -Number.MAX_VALUE, 0/0, 1, Math.PI, 0x100000001, Number.MIN_VALUE, 0x100000001, -0x0ffffffff, 0x080000001, 0x0ffffffff, -0x080000001, -Number.MIN_VALUE, 0x07fffffff, -0x100000000, 42, 0, 1/0, 0x080000000, Number.MAX_VALUE, -0x080000000, -0]); "); -/*FRC*/Random.twister.import_mta(694137515,1482144730,-1477358683,-1107846048,-1844068650,-1966177050,743326426,1770621652,-1857388615,-468707764,-1533563760,-1558598818,1231854309,2123891428,-2144675553,-1331087720,-444570065,-128805986,1462407454,-1371333119,-847561168,-192103338,-217053680,1052832309,256392734,1288257712,951497369,-81214409,1015892468,-1577454174,835118389,-1945590074,63500883,262426915,-1008168814,-1409239422,-362677976,-1198701805,1690364138,1566663975,-1819181074,-30878627,26319206,-444932608,-1633138527,-288767207,1715006562,810836578,-1169620403,-2103552613,-1423760821,831505240,244616698,661939531,-1689032382,366255613,409959099,-538024453,65118354,608105375,1401625022,647370592,-1087004041,-1298069070,731722220,977408731,1756954124,-869423777,-1668669480,-1076346551,-143302136,-1031644062,-1242456536,-2003149252,2122643259,-150481446,239401948,-459115365,1400095236,-378510715,-1734371760,-1396071111,1390055947,1661452854,-980036682,1789996960,-2070029195,2120619372,-439779923,484621243,1139081018,930433029,-401455756,1257946959,2088304051,42486892,1986402777,134540526,783877572,1148012023,-1512110406,-361792999,-1442980920,-381420558,-1723335280,-702268727,-499853257,-842838785,-1775472861,416358777,911695563,-1055750801,1177428167,767661449,-1426382730,-278209439,1664111081,1423327281,1438245730,2082503108,209608621,-55559666,-1448913520,-679632707,1315310497,1415120285,-1293908687,176602513,1822025390,-1548426011,-2119786032,-769325292,1596159657,1004077426,-2002640235,1241743647,2069327641,-1653954389,-1350201776,-521376324,2063313286,252115041,-414082203,341678849,668831067,-1835603014,-1731798873,1473225856,-1366045780,-1480391065,-707616880,1334707600,-2045223474,-860070260,-1243093926,-955541980,-436426452,-1768582507,843364697,16058605,-814039889,-533205460,1892693314,-1863084235,1320422494,-416662332,-2113200668,-1720735708,242487966,-1326216271,622006794,2116298576,10432698,205825330,-741619787,224650780,1478725237,-1515185874,-190478412,-157537662,742817131,1497705484,-1353716017,914986657,-558927796,-472802703,1314908407,394951127,1760234469,-194356068,-2081795351,1207834062,721979061,993944326,136134514,-33693948,-653465108,219617892,-742845076,618472216,913954721,-1780593051,842364087,1933260687,234590436,-1746855220,2118972139,2090640964,-2115049037,959283678,-1108901721,508035018,-694651929,1627227866,-959924546,1000200776,-1395951739,-439773735,-212100971,509625950,-671032377,116395097,1732888171,939392533,1492719727,-1006780909,1419710717,521378779,42089697,-934067381,1895894039,247527633,-179942077,-2050629842,-479104876,1684263149,999414852,-1307274494,-1909268630,2047197541,854972156,1057469300,-585414849,-1390671645,215157425,922177752,-474072103,271914511,1005113961,1918048447,1905368842,-2047906196,-5670976,1651608186,1763773096,-590424122,669811116,947563153,-932940322,2146441375,206738589,-2038434578,689174199,-1392118251,-2022963103,-548571561,967891215,1194303193,453220937,-1997896499,1030782659,-2021351828,593992168,1255626263,2075633326,1671317563,-948986378,311077317,604833084,-225028186,-1843913878,1719719806,283588597,-641424964,1803998108,1192626175,902650419,488964349,315568841,755150767,-1347972406,-442193343,-1605511588,1120614668,-124176771,1058154842,-520413494,128911518,-1850597319,-787081548,-1644876828,-1877586960,628002808,467968795,2000823168,1507762616,135921184,782776857,-476977120,2035197529,2087631345,-2094118645,230818932,-1496835396,-657152770,-2081159336,-1028232269,900453243,1032060682,-304272322,319548696,456183204,1883511372,2090970506,1923662989,-2016781264,278371539,-66699445,55188978,1906793289,-581796661,-1235937842,-1644298746,-1884126486,-727029292,-284298958,1854602047,-1858502855,1580136071,1036002980,-1285755057,-707434772,-583648517,-1505783398,547859152,-783898123,-1427902840,334755471,796649770,-332815908,1559645948,-662906428,1421604941,-1487912258,1200175633,-782470894,1997644652,787593117,-697998894,-1005168101,-809228977,1022209846,108167691,-1100108412,494758863,-2091645848,-1275018026,-453802768,729719259,-1302139623,1405104214,-1246567269,-653596799,203953026,1880938655,-33257649,999510264,1214939631,1813721065,-1004296726,1294813513,-1947234850,-1142819495,2000921209,-263349882,-1984626931,-1168960332,845635275,-1122729713,520841770,-105605035,920932324,295389177,-1008390799,-445303951,732424881,1280982661,1244881392,-254924425,-1456062725,1231808124,1367757564,702459307,-1661635186,-810697752,-331128695,26902552,1405440392,883918302,452168242,1348550282,1578124264,514258715,497769550,-1416216375,-1062791939,-236863547,-537139859,-1420889531,1424417078,1951344596,279917985,152793902,-218521646,-1358416893,2068073804,1866955573,-1044871084,-31794265,12221539,1276838238,-1439078128,758443855,-2122437254,-141333937,-813894053,-904893913,393866538,1281954633,1426412076,-1212326089,-675935920,1624759357,527490974,957530692,-167400505,1453245278,-719418235,-1169459711,928095865,1049993462,1711946707,-1810580466,-100675616,-1207958527,254155178,2119962947,-1718194539,1634179600,-1581161758,172130930,-2054976592,1052487894,-804770444,651572473,752875303,1064939995,884808786,-409525032,1905570396,-610991082,-1557561638,-303606109,-79464240,1757572254,1627597521,1123460669,-382621405,49383993,-1079316542,-1586614749,-716367804,1753181124,943909434,1175110556,777955826,1533689921,-1865001419,1797191422,529915300,-1873265644,1040337172,2110341360,-1147556255,1962087490,585110524,1923313526,1866727075,943469516,-1626874365,-1778294565,-1772136886,608362929,922581581,-1913092974,-1304798331,2127745465,974593052,904401247,27566591,-1567168403,-595424727,1846280134,1412090572,618282919,317318462,-1943338685,198976879,1799488219,-1074395719,-1087392792,-1872311980,1528316194,-1313204373,1469073799,634104816,1623033609,-884405119,-1595477242,-1855243348,-1037408331,-1241501400,578005206,-1481383937,-882268880,-1144025676,1507241624,1357622850,277991995,521756156,1999816096,1106874526,-1738116692,-1706775244,-1791480558,1545888519,532151081,671188476,467955991,846820595,-1264179151,-90718439,-742708104,-2132679630,-1778796126,-2046556161,471642965,1802199820,1980071568,1202999381,-192594261,-774337478,-1275865140,-1708992323,-759995567,-1056262779,-1406780205,1446048506,127954473,385892531,1472366466,1465787426,-922821894,-631617862,-2141636480,-1879842189,-1271746964,1634709663,-1237312022,1101514991,-1175826403,1265052026,1382810432,-1441525877,670186899,-1992807606,1394997261,1487068942,1865545911,-671015952,1713082758,-229705204,-1147074950,-71577511,545045556,-667505189,-1093863627,-1982837282,2106038815,1140338499,-2068116202,-131568111,1484938440,-1716968210,1083974871,9372200,-1002465006,-1412433706,-1690435983,1895893235,413647394,-1472802068,1533131876,52504769,1754379906,1957242525,-1295181514,-1076786679,1875217746,-1774982033,-618300882,-1070503927,1655675229,-2114103537); -/*FRC*/Random.twister.import_mti(139); void (makeScript(14)); -/*FRC*/count=113; tryItOut("mathy1 = (function(x, y) { return Math.fround(Math.asinh(Math.fround(Math.asin((Math.round((x >>> 0)) >>> 0))))); }); "); -/*FRC*/Random.twister.import_mti(186); void (makeScript(14)); -/*FRC*/count=114; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(196); void (makeScript(14)); -/*FRC*/count=115; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(205); void (makeScript(14)); -/*FRC*/count=116; tryItOut("Object.defineProperty(this, \"v1\", { configurable: true, enumerable: (x % 36 == 31), get: function() { a1 = Array.prototype.slice.apply(a1, [NaN, NaN, a2]); return a1.length; } });"); -/*FRC*/Random.twister.import_mta(1712897053,2050899066,-137498421,6371607,350294159,2147060934,-1473138460,1577071851,-1639224401,1406228048,38372391,-921601933,633310016,-914562342,105175204,-177310509,1635915137,-1073543098,1317940002,-1755569955,-1514292410,-758714035,-1836177165,1944795355,919311865,-1941398851,1449479446,-246509319,1807267741,-1364412048,-943924425,653660753,-1637817299,1844398359,-63360431,1476662235,1144011820,-2047664582,2026173463,-1009199664,-245024805,211935226,1740127532,1642187704,970610691,332114444,123399855,-1119947843,776090069,-1710759260,-1915130583,-1123995396,-1109189629,859575383,-1243036174,19640716,1325419970,-101657528,-2077110086,1469685148,-1965202139,-403309580,-124656069,1603017348,27931138,182964176,1863732996,1754479381,-365205668,1153630431,1442591331,-1116738612,903454018,1038077780,-1733651401,-1429918899,1343943234,24874396,-860640436,247033109,643681120,-225152029,-1909911847,-2086352904,-1609199724,-214354655,1198645388,-303641195,-114866960,2056798172,308560616,1595397188,-471846180,929886738,1061580578,-537723709,-1080305642,1672451744,-1713503784,1615653931,-2088963216,1824710184,-341433350,-626876909,1682308081,-867156619,-921408275,1608909788,1733983206,-51261949,-2087260556,-805850653,-1907565596,-1209305002,843011270,-2036635667,-414623221,235326998,754571740,320642634,897857640,1066641427,1296065848,1091831527,591592261,-614419611,1844574588,1641855696,-1390843555,544135137,-1571057909,1451227277,-1937261803,1601422880,1242120568,-2033143931,806239093,-1666489832,-877020310,615217755,-832544083,-1171148970,-868278109,-36391982,1219683651,1292741920,-240943244,-2106472252,-1764929301,1969140961,1338410804,417882096,1411865525,-296363492,-1726843893,-1589282578,1386454439,1439913425,527840086,-1565958691,460362778,242050097,-691721456,-1814087548,-498232744,-218736322,-694874961,-1786156514,1081852034,-22039082,1763893586,133166708,287445546,-416295801,300930860,2112335135,-930985427,-99878054,-188877006,2065244166,1305290393,955210322,-2081705120,-1765939141,-1551412067,-1404352540,953779135,-1970337602,-1290992380,-1948753498,996005353,-474150094,-979490189,1645547071,-860875378,-685280628,-1120903829,161494658,-1973928873,1022929978,439867955,-1114271589,-479394725,-2109291164,-203889801,-1095985822,-1478002740,-647765807,1545192135,1136978334,-454293709,695826269,25152414,1002674557,-168280120,-737364103,-389197070,-2009806313,999884210,130401290,1705065722,-982917448,348496826,1850820294,2026309599,-1847025156,394013245,-28241230,-954258176,373671455,-1643514464,-1219852559,1025205073,-645330770,-1254527934,-2088532595,1255874513,1162931090,756754462,1019568190,-687916192,-1312699420,988332157,-1092411386,-612851670,-430340591,1179523845,557933229,1927794125,-1438193802,1897697261,1226780185,-42967168,1660274754,-550896870,944699211,731471079,-477175336,-1073303871,21044924,1859171168,834173397,-678537202,-1634826045,1935480270,-1122752433,2034739811,1709984288,-1847841469,-1610042734,1646494862,1751749879,-1347898920,981548536,368666495,234225454,1246365337,-1612714057,-2075518161,-185658954,1081901032,613674711,768205138,985867276,1131636584,132107644,-1073500867,447892638,1752964348,-280875170,-1269366917,1368185132,1803703126,-900569883,924463032,-632887239,118785168,-1003646304,-706420586,2065893552,1976887980,-904014901,1044367903,1807475586,764730688,-926985124,-2132426554,395657072,389779472,689365758,456872866,-420180562,-530761601,723235571,-1407398343,24429046,-1186634050,212188525,1777943131,-1436171184,989107392,124019204,-509466106,533138063,1615509688,1218281326,-951631023,-1025901175,-853949613,1544006976,-2121788172,716899570,-1953924096,-1555998713,677444421,-1994934618,1835385152,1971922408,-786980175,250223772,-587085024,-978519708,-712724704,-1222996125,-1079170509,2038967960,-1007823406,574213373,159873277,591086150,1831496197,-803752004,-926379462,-1757555541,1232241241,-695093013,-1373717264,-1989591070,-1384356513,1919752557,17109435,-801591134,-1712948921,-407355827,-1660854228,-1850091263,1456650275,47678111,973629701,-1512097656,2114285888,-1119934884,186229985,1353032676,612055996,-888866665,-933018423,-524050401,989433093,-1413918770,-341697293,1575632504,1139546381,1787122020,-2013160824,1113569548,1653752423,-1661836222,1105776932,1930942437,-928178314,1938325883,1242333017,1025975752,1498558361,-10588385,-608828114,-934460106,-897820202,1972887828,-806552071,-1677184730,1939675096,-1353410599,354614209,-1267681474,1392216258,1469768822,899063627,-1411699675,-1179268657,903651279,-1566643773,-1273359612,1943286303,1391815225,2100110287,-135128044,-1982956631,-4605543,-213244880,-935482343,-295977627,1941764021,1946292260,619917586,472180752,-63830209,1690312309,-983530252,-1755680276,1011491855,-1106017313,1160147508,668281635,-1608956149,142089995,1540374088,66838091,-2086021926,1343790549,479944969,-608905034,-196856880,708751147,1356227613,-1270730089,-1584646363,130654555,193950657,-1000543248,1926060504,-317241844,-764110622,-1178460569,1631163774,-2088353398,-289785688,-1482016896,2017075816,-615985802,-362499031,-1417178313,-2135378574,-902324002,-1414578132,647753239,-449533684,-921988406,388121206,-277373077,881048484,-1678230919,841952586,-2000140518,-896258548,131498808,-1452475858,1456101880,886044750,139674720,-1424601352,611287638,144457001,-190728927,1958428222,-1876785799,459261983,1047697159,-543013372,-1047548855,1304016310,969953184,54403138,1956398046,-1467114760,245497116,2117967208,-18691287,2107683178,1907267293,-556750984,-1887178025,1287013584,1607103146,1647035180,-370892872,-1014970472,-1119285513,-1517673029,-846540345,880187531,768256026,1264976433,331791873,-144626558,866422070,419385033,-679515345,873826978,-2107572145,1519783721,1536381779,-170651508,-691517608,2092078029,-946913745,631739183,-2102899171,-970831590,817625878,2091714859,1114508156,-447671714,1249049002,2077280092,23279071,-1971647904,-378002608,-607888721,199719612,-1607469329,1280743276,-203853769,-71353295,-14020848,-1100675410,-1374806892,-2024773470,1660522177,-75209252,160902788,149785975,-1917083776,416501417,438250022,1773280454,-1165317188,-1872126969,683889546,-877847014,1905856675,1561225767,-1657487305,-1945841675,504105991,1710384609,1205423339,1462004194,-26874655,-1665819278,-1680718002,346361285,-2084484718,-53965541,1402875851,-897307946,1980392688,701293332,1295321835,-225558506,1615102969,1519587313,1693389542,-1913312697,1575364998,1581020906,-1349165761,-63423142,-353652348,-559987893,-1059986671,1970045426,116188729,-1211865939,-60382656,-516481433,-1714549616,97222946,155460202,-1246157773,1211766232,-942642464,824567421,-528211701,417743244,-27348059,1060393748,-1134425378,1337980956,2124298258,-441367366,-624452173,1457166630,1068386259,1485725119,-1242062274,-1085285921,-510015597,664715854,-1003020013,-1324526616,1722315847,833809407); -/*FRC*/Random.twister.import_mti(370); void (makeScript(14)); -/*FRC*/count=117; tryItOut("o1 = {};"); -/*FRC*/Random.twister.import_mti(380); void (makeScript(14)); -/*FRC*/count=118; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return Math.max(Math.max(Math.pow(( + Math.max(x, Math.fround(y))), Math.fround(( + ( - (( ~ x) | 0))))), (Math.pow((Math.acosh(y) >>> 0), (((Math.log10(x) , Math.atan2(Math.fround(Math.sin(Math.fround(y))), ( + Math.pow(( + ( + Math.PI)), ( + y))))) | 0) >>> 0)) >>> 0)), Math.round((Math.max(((y + -0x100000000) >>> 0), Math.sinh((mathy0((-0x080000001 | 0), (x | 0)) | 0))) >>> 0))); }); testMathyFunction(mathy5, [-0x080000000, 0x0ffffffff, 0x07fffffff, -Number.MAX_VALUE, 0x080000000, -0x080000001, -0x100000000, -1/0, Number.MIN_VALUE, 0, 0x100000000, -Number.MIN_VALUE, 0x080000001, Math.PI, 0/0, -0, -0x0ffffffff, -0x07fffffff, 0x100000001, 0x100000001, 1, 42, Number.MAX_VALUE, 1/0]); "); -/*FRC*/Random.twister.import_mta(-179152117,1754403180,-1397764800,1553253729,-1544227003,1736822698,1499217267,-2096103735,-577233898,-891815410,-367335280,1732860651,-1889182392,-90724963,-1771891335,1264014300,-1810131161,345188238,-1068250488,804519532,127521901,1501683471,524588331,1898405395,1460752792,-2056709138,-770502890,-1730741451,866479530,-420334252,910278344,-218571588,715100320,810440731,-918512323,-1676960311,1205861673,-1027612169,-2114638365,-373148615,494981557,807911645,-1286000378,-704839413,360625167,1091641150,1943272145,-468252898,1574278479,1806054620,-15945893,-1070555259,-887502539,-559380215,844661022,-896048915,-292752698,-69536198,183851952,534791111,-1656699566,1122661442,402403114,-610413449,-283683903,-1676888907,771332135,-14019728,1355182236,-1788000263,-75277078,-1813554069,164472284,2049598895,-118907171,-202030248,848489348,-1366191428,348137561,351823496,154039040,-1999212981,1964874674,1482261418,1266836663,1205301776,-1486361796,-2009983143,167190992,-1726962675,886317629,260214377,-2079047923,-567501864,-79135992,1713218475,1927932690,2020819762,1101225010,253723812,140309116,-885925164,-1980150084,-1702568966,1643120925,1912697982,591742270,1818709849,-983853838,-1473255294,1030991798,-93363451,-25192048,-1802142812,-1372349534,-949570112,207971642,96097007,-17865817,694587650,-1640093153,-237020749,-1919469298,180931890,-298916284,762032109,-986034716,1498170153,-1249031966,1336559989,-678371402,501424968,-1449416182,364862378,-422711754,-2090752487,-352017582,799941663,-1332884818,-1084509098,-681321013,376374238,-1523711162,-155797310,-2035736449,1955014870,-1293839275,701572251,479061439,-1719253708,-1569049748,877360551,1439917007,772140806,1496683251,-122358917,1046119863,392713986,-1841089513,604657355,615819643,-1156904561,1630326728,-1165240522,149044284,-1353950033,-672107208,-331796556,559666924,291706184,1143912401,1605722359,1425716861,-733841692,1009328414,-1444112372,-20663233,-2036959614,772980680,1969883461,1786628569,674839204,-1620881879,977623687,912334859,-1611170063,1638438585,-730617659,403315029,-1701172031,-1639196506,134191292,48858692,-121157236,-1421714857,-1292099688,1111293304,736152153,-1575291811,1965310881,504132610,-311053360,1214726360,1432216919,392978281,-1809592058,-996366646,394293431,956577091,1428160739,-226469787,-1126306031,-883522435,1147283446,381661145,-1365166902,-1949807374,1650640138,1533853626,-2027471805,-1644480893,-1409608114,280387885,1633423907,-1174863082,-1273048698,244998822,-1763848821,-1162329412,-1549060208,-1640417594,1685190194,1262570493,62950226,1539738832,570237729,-394293305,-57181025,2032921332,-1541750536,-1569243025,1377813912,1411826655,-106445006,-21539751,981235669,-1503920155,-1478327724,1285729460,-20815358,-861898304,1772715608,-200015921,-41422181,1576611919,-1084132602,-684374600,-817211017,-1302834206,502778128,-1315253202,-494423750,1245997431,1047623630,1161643279,1683900429,-617344727,-1939441717,1612945812,-1035406527,2025946031,44756195,475103682,-534251087,-487720823,-503830820,-46042152,606147091,-1169746082,-1423444287,1441386173,616329655,-671681813,-818593422,-130740092,-1275314703,1387881864,-1451308244,1967875053,-723525560,-1285834527,-623478166,539833880,1987350523,1258411955,323760852,-1216639319,-1854853983,-294201293,858247306,-970179435,1056885517,-970411367,609781028,-1966196590,1421002810,1597176112,45333256,-1671618764,2021667427,1797506429,-1566291881,-1957553226,677461247,-930580574,357929615,1179306596,-1725942833,447769665,-647072403,-576804134,-879137269,-1326016973,1120712526,1547566213,-83342011,-142882113,-136797430,-1523446668,-1992473402,-807839357,1681176349,-1163302750,-293763005,1760334858,-1276545966,-1830061450,-1930375631,-1122341557,-788562944,-163379434,-990786510,98779822,-893697796,2038318499,-551974578,-512571485,66397886,-532481904,571129043,583210732,-1974816935,-133785,948681751,-351522941,-494791014,186570372,405167558,-35840223,806457864,1034093563,859202122,1773472224,-1518070972,-25528256,1122772576,658032070,1399806358,75538330,-634602522,-399954964,1512915664,1557526820,-1596192373,-1789138929,-508233980,1894720996,1712211249,563597888,-1190470295,1089531962,-506777942,-839492663,978995443,1984400260,973252091,712205546,1145094633,461918882,1165639795,1514612564,-1259556017,-1310732725,1649529387,1251911908,1283511419,1967503315,554736442,629051517,-368805794,-1706660233,1172810482,659448639,761100544,-1666306787,1198488489,1588034430,-373410141,-1529078679,1521555985,-106715713,-1104747467,-973441165,-2125840535,1677831430,-1080805267,-1587338549,1134843309,-517213009,2068616284,97595231,1164391482,1378538653,2017326442,966349520,-1408729003,-768216863,-177943577,-809111126,63600686,-1838135409,-1855115687,-156178404,1316914052,-1635490835,-466580967,2026381255,1786054559,-1123482244,978483784,-752408659,996524930,-729600734,1205840824,-754890789,-666560978,1323931406,1192711921,926162801,848827605,406503119,-1888313328,-584802825,-881599158,-431945932,-1149541767,-722064444,-840159994,409790214,1726295366,-268803687,-1760692844,1637972376,-1922801752,-1455367031,-1284592352,-1769958274,-957183734,428795043,-90850123,-1545200928,1782839738,1668014448,-1572873112,-1029139118,256503080,-361488619,-1480239812,1942913663,-264610305,-401811993,265220452,573037901,1953312759,-1256733080,591503745,-917463616,933965682,-849964488,-1282732148,1487777045,1507156703,1707169836,-512085818,-1742685513,661874458,-44679691,-558321948,2088416342,-1114736013,-816862707,1009037629,-2019359564,-760984947,355791749,-1900717950,-890792691,-1840908007,-277752907,674966231,201768424,-288340855,256347190,-1034778025,-1831969427,748234102,1101592563,32292265,-2133016773,-1206581536,-2110310224,-4141371,698759826,-601903867,1981863320,1421473787,-117659198,1584442180,1576005504,-1636479214,-2096713362,-1409729236,1712996629,973833701,1062983846,98841860,2109585235,530568405,1448007135,-828266776,-1585547433,-1365033964,-1246651829,-1566710621,-424332217,1166208790,-1905689817,-1640587637,602741172,-1925929763,101130252,-1052538143,-36339067,572185908,-86559207,-1846869481,-1804070632,518334303,810884824,-1619007569,263827661,-547155514,612082838,1306635603,1526626541,384560996,1780181674,-573492249,1657506461,1270451223,-2024643749,-1440451682,-554095225,102642161,-214793852,-989794821,1494191787,908420966,903387891,-960834196,-777958092,1598888100,-789209111,-1796410504,1993689349,-758963116,-1093432248,1136598358,1178843784,-1611523942,1558467091,-2066990919,-661461597,-1512945841,761006262,-317480842,-1765032530,-1429410947,1586451429,-553526302,-993983641,-1229726337,539931877,-643463746,712861175,-2018493619,-426707741,1589769557,-2045455708,-222738496,142797486,-2110982782,1366288744,-1397950500,-250650647,24347581,-2083185597,-1283230654,-417082776,181202461,987200479,-1597890024,-850325157,-689689975); -/*FRC*/Random.twister.import_mti(77); void (makeScript(14)); -/*FRC*/count=119; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( + (Math.fround(Math.hypot(Math.fround(( - Math.pow(x, ( + Math.fround(Math.ceil(Math.fround(x))))))), Math.fround(( + Math.tan((( + mathy0(Math.log(( + 1)), Math.fround(y))) >>> y)))))) , ( + (( ! ((mathy0(( + ( + y)), ( + ( ~ Math.fround((y - 1/0))))) | 0) >>> 0)) | 0)))); }); testMathyFunction(mathy1, [0x100000001, 0x080000001, -Number.MIN_VALUE, 0x080000000, Number.MAX_VALUE, 0x100000000, -0x0ffffffff, 42, -0x07fffffff, -0x080000001, 0, 1/0, 0/0, -0x080000000, Number.MIN_VALUE, -1/0, Math.PI, -0x100000000, 0x100000001, -Number.MAX_VALUE, -0, 0x0ffffffff, 1, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(303); void (makeScript(14)); -/*FRC*/count=120; tryItOut("Array.prototype.splice.call(g0.o0.a0, NaN, 18, a1);"); -/*FRC*/Random.twister.import_mti(482); void (makeScript(14)); -/*FRC*/count=121; tryItOut("this.a0 = new Array(-8);"); -/*FRC*/Random.twister.import_mti(498); void (makeScript(14)); -/*FRC*/count=122; tryItOut("\"use strict\"; /*tLoop*/for (let c of /*MARR*/[NaN, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), NaN, new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), NaN, new Number(1), new Number(1), objectEmulatingUndefined()]) { let (x = (let (y = /x/ ) c), e, atdcrh, d, z, wmibjs) { t1[2] = p1; } }"); -/*FRC*/Random.twister.import_mta(1431933836,858355421,491170353,313828618,908414247,-1830236839,-1244514629,-228449514,570721966,732565302,51522313,-1553026355,-1091405824,731553756,-611496485,1459555391,-888951634,1143490626,-395458725,1000831010,-160691467,2004946661,-623408246,777619347,1205057997,992170774,-1386334161,1615586309,-1619944705,-1995100283,-870799943,-1702217222,-2098862852,802732494,1180717154,207070807,-165035104,1198933443,165224666,-1358903358,-345090258,-1532649985,-911980014,9489781,468536349,1952604309,1976838199,618872227,-308933568,-395874180,-1106794004,-877638860,-993730418,1092025920,858890425,-1436359532,-1231116713,-1556370708,763622213,-631879315,-1399253209,328396947,-769427550,24737958,1073946385,-1370159788,-1292806640,-1054612281,550551043,-348046837,369727456,1567110733,1585987261,110781777,330913814,975344818,-1250486986,297808289,87416428,-287103339,984011462,155209638,-602498006,1422219107,740640876,831793363,-1451453308,-236169600,-1228848296,171064321,-1453139815,1448361313,-593673632,621383825,-1278016555,1555410341,-582774433,-1192160082,553428296,-109558581,-81771634,948310792,-255060082,650059356,86248194,-1778276821,2107596286,932788732,-626873149,-1805761834,914028612,-1873928323,1651611397,1528787001,-1922883991,1232420523,1502024703,884038753,2016046583,-675327453,-536108625,-971562052,-42901383,-1256174702,813541868,188423264,699481166,1827041769,-1436261474,-751516135,276904672,1226979973,-726998329,-1335867787,1933663999,328732860,-187422923,656227825,1514794799,-1895503511,1420318010,1155126396,-1241843063,2065848247,-723474305,902422718,1870513713,1912305223,1229049228,-548117871,1562088583,-1878255476,-1707715746,-1282057814,1678852995,1005613185,699332277,1795038413,1525062061,522909050,-1704455353,1086552380,-2110125004,1271443155,1372426062,1334025738,1006451337,173249435,509240768,-788233827,1795371843,-776052356,1637398373,-649661484,-1093517416,949208903,1163201200,-1539580320,1723685254,-180757864,574224948,-1553887944,43043056,1402564078,-910289149,959013994,668833733,-1546062480,1183220459,-235511781,4247816,1194817962,-1550730148,-1873948697,-575522955,-1181967585,690655932,-1520844217,243872121,-1714583633,-1669975403,985461641,1822923158,1451203596,-1130220036,1113646976,191696186,-1342713975,875072483,1188587534,-1717063166,2058821701,-1870113733,-1697280611,-1787007001,344706833,-576875175,-591855564,-1679250109,1411397597,-427884699,913330721,-1553311789,640416340,-87209253,-1977868280,1149402259,134591186,1660742933,1381642578,1619811859,-1970448378,-1828157200,-1741590317,2073297497,-1892421230,-857144922,2139610739,-1318858063,1992386792,1117093136,1754701035,1781329830,760264285,-2145467529,1648920694,1750481160,-1875026769,1222655972,-1131956374,1519204543,-455936267,-588768636,1521094871,2147179910,-185911261,2008593377,-1791718328,-730735246,-1708618005,1587241299,-1169501178,326049200,1304416760,-330182374,-1119119215,1882934520,-1686135836,478762112,751585050,-1731392549,365268220,-579261294,-1649777492,1411329741,-1825131092,595544490,-1557913021,120258699,926463759,-901745084,-2117965549,-839367635,-897307115,1674380491,1155481985,-823579397,1328813582,972882103,310778637,1813136787,269845533,208138870,242814230,-930742867,-1570387576,988880004,-130397402,83615240,-459894744,-1058164728,-1448758907,1745802784,-1341126273,2073646524,715956980,-272958703,881352028,-334961080,1888472651,-593509481,1770800567,-55835021,-1925664939,575549208,-1780210070,-1616210631,2100452966,-471091448,-1303242995,-640837813,1923151891,1037301250,1784012738,477987539,-1035341624,-2104224434,-1447475788,2081993067,237505424,-844237555,410042195,2016924373,166270971,778929109,-1814621704,1261344017,-234914242,-130965123,424678542,963089952,-812466370,1814601429,-1137671695,457021638,-1852064007,-1773813380,-802497049,236637450,-334435569,688762081,-695475328,-831098188,-2059429040,497515172,-269809444,-551032582,-1217985105,288027521,1400099813,-1443137712,1201396239,22681886,-1947657451,1181429441,1238732236,-1498200670,1458051831,1775208847,-1041338497,372569823,-91597587,-1129360220,-1126661399,18943429,825646974,1968959702,1305509287,360826599,-95540413,-2089758977,-1679630664,-2759641,311243639,-285737233,1340025816,-1543363247,-1750320618,-76092966,-1357275234,-927578197,-1876240204,-1482438720,515010299,-1256502919,-1108341002,-1047737344,-525022302,-457417389,-1246547839,-1145755987,880656088,775781319,-771052319,1585763179,1240392761,1492021526,-379632417,1462874351,-1488344336,-1786597589,843816037,-528168191,1440563526,622483865,-1891654831,153942546,-1445094528,982594436,946969388,-1291954694,1840246244,-2054004310,904281044,710226610,-23365162,2054640259,-74134976,2069483422,-57210226,-2017346561,-939900430,627025474,-1658352621,1156004442,-784059169,-353740002,-2027736900,664673633,538146610,-949523364,-1086457482,2003049165,1830127211,-1331983581,-56858940,-291296134,1693204482,-1238046572,914339947,563259996,223851775,-274346323,933429001,-860835023,143128823,883697617,750398864,-1174417755,1039993059,-742946279,189054613,-1987977658,21094205,640714979,-98330482,364391533,-1755660386,-858459538,1004528342,1483819648,-1314180145,1935107650,151155617,-677795269,-455966543,-278585868,-1167931041,1170696405,837206184,491612261,-136313857,1473584903,1832079573,1570565207,-254176366,-1040377518,2016421967,-477146176,-432964635,-128069560,-558793460,-1913224974,-1524391556,-926537623,-1154811227,1133514856,-420458000,-1844838118,601246027,1521519853,1473162391,1668030517,-252870473,-1535209982,-78611758,-418186404,619720513,1289178279,-872736039,1692712078,611238608,-50416523,512144018,427328693,-2145268847,-1955007226,-176903471,1277101933,1300000302,-393094485,-1672027932,358789077,1105294920,1265500164,948275945,-1951480438,-300267576,-1499523572,697142935,-437479447,-1851996695,-1365126951,-266922174,913983454,1272876350,-431450882,1857034663,1323079363,890998023,-630640289,-509717790,1570923748,1979236293,536029677,2111289924,1682040983,-2009392239,-315483486,2127586820,-738416019,-73403570,-1824219566,653737629,2017752160,908376551,-665704224,-712541599,-1899496357,-1495025044,643342104,2085638558,741308302,-10937928,-91584116,-851700696,-1364181598,-787815503,1934019050,-158785625,-383600578,-313934118,1268520670,-1344503362,732044229,-74073472,-150841156,-1427549881,-170489546,-1499016146,-359065854,-1395325553,-1516408480,1027996839,-1643735163,1313027493,850156878,-1965381100,1214436930,-165642040,277329814,-1289032497,-2110513484,-266518023,1617021644,581588824,226535966,-528748558,-720717540,1204250056,2122964105,-935401624,501521825,-1183976718,-687812386,-4125623,203841846,-2139445331,-490832552,-1147891344,328944054,-2042623397,1502171190,1166883450,1310542615,1670698788,-153606721,-1155027297,1279532901,599837424,248741879,1253798155,1334487917,-1423964730); -/*FRC*/Random.twister.import_mti(55); void (makeScript(14)); -/*FRC*/count=123; tryItOut("\"use strict\"; Array.prototype.sort.apply(a0, [(function() { try { this.o0.v2 = Object.prototype.isPrototypeOf.call(f2, g0.o2); } catch(e0) { } g0.g0.__proto__ = t2; return e0; }), i1, this.o1]);"); -/*FRC*/Random.twister.import_mti(108); void (makeScript(14)); -/*FRC*/count=124; tryItOut("s0 += g2.s2;"); -/*FRC*/Random.twister.import_mti(123); void (makeScript(14)); -/*FRC*/count=125; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"\\\\3:|(?!\\\\B|(?:\\ud641{3,4}|\\\\S))?+\", \"g\"); var s = \"\"; print(uneval(r.exec(s))); "); -/*FRC*/Random.twister.import_mti(543); void (makeScript(14)); -/*FRC*/count=126; tryItOut("\"use strict\"; o0.t2[15];"); -/*FRC*/Random.twister.import_mti(557); void (makeScript(14)); -/*FRC*/count=127; tryItOut("ofmjoe((void version(170)), /*RXUE*//$./gm.exec(\"\\u0081\\n\"));/*hhh*/function ofmjoe(\u3056 = window >> x, window, c, b, \u3056, {}, w, x, x, w, e, window = \"\\uEC05\", w = \"\" , z, e, NaN, x, z, d, x, x, window, NaN, x, x, \u3056 = 24, x, x = ({a2:z2}), eval, w = [,,], w, c, x, c = this, x, x, c, d){a2.sort((function mcc_() { var gejhro = 0; return function() { ++gejhro; if (/*ICCD*/gejhro % 3 == 2) { dumpln('hit!'); try { e1 = new Set(b0); } catch(e0) { } a0.valueOf = (function() { for (var j=0;j<11;++j) { f1(j%2==0); } }); } else { dumpln('miss!'); try { i0.send(this.m2); } catch(e0) { } try { t2[4]; } catch(e1) { } try { print(x); } catch(e2) { } for (var p in b1) { try { Array.prototype.shift.apply(a2, [m0]); } catch(e0) { } v2 = Object.prototype.isPrototypeOf.call(o1, m1); } } };})());}"); -/*FRC*/Random.twister.import_mta(1613283347,1930934420,-1125555708,967782625,-1543411541,-304295867,-1422148246,260476988,1547428770,-1066412979,1642114406,138972399,-226171618,558676249,-1069765979,-989520554,935945575,-2010903829,-756277440,-1424863305,1259711533,402323009,-162142150,136264131,1883128943,171298146,-590644983,-1125822702,588865227,-2056015744,-1227761987,975912416,-1417980311,-1527671858,1490625030,508250002,1737760301,1074506295,-960211138,-1621266295,1283018396,1129068648,-111959721,1402567309,470055395,-729367031,-429086619,-2041541373,-2001740038,-1314850676,20211096,-732522285,1458882379,-1593652513,409388725,769797465,1715415679,58325580,-1130074978,-68674403,-58989306,-1863420556,2101458096,1790883150,476986431,-788957874,-120021631,-279943363,1451996500,1589438365,551949415,2056805871,-1583718239,1370351243,-1397065322,1777134809,-655696978,-721206003,1252762404,-1305054057,-1094521204,1808541376,-1030956090,190827603,1981982537,1131107653,365263765,117198331,751320397,1279575489,-1978497504,-842927376,767361906,2025644413,702749441,979368066,-111465685,-1732740403,513697823,1040200111,-1162651532,-1435759907,1888077413,1478658412,-976826531,497258186,-350151607,271018172,-1317053511,-1137735810,-1243639776,-1528350726,2138837530,-77757595,-639832742,1228246357,-1646875523,-1134230895,855036511,1651873038,-1770046705,-1414592626,401361895,-1330704803,-1714721068,28979698,-291832221,1583100363,-937993926,-1007789830,1401154133,365090736,-390783630,88377417,-1739534921,230912924,982595941,-2108292970,-715896491,-1944273309,1289548697,-852927656,-780003837,1762776511,-1149590851,-216778973,-737299399,995348267,-881509421,-1815834101,-2143479849,-1607912691,656067281,956087155,2138012625,513496535,-1971290076,-868251543,967951194,1282314652,-1243166977,-1881474495,1510956506,247355583,1536269979,-1462150635,1668833450,-173556884,2092360761,1111037148,-103427313,-1702747513,-634755507,-1236555790,671673766,1765184390,-1111396722,1492956934,-1056352308,-1507940954,-1151756325,-1264652978,-1888853287,1464773724,-264128582,796592733,749307423,1682794031,-273631881,1921791434,-1455352127,1504315500,655284196,-413786893,1994658207,-694069270,2075725829,-1104289105,-1220271024,-625802357,606938857,-480676393,1828236238,1624819319,-1458662232,408034108,933144041,337389040,-592627634,16103479,1680443216,1945298842,1878452065,-1070739814,1426939148,-296801723,735165024,-1696486039,-1869841387,1559227090,2031564624,-990280621,1893021658,-1430427067,263545103,-1262279173,-1356669777,-933362106,1513791549,363331026,1021943010,-310039341,952948979,1341721753,136276213,978281329,648317867,-530975519,1932015771,-741450858,-1945155661,-181740170,1252390567,-1362185213,-117420336,-423164988,973361471,795194335,163130868,35374266,-1551961498,508184877,-26708522,-482945078,530080732,-1043482652,-1880492380,-588695548,-298333622,1564366367,-1177224755,292465886,949268334,1371338400,-2019109216,-1093013182,-1830634117,37610716,1428823013,1815975013,427539699,850980778,-1705800609,359370716,-1882466347,-653231569,960125298,-609659646,1455584139,1943338089,2028686985,-409840516,-777483636,-1898899259,-1205933485,47729212,-1670244454,2039338370,10864685,-767547738,-71514209,442352900,-674892859,1167250312,-1100839943,200489750,1654768142,1654389603,1221793275,-1041450843,-1669886314,-658697594,-387163975,-1524207248,-1068166025,-461476237,-395158983,-2000249432,-1971097286,1976273618,-426680745,-780397393,-1660964304,1155689497,202268366,-99236082,853404402,-1142465116,232802729,-665618424,-1729876565,923459584,259331939,1852660381,-1180925271,1607754424,1792840565,1572319262,-1384640747,-816346052,-1928174054,1624610536,-2141211160,1696558460,432857152,1306567150,-2066728863,1355804737,-397460035,1674565898,-594223878,918557423,-836403854,-800563170,765488434,2043949793,-1821881566,-781034102,78627542,-631100088,-1679097955,-17803378,1126562906,-1605811407,1772729765,-1484477113,22375154,-2111954102,-1519153507,-62347558,-8268399,-1728200392,-1858122039,-1062461734,-1497577872,-972166268,2120221639,-516716671,1960238136,59825587,-849588458,-450033425,879806088,227901956,600367252,-237452360,740563975,334840955,67540595,-5628559,1963840559,-1718798051,-824869709,619958156,-1412424315,-1296539347,129535127,-933383662,-665438834,-1487089968,1185625317,138444155,2122898871,-520260407,-1419789289,477135417,845377805,310594937,1498614296,519587268,-327845730,-1507925862,-650414807,1267447780,-452758075,-310481081,196720406,1237974899,-1489356746,1554220435,-1755065679,1493918437,1167436542,-1490281972,-86374568,-1423521666,1717762058,-200700157,1167246842,1047657753,-1853756927,1949114698,-1940764160,1855162716,-2124390844,1400323534,-411474261,1501675814,-585961328,-1240414482,52815502,-73316471,-1882624534,1441609924,-1514762432,-1445456447,1130635369,-1360119489,1677417475,1279611215,-1615646175,-1212686155,1103976879,-1433088210,-458252789,-404887000,781830867,1645036314,114223289,1612473076,891158757,-1586547066,1981475488,275920360,353716962,-647757046,66775834,-1189164177,712185981,-2011189984,-1823218932,215975894,-471385040,-1397457147,-582469466,-1594057102,-664599463,-362463612,-1463473123,1721586663,789814587,-2136211983,2068744907,-2000669443,-1006353576,2114691854,-970846006,1486223059,112798073,1774612795,1104045802,-310748032,1851567953,942616656,-460983859,-1899411741,-1204882713,-2012000211,-75587085,1153058634,1055148070,-1050831143,-330817028,1871255952,-962582191,887231441,1598405789,1350483070,-94667824,771980022,-1484494520,662009616,2020477611,1795497587,-1509857173,625675813,-1197188330,-947365883,1533503951,-1545939765,-1662617171,526975158,1302008693,164029727,-527073131,1159312046,837993233,79426806,1021571603,2055581263,196715514,1843094732,721649714,1192673804,-405696824,1292138302,-1226728639,-818412144,359884050,1125294994,1960878939,235752644,-1669995054,-1286637098,-1389765833,-1180222651,-1684326690,1492624873,1392075507,683907648,875382120,1658809532,1507928115,-1540567333,-2062778234,-1496838851,1162233119,-293789446,1214436098,-1081871734,329425722,-264319616,-1784197847,1459530053,-542286798,-2125391003,1016889811,1400449256,866405342,-747373980,1530348979,266034055,1917594930,-107643737,911342165,-1089002644,-1841162227,-1523075057,-1802752541,-1162600083,-1494433933,1215194717,1849324094,1605498399,-323452726,2133782152,371078452,-519980282,-1381810791,912881627,1865117993,996609301,1613685707,-1755409937,2083981639,-1138384838,-114953264,-1682915664,-1544715940,-646146814,1077008482,-408499926,655096743,240182945,-261706707,1914079543,866986570,-1478945896,-2033272309,-1841522669,696971696,-198041957,-311543103,1201960040,-182619520,1108715240,1721761400,72542851,-1001950811,-2028414872,-1092912514,-954944098,-1870726128,-1178691133,-107488896,2050135950,1674029376,-1182692472,429922307,-521547117,1554545811,361912702,165707994,-612392485); -/*FRC*/Random.twister.import_mti(538); void (makeScript(14)); -/*FRC*/count=128; tryItOut("mathy4 = (function(x, y) { return (Math.max(Math.sqrt(x), ( ~ (( + ((y ** x) | 0)) | 0))) ? ((Math.tanh((mathy2(-0x080000001, ( + ((y | 0) === ((Math.log2((( ! Number.MAX_VALUE) >>> 0)) >>> 0) | 0)))) | 0)) | 0) > ( + ( - ( + -Number.MIN_VALUE)))) : Math.sinh(Math.fround((mathy0(((( ! x) >>> 0) >>> 0), ( + ( ~ x))) >>> 0)))); }); testMathyFunction(mathy4, /*MARR*/[new Boolean(false), objectEmulatingUndefined(), new Boolean(false), undefined, undefined, undefined, new Boolean(false), undefined, (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), (0x50505050 >> 1), new Boolean(false), objectEmulatingUndefined(), new Boolean(false), (0x50505050 >> 1), objectEmulatingUndefined(), (0x50505050 >> 1), undefined, objectEmulatingUndefined(), undefined, new Boolean(false), (0x50505050 >> 1), new Boolean(false), (0x50505050 >> 1), (0x50505050 >> 1), new Boolean(false), objectEmulatingUndefined(), objectEmulatingUndefined(), new Boolean(false), undefined, (0x50505050 >> 1), (0x50505050 >> 1), objectEmulatingUndefined(), (0x50505050 >> 1), undefined, objectEmulatingUndefined(), objectEmulatingUndefined(), new Boolean(false), objectEmulatingUndefined(), undefined, objectEmulatingUndefined(), undefined, (0x50505050 >> 1), objectEmulatingUndefined(), new Boolean(false), undefined, new Boolean(false), (0x50505050 >> 1), new Boolean(false), objectEmulatingUndefined(), new Boolean(false), objectEmulatingUndefined(), undefined, (0x50505050 >> 1), (0x50505050 >> 1), objectEmulatingUndefined(), (0x50505050 >> 1), objectEmulatingUndefined(), objectEmulatingUndefined(), undefined, objectEmulatingUndefined(), new Boolean(false), (0x50505050 >> 1), objectEmulatingUndefined(), undefined, undefined, objectEmulatingUndefined(), (0x50505050 >> 1), new Boolean(false), (0x50505050 >> 1), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mta(721981747,1193786138,-618173077,1736277012,1241004135,-1935234148,206110714,-887192556,1413559742,2068439461,-723187237,-1636283719,-1794283072,779433788,998894670,-2022070126,976662438,-1817442056,1739022202,-1696555325,1727808764,2126000615,-478752473,815167721,1899481083,994002523,820063957,1239695870,1372513678,622411050,76832726,1369959291,-462942455,1867085709,-192617408,621531683,-320840448,-2032884513,2138971482,626558759,-1891097333,-967164809,-1132372778,146390543,83627886,-1410089662,1890859376,-1594330762,-1089628562,1845753887,-785465428,-188990525,-376064188,-534391968,781619445,-603074752,298764494,189234349,1033420187,2110200217,-244715051,1423163941,-1119815801,74206668,614677873,109298223,1108671556,-1240604148,380263779,1360576181,1310826668,553692306,-1757212547,961454576,1834302274,1463543580,2068391588,-1588489526,-31970918,-1723635828,762570163,671040666,-1251924019,-472414831,1439123197,-38362556,-1571182990,1810456500,836998364,-1121472009,-286021291,-1382014902,-504592597,-1289915015,-596481384,1240270006,-1159883735,283618689,-1293239335,1109135527,-1673524785,454502461,34750016,477085241,1772400757,-722062256,588687917,666269032,2069679514,-498363642,-1778662408,618225858,125609382,-267907328,-486836541,-629607020,-822291320,551967077,1948481577,-1547309495,1366062897,-300062913,-69559874,1197216912,755399733,-2058989604,-1322227146,-1009114539,754146115,1177083572,-975606200,556395435,-1732749463,-507480737,1223488778,406178239,-1302038115,1586188098,1721881771,1694367693,2120419397,-1557079763,-985415616,-1332173591,-2107783182,-1427160336,1619892625,968797616,1982002407,-1672446421,660670883,-2098788683,989143020,-1256346099,1719392180,-1863905989,-1444291154,-2089435745,-1486466133,-1083747725,-1919097577,1587799347,1294231268,-269010399,-2101393838,66067815,-1018781423,-788383594,-1643403006,933249365,1904089491,1620160026,-510528876,-219625056,2096443294,1893385593,869248412,-868472020,740408411,-759542266,-1152463455,1931394090,1573790197,1460382452,-170772252,-277704677,1014010407,-756554973,-983319841,1955448943,-144328058,-1335170386,1944005540,-1572118414,-856268065,-1008745606,-2008111319,-1413169659,-2042120147,-122484255,259856812,-256708628,995642359,1024310244,-1206185211,1873402090,1303013008,-615780697,-1687696852,1418411472,1034656078,1790227146,-1492238555,-732048136,1765511267,-980016864,768016296,685332309,340091623,1598829288,49674622,1640661998,1824511854,-2105901877,-1761903780,-948347310,-1085234440,-551718414,1307854323,-984374502,-927507806,-1936268095,844274959,-1857029281,1328645491,-568606540,-764564726,880387401,-1214290062,1241676486,1423989127,-942430270,152453708,1186367694,-523269862,-1548892358,341506035,1646318086,2142622650,-221665260,-423891808,1308884240,1252273598,2133663547,1761778188,372907740,1265475880,1938799347,-1506774869,1636483888,670966242,-389106697,232106355,-281856432,-642229122,-1358433480,1682339145,1020631078,1766606490,691286640,300272090,-1864533602,-515474772,-296132027,1433992382,-477054249,1138184862,591869622,1415509288,1290313951,-739444386,1178785203,40760317,-725021384,1244354995,866235990,16905048,1748215068,2113130870,1503011991,1229107022,-1773570996,1682615275,-1003680409,-202080377,670743652,-111283237,-213869938,-1728167905,-646392010,1427122355,-2144622655,94953380,-2106909632,1248204076,321500249,-585094824,1748131118,1562018291,522270777,308363033,465084389,114238615,-1537308395,1457765427,1754096037,-1596711131,822820190,-2121687986,882254113,-392690311,1119900150,-405595865,1058760098,2131598557,512508604,1825032360,334806682,2092756515,1151012173,1812297037,1770744449,-1501986066,804313613,21374367,-532913803,321182713,953478649,1430162503,691456987,845199016,-974534534,-1302542949,-1741889007,-2063273782,2107071928,-881016692,322672218,-1020497509,791107247,941899607,1284801048,208297627,1558970427,1225835561,1817833018,1193791249,241703385,1594734790,2121272702,-1380018749,-1719934287,2019804882,-516285787,1032698496,-2137430633,-848524078,67659353,1005586219,-470947893,1527156801,-664427338,-1406827534,1902766555,22203500,-1187493317,211971273,-1133841851,607828178,-646232796,550732380,-1743136462,-1029772547,621372339,1126251990,2108859711,-1689678982,-508035120,218989147,-1216787383,1927263299,619944022,-1434052644,266457029,103991637,506634587,-1477880010,1574411423,1877839096,-676639013,-1578649107,-1990187563,354360971,-1740200031,596356176,1778214864,1867907424,-1462513222,-2075668932,-814253966,-1568232615,-686232165,-52126435,1092456843,-2022406372,-1236089126,-679362767,-1783834501,911910141,-501780869,-664932137,-891336737,-1265236012,-1996584949,-1031855902,754170791,-1804342926,569663972,-1413837669,2060105904,-1714050817,-23056,90129544,1601249584,380589208,1675455175,-621506160,-715225200,-711021902,836703978,378442877,-1865053077,-790870345,-963018638,1530372673,-637454511,1850381157,-1734722051,1371845268,-281516093,-1831999608,-302641652,-817871706,-1244002423,-206606217,201928830,1087665778,75916867,-2003226031,2080074889,-685754188,2126650219,290017257,-1127631015,1678240368,1118197121,1060169092,-1718976682,764788462,-2020131826,-538196247,73432224,1053126043,1985533535,488964993,1554308063,126608290,2096089283,-471304878,1782783691,1234186619,-2027651717,170755828,-534255343,-1377588899,1664071943,-1131684871,-1018576444,-1970040750,312970592,1452625379,-1348711296,-658276368,-568405698,-5496559,-538564597,17525839,751334450,-941832987,-226210296,-1109141043,-263763660,1327138097,-908110220,-387317381,1208801443,-1239139326,660077926,-827912439,-719945740,-1686270621,-168927018,-1370852346,-1471970355,180321355,-66977759,1540087532,-834935144,839062452,1637251606,-222249215,-428490850,74571106,-894094145,-1782406895,445005152,-1092299266,531208762,-1583155704,-1496301866,-2056406494,1146939333,1250822322,314340380,-1377210285,282532508,-363701742,-1575665985,265900741,484017699,-1791934645,-484730635,-476858857,-497918106,-77100257,2049052190,61387100,-1935053576,1560389811,-1375582022,117703522,-1395225962,-319052095,1125213873,-900430857,-1141236203,1831311673,1977045154,1077057459,1391104232,-1323972847,945828614,1174302713,-788228596,660569167,-2062077794,-492460285,-517074810,29059091,2015505149,1695769056,-1306932779,-884533656,-48201495,1823269150,-937202943,531073836,-134409916,-1901557462,-1560848688,-665373074,-535886573,-16902638,-1607140499,276482500,597639470,866669094,-62368403,-171595728,410725091,-756449744,-150931572,515483160,1817668123,-469003747,572953102,-268341753,-2123792997,141776992,-119473366,-763865527,-286432813,-622170097,908907913,-580902607,393562094,1113227450,-1678210479,-610945786,-1644996670,1183005052,186532830,-1201317631,-410884166,-1666272233,1022252795,-1413903987,-1492711267,-1919958592,1574607178,86565754,46303544,-1434074775,1801826160); -/*FRC*/Random.twister.import_mti(318); void (makeScript(14)); -/*FRC*/count=129; tryItOut("\"use strict\"; a1[x] = o1;"); -/*FRC*/Random.twister.import_mti(336); void (makeScript(14)); -/*FRC*/count=130; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var Infinity = stdlib.Infinity;\n var abs = stdlib.Math.abs;\n var ff = foreign.ff;\n var Int16ArrayView = new stdlib.Int16Array(heap);\n var Int32ArrayView = new stdlib.Int32Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n var Uint32ArrayView = new stdlib.Uint32Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n var d3 = -1.25;\n d0 = (((y)) * ((d0)));\n (Int16ArrayView[((i2)*-0xfffff) >> 1]) = ((((0xd2288*(i2)) >> (((d0) == (c))+(0x4f4eb3fc))))+(0x768edee7));\n switch ((((0x356fca67) % (0x65736dbd)) >> (0x8d957*(!(-0x8000000))))) {\n default:\n (Int32ArrayView[1]) = ((((d1) < (d1)) ? (0xfeeb16ba) : (/*FFI*/ff()|0))+(0xa08596c7)-(0xc9d16671));\n }\n (Float32ArrayView[0]) = ((+((274877906945.0))));\n (Uint32ArrayView[0]) = ((0x348d8582));\n d0 = (Infinity);\n return ((-(/*FFI*/ff(((abs(((0xc2fe3*((67108863.0) == (d0))) >> (((abs((-0x8000000))|0) <= (((0xfefc22a6))|0))+(0xffffffff)-(i2))))|0)), (((\n16))), (((((((!(0xdbb443bb))) ^ ((0xfe1b1dae)-(0xf487cef5)+(0x1dbd0330))))-(0x602cf21c))|0)))|0)))|0;\n }\n return f; })(this, {ff: Array.prototype.findIndex}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mta(2118402322,-612988270,-1542065967,471012609,-1892454373,1396400502,-1110841941,1235957391,-850319395,-601082542,2129085497,-826180900,-1739725844,-1086169730,-727434798,-1577071922,1221301751,-190371679,573192548,-1526751921,871919703,-1628865359,592765648,2043585525,1313362989,904798305,-1408456460,-359116251,1048519986,-1774598503,-1875958650,8797120,-1805208663,-1550329121,879950910,858745352,-2062302336,1762679349,-394684021,1146631114,796600692,-1948384039,-326403790,351310794,-2060692790,-1467590129,-689588023,78735734,872971137,1188940979,2077003971,621701430,-1624600973,1552817965,-1007621716,-2019090239,695273728,1953209957,-1411249043,-513262009,-135841906,254933325,969755247,1551439571,-460633437,809710027,-1479588257,-1235586018,-215827964,404764114,-1995822817,-1086552561,-617583370,-381592760,805146414,56753865,1727012666,1646860108,268789785,-935681628,1863346830,1615877739,-2103415588,-1166335270,-1174459303,1526814157,-1781315893,-1257086157,-457912029,1392164748,-1785081375,1668113176,-769554685,950827183,-882192677,1554318651,258324257,2144455714,669028487,-1776035721,-129281805,-959063099,1706762699,272183592,-633580772,-2019991304,-637244224,-716937290,2032734496,-52830722,1966820615,-853975590,-317556620,1929938653,-1731061220,-919331262,1631068064,-1448710016,1961379802,-1435150933,1614669272,1341022059,37253214,2102079940,-455698320,1558833273,844141898,1521728623,965890618,-1677172006,-701112528,888565091,1329116326,-518274905,-783371323,-894139229,2113524669,129051353,-1147054683,1282109167,713417462,1836626661,-576887672,-736109390,-1234421363,182307328,-24311362,1501446579,-318602796,-921664174,349331325,8070981,763637603,1949952184,1034796244,-1206958058,-1683814239,15670013,2101413875,-1293853843,-2087841052,1721803969,-65422041,-263560136,-527397526,-44724306,-1182430649,1750771918,1204789483,1125260053,-781793397,829657433,22433325,459929135,326900662,-761216858,-616655489,-1548447764,-511816702,-620208861,-1905111215,960964879,-1988983894,-490853860,247397825,969863134,273660451,-339499916,-1060039226,135958373,-1535303622,-1943388702,157194970,765132672,-1762716111,-1013562029,-1598192186,1042349780,-948459999,-1212161327,-1188033939,-858272444,-429513000,1467838228,-1724281434,-62962873,-2105437691,-1865169881,2100353286,1552895005,-1365060812,1360665163,-136462914,-1424604782,701846350,-293198123,1793490127,260355515,323506063,-1430031054,-1746777750,-1143985545,-974186512,1314217684,1635657233,-181563371,82515849,-2118724812,-102802657,-1068606080,-1018112066,1326616131,-1030476794,1129945037,1722210005,-1536691624,521688873,1697183616,-1413462081,724926448,-1666478433,-1875961612,-2103144791,2024558970,-1519269060,-250613182,-1779436468,203594122,-1483888453,1342772352,516906365,1796883186,-1821368541,-1735531022,-511353525,466220454,922135359,440380428,1883462232,-2019974312,251147259,-342845352,79098144,-372249153,1049863081,55710704,1513291737,467470905,-1622925855,-461791777,480128773,-175149156,1185045490,-1134967146,-1401846590,1440993998,1467897832,1373891159,-1703769722,-1227033892,-1498954453,1540268173,-1379686819,-714337018,1840989518,-1419577919,-713954103,-920723659,-1158521895,493624776,1465756917,262582153,-1956837465,1195231555,-442029524,1451553590,1635809429,1551743439,-746525292,682674288,1885091959,1831461116,39088361,63116716,-222986817,1049984181,-1138520269,-661284184,-154633560,311968655,783277559,596643533,-802774632,1739204621,408707902,1842769518,176103715,-1789059130,-1607548073,2137339232,1506562132,1636561559,53000170,-1444165232,1889004924,293827795,-1613134022,1595774781,2106650044,-894358606,-1108069193,-922709397,1231666465,1135595216,2085808083,-1447834621,2042305501,-961758213,1082820840,-199089376,1375494880,1492437006,472571797,599418821,-680665508,1364600732,-471294330,-660378166,-2123021085,-2027757782,1526821064,2079000546,-342402885,-1882175615,1822378866,-2096560787,37019369,-105708717,198077404,-1058058600,883851552,-1384165204,1663121710,591335165,-1628100403,-585690164,-1754796772,-1368043076,-981012001,689347703,-131264791,-528549772,-345928142,-31166584,-588589967,844826479,1311591599,1187971860,751207895,2112745037,2016740385,-974489227,1937983760,-1171024310,-1489045315,1894105678,-1036344187,1543529238,-468405702,478074841,-499931117,-170686844,598595731,596926002,-28620612,1413155696,-1259248251,-426769929,-2085714197,-928177660,-959359974,-1057283028,1200300969,-1963244713,-1756742652,-690664270,-815680002,-867063729,1593611574,1094280921,272296974,-373030000,-1068984380,334887341,-1326790887,840530561,-607890553,1717093019,606681600,-59190674,-771887952,-861661733,518107529,-1048439369,-246311976,-850505064,-414854621,904264959,-1313697508,1938047608,679656940,-610914334,-746073121,-1982449591,943047067,1347064270,908070869,-999455123,167088446,1704085343,980694904,-659308342,-1916082452,-1636491984,-1148412212,-43665694,1065802515,-16773088,356821321,-1937120204,950950354,115213378,919085838,-466346131,-944616693,-642424794,1527111294,1578434121,-1410889512,-385601444,-1523570009,-150289922,587962667,1830527505,-579637857,-1269287555,670056539,-899591704,-1813739789,1952046338,983330602,589024558,1395337650,41272659,-1149745990,-1538762390,-143245250,792422356,-2026668728,783333185,35089296,-1533829583,-1294814735,-116404402,-224346032,-150075525,-432192582,1269955538,-1564254488,-1225464050,-33436673,1391598673,1818065775,-1125359730,-316231965,1187584793,-232937530,-1502020184,-1932703592,-2124740661,-998612468,1391752837,1896643060,-1174149238,-1393740071,-2124376185,-445182865,419230320,826646391,2037764147,-1348786835,983465805,1716225272,153543219,1847029754,-686312273,980545156,240919855,1064145538,724953336,872879756,-1482701667,-355018314,-1301702462,289318783,-856520853,1734608237,1619870579,1044512663,1088597496,-119155055,-671974938,936068795,870287301,-1862395930,-1008642143,-627414001,-263470006,-1259045629,1136037602,-1892723544,-258144022,486490589,-289123213,-397666103,-1577411591,2033287964,-1371261742,1988810442,1084929627,-1082094373,-1612542269,-385648812,603682334,-1679283992,-1844735489,-262503453,82169777,-529147361,-924062090,530569043,-945463056,-2127460603,-1290005211,-1004067916,-1462703178,-2068501661,-2010552778,-34771537,782462821,-1547815952,-1295100568,-1227958473,-1782649335,1706715285,-827948683,-1126410360,475346013,714124426,-2017672308,1725920727,333463675,1243334660,1242151435,-394484796,303710927,1740887281,1313625400,2018145538,1247118902,1488942395,-777389119,1916016158,1013617869,-10086213,1687090691,-257256859,-1139498279,-603027999,458560969,274362302,681008297,-263856780,-107615000,225812707,233555338,-384230470,369090210,-1961635180,281204142,-1078151259,570746082,52752787,358960721,-1686112076,1757464099,-688528568,-1527494413,-1690383839,557426990,586488494,1912674519,562683080,-1949088500); -/*FRC*/Random.twister.import_mti(224); void (makeScript(14)); -/*FRC*/count=131; tryItOut("/*infloop*/while(x){do { void 0; void relazifyFunctions(this); } while(('fafafa'.replace(/a/g, new Function)) && 0);e1.delete(b0); }"); -/*FRC*/Random.twister.import_mti(352); void (makeScript(14)); -/*FRC*/count=132; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n return +((256.0));\n }\n return f; })(this, {ff: XPCNativeWrapper}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [1, 0x080000000, 0x100000000, 0x080000001, Math.PI, 0x0ffffffff, 0, 0/0, 1/0, 0x100000001, 0x07fffffff, Number.MIN_VALUE, 42, Number.MAX_VALUE, 0x100000001, -0x080000000, -Number.MAX_VALUE, -0x07fffffff, -Number.MIN_VALUE, -0x100000000, -0x080000001, -0x0ffffffff, -0, -1/0]); "); -/*FRC*/Random.twister.import_mti(422); void (makeScript(14)); -/*FRC*/count=133; tryItOut("\"use strict\"; v1 = (f1 instanceof e1);"); -/*FRC*/Random.twister.import_mti(437); void (makeScript(14)); -/*FRC*/count=134; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(446); void (makeScript(14)); -/*FRC*/count=135; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return (Math.fround(Math.atan(( + (((Math.fround(Math.atanh(Math.hypot((( + Math.tan(y)) & (x >>> 0)), 0/0))) >>> 0) === ( + Math.log2(x))) | 0)))) , (Math.fround((x >> Math.fround(Math.fround(((Math.log1p(Math.atan2(x, y)) != x) | 0))))) + Math.fround(Math.min((Math.log1p(mathy1(( + (( + x) ** ( + x))), Math.asinh(y))) | 0), ( + ( ~ (Math.fround((-Number.MIN_VALUE >>> Math.fround(y))) | 0))))))); }); "); -/*FRC*/Random.twister.import_mta(-886356802,1219284572,531372123,1480613064,-1452895081,-1066966621,1999005903,686432053,-1195157989,689612605,-349104863,316302528,513296486,2053697767,-1187256585,1025895904,-1330717406,-503325781,-1183972103,456186739,-266023908,1971538792,1503081291,1875998329,1331410228,149415411,767986810,-1368522431,1599734027,-1353564064,1973870879,579434519,-1152966712,1924908019,-1040082202,-787598817,1683400076,-1795048063,845580331,563977071,1485452510,2142252455,803868346,954342941,368598290,2142276183,-600987253,947917779,1191436388,-1687673939,-309910341,-2082906449,2076597117,425078020,-603642627,1651550094,1191796864,1263271394,805949402,553010617,-2138787280,772382000,1580207082,243089193,908323268,-1444640037,909547550,-1528680291,-129486956,-1166154741,217555504,-25382776,16347302,1835182269,-1146912107,1616061999,862015221,712130665,-2141910600,-2130807431,-2044986306,-2040313050,1938630188,-941601437,1343980552,557032011,982404616,435296286,-1636607811,1979259797,973556318,316353974,1940548486,1119624269,-1515704813,-219738080,-2096842337,1742624383,-724547587,389070688,1545248917,1729652898,-1991794849,-379303038,288933625,470699924,-794700719,-797327799,-1089701512,115481139,1047551133,1204593485,-1711725694,-1544411037,1577349228,383224616,502651507,342051863,1529196197,1248795752,-1331447227,1047636653,361787418,107764404,1357086846,-201420013,104396330,234327650,-1024018938,209644277,-1543584483,433956292,-379060876,155860908,731941736,-801169478,-1458593162,338038251,1021071369,-807887500,1610558951,-1707421881,700014779,1293023409,-1242305046,599377154,460571765,-556967901,-982329008,-1437590403,930158511,-113217116,2058764807,-1588178255,-2082133304,1037714395,-91993153,1010834382,309562518,-1315075439,-289592050,1198634067,-1328620438,1876398566,-1190156505,1157362425,-953073342,2127053598,273766115,890173561,1234705989,1682897510,-1172364115,-1442824661,-1684130501,1113140567,-1000035841,352669332,975839035,1659748607,-637661179,774499679,-152840574,-1198998552,252131220,-617306678,2145937457,-2011944665,-820005470,1979532524,140069833,1021655151,1553529334,-893366532,694839735,577426685,1669000103,1171618676,-1504069708,893003660,-629193605,-1354918259,1894490691,482781549,-813675051,671982761,687128100,1944964192,-1163603109,-28806624,-461741224,-1325593525,1162474855,-346677758,-1940961449,-278954197,-1951423405,198406060,2107735226,-1660631043,1611984151,-104250919,1175651908,-1958561415,-778084350,-84613165,-1962398570,785144302,680255644,2114220932,-1497257162,-2010348908,952310426,-578964614,987358745,1850199376,462347517,1742308897,1195432760,-1983561738,847215773,1633751420,1098106205,-1575601988,-1720180086,-208011553,1562482614,2062198942,495436072,-805819094,1516001024,-538244486,1151407882,-1005809152,-477430894,-584457141,-1571973530,1300712499,558213563,1697887978,1198755807,-2141527434,2095150111,-1575500665,-1800883079,-2039003368,-1250185556,-836728079,-1803267177,-122836505,36022739,1990815979,1637640476,-1978307606,1383201460,1824312208,714171993,-524394376,-659085375,-1315108553,-306590307,1407993612,147238157,836026919,-940427299,-1011250847,-579757316,1156919043,1623167956,-325685937,-1868113870,-1434068280,1400037029,82119944,-811579130,1367384833,223053875,624415994,-1440426832,-1579164606,1542871235,595659326,1639099641,-1825357579,-332378388,122453758,-323700691,-41959062,1445452350,-36538360,1327561434,2013844676,-873593198,916488087,790179625,38041843,2136446070,-216491222,1835644678,1598833580,-344893991,-1539541530,-434965272,-78688479,-166241079,-616790944,-508115935,1657984587,1111555451,1320498651,351056488,-326850378,1037674748,2004883303,1571350679,1524188233,-1128466671,1580538089,2111681245,-251194638,-1886892956,-921063559,-1644034027,910374237,2093506521,1792139750,641641101,1762765035,2111882552,2014365822,999938373,-64971524,756940812,1886868371,-1787053045,451176877,-1448092797,-434507533,967443080,-1288651292,536188922,1513101311,1487415323,1065191119,2058191885,2003805831,-1730005590,-1540037161,1471754659,-1935190256,1026458763,-1069339917,1554772678,-334618990,518548299,2070728664,-1992843785,-1206196837,1589524061,-542871352,447471316,-98267584,549685502,806586174,1144191721,-1436127733,-543311078,-591956973,-1874432160,417315004,356405924,1909586865,1429331424,-132848356,349554342,-1826532098,-548517795,-1857557009,1600356,-646476128,-897733571,1632834608,-567526365,-1883129859,2121263309,1570424260,-1647467513,-1233102178,-1749160212,-16867195,-1939162592,1864596598,197585347,-23741598,1209017528,2079665342,-1613130370,441308873,47796568,879103918,899347662,-15597140,-1683788039,466756171,594694712,1291054714,-155162324,-1029305099,-687884367,1688927413,822984348,1061885157,-168949678,-303632842,1539867783,951870574,1165361609,-1602180153,456957755,1483992795,-955253145,-894815199,-1603931725,-697701579,1969337565,-1150639636,-1568354323,-1279391380,-7490621,440674989,-2010268840,-889491067,1374050490,1910094284,1108797949,1158221731,-939082625,-1288540326,-55665990,-212615402,-1493642363,-229336493,-1044206457,-1405101331,-1526911936,-1917826102,-1393191166,-494563525,458096637,1547563720,-1281630677,-1326598573,1806412969,1084077547,684622891,1715265847,-1738170688,1506142628,297525509,1168810690,1330507207,602608565,-1582431252,-618793394,-1358364847,1381697638,15420163,1444028587,-618622479,-1695997633,1382447728,999209233,-1744738081,1524648194,877442978,-1383432076,-1416505549,1145245087,-1358150703,60905498,2053628023,1794623054,1908226133,-437301782,956734308,855904553,-35426289,1813230329,-161603638,-2046587036,-174895778,-187173471,1579305127,-361091839,-160021109,1032283286,1924189959,-1894772365,-1088475468,1232164323,-1910349927,-1161091619,146042720,-589534381,-1706678384,1084122841,143772964,-572647465,66084034,-993462418,-120947706,786259310,-2018832957,-456412194,92789349,-1570611994,-2047370707,-1940753276,433296309,-864441146,1324284898,-126992616,-1406213611,-1837553459,988636681,301037192,1215191493,-1875624260,492936724,1624900186,766949535,-2104039581,-1967046801,-331165611,-1293963669,-1553658795,-1781570852,-1109463112,-1997447283,-350293110,1414702879,-2076664886,-1704985084,-558930229,173894962,-1500538957,-1257004567,1752582764,121677844,-1881337363,1864638441,-1096317795,-1190779331,-840225256,-682993522,596569852,-1355619697,785485568,-66246,-948368840,-527449231,-1334421495,-1494743945,-1651406239,907829579,-1824303057,-1810458760,600878459,2132464868,-302046631,-1901999120,62361346,-263037890,1046055208,1333472777,-152778674,1269151395,-903776604,350294216,1418118425,1632436249,650806769,128334252,1451621721,-1091631266,1781709696,-1789157479,522336158,-1304042345,-1508547597,1628566863,-592956673,970750460,-769505472,836741085,-1153655100,-743625702,-1045854357,558706470,1145786551,1478285736,68233410,-1765214600,-1159992830); -/*FRC*/Random.twister.import_mti(129); void (makeScript(14)); -/*FRC*/count=136; tryItOut("switch(x ? window : window) { default: g2 + b1;case x: break; }"); -/*FRC*/Random.twister.import_mti(227); void (makeScript(14)); -/*FRC*/count=137; tryItOut("\"use strict\"; h0 + '';"); -/*FRC*/Random.twister.import_mti(236); void (makeScript(14)); -/*FRC*/count=138; tryItOut("delete\u0009 w.x;"); -/*FRC*/Random.twister.import_mti(281); void (makeScript(14)); -/*FRC*/count=139; tryItOut("\"use strict\"; Object.freeze(p2);"); -/*FRC*/Random.twister.import_mti(291); void (makeScript(14)); -/*FRC*/count=140; tryItOut("\"use strict\"; this.i2 + '';"); -/*FRC*/Random.twister.import_mti(300); void (makeScript(14)); -/*FRC*/count=141; tryItOut("\"use strict\"; p1.__proto__ = i2;"); -/*FRC*/Random.twister.import_mti(312); void (makeScript(14)); -/*FRC*/count=142; tryItOut("\"use strict\"; testMathyFunction(mathy1, [-0x07fffffff, 0/0, 0x0ffffffff, 0x07fffffff, 0x080000001, 0x100000001, -0x100000000, -0x080000000, -0x080000001, Number.MAX_VALUE, Math.PI, 0x080000000, 0x100000001, -1/0, -0x0ffffffff, -0, 0x100000000, 42, Number.MIN_VALUE, -Number.MIN_VALUE, 1/0, -Number.MAX_VALUE, 1, 0]); "); -/*FRC*/Random.twister.import_mti(344); void (makeScript(14)); -/*FRC*/count=143; tryItOut("if(false) {L: {print(x); } } else if (eval = x) {v1 = new Number(p2);this.a2.push(p0, t0, g2); } else fbvduf, x = x, x, itnmku, b, hbtxke, jssbst, x, whgkls, tpezdx;print(m0);"); -/*FRC*/Random.twister.import_mti(615); void (makeScript(14)); -/*FRC*/count=144; tryItOut("\"use strict\"; mathy5 = (function(x, y) { \"use strict\"; return (mathy1(Math.fround(( ! (Math.max(Math.fround(x), Math.sinh(Math.fround(x))) ? -0 : (0x100000001 ^ (Math.pow((42 >>> 0), y) >>> 0))))), (Math.asinh(((( + ( + 0x0ffffffff)) && Math.fround(Math.expm1(Math.log2(0x07fffffff)))) && Math.pow(y, Math.log10(-0x07fffffff)))) | 0)) | 0); }); "); -/*FRC*/Random.twister.import_mta(-183399743,-1765353578,-178806588,1204180649,-1738009538,1018673307,45877432,-83430625,-1877006715,828218952,-1218306,-1728984353,1522690089,167770500,833718918,328304466,392357480,-1917872613,-1352273448,-1479806096,1619817341,-1223002078,-1702493107,305606228,1651065738,-1925175100,-1779592652,-707272094,1532677706,354134396,1256849441,-883148715,-2063618669,269317103,-825967307,-2017109356,2121170985,-1678544819,-1317398266,1764957094,105909707,214538342,-586526454,-839659282,1819984341,393975209,320950787,1457538287,802554085,1297083759,1801066212,459681442,384777263,1059559929,-1144839614,1919084794,1417430845,1511132688,-864379488,-935008921,-466181694,-743006385,1835372637,-1108793497,2142138337,-1696997240,658928252,-656852086,1233520912,-359774694,-574892161,1529956270,-209447351,927117246,1506579867,-351028468,-861133568,686031095,-1085576364,-613916449,452217911,1753051667,-11389780,658517955,-1434815921,-1125571352,-672859583,960095184,-1313917581,501804588,1602205296,-487218126,582983622,-642064986,1123889409,1082885327,-1341664542,-2027150205,-434970684,479475622,2010069454,849820833,1997766107,-1410124844,1693507972,-1058708830,349905425,1719707608,-377639697,2077486750,-688041088,-90010101,1324493706,-1701743256,-4444107,-909109951,2034449365,1122771462,414247586,-202792198,1226863866,-1244195143,1246197945,-1504469082,440196235,1269306485,-634934174,-1153598317,-1616272516,-2140790923,-1859074763,927179384,-2140280648,-317048398,113431219,-752034568,936379892,-2099166530,-2054286756,1929427969,407348216,-737701065,1945755713,1410796823,-1447895655,949989616,605500419,1481902753,-573454231,-1965137203,-1399585170,-114159672,-377906211,1816407547,1165194833,780905071,-1302143566,-1142527968,581138882,-493751205,1198425422,-1869205064,-1661650055,-773995437,2135806569,-1178116443,-1580513468,-1686276452,620780368,148315668,1515272031,-2092463459,1138081319,-1142704725,1183032041,37536285,-2023126702,1398269900,-1947156900,449141330,-523384464,-997255557,-1690478644,-1492363077,-1645475092,1075085488,9645613,1368636314,-373425575,154305091,-1532329581,1364633631,-929102553,1125928948,-1953868381,1491573042,481506450,1549268435,-1401300088,-7166911,79105341,-174296778,-1007869584,-544893396,-339417222,333211326,1869814633,984997420,353796752,-412701131,-564919964,1240051451,-1816236814,-1103174085,839859637,-452781302,-1748242282,252647808,750144997,984607310,1682282328,1111796740,-656229164,819161513,-530322444,-749936589,-306329867,-514557297,-1446711724,-432573089,63969251,-1006003853,302604582,-958903445,-869984841,80803876,-1682313849,-598932126,-1676454620,-1695193416,961507642,-2013210377,43686668,1541338925,1835784619,-1040893437,-1698781377,1850708969,-1863946569,-139972659,1036168041,3786767,-1354341948,-467079171,575381656,175900025,-355418182,-1019190237,-104471776,1045355171,270533332,700233701,264636424,-1389204790,-657927231,-339227056,-1758728703,-719678241,-375915446,84948284,1873795140,1555363163,309403740,2048503641,1623073063,-1550449898,2098257235,-1643563557,-627041562,-113546690,1456585343,648594459,-209700554,-292688884,-1564050817,-1564323618,859226681,-731289560,2096437559,624360516,-391394813,-1893748628,-1733597684,9852671,689035989,-701792810,-132797337,-928400089,199141775,125274871,646064801,-266505416,2072161193,-1162608010,1799503752,270108573,-1512603542,1911005480,1452559895,-1732097599,457459105,-1886555898,2125573116,1499520266,-1592561802,-1912275128,610575289,701197811,-850164252,-1911585291,-1952127147,838093685,-1541106816,1376046169,-357407053,264310027,-185209764,-806881364,-1930094957,2103780591,-1649318001,974927354,1647172046,-1559763323,-756763357,1848338360,-1916677579,1897609777,-1038022798,154537400,1729434123,699761888,200884016,-567302938,2005193461,-1834545349,1583990352,2010125926,-1981844858,-830266172,-1740385832,1286855821,-358937245,1234354872,1866987674,309788258,1784829907,-840579983,786168970,-812178619,1493861010,-1281460639,1436200768,-1819379923,543039778,-1979774839,-1206747595,-359429130,-766232385,-1268378917,-314693455,-941153030,244891577,-227823239,1709337933,1078113869,1339793631,1522773407,-689948756,-1540590409,1364617947,353546798,914516464,158535705,937291770,1299031119,365100685,256750334,-587600410,-1771433429,1883081044,1440038041,-2050151381,-341728233,-1829905181,-743452767,-646162372,442303213,-1342419507,-1075586842,-884326477,-258143193,-590042820,1633078763,2107278638,471784576,1099265821,-1424802298,586741478,-586675492,-794958208,17288914,2136890625,1687895153,1818832325,-430886682,-585311752,-1513739969,1264955336,-766345408,2090159906,1599296000,-1945749304,218766734,2049835758,-1759908066,130618084,-155163078,516014003,-613679554,1495837825,-785128621,1697583525,-1684018699,652995611,-1364905301,1848527625,180551206,-52893367,691086110,1113804020,-80382541,390028879,1953733159,314198390,-453207348,1668345592,-2104754586,-1771173491,-587964040,-861511244,-2003777623,-341820203,1438515924,1524125057,349110452,-1079098638,2106022590,-1113569544,-662849477,653964957,902624043,-876108403,-909673561,-1701502841,-899047771,1925124602,-304005605,-1507974765,-2107652922,-1700750117,-2118729952,2025017385,399594997,-1000778835,-1663786537,-1689593057,-1407718604,585931118,300427256,1825953528,849125742,1743978078,610037965,-1435639792,1622734462,-1940948439,-1531381005,-37709915,1727345968,704480925,1304483697,-2034767151,-1928481328,-1008741147,626501388,-29818068,-517912205,493115734,-1236639560,1331842174,-1050145326,-1855871517,563319009,511937936,2102989374,372900765,1845409178,1705575337,-1991663719,233743875,1423961843,251131521,-788180957,-1968514461,-593113493,-1145682910,-1222353575,1924115010,112392479,-990153522,1833692517,1632499872,-1254703185,837697172,261508893,-1332727357,1736049856,-763819889,132617642,-304436031,-241235530,1652317810,2115820935,1624674139,-1922616354,-554994813,-828031836,-1447975067,432461325,1700250246,1846324899,1580260337,-535125918,557045431,1886132697,-2045404501,-988534689,26823256,737640208,-901312713,920275419,-521611778,882019254,123584857,-971855875,596267827,1086421142,1335053375,-1861469538,-1592022176,-1614067167,-1737202686,-923835220,-78364361,27289433,2098014350,1689601537,-1219248951,-446463973,1484052087,-1307610828,-195913673,902621719,639066392,122598174,-1712594108,-1480806587,789535121,64248836,-2002690461,-1522840962,-977892467,-1469786199,1565317305,1691399990,125289767,1720183008,476665746,315247288,-766136148,410455869,-690762723,111630830,-773722159,781079345,-1854494327,-1488019243,1957492393,-1489596566,2013676382,1714516379,-234293186,1353458544,802877535,1162168511,-339906696,-780392369,-552553720,-553507960,-1104168519,1798558468,1685882863,-735732292,315882908,-1255179285,1874223425,547036871,-285727715,-1446821633,-374787978,-1719031841,-1899873632,989605251); -/*FRC*/Random.twister.import_mti(215); void (makeScript(14)); -/*FRC*/count=145; tryItOut("/*hhh*/function xbewqi(x = ((p={}, (p.z = delete x.c)()))){v1 = (a1 instanceof a1);}/*iii*/v2 = g1.t1.byteLength;"); -/*FRC*/Random.twister.import_mti(322); void (makeScript(14)); -/*FRC*/count=146; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return (((((Math.expm1((Math.max(-0x0ffffffff, x) | x)) >>> 0) >>> (Math.pow((Math.fround((Math.fround(x) | x)) >>> 0), ((( + Math.atan2((mathy0((x | 0), (x | 0)) | 0), x)) / x) | 0)) | 0)) || (Math.imul(Math.imul(Math.max((mathy0(( + y), (x | 0)) | 0), ( + (-Number.MAX_VALUE | 0))), Math.min(( + Math.atan2(( + x), mathy0(y, Math.PI))), (x >>> 0))), Math.log10((y | 0))) >>> 0)) ^ ( + Math.fround(((mathy0(Math.fround(y), (Math.atan2(-0x100000000, ( - y)) >>> 0)) >>> 0) && Math.fround(Math.fround(( ~ Math.fround(y)))))))) | 0); }); testMathyFunction(mathy1, [Number.MIN_VALUE, 0x080000000, -0x080000000, 0x0ffffffff, 0/0, 1, 0x07fffffff, Number.MAX_VALUE, -1/0, 0x100000001, -0x080000001, -0x07fffffff, 0x080000001, -0x0ffffffff, -Number.MAX_VALUE, 42, 0, 1/0, Math.PI, -0, -Number.MIN_VALUE, 0x100000000, -0x100000000, 0x100000001]); "); -/*FRC*/Random.twister.import_mta(1363044646,-715678289,1158169453,-948030036,936272053,-578114208,-975371077,-1398954317,1152390052,2121515874,2120444854,-695111123,-638061026,-934992957,147787131,1961831989,-79411293,1004262697,-1246443170,877809817,-1102375634,-1624367823,-1689655190,1302458087,1509115490,-957287982,1742859455,394487243,-1651229792,-1145789909,1248250575,-977872475,174454550,-415087932,-1831776743,-2096045714,258924812,2119622808,-633553032,-200344269,212218389,-765607476,1338559337,-1386832703,1770000312,-2019080303,-972355441,-1671824933,1532222628,1457382794,-1892095689,68233029,1517231451,-783814507,-241060908,1486270356,2025260508,2095383377,-370818344,-843771373,-1923832378,1377451529,1602329431,-1071304270,950010735,-1738236749,-441719198,-27909105,-13714008,-2056631654,-2139513396,114596456,-637627623,793667273,-1270914394,518341289,-626268847,-604183033,1751654759,1329090011,18997986,491094840,-616529722,-522166528,1827156762,-1794624607,2025881893,733137526,776765800,-1544511215,-1782437654,-1398843322,1244158947,-779374910,-192043575,-1632369760,1469257550,-1328104697,1797111007,-975265845,1635411964,-1075488924,-1548486318,1025129660,-518341501,1107592244,315867917,-1288312008,11593073,1027910237,-1985527232,47191660,-2080299731,-348647738,-1455467380,-346104908,-260882144,-2030915790,-447668458,-551125409,885483226,-1903909183,362493644,284011092,-778610816,1281240721,1906356537,2117791530,-693243784,1627448198,1021040124,-766509869,1902807411,934507847,-670472246,966024328,2137816280,571573877,1844436225,-758603137,2108573152,1229318042,-1429872551,-393864043,843282139,-718016209,1429738989,-1764523428,-1408526240,-799041124,-1181929541,-332581015,-992093902,1911948480,-1198052301,-103171289,1768013734,1443659192,1850928399,1077744020,1217028170,-1730059940,1625974888,1203106443,438326700,-929970272,-2058231838,-1445696353,97249363,-919796738,-65129584,1337053957,1637542417,-1573013540,706322661,-135897954,1550260721,602881590,1244405303,-1450375172,1559467175,1653731959,-916799354,-967353579,-986641882,1559735364,-2136143260,-258304694,-1186904376,-1943390927,-1759245264,-1590794786,1933864258,1318595234,1946469284,-662022572,-1316744232,-941817323,-934301234,1243979720,-1652516786,358245905,-923515780,233058531,803160772,1555678549,1308019814,626110743,-268521606,-2070450230,746606573,-691042959,420864074,2116065212,1504861825,798588836,-1818095236,-1652528207,-1468494132,1570024173,28920005,-1031177609,1755464948,-644299380,1764189977,1628727557,-748773349,98311692,1061459935,-1645676477,2087864778,2127220774,1743665162,986136255,-285877599,-798730824,274022867,812302628,-1679048335,-2058334589,1431175015,1233273085,-1073158788,1425611689,-2111178505,1642277406,-629331534,791712426,2113059336,1553992961,-726287809,1313896064,770455283,918830323,-1951017048,-1459854211,1125916901,914635615,60359723,41285244,1788127721,-1791866339,-1786129397,-100517837,196413360,144832679,126551939,2020461616,-1865032878,2015307595,436491955,1622712214,597893346,1868343491,-1919748016,-1127021870,-1059991624,-496442300,2022478426,-1475383109,1528504903,-933122225,802183570,-1327724484,763636542,695603995,-410933753,1780914562,1082212395,-220410231,-2018842236,1962258537,1093076755,1747696599,-716989724,439147332,2016814294,1553889748,-1670910004,1404515990,390127445,1358333869,62866322,-1358234987,1257805078,2055463250,936090959,-1285327562,-2010376441,266998473,-416880765,330360548,-1179099868,1749628574,1823520210,-445226901,773695287,-1284773352,1922050659,-1762486122,276380583,-425726967,1858000211,-71134008,1849593181,1365723889,-1574083555,-1106748310,1482651084,878967370,1611933249,-804499356,-896546903,-492230333,-1004513052,-1621574476,-591296614,-1464352263,1179324592,780344567,-1913674,-1396454636,-1001846329,314153093,380213360,-1973027778,-456231572,807985049,-372951901,1505418784,-272829235,2110939630,681005005,1174621556,1996591131,2056547150,-553995935,1807100857,1821171118,502253626,-1217069400,-1295765398,-1453598783,792947785,-1075399954,-1460776252,-1484691580,-1920145056,-1971429848,1163019486,-1955229976,-335046184,1963891020,-1094610028,804940197,317651152,1681325964,-1828899731,657702381,897473664,2071944663,-1546250037,1684571124,1921992795,-374202560,-38067562,1201391851,1727436473,1255987350,418688194,-195568616,-2117176474,608806260,1429176652,1493908368,1769325645,487273047,1927849385,272646006,-1657322217,1132167440,1148449915,507873972,1655331686,769675382,-203025050,-1140549377,227536852,1276507929,-1592511546,-2032878468,1670812793,-139296093,798043225,-1011741383,-674289100,1203868017,-224994348,-2012784002,219073235,1630634914,1913118656,-1643161453,-1936518481,-867043942,-1951713092,1900391637,1273558856,955226382,1030267619,-1133153899,-1002407223,-931233424,-2020898124,-1425303395,31537697,-2114580263,-1947956330,-2108222210,941901360,-625828422,-1960492679,-1935146392,-1694550585,-1342298409,-641664592,1557222878,-746128164,-1393341749,250704942,81270407,-2046834260,197879919,1731868164,263954006,546551462,-483699428,1654811318,-1946370844,-1382296677,-1188431883,1377745080,764369076,-1005100721,-866730327,-491501172,715678033,-1622515855,145597086,340794318,337790009,1735974972,-217894853,1633235131,-128814434,-1453365416,179042459,-2050754936,1185179004,461823375,797600836,-1202935673,601550020,1445646573,1188577376,-1665791520,-920568870,-1921232156,-431435643,411019162,1173021524,-1847180793,1311187535,-9675474,717627318,-1345758524,-1853410515,1421244952,2073931722,1142032093,1340649002,1546295934,1964145277,-812643984,-591106725,-359062709,-1628427658,-255388852,1439551580,-265307572,62640026,-1275633503,-1728312363,1004305385,-1652765080,492462650,809914618,-16958299,-291210183,1666891124,-2021196358,-437950796,-1715522484,549534620,-1034031483,489113586,537539830,-1485509683,319114616,-1403345619,-674922930,1002879535,-595247282,-1633129923,-1244599079,2119245337,1756925083,720798958,-967099075,-1961640857,-968371952,-627021579,-713346982,-410190669,307582507,-393062423,1836072038,1354079883,-211528831,-761929193,967246074,1581967266,187567914,948647022,67747659,-1869419382,335758849,-556453759,-662024917,-1711140327,876887180,-2011534619,-80802078,946018270,1903116938,2026734839,-2049896664,2101584397,1199225798,830198307,197009439,-175610700,1233861098,-138033696,865043990,-449788671,-1821623971,557050074,2084065260,-1244704733,345958475,-1932368638,-1213288379,693399010,1507749922,-163606558,783039562,-1186966175,-1147071178,-2140074089,-93299960,227009599,-339870157,377036979,1136881703,466467379,-1879202709,1747666275,-6496659,151894243,349281158,385750458,2058938728,-355256452,693575917,317524561,-993462152,351732819,-866711281,-1569198089,118923737,1116007528,-676729784,250754597,-446063725,-1542498071,-1850633346,1512275657,1277649862,1352482127,-2132548996,510273216,-1392287149,898893508); -/*FRC*/Random.twister.import_mti(117); void (makeScript(14)); -/*FRC*/count=147; tryItOut("\"use strict\"; mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Uint8ArrayView = new stdlib.Uint8Array(heap);\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n var i2 = 0;\n (Uint8ArrayView[1]) = ((i2));\n i1 = ((~~(4095.0)));\n return (((i2)+((~((i2))))-(/*FFI*/ff(((-1.1805916207174113e+21)), ((((-((((+abs(((8193.0))))) - ((67108865.0)))))) * ((Float64ArrayView[(((~~(-0.5)))) >> 3])))), ((Infinity)))|0)))|0;\n }\n return f; })(this, {ff: decodeURIComponent}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [0, 0x100000000, -1/0, -0x100000000, -0x080000001, 0x07fffffff, 1/0, 0/0, 1, Number.MIN_VALUE, 0x0ffffffff, 0x080000000, -0x080000000, 42, Number.MAX_VALUE, -0, 0x080000001, Math.PI, -Number.MIN_VALUE, 0x100000001, -0x07fffffff, -0x0ffffffff, 0x100000001, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(331); void (makeScript(14)); -/*FRC*/count=148; tryItOut("mathy3 = (function(x, y) { return Math.asin(Math.log10((((Math.hypot(Math.atan((( + Math.fround(Math.log2(y))) >>> 0)), y) | 0) % (y | 0)) | 0))); }); testMathyFunction(mathy3, [0x07fffffff, -0x080000000, -1/0, 0x100000001, 0/0, 1, 42, Math.PI, -0x100000000, -Number.MAX_VALUE, 0x0ffffffff, 0x080000001, 0x100000000, -0x0ffffffff, -0, -Number.MIN_VALUE, -0x080000001, 0x080000000, 0, 1/0, Number.MAX_VALUE, -0x07fffffff, Number.MIN_VALUE, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(456); void (makeScript(14)); -/*FRC*/count=149; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return Math.cosh((( + Math.atan2(( + ( ~ ( + x))), ( + Math.max(x, 0x07fffffff)))) ? mathy4(y, 1/0) : (((((( + ( ! ( + Math.abs(x)))) ? (Math.atan2((Math.hypot(x, y) >>> 0), (y >>> 0)) >>> 0) : Math.fround(y)) | 0) === ( - Math.trunc(( + -0x080000001)))) | 0) << (( - ( + mathy0(y, 0x100000000))) >> Math.atan2(1/0, 0))))); }); testMathyFunction(mathy5, [-0x080000001, 0, 0x07fffffff, 0x0ffffffff, -0x07fffffff, Math.PI, 0x100000001, -Number.MIN_VALUE, 0x100000000, 1, Number.MAX_VALUE, 0x080000000, Number.MIN_VALUE, 0x100000001, 0x080000001, 0/0, -0x0ffffffff, -1/0, -0x080000000, 1/0, -Number.MAX_VALUE, -0x100000000, -0, 42]); "); -/*FRC*/Random.twister.import_mta(-1051993183,-338907617,-1098358847,-2121006699,1790354123,-442255306,-1377027872,1337481636,-857738025,-2093667036,-1076894179,552471574,1547571960,1539017246,-1058425924,1394086317,-344689134,-647468650,351187623,1491344358,604595603,-979128757,-220820097,1304961171,1367320361,1962352147,509218965,-1029969846,1333385590,-1921091219,-264557755,2111660677,248087425,1813341766,-2050487682,-1882590730,-1197409544,-2045393119,-487656345,1588443404,-1563792528,2092679573,-1215842161,-1368221082,301879918,1990538992,1306229237,-1034434427,-223474827,-1035628134,143056801,416052409,-1084605253,2080952173,-374038938,932244097,-1069545613,994672442,-549351568,-1518270465,-1834498707,1026867600,-1920382142,2087798429,-953924034,1599777669,573883287,-1279139715,-1610519359,1788129207,-601877947,-1118151731,-620783499,238941546,-1325207113,1197371980,-1783631001,359584498,399241578,171641322,-1956563180,1795433759,1811345935,1509848521,734003592,-961405815,1140045270,1375600852,340191671,-2084556881,-617349433,441732523,817524987,-1499168401,-558087209,636398056,2114957426,-968855290,338601470,-516292397,1262801322,709120867,446634115,-429047628,1026087012,-445437148,-703922964,93630268,1832109754,-1708946602,-1313924998,-825888235,-2051818193,1462003164,-967307909,-523916475,2024090736,-271302173,-339612214,1780867991,1622662938,-1536563361,1798072414,-1353886086,448971043,946330639,534531081,-385149255,1839674929,1046994440,391882107,-222775010,780906321,-71184981,1728877675,-483196638,380115416,439333510,-834797575,376417899,240416547,1244757454,1717043954,107928226,1764827325,653232755,-320520803,1146133019,-2135057625,-1463936156,-1079265824,-1861566696,-1435574153,-1125898692,-1146189074,2141114617,328010418,-1440188141,-1332976576,809924132,-760905681,-1459652321,550525827,961812058,-1403877067,-1182277357,-176058034,-1434319236,1549468936,-69331232,-2087453872,-289440239,543492557,-944095054,-830780677,-1095760435,-432907525,-1886307886,-235518209,1679639505,-1988910786,1486172079,1340886390,1980132696,-492195040,-1208470153,1360602951,92197702,690103717,1698576978,-371759218,-1039981673,-1489167674,-1066255654,566415125,-1283459105,-325119642,669296832,2128573911,-2126649268,-1148270924,-605619117,-688451507,54409956,-1582676017,1547931483,1634950952,514357072,1353104820,192966481,-1499957708,-2132936406,-1654152151,-1295565242,1430803386,-562502410,-650464478,-1319772939,1405992256,140871619,-496012499,947274172,2085707657,1836638511,-1209490787,497320577,2004486594,1205936273,2083545825,-1062110428,-1091475066,1497480910,1640535990,60712303,663384952,503178465,-1694478922,724743802,-78734456,-1349493356,-428729665,-521289470,-1603523418,1936210614,-1449526119,969942654,259805875,451950743,1929058324,1099227327,719330259,-561967985,-157437771,461437761,267217579,-1207993893,255120413,1761548687,2095552955,-1567922262,-8064105,1443123364,1807768880,-42305248,458066861,2015610745,1654349588,-1432320295,-1715674385,596452105,-1641097811,3129887,-670838194,1259472349,-1673639444,-1832457047,-1284381768,1958778508,-1782350789,1272913223,-1053775851,-1101221201,805219999,-1769860372,-1225079192,1971973292,-795718850,737138087,-1655564789,-832815232,-1627181450,2126476648,-230177103,143986405,-19427873,-1675985238,1155240797,-770447965,-729694074,1213679360,-1085405597,-1327673218,-908869671,-254559764,674177627,-1792635118,327857009,1451199560,-1241932636,-1049808623,270927547,924593946,-1298757690,1974202175,-95584194,-633304333,-1703552349,997415721,288162272,-510763529,216254388,820746657,403694476,-1877457405,2012964001,-1674533073,-1103221018,661351244,813018694,-1281508484,-831821690,-1050178705,221187930,-1273311074,1245245798,55772535,1467014005,-762671070,1082969265,-1170023564,21332054,1031027015,814864344,1945231432,-353976324,-1717119108,-1422312316,-849480300,-927692721,-973430041,-777754995,-1753098726,459700917,-1118554917,-733928674,-606937506,-759923957,555600812,-61907709,892456965,-1566321250,-1431711916,765069273,156975279,1314429924,-1644344261,1353308891,1265326135,681074593,1675806086,1886197326,330722331,965690297,571521424,1294460531,-1297685279,952643981,1966791625,-1951035048,249167427,872913542,-912602348,-539900917,659817746,-722081704,1246310634,-1707766361,-137630620,-1534775426,452703631,2041786345,-25797745,-1827659339,-654046074,120607877,-875156228,1537406187,-1951144725,2032954437,1104726341,2089486928,-1051095135,-1880807298,-255692096,-1235078303,922532447,584758331,913435245,1210005068,210113352,-1631217733,1081623214,2033718148,-372731644,1855538780,-741712446,1551194040,-1378563407,495777313,-1750738153,-109980358,-1211247741,1816055383,-1967658069,1647391902,-1619717278,-1530293272,-1476851149,1549409789,1371871320,-132728993,-980088969,528894465,-1375853639,-951035233,-917175033,1316104858,-407634869,-590357966,-1338053900,1851600421,320623246,168808138,399315094,-575299539,1034229679,564591021,756967063,2131688363,-415898603,1871119865,1795532405,775526787,1890043625,1470692290,1302710383,-1310699905,-1156630540,-1769674788,-1537942381,1787902259,827186978,-1493244775,1680056893,1516802748,923933695,960348915,-1574646800,-356135707,863354469,1087654568,152097883,-797700356,861236220,1314884411,-1364831098,1130699771,1236412781,1246417559,-514292073,-1632755747,1577065673,98738546,744027181,1722031487,410453078,-466268456,363342602,440107881,1228221594,1820453116,-447305131,1201007086,939020495,-1119605829,1215810470,1238769157,-1545600440,-1154584146,-555685,1694976226,1069532173,-1257314287,1142646218,-1736132618,-625252096,867996897,-1412022213,-2041876599,1847806290,376509027,1670148957,-1318100601,-567530486,1698882746,-2056176010,1747587341,1901699253,252849106,-242960276,2053619135,-1308092423,-864361628,-50473792,-1669314982,-997926147,-1025146311,-154361633,1073263159,-1573846786,876106788,107855356,1132071635,-798329406,-1335905381,414018102,-736726170,-1442633478,-342015498,-776638642,-2114753638,-1863313389,814630005,1247265129,-1775058942,1737826259,1356604013,-1403429205,-1062610827,1155294193,-1086507566,1919705908,-2139800296,624050588,790764809,-478364263,100635619,992411340,359543484,1460474140,689919283,934245911,1600294552,1875343920,2011488902,1113869093,1575729837,586735029,-1128177527,-1404668152,1228263954,-1910299895,-1572588148,-218169457,1724721099,403317822,-1788651894,-273137285,342806228,-937312689,-1153628582,379505635,-1887901521,-27573478,436341853,-1424407770,-1332131222,-9216251,1939470400,1352804957,-695205265,-493956062,1338600637,-398405097,-544918031,-1234289333,-1895835672,-693384793,-835190603,870813306,695186253,1887146695,-2016444577,-177532636,-448467394,-1445859996,-576009035,-1960530210,27888688,89269304,102134566,-14606724,-1808229593,831123633,1019539663,-329390399,-287131084,1604361738,1328575991,-1822306165,-1775165466,-2001119885,-1860423778,-502289948); -/*FRC*/Random.twister.import_mti(142); void (makeScript(14)); -/*FRC*/count=150; tryItOut("g2.m1.get(g1.o2);"); -/*FRC*/Random.twister.import_mti(161); void (makeScript(14)); -/*FRC*/count=151; tryItOut("\"use strict\"; /*vLoop*/for (ufzczq = 0, {} = (yield (4277)), z; (new (makeFinalizeObserver('tenured'))(\u3056 || NaN)) && ufzczq < 82; ++ufzczq) { c = ufzczq; t1 = new Int8Array(t0); } "); -/*FRC*/Random.twister.import_mti(292); void (makeScript(14)); -/*FRC*/count=152; tryItOut("\"use strict\"; \"use asm\"; s1 += s0;"); -/*FRC*/Random.twister.import_mti(304); void (makeScript(14)); -/*FRC*/count=153; tryItOut("\"use strict\"; b;e = x;"); -/*FRC*/Random.twister.import_mti(354); void (makeScript(14)); -/*FRC*/count=154; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return (Math.sinh(Math.cbrt((((((Math.fround((y & (y >>> 0))) | 0) ** ((Math.cos((x >>> 0)) >>> 0) | 0)) | 0) >>> 0) << (y % x)))) + (Math.sign((y ** 0x100000001)) >>> 0)); }); testMathyFunction(mathy5, [0, -Number.MIN_VALUE, -0, 42, 0x0ffffffff, 0x100000000, Number.MAX_VALUE, -Number.MAX_VALUE, -0x080000001, 1, -0x080000000, -1/0, 0x080000001, -0x07fffffff, -0x100000000, 0/0, 0x080000000, -0x0ffffffff, 0x07fffffff, Number.MIN_VALUE, 1/0, Math.PI, 0x100000001, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(533); void (makeScript(14)); -/*FRC*/count=155; tryItOut("return Math.cbrt(/[^\\s\\n-\\\uce18]/y);M:for(e in new RegExp(\"(?!$){3}\", \"gyi\")) {Array.prototype.unshift.call(g1.a0, v1, \"\" , o0.a0); }"); -/*FRC*/Random.twister.import_mta(1734148923,-1084165254,-1743095472,-1864832022,-209169478,-653052914,-1759617518,151353813,2003184845,-466225174,1711729766,1711292208,559666759,-1095676315,-1325598041,1283598477,-2055428657,-1108955184,-4698063,-679914066,369995083,-34668479,1749646209,1220982385,348056661,-98863422,-1409671282,93181989,12754699,1172092565,1075776430,-1036620574,1741663099,-84757920,-2106458228,1138112381,2013032694,791646323,-1509697151,1595350818,15117406,1577367210,-418928697,648152850,676252150,-1242905873,-1343339509,1038751048,1552408418,-51566942,-1200559084,-106212055,3748732,1532840650,-1446681622,-1760482587,755202420,2013805690,-2039612593,1639652374,-443197636,-1874836867,1130680066,1224940076,-941082049,787232141,-456400164,-1822387197,-615449349,-1910146290,1702975177,515026944,1953187024,-1050836308,1790963069,1135298448,2044854917,1169847182,-1413754765,1188397169,-1523020995,-424076465,1420758188,-1957814503,-464412078,1679522713,78115911,-175122053,-2137021602,279183716,-1047872256,-1687286837,-1016079118,-1697154616,-1214120287,2022846935,349726796,-145524412,-505251056,745830096,801807142,795430192,-859757311,999498960,218517919,-569665945,114373204,-1373809493,-676680533,1802180828,1438386670,1570374081,95517628,-1403673599,-1964632544,-851576897,1892596772,279056991,1768652642,1483865728,-93985851,2055479293,-433974447,-1374786063,926107937,1520203199,1366355779,1935371677,-608750087,1346429019,-812581808,-239741632,114906868,-558453042,938753389,137233983,-578966399,239729848,-896397860,1244985384,-1894017507,-659472241,-763231713,744704795,445607413,-1611371932,-1317585733,258260302,868880993,252311709,-455343833,211163281,447639791,-487952219,-1800684649,-1984710591,-1456550454,2003054377,-1151367541,-1247419605,-162401636,-603017310,1269242417,-1505844874,-228313535,631391807,981891342,432627714,2139832405,472008453,-860892574,1979405488,-1885644975,-1224685648,1215533360,1213573166,-1254726810,-2025933717,-217303799,-1847949803,452617843,865658991,-215840541,-1972772918,-731225721,2130496467,-52155719,-1751404976,-1719247345,-2072839763,125468177,537359651,815478576,528078138,1647943442,965141518,-1145928073,2044870597,-1225733779,-751258446,575670097,1011562572,1920504584,-1598939019,-2024610379,-1216950069,-96523636,-854085404,890858003,-823724113,-884321717,-703402245,1546763035,1823628027,-803378169,-123354442,-265572844,1428303471,1902614015,1188934525,60538580,-401577236,1020596419,349044343,1600365804,-1432278145,1492617587,-1068662124,-1623699736,-949826157,-59231091,-1016326047,1104459366,-2065995858,-1628226694,2061896214,-1314083625,1537319330,835195386,-882218041,-825774364,-523571980,892745174,146336604,-519127825,1628359095,1124727098,795877697,1143324865,-466499913,-24215319,-151485232,785628093,889461252,-2021993449,-565164582,-391411059,-412846164,-747380937,-2130353553,-1846502862,-1215180524,2104167405,-1554905601,-1976122608,-1756465653,-749736815,-718246410,-1765107727,1897430478,-4368702,72294609,1231778014,-1578016515,-310258749,88026814,-2037551644,731505366,88894293,-1180051543,-1652841662,1731363962,-1672469613,1987975744,46975532,-1373315376,-1388034534,1916071142,-143761987,216356921,912040088,1740859832,-206700000,1118344428,-580015274,540378506,1042561280,264353418,2056852352,-221972674,-1724700013,-1755413938,1002609510,-1258478729,1328100359,2071345428,1844069973,-1077656209,520565528,-2051752146,-1866463084,-48569935,-2017051431,964768856,27733213,1420689104,-736814033,-920896016,849450479,-2061615320,464127431,-1146744985,-376004087,-164795709,1615043084,-1090687901,2143404918,938494981,916951182,-1410035390,-1037545032,1267848754,-1006174680,1674398439,918316751,1696231886,1110331597,-1393369239,1086024827,1158921111,736561277,-1834025524,-188414053,1170072538,1550940641,1022877984,1054803018,121050941,-2123235759,402165960,-439449860,-477576028,-583082227,995131084,514982578,736475299,13501837,1757405710,841321885,394837051,-1948104348,-130970018,-1786046793,-95297165,-1715475846,1003376750,-158735124,39782674,-381672884,-357267144,-1129263671,-1623163658,-1896073556,250380125,-1891663903,-156845448,-1399052890,-519648885,-755869841,11386284,-970517201,1649142093,-635847992,-2091632154,306231132,793636999,-834661095,-1542232797,142329274,-294240998,867438,585406020,1226850428,-535370861,1008891516,-1957524737,-2131556945,691098783,-870350643,-1310797191,245674175,260113679,808751438,1997523465,1162369435,2070536139,334152700,1056308565,903602635,1699279841,-363463011,-386504635,1243120465,-1951889001,-1099005775,-138611245,193997866,-793463330,-1294129033,1277418925,-577270748,-1926346522,-1512726268,-894821320,1985525364,-460062567,432832884,-713705104,346666080,-679774088,1534071569,1369010282,948007368,10467100,817201848,1377861470,1681373525,-1523728558,-1911710847,-1307075370,1698460604,-719680670,-213693699,1207553757,-1829235353,-121873930,-916836119,-1525386274,1115826233,-769776928,-1203266158,-780674830,200964308,1931736210,2140657276,515954952,-1696246167,-1220917405,139380471,-1382770144,-1669494721,344259049,-1845531689,-1667701367,-652206974,-1268891556,-629666241,581826633,544768793,358355074,-1791479378,-919290991,950303817,-47281032,941820674,-1130365469,1507877598,1118001533,1599895364,-125041524,-1022581569,-2054454098,1366593299,1123103981,-346032761,-513181605,-875464726,98954073,-1827977383,1261174675,150069258,-369346585,364572339,1424312723,-1324644315,724117548,1625849066,-1574277611,-490974557,1005114543,656814628,1846417172,1731370075,-1966131681,1187272278,-979725830,894060395,1196860505,270737619,241179261,-558853327,-2089563600,-1053636395,-538627001,1888252893,443803108,-1388234564,836089201,1593914766,395668512,-1029427249,-1152328988,1582002154,1885608493,-192189653,-2099027389,279582606,1606927191,-2042232271,1641984372,-1211368055,-140738127,1396900853,-1395839161,-208473996,889981611,-793433261,-452024209,-1782557162,-952137452,-386824050,-1058488776,-393302341,-552829906,601752262,-2084097018,171581602,-487171806,1086361152,-167233312,-1894032551,1618543744,-328971091,-245859027,-1622760938,-313464416,-1234702812,-929085210,1612144316,1233249390,-518897357,420290947,1392102614,2044469646,348670500,-146406926,-848861806,-1399912218,-997341624,-1872761198,-609959295,223568679,-595579336,-726587536,187827490,-1950329580,-114556758,-1342578282,1586539356,-2136974304,-384324638,-2147039686,1422399790,-725109892,2100511645,1785276584,-247880858,-231819964,1231563695,667658079,-1961456798,1733553403,-1763276358,4443851,-1067407512,-1371551304,417979700,1118076236,-961299509,54747093,-1344731423,365981841,-1944898838,-566340935,-1242677447,623870442,1161816771,-2030841033,1625488209,-653098149,-1127958824,-1051440624,-293488640,1227546017,188032668,2131400864,-2119798241,-1096960438,-1302540578,37277583,1027799541,1957454259,-95068659,1783969005); -/*FRC*/Random.twister.import_mti(224); void (makeScript(14)); -/*FRC*/count=156; tryItOut("/*bLoop*/for (svdqzb = 0; svdqzb < 27; ++svdqzb) { if (svdqzb % 6 == 2) { s2 += 'x';/* no regression tests found */ } else { var cllduf = new ArrayBuffer(0); var cllduf_0 = new Int32Array(cllduf); print(cllduf_0[0]); cllduf_0[0] = -23; var cllduf_1 = new Uint8Array(cllduf); cllduf_1[0] = 0; var cllduf_2 = new Int32Array(cllduf); cllduf_2[0] = -11; /*bLoop*/for (var xqtrgb = 0; xqtrgb < 68; ++xqtrgb) { if (xqtrgb % 5 == 1) { print(p1); } else { (29); } } print(/*FARR*/[...[]].some(encodeURIComponent, cllduf_0)); } } "); -/*FRC*/Random.twister.import_mti(424); void (makeScript(14)); -/*FRC*/count=157; tryItOut("/*bLoop*/for (let vcfwam = 0; vcfwam < 7; ++vcfwam) { if (vcfwam % 6 == 1) { v1 = evaluate(\"g0.i0.valueOf = f1;\", ({ global: g0, fileName: 'evaluate.js', lineNumber: 42, newContext: false, isRunOnce: (x % 26 != 9), noScriptRval: (x % 5 != 2), catchTermination: (x % 2 == 0), saveFrameChain: false })); } else { print(( - Math.min((( ~ 0x100000001) >>> 0), (Math.atan2(x, (x | 0)) | 0)))); } } "); -/*FRC*/Random.twister.import_mti(565); void (makeScript(14)); -/*FRC*/count=158; tryItOut("\"use strict\"; h1.delete = f1;"); -/*FRC*/Random.twister.import_mti(578); void (makeScript(14)); -/*FRC*/count=159; tryItOut("let (e) { { void 0; void relazifyFunctions('compartment'); } s2 += g1.s1; }"); -/*FRC*/Random.twister.import_mta(914435362,-2146255771,-105732212,2002819426,1661509384,2075901511,-1434073540,-403439838,1232282686,1625929167,234218189,-1132545481,-484908020,723727121,398445788,-777100951,-715399553,1487542390,-1677697276,-643937712,2001437985,1609639272,-246925750,1321224913,-1339821177,-265769277,291782901,-281982674,1601366796,969082019,-194081023,-28913406,-368959160,440986839,-1451566325,58673587,-1912549382,-1162027353,1034678479,1682239354,-1976572921,612825277,-515465377,1897600839,1458002634,1035786279,420267129,-1128531242,-959788377,-1788721437,1086941589,43954567,-5208187,-1398461337,66583903,1568392302,1328016047,-441869564,1847416579,-1473249801,1712510594,1778164086,-1995106506,645998079,-621128720,-1550148935,1277173591,763417120,-213058085,833623428,771006537,441262449,905105876,2037348303,-387901351,-1654796844,-537676353,-1258925084,1191021828,-764110945,-1460182011,889975058,1680063455,-1323010666,1854835133,-902838801,-516003697,-1425005528,-1455720215,-351000214,-782606749,-222516960,104874871,-903237755,213753811,534174357,1867314481,-1040534099,2098402116,1997353337,-1247885171,1574203644,1713456839,-1196578252,-670864136,609879409,80293013,-1273384740,-1339089516,529810332,-258796442,318479629,-2126350174,-1681680351,2095415600,-1185573177,1320979895,1144638572,910891684,159086977,-710997424,-182940423,-644158969,3488640,253120740,-268719980,-792650692,1079525640,1942725297,929196454,656222711,-987059893,1317398035,1966691296,1786983025,-453679766,-336998117,-690227558,1343649471,1311789186,274643191,1703536582,134650950,2092863147,-820868342,691896377,-1732369783,-1556890839,491485335,-1587769106,1035330997,-727775512,1584771181,1548105293,-1113036673,-1192023480,333634150,467784076,780839146,-850454678,-1499979977,-1664326789,1520350421,19458764,-757812669,1337651281,1966641551,-1308271919,1616876207,-349139805,-697130306,1514724671,-874541750,-1080227303,695842608,-971300981,237424026,-339955847,1512416961,760841036,792536446,-32940046,-980110395,438971390,1718620940,-206390099,-1626708908,-1460085691,-1319574367,730606769,2066071306,1361424439,678907330,-1173732117,2073075452,305625694,-440770058,1108374273,-945581087,-792105405,1552015722,-7343537,-1978466512,1970848996,-681334741,-250828884,-1196062005,1986673391,-1688974622,-1181584583,1962022037,-1745709565,1984110329,230862852,-1123636405,-1768657142,-1162642871,-1433510724,-982715967,-2140426891,-1969913028,1967060576,-1856602005,317926275,-118209325,254159467,1249113511,2031946326,2058054259,512101653,-1881266803,65193019,2044071312,-436446335,-1702823383,-928136566,221865246,353495600,12795659,-2072300674,1531331947,1294259767,-705555257,2094280919,-1322922894,-1115380839,1462692399,-867052130,-186550548,386385633,901515449,2118295174,-357915711,-1949197791,-2145817661,-1305502059,1248935797,81776709,667734250,-1560646575,1098908765,1321725474,-1948320877,-887378318,1746097533,-855329192,249354625,1480728352,1544210010,-560450498,-1439418384,1918034597,-1270032250,-154886841,-31167095,-980648875,-1062291576,-613946144,-2025657716,-1324526044,-549687718,-1797825463,642042190,1312919481,-222563220,952071182,-785020028,-995276669,-1232683595,-1841608838,358650147,-483568928,-1026633521,1654049532,2107248869,-329326245,911265473,280504713,590306030,-530320318,851457768,-1258269206,506195120,560963427,-1991422098,-385868047,1419642359,-411763319,936488581,742637461,1453438353,-1268439282,-1762697277,2028293694,-2126062784,439961121,-1885718638,285353035,-265046348,-761401013,1324488937,-511803896,-37167317,527251511,1200403267,49541887,-167925852,-1362296630,1210988637,120942107,-580566739,-100658196,-860614435,-2036355283,-2037086149,137397549,-1864000265,163975812,-1451560935,230247491,-1835735353,-1617972702,-611621078,-108232296,1514290428,690264193,-1813495104,1278166439,-1092303715,-344086151,1911642578,-125726787,-1303144462,-543679131,-861786746,-358346584,54368417,-1492688922,1474709385,1265943201,153195727,-1186067979,13968652,-1489624026,-1958945107,1800570057,253744139,620669393,282305370,-816428419,857649360,-2006151076,-146600120,103361958,-664738283,1258646084,1222067444,-842760483,-1798711234,-462517723,-1268026828,-1868253925,-111593797,1522696648,-1789945584,-1868426567,105780516,-492438038,-1409843722,446180066,274375150,-163278211,-424070841,724150961,782544753,-1188126553,648058419,1769329159,-1683028772,361063882,559233089,828637079,1687439952,-1249226360,1325461571,1406191423,-1423192775,-1395104444,1436915421,1773599828,-145117437,-1703615877,1869498553,1497208019,1244534387,-191827276,64386654,-1153197074,-1371738562,113019856,-56794984,695881342,2002940994,-1634321716,-380451950,-1958358181,-93080837,383073114,-734900621,2124564071,1572109521,-886894385,-247235550,-1594930281,1601832256,809969303,-1425757040,-1426298486,-822519704,81602343,659551669,1571798762,1818245307,717733925,-690982841,952719722,-756968294,1927030783,1546774288,-847950174,2051590138,-1123452743,918016034,1975000729,1987929810,-288263784,-602694021,1391588905,354978091,-1361020592,917936042,192413469,535363729,1638493023,1329515038,-185104181,1277525893,-764234696,1200283254,-546436080,-2126062144,1954497161,-2095848027,188706734,1259772848,-1743698045,-1352738176,437400347,1107598528,304365889,-921413514,1907072149,174044220,-422152855,-312222537,1109682975,2030053666,-787671250,-1302683340,-1884943466,1726809438,-1144614149,2122228302,-1890472628,232164150,1820260399,1451602923,1113763454,-1230096339,-1478508140,-1044146483,1421185915,1508071301,-1546871645,-106257379,1156544998,195998935,1311067884,183493032,-1877725175,267938465,187310297,-834314510,813367989,-912999823,-1608113685,1406741789,987761636,-387455760,2056550391,1061070734,314550032,1298422930,-1793209461,-926865289,1803178281,1451795766,-1460959441,-974189232,-1664703829,-1012306076,2045017675,1718499725,760708557,620382211,-2038199309,-942908547,474062490,-671423612,-493380732,412160290,1812544706,1975482422,-562743567,283229768,-1255233819,-471409190,781344713,-629513608,592298584,1867627127,-390715958,-480805706,-1168181585,-664439782,320720719,1668991592,-1385238925,-557784613,1698005147,1393659699,-1343721904,887002602,-1702774299,845484669,-808893744,1543424048,-254671389,-677362325,793884341,640516308,1946299360,1132202809,-697221039,1238331181,-1032665912,-1132373582,515443836,-120479315,-958905853,-1617199496,-1496964847,-1060648682,-458454608,-1842099278,1870304826,845387779,-191024697,866347653,90071229,1301766788,-2142266768,-1300507789,791644095,1944145165,1554468288,-301697829,-1991254550,1355124585,2041003239,-708205263,-563511456,-1122831417,-1960252489,-1621901784,794729856,2116014945,1561509699,623199337,-1489277481,979936448,-502315760,1832897718,64259690,-585059910,841806886,1171714503,1232389761,777012581,1628503394,-2005456201,-1970884440,1426885134,1038090402); -/*FRC*/Random.twister.import_mti(2); void (makeScript(14)); -/*FRC*/count=160; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(11); void (makeScript(14)); -/*FRC*/count=161; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return Math.pow(Math.fround(Math.atanh(Math.fround(( + Math.ceil((y >>> 0)))))), (( - ( + Math.hypot((( + Math.imul(Math.fround(x), Math.fround(Math.fround((Math.fround(x) || Math.fround(y)))))) >= ((function(x, y) { return (( ! (Math.fround((y ? Math.fround(x) : Math.fround(x))) >>> 0)) >>> 0); }) % Math.sign((y | 0)))), Math.atanh(0x080000001)))) | 0)); }); testMathyFunction(mathy4, [-Number.MAX_VALUE, Math.PI, -0x0ffffffff, 0x100000000, 0x100000001, -1/0, 0x100000001, 0/0, 1, -0x07fffffff, -0x100000000, -0x080000000, 0x080000001, 1/0, Number.MIN_VALUE, -Number.MIN_VALUE, -0, 42, 0, 0x0ffffffff, -0x080000001, Number.MAX_VALUE, 0x07fffffff, 0x080000000]); "); -/*FRC*/Random.twister.import_mti(234); void (makeScript(14)); -/*FRC*/count=162; tryItOut("\"use strict\"; v0 = r0.sticky;"); -/*FRC*/Random.twister.import_mti(248); void (makeScript(14)); -/*FRC*/count=163; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(257); void (makeScript(14)); -/*FRC*/count=164; tryItOut("t2 = new Float32Array(({valueOf: function() { { void 0; verifyprebarriers(); } b2.toString = (function(stdlib, foreign, heap){ \"use asm\"; var Float64ArrayView = new stdlib.Float64Array(heap);\n var Uint16ArrayView = new stdlib.Uint16Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n (Float64ArrayView[0]) = ((-8796093022209.0));\n {\n (Uint16ArrayView[((1)) >> 1]) = ((((i1)) >> ((i1)+(i0)+(i0))) / (((-147573952589676410000.0))));\n }\n i0 = (i0);\n {\n i1 = (1);\n }\n return ((( /x/g ? intern(/(?:(?!\\1+?)+?)/g) : this || /\\\u00d4{2}|[^]|\\2?(?:(?:\\b|([^]))?){3,7}/)))|0;\n }\n return f; })\nreturn 12; }}));"); -/*FRC*/Random.twister.import_mta(-260817686,-411674854,1848977787,282163141,-1783197589,1909893454,-965497319,733569628,-89346809,886672512,737118336,606725339,-1523591933,-58308243,732652048,-1664411815,896047336,1143880177,-1738549348,-512031727,-1799681702,-1768360677,-120316313,2105813380,-932795968,-1495735065,-1458659749,-2031372780,246211029,1498170788,1777751003,-1590468905,-1433501485,-805199477,328467657,-163374113,1689883675,-1733865992,40194346,924577356,1639425291,1733469976,-447210405,205281488,-629579226,-101782952,882523470,750626251,-344929596,730697871,-358887453,-85912563,36661326,-1564767862,-1816880498,-2010344022,1198314267,-1736737396,1674461116,-1357187782,1712301714,295830192,1688755056,466337362,-1011744098,-521027611,2003370575,-275774420,-1406172663,-1009279106,1180472415,1567864476,2060519208,742318387,986817635,1977782181,1363428956,677928242,673430675,1647171677,1083689874,-383913488,179731338,660319351,-843788611,-473419612,-1285658755,553046044,934182826,-2002405684,-1470938178,1752313936,867855499,-1178895768,757419886,-791648247,916735813,1935606420,-823078836,-717068430,747148800,481700753,-1148644210,-1379786575,-1617944292,-1030786800,-1178581811,-1581438249,186996776,870792932,-1638911819,172940793,1157450950,1904912953,-1903666331,806594806,308798595,-760137949,1033055732,2031527989,-647692985,488775980,982444599,951422972,625111898,621073036,-181277937,1747732976,1892378106,-603029230,326525781,1000689286,-1504048293,1876969091,1268698366,-1970118177,1178240640,-705051773,-1583635534,1458288601,780496249,-738611801,1170238478,1058559143,-1583395839,-521610835,384064442,-951274788,-1518276974,607428575,81648829,742918801,-1805227615,-393396585,-1261457170,-1431957115,-1213325719,-819978129,901399802,-1455524564,2046848785,713493358,1705113085,-478976307,1362994855,-1756729870,445359186,-616403979,1666823262,818387311,83811235,-229669938,-375946394,1922128716,-838396678,74411508,2057807666,-1110111086,-723647122,-1423979763,566076293,51595408,-1949476868,-1398573058,102223768,-1891435716,702043981,1402407229,-1548472131,267470726,1158109443,664325220,-2125204969,811544058,-1990973601,-2136546424,-684781856,-919063518,-1379186114,-2142993298,796955666,365752561,52125333,1735442939,-1494274890,2017494653,1763001887,-1829135527,-358673213,-1653708300,-807189347,-955483190,-1579534891,-1109179974,-1455066475,-1452359347,1452517428,647920005,-351169981,10235993,871087537,-1074547313,-1318987652,755349505,1411192130,-381829118,24020361,1411987724,1899880783,-254637214,-936860409,-1453484381,-635423663,305882066,1341096729,-1137696888,1045526936,-1299798054,638877028,1367623529,1125946025,-1738876756,2074722285,771391185,-2082154270,1790972500,-950800674,-288640468,1142138548,2063772388,1118136007,1681606911,2050529576,1879743333,1190447489,-224604496,-1037361831,2047884206,692508704,1397109282,-144550246,-1888237089,-1815163674,-1984393606,-1104865580,-603747019,456843740,1337116198,1209974023,-1337849949,-333604515,-1067512219,461640740,-763315371,-680318146,-1960341248,1178494719,-1455768923,-1570259169,1840340835,1910019953,-1063846359,906289833,2117151021,-1004222581,1263860350,1413800356,-1539028841,1488953613,-1223646402,710743842,1004395046,-1850025317,-793986334,1085785182,1846498742,1384332133,1472936232,1833061565,598809692,918473670,1975800379,-60952373,1440932331,-975117675,-614199625,-929098170,-2106086385,1714724581,-1192357475,1030307824,533451139,-1615161413,-1275262243,-186465325,811820131,1496060982,-1874159388,-1741391830,-842280928,-1996208788,-892760028,107889869,-1939165637,-349287628,-200408162,-2111510761,-778618127,-2044449725,204670151,-792581817,1623366061,415766105,1669509135,2091767966,-1705040244,1996765094,333838438,-711275769,-725643398,1045263144,-481433360,1289087034,2135358205,1596705724,879168660,-2046182855,1595813846,-241941169,1115047646,-1644300035,2087434403,-742363935,-1822360116,494813604,-1470293643,-812831007,-510791602,-2028495095,1002598883,-363859290,200564344,-1727433780,-1699981047,962081080,1058863464,-576957458,653049044,1834629190,474952806,992877705,-633418843,-1543745666,-1545824145,-1563555842,-2115285784,-1679945618,1320759458,-948437156,-833367877,970446021,1366006636,-943238815,-1123429663,511285740,1990020712,-1737716775,805032426,1741364767,1837933834,1096392492,-1150710053,1540753525,-1798225099,1591577465,-1459531880,-1653227341,153704909,-1198706389,1614131097,-215477160,-62049838,514475312,-2077265972,221634514,1480807213,-42731089,-764946380,935868090,694759586,2022815260,-391619813,987005322,-1782059861,1776250983,-497087598,307268209,303640092,1690732940,-1088601509,1692535493,-1293607554,-1880228114,-1551470807,361917776,1241129884,-886171197,-1668217868,-208313571,-1261842398,-605423293,-565275993,-1321233559,111690943,332576973,-14859637,-938451663,-1465915223,476731526,729120720,-1825268017,108912151,621121920,-453828408,2063258928,-1033807858,-520449159,502484537,-1723264290,-867845247,-1433815934,256310611,1256816529,978335456,1665237440,-2042847571,10666153,1538543949,-1104303605,-2122612860,-1903678333,-653020274,367794936,432938135,301323104,-653364615,2025659765,551157138,-1209147740,990564621,-825397430,459643631,794797443,-489118970,2076942642,331140084,-1358756938,1671899303,-199108480,1588770067,-1848121872,1138430879,1493124315,764560349,-2113224962,365350065,2076228021,-1370552832,-928986092,-524792247,223573976,-1055242253,-609526893,1574020167,-528151826,-95103955,-1854713700,1849832852,-1817121105,-496144483,567460407,1653223459,63532942,-1545370578,-884144554,1052267947,1252259861,1957652389,1368676082,-386898138,-492009058,-486119182,-1973302277,-377091005,1835002045,-1470396580,-1436506420,506389850,-543207166,-1910142628,-638359190,1711663639,-41353044,-1343545471,-1149329053,1174806054,-1362333932,1414090094,-1565543503,-1651947655,-1340576239,1876905612,1422327950,1139442328,406772009,-1663433852,-154214704,378818098,1853889601,-739107030,-2047241028,-834830392,-2041491516,291293970,332757833,-372828473,59395867,-1539738544,-1687195384,-1462884055,-1204699938,-1702496913,808044566,-300524262,17919369,-1214690953,-2087927007,648735093,-1957631681,-1471651553,1953924903,650285675,236407457,-1220669881,872503566,-1201295585,1977498964,-862592702,770540405,1606625360,1162342157,-409108737,-2041111453,2078719344,2116505010,-1345001066,220905696,949852404,-2045826691,-1676815395,1493917083,2099094831,-636789331,-2037069000,-1775191213,120513495,-1736156705,714536763,-1873551623,-1077755250,-1702128591,-110270370,-243037592,2103723447,146741812,-1018121484,1491655315,-901485598,2145772809,269495609,-857200673,1699729090,1568115180,-730345606,420904546,1634772531,2043822021,-1303525842,-604070568,-1695350015,-1945210775,1759936439,2004290909,-1224944892,1995287545,-601303517,-801212779,-814150335,-1948127126,-958059023,-778953887,878431870,-1208922167,-1521492282); -/*FRC*/Random.twister.import_mti(524); void (makeScript(14)); -/*FRC*/count=165; tryItOut("/*RXUB*/var r = r2; var s = \"_\"; print(s.split(r)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(566); void (makeScript(14)); -/*FRC*/count=166; tryItOut("t0 = new Uint32Array(b2);"); -/*FRC*/Random.twister.import_mti(580); void (makeScript(14)); -/*FRC*/count=167; tryItOut("v1 = evaluate(\"/*vLoop*/for (let nbfqcl = 0; nbfqcl < 30; ++nbfqcl) { const x = nbfqcl; o2.g2.o0.m0 = new WeakMap; } \", ({ global: g2, fileName: 'evaluate.js', lineNumber: 42, newContext: (x % 4 == 1), isRunOnce: true, noScriptRval: true, catchTermination: true, saveFrameChain: false }));"); -/*FRC*/Random.twister.import_mta(2056417856,1453266249,-246045532,1627122866,-2069469835,-1533336861,-772546846,-1452590706,36672877,-393986577,1501272710,-1135121180,-836590389,759432980,2143641704,1616956926,785924236,1710267305,199899461,1477250780,-1067588530,-2119944608,-1042327911,1087462949,2021777362,1113719068,-520899549,-875778715,1700528462,1725792497,352328768,1071289259,1170321464,187386872,2087169943,1517021627,184279619,1390415960,-460278355,1640185707,-1690911963,-1211177356,1835750328,-1106759716,2055908155,2135461671,1805992690,1329770578,246358166,1287636055,-108301088,-664885511,-585597116,-481035835,1263581062,-1336432957,913147942,312909342,-1850612688,1940198368,1399148565,-1938192461,-1935761235,-1353634356,811850915,-145741056,772152961,-555048261,-1192903226,-2103711867,241182428,-1970971344,-1273163445,1252855204,-1197707806,134055597,-152269409,-153956444,-1146972411,-1891047809,1462358111,-1317345979,-736635913,772092529,842992589,-1739012166,2112433107,-1713536725,294918103,803805290,-629793240,1215646350,-60427395,1539428463,1887093544,435276014,1685988621,-939695416,-1862932588,-952689764,-116289405,-1904974616,763678490,1847251641,63801515,-970851017,1781899674,-1897944510,659278553,-595373936,-1467958906,1944776849,1228767973,2095060211,-1156596599,442141029,1507206925,865500743,232285081,534407344,1354757580,1540396230,-1837150558,-883797817,1955038033,1578714612,-604161159,-2095377506,1744920239,2122313313,1234954797,680134339,1936839911,-1781069714,-207696196,937051086,-266415226,1223887088,1856465079,2021972147,-1503647682,207628870,1433830822,205423203,658613185,-853319143,855282300,1091898368,584444407,-1729359462,722846151,139785479,1166018237,-497654615,1457409394,-218728451,277806578,1540116468,-1559858207,1736721526,870935746,545825566,16343718,-2048858965,761767058,1129486472,60263266,1168999201,957272951,-290856870,-172875611,1495679686,646678006,1648649584,-1515534331,-1157312518,1695300409,340283141,1666432207,-990076419,957627580,-2081848701,-899913694,436255319,2059196593,401589972,911736697,518132690,1087782932,588203393,962236681,166893357,-403876749,120141633,-1187112550,-1709961960,435707814,1583005483,-2089619261,254316698,1504355141,-413074788,-1163854565,-543182460,-2140717789,-252339652,1141092873,-179223332,801608393,-2027213484,-775160885,303773549,-1006459940,1101298172,-1520848946,473880903,1018912537,-630337017,91127504,1354963090,1233676121,-749659052,158286126,-73625152,12922495,1850654162,-1889844672,-620481992,1861636344,206128888,-1386375364,1891553154,-309947638,1863102385,-1217186230,1560750497,-238588414,175219764,228458383,1990483264,560556866,-1692856511,-275430839,791293181,277910147,675532330,795400138,-1571539180,-1138400494,2038781221,-339457403,1167954758,-479200143,1518428220,-226309571,-1656668355,466984230,27488336,377064122,2121309045,-711319608,897632740,515354246,1441360169,-1511430627,-1458715325,1176132728,640767353,921130362,-2106773559,1194268721,927506729,-822058414,1890157,181500114,-189226186,-1054201382,833625008,932100503,2096923683,1511011854,-1990560243,373785226,-1921557700,1997333281,-1147955998,-124811404,-1506660276,-1745758676,-642766020,-1296056097,-1581907663,-1626966415,1314782382,-370341792,145526955,-1451328751,-1580617635,-1688349922,-1354599256,-381184922,532292952,-201046393,1293175818,40400928,-538108890,1467711655,-1120194574,872766804,-1969009649,-1192727953,-1528106801,1487860235,-1634665755,1491370949,1023548876,667702296,-1771298243,781230750,-1192767029,1051007101,-1438297711,-2033438932,300482711,-1107664121,1223632064,921974331,587937405,1365595732,-1662162074,-2022494544,-1767820456,1860703727,1415794133,-2081408764,1556730122,-713970525,457534682,431306540,370883441,1296490635,-580564844,-1125038908,1984152275,698742797,-1747710374,1884651355,-243439692,988526505,92865027,745487433,-999356930,396966674,-1790829653,238891003,-1764787968,247010886,-1827105418,-329019667,1180052916,-802347182,-15042726,-477831275,-1397568742,1467839556,1080639808,737314521,-1865599971,38252661,-773244099,-1205250194,1992262782,96837361,1671270787,31500916,1866129856,-5207605,145636969,-160060027,-2140972032,-891049697,-332049123,897199698,1605513476,1619192000,909674194,813280387,-1727769838,374272411,542485808,22844185,-645656457,-801994291,-168690175,1361913069,-289635343,859176035,1895565551,-1338759723,522162138,476249497,-352327011,-1189906404,597087440,-1587456436,-991760185,-1378923033,1659906017,-1755505966,-166415572,-1218697467,668375156,-2080079778,-609159275,802002459,-1862879757,704893583,188339663,-1888188705,211083726,509327870,-20388115,1390381651,1395747086,2057809637,1072516349,1096814944,-1184325100,-1123806579,1314697573,699418632,1106265160,715720892,-723362128,1406620998,-758707058,1248618975,-1610688632,128026757,1418746980,-1684920792,-1210358002,776423715,1103508865,-77758976,-333740109,-2026762415,1160572470,746287435,1546361711,624385974,-1128717976,1936107170,-1090813280,1091751345,-1213235085,-1197744511,725873382,805531712,868890004,59078262,-41600202,-924281035,-113408078,-1073861161,-389299734,1724425097,983532560,1603589912,-923535892,-74428075,-1640501091,422551465,1384974163,-1416998162,-1415257399,-1856081495,-774592827,-1278445296,-343667063,-1570481876,1207294095,310423052,449888857,-766990633,-1299093825,1767315573,-1312130622,-590062049,1478366570,-328402417,1362393867,1592633279,1985534223,-1038905424,2120154420,-179555069,-671096903,-545872328,115454870,-1471053917,188075797,-448175839,-1534285071,-136019526,-1948781246,-542931154,1926897015,-1121827426,1729218117,-51089595,-1422608893,1448616476,388547573,-1306528798,-1027504822,-1767417455,-1653577634,-425409121,-201342268,-1537754758,-685144010,-967725132,1841929087,-1026900146,-1942231916,-983117281,1629027681,-931776965,889241936,989588300,671873127,-31957654,-1033085716,-1286197712,1331835452,-1041667306,379638928,-1928069286,441595989,-108116735,466363431,1974237253,-1221699229,998709633,-161663540,-1426363421,1930600697,1730868698,-623578813,-979154177,-437352692,2145651277,-277598176,-1580260839,-1985247461,1454419715,466873072,1536013064,-1914968413,-569723841,502475915,-564238602,-1888419804,-1635841142,1666853254,810666960,-2101833234,-226173764,123339677,-595210893,-209271069,-366522142,1330043266,-426306689,2088687577,432524921,-1235216344,325147855,-500947712,851737059,-1171246606,-712696676,-592839888,1233605698,2032734941,-1978276106,1091336433,-1594157539,935961938,-805011659,800895344,-1479290044,799869891,-1318752921,-147100189,-188018996,1590891829,-406904259,-1162265151,289044194,794521218,1157695101,-1287932166,-1591812689,1402208952,-1723482345,-1491277901,944006210,-361388359,-1295401472,-1036919119,759623504,-771241568,773359836,-413566450,-555639985,1152150316,603862608,569586850,-1344530114,-740477994,-1139053422,1316799811); -/*FRC*/Random.twister.import_mti(26); void (makeScript(14)); -/*FRC*/count=168; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"[\\u00da\\\\s\\\\\\u00d1][^](?!(\\\\D)+?\\\\1+?)(?=.)+?\", \"gm\"); var s = \"\"; print(s.search(r)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(472); void (makeScript(14)); -/*FRC*/count=169; tryItOut("(void schedulegc(g0));"); -/*FRC*/Random.twister.import_mti(481); void (makeScript(14)); -/*FRC*/count=170; tryItOut("/*infloop*/for(var x in ((Object.isFrozen)(((XPCSafeJSObjectWrapper)(Object.defineProperty(x, \"toString\", ({configurable: true})), \"\" ))))){m0.set(this.p2, s0); }"); -/*FRC*/Random.twister.import_mta(-1027919212,-2002847865,1868724611,-2026274820,565889843,-773154963,1998800919,2038311973,1772642031,-1049460572,2094764435,1766127720,-1598639962,-2000775375,401014411,-1821859816,1883245214,-1288684954,-1125109091,170729640,1273745151,1989385548,-168493565,572216855,-537270685,-72425315,-1344303261,134852162,-1786037158,1272979264,1066228510,-1612395887,1271469209,-1903481060,-171114422,-1227077310,-40741220,-124272817,992879588,-553679726,-1004952398,1897144665,1268009866,2145370986,293048386,462809178,1718054312,-66392501,1397544263,-1141394143,-1341452907,1123503849,-1265969326,1084163189,1033519830,676356785,-1213674065,1237991337,-830666365,136431188,-1267236384,-280719159,1684185970,-1027856136,-970117450,115550378,1329620528,-477301964,814646007,569946343,1071458952,-1668092062,-1381665986,-404854876,1153532692,-1152292423,702832769,1867753907,1963467049,1673668953,1348560056,1087316020,630073198,577989653,1272560466,-176387270,-1892240877,59383267,-1520047478,1147934561,-705635195,2079201150,-1393144446,-732849253,1573691260,-170261018,1436969067,-1972798342,499478778,281824669,-1866076723,-1984642635,-1461425643,817826601,-1322417839,-1873563156,-1545371696,1028248585,-1516872438,-1948001299,-1842883104,11809843,-1066828573,2021327326,2131837550,-474250939,-1746187255,771453681,-852709102,-1091001481,-1332207043,-275029298,257841784,1193068557,-131781940,1923580631,742658736,801284294,705471355,2023987158,-329953569,1757834391,1072383335,1127517202,1944508800,-971557719,-1508517740,487402164,-366416198,-757498103,1351664051,-1482113655,-2059023941,1931879486,-1537923596,751907195,-1750802589,-1276813915,-97829631,1719221215,-298816859,-589150629,1928819656,-1362334650,1167920173,933459124,-1030613030,692366134,-93739744,1329863010,194493311,1542521435,371401769,-2001115530,1012555983,-543841465,883913067,468767470,1410259371,-746558627,-299126643,-507437497,913846565,1465391534,-1375428322,27917729,-597012769,1312193991,-955762696,1162727463,782002614,1984915678,908904692,-1768774300,-1312304488,1470518271,-740756775,1777103944,-240779070,263200429,-587365448,168103163,-313160147,-862227464,1656141820,-349176681,-1719081847,701801945,-1330698834,1092022193,1835231355,602401903,-713628413,-939435860,1461822364,-1106743386,-1986849644,1878369300,1342280722,1755902509,1998179546,440743340,-1968727481,-1603966489,354812621,-1441533949,1715048572,1823455156,-818350521,1663899708,1829037318,1732875975,473791554,1991655134,-453350081,-1145647694,603905119,-1245701400,-1900391173,2043458077,-10086339,393839286,1063546986,1822085938,-1896544214,1363929582,-2075503938,-484581749,1377228488,-1342044921,473604174,-115019920,1576339129,-520031488,-1492001421,-1421584008,453458722,368672630,-1822849279,1495165854,1087741876,2001119364,-1762766717,261511842,-543063805,-664669495,1261545320,884055619,970209268,1627659133,-733262866,-90777847,86002953,1986942285,890891569,1478692312,1424989937,-546697713,-383121822,-1324648627,-42786015,922198379,-1030540493,1661981121,-967393328,869908906,-483411719,851763585,-444482521,-1719481259,-583364692,1991869331,787205935,1428557024,1409545688,-1304769991,1530453618,-7378186,-2086894249,-1539968062,191862975,279356753,1640879869,2075582976,1053952958,-1120333920,-401287146,1920189191,-885795530,-653870835,-1476168440,-406122360,-572829764,684743825,1084565408,-2017635931,2103426720,174311954,-594135316,-520969594,-384916307,-1098485112,1664894615,2051818286,487265029,-1232879482,-699222368,-2101834294,-23769276,1789686115,1484489612,514492650,606483826,-766252745,-299962854,-1615340744,-1740544388,-1200142617,-2017299450,-346161843,2079298181,1599159161,594192345,-1575263406,1395473548,371604356,-968790656,-1627566474,-1833887404,2143468665,1456055700,560586764,26398963,439419088,638678492,739163744,-2042228563,1961183542,1951879952,-2141096829,1697336050,-1276004539,-519159843,-229493358,614800454,1833969752,1898962285,57424246,200112717,402511566,1018804159,-1691613547,-1873915612,-844406090,1027181076,1725504777,1136088536,-2000967338,374640840,-648977908,142206465,1069505107,-2078848667,-1756067239,-2072498875,1560004923,-1155099596,1275202744,-1663834021,-1903290472,1105098263,522197764,410676278,-221027398,844687455,2069742526,1137062123,-642223251,1272698051,-1887052422,1031003794,-850684682,1013312664,-986623038,-1247403063,-1801676987,1928781813,1866011320,-1370564182,-1589510346,-80782273,-225633008,1348638665,-858069511,-1253067397,149365204,-1388481784,624092383,222638408,-192255063,-981866146,-1278897481,-1552508694,490113291,-123756946,1034901850,-1826339691,1112502280,1280277532,-495430958,1794617425,-1831747062,-1028175856,1037271844,-1356156040,-1877005026,1570946747,-1427516958,-574553086,-1045511929,-386303352,1114974146,-1803992834,-528957897,1184244307,-1405153246,1733794281,-1379813305,806165406,-2022799021,-74917280,-619899261,335043100,1536634748,-2085960526,363413808,29060903,-500044420,-799741009,245814169,1760210538,-1656144274,-1530196766,-629208488,924805646,1275005796,745360238,-412639203,245143676,1051118417,1381519017,1938420591,768944695,1119745162,-1753727362,-1199949869,-1387411697,871418818,-581102202,-1187668276,924040081,1921950328,453667342,247599701,-651968819,1123946250,-1459845085,422814524,-1685315809,-941851627,-177994182,-689842683,1275142970,-81967908,-185492029,-730395887,2044798876,589943870,-1768301124,-1440841519,-2013472745,-2090365391,-100150912,1978030377,-1606061931,1250208828,1140598862,-1832357827,1971812512,1337146429,-1080195436,1845149599,-124312563,-1730283484,1999575840,-1974435920,2045211185,-1012159133,-1673932690,-1986443182,-1716197570,1060103382,547756828,1110910851,-1628460973,1372035392,-359806995,-516601169,1767457843,870713920,270673435,1576721508,1389720256,-915306575,879636813,814222566,813856610,355524298,-1119129568,-1062815206,-1512238979,2141784341,-427065389,620014008,1842533132,-60652697,-1415395122,-276342016,1789386365,-957098808,-1365057054,-1093296136,874274024,312052415,-1181346004,853559914,-1976725056,1810823521,-1429716844,-536928046,-1599821135,149183459,-1475493080,1370376111,1705653685,1972540248,-424409035,1445546753,-1061914377,-714650343,1978287560,2080509943,1369357206,-1988171707,-279946571,-1969619780,2124346510,797690826,-70495971,-1227323755,-84225154,1392696749,1269682849,738535885,-1814916603,-507771661,-1689159529,-1248635830,-2099010107,560247795,-280351381,1315410440,50648512,367818572,-1494220601,250054966,-294430103,-1244885906,-1060580292,558161505,-1703593458,785408950,-1475925961,-1039313996,1781444472,1815156654,791697481,-1565603904,-68455316,-863342060,-2131149544,1072701092,1164317254,1923172924,633867748,158959375,1141429406,503071798,-1290635129,1092530998,180567101,1694212087,1381902190,348812421,-367735190,-1113347653,-304879380,747423162,-575533401,730587143,-1394619863,-341076608,1789543739,1403733695); -/*FRC*/Random.twister.import_mti(11); void (makeScript(14)); -/*FRC*/count=171; tryItOut("var tzbfwi = new ArrayBuffer(8); var tzbfwi_0 = new Uint32Array(tzbfwi); var tzbfwi_1 = new Uint8Array(tzbfwi); tzbfwi_1[0] = 1; h1.valueOf = (function(stdlib, foreign, heap){ \"use asm\"; var NaN = stdlib.NaN;\n var acos = stdlib.Math.acos;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n {\n d0 = (NaN);\n }\n d1 = (d1);\n d0 = (+(0.0/0.0));\n d0 = (+acos(((d1))));\n return +((Float32ArrayView[4096]));\n }\n return f; });print(tzbfwi_1[1]);"); -/*FRC*/Random.twister.import_mti(143); void (makeScript(14)); -/*FRC*/count=172; tryItOut("a1 = new Array;"); -/*FRC*/Random.twister.import_mti(153); void (makeScript(14)); -/*FRC*/count=173; tryItOut(""); -/*FRC*/Random.twister.import_mti(160); void (makeScript(14)); -/*FRC*/count=174; tryItOut("\"use strict\"; e1 = new Set;"); -/*FRC*/Random.twister.import_mti(170); void (makeScript(14)); -/*FRC*/count=175; tryItOut("print(g1.t0);"); -/*FRC*/Random.twister.import_mti(182); void (makeScript(14)); -/*FRC*/count=176; tryItOut("\"use strict\"; testMathyFunction(mathy0, [-0x0ffffffff, -Number.MIN_VALUE, -Number.MAX_VALUE, 0, -0x100000000, -0x080000000, Number.MIN_VALUE, 1/0, -0x07fffffff, 0x080000000, 42, Number.MAX_VALUE, 0x100000001, 0x100000000, 0x080000001, -1/0, 0x0ffffffff, Math.PI, 0x07fffffff, 0/0, -0, -0x080000001, 1, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(214); void (makeScript(14)); -/*FRC*/count=177; tryItOut("for([a, e] = \"\u03a0\" in ((void version(170)))) const o0.a2 = arguments;"); -/*FRC*/Random.twister.import_mti(288); void (makeScript(14)); -/*FRC*/count=178; tryItOut("\"use strict\"; /*infloop*/M:for(a = new RegExp(\"\\\\1(?=^)\", \"gy\").setMinutes(\"\\u9A5C\"); 140737488355328 |= 2; Object.prototype.__lookupSetter__.prototype) {i0.next();s0.valueOf = (function() { try { g2.toString = (function() { for (var v of s0) { try { t2 = new Float64Array(t2); } catch(e0) { } /*RXUB*/var r = r2; var s = s2; print(s.match(r)); } return o0.v0; }); } catch(e0) { } try { /*MXX2*/g2.Uint16Array.prototype = g0; } catch(e1) { } try { Array.prototype.reverse.apply(a0, []); } catch(e2) { } a2.splice(NaN, a); return t0; }); }"); -/*FRC*/Random.twister.import_mta(-1321258439,2016847535,-1180802847,739167898,-74311224,927147688,-2064062427,-536204848,698409012,-699501994,529661139,777424067,1129318028,-210506719,430225744,639935029,-609572481,-56080244,-834036369,-1649836826,2017451299,191376927,477316714,4796775,-449014123,-2034159133,-1819947442,1082210943,56178353,318539455,-852808514,200965621,217132687,1607880281,529579216,856567728,1804603599,-2088790506,204183349,-699543019,-617382691,-1447672450,359785429,1186285389,-245167037,851709101,1523237473,-1880031122,901451376,1046520165,1376434957,1980209451,-960569598,-1741505419,-148989859,1168374929,374362564,237187731,-1476109283,-1438961525,-1722396639,1282266226,741675510,-693649964,1676068776,848851988,-2105955242,1013024729,-740257307,-101921842,-1720599188,1953786065,-622426912,1433827456,-1783043117,1651173020,-303346572,618573591,-685056221,438587089,2009833209,2036443568,-2140812252,1264105034,2141097989,-65982947,291874487,-2073103641,1213684833,188597886,-462880183,-82596943,1073534486,46245550,251492152,-340966899,228528265,-1452678958,100116193,-1462660748,-822771682,-1759125102,293813267,-1146791147,34611695,-2095326610,-793657680,117344848,2068947851,-1244269623,-923928256,2030213129,-1974977314,-2131667106,-112545695,-1669221509,-1009606018,-231613856,-685912037,564775873,-2084393701,492693032,1772561052,1547644949,62540966,-679695462,1419080614,-553647166,1771391896,-395389744,1709734761,1359385214,124371558,70828057,-1979944786,-1275380092,109007879,-1239048414,-2121124376,2114215835,-501298986,-519554596,-1499356666,-1813129314,-1267734670,-1122675465,1615566868,1418620603,-1564704502,247461372,-1695412434,958545333,488028821,1245007156,684724317,613618433,155128979,-1507709764,1513751996,811821074,1487403578,1984458008,-1678120432,1837501447,257469522,-1434644419,1712181759,-1832027800,770323632,-1439431287,1318736630,-1025115463,1841960247,724304658,-169843662,1922107315,7982921,-1861976538,1700907299,2137919752,-1588860355,1368042424,296719863,-1246784159,1337069573,-683834250,460803206,-758793540,1735911877,1215138882,-966179821,-22292494,-335966403,581000866,21777304,-769333482,-1952664105,-1950831069,-897992440,640231036,1669763009,-1732839972,1101799058,-1612867079,-2003130348,-21347259,-818624566,-2075067814,1345990997,938463310,1524576004,2073417140,1088950555,-2094501205,482239205,-1309615442,-790001214,1727489602,-685359841,-1697370955,1248714948,274180015,-1511794371,-1330109510,-1419603270,-1756192686,-2009737190,985357524,-1559402380,-2059582224,40870332,-104239990,-650086937,-1125939401,1816083811,953141878,856374094,-2003656273,-994157448,1457008178,-709749571,-1253606499,1093912346,931435521,2134757916,-589608152,812690113,-1599197446,1315171697,-1230265013,-344372038,435793757,944640785,-68256711,1220199162,1673724116,-611796569,-914821818,2107442250,2011119220,2123859141,-488639253,810673204,-1458505034,-1688190736,366536961,321810248,-250190260,1596379509,-1797690849,1911956153,1279911655,1562171162,-1766453837,-1827429504,-1394740679,-1079157833,-2064768853,2058996350,361730262,1311799546,-1319307760,-631053423,-1949915918,-1508752905,902067120,-2101418526,-837957581,-188304005,-449364757,52695878,-1590082720,-1650884436,-1507063725,514055779,1671504049,-167976774,-1502372532,2065294108,279268624,-1071691635,-663694896,-75848574,81756142,-141941284,-1781256040,1370217209,-765853485,-1319611061,1586007440,154941004,-246655641,1060601621,-152284662,-430012560,1307673491,-1023456592,1262455583,1486521708,215695352,-838476468,1375993775,827013854,488702515,2072253572,-684873517,933555382,-455583336,992012600,366137811,-317581000,1579529417,1096873197,2126682716,-1523388253,1150598262,84772497,1880314254,-1888868883,1208276742,1592017287,1608762985,-739968738,-1796344437,771033833,1724416415,935355105,1093479436,1621580760,1070026396,-1356824134,-2074227503,1209350077,-1963351688,-1985786000,-1080638093,53792476,-456880349,-80058072,53585394,50218399,-531209777,-376683920,1059985666,-523563958,935682822,-265022981,1975838133,-1876788392,-1148316303,1069430458,1465216151,548830543,-331604397,908982299,1521105117,-1840492013,-1870104976,-124402696,930083432,1169237733,818326737,1174894691,2074548206,709298114,1038873506,-428488469,-350711643,-394144398,1220828490,-1091047237,-830697085,1356542182,1635872542,-2348516,-412283190,1537145127,-1556160180,-32493320,-23223468,-807991423,-736450645,-481996379,-1553730785,1313520676,1185320541,-496132713,-65550233,1975656783,-1291387911,438601232,-1534896946,1621095814,-1576687012,-1298962263,-286635838,798821923,-381550243,-350826425,64126872,1395333687,1356684807,1192305620,-1767382969,595951977,-1064869083,-579135689,2068135158,-154287009,-1651699242,-893788803,-1126755344,-2127144795,-2099290060,974869491,-251351411,-896841466,-651368611,23443617,369314326,178503527,1526390418,-1605059539,-540812475,-720386071,2064268200,-514518734,-711007023,-1693596834,-1587236718,-2102224594,1440427286,-567222476,-1394623680,590139453,-194796008,-633780482,-1238657794,982049490,1730478620,-1022756153,699261997,-1250533516,-187390003,2017908095,-610136340,-854592718,-583103598,-1578320124,2055670443,1147175715,1788093609,227383916,1948143611,2122622788,1831126736,370416066,-466434350,23930820,653634770,2039297631,1581673288,853608878,-227693365,-1286380199,-1707558875,156719584,-522385699,1928057530,-967105396,353494191,730523884,-776592480,-1527973606,1388627473,948482497,1745894909,-1059757838,-1098617370,88013605,-1855724590,-372867481,141609144,1022672521,-100692175,711535132,951589830,593256126,1216024909,-211765893,511301379,304784156,-482611610,-565520677,377080170,950329014,1525094549,-1705099452,1802114625,1709622029,-1764953882,-1146024315,729281798,751204392,207196267,-399446084,-709601048,-61380903,692275068,-2012459927,-1194472465,1306756473,-866227232,163100263,-2077516779,1115717488,792777483,451167096,-851535710,-744207901,1013100941,-1941125081,103995818,-1098030021,-421370311,1415904601,1968096819,-1405690299,-1286032092,-2062545766,1201430595,-1853478570,-921582788,-172673630,1121217187,1998805986,1294629441,1534091491,2137698461,-1868627460,501129354,-1859266319,-1794548330,-680293146,1849881788,-337061340,20430889,2026610251,519877729,1036905632,78986854,750549155,107322410,1430426258,-376263855,-382630939,-594336931,954352774,1424793491,-1528475880,1414809302,-629465583,1823282118,316638786,-336050877,-1518534214,928773993,-1176166607,1449758450,21468854,16434789,-962147377,-1155949002,-67065169,2086549108,-1448900564,-1738834147,-1597027557,-1806587852,-1830202530,-400905126,1210465332,-1412529549,6671440,1392020182,-1487561625,492207323,-1552264922,-1075038238,1898556563,-996135529,916216109,-1716025607,328194579,601030657,-1000084311,-2146356778,199273577,-773605784,-795347619,1344477406,-895225688,1635091161,-1710632732); -/*FRC*/Random.twister.import_mti(134); void (makeScript(14)); -/*FRC*/count=179; tryItOut("mathy3 = (function(x, y) { \"use asm\"; return Math.fround((((( + ( ~ ( + (( ! ( + x)) >>> 0)))) >>> 0) | ((Math.max(x, (( ~ x) >>> 0)) ^ x) ? Number.MIN_VALUE : Math.fround(Math.cos(Math.fround((( ~ (x | 0)) | 0)))))) ? Math.fround(Math.fround(((( + x) ? y : ( + Math.fround(( + y)))) * x))) : Math.fround(((Math.min((-0x080000001 == /*MARR*/[new Number(1.5), new String(''), new Number(1.5), new Number(1.5), 'A' , new Number(1.5), 'A' , 'A' , (1/0), 'A' , new Number(1.5), new String(''), (1/0), 'A' , new Number(1.5), new String(''), (1/0), new String(''), new String(''), (1/0), new Number(1.5), new Number(1.5), (1/0), new Number(1.5), new Number(1.5), new String(''), new Number(1.5), new String(''), new Number(1.5), 'A' , (1/0), new Number(1.5), (1/0), (1/0), new String(''), 'A' , new Number(1.5), (1/0), new Number(1.5), new String(''), 'A' , (1/0), new String(''), 'A' , new Number(1.5), new Number(1.5), new String(''), new String(''), new Number(1.5), new String(''), new Number(1.5), new String(''), new Number(1.5), new Number(1.5), (1/0), 'A' , new Number(1.5), 'A' , (1/0), new Number(1.5), (1/0), new Number(1.5), (1/0), new String(''), new Number(1.5), new Number(1.5)]), y) + ( + ( ! ( + Math.atan2(Math.fround(-0x080000001), x))))) | 0)))); }); testMathyFunction(mathy3, [1, Number.MAX_VALUE, 0x07fffffff, 0/0, -Number.MAX_VALUE, -Number.MIN_VALUE, -0x080000000, Math.PI, -0x100000000, 42, 0x100000001, 0x100000000, -0x0ffffffff, 0, -0, 0x080000001, -1/0, 0x080000000, 0x0ffffffff, Number.MIN_VALUE, -0x080000001, 0x100000001, 1/0, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(612); void (makeScript(14)); -/*FRC*/count=180; tryItOut("print(x)\nprint(new RegExp(\"\\\\3\", \"yi\"));"); -/*FRC*/Random.twister.import_mta(1177354948,2077732951,-1466252263,-232912027,-1883556609,2016515432,-748230665,446352446,1837217654,883807009,1916026585,1416241673,330808630,1459018424,781825291,-733867546,-598634982,1287591617,-1606486351,-896905107,1979623053,-449875086,-1694607372,-121773662,-1967819223,248759539,1877986727,-1155421458,1358008485,-68255384,-1481592109,1774052295,728663589,-982416619,-1521482712,771153949,-2090816705,-452581194,1126889304,1041909687,-1913141790,-757728876,-1403954833,-1424324199,-1701812197,339307970,-667198606,-1882046255,-46998587,1364786283,2006292635,-1202541345,1953848951,1614112223,-1375575167,-719783978,851874518,-1373221140,947293826,261807665,-803373369,747792937,1282858230,-1292199661,820108839,-1270183585,871159038,-927060654,-1487639797,-2118701692,1040977701,-1935671948,272381675,-676051435,463558631,997735510,-1082546001,-870746102,-1187098265,-1258723743,-662564342,23052758,1129969655,-548745598,-112833383,-480548310,1767007591,1315994550,-1616487654,-1570019301,73163738,756398513,-952371237,309288755,-2024474315,242293563,-1336407693,-1992841794,752908667,258670066,-1958244293,1867334448,-2115705232,1231242234,-397700272,1613240288,2139880353,1566567979,-1450482905,1557063526,-959077787,1298075426,-1290264876,-69976084,-983381378,-2100117671,-1487782933,-453013064,-243758199,-1039204665,-722416560,1605994255,-755897384,-1760438603,-1878041784,1094536405,54950345,2022913447,-603486764,1044960643,-724291610,720873039,320380090,-1137445960,337517115,376009020,313162230,-991787295,-1534402462,508540768,1784700822,-1636939359,-1705860564,1716863540,1271845507,1981224352,230876089,-138664260,322635687,2016919972,1773105216,618354865,-1609913856,-889399118,449253385,1418131882,-425450500,801728637,1863512043,1635354460,1616139887,1922450837,2136258336,443741859,488366128,2131166646,-569036718,951578340,1744463935,1719331154,-1062087736,-250540507,677113129,1044712575,-855880795,-1622029487,1572908417,36372255,-695825567,1430152860,1344737626,-986454601,658126199,-1434059253,-236594134,555136389,1002265372,21692798,-2125740133,-1922570817,-961481528,-1164052045,1343699431,6087593,-273369020,1742697474,550784353,425913072,-88663278,814778402,-1399574027,-192436355,68104061,-1403520944,-1368150327,-866852458,1112387965,-1544740189,-1130204096,809102169,-1632584708,110137264,-374004455,334998586,778318970,-238861800,1626630450,-1857507759,268519980,-450379340,-1698443423,1511713321,-1999903616,93475203,-2130009983,628059860,-950763890,1470871294,961090095,-374532921,-822428384,2048114387,-1085741524,1014090137,117254405,1946430161,-1444138199,275452133,1057371408,-1603926089,-1789012055,1308644998,1451813689,-472946924,1657975637,1628312334,-623032560,-1949835030,1735528712,-280825431,759793363,261803902,-1439938000,196259034,-1967117692,-465732439,-1621952565,-646041354,1381137661,-1926368104,1830209983,-42404302,964599110,-825193657,920841449,1253949692,110195857,2070683015,1102183492,1302526188,339135029,-1273101418,-2039817276,-1850570062,1085540626,1005373121,-1977131807,180977060,-1298832204,1399677450,2023431895,1513857686,-1862556241,-121175310,-188451020,959052915,-241923337,863409317,-956218237,233100629,-1570359133,2116886129,2119450025,-441087216,1617300949,-1649796266,-762387678,1132527275,-2066916356,-1455742350,-1148440835,1713112486,2031584161,-2068006335,-2030870458,1222839492,81581783,421955696,1847297822,1204284625,2128893166,1070941132,-668122321,444409567,-1317008736,-1093009854,1593580875,672211308,729294413,-533128835,-496627653,-1611570086,-1712772355,-1919286479,1000980744,1999769376,1023856958,-690494297,-55796986,-1217533204,-1082578623,1374902777,1598642894,-199609553,1058385936,839192752,1690783649,1483210828,693986465,90345160,1294822407,-326060303,1370289475,1755319872,1318281640,1938819622,-493328191,-459054660,1079648321,-983454971,1278705666,1829597257,1145150569,1201135217,-1101994047,-1650597190,-1792924979,-1454826638,1802466486,-1955656022,353399680,1624783619,1241415101,584056787,-1627375774,93870144,-39488155,1651597882,1520563142,-980567695,-721992544,-1029874437,-654202282,-807620757,1138854413,-2095735183,812907164,367366588,2137825669,467306925,1268203013,-1597235993,1767207517,-209215459,826053036,-987710655,-1912766511,336903382,385116976,-114819166,-465301827,1970698307,1338487353,-503634596,1258383745,-1824676749,2011535860,-1078342732,-1906319473,-692527562,-851382411,609637288,1474855425,988148627,-1200551698,2126050677,-1304612240,-1278299870,1169696916,1781036671,-1195092884,-2119555351,806641835,-67346537,1983784223,1334702165,550393294,707996724,-76233089,-527825885,-1321534347,-868472402,-175885058,-400671478,-1607865411,218243158,1295128153,251290373,-1170133098,-128224996,-230919768,2011181636,-1925492340,-2042058661,40355130,-639119165,-978900952,1191892851,227617467,1978419829,1049281395,-1488528717,120201061,-1820640743,-322063483,548127413,383779587,-683331890,178827872,-913135593,1870645000,-1374499045,1929425780,264939087,1838835186,1414902096,-1296507208,-1816212407,1233207261,130329488,-240153776,474351295,-1754871320,1288169801,1035605907,1501678729,-822525314,-978614229,-1437900020,-307225993,1334691231,1679064675,-1039563732,-442559310,-1118469246,1819811305,-581201216,1845433649,484448535,266494400,613521790,-1817137581,1141053971,1609823672,225107003,385470477,608945961,342040802,-564829068,-352395314,-619315407,507116857,416005233,-151279802,-31394376,-323923355,1841842325,1265958086,1871302363,-1898239443,2086208862,76311886,-1130485414,802171814,1610475690,-1362532009,1120095573,-978442578,-92059404,1188036337,-237874308,-983990265,-821811263,-1163366846,790952958,1937405974,13355767,1323008860,-707342552,1966228954,560315533,903739222,-1949751486,1303026632,2006485365,-300451960,1310204353,-282227389,-82668723,-1132865911,2068170786,-1596172874,-1791498456,-1614698494,2019997640,-525115836,1253428589,1484462271,-821045278,521448246,-2058096109,-224827787,949484672,-1266311544,-617877729,-1999112821,1865074304,-1144370519,-579247593,1664068099,-2057758822,1596006550,233346545,-983280464,-314160810,1127290617,64842306,432325072,1505548551,296094347,1703178120,1972444891,1505547971,333854207,1838968158,-254921622,-1609567950,-614758680,-227131231,1408658032,-403275058,1302441917,1496400751,1331269046,154341521,-1222966992,-1726969530,-11960556,2139084741,778813186,-207429210,-939102686,-1796071013,970371251,-67658833,-1446363171,244658669,2116334841,1618735192,-796152240,-1735120149,-1030948743,-493830712,-2088079777,1990239788,-1887109993,216181795,-1629515590,-1947601580,-1391657861,-1412451983,-821134357,-1020823463,420462583,-1622675632,-1462816969,174563646,341911028,1095793265,-770845623,834747476,-1527782897,368043671,85741326,-1355941283,1459418075,635377993,-860498551,-2076888526,668352086,-995435256,-1565321166,-1640412159,351475862); -/*FRC*/Random.twister.import_mti(27); void (makeScript(14)); -/*FRC*/count=181; tryItOut("mathy4 = (function(x, y) { return ( + ( + (x ? (mathy2((Math.expm1((Math.fround(mathy1(Math.fround(-1/0), Number.MAX_VALUE)) >>> 0)) >>> 0), x) ** (((Math.log2(y) | 0) ? y : ((Math.imul(Math.fround((Math.fround(0x100000001) << Math.fround(x))), (Math.fround((( + x) , Math.fround(0x0ffffffff))) >>> 0)) >>> 0) | 0)) | 0)) : Math.sqrt(( + -0x0ffffffff))))); }); testMathyFunction(mathy4, [-0x080000000, 0x0ffffffff, 0x080000001, -0x0ffffffff, 0x080000000, 0, 42, -1/0, -Number.MIN_VALUE, 0x100000001, -0x07fffffff, -0x100000000, Number.MIN_VALUE, Math.PI, -0x080000001, 0/0, Number.MAX_VALUE, -0, -Number.MAX_VALUE, 0x100000000, 1, 1/0, 0x07fffffff, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(250); void (makeScript(14)); -/*FRC*/count=182; tryItOut("v0 = r1.unicode;"); -/*FRC*/Random.twister.import_mti(264); void (makeScript(14)); -/*FRC*/count=183; tryItOut("\"use strict\"; p1 = t0[o0.v1];"); -/*FRC*/Random.twister.import_mti(284); void (makeScript(14)); -/*FRC*/count=184; tryItOut("testMathyFunction(mathy2, [0.1, /0/, null, objectEmulatingUndefined(), '0', '/0/', [], (new Boolean(true)), ({valueOf:function(){return '0';}}), -0, '\\0', 1, (function(){return 0;}), 0, true, (new Boolean(false)), '', ({valueOf:function(){return 0;}}), (new Number(0)), undefined, (new Number(-0)), false, ({toString:function(){return '0';}}), (new String('')), [0], NaN]); "); -/*FRC*/Random.twister.import_mti(318); void (makeScript(14)); -/*FRC*/count=185; tryItOut("a2.reverse();"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=186; tryItOut("t1 = t0.subarray(17);function x(eval, ...z) { yield -13 } /*ADP-2*/Object.defineProperty(a2, 2, { configurable: true, enumerable: false, get: Map.prototype.values.bind(e2), set: (function() { for (var j=0;j<30;++j) { f0(j%4==0); } }) });"); -/*FRC*/Random.twister.import_mti(447); void (makeScript(14)); -/*FRC*/count=187; tryItOut("{v1 = Object.prototype.isPrototypeOf.call(m1, t0); }"); -/*FRC*/Random.twister.import_mti(477); void (makeScript(14)); -/*FRC*/count=188; tryItOut("a1.forEach(s0, v0, f2);"); -/*FRC*/Random.twister.import_mti(556); void (makeScript(14)); -/*FRC*/count=189; tryItOut("mathy0 = (function(x, y) { return ( ~ ((Math.sqrt(( + ( + (Math.fround(( - x)) >>> y)))) || Math.min(y, (Math.fround(Math.log10(Math.fround(x))) >>> 0))) || Math.fround(( + Math.fround(Math.trunc(((((y | 0) & (1 | 0)) | 0) | 0))))))); }); "); -/*FRC*/Random.twister.import_mta(458924864,52039004,918514523,328582613,1481546012,-413974235,2007537036,-1900948651,-35214278,305110467,15929593,1281619471,1095965475,914374198,-1416942054,1581033382,78341160,-14029160,-1279235908,-1019627945,413439373,-1240732283,-1663765262,1835595710,308116232,1534812914,-175183747,1364824880,821387490,-2015166481,-483646919,922672219,1139474505,-1600883780,-1206652267,360953036,-187974656,1676852886,1608664007,-1017328935,778054585,-1028573485,-1184252314,-355842143,-312841134,725070556,1301981870,190607032,-787542945,-1272807535,1382336638,-375739004,1619044903,-512342505,-996231952,711195167,416907577,832643763,-896504169,62836996,1560234370,1874481574,-2018420794,819451036,-1620315441,-829381737,1754857440,-149384503,425351755,150467891,-1008437615,2069743782,1600293282,-1688871245,2041077832,1153294500,-2087475017,2025987054,-1358160378,-1323656251,760280538,-1539026381,541525633,-1053159443,-501408954,-1448961921,2026621027,45740470,-557525793,1717958340,-1679733531,1690316614,985776264,1102525300,-1073102725,-1712388073,-1302301287,827881946,-352047972,-245157801,1020419422,1870380515,-362116144,1216138486,1956144830,441672789,-1737003924,-768546330,-1062331676,-123654984,-1560174273,-485537890,992338183,-1822214589,490237812,94735083,-925391202,-829419803,-1955219542,1790160095,-1206915068,-55690556,-1481499041,1768034601,-867442205,325233529,-387206716,1503349663,674999702,1685206578,593424059,-224469744,-1570754731,-1472039456,-1410798296,-1671242797,616061869,706988025,-1349220876,2139480742,-834368336,-2111404300,1816005164,968633229,-913118043,-1484898941,-1889825322,197057555,-1261693607,1543339680,816797230,-847497449,106022490,1362243393,1969380419,1052410895,193482833,1137151612,1938675031,-1426067030,-1182313531,1712751255,-2053652219,1795792784,1242733568,1991659242,1337836173,-949360226,-1007468349,-2141775658,987476261,1062405866,-706978672,1484789699,-1694369078,-1361468048,-683392282,-1149704706,-578538882,-1325202965,1155022096,-1242923615,-1574833960,-1957687373,25527359,-1993569259,963850252,1650116797,1987149277,1842170761,-1167918849,-1854350220,1236103003,-1353812279,-1318894984,1811032999,-1891951833,1274751909,-674449274,-2086665210,2106913755,1357304373,-1155071917,1711199946,-1457255648,990449720,-1846436231,-1055468176,1775987268,88079552,1462329900,-327002078,-1678376364,653469289,-1676786941,1704317454,-1800361735,-416456885,1685000961,-239710682,951062594,-2142191502,-65558968,1562852759,-268128424,-1114410170,2133246953,-1628005752,-1362872352,1371682251,-141251997,1206577674,543364406,-304172591,767260386,1880622449,-1022188178,527436401,-984070901,-1829421016,1367348597,432532313,1876628524,-322269859,-810621153,-1632711884,-2032515550,1797102857,413279630,1400407876,1789235201,122379792,513946783,-252773057,-1169187397,-430658600,-346167404,319663256,812131863,-1402416055,-1641543515,-458441674,-1411169872,917666475,1185701608,-979220144,1742894277,246994331,-463451483,712666019,-255506838,-1368456784,1676605317,767602215,-1885160185,1293161200,-247021245,1261337124,-2144592767,-976906861,-865364132,1441519352,1442872166,1656470179,-197301163,1800575795,-1022547063,-428385508,-1337947181,260766536,-691410053,961109188,-62233057,-2120005163,-103964830,1880959962,-264291655,-1048388753,801135007,-1683214845,-396632992,-601157305,-538243749,-1058400108,481533324,879412658,-1115037699,442316373,514790532,523578614,-556749301,1459816974,2106899407,1611386163,1574243991,682781349,1919772274,391507740,-841739481,-755337142,240091481,368436698,1177205072,-273378019,180452938,-175684605,1124102875,1115951325,885868693,752791471,-1181888299,1530711001,-1185493731,-939674524,-885890626,1808076267,-728421218,782738352,-507641606,-2068060197,1008983524,-320428790,838176203,-274852278,-145224714,590426901,417471489,1093292283,1192648601,-1045832098,-957605422,2003017480,-1449003874,1858827003,391494338,-73266129,819379083,1458132192,-148284859,-387443051,19323070,371155753,336434405,725106716,1760553945,139366297,247288763,-485198509,971565715,105228412,-1040566993,-1525532274,1503189737,2007234575,-1824742412,-319428585,1359984254,-1777224141,1503249182,-1164777081,-665021971,-1732225614,-1636703010,1393956999,-127966461,-1401169312,-520769599,-1292016035,1518697798,1857910404,-2001071250,-184945213,1179376708,-1288321390,1476365176,-1207858119,-1618215668,-453185987,1410296305,712285173,178994711,704449301,715385958,-881015151,1563176859,-996496570,-387688070,637806938,435615297,-1102849298,1385016344,-1064893259,769266433,-614165924,-594247608,1712740154,2027216275,516959007,2016767674,-2009554498,-917478882,-878618617,536687906,1176985126,226114446,1750926197,500532571,1622434832,751528635,-1036437369,504287208,-1346788378,-517606198,-792560412,1961725390,185138768,-5101658,-924235858,1333579207,498848562,-1403454481,1184103534,-182386723,2078196196,779095758,-166223265,-636167871,2112113010,1032922278,-1951906356,-752424251,-1987774750,595497150,1240199440,-1260633568,-1214752580,-2129272016,173835602,1141424066,414503070,989135441,638063126,-1888272118,1153900152,-1430758166,-500898764,1764242658,77964531,-166242627,-1860876740,1204290227,-290839287,-329170579,-663713821,-2077678814,907013358,-1131430653,-35836843,12218096,216725536,1614682825,1095147629,-911388412,1960851798,-2122714047,-1153075876,-1504099272,-1325221217,-1848388655,1600196343,-525978392,-742313969,-18900237,418516505,-504837002,193781296,264246720,1577652696,805971065,499283242,797350016,-1846695510,452724515,-558353130,-985498032,2017790708,-418216252,-1322634458,-1350264481,1860784856,-1725969793,179818346,906406930,-1801496970,-540383465,690871927,686242534,-64844561,1137737257,1978665094,-1689406850,-64418621,382232126,1392234204,-158768981,-775620192,892491901,215622937,455035612,-1572214454,-796642737,1445490200,2072646067,-1044741095,704944503,-486718739,-1442836362,-111720966,411656085,-432672231,-2142253354,27193559,854631905,-2031083230,-902388474,-1170116505,1444408769,-100958067,-43352060,1149645469,-2145122986,-1791130515,-684364197,899896944,-1173083266,891551156,540856135,207293577,-890798525,-1953170727,1681755094,2128919040,-79779893,-497345999,381729157,-1313212317,-384424785,-602911381,-2061660110,34524332,273051979,1120410270,77460942,-2056051562,1520947299,194911034,-1106419244,542851823,1616265353,-1871674291,180897258,-1004266800,1044505769,-1809463677,-1694172207,694907500,1324547126,823861394,1046131713,-1051774641,-747205377,430421309,-796718999,1978466477,2111749063,-426701731,153772065,-2079404155,1788671852,-1787317618,-1993575131,1806151431,964331315,1588347350,1535021431,480908161,-1331528835,1643912202,684592969,-963544332,-664184481,731914391,-1359610393,1852564016,1082896239,-782089923,-772854625,-895448457,-1491932440,1679733440,-496219509,-2115265113,-227016590,-1842959188); -/*FRC*/Random.twister.import_mti(83); void (makeScript(14)); -/*FRC*/count=190; tryItOut("/*MXX3*/this.g1.DataView.prototype.getFloat32 = g1.DataView.prototype.getFloat32;"); -/*FRC*/Random.twister.import_mti(96); void (makeScript(14)); -/*FRC*/count=191; tryItOut("mathy2 = (function(x, y) { \"use asm\"; return Math.tan(Math.fround((Math.atan((( + (( + y) - ( + ( ! y)))) >>> 0)) >>> 0))); }); testMathyFunction(mathy2, [1, 0x100000001, -0x080000001, -0x100000000, -1/0, 0x100000001, -0x0ffffffff, Math.PI, 0x0ffffffff, 1/0, 0x080000001, -Number.MIN_VALUE, 0x07fffffff, 0x080000000, 0/0, Number.MAX_VALUE, -0x080000000, -0, 0x100000000, -Number.MAX_VALUE, Number.MIN_VALUE, -0x07fffffff, 0, 42]); "); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=192; tryItOut("t0[({valueOf: function() { delete o1.v2[\"hypot\"];return 11; }})] = Math.imul([1,,], ((function sum_indexing(qfjzrl, jwmsqf) { ; return qfjzrl.length == jwmsqf ? 0 : qfjzrl[jwmsqf] + sum_indexing(qfjzrl, jwmsqf + 1); })(/*MARR*/[ /x/g , objectEmulatingUndefined(), /x/g , /x/g , objectEmulatingUndefined(), /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, /x/g , new Boolean(true), objectEmulatingUndefined(), /x/g , objectEmulatingUndefined(), /x/g , /x/g , new Boolean(true), /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, objectEmulatingUndefined(), /x/g , objectEmulatingUndefined(), new Boolean(true), /x/g , /x/g , objectEmulatingUndefined(), /x/g , /x/g , /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, objectEmulatingUndefined(), /x/g , new Boolean(true), /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, /x/g , /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, new Boolean(true), /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, /(\\u791b|(?:.)|.*[^]|\\B*|(?=$\\b|[^]+?))/yi, objectEmulatingUndefined()], 0)));"); -/*FRC*/Random.twister.import_mta(-445519725,-698848125,-1162425920,646738585,-2091115688,1366795936,1428987876,601848198,344315256,1905615321,-1724030334,-1604859121,-1526479371,1195916053,-1348905114,797942037,-454007536,-2055949290,-1635631922,-1383192694,-1663210238,912200899,-24323487,-1065427046,-434312834,-1137511997,780900286,352357375,-224080803,-179624808,-1564230942,-1808377280,-764214951,-619739523,-445089408,-616551734,-1589959761,-1038869262,-1280431133,831160997,1891200024,331879156,-237617091,-621425210,319300864,-739399030,2121332408,-1610663874,890121544,-1289306754,1227431856,-723926678,572249624,-1318473539,1170062130,-1239752451,-936128362,144491956,-163106754,-1351989263,1031908737,1204818977,1088371408,-1404548119,-666307838,-79741190,-431757373,2132656400,2136452722,-774717579,2030780576,-643427732,95885754,991703703,-856369829,1956652521,-1542354412,-1817236447,-141946413,-366491666,1995945363,-913220241,-1249947895,288397162,-1935713139,750781930,1975304589,924004081,-931688898,849433237,-1016943300,-1934412907,2142934861,1504338954,104727771,1055330528,1079915252,-731194824,-365562172,1370045295,-256081930,88039825,2046563153,365603807,97299295,382185749,-1214234139,-1525320926,68525224,798680708,-1062366999,1797183747,-28280538,-679215675,-1855079744,309165917,1793057243,-1703887678,-981681977,887145188,-2106224243,-1996373543,-1740001075,610333264,747694496,582860508,-1489052724,-493570464,-469900615,-1114267649,898976657,-752357975,-160902214,-2056239909,-2129546450,-1327592262,1302583098,1036966797,-1656769602,-1927129554,-1203501440,1855347331,1675843328,1032718427,-886481207,1969054474,1512570868,1230511989,-675295433,1312835286,1179462617,-1102945495,-183003678,597531560,325613237,1274672812,339775822,450523402,542901601,-436742534,-430375651,1361325598,-32492271,1093977558,1170185589,1172895314,-1041240322,-298735301,-242060280,762531042,-1011233250,-1342980486,-146376814,499551278,363120678,1866454205,-657500567,879085916,-904451312,-597590180,-1549349664,826718437,1288713035,-754829526,1505422341,1660452015,1006637570,959772128,-2038077577,-892653418,2041007784,-1014713485,1340127988,-1949880893,-178909135,1310078245,-1994906208,1446569860,-1488908706,-286742253,896865856,-301480038,-410461717,-1648463691,908273435,-1467287344,1042754414,798172245,506850785,-1690908053,1472016411,1697975907,216029471,1332135937,1500170640,1034230084,-2064253622,-1414228432,-373725650,-1917377346,-896996786,-652658228,-1819960108,-630317785,-551410684,350474585,-1654791704,-1307315357,665962169,410266670,1165559708,-1821535805,-24097129,66135189,-2099524639,890013647,-1490693058,580514008,-382899429,1422622608,-761037210,-1737171600,-2132650140,439330368,-903622260,-571531297,1091066321,-1869840443,534992737,1389798078,-1009028974,1883587566,491601795,-358291012,1714085395,-2029371497,-1127353644,603920694,453673147,74429908,-1453729690,-1333143208,420587328,-2106782501,-523945894,1498915166,-1344382793,-612238955,-537028614,-910892280,-1916646114,-67637731,1543851334,-525788956,-109760186,-1801061066,-693010324,-801660625,791919484,1143872950,-610509887,1857914497,508530035,1797641827,-465749774,1321800997,-598611329,-56010569,1403269,-223117390,-252910197,2137354450,585509583,-1700452238,118707453,-566197263,672883229,-1209803600,1299756466,1905981322,-872346901,973726505,349514147,-364362542,-1986375944,1883655922,1040313371,2040545233,-972305644,52406483,2058424941,727560629,-2050141268,-1033964007,-1170035844,-247382777,957064475,2088768624,-439480400,-1584011458,1397790439,623597683,-1875514703,87985617,2007091430,314408822,-370965538,1943169891,-1973909863,-63812636,-514031892,-2140177138,1966697255,-767987398,1241466120,777980647,2026452828,-260927340,-1337222607,-1606314028,-504320192,1352649978,631403640,292807712,1390450071,1342506520,-1921164730,955649694,-1445646602,-79709148,1607548372,943723503,-858736770,-1399585107,1179451560,580784035,-1763625585,-1760995732,1046173244,-1225015323,393692560,304073091,-1522357068,-522415607,-1595855714,57256636,631299160,2109260566,1840549565,-636027576,1862735004,1055753058,-679202862,1404677646,-1507173471,-1086843896,-599773936,713149014,973317941,3239371,1878897009,1548780762,-1149613520,-1318612976,1290247226,-919707042,629265803,-1961212994,1719309660,-95601498,-1572827160,647656279,1550980379,-1441780926,1798955000,-1101559154,-972715229,817285689,599868255,1796954182,-1875854981,16072213,-745994454,793899387,371760383,-1100675155,-1889309711,911542047,778524050,630646087,1783170479,-1772137126,1330263425,1380602406,1245699709,602388833,1554748870,1170078197,-946281556,726174715,1998532895,-1163359584,1829083702,-1884997529,-81864991,816020524,-558720229,-1172827198,1444145926,-1466974689,-1973247674,1186061694,-1058290014,1146219913,706173821,569179698,-12424772,-1458837977,1810425850,-2084269001,741291574,-84801887,1078622646,-1815217619,163051456,498842193,-213581817,-733972451,-590537942,1662933353,-1632868778,-1902285733,806758865,-2026651400,-371204291,1731933985,1566207623,1736267901,-1623721588,2061664096,284503454,-2057147548,1466894579,-1300628917,1401651906,-1648791190,-812573386,1889560039,-788627858,2047796962,-1267596261,622576101,685763825,52217920,-880047694,-1733543617,-1255111605,-2088351766,1982873598,-1269136840,1393494357,1123841681,-42327236,628733995,2120065944,1210458791,-974759868,2025357649,1177677564,692239668,1921328131,111298044,-1943660915,-1624621428,-1639475571,-669147878,-424645660,214953981,-183053176,1271267590,-396374991,755204616,-1141250115,-1273970876,-1407900587,482015262,482018341,358000561,432615405,-1949771629,780022230,-12685573,1149681182,716990763,825689939,342291702,1437239578,135031360,1167946897,792785904,2109284044,1282893794,-146971489,-1973984617,-553541536,-1897322157,-285256231,-1047613563,724375436,-442531749,-2124647458,760739582,-913064927,-234155905,-774492552,-1827945681,2142505518,-1342370440,-2125465498,-974474041,463027885,976374099,-231133802,1544615832,-1196942180,399329679,73439143,770037477,-564071966,-1876432870,-693567688,-2060202220,1215091790,-186018207,692295097,55464421,1662483839,1562865938,1554886845,120041164,-313840582,-311908814,-965069024,-1432233151,1906760826,1573402809,1463878078,-1551997095,295217836,-1266025470,806873455,1353609072,1388090451,2032534184,1027146499,-1227645412,840609164,-151868081,-1452220138,-1984653941,-1903817787,-2140847581,-1316725699,1114372280,-1011028134,421668903,-1367986260,-1856852145,-1414471173,1441880596,889714760,296228981,-526935499,-2109263516,-671549977,-1339486606,1092168277,441020202,878074405,169518495,-1084044974,597666023,-1871825693,1761072500,-1109626039,-1151718828,1892639694,-493746678,2132294048,1313232448,2109681796,-1030368746,-1105489082,-1664306461,983815167,-1752845364,102091074,-238421348,1419061815,-196312959,1944933710,302374849,-146481960,766889909); -/*FRC*/Random.twister.import_mti(344); void (makeScript(14)); -/*FRC*/count=193; tryItOut("e1.has(b2);"); -/*FRC*/Random.twister.import_mti(357); void (makeScript(14)); -/*FRC*/count=194; tryItOut("mathy1 = (function(x, y) { return Math.imul(Math.fround(Math.fround(Math.pow(((( ~ (x | 0)) | 0) | 0), mathy0(Math.fround((x === Math.min(( + y), (( ! (x | 0)) | 0)))), (((y > (x | 0)) | 0) | Math.asin(x)))))), Math.fround(Math.pow(Math.sqrt(Math.fround(Math.max(y, Math.fround(y)))), ( + Math.trunc(( + Math.fround(Math.imul(Math.fround(y), Math.fround(Math.sqrt(( ~ 0x07fffffff))))))))))); }); testMathyFunction(mathy1, [Number.MAX_VALUE, 0x0ffffffff, 42, -0, -0x07fffffff, -0x080000001, 0x100000000, 0x080000000, 0/0, -Number.MIN_VALUE, Number.MIN_VALUE, 0x080000001, 1, 0x100000001, -0x0ffffffff, -0x080000000, 1/0, 0, -1/0, -0x100000000, -Number.MAX_VALUE, 0x100000001, 0x07fffffff, Math.PI]); "); -/*FRC*/Random.twister.import_mta(-1030599513,2124031935,-1588211243,-1851869993,1750003013,-115390248,1052659128,476739139,531040158,-2080515408,-9022905,-437385289,-549828590,2105912860,1485845775,2100430601,284166189,92192794,1965075108,314909511,-2019900597,1641430595,1266148406,68240800,2109293214,977293801,472763719,1531183120,1241968224,-1881979286,-268222750,-1507665035,1543556606,-119628410,722585627,159311786,626779120,-355926445,-534704193,-954277968,-1594888355,-905218245,-289508652,1705714870,-754658332,1064436458,-1674418638,1395712356,69788910,-1747873825,-30631768,-1916735450,-492686872,-59589681,211332346,1410318746,-1015176670,-755218654,-1450793978,-1701705576,-576855374,-1084726044,-170988981,2094093343,-117574631,-1119466547,-839443773,1814058491,744005135,-1290486426,1551068369,-1843006797,-24621194,184606313,-968662066,987179515,-742134129,692466052,-306193720,1464069725,1044797826,-1249433435,-54343283,-867690548,345797732,1588392741,-1476878452,1516659847,-2004993230,-464056614,-1477859260,-1595665019,93818673,-393046351,433180044,-1408692233,-1256238192,-346198545,700559474,-554806241,-682037270,1356885503,-668212170,1940990273,-1083643299,958494608,-426113323,-299898367,192383836,-1511687026,-103711761,652284798,2030147246,1724443830,788554122,-387842516,662976330,-897455121,1310102916,-845614845,-712754573,-1867441112,2104527576,1810983452,1563015308,-459142791,-81970777,938992099,1227576947,758989006,1897261454,1343848017,1043272425,-1043027383,1966649507,-1354606660,1977929062,-548800601,-711268296,597035374,1103007974,-1329703962,1109721141,-1492836074,1084029142,-550841748,-508278531,176114648,1894607588,-1102138732,-1412671570,-1528087789,-1041685042,1175745725,-1597033406,1112317161,-108744988,-1603983402,833993432,-1993100498,901080605,-89318678,1740491815,1453085279,-811803365,-426917793,1152499459,158328446,191995592,1990059697,-192432028,1782288741,-93668843,986025340,-29805071,-405565512,588572166,405968523,-656203342,1674169340,928596450,370165868,-1607102946,2069089560,672255147,-1350281924,1592885832,1509354558,2085073004,-760903432,697845289,-868172671,-921011158,-693878641,-273960392,-467957531,-379895130,-1000836408,1582688804,463708533,759860455,-560298481,-573756134,2105272832,937088143,-813850284,-432605311,734934374,801767358,-2112271588,1224749540,-530536976,-251821409,1359631436,-599302476,-1134465565,-921241093,1316970728,-782360173,1666301029,-1656396166,492299357,7552717,477906764,-1048803406,-102093780,-306936101,138551076,1923101096,-2081861093,18926825,-1911653679,569338445,-1495590761,-538671749,204860801,-760143140,1390958357,-1886668673,-160696543,834650276,417406653,807785513,903995627,-226361558,-1934870893,-2087998342,1365497892,1220374300,1788501119,2083775575,-367563392,252847415,-164621679,-1043747068,341841674,-567489807,1687080544,-1542127201,1219240397,-1600491222,1738087355,-1858023144,1429831645,-2040320260,1858507579,869700517,-820960096,-1362032961,-1470147493,-2124913817,-1123650233,254185112,-527892847,425861119,1869620440,1724051351,-1447738090,-1344798979,1449438423,304400464,-1699226980,-124413324,-245154213,747666799,514253286,2110657564,77588143,-2046698691,347088977,56880246,1887850913,-1340809228,393609314,-636967716,-513957922,-1461365954,986658312,-1427601034,1098939100,-821256414,1428244416,267586450,-1760638477,1365579517,1807195162,-224706198,490978312,1828736019,1486024804,1089372105,377150898,-1500825354,-86390222,-1144108325,1307793760,-636025630,-1794199652,-265361894,-180915043,1661962839,-2000451573,2006907328,-1898989597,-503066028,489714077,1041224049,1266424953,788088845,-1467622592,864458694,1560080145,272486157,-2107268015,1614340013,923996402,-1646512956,956040744,1992415380,167362830,243731147,1037130678,-531100612,-1745040034,-494704413,1218984103,-1847331252,-1049711352,-315702726,311956530,-287714508,2067915571,736148208,-1740916237,-1078962451,-615285653,1723460600,775438992,-764669572,1972678689,1372847703,1738139385,1176809063,630479657,-1627577607,-951417324,491415781,-294885529,-1649070782,900106875,-1200365401,1801383743,-1225390741,1806292466,1440956892,516783212,-351381569,801453291,1039875369,1864322473,1748776656,-1116597926,452941025,-1611177735,-2064509191,-92413758,-1933667599,1183329459,-947157831,916294611,-1663444181,2024630089,-209332738,825053439,373564217,-243537018,-1211223182,2087692564,1605778758,1803179639,-474504535,-671238556,695453658,-1324869466,-1643600510,106570901,-1578370900,543877931,-1647080944,203013142,1887201205,-692296012,-2036237265,-488186455,-787644335,1376942735,1769194717,173291519,15485347,1805472890,-873462305,-1725333725,2059510793,232560905,-1677079330,-402385034,1185917076,1178827108,1406527967,-1728283207,505611455,397359070,878569295,1781918432,993544831,275303264,1335101648,1022640665,2022334260,-1494607484,-176429117,-1134402961,747577386,-1915944421,-643166945,1911820623,-1871105868,-215749649,-170887114,254086630,-1036369474,8332165,-93074352,5495194,-489212821,-989481420,694111994,247148591,-209762975,697695362,-1536545499,760984029,-1946050437,-1149967427,1546973088,-398248220,389248269,432078739,1709600204,-1290508549,-26955578,2145827213,-1927130445,-1504810845,-2076347292,-1959944730,727285642,120322984,-264622948,-6483646,1313249542,-9126246,-539722816,-519955651,-644517908,-2031735363,-1376202310,-2088597932,1933067553,822801350,1449680163,427332965,559123581,-436344772,-1558189523,-578210995,1999639418,-1143797469,-656050748,-1576937377,-1240907883,-1651090178,897088378,-1446982302,-404211431,948096048,-976793648,-2016874631,106628618,-1347779937,1475656185,1322459744,-1829739092,-61003926,246193364,-1395351632,280370545,-1197087007,1730553945,-1899474798,827175827,2023663180,1031708234,-949648626,-458026370,1151308613,-1202741823,-1701178140,-18467022,1331507837,-1046138228,-324765646,-1950702342,-1703913898,-842076864,316295428,1332508376,4817914,-309905650,1917785983,2127060548,-2100110320,603660972,-968684884,1205910404,1796611350,2060267312,1279259302,-1060078586,483034716,-866758551,-2043299725,-1102312846,-207180942,-741112748,-2038806931,-2045353015,-2066153657,1601124471,647518480,-187566264,50709565,-78951027,-451978503,-1894733141,1566660683,-2125577603,1179344797,664118711,559630420,-1079248154,1389728277,1950038515,376948498,-637050362,-1272736516,-1326845366,-1168006209,-1500309207,-173338675,1090627645,2121975852,-1167687625,1197972565,-73275812,-984152406,-1540008103,-1660731787,224480243,1554469443,-1270290484,935223100,-2039931226,-272719159,-1233592226,1680935095,948059630,995130730,-145027793,-1454939710,-1553026722,-992154766,1790351062,1827200708,1919427009,1167887566,1582714540,397421056,-1705952646,606129315,-1094874638,-603988134,756222316,1223150545,1296758101,-2071896040,242841245,1872494319,-612132906,-1972142247,-1591275584,770067797,1051311235,261072382); -/*FRC*/Random.twister.import_mti(6); void (makeScript(14)); -/*FRC*/count=195; tryItOut("Array.prototype.sort.call(a0, f0, g0.i1);"); -/*FRC*/Random.twister.import_mti(30); void (makeScript(14)); -/*FRC*/count=196; tryItOut("mathy0 = (function(x, y) { return Math.max(( + ((Math.atan2((( + Math.imul(( + y), x)) >>> 0), (( ! 0x080000001) >>> 0)) >>> 0) >>> ((x >> ( + ( ~ ((x !== y) - Math.max((x | 0), Math.fround((y + (x >>> 0)))))))) | 0))), Math.max(Math.atan(((1 | ((Math.cos(y) | 0) | 0)) | 0)), Math.atan2((y | 0), ( + Math.max((x >>> 0), (Math.expm1((Math.exp((0x07fffffff | 0)) | 0)) >>> 0)))))); }); testMathyFunction(mathy0, [-0x07fffffff, 0x100000001, 0x0ffffffff, 0x080000001, -0, Math.PI, 0x100000001, -0x080000001, 42, 0x07fffffff, 0x100000000, 0x080000000, -1/0, -0x0ffffffff, Number.MIN_VALUE, 0/0, 1, Number.MAX_VALUE, -0x100000000, -Number.MAX_VALUE, -0x080000000, -Number.MIN_VALUE, 1/0, 0]); "); -/*FRC*/Random.twister.import_mti(325); void (makeScript(14)); -/*FRC*/count=197; tryItOut("mathy1 = (function(x, y) { return ( - Math.fround(Math.imul(( + mathy0(mathy0(x, ( + Math.hypot(( + x), ( + y)))), ((((((x >>> 0) == (Math.atan2((x | 0), (y | 0)) >>> 0)) >>> 0) >>> 0) << (x >>> 0)) >>> 0))), ( + (( + (Math.fround(0/0) === x)) >>> mathy0(Math.fround((Math.asinh(x) > (Math.cos(( + -Number.MAX_VALUE)) | 0))), 0x100000001)))))); }); testMathyFunction(mathy1, [0x100000000, Number.MIN_VALUE, -0x100000000, -0x07fffffff, 1, -Number.MAX_VALUE, Math.PI, 42, -Number.MIN_VALUE, 0, -0x0ffffffff, 0x100000001, -0, 1/0, -0x080000000, 0x080000001, -1/0, 0x07fffffff, Number.MAX_VALUE, -0x080000001, 0x080000000, 0/0, 0x100000001, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(588); void (makeScript(14)); -/*FRC*/count=198; tryItOut("m2.set(v2, m1);"); -/*FRC*/Random.twister.import_mti(605); void (makeScript(14)); -/*FRC*/count=199; tryItOut("\"use strict\"; t0 = new Int32Array(v2);"); -/*FRC*/Random.twister.import_mti(620); void (makeScript(14)); -/*FRC*/count=200; tryItOut("mathy4 = (function(x, y) { return (( ! mathy0(Math.hypot(-Number.MIN_VALUE, ( ! Math.fround(-0x07fffffff))), ( + Math.atan2((Math.atan((y | 0)) | 0), Math.min(( - 0x100000000), Math.exp(x)))))) != (mathy3(( + Math.fround(Math.tanh(( ! ( + -0x080000000))))), ( + Math.fround(Math.min(Math.fround(((Math.pow(y, Math.fround(y)) % (( ! ( + (y ? y : Math.fround(x)))) >>> 0)) | 0)), Math.fround(((Math.log1p((( + (( + y) <= ( + y))) | 0)) | 0) >= (x % y))))))) >>> 0)); }); testMathyFunction(mathy4, [42, -0x080000001, 0x07fffffff, 0x100000001, 0/0, Number.MAX_VALUE, -0x080000000, Number.MIN_VALUE, 1/0, 1, -0x07fffffff, -1/0, 0x100000000, Math.PI, 0x080000001, -Number.MAX_VALUE, 0x0ffffffff, 0x080000000, 0x100000001, 0, -0x100000000, -0x0ffffffff, -Number.MIN_VALUE, -0]); "); -/*FRC*/Random.twister.import_mta(-1708520940,-703306381,-1161970493,244868308,-344845816,1982652678,641045336,-1847908787,128240077,1196974416,-879405009,-229724647,1926982424,-985870867,1898829295,399624422,-530989660,-341977853,-1032299533,-206170713,-474507263,626506680,1771435690,-181623664,486663944,-304090507,545167617,-1190478866,-269634493,1051604965,-1940216831,1037405984,-1533856902,-761048979,319833099,653268663,-967236330,-769622657,1944560824,-2031399007,-1057404581,265643614,-734032929,-587624911,-472161510,580260659,-464162135,-608272536,-485202305,-277906208,-1245473796,-2071895870,-401284898,-2072635453,712557384,-607314623,1764620811,-1240177048,-2008239496,1200734115,1360462429,277905563,-822745518,18638838,-353360668,1945279941,1416395167,-753921928,-238458793,-536710214,-1982155243,446843511,1872541968,-582680287,-1148871249,1036719403,-219320223,-1293772544,2038749719,880431947,-2065637595,391379077,-1715922268,67674932,1227519959,-869780474,356096417,-576032139,-187847984,-32766568,1257782345,-1459932570,-1672804287,444644325,-1770741183,2078025141,157019668,-134270444,1811327389,480011407,1252757251,-185563169,1121057824,817232484,-1056512202,-1623340849,1204259005,-1571554121,712012407,539443960,-726112570,987483485,-1664158524,1081379132,2057559414,-1053655543,1075143234,1772606998,319838190,-478367593,-251827979,429813045,-1154423396,534343637,-741928401,-638012858,93766432,1496189336,1375810338,-2134546170,731781907,2029588121,-155199610,573692418,-83536916,-246889911,752622938,-1492936356,1125207475,1874017963,404138505,362612683,1640859636,512107055,-1387809498,-903236083,-2088980672,2140540662,1949385820,791348455,-2025660432,-1608192287,-423097123,-600716728,2115716824,-2104599296,-1550567271,-1962321608,-2099011590,1170497560,-1181846990,-1246138693,-1797340960,1243031834,-380922675,1778387,-507991610,-1968675377,-14214196,-1156735409,-1436669968,-2086123422,2084146922,432001217,557602249,632376048,-2090451832,-159976737,-976785150,-1421520197,-1318484087,-1232478682,-2013075135,-872284489,1773724338,-719437549,1805445706,-981320086,-335166762,1777452178,573296874,1777104358,-1359101221,-1013104944,-591713391,-221986827,-1919771731,-648932020,-253204270,-1221604542,-1927967054,-1715627102,-671443774,562785222,-480101416,-2136646199,957334647,1703730718,1150298432,987125342,662731000,2066172906,1285940869,-1868683608,482859380,-795818674,802716581,-51555005,1814105845,14402976,-1204241378,1119008879,-2075304705,-2120659943,1360223043,-780447951,1269738092,-1552280896,1323859105,1663396456,-1869092509,579672049,-62268014,-791715526,1321820242,788289699,-1222313467,1431844047,276030806,704940874,1346695788,-264794332,-1809217460,-652656079,885227157,-2084729394,-1693976139,-941019249,-1995299496,-830163874,-1071181232,-1015003828,1338985442,1083854467,-214257557,1509122532,1290358997,123245585,-1064620263,-1260516369,946302319,464530567,-714860154,-982994328,1011582013,-217817675,-1587290639,244939483,-1024295764,228264627,460457037,-1538775978,-1948590940,837602697,-335123196,1232970091,-71967125,2065751133,1992001142,-519666442,-1993475443,1446121074,980693683,-1502776221,-1186523493,-1230260106,-589890517,-887136484,-1010817940,-817622935,-1604845575,-218477794,944348660,2036870129,-1547772009,-1514421816,-1117394754,-1666256210,2053273369,1209726593,-1210735935,-1132717978,-1354448627,56052672,-2026285299,1086945954,2061208911,728254963,991592631,549885343,255184365,1517284268,-1320890081,-774501357,-1152131387,-641324895,-1265937834,854544196,1265121527,1959034293,-2014720193,-306454879,-441233765,2019166014,544193029,-302386694,-1607804308,-991978534,-525178241,454211523,-2017247949,1343271023,117942840,-1361881164,-1176865586,614361109,2086224364,-271021428,1042755034,42320254,1587291367,1250941800,-1966335834,-1470339348,-1795458406,467774664,-2083789293,-2039871000,1355966252,-1940124666,-76468589,-969453737,1290657376,-1018799991,-1383135374,559793886,-1747367858,44569517,-1690573226,1197381746,-1997170271,1092596736,2055888642,-1163248391,-995698090,-1799567074,-1047675449,1456225448,-699993559,-453195912,-232659601,791938892,-1073914636,-1450373202,1894822080,-658579620,-507433395,12054971,245627114,-757721163,-1031224603,-1435739017,343760291,2028307258,-164124327,1572103773,-1081555298,54722737,2013207437,62561706,-1354159519,-796295630,-1048233357,1938950277,-1307209716,-1530920331,-986035515,-2054866605,790483846,-722800799,1916865523,1971697188,1026901667,-865964471,743657546,-718107308,1652070385,-1082113407,-259719123,691300932,-413151763,-1277105030,1030070040,-1710056771,897823730,1102352487,-170692686,-1152039708,1545789403,302870763,369176990,953370954,1830962094,-2087289406,-1387258121,-1816150888,-1810991120,1039649410,214635937,31696450,710733865,1615100064,-1245730631,-1113894505,1840823214,1666854184,-1113274483,465917794,1750222632,-1357863493,1470605120,1249921377,1333720220,-637153803,488631611,1679660719,-532512632,-1026523131,85999260,-1521452000,1487826180,1814740331,-1856855044,-473071482,-1040660006,440916956,-42974560,807467788,1984424368,2004122591,527042827,-775880528,-363947614,-650211883,1635364797,-1025315057,-1075035044,1656210570,1890913414,-350498769,1071820328,-1420105965,1234307392,-652655737,-2105548420,-591488355,-854505078,-130415586,-1135686163,686557025,2132808142,-1664053877,-1334125403,539223843,-584895984,-1770567740,-182499131,-655098080,53826916,1733855176,1356613637,-1242893604,-1040537173,1776588856,-111848542,-1184205551,-1988477187,1996537519,1816164518,1238823857,2133320694,-1229303623,1570621402,290026040,660716101,1415061918,1005208469,-905938552,-655360030,-930685296,-2130385581,-1338039219,-930796605,-1686064575,-579530556,311663115,1243501510,1254906634,-174169257,-102239006,1160214743,-1123970894,-2046230449,-818126463,1743358931,-11728602,89652467,-928597672,1121595783,-1885972405,1963292633,-1025243792,233918857,473758703,1644522865,481082331,551703650,972445290,-1170157364,-1910440387,-792763877,-357675117,-85479945,-679800940,124010959,1980673903,1390118118,-1484656324,-1545691761,1519441520,-1572312104,2135539516,-1809144765,-909961146,518654003,984738628,-1065977665,1903956439,1130142951,1030705564,1985545589,494363351,-820939338,-1562794906,408983158,-1484211141,-123150737,-732018973,1512210242,-1793464875,1480466233,938366652,282742593,-1362602224,-595868778,145137161,1214541062,825234136,636123246,-1251624287,-59032417,699725750,-605636565,-1442202784,1610846456,1344929061,-1864910953,1464700039,-163271170,1622027492,-512421017,-946711291,2053843109,-1699623448,-1109653460,-905450274,-111871539,1350882087,2073540525,-297139109,-874284521,95157163,-288706498,1107136114,578402268,562618300,-653393227,-811573288,1635027705,186882394,354053271,-1598149137,-523291798,2428139,17019069,-1446309860,-1384132094,-2104958582,213414209,-1860780653,-1133928720,877264530,-1559768950,-936423473); -/*FRC*/Random.twister.import_mti(341); void (makeScript(14)); -/*FRC*/count=201; tryItOut("(-27);"); -/*FRC*/Random.twister.import_mti(368); void (makeScript(14)); -/*FRC*/count=202; tryItOut("mathy2 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Int32ArrayView = new stdlib.Int32Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n var i3 = 0;\n switch (((((-562949953421313.0) > (-4503599627370497.0))-((0xf863bd47) ? (0xfacdb955) : (0xffffffff)))|0)) {\n }\n {\n i3 = (i3);\n }\n d0 = (134217729.0);\n (Int32ArrayView[0]) = (((d0) == (+(0xaa618eb1)))+(i3)-(17));\n return +((( \"\" ) ? (new (x)(/((\\B+?.)){1,8193}[]\\D*?^|[^]|(?![\\0-\\x42]|(?:^)\\3)/gim, x)\n) : (((d1)) - ((d1)))));\n return +((-((((d1)) % (((d1) + (x)))))));\n }\n return f; })(this, {ff: (objectEmulatingUndefined).call}, new ArrayBuffer(4096)); testMathyFunction(mathy2, [-0x07fffffff, 0, -0x100000000, 0x07fffffff, -0x080000001, -0, 0/0, Math.PI, 0x0ffffffff, 0x100000001, -Number.MIN_VALUE, -0x080000000, 0x080000001, -0x0ffffffff, -1/0, 1/0, 0x080000000, 42, Number.MAX_VALUE, 1, 0x100000001, -Number.MAX_VALUE, Number.MIN_VALUE, 0x100000000]); "); -/*FRC*/Random.twister.import_mta(-140421747,1201185026,437402088,1965755804,750491410,-2137821146,-1197587357,-280075453,-630355473,1623678251,381822733,2082498522,983750705,1415286560,-2111502199,-1739857887,-187503930,1718135957,-911207972,-392711924,-522814719,1702483304,639683150,-1730469283,-630459184,1927334792,-1050152399,1066359052,1191856335,-794075812,-1938398473,-1320238745,-691013419,-1083557319,342825994,323593706,264374355,-1811441628,1079639722,808703873,-340246347,1016873560,-493690345,2136497294,1148189522,1489248701,-1826990235,-1782556640,-2066344397,155935970,-640383606,-1173376386,575445906,-828953490,-214708424,-1957323738,-75404751,-1264909763,454041643,1246093612,1157886107,-1980202676,1559508651,-1819037096,559963893,549483583,501752827,-1231127608,722515249,-794030167,1698528787,1891722455,-1700237559,-699706797,90070171,424984622,-719758689,-319994071,-618749480,-1194279654,2133829141,-774795885,60747253,-175868671,-1617606109,679115565,-323222196,-439145689,2060967574,-407387003,-594350385,866781614,607560486,1641368811,-157873038,761374853,904240282,922065751,1521400881,-1653794531,1155169262,-888938260,-1393876450,-1433211233,-329907154,-211234697,941871989,-205249567,-846223898,415732064,565753512,1827342557,1901241162,-1196622062,931570834,-1803206846,-1263502853,-723816990,1176768767,221410554,497223569,-546405582,-1531368335,-1760049485,-215090331,-98918165,-1579799863,-873582429,-602061510,367078089,1639029037,328846175,-1232670540,-1289565060,-168937872,-231828536,-426440222,-109695038,-361695075,-1114039985,-1208414511,810262332,1079266282,-195447736,846293031,366600001,1292898443,2004636641,916609122,-1804996947,-1056629262,-841927207,-2030269304,-611845201,-1640781352,486264049,-285682833,206622841,1321353691,-359718140,-879507267,-937251964,1069618434,-1459120640,-512741926,1414095112,1502868291,1932625640,-1117918013,-1491559835,1058288953,-1624523963,560092246,-1404913989,-1714134411,332518801,2375432,-784866792,402562760,1058607895,-1202518901,-938540701,-1626376905,-1397805345,-39290016,2091591367,-1278920506,-1019495397,-1951870312,-1064344349,791882998,1860875454,2103497683,-2066506457,640897443,1038581566,2075460870,-1395069292,1117103097,1192545194,1030794945,-1205411810,-146279562,1701703501,1944331581,-787464862,-1727157940,-25694290,-265187835,1258651868,-1747007679,-383842792,1202405136,-1552395995,372486758,338212152,-358819284,1349114404,-1612173926,-354412918,-30945403,-934095567,1741429623,-1503800028,-563085074,-1873947954,-797239687,-1697787509,-1612522129,499721472,762354091,262113499,82460213,501840066,1279585164,1441409520,-771439096,414670607,-1201097304,-54050619,-195208728,1732972624,-1030420582,200191488,480157602,1665579833,-1104382778,1040970894,-667602830,981482000,-1598885646,231428152,-198500552,1338286227,180444812,265158451,613152931,-494600595,1913040345,2025925181,102886677,1853664649,1444868977,-861256841,-867653084,-736419501,-678426029,-369605766,-2080488763,-1197088668,-976772245,381611732,-1054838013,1309106402,393532261,1925410095,-1918554734,-1191181362,855230434,-939413887,-521389785,-934625956,-706488266,1305246848,-9879759,-1767440741,1778773496,315105698,1872540176,893626832,1007753916,-2045856160,-973575778,-1379617038,1505647185,2101337694,1624199784,-1056275708,-2032134937,1361818079,-2025466669,-931840413,1412090369,1341729468,1209191737,796692599,1993822662,-1160000611,-336818694,1952176739,-1473031443,-1768701667,-656583857,1558418536,1698819561,316276312,1185288449,-416573184,-1101748317,-1415321405,-441229423,-1440079123,-637850067,1682488125,-1864243497,1896545814,452283901,1745800490,934920273,1655811715,1112389326,1834039473,144892869,1747486927,-822627349,-559759554,813485546,-1823132440,597038220,2111557732,1740643375,165048408,2132475294,1631469455,481805721,-352187925,-276057271,1790381148,599775693,2052994971,366667068,-1927739961,-525544559,2013094528,-242238366,-1795475092,633771065,-173251892,-1418780894,998916732,-1138478599,1124597356,-2066104579,-822573538,94855723,1547411380,1755086813,-1953155436,-713383635,144119421,-1325403824,96392935,-457881639,-1668716941,2143391484,850823660,-527660066,1692755248,851178618,-834590816,-853820298,2004254113,-1831267206,1674887599,-158090075,-708392556,-492783966,-807104100,-481895429,-15612489,1859326364,-285841602,1737397796,-690579802,1064840663,1601416428,521301810,1958054549,-279380125,1423407966,-49232226,-822343414,-944734708,-1825828599,-2027168690,276224265,981890454,2003267789,-1200992027,1856788501,-823133463,968119288,1437571089,2099530918,355424414,-1516458928,-1965141952,1529697925,-1294855744,-515069338,359653379,-1391782694,1631273803,-460962595,1478215432,-1425015092,-1618482935,-332035736,947580024,1266118268,-1812586725,1168398426,-1813781705,-2117864520,-471106453,-1280850759,-1325376289,-7744782,-582964529,1949545777,-186856538,1529038407,-179425908,-938335132,1554645856,-76966926,-154886244,1706055586,-1710220336,1454812549,2046802414,484676302,-855981073,-1307084205,-386054875,1804640193,126075780,1685211908,1743080767,-723308534,453333716,1284319366,935266992,1023131271,2033792538,-578476505,-1081660465,1108943684,-304241917,-1642528374,-2034866026,2091557915,-1456477821,1244987163,177904060,-1031805776,-1665166971,1735183157,480985212,2035331205,955624872,1526986923,272794699,-180974419,616388726,-948814161,-167596660,-1497621557,-1781209413,1580407133,859372118,-293683670,-956032355,-1947884939,476719034,1306015132,545934561,-123664174,-2102480016,-1058644701,2104858188,-1852701522,411209746,-984228774,1117978079,-393237476,-1921002315,-55141430,-537481725,1926675845,-2061207378,1207420445,1817011226,1650810817,-1903373131,37955409,1293415953,1961033663,481155247,-158818100,820919175,1356696344,1584304042,376962367,1223481664,585681537,-1499809017,-1725260754,-309073443,1240318322,1676273229,-1486478915,370348596,-209728637,-1373666350,1185196246,219077062,1132503614,-415315254,1582674086,-1635666338,-1878136638,1468700298,-1229965519,288145193,977958369,4545578,393312631,-33220988,313771850,1013673445,-577901159,1905288786,-742300724,1480834478,-1143423754,-256352952,-439797000,1682746819,-1196339027,-219201849,1115355687,1923035300,497149441,1394006364,360235274,-1630368699,677801687,-737817620,-646010131,621413019,-1620477914,-399355707,-1164493880,-692933617,-752711804,885719733,264388779,-2135462867,159329753,-1146364756,-1586733445,-467820284,-1805140688,687877287,1791946769,1914661652,-1962326203,-516478266,373747257,226700155,-1076208456,-989332842,370168487,471914514,1223619482,-1958916431,-1555075791,1275981517,2016901572,-1884681125,-569671518,1044133269,-1676945086,1120564719,-1103551953,724387462,4697382,-1745786222,1481646053,264482666,551406380,-1693563580,-1593972989,2042924258,1904747321,-1989942814,-507092725,-1905636762,-531386765,-933578818,1304300916,1429269182,-37063381); -/*FRC*/Random.twister.import_mti(199); void (makeScript(14)); -/*FRC*/count=203; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return (Math.min(((((Math.asin((y - -0x0ffffffff)) * ( ~ 0x100000000)) , ((Math.pow((x | 0), (Math.exp(x) >>> 0)) | 0) | 0)) | 0) | 0), (Math.hypot(Math.fround(Math.max((( - (Math.max((( + Math.min((y >>> 0), ( + ( + (( + y) == ( + 0x07fffffff)))))) >>> 0), Math.fround(y)) >>> 0)) >>> 0), x)), (Math.ceil(0x100000000) >>> 0)) | 0)) | 0); }); "); -/*FRC*/Random.twister.import_mti(414); void (makeScript(14)); -/*FRC*/count=204; tryItOut("\"use strict\"; testMathyFunction(mathy0, [-0x080000000, -1/0, -Number.MAX_VALUE, -0x0ffffffff, -0x080000001, 0x100000001, 0x100000001, 0/0, 42, 1/0, 0x100000000, Number.MIN_VALUE, -0, -0x07fffffff, 0, 0x07fffffff, 0x080000001, -Number.MIN_VALUE, Math.PI, 0x0ffffffff, -0x100000000, 1, 0x080000000, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(446); void (makeScript(14)); -/*FRC*/count=205; tryItOut("\"use strict\"; var gjfacg = new ArrayBuffer(16); var gjfacg_0 = new Float64Array(gjfacg); gjfacg_0[0] = -13; selectforgc(o1);"); -/*FRC*/Random.twister.import_mti(479); void (makeScript(14)); -/*FRC*/count=206; tryItOut("\"use strict\"; print(delete c.x);"); -/*FRC*/Random.twister.import_mti(516); void (makeScript(14)); -/*FRC*/count=207; tryItOut("print(x)\n"); -/*FRC*/Random.twister.import_mti(537); void (makeScript(14)); -/*FRC*/count=208; tryItOut("\"use strict\"; print( /x/ );"); -/*FRC*/Random.twister.import_mti(550); void (makeScript(14)); -/*FRC*/count=209; tryItOut("var jmsfbs = new ArrayBuffer(12); var jmsfbs_0 = new Int8Array(jmsfbs); print(jmsfbs_0[0]); jmsfbs_0[0] = 28; /*RXUB*/var r = this.r2; var s = \"\"; print(s.search(r)); t0 = new Uint8Array(b1, 11, 14);print(false);"); -/*FRC*/Random.twister.import_mta(393861652,-497949801,1849884048,-347271913,-826953447,49802466,2105774199,1930799206,-115488957,-1460676913,1232552736,1010011170,1149345669,1458949746,-325512393,801566066,-1759991245,838291568,-774409002,1673387295,697416753,-1581091609,1948879767,2019170923,-730107618,-662697332,-1153308581,-493464656,-2091233182,1085565101,765090052,-904552243,-1916091457,-641625826,1275103919,218781633,-1950335062,-2084076738,850829222,500485210,-1580731426,1963027227,195009398,-689228273,-297146810,1707849441,-2098067340,-2016823130,-1077141117,-634462887,951553693,-885631463,1912421298,6708850,1497980125,674416168,1901218706,1014883823,1320316759,-1140159722,1619921826,-1869093195,-584390362,-759313039,-974806458,-1606177902,666141539,-1246110627,1826328876,1410409497,-479125008,2038506584,1815353468,1561458180,1879098380,447476755,-1521816496,1729481040,-1642612163,2048979536,-695419613,-999520679,-627426598,-298338202,-1774815774,639403757,517450209,1507243837,1839295538,21195316,-9887972,-2016430296,-137293833,141786223,566680247,-571026224,160947969,-1472870019,-630847027,1122464022,-585041756,-723836289,212310707,190747739,1898896458,-576992905,1707048309,610610988,-1528011604,-1650225183,1405857659,-413139034,1853932044,-555275545,1303730620,-1356994504,134801712,1956015125,81403180,-623983354,1532345894,-671482296,604762954,-797935894,-1260885070,-1752356335,-360163919,652377053,-250548422,256558926,166644062,-154103417,276604748,421461365,-562993063,1700370117,-1882923934,1110396739,-2124376914,-805638543,463826336,-954929345,1685678722,1588703890,65648573,-401986032,335982110,176001816,-1451871640,1623708371,-393129148,-1115991872,-428307902,1936898313,184073022,-538656966,216120111,-433443428,-1902170764,209258953,-2116522182,1001137986,-1405969491,-2108217302,677268131,-950109734,607724917,-726622238,-537117465,1481647622,-1090845782,-2068520505,1448558959,-253197442,1334387249,-400535743,-1844655420,-1655839893,1436991184,-1310052305,-221417275,1446536809,-970978711,-981475044,1177648583,-33604249,1827853282,1825850859,-1820200257,629603695,-1132716774,1183839216,-1926786955,-946719883,-1591090393,-119703531,8136173,-463292111,1801754191,210610446,-1084482242,934156150,-1819722051,793816602,-159146477,1924849971,-483381611,-1545993678,-608443839,-1177905671,1959276074,-198904550,-790329432,1155167833,717853104,-1371527086,-926348783,1982896687,83372156,1870182143,484948812,1686435586,-209894175,-1486702647,93905939,-1543122595,698625329,-1048574852,-1397395177,-504233574,1972009381,1439178460,201543811,1537336753,1507900574,-803232697,2109524375,1430460916,-614949729,1051669361,626017882,-841772806,1781643890,-1722292766,-1721975501,-826192203,1018701656,93004808,-58562065,1685124078,1052750455,-294715774,644540954,-1105115363,2088246518,135732460,-385964220,-846086345,1870497036,399672810,2012706565,-33078328,-1302870363,-303797576,1891803976,-1065997744,1764290023,2033214051,693345065,-260769252,-1649131163,1473343256,46663312,272683289,664846062,-1189169334,-2035360578,1640721772,1983787398,-1736206338,1682112732,867741894,1322580072,-672242475,-299488643,1001429419,-1251042361,1463833258,-1976159651,-1021156232,-776300991,-1491495287,-157159189,-765256044,-1960430734,1555839000,1955882395,956930908,-2011411352,-157400374,-1608263190,-2095246893,1029136717,407583251,-375180876,-1518595362,-28989631,-1552221218,659151799,1468736371,1014425655,1666215066,1215122649,-1249906742,1354385425,-671427475,852928180,961281042,1259795350,469766368,-999367226,-734790274,920271249,-1729127243,-793725322,1309941740,1994397571,1609869395,2089502177,763445716,-1526810404,-327737993,1887911375,-607382433,1261727923,-53345703,-1811343979,33596733,-642639980,-999785276,-636742965,1916282739,109725472,-1621378269,-669001665,-367561641,-1349172440,-746397153,1943950682,786858452,1341408470,1569108645,-327967919,-766538880,1822418795,989533689,899479080,1549354703,-1424641863,-1754919057,2023555651,1159006200,36033994,1411374504,1815249049,740694943,-902793925,-401568279,441963742,2080805418,-2056885954,-1464097650,1061563894,1810262368,321312750,-1724876921,313876555,-238245511,-1705262320,-2131405703,-1849608442,60043523,923168562,-1365191262,-1932965546,-3181019,1804288263,1769189912,-584288954,-614788253,-1255400523,1536754097,-332057975,-494042303,-83277420,-797635714,-83733613,274713796,-287351704,1759453728,-1751742469,743513399,952039194,-778492701,1283342128,1223001115,324090006,2012276840,-1201210692,2019510210,-1717188384,-168951536,-1016259788,1717927853,2115638211,-688989537,-786897166,-1525344774,908699331,1587073195,-786974440,1220342365,1402399396,1819395689,-236632489,-1112550892,2056744378,-480154878,303407176,58360303,1300398647,1719328599,844830959,197992575,1661030577,439581937,-972129152,-2090808430,389390173,-359996805,-1337760347,275679094,-901170592,-1499722847,1266963414,2140825522,497065262,300922532,-1764290273,-813524970,-1458340178,-1158859461,1678171307,-992854148,759233347,-1351315243,-741661672,-546279451,2142865113,1099037161,2112319986,1111439814,1466616795,1092637338,-494323144,496220583,1604559571,-1967773948,-2099310529,694849081,2114586416,348387629,852722151,972385158,615831120,735384050,-1899092309,820646473,1271797279,974142670,178785175,-313397748,-1417352603,-1163916417,1998590143,343725002,-578537264,-1542081401,135692217,-1412711538,-623168083,-1974984999,478956469,656277050,1608284333,-1608643194,-870023563,-589096739,-1364528810,2087898550,411685710,1809970919,-1682679449,2130121358,1435286370,-1450611965,-421996005,-1833900286,-740598053,1279706175,756889348,-671049616,-1819638124,723534146,-1888914979,901085578,1616620408,1189399241,-1671575825,937319927,-99755240,-1542359897,-829458856,1356990779,-1317712189,39428404,-1173680931,1340251611,-403967638,-1783946572,-1829725678,-1565869906,97208256,-1454741848,-1071075403,567195476,1984655980,266964306,209368265,1194170358,-42394709,998179668,1437237034,-481801729,-1117358531,1261723011,-1901060988,-76786044,-1653989669,-1310244932,790747814,-1468496545,1744088586,448907604,1108932136,81226565,1600511144,1339055842,1764165118,-1862790541,603576723,1920723169,1795834246,-1115522757,146589112,1339285865,156498800,-267454659,-2020621606,-855116110,-1863383248,890126466,-1218647629,1573168624,-1173118499,-1330420513,-1341189794,-693681633,-2144234346,-240749305,468784226,512833513,1892207457,-132886364,-264860136,-1843788493,199891986,134649632,-1757495237,-1645416280,1274213364,246513106,-31030765,-1004529358,-865602524,-2034121895,-1263954835,2053648007,-1801447316,-1583637756,82028849,-718242309,-1758094554,-354882973,2010679473,-808624045,-2133425430,-1707507121,-155939282,820492423,-1093783500,-2125566988,918107515,392759158,-927001765,-643988041,850432825,-233226618,-1296538025,-2011666090,-2074966533,-779010869,2006483252,-1329676647); -/*FRC*/Random.twister.import_mti(559); void (makeScript(14)); -/*FRC*/count=210; tryItOut("\"use strict\"; var inhkje = new ArrayBuffer(2); var inhkje_0 = new Uint8ClampedArray(inhkje); inhkje_0[0] = -11; var inhkje_1 = new Float64Array(inhkje); inhkje_1[0] = -17; var inhkje_2 = new Float64Array(inhkje); print(inhkje_2[0]); var inhkje_3 = new Int8Array(inhkje); inhkje_3[0] = -15; var inhkje_4 = new Float64Array(inhkje); print(inhkje_4[0]); inhkje_4[0] = -7; var inhkje_5 = new Uint8Array(inhkje); print(inhkje_5[0]); var inhkje_6 = new Float64Array(inhkje); var inhkje_7 = new Float32Array(inhkje); print(inhkje_7[0]); var inhkje_8 = new Int32Array(inhkje); inhkje_8[0] = 1125899906842624; var inhkje_9 = new Uint32Array(inhkje); print(inhkje_9[0]); inhkje_9[0] = 18; /* no regression tests found */"); -/*FRC*/Random.twister.import_mta(-1199600176,-1711398240,-999222156,1774514088,1831529286,-1619554306,-401346352,-369595314,-2053447773,2011863302,1776889465,53380513,1394974971,920777124,-1576175703,1374289650,1050597269,1458678184,1043891407,1557694517,754753366,-717892649,-71471807,-81133161,620558107,-1757499818,490401713,-1337430426,1157453469,1817854264,1600326587,-839356088,1872382304,-1299548225,-101235608,935003962,1244586464,978984802,349772508,-689076881,1625870016,318395110,1492634019,-949512570,-75240231,-886030758,-445065230,-1922370616,-1954170431,-655103297,-1384370825,-299266874,-810436817,482304031,-1359718865,1555036514,1139047764,-1827570633,-1317939874,-1551097399,1311976544,288158282,-1311264882,521511121,304016399,-1648870731,-1024193429,-1796934994,-1366058124,1847276075,-159992536,-1262150655,132281659,1175086390,-2137082885,544667599,1249873710,-1296581743,1455778010,1015072997,-875241030,646122354,1292624125,1102262630,660020645,1038585418,256106558,1106290342,350054096,-500123810,-403542253,-352958307,1996141926,1395714089,-1531743055,-1051781910,-1441813925,-1410872172,-1049774835,-491519449,797325629,1911655632,-522897596,538885483,-601578877,1885558530,1824883992,1207601460,2119179308,372620665,-1591797551,-1533329443,-96607853,1271372762,-812749716,-678497780,-2006726761,-1929085109,416422665,233927787,1830303213,-833077430,535193218,-1604194623,1994346864,583265375,-1701084150,-1979893410,1174192787,-1090754446,-310221369,-1344953652,2944209,616603361,1225704211,36252145,1364554198,-1063721502,-549752653,999933116,-1251259886,2118517128,1752518335,1703243946,259658844,531179557,-428441485,-1445105911,-1570831307,-1158105818,-1512964380,-296330246,1364644839,710772537,-2020943166,-1198734526,701816730,89612434,-605855874,1602874165,302402883,-432604937,-774666650,-287421411,1372902412,-1608621085,-1747306806,-28677356,603714154,372144805,727463681,1974260402,-176965875,1847797495,-1743333379,-27620143,-1972706150,-792658251,827247639,1348540899,615760372,975774077,-1827043959,-505341346,-1184491131,112304784,1467400846,1627309976,1506921307,366219935,1799450328,145078494,1731025357,-2106674504,-338202361,655368250,1863972213,551358428,-2138630178,-1425564942,566175036,74201069,-164377591,-1498753305,895860157,1067793587,-1154094214,-2096248498,169908848,-88959489,-1607731006,-1631138310,-880659596,-1414858516,-1771143203,-875233108,-176555330,-893188251,1999203863,1019432607,-1067760377,302937336,1117880941,1603684141,1520133306,-1170069645,-1870742361,1999472004,-385408403,666671225,1126228166,-232524840,732941817,-991711585,1493110450,1649150903,1565201916,-582102807,-982405946,1099793366,268974553,-686445936,1564609539,-348636717,-1466319315,1617205091,1578965553,-1951065218,-1492276704,2112488613,-870482218,2009694742,287751431,1661395402,-1270620144,1887569215,-1818612100,685623613,-971951171,-848739779,-1920346533,970201061,1095316070,844083268,442567242,-112861968,1937572993,-313937013,717238248,-1893377586,-1399906038,-85463151,1511581193,-156727163,-1847220115,-925706338,-1474929655,-1771883084,-496482503,-1114622143,90388604,-1986123237,-296715305,-1375741771,1472299069,852371554,-936638308,-769620591,1891483766,1073894513,-711861430,-263805787,-192301569,-2023287342,-88412510,231807334,1923088261,-226979044,-813023900,1475582414,-1634968320,1195225986,-1252271591,2125338612,-536235266,-1326511195,1832760586,24689854,-1806816748,-902290375,1880819499,-1704391914,660109743,-32082711,-217744305,1303786890,-23770793,-1032251688,-453623571,1422777221,958994070,1725356198,1412459119,-1034423968,-856833182,1662324243,1413932753,-1999951086,1731275834,-223712470,-819100913,1030720699,-997331470,-1873343074,-526698297,-1386469831,-834838728,-1916398821,-961609281,238245929,-1412220740,-859090948,1093377858,2103745367,1627878847,1327020701,-46615109,351739712,-651460704,941376745,397018956,-638702585,1273244063,1977403232,227017597,1597159815,165182410,1627393348,2104366500,-445981393,105520413,1209805302,673629989,-29064891,1334008050,1663826673,-694603113,-129982339,1078282397,1791392288,836281069,1356399271,710548629,-270144636,1011737621,1913455823,454447429,-386130068,925122841,431376484,-224448665,-1677071013,-1344493165,1873836849,-474453153,925781794,1798320697,1016100832,311673241,307051363,437943322,-20513385,1213207196,-362900992,-1770983765,-948802692,1577163975,473143605,29574050,1739605039,-1593632589,-2075546512,1335799423,-329909502,1840942183,954617948,1805217239,947961002,1174831772,-1614061063,-1693050154,-657419233,-326390375,-244089936,-763291128,828225570,1197381730,-1453519514,-1092525996,1336313153,2134408009,-1038351275,-2011139119,-823925119,2114643670,-36921085,-1699270797,1756755224,-1663449147,1241136589,211749267,-1254063851,-1555358637,331215869,387762153,690463792,-1157435338,1924761523,847973400,178991481,-476202153,-1286937875,26457507,-1866738859,-183618372,2046369920,875861453,1379433815,1976514803,371735866,-1679266449,-1315915216,-1741997875,1607889369,-106988239,-2132627359,-787734700,-1510698123,1273741299,358380800,-436456836,-364717184,1121723130,1812957408,176995557,1940442480,1154912340,-932249319,447241555,1648824219,2018604442,687394305,2090738336,1279750425,-1637903481,962726314,-1130906274,1894958342,1791073393,-1921382381,1437472460,2022254077,-1260736417,1895995132,585343192,-388812843,107686049,1351244120,741460514,-1255401361,-295497737,-852517041,-355785747,-979662840,-45697720,-707092467,2019321215,-69576287,-2065790646,1448873902,1515242281,87503873,-1213636903,-2100297288,464466154,135043819,-188201792,-175757362,1991637211,-119611307,-2113956723,503628663,1734215875,1452277933,-1996867244,1083184586,-92765750,1119324386,849427073,-913352589,1281826654,-1644341874,-56054492,-215095237,-1286323322,1267141589,-1458935812,-1384536651,233317080,-64776432,804998051,-1561587426,-1538639631,-1809755633,1369433876,-1351904478,-842210672,-282137200,-1174421267,-2131999579,-1549142717,-640662566,-451239510,959365782,1055623366,-475115857,695988423,-292247260,1042630520,60852028,1331888912,-1088973721,1853221561,1967824325,329789039,1216594542,-717077413,-71433744,-1407503011,209301988,811747633,-719448060,714451579,-1973207580,858215280,-1039729657,-1354984600,-401286703,-1438075739,157031642,669235990,-475942471,570091621,2033833354,-710533648,-2127759601,-901294791,1471335687,943040091,102540206,-476255157,-1394289134,1664651733,1908620486,-1325023486,949689261,-513173825,-1797403169,116019618,1306509023,-115589204,-375871196,20706920,-1330984827,573108494,-2095500684,-1896161860,998813403,1363749,-249333550,1551197606,2010589574,-1637236447,-101538366,1444028314,2001666156,-845006436,-1983551376,1567785415,-1329876599,790056651,569131325,1016777881,-697889973,-917109276,-758957862,725722144,-632356882,-1161115332,-1821253442,463387834,-306401743,1176863983,37640751); -/*FRC*/Random.twister.import_mti(27); void (makeScript(14)); -/*FRC*/count=211; tryItOut("v1 = i0[\"constructor\"];"); -/*FRC*/Random.twister.import_mti(43); void (makeScript(14)); -/*FRC*/count=212; tryItOut("this.t1 = new Uint32Array(b2, 2, 5);"); -/*FRC*/Random.twister.import_mti(61); void (makeScript(14)); -/*FRC*/count=213; tryItOut("\"use strict\"; i1.toString = (function() { for (var j=0;j<110;++j) { f0(j%5==1); } });"); -/*FRC*/Random.twister.import_mti(78); void (makeScript(14)); -/*FRC*/count=214; tryItOut("a2.shift(p2, this.p2);"); -/*FRC*/Random.twister.import_mti(100); void (makeScript(14)); -/*FRC*/count=215; tryItOut("/*infloop*/while( '' ){print(arguments);Object.preventExtensions(h0); }"); -/*FRC*/Random.twister.import_mti(161); void (makeScript(14)); -/*FRC*/count=216; tryItOut("x, c, ogaybn, qawboa, x = (p={}, (p.z = true)()) = x ^ eval, x;s1 += 'x';"); -/*FRC*/Random.twister.import_mti(287); void (makeScript(14)); -/*FRC*/count=217; tryItOut("\"use strict\"; /*RXUB*/var r = /(?!\\3((?=[\\x9F-\\B\\u000B-\\\u696f\\W\u00fe]*?){2,}){4,}\\1?*?)/gyi; var s = \"\"; print(uneval(r.exec(s))); "); -/*FRC*/Random.twister.import_mta(1355581541,1677445528,324154363,-1751749360,-1947047025,999773719,-1733702363,-1233169559,1125326047,-966440396,-1608560987,-157490626,-2068080341,320344541,-1339790490,1791784588,-636768412,1419110576,-2043065113,1361106889,449795154,1513580075,-1422183083,-1269911525,-914140290,1605743830,-691547726,-2055406265,-874413665,739121777,1313459644,-350952587,-910706995,1885645735,-291700088,-2040763229,244382796,493898375,-1688611240,-881420458,2076487360,-2013767658,689502778,123010532,-690815552,1932516954,-703681871,700733571,-1937218304,-75353175,623688500,-1960881221,-1048625686,362477223,-540588415,-1176959385,-816414947,-1591240802,1210847322,-1240102556,-1386026416,1392535604,-1008855625,1979446436,2107012613,-1162963952,645788087,1573220703,-1649548102,2146290368,184893382,-1068378351,1094860032,-518611784,-506788551,1503782199,-871097330,-180541462,-1104487161,-1719808637,598950079,-716383024,-1381789536,-552785727,1719329496,-1283768256,1375389103,680334256,-640977798,-325406729,-1124479543,1464635537,96263332,1697777008,-1383590598,650397215,-1872204222,83418897,1032327617,-1231566530,-1021141047,-1263267096,-1621368380,-313908553,2097586048,-2117362603,-1590868702,612843260,-1709247352,2102360183,1052969215,-1834764083,-1656934984,-1506237765,1975761521,-1167631401,-1994747945,1570472975,-547348704,1442589667,1704695623,2102528448,1085743052,923318246,362025854,-236622047,-1210878828,1218613776,1425620972,1187243456,-90999597,-722017169,2001430719,-1837851915,988820793,-1931444198,-1267916546,-1492455534,-223907460,-679917671,-1878135468,349034349,-1305543440,-1542127763,1326212887,1328107852,-188168755,-154355197,-1093528516,2073235381,-1715501863,-813261228,-1886980993,1285975665,-481167930,983532916,2011245964,1046053328,-1102084309,1162465829,1370344788,-990710162,-501340363,1485316919,1545181482,1635299614,-179959698,1658497605,1343844746,597309495,-758992760,167370748,-414892162,-1293918153,92555022,1691327016,-2007950833,336186148,806669089,-669076029,-743510682,-1464740800,1995189889,640110678,-272890022,1216606354,1102864138,82176624,-1418091971,-725016109,-1869672016,-1401664101,1290332035,369047536,-1173309127,-1346388979,-1597747349,577469153,-694485235,-567980254,-1598683662,-1576691202,998155134,-1613821017,-250804480,-2081213284,-1200340635,318919330,-752944564,-1648900611,-962195827,951294077,-445723137,-47660550,1141293419,1176908230,705574950,734659120,1437216586,-1838893444,-1823881838,43170005,632452087,919801575,1771375959,-1760400797,2041092333,-45635188,-1456654981,851592088,-1366846212,1194147244,-2131873401,-187282820,508683885,1840682529,1909133983,-1029203770,-1772477483,364328216,949142677,1200479672,-967255366,391102637,-1112599586,809464096,1425693302,1229553986,-1110780762,-1925871042,-810913520,1478016290,1849082931,-857333318,1681215239,-1037265247,-513257936,-196483907,346616500,377220415,-1249505142,-835085381,-1619282815,60848489,567452927,2079319239,1692073548,782547252,-2140474127,2136959679,-483411213,584465947,-780981561,133484120,1303196492,1099693019,-1330402957,-854579081,1289746628,-2083610156,-2007149707,837274549,1982749410,1035866076,-1203731537,1815745556,1175288691,-717485461,-368446765,-384370670,-1798302167,-1629873115,-115532039,1528858342,455998956,1038789543,1188135758,1824530804,-1415046154,1308889984,-2104998535,1651398890,653717197,-66009743,876745447,-927725694,-1715366948,697587125,693665299,1285989354,-767972022,-1394708784,360237803,-1318007977,1314261365,2139709454,-1918491493,1468685664,-1541223028,422074351,1448700195,513315026,133152431,-165769229,-327489337,-1901866378,-1292739401,-1329985068,-1914624131,1640337564,720720949,1598056825,-908060006,1214802334,-350118593,-50308332,-1566260955,-996394753,1286775814,-1999326746,-1067645627,357987792,501065379,546407895,-484480610,2029319458,528983107,1225664663,-1202414741,1264721002,-2097737414,-378620050,-888468335,673170933,-30179828,1343554057,1984160610,-1004241407,2135636519,-1385769234,-1233482226,-1209276812,717910119,-743666553,261595701,1088641256,844212088,1764227525,565111421,868883801,359714529,-1020667518,2027660430,870745880,1455589563,709987393,1340932099,1529156746,-1017267610,801231635,-1683347453,766972368,-733018061,-550131460,1708041793,316616424,1526852053,-1041457849,1423760128,-283961032,-18617053,942772324,1415051294,662097892,23306235,-1508831434,-1265941390,-769453735,-1557574348,1858864120,-255543793,-79453970,1390765993,1736764643,142271242,-1664037611,-1000412266,-257053656,1046271075,996615146,-750278010,15819081,809127242,687657486,1548432993,-1999180276,-1066948768,-805330534,1387249636,-360944904,-1376156411,1728589838,1371996050,-540984320,-2054841665,46782571,-1434470994,936531663,1609578439,-1539729560,476576754,966801910,1394965949,720540238,126976186,-828407209,2112075515,-538736511,-1527861218,1302896779,1032126547,-1647858843,-680302413,1351164536,1463194224,-692529805,577779720,816245044,159819336,-1320225377,1847284735,-1131929106,1643242064,-596666710,608059747,-1045742895,-114246915,1383791578,1300432684,-1307563847,-2114508868,2134898448,1538347601,-309986254,-76284290,-1271829505,-1467480757,-322020637,-274273622,-93298569,-1707403406,-2082471282,-1894483597,-1025694870,368608663,-1551824375,-179509059,1673662455,-944961036,81907541,1772749723,-414144521,-1163010593,-266756516,1495843720,-829041093,1044300179,-1549863525,1302800211,1900184485,-62978543,-843086378,421667011,444179688,-582919699,1699509905,-608504144,-1589576106,1241004492,1700002700,-1670912889,-814666497,14940935,-43765498,1344198109,1992022692,-116542925,1779376071,-1803547840,-1344724869,-340468040,317142801,-562387811,1114662873,-1250688882,-684346826,-2008204189,344472502,588579011,-1624338090,1440623649,1702472574,-579539099,528196237,-1878322111,-1087559672,-2119143035,-998484971,1551864674,-402392125,-312029698,-9454016,464264794,-250716074,1042390052,1337855835,993121570,399441379,1973484637,-576421739,-577180998,1021008288,589168965,-1831608072,-11154712,1771537712,778175357,155962015,524866380,543047463,1889400095,38317380,755903563,573504351,-1795430173,1044952463,471502948,-437223868,427602315,1222217437,1659331996,660863197,-130955802,-80254819,2090333731,455929266,1708551633,208793544,1375239101,237796136,-2008420908,720022899,1147674599,894741179,-1869552689,1149206824,-1179399626,132477640,-362748231,1674431083,2121117436,380077625,1760861290,1858157795,23151368,-688438873,2113962206,-183523617,135039428,373583793,-1486825451,1326078209,-1044476811,1665523711,1756061951,1725138083,-150537493,-1938679380,-71801365,383850077,135074779,-1057040140,1453907616,618926030,1619170492,-443767128,1797482283,1813764159,-1394443829,449585033,1456158909,-494178094,-1595663470,1068165927,-1467154134,24906000,-1036753201,-1551464003,1904828475,429434435,-2002769885,-75895469,1040618238,98939039); -/*FRC*/Random.twister.import_mti(93); void (makeScript(14)); -/*FRC*/count=218; tryItOut("\"use strict\"; v1 = Object.prototype.isPrototypeOf.call(this.i1, o1);"); -/*FRC*/Random.twister.import_mti(108); void (makeScript(14)); -/*FRC*/count=219; tryItOut("\"use strict\"; L:if(true) { if (x) /x/g ; else print(((void shapeOf(Math.hypot(767346516, 3)))) > (void shapeOf(this)));}"); -/*FRC*/Random.twister.import_mti(240); void (makeScript(14)); -/*FRC*/count=220; tryItOut("\"use strict\"; t2.set(this.a0, 15);"); -/*FRC*/Random.twister.import_mti(254); void (makeScript(14)); -/*FRC*/count=221; tryItOut("mathy5 = (function(x, y) { return ( ! (Math.fround(Math.hypot(mathy1(x, x), Math.fround(Math.pow(Math.sinh(-Number.MIN_VALUE), (mathy3(((42 >>> 0) === (x >>> 0)), y) >>> 0))))) ** Math.log(Math.exp((x ? Math.pow(0x080000001, x) : x))))); }); testMathyFunction(mathy5, [-0x0ffffffff, 0x07fffffff, 1, Math.PI, -0, 0/0, 42, 0, 0x080000000, -1/0, 0x0ffffffff, -0x080000001, 1/0, -Number.MAX_VALUE, 0x100000000, -0x100000000, Number.MIN_VALUE, 0x080000001, -Number.MIN_VALUE, Number.MAX_VALUE, 0x100000001, -0x07fffffff, 0x100000001, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(463); void (makeScript(14)); -/*FRC*/count=222; tryItOut("\"use asm\"; for (var p in t2) { try { b2.toSource = (function(j) { if (j) { try { a0.splice(NaN, (makeFinalizeObserver('tenured'))); } catch(e0) { } try { a0.pop(e2, g0.s0, g1, g2, h2, o2.t1, a1); } catch(e1) { } try { v1 = r0.multiline; } catch(e2) { } m2.delete(s1); } else { try { for (var v of m2) { try { v2 = (f1 instanceof f0); } catch(e0) { } try { s0 += 'x'; } catch(e1) { } try { this.a0 = /*MARR*/[\"\\u3FE8\", (0/0), new Boolean(true), (0/0), \"\\u3FE8\", (0/0), new Boolean(true), new Boolean(true), false, \"\\u3FE8\", (0/0), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), \"\\u3FE8\", \"\\u3FE8\", \"\\u3FE8\", new Boolean(true), new Boolean(true), (0/0), \"\\u3FE8\", false, (0/0), new Boolean(true), (0/0), \"\\u3FE8\", (0/0), \"\\u3FE8\", new Boolean(true), (0/0), new Boolean(true), \"\\u3FE8\", new Boolean(true), (0/0), false, false, false, \"\\u3FE8\", (0/0), (0/0), false, \"\\u3FE8\", (0/0), new Boolean(true), false, \"\\u3FE8\", new Boolean(true), false, new Boolean(true), \"\\u3FE8\", \"\\u3FE8\", new Boolean(true), (0/0), false, (0/0), new Boolean(true), false, false, new Boolean(true), false, (0/0), false, \"\\u3FE8\", \"\\u3FE8\", \"\\u3FE8\", new Boolean(true), false, false, (0/0), (0/0), false, false, \"\\u3FE8\", (0/0), \"\\u3FE8\", \"\\u3FE8\", false, new Boolean(true), false, (0/0), \"\\u3FE8\", false, (0/0), \"\\u3FE8\", false, (0/0), (0/0), false, (0/0), false, (0/0), \"\\u3FE8\", \"\\u3FE8\", \"\\u3FE8\", (0/0), (0/0), new Boolean(true), (0/0), false, (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), false]; } catch(e2) { } t1 = t0.subarray(10); } } catch(e0) { } a1.sort(); } }); } catch(e0) { } try { m2 = new WeakMap; } catch(e1) { } try { a1.valueOf = g1.f2; } catch(e2) { } /*RXUB*/var r = r0; var s = \"\\n\\n\"; print(r.test(s)); print(r.lastIndex); }"); -/*FRC*/Random.twister.import_mta(-613499925,646913379,-1539432816,-1931015363,-1052600831,1916551326,619903903,-1705897910,-983554636,1127462290,-169335904,265711889,-1197721361,-1470824762,1270293563,575631686,1936630257,1859666120,-1296494483,-2036906052,-33446563,-78970708,-571151250,-804885420,1118519236,1274010424,1308074405,-2136451936,-492595008,-2061555405,-2078981706,-6858827,-48005394,-877188086,1104510923,1978092710,-2010548377,-784113344,625046036,-2132477538,-1539493078,1129684058,502634452,657704875,375418221,1338147015,231533729,743402711,-383216837,1090947533,20787778,720951187,547031366,1374896965,1522989087,2147462048,-2142421216,-1949979377,1885582129,1135374357,-2060785921,1774400091,-1728029956,610360753,966210002,1260082004,1717416220,-1682691606,-1149368021,-1839755848,644331710,870130098,1320226349,-36265055,656197573,-1232114637,-1228189097,868527056,-1350982678,941500906,-495022313,1227814002,1099077419,-874038958,600778017,480239271,1147538223,1019771045,1413400670,2003131097,1534296519,-1639483022,2062418916,-1583385925,-1296359043,832862669,882812413,-1943870436,1795224757,1061051135,1615628774,1726557599,576945715,-1876434140,2070779204,-2072076530,-1531888835,1286268818,200389474,-1165085195,1398452233,1492922074,658653119,2116832616,1383815427,688636310,1146053630,-1907791580,1170711957,-1706253372,862042366,-353036452,-1431645375,1064186085,-1188234369,1001861632,1966888056,-1992751361,-1424553,-1247645174,648285371,360955016,-1744682420,346015226,-1885928281,741560363,-268448385,1879975446,2015309094,1956455689,699858734,-735572210,-1128485943,-1005245386,-980641811,316988818,1758873453,-137525766,1671884560,-445845849,1757609581,437596664,1831267792,-899112071,-848233350,-2045771788,-927406508,1983448268,-450938692,-1766380026,882644175,2086799572,1193371510,-2079763130,685939367,1021129895,611639574,785885622,-500218206,278696216,-1043757050,-91868364,871832312,-78731505,1565594984,1180872741,-1777426348,848745030,1696848059,934068859,-566465521,-1115605909,1026518718,-1251939253,-1935902123,1672028869,641564847,1779873615,2128051602,-1853646824,-1874262073,869700003,-196155367,-775543624,1012728945,-1967032521,788748637,-1501484461,1904973019,73901140,1453340329,-1093573520,1998584257,-2091406129,524853493,274095116,2090212119,271680795,-315024059,1416191349,1872587807,-496327050,2138862182,1414048549,127209086,1750559648,-1168609925,30576814,-1027255661,2032982438,1868688965,1938296035,2129874834,-375434987,-554809407,-1819869140,833328772,1294502740,-1862467053,-1175127163,1594802971,-1584419620,687503700,-688360114,1847690380,-915136290,2068378162,-1293228285,-762207752,767171997,-2063147295,246215515,1502080632,-1465767704,1235317151,1213255212,1795713492,-2032937812,476265650,-33419529,-511585276,-755152829,1362455132,815518149,-1701289827,1004537756,760936267,757372135,1577326462,-1306019210,818102781,551322774,730754920,102749254,-1102792205,-448644581,1574663753,-228962309,-1718820688,1821120614,-1756276508,822476890,22774280,899601356,1058300667,1079649458,-1477052866,655064563,1828462298,-968806918,449105524,1635391196,978326329,1544091014,-526609336,115105837,1186717779,1459747695,-1220380966,871045968,1719470787,-1214453389,-80380565,1332274571,-1486656085,-1301694390,-2076766826,1974804370,-1688558853,-680935412,570127765,-672080467,389880717,1243295263,1370955577,1177531907,1585438352,1131013605,607183594,-1366978148,-384455801,-1418434987,-1483496948,-1388639795,1027200541,993610230,930180722,-457235842,-993956588,-1939375339,767294311,-2092113403,1552518008,868528257,-407241525,-227741017,507448879,-2055689730,521765034,-1135536864,-582097353,-1349895611,-991028785,463640349,-841220947,1462940584,1740489499,131656497,-915025306,-681257954,-2055949872,1054037060,-1597044034,533435639,1447216953,1282121906,180722160,-493922463,1705793269,1386715601,-78242819,-1981316114,-1219981648,413547614,1251604291,193538997,1944920093,-850997012,-434073233,276790177,-1131125999,1820550799,1401482531,230090194,-71327543,1914895745,800216909,211747806,2077461361,337883248,975597805,-1834493131,1274689140,-980144340,1129053823,-2006394739,-2082509229,-1627665180,646448776,1986221105,-123223697,-2143568873,1230573073,-1199984613,1679532026,1555442932,-1683476802,-745610760,167597331,-593215871,371952661,-1452608258,-64795377,-274347270,77471337,36396523,1959007036,328054832,1462715426,122577281,-1086491659,-251139701,144526470,-996203491,-2003245799,-827120783,-964620189,-257907050,-1659960288,-443491321,443835542,1348033253,-1802050193,-690941694,-841648719,1690508038,1589005738,93621043,1045274107,-1282368890,1818004706,1290523515,-2061314169,-1404088406,-1856916413,-458701687,-893180444,-1978847937,-1222185024,-1612687330,270629530,-623166764,-704878524,-1567558455,15901067,-414305466,-555921381,307008051,2006464164,1879311191,196939744,-1885087118,678975786,1639083160,-507579486,-899266383,-1731187967,-1712306429,-1481809640,367176130,2077625201,-1526667723,576208904,1680154576,-1321958596,1884540569,2014125001,-743609604,2009951691,-1312096351,-1748426591,-2101691404,450693923,1997557194,-1248110952,671510590,221668829,-1997033804,-170131621,1056680999,-1435161809,541871927,-1446416613,-1261389104,781375203,1333745064,999425860,-867925515,1943699013,1252034812,-979324396,899440669,544900435,-1734386759,-1118767659,203845210,1628260107,-35923092,-2134466915,724676291,339517075,-109213430,-1746207835,-1566143225,-374194153,1632450388,-47251449,727494026,656485653,-625240001,-1692105674,1599304297,744807333,-404856551,-321059697,-1146684654,-164616686,543349318,-1247434482,-898405531,2137150450,-1435569263,-353088422,941118345,-572726354,-1359001088,-1692522376,-1844344069,1816272511,-2090244069,-598224380,1285631329,-267290794,-760837974,-108324439,-580486849,-1888660466,-1543646374,716171822,-191798891,1331153916,-1591742459,-1653068341,1924396890,1167416191,-1947310474,1730305937,2078712434,-2025353635,1085806779,-1137542301,1199648702,-523447595,1917993483,1289973144,-934811059,-2031761781,-1526032354,753988517,2041891366,-1072929444,-1700499968,523707212,-669484940,1641401970,-1080087409,-2002139951,-1108407122,-1398744362,-476264650,-1413055590,-503425187,1335355019,-2014583517,1441689873,-46915800,172849887,823058650,543852777,854534993,136693735,-2128807449,378053951,-1472109911,1659455017,1377519849,-1634541422,38077688,-1397296465,-1846007898,1006194026,-827337819,1385349416,2037558763,-1828180801,-306831327,1222430458,710995169,447387286,1459754950,-1663178422,-109144733,-1269546513,120150390,-1393429825,942761599,-773181979,2084468377,1143915077,-1229323404,547415598,1809367359,-2049548997,-40862133,-922935675,-1523039252,1337134263,27411258,1628835010,-184696911,-909056651,484466346,-1832043571,1879546275,-1453505691,-710854630,564728049,1654259021,1937078186,-1544444808,1013259150,1732345893,-1097045020,-1065615850); -/*FRC*/Random.twister.import_mti(314); void (makeScript(14)); -/*FRC*/count=223; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return Math.fround((Math.fround(( ! (Math.asinh(Math.fround((Math.fround(y) ^ Math.fround(Math.log2(y))))) | 0))) < Math.fround((mathy0(( + (( + (Math.max((( ! y) | 0), (y | 0)) | 0)) < y)), ((( + (Math.min(0x07fffffff, (mathy1((y | 0), (y | 0)) | 0)) ? x : y)) < ((( ~ (Math.fround((Math.fround(x) <= (((x >>> 0) ? (y >>> 0) : (-1/0 >>> 0)) >>> 0))) | 0)) | 0) >>> 0)) >>> 0)) >>> 0)))); }); testMathyFunction(mathy4, [Number.MIN_VALUE, -0x100000000, -0, 0x07fffffff, 0x080000000, -0x07fffffff, 42, 0x080000001, 0x100000000, 1/0, 0x100000001, -1/0, 0, -0x0ffffffff, -0x080000000, -Number.MIN_VALUE, -0x080000001, 1, Number.MAX_VALUE, 0x0ffffffff, 0/0, Math.PI, -Number.MAX_VALUE, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(582); void (makeScript(14)); -/*FRC*/count=224; tryItOut("/*tLoop*/for (let b of /*MARR*/[(1/0), x, (1/0), (1/0), x, \"\" , x, x, (1/0), \"\" , x, new Boolean(false), x, \"\" , x, new Boolean(false), x, new Boolean(false), new Boolean(false), (1/0), (1/0), new Boolean(false), new Boolean(false), x, new Boolean(false), \"\" , (1/0), (1/0), x, x, new Boolean(false), (1/0), (1/0), x, \"\" , new Boolean(false), new Boolean(false), (1/0), (1/0), new Boolean(false), new Boolean(false), (1/0), (1/0), \"\" , x, x, x, x, x, x, x, x, x, x, (1/0), new Boolean(false), x, new Boolean(false), x, x, new Boolean(false), (1/0), x, (1/0), (1/0), (1/0), \"\" , x, \"\" , (1/0), (1/0), new Boolean(false), x, (1/0), (1/0), x, new Boolean(false), new Boolean(false), new Boolean(false), \"\" , (1/0), (1/0), \"\" , \"\" , (1/0), new Boolean(false), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), \"\" , \"\" , (1/0), (1/0), (1/0), (1/0), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), \"\" , new Boolean(false), new Boolean(false), \"\" , x, new Boolean(false), new Boolean(false), x, \"\" , x, x, new Boolean(false), new Boolean(false), x, x, x, new Boolean(false), new Boolean(false), \"\" ]) { var pdmouq = new ArrayBuffer(0); var pdmouq_0 = new Uint8ClampedArray(pdmouq); var pdmouq_1 = new Int16Array(pdmouq); pdmouq_1[0] = 5; /*ODP-1*/Object.defineProperty(o1, \"setUTCMonth\", ({set: encodeURI}));e1.add(b0); }"); -/*FRC*/Random.twister.import_mta(-641563042,1160792938,-667593536,1184139306,-2011575868,-2081652330,-910808008,-366413885,-1356138056,-59440717,776154817,407480456,-1313168540,-425245100,1098834502,875103560,-507694746,1300319576,663271640,-1195495461,2016480101,1354230732,-611078996,218698496,1763458791,986822538,-1407490566,-536840157,1060102351,-2000059073,1825453626,-910733129,-96743909,-373066336,-534209401,1222665000,-902740887,1381111937,-415477879,-1933325938,1944476702,2036530510,-90877859,-1719301751,826944206,-1214865499,-291673556,1277299424,871218312,-1739673056,361012245,-1209997893,-1542211393,-809646175,-1694551067,578740120,-1194362488,1343089275,-930265524,-477046679,1044661006,2068660405,2062737830,-1962756024,-1489563042,703845293,2060081471,1898767058,1630385890,1577433474,-1860616595,1267452050,-1726460632,1626601490,-1576842767,1805940463,-315429064,959317782,326123869,-1817841648,-1462502452,-904690417,1867715669,223318107,-1562689647,-1690226661,536074036,-1756392966,-1365478423,-709085385,-218601515,-38690961,-1560893631,-731267342,950469939,346888580,-1531445495,87722642,-405099788,-855030540,-2128573542,-1357372717,-760714835,-426619244,1567374830,-415959324,-2121592112,-383394498,1072255287,110481097,203214123,1057752590,-177910319,-816361556,-1091890342,-925631067,1060955931,641171899,-1546052638,-1028721657,-1486159531,-1608530176,1171701942,1506352996,293254241,-896574102,1328724746,527861981,-2018033606,1161290380,-1455682274,648989448,-1092713624,-778765968,1846470863,865041323,179627089,2040188396,682116141,1945706502,1374856693,1074883430,582127264,1207730250,250823031,1303331260,1236566262,1026562576,1677274561,1804339554,-1476394782,442729805,-980931771,-1498145951,-643591686,2070630502,-1559954926,1398428204,-188433524,1273986665,-2082600764,-1892652691,-510104171,1723827734,1721269713,1571657216,-1870646792,1694093888,-1250273372,715767516,1280178496,2039547285,-1774139383,1720536403,992284970,495973653,-250999926,-915400021,-792356597,679765578,-980603374,-232700432,306241884,-457195361,645132824,-662392416,-713996653,-1402760586,-445125587,-1712259642,-360508177,-1182444987,1071711642,1543232429,1695981095,2061327774,-1922990976,1295812621,973255765,1672644206,1666630817,-1498837382,773416396,-166984053,1676930873,580247663,1820331033,1734942968,1443126665,-512423321,815206401,514340337,1204902652,-904240566,684452730,384417199,820957684,288840435,-1455991607,-1894689012,-1034597405,1275908195,238468141,-904230735,780271667,-431382362,-420496452,1219803016,-2134735241,783975826,1448304196,-597363346,-1466909903,-1096356226,-829233236,-762412895,2080948973,1191968317,-677636455,707886283,955879206,1841108346,544739644,476395894,1772694094,302812210,-1143487091,906007868,-155296664,-1420605778,-42006530,25594825,-1147867209,945808747,-1108313107,-1333122123,122912659,1137458565,-794522228,995286586,-106088469,-168842445,1273989387,1276880975,-1174686381,282674290,753295020,1059073094,254079357,-247595985,-1056536156,837282762,-1386613181,1746922382,1812928697,538396567,1388559366,603624312,-1799326906,-378413179,-16724785,517966502,209364315,-2004798548,-1972671822,1926760122,1360565505,635795555,582536477,-792407016,163871790,1134894132,-682683977,-260874443,672677623,590753833,618608203,96264143,541010068,1357727549,-771545573,1888842984,-677293761,1558302843,-2093912888,1011854869,723104317,-1161065799,-581874239,-2100203191,-1040378962,-250417513,1423180834,-664302363,-1965869823,-1255881520,-404511224,-1869033121,579506746,1831070253,1288142639,1457766543,-1807224549,241414579,-452705506,835558716,-810217461,-827569201,-1322211261,621161065,677372777,-1508671018,871173557,1047419993,-2101574422,-1791033243,-1670313074,681976856,1421765633,-1210116807,-1874926194,-1366518267,507414273,-1927990184,152034,-1497639142,1793191784,1286970096,272939831,-512393833,490397331,1256125241,-2032385211,-210309004,-2084917800,659120363,1670679290,1126495606,-140917241,966525503,1054735080,-557699455,894699842,-1369209622,-1719467021,-1501962412,1974903273,-183250798,1241559902,-1498872311,-676864753,1796102733,1868912170,-1323708650,-1609775479,-1155651017,619835152,-79428698,-1202020470,1624472365,2141287861,604481069,-27313996,-787925521,2097235030,-116347693,573050517,1579684498,946521842,864361280,1913322601,-2122224759,712995709,1271369235,-52114326,-1894228422,594502340,1742363473,-482441846,282509612,-2029647543,2137765737,-1496787004,743360985,924924876,713925093,1356084481,-1962234878,434215724,1601884951,1436278066,-1255133072,-1276364511,714296468,-570286091,-903034120,36833408,1823304397,-1605558522,1238320107,-460946737,-24165061,754645579,1556158078,-1503634794,1600333479,-1078157266,952480577,-380001675,1711921281,-614360095,151903003,-355128620,-1242436605,1422801243,-1604172453,828109729,190516051,-1079868283,1108335884,-842297485,2096613359,640715747,3254309,-317927820,2086138262,1524745298,-1853621393,117277826,-1428879030,1100106612,2142117943,-732221618,-25822686,-1449795557,634174284,124530924,-1262659458,1569274465,2054986686,-281724,452252386,-385440188,1724213665,319342114,1208980648,776645521,-618872748,-1412926538,-1404423052,-716460494,-465228516,1214566746,1972772387,297746408,-344498230,343520907,496666627,618057655,-1723550019,-73833030,885361051,634205878,-1057770074,98503336,2032836310,96416652,549898362,964676749,-654739811,1889889482,1795586142,-662523346,-1053307272,1334228972,-1464090207,-1533826326,1268690929,-2051893494,-523520936,-1631657371,-483015244,-1963931708,-1113223522,2116677361,-271032241,-1186942298,-439216056,-487682101,1942719650,79624891,-15643489,-1210277983,2146886870,1922751843,1865931041,12886458,-420625458,-619112218,-1184565067,254507354,269518172,1248162940,-1055782336,-234400881,1737065107,18067088,-2024484084,-740985603,-1341475647,-714696538,1418054386,1159091640,-1864650915,-1086539390,935908054,-1088282512,1532388447,138826261,-742028980,-1146676422,599649460,1426412810,-1047392060,766743718,-118439520,1067886114,-2085112286,1782162844,-1270758475,1127319219,-1432366408,499228934,-1084229838,1214999895,1819081460,2079435838,2114948610,-673324467,1712205944,-677787864,2088748912,264389163,1871610841,373042060,-2003803727,-1353161388,419631397,787723122,-2094738387,345241716,-766594142,731109009,-2103575389,-55538085,520997758,-1604845589,-1838606565,35840234,-618600976,1294575993,-353120948,-2097641791,-216519558,-1393076807,-1812487814,-1247492976,864596387,-180148894,993721831,1272217220,1520538587,-437423121,-87627671,805557106,-67299981,1103007130,1824001266,1884511223,1060447549,503127894,1005541579,1558095309,-645410675,-1445453232,1183557902,1610767024,1328182228,-2022586070,62913233,-1619453254,-311465617,404476125,-1349640200,888704671,-239665579,-1681828551,1269843900,-1871070795,1951268538,-512753954,-475334248,-282746575,1334714859); -/*FRC*/Random.twister.import_mti(273); void (makeScript(14)); -/*FRC*/count=225; tryItOut("v0 = true;"); -/*FRC*/Random.twister.import_mti(284); void (makeScript(14)); -/*FRC*/count=226; tryItOut("for(c = 16 in new RegExp(\"^((?:(?![^]+)))|(\\\\u00cD)*|[^p-\\\\r\\\\w\\\\r-\\\\xD4]*[\\u00e3-\\u9622]{0,}[^\\\\D\\u4fdd]+{1}\", \"gym\")) (10);with({}) return;return;"); -/*FRC*/Random.twister.import_mta(88243940,-819712022,1939637561,-2096435797,1050539938,-1038892584,-1068367129,1622427408,-843083293,-1627581762,-2026997690,20761246,740913213,891595793,-1356549420,-2093833838,1280567864,-842644583,1333489098,-417186323,1157013291,-1920677552,256625259,1224748387,-471359746,989284534,-1245078864,1627331118,-1039182617,-908346573,-2062111803,223147431,317219409,847078781,1836968591,1455765567,1171280028,-27742656,-435969636,1219026350,938112500,467704948,-1748653801,-1787913708,-30131998,1367228149,1713417557,-184938448,1886431366,-1993655673,326842733,-839063550,1409505861,-1780129191,781275131,-935554166,259768256,-1915534531,-854825049,1481511275,269699323,1626360498,2147338138,-1402979669,-687502357,1298872836,1582504136,597564755,1728923753,-1076984712,-1093065699,-1488693982,-600586115,1564654101,144680628,2130552518,687938984,-2129678439,-492460094,1074809709,-509871525,-898108094,116117071,1945914029,-529686199,1781849388,-883655333,-879131773,-1963182702,-439635783,-954812654,-250859534,-1295144476,-1241620852,1632695452,1406270837,-2085975247,2087445142,-834706469,-469504217,-2061889977,1978536707,-1820159214,-267846510,-793788730,-902476116,-919117823,-1193937227,1973041140,642147564,-95151281,1096063484,341846900,1540059926,40895122,1900698867,-169503532,1668698258,-1754786819,-898002481,-1226694578,-1175291715,-1786743033,-1633774667,894905321,771500537,1470234353,-237177966,85095381,361605151,-737954168,-860211895,-658454407,996760606,-733296648,-649816241,-1407792725,845163339,238306005,248758869,2069811692,421467461,-264517271,634784606,90852458,1910445425,-552985140,-2058898791,-852048623,732341843,1468974171,-772472607,2115206874,803229262,-685081973,205773839,-688726492,1913204881,-1869351649,2048829532,-1600189845,1041851480,357692275,2111654175,1386810480,125983447,502426361,209780830,-574308641,-1988191756,-1128062160,-1126471767,1768604251,151089377,1166146039,320262996,2133672233,232452609,1263532123,-2104399646,-344345117,1258459204,1886893408,504385653,-961440356,1900582231,-1523980991,1195643760,-552607847,1508769336,-163403682,-1431066705,-1882218258,-531136184,1741634836,-480391761,89136304,-1274398329,-903588284,-383951083,2146225103,660597009,-1657039193,-183740395,-1280501725,-208268514,-365739791,466795595,-281436958,-1589550481,-646522381,-1533451180,649251828,-887296249,2131953511,7125031,1042088542,-1184132060,-1237428781,1675837463,-1262575790,241850236,-934802883,791039512,-795989557,-1672315665,735345199,-1674867456,-1736872669,1488267803,-1388800228,-203613467,-1656703257,-1491373775,-1862551649,716390474,611343743,904446933,-852704220,810923950,66725548,-1088898486,-1929364183,2022145823,-994048640,-879214637,-1138591885,2141827359,-668112377,1911835028,-1865689000,1730501114,-3142948,842602393,-1582121173,414079985,1899304238,-1387991805,1357224634,-1221179013,-780009413,-1853710635,-373269305,-1071301910,-1238102919,-261058870,1463339917,-1452229227,-1166617924,-146346555,-845320207,1905292060,628214578,-919629354,2113471268,1494316677,-1730776261,421200078,541898527,-1299477251,-628447478,-1314607735,-864286116,1246628505,-188792736,2089328120,-743170683,-1740136790,1217536190,991951245,-1917668175,1705685999,-1403378367,-1822967956,-1425164904,-328572013,605576000,-1362710441,372917859,1815800751,621281377,-1169703180,-1987707356,681159628,1176553548,1847709187,-998424850,373025892,303562041,1712670616,-1837265607,-1979210920,-552621183,389371652,-1861492245,-116529514,881813705,-1772880369,1586850363,229025452,126291476,-226771762,-1914137229,-1322734914,613231624,1894603521,442333727,1149954745,-1100630296,514183801,-486458247,273778883,1275777119,-932633996,1799538264,1000518195,1914009312,1224973712,-1011637313,1551849907,-1786410805,-731385395,2009122527,-1243300827,1881914143,-501685175,-333226825,667471114,272660137,1108715665,586767094,-1355695468,1413960131,377268253,997258040,886585000,874500772,1992811860,159155337,-944884467,-1929315455,-1897872551,-831171270,2044721293,1633469665,-303586562,878324252,509511747,-1824315746,48273201,-916875609,853075839,1767109370,369413719,1103107933,-1622265191,369403776,195267486,949226920,-657754913,-1528091257,-402266415,-36702681,-1468892145,-678832601,1485783690,1426759957,-1129682670,668723704,-1252246120,-468366332,-1633811183,-1150735103,595594444,1259155267,-1938616387,597361795,-1923325451,-189790401,-203327968,-272884854,1457885717,-600242329,1690164431,-2120969684,-97693180,-2028716317,-1484162955,-38319856,1522162681,76040269,105855443,604058397,320887396,575829516,-1642669095,-155976831,-429643811,1465693829,612651350,102273802,-1464143634,-851622256,375403003,1119033867,-705034669,746010218,-766989782,-850152050,696511368,679609671,-2033742519,812012992,425520259,-1830080967,782030317,1038374681,1605315438,-979465518,-1721779054,745520175,-184290743,-1719870230,144401764,-952079121,-1689339910,-232125057,-138388205,453039065,-1467928697,-1980109092,-89932180,-479690242,-434750723,-825372506,-1680902827,1122731556,1525988083,-823961798,-1564643547,-362735552,-1535580995,-1059503035,770981486,300878209,1124147507,500946820,1444814711,-381837200,-408557008,178645393,-1594725075,1750827037,-1258428281,1242701562,186188189,-432947894,463998812,-225463685,-2112047103,-246193269,-1286331280,953647394,869961850,-1848532376,1379533692,-1487590074,1412781730,620139844,-1852642654,-173668667,-1703586450,-1863620106,821792891,606465434,-398522423,193006306,-817617804,32876848,-215610657,-1196068084,948003014,130265546,2127180956,-1207992266,2095902284,-1067286311,854937648,-935236648,1462487006,-322036727,911851375,57929619,1945224171,919913189,1223716963,141105258,-532793150,-1609531542,-338716180,-1688209982,-1908469850,-857512269,-1005370792,1141555649,380866859,1871741481,-706082112,2068468811,-482954633,1121668789,1688986256,-12277390,-1679597009,1306494223,226946305,-1833515672,257299692,-1545246722,-2099501540,1189847390,-1148630162,-641405196,1649844890,-1439981857,21379370,209550781,1922817242,1901325771,1970857717,-1536736286,1785592971,1866637464,-413107093,1924962243,-2086838025,564270456,1374125440,1666617599,1741042635,-1235828276,-173320302,-1788001536,2030789414,-733799017,-1809870571,-1980341762,-2097393294,1291660036,1032403685,-1664883212,-1125457784,2053024455,192129861,1749952693,-1721550461,-1842768957,1676159619,-2103326612,-1411697248,587550395,-486276985,1297358997,-76756825,1060910569,1403971265,123919619,-1214158544,1249185141,-341874056,-846757441,-895300151,160196117,1817953189,-1163349467,-207855533,884773192,1752730499,-1270168258,1739423057,-1828990227,-156764828,713386496,1122547368,1759928089,143991024,-10597067,-1487681262,819112806,-227312774,1204648039,42765974,1330138486,-1770105211,494511847,-214699077,-796647866,1965105153,-457639348,-1948331410,1381330944,-1516810492,1924968343,557464561); -/*FRC*/Random.twister.import_mti(454); void (makeScript(14)); -/*FRC*/count=227; tryItOut("h0.getOwnPropertyNames = (function() { try { i1 = new Iterator(g0.m1); } catch(e0) { } /*RXUB*/var r = r1; var s = s0; print(uneval(r.exec(s))); return s1; });"); -/*FRC*/Random.twister.import_mta(-1429309952,343340412,1802285098,-1326260133,2011984633,622376651,350748487,1044638210,-1252795557,-998047040,-417915590,1923826129,-652165842,320475431,1205233946,1109968385,-1395930249,1173340393,881817072,230687947,-525974667,-1980636305,-1727203528,938171509,-171879243,-673608760,1713356012,-88342361,673147669,-134950057,233201702,1563374713,-1447695895,-2026618657,883794313,311328142,644922275,-504693001,1254669114,638676451,1381983572,1467281030,-739708520,1400217694,78929388,862206623,853962108,-1082640212,114530918,580854038,-784455406,-402010588,997928564,1203370494,-557975639,-1529520610,2046241724,826495914,1860226367,-739601786,1787600810,-249711369,763740847,418082154,-1026721345,-269432799,-1523351528,-1151263382,1558602511,-608176811,96220646,506262673,269223909,250231499,-1618166194,2094730953,762482580,994102555,-233204492,1341452472,2123625981,687007107,585772424,1483539440,-967947546,-2072703152,-820059804,-726681439,-1177064449,-992053553,749945179,2106606006,-881998364,-2062648181,714414859,137796785,1322148144,-1707938648,53887109,-804995810,750492970,137683129,-1960676202,-790451089,1570490256,-95375083,-1146585319,-852321332,1875893306,1681931681,1381965006,-1032749470,2060353109,-302637760,-1745608247,964765177,38464418,-1536656444,-1262221221,1394083917,634369091,1943598134,1032347881,1492963561,29993861,2117806356,-50513007,-1618261772,-2055342597,1167153517,717201595,-1910341464,-1098769288,1761488201,-1862198808,809991544,1541130069,-741534534,-1813529356,-1357271650,-1697567087,49296277,-801692749,1147045739,443445513,-163454958,-1174549751,1438141576,-845292836,-1095585969,-1016468363,240800422,1653129682,385535608,-1253793197,1144770442,124540156,-469901933,-23972647,-1461378926,250335148,-252257895,-1071634533,-1627240460,1868745254,43828899,2135679753,1672081959,-794763793,-677908378,1167676025,-1589576970,-1610534326,655075792,-1251899102,-591349108,-1802083686,-723426233,-1741976078,2124282349,107569825,-1164307748,1037806917,6128757,44628723,-959946006,-1731280609,-1984730374,1062738397,1011058988,2079328824,227728642,-1682658596,-1100996811,1644469185,1260677197,-279547975,-541419257,505052934,-767409040,-488648748,601865906,-2078023292,1378217507,-1888682773,-963347801,-1777772462,1601868136,-1052958440,183341331,-182486216,1670106780,1324727334,-1588835573,-1682808230,1346817113,-1966367593,-546423599,466281327,-891596305,840174527,1502891917,-598870686,-484780998,1924579756,-1101127073,791674225,2147119182,-517680978,2112945060,1343544822,-1606117035,-274874740,-980249513,1796885031,1046693179,1199559669,-1048477912,713136646,-656560520,211176450,-1738619055,-1486632623,-1901344329,-1188335649,-208208234,-350458725,1438140073,-250886235,-1855382764,1148842120,-903261733,399356123,-271690842,803446144,277209474,2019431689,1704242555,-541286373,1484544299,1459470186,-649773259,1922883835,-463336128,-1714243182,-1201902045,-1415478282,258214922,-1243666245,741275327,733845968,369932405,401863284,1276833006,184038193,-1817177308,1846714737,1477493314,1749334149,1446936049,-2040324123,-1199312249,1492839309,1135119244,1325866326,-567119070,-1614193197,247828469,1973090542,-1303107544,-214531006,1307106240,-1503980649,-256550188,1415355516,250236591,1439964577,-676747768,-1321651815,-1686063350,331998641,-615628452,681040687,241363890,-1789355323,-802747517,82380426,-292504642,469255759,-1294181429,493802076,817967097,-806378286,1586733390,-1473688598,2056810308,1459566871,-621722471,2067993312,-928103698,-1137466644,-177610387,1352845806,478738228,994898423,-1760539307,1799977117,864634462,-563168934,598366837,29546705,-493478048,-563863505,-838263755,1240166922,1455777610,1086452585,-359760434,893805156,-385611025,516773241,1964831353,-1166292172,-480803086,208451903,1541215967,16543432,-1259913272,-874868575,754240914,1331957155,-220023877,-334639675,-515554803,-2048437344,-1619911511,2129832903,-1224125920,889006833,1628098919,-1232667590,-163859595,-710921759,-226683398,-448870971,-909465094,960387424,-1821327906,-628569902,1838372927,-2076556277,784828532,1682651110,1405048,-1021844197,-2036365028,-1151112576,-551294303,-1154000874,-1443502130,-68121137,1386998175,-1995816622,-174059728,-1883603754,1293931660,-1229974501,1560689488,-363280555,-1305837159,1229321635,-1411453831,1398587589,-1010449289,-57096922,409333617,1211199555,-1496719047,-659537434,-673235057,-713961467,41269838,932635700,-1805898868,-1443377851,1118380636,-1269697272,2024982057,1322225663,-1500038724,-1703761853,-1985948766,-816295976,-1981285863,531675081,-586591038,-696702435,-1990794843,533788073,-1732713639,-1438816446,77215881,-1726168977,1460097635,1817127665,1210180659,-77196955,-2072636141,1998474102,157963256,-934373288,-681585141,1395833913,108298129,-1858319551,1187494475,624559268,-674218415,790892757,-2117414162,46465776,-687076305,336297707,811801151,-1832294612,-69774065,674484153,-425930100,-723752815,-1733230068,-1639249140,50495827,1415417854,1212749090,-1424655813,-2142170180,-914221566,2003138155,1746050584,-1699925332,245782230,-1837213478,1754880524,-696195094,2030657390,611086788,1792676124,940088378,-343133623,2067369286,131747838,1410211598,1893775882,-1911200794,-918784328,-1038935808,-591586118,-466183830,305118468,-160648767,-1234943586,1938316561,157854143,1891025981,210349253,-870959432,845607546,1149695432,-779335068,-1857596602,-1453807625,-777581207,2032735937,-1179421381,-1569505487,-266359350,193782917,1799834952,-1231614523,1269386226,274357389,152693716,-1395324566,1978491242,644265316,-780318666,256169449,-1572623863,-753528472,-141208234,-2121472796,-675915200,2126651912,497781886,-1279981797,1907258587,-2109000631,-1556169737,940513078,-336270986,-1213539065,-1423597574,1826877315,-1361457762,1173937730,536461394,-1317686678,-144408757,1943906488,-789394262,1010244346,-1426403716,81660491,-82938670,1901821409,312681723,-176729667,211575203,1907309815,-1399163779,1129776377,-993313648,196296201,-622704985,-1705879540,-462086943,-236737405,496166102,1457332936,1116825631,-256460370,216900027,1034470335,-1960868957,-1420867846,-1900039194,190440629,-1453252495,1216198234,-984661815,-1260603396,56480650,708892377,-202846851,965281179,1908232859,-1468390826,2025046267,-221192236,-1273349682,-1121782090,-397714301,-949193822,-1378629043,559813590,466020767,-1006082036,1312090517,-1492178581,612883015,1238364817,2051404597,1003276325,-1201405460,131502495,-1371212625,2061133311,1253362271,-1007417783,711672289,237290433,955270672,1727002871,-1117605715,1941323048,-2133426058,-1062752991,-1642125676,-1004960253,-197235121,2068220618,-1772793829,-1477717432,370734547,-613844263,496029267,-94633145,-1550198660,1804751906,1944341950,-186234757,-1474405779,-551006447,1627682743,-40406446,-2112173962,1370661190,2065270917,-298744498,980842693,-787586059,483271218,-1846525354,1565936451); -/*FRC*/Random.twister.import_mti(360); void (makeScript(14)); -/*FRC*/count=228; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return ( + ( - ( + ( ~ ( + (((Math.fround(x) ? (((y >>> 0) > Math.fround(x)) >>> 0) : (-0 >>> 0)) >>> 0) << ( + ( + (( + Math.acos(Math.log1p(x))) >> ( + Math.sinh((x | 0)))))))))))); }); testMathyFunction(mathy0, [-0x0ffffffff, 1/0, 0x100000001, 0x100000000, -0x080000001, -0x080000000, 1, Math.PI, Number.MIN_VALUE, 42, -Number.MAX_VALUE, 0x080000001, Number.MAX_VALUE, -0x07fffffff, 0/0, 0x100000001, -Number.MIN_VALUE, -1/0, 0x07fffffff, -0, 0, 0x080000000, 0x0ffffffff, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(512); void (makeScript(14)); -/*FRC*/count=229; tryItOut("a0.shift();"); -/*FRC*/Random.twister.import_mti(524); void (makeScript(14)); -/*FRC*/count=230; tryItOut("\"use strict\"; /*bLoop*/for (smaddw = 0; smaddw < 11; ++smaddw) { if (smaddw % 2 == 0) { for(let w of /*FARR*/[, {}, ...[], true, null, /\\1\\1[^]/ym, \"\\u1B91\", [1,,], ...[], y, , window, ({a1:1}), ...[], undefined, ...[], \"\" ]) print(x); } else { e2.delete(v0); } } "); -/*FRC*/Random.twister.import_mta(-319644793,-318367245,1454309245,932141478,-1980673548,-1527927992,-1954685299,710316087,552117052,-941982827,-1729112546,1650446696,1980924400,-1181115186,834404477,1077222076,1914219186,100076849,1122100856,2132982648,1420206285,1398181429,1514536380,164986311,1870069101,-367845863,-212737297,-1589104732,-355254969,-1114300042,870924272,-87290019,-738671800,185661507,-568792884,-654159561,-1349930955,-195553572,-859325339,202749454,-60143342,114321433,-395312447,10431494,1471586751,225986645,803145321,-777999841,-359086716,11328304,-1835518562,-1990066261,-1150419213,673005575,1365782108,681974304,1357430007,91073659,-1448846593,-1127982633,-689759025,-1478963312,-1764195303,-1228383530,2089716757,973117952,-1959761569,-1905074634,-1866777679,671353839,-1374267731,2055373156,-448519940,136057049,-1284822859,1717173696,180204980,-265241406,-1511431844,2063357595,1766284148,56273856,-631623623,-1790745363,833804985,1860688141,-2081838926,-915756571,930200832,-46669304,2051986707,-197482346,1254677980,1696242349,1286927342,1582179929,-1263926417,2061545388,-669125819,1573988880,-162165301,-1291438194,-1160729318,2123874117,-1388772479,1745454649,326380684,1367432057,2052449849,644569998,-2089085640,930717341,-1049732106,1400784095,310278243,2145867737,262123932,1893708777,-2127904734,161767095,-1697463828,-1077700707,1585590749,776386586,-1808266384,-879377772,-518231580,-1639017376,-465970117,1025692392,-260751585,748463748,1032153809,884446734,-220630848,-1338287810,-756482417,950576027,1160770100,555185706,-722679626,-1061413391,1472038679,-681014110,-1323879,-834311342,-1338089245,-1130580638,572849049,157280870,1522519429,1738097185,1240207139,1931237464,1861240446,1042213313,602529205,1292823625,-624090193,1277952867,135461986,-1318775480,-1966185677,-1016212753,-1692729340,-1930586238,1530168497,-1999512653,443984552,1404976053,1746124160,-1563408655,-408949466,-1483591129,-2044001851,-1926806801,1588316337,1833686319,-41900618,1580493187,1400496379,1625968406,-1113479006,-778879177,1495384640,-291301259,-54676335,-1049481810,-1335545799,1193435363,1283302622,-835824857,-330039644,-433176834,-2073378071,-934510604,1270303985,1018888875,-1443388850,-1312273717,-806290995,-972523839,69478785,-436714400,1813503383,-319848863,2040905063,-67638699,-1041320443,-1059864869,-765706446,1290308145,-95758108,-1187022506,1496681630,1128608133,-1749296896,695907130,1048563806,-1850731450,-824500324,-1072201729,1274745560,-1470823645,-1695972414,1601113137,1655403364,-597625904,-1812044767,2124714374,-1096440365,-29389134,1596740028,1744325441,-1401978251,-1704986087,-417676287,-844162275,1311835732,811182065,750669753,-83536886,-1637331272,-1215976062,2084336250,-1368956694,-1930024717,-181668928,467796927,947455480,-1245092363,-1114073633,-571197494,-1533006801,-1458905243,1341425436,374851348,-2059411678,268079895,-125428483,-1095051514,1046358126,-348956777,-480187140,830378258,-1726513762,1269280779,2139975056,-909139047,-38875607,-1835941661,1548703877,729103906,-1280594130,-663182451,77145571,748993041,1068685571,997618060,559202782,-313259621,-1541543099,158490598,2003513948,712283626,2135442633,1655582450,-332504904,-1091380348,-280771016,-801360074,-156519167,1113208682,-518117535,269437374,593069502,64018667,1870823102,927128289,900227835,633024631,2116580861,1634240537,-1726396407,19630556,-409083367,1303644996,-1112291188,-2093205766,-1796384489,338379726,373622992,28182954,-1745023673,-1272537529,-2063167148,1229451419,133127267,-798127647,349244586,-2035885372,619026201,1342856643,805620555,-396346919,884080596,1142262079,-647835290,2077993579,590967213,1339863285,1526965065,-1778009860,2004981129,2061756636,-1019367598,321676649,-640146422,-1695339723,385892757,-252146372,256089593,239899808,-794731044,-1002862503,-2125138106,332906835,1714895203,-373690028,-533166125,-1908453096,2067160397,574608205,-1544568780,1224682219,38287623,648444920,855841464,-2062450968,650515660,-693960853,16898287,-922364989,964635826,1548613478,431021700,682567877,-1180128033,796721457,-861399603,-2146744168,-842115222,-833629330,146612913,-2919956,2140491481,-3756055,119824782,862171590,-1390610149,-2092884920,1786078935,1154412121,1681187806,729875983,1486723453,581902027,-1539952873,1903748443,2003052861,1334449164,1807601849,872924518,628680226,1575722196,-1486445994,-640517130,72064371,1345808873,338671099,-425136384,-1646234657,-2029430999,-1822908724,203375617,-408395982,-1150961080,-317286437,1939985352,1771064412,-1790748954,1049486764,861427110,711810986,-269056049,1112610280,-1702780690,-1700958507,1534759508,-1186116347,1030460005,300683777,986146330,-459773610,-2120007571,223091235,1794896029,-1266688906,-1027776707,537093549,392110010,-1668926636,1994256758,-399300584,27035567,-747391913,1915949356,482772871,1275978566,-1154983524,196202398,-1976007884,-1032057787,-1629525354,-845567646,-210860195,-1560380160,1035836171,-1940914439,81696606,1893528405,-1329118147,2068547232,-299270490,-1672971762,-146837728,-1675715988,-1968379169,-211216412,411007703,1858561836,-668782733,-1323333140,-1684116554,-543611905,2069630682,744352236,-2140084670,-2036755799,-1652201145,-1652383227,1145843583,-1452420839,-395832401,-1809678528,1975291362,1247955277,-52511881,531004896,-2033838331,1147974264,884357989,-291023395,-1994677847,-1556822914,1456073258,-624597479,-1770196428,1996325325,647476403,314301079,-723342675,482768860,-2087280820,126008181,352411908,-938645363,282261214,966524284,-1169121093,-1222157628,-837671112,2121241942,1066918051,386694424,-438522969,-1451383803,-2065759953,-539541010,1236544916,481304444,1427473646,1906148086,-495182432,233957898,652210559,668216092,-1942242131,-1018052166,-2138576586,-1265833828,-9040224,875914097,1630320586,1618910871,804783060,-686625407,1549132843,1448154024,1064502628,-1939591369,-632538074,-635774864,-1408170645,770370094,546254587,1269553433,-1242272406,-1728019919,-116573431,-1248292081,1761063324,830407384,74374301,-321035572,831844223,1511554753,-1379382368,-1666870327,1750139156,-277173431,1874651353,-1472819494,296888898,-1640167275,-1484789522,-1367256758,736259032,-525552654,-865344766,909081676,-154455185,1673623859,-689940613,2014199192,-1899087330,-229568201,-913251626,1431208222,1356722171,1032602434,-1483755128,1320526527,1131989176,-220398221,-876755630,506086342,78673266,-1333985103,-1613718822,130386289,-871236058,511326705,-62553112,-1121333200,1635056840,-1701527236,1850756240,-851654464,1461650172,621219770,-164447294,-1643563507,1366570577,-1178342172,-702126210,-2086173049,2064595782,786026642,-1276340725,-1700840861,-1406756664,-1382972177,1266328154,-790317448,-1757085510,-53471963,-158845351,1401372680,-407536965,-1456243145,-585264808,-1323888007,476358626,-449098964,430028280,-740270688,2022889131,-1349624828,-2054667197,1797257019,1427357183,1355101992,1990428394); -/*FRC*/Random.twister.import_mti(142); void (makeScript(14)); -/*FRC*/count=231; tryItOut("\"use strict\"; /*MXX3*/g0.RegExp.$_ = g2.RegExp.$_;\n((function a_indexing(yvqyvj, tsxpnb) { ; if (yvqyvj.length == tsxpnb) { Object.defineProperty(this, \"v2\", { configurable: '' , enumerable: (x % 2 == 1), get: function() { return t1.length; } });; return tsxpnb; } var yzitur = yvqyvj[tsxpnb]; var ljpqnd = a_indexing(yvqyvj, tsxpnb + 1); yield /x/ ; })(/*MARR*/[new Boolean(false), false, false, false, new Boolean(false), new Boolean(false), new Boolean(false), false, new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), false, false, false, new Boolean(false), new Boolean(false), false, new Boolean(false)], 0));\n"); -/*FRC*/Random.twister.import_mti(322); void (makeScript(14)); -/*FRC*/count=232; tryItOut("\"use strict\"; this.v1 = g2.eval(\"function f1(a2) \\\"\\\\uABBB\\\" &= ({})\");"); -/*FRC*/Random.twister.import_mti(373); void (makeScript(14)); -/*FRC*/count=233; tryItOut("a0.sort((function mcc_() { var czrqrp = 0; return function() { ++czrqrp; if (/*ICCD*/czrqrp % 3 == 1) { dumpln('hit!'); try { this.e0.add(t2); } catch(e0) { } try { m2 + t0; } catch(e1) { } try { v0 = evaluate(\"g2.a1 = g0.objectEmulatingUndefined();\", ({ global: g1, fileName: 'evaluate.js', lineNumber: 42, newContext: false, isRunOnce: true, noScriptRval: (x % 2 == 1), catchTermination: (w = 6).call((4277), x, ((function ([y]) { })())( /x/ )\u0009), saveFrameChain: false })); } catch(e2) { } t0 = new Int8Array(b0); } else { dumpln('miss!'); try { print(b2); } catch(e0) { } v2 = a0.every(Date.prototype.setHours.bind(b1)); } };})(), m0, f2);"); -/*FRC*/Random.twister.import_mti(598); void (makeScript(14)); -/*FRC*/count=234; tryItOut("\"use strict\"; a2.splice(-6, v0);"); -/*FRC*/Random.twister.import_mti(618); void (makeScript(14)); -/*FRC*/count=235; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return Math.atan((Math.sin(((( + (mathy0((y >>> 0), (x >>> 0)) >>> 0)) ? Math.max((mathy0(x, ( - x)) | 0), -0x080000001) : Math.fround(Math.asin(Math.fround(y)))) + (( + Math.asinh(x)) ? ((y != (x >>> 0)) >>> 0) : mathy0((mathy0(-0x080000000, (x | 0)) | 0), x)))) >>> 0)); }); testMathyFunction(mathy1, [Number.MIN_VALUE, Number.MAX_VALUE, -0x080000001, Math.PI, 0x100000001, 0x080000000, 42, 0x100000000, 1/0, 0x100000001, 0x07fffffff, -Number.MIN_VALUE, 0x080000001, -Number.MAX_VALUE, -0x080000000, 0/0, -0x07fffffff, -0x100000000, 0x0ffffffff, -0, -0x0ffffffff, 1, -1/0, 0]); "); -/*FRC*/Random.twister.import_mta(-339730091,-1570199928,266869032,-498055174,-812210565,1539246256,1601922568,476779935,1565381159,-149794489,-1673953425,1219007280,1968996923,1419109895,513239282,173277439,-1315018259,-830049037,2109753428,702169175,708745488,1985506442,615465785,-1814537204,-1108529710,-630773838,-1271103868,1841458705,1401326232,856649573,269576967,-1421787495,-58480301,944991196,1762634512,-1206806093,-1843453066,-17307326,-1787203760,1275475365,-962198700,-516074759,-77082721,-1184747618,361502657,1285242798,789024582,-1193948256,-1288115515,-1414371377,-536488959,1223799135,-908556414,1483269243,-1533785811,-902338556,1972836420,294840238,810939156,1852286164,-650081001,554558775,1125865404,-1987538439,-987536781,764349852,-593034067,248254200,-1235829774,-1570868635,-47077648,-1271168297,1082380788,490702464,929091999,-1405940797,-797946418,-959000594,-1849026960,2126636279,-42733929,-1417423581,1433343404,-2051182597,-1697814724,-279740028,1957053828,-125035778,1750211374,1055571023,-1402886529,328855331,-1928181446,887202656,1657604446,-1617181004,-18429798,-1299910136,2078929932,1781472951,1230105881,1693690865,1544802246,951282651,589190395,2010481424,-1906311744,-1288814885,-152500640,-1463800167,1181449918,-10458091,-1190936796,-1937271918,-202465315,1985108536,1125872779,224692763,-83529989,717048810,1255327676,890792331,-1750813381,-1097798364,-1698893846,1153128323,772537850,-1955938219,1902733984,1981858513,169588585,-778365409,623431267,-1257728169,-2108583751,711333864,1766712441,259855156,805606894,1641921858,1285739341,1809248613,-759595688,1399178652,265618485,-261586314,1512080940,617066463,893065804,-296802084,118250095,559621255,1373580600,-670922634,-373609242,550162655,-1371673415,710093213,1482774912,-1433915525,860938620,1019425460,886422186,2074278990,-1329727314,-1756132428,1266682493,892692684,1041864475,-967258121,1106276721,646018957,-1709423049,-409898113,2014617632,-1192692168,-321547536,-870535256,1034895692,-1365376156,885347065,-1364339488,1846654366,1800759377,1648935619,-114535578,-1661168321,2081683699,-1678934938,-1129704621,-800074276,-1156237422,604511619,-29696495,-1844149192,1658462378,-702478373,-1388823101,399176388,2102872766,-2130464519,-171740019,-2129611717,1973183607,56203047,1212934787,-276174929,689659301,1847881480,-1778513220,167035806,1856121978,-1154824688,-978732936,1706539333,-1161101575,1222246015,-100359421,293191643,-1265773970,-2121148021,-898378392,145388813,644560602,-1548973256,1636863642,1486094082,993502106,-583340469,-1984791778,-1655734109,-1610576219,-246702641,-800843795,-934520756,-1211629320,147680278,-81658811,-913510377,-99936968,1763134466,1369657262,1368839742,-813674288,-642399098,-1565266702,1397733815,-20502512,1784999542,-1488764644,1411163708,-753453513,289374586,2041684457,171453855,1487759634,831553780,-823881133,235569208,-1545682224,1736212459,-979455996,-912134195,-895456257,-226732147,1772226442,1941996397,2068406855,115508530,724016945,1313682179,3573968,1431234617,-634163617,1670506894,1013057298,761510801,-37819193,1482412464,1719284624,-1821466362,-533895458,-243076822,1621971633,-1220643563,16966765,1483773064,-2043027243,1454114347,721767463,1809185702,-1542555194,-2079805709,-1801412494,526437415,783705944,-1784722118,2140699487,937886581,-883492592,-1155330911,-1629739700,968302360,-1864005344,1813024317,-149941294,1612185777,-1125255702,2029898103,528135243,-1902122093,-1709546519,2108012536,-1212302728,-1173401004,-1778822212,-1542085983,492819024,1508993398,-1908333480,-6563789,-742353056,512824270,1407083689,-388231710,-1058308020,1184790020,-1380677389,-328752136,-487250077,-1942353248,672958597,-1793197813,-1288828498,-1833899662,645366795,-2077475684,-1843766277,770243584,-2122319430,1378807217,-188164723,1577252054,-1206976392,1305407928,736509581,-2136053884,2114862870,-603153731,-793043529,1510175581,313243283,1431091097,-746792880,323382281,1647990620,1872842637,143853597,-2097668999,-1754201847,1820380159,1071368583,1993966001,1198202826,61176950,-1118064301,-469672974,-2112560374,-729134244,-1833117420,897773097,1760750978,759079921,1707687642,-1039812500,-1815020185,-1378019301,515736204,-1361188651,276800284,875596738,1389685525,315662640,586538849,-1625991684,-801216966,563841071,-756800754,-1636198667,319860908,-680221491,-1430382051,-2047870811,1702216727,646330855,1391504096,494252433,-253528742,-1247928913,-1454886473,812251727,-1567048853,-247154338,869433391,-3637199,1612553320,1092483158,1293269789,-1704594738,1689263853,873699975,2078599184,-333775693,839869959,490435079,-1767003119,1760302310,-1108173578,1052451279,-474651538,1875142606,-1888012491,1352012801,267917106,1922465805,-1145062827,1734911109,2035658680,1019901572,-1967178778,2078244317,2016898972,2085781135,911152295,-1716897967,389932958,43383200,804401725,1932918964,-17686049,-1061815838,-1652486216,-173716558,773139150,448483442,1074168155,1935388468,515806760,-2011390265,-1446200200,-1493162981,-569816984,1451504073,381141509,1084757002,-1825201283,1441578670,-453309615,1966572305,-970445223,1700606091,-1866228550,-100190941,-32944842,-2037384408,-543030047,-97294823,-1286392439,-2039919662,-2040580125,883881904,1410047189,1334793722,425625111,-2078707999,-698516977,2403448,466589900,1232899434,1930025030,-85848956,-1537001554,-2060973799,1611326155,-1518311610,-1168079893,-387925046,-2062938158,1339939458,1509208665,2044300918,-1138791325,1751730220,-1458999800,1909052101,-1142128213,1666114654,1384172989,-2078906286,249382235,-1120240189,480650021,-1163835492,652576029,1448610251,-1779584147,-1122171944,-58392079,-2064158700,-2425196,1244106950,-1880050578,809298621,512254349,207530165,1162220453,-1274010962,175971195,-464679587,-565257539,-350509278,-596456128,505429181,1017688750,1751415477,-2056862358,1014283226,-1878293131,-2124044290,-1500661668,-37513421,18735621,940581304,921531814,899863112,-1004497628,92308222,1528240724,2140425906,-1100919136,-1010408778,-1565469896,247893293,-1837427769,-593685200,-302651703,-1734016632,683778312,-1477961750,-1339754827,-1123508198,-54048113,-2009950867,-796376431,-32801660,-1155069091,-1224469873,-1133751463,1311340804,-838187219,289611974,2052646196,-1810948247,-131390896,-1786951948,-842480572,-440956719,948546878,1169068719,1086641527,-1412900676,-1281585096,173693649,550021602,466673087,-1827030178,-756865266,-617266214,1564736510,-1884896258,-176937149,-982269906,1545115304,825599893,2015983225,-1884128025,-531028159,1243525023,1414809849,1683621484,2087862827,-710322257,1290345124,-119493248,-385363787,206649536,-281328457,586024544,-401861032,-109474273,869954238,231066308,-160584630,-2052111577,1428095697,1237144216,-231536401,1576217542,-133765481,-549343500,1283135437,1586916383,-1643366965,319172025,-1640695310,-1215711195,-162436314,-1061975345,1903331555,1768469479,-688608713,249864819,1772186005,-1315106332); -/*FRC*/Random.twister.import_mti(251); void (makeScript(14)); -/*FRC*/count=236; tryItOut("a1.push(b1, f2);"); -/*FRC*/Random.twister.import_mti(299); void (makeScript(14)); -/*FRC*/count=237; tryItOut("mathy4 = (function(x, y) { return Math.fround(( ~ (( - (((((y | 0) + (y | 0)) | 0) >>> 0) >>> Math.cbrt(( + (( + Math.atan2(x, y)) % (y >>> 0)))))) | 0))); }); testMathyFunction(mathy4, /*MARR*/[false, new String('q'), false, false, new String('q'), new String('q'), new String('q'), false, false, new String('q'), new String('q'), false, false, false, false, false, false, false, false, new String('q'), new String('q'), false, false, new String('q'), new String('q'), false, new String('q'), new String('q'), new String('q'), false, false, new String('q'), new String('q'), new String('q'), false, new String('q')]); "); -/*FRC*/Random.twister.import_mti(500); void (makeScript(14)); -/*FRC*/count=238; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return (( + Math.min(Math.fround((( ~ (-0x07fffffff | 0)) !== (Math.asin(Math.log2(Math.acosh(Math.fround(( + (0/0 >>> 0)))))) >>> 0))), ( + Math.atan2(( + (( ! x) ** x)), ( + Math.min(Math.fround(mathy3(Math.fround(x), Math.fround(mathy1(Math.pow(y, y), (x >>> 0))))), x)))))) ** (Math.max((mathy4((Math.sqrt((0x100000000 >>> 0)) | 0), mathy1(x, x)) != Math.hypot((Math.pow((y < 0x100000000), ( + x)) | 0), (x | 0))), Math.trunc(Math.pow(((x >>> 0) * x), y))) | 0)); }); testMathyFunction(mathy5, [-0x080000001, -0x0ffffffff, 0x0ffffffff, 1, Math.PI, 0x080000001, 1/0, -0, -Number.MAX_VALUE, 0x07fffffff, 0x100000001, 0x100000000, 0/0, 42, -0x080000000, -1/0, 0x100000001, Number.MIN_VALUE, -0x07fffffff, 0x080000000, -0x100000000, 0, Number.MAX_VALUE, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(-1579735522,-227929797,-1738534326,-827713107,-817414349,-554104230,-1527793089,1214700029,-1029962732,-1777731778,692187781,969081612,-671982287,995634942,-406431568,1843230874,-867898207,1675318829,457719013,2113099886,-2032227661,-1243336564,-363247000,825422119,-498817812,176696131,-535719707,1532347713,993049912,-160914983,-167935957,-612166926,-694776312,1331210325,-46722150,895348532,1228201990,-753499911,-399094381,566687754,-966513762,-1752344668,-1572653552,326845149,-1144221585,-500790255,847236894,-634415665,-1932066205,-1705904661,-472973736,-1393500922,1559264922,742568018,-1156383638,743423467,511619538,1484975488,-1543081705,-532395782,762661141,1421486287,1541723770,-1631309459,-972809612,1297876906,-1183888822,-1650153775,394628364,-2069121695,1883653181,-433544408,-2000620381,-1240060000,-619009557,666333981,2050351584,-855874087,808794283,-1483346964,-687422846,600508348,-387981468,-1216037094,-741673108,-8705061,1548545972,-777426223,1008561427,1742264362,1439582364,1230306847,59007977,1220479705,-1278046407,387591265,-263514356,205334723,401849903,-554786291,-101603174,-1440772175,-1953742743,901637985,659350189,-1114719876,-428201297,757893883,1485116670,-567755641,1513981732,-663310458,-1181141155,-1428656137,-187065998,-2001084377,-2127391649,-1462456553,270054992,-1854324368,-1980129439,1989633823,-2130269137,-1505373993,656922206,153469504,-1609211301,282120165,662574301,-1603153743,567197349,1257861136,620839720,635695024,1412360689,-1782684837,827587644,765499583,-187806843,-1160160377,-134950343,1456009246,-673993618,1562660979,-1702587901,1675021883,420508919,-973039594,-623742297,1110154336,-1587248236,-1895333514,-1675251058,-908773783,900371007,103076846,480863872,-767831996,929803327,-290692559,-1576154621,1413719121,-203736822,152951953,837886190,1757915784,-491678154,326712742,2011960160,474415286,-1295931865,-777518741,-1442522089,-675116884,-1343689948,2083558313,1187446326,1158118681,-2074690836,294207149,-865883734,709566769,587515657,1566111485,-102372963,-1955697432,-701174989,1977600074,1223673233,-2004955729,395588694,-1621559577,-1034954309,897056823,-1530640390,-17749610,930350014,-1562203689,855285151,1991388180,-1056502535,831323290,448728315,-1417803278,-1326936230,1487007554,1210735914,1645032789,1128421318,-1228314336,1789017595,-443316833,-1114279224,-1482130512,-621042756,1667791403,-1223897881,1333827264,-1378922222,798046012,-1517657989,-1406205254,2052925578,-954011733,2116871486,1172870676,-1408843735,373481956,-1229771596,1338991300,128118304,787104011,802402675,-1060530663,327342465,-2030390753,848411075,-728810927,1153862032,-1552286928,327780649,-821218385,1243435250,-1600254238,847421524,-337162015,1116785766,-202580600,-1505390590,-2141775498,-2119050525,-1428462511,-1353168024,2080716533,1996714440,603520322,1209161775,-1292320713,-898862182,1008730402,1838674007,15684771,-922392044,-1459455201,-1480096964,1222556922,-2056586762,-988452601,454437091,476913486,325060277,140727468,1446480865,1136081881,-1004628410,57569140,1032205143,-1880942976,-1613904690,1430728217,1549009725,-1009548033,-988699540,-1662436473,-2129973399,-2009187501,2052065359,-550765857,-667927037,1846422441,-1933374066,487128530,118249363,1876401286,-1962961539,491400081,1651456017,-222464680,-1014767712,1280950828,-109560570,-2017384857,801486733,-1791683039,-143365072,-651065300,-1176301287,846239462,-1249972922,1989712498,1669414449,-1390924656,-458885401,21710494,-1688878321,-148960100,695677186,2033646631,1316252723,-448708817,559890793,-57014562,-1476546838,-1004203523,1816717541,1958511917,1362908843,-1883080346,1114483935,-846117575,-121957380,-1261785353,-468075093,-1356702186,-417335263,1519585968,237838757,214563108,-657894565,1233580378,162837998,-1680284903,-1799462885,-405410685,607060110,273646994,-293708037,1056400096,-2017306341,1963959646,907590465,-1802945203,547073640,1891558528,567141451,-1985608764,1026614368,-1178992570,-1740029877,-901147128,-1559839828,-162883082,-1240732482,813777415,-1442451255,-2033260932,-70047230,-1649281129,529964180,337275813,1767712434,353596196,1362252118,940746945,383800954,355749493,225795366,788711201,-952610568,-2042759313,2042098492,1019396775,-1906930559,321113214,-1171987623,-22095625,-941722698,1949938086,499907591,1097456563,-984981184,-368153501,-2089420708,1761229338,973170902,-530678921,607566363,1896224815,470067567,1798869487,1602643398,-682969205,-1127128223,-534114575,889828141,-1529329977,-1374989316,-1051635507,-1055154536,-1610237291,1621787381,1457530651,1264676660,1101128431,-410931555,1016713186,-1769503788,-775875474,-1367194416,-1246893476,-1412748430,1434975525,-116579825,-1757940889,641057826,-666468606,1243151304,-547211333,886268265,-27786550,-1754939844,399048898,-628173362,-570952099,697550490,1107864342,943243489,1396260257,1138894255,-573600199,-378995604,-1607924123,878899020,-1169070882,-158636366,-1805482360,550403112,948740039,-121021306,-1328182696,-1473885281,-1939452667,-675559479,-1940731348,-2033155963,-599428125,-457549901,-466509961,-1795758344,-998925847,-928491452,-141954097,-100789116,1909867607,576096510,-1596487101,1675153707,1354575040,355080321,273296170,328429655,356846249,2118165301,-644559927,30068816,-430455234,-1917790960,-1525703594,-1822455694,-1842787030,775204130,-1398815333,-889897736,1523739532,1992306973,-1105449345,2124744395,175709462,-1256342192,-169235153,772111857,-739039446,1549405182,1686544459,1105959181,1790008012,-1406809777,292237980,-704297250,-777910817,-1796433260,-649185912,-921428699,-1885173907,471695337,-1052555998,-1307763138,506444599,-1136723019,-1610454001,-1693359696,1075702504,510835530,-445125430,1686127570,-1036505260,-1304946997,669875199,-349757357,1921090562,32438822,1558658044,52327110,-816466540,-267511827,-1648786867,-581652407,-1177882887,-729286071,-936588085,1286821884,-344163092,-1035521281,-1556973507,274783348,-138499015,1527977816,1548425576,-1305965632,-2058958916,1343434498,1161704774,1730819488,1194965914,-1765490788,36105463,-1323176021,850086556,1031851355,-109445401,592315493,-1319562612,-2047863622,775547113,1264143383,-2132339385,179297354,-1615876226,180829630,-1397215800,-1844564852,1947256650,646355864,1150517983,1781373702,857352172,365045701,-1301590938,582105469,-2124805051,-1105484641,-133522119,2871651,2057208059,930856783,-290207076,412419251,1488537278,-1822794574,-1020719850,302449815,1338093343,137650385,-1741885565,661360362,1902994228,911110424,270806799,-999843136,289045876,-2091034353,-864977509,-1161908036,374895239,-610702345,-1325167088,1164798101,1566256542,-257489676,148858889,1055935907,769032287,-823435463,-17666927,198995565,1730765904,-389782900,-591646552,1398937053,1902360504,-1520416082,740968803,774209268,-926675121,-1225400981,1726171540,-1204244981,620467694,1202881871,822549912,-1233069060,-1747358525,-124718203,1960651028); -/*FRC*/Random.twister.import_mti(293); void (makeScript(14)); -/*FRC*/count=239; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return mathy1(Math.atan2(Math.fround((Math.hypot(( + 0x080000001), (((0x100000001 | 0) >= ((((((x >>> 0) || Math.fround(y)) >>> 0) >>> 0) | (y >>> 0)) >>> 0)) | 0)) >> Math.fround(Math.imul(( - y), y)))), (Math.cbrt(( + x)) >>> 0)), (( ! ((Math.log(x) | 0) >>> 0)) >>> 0)); }); "); -/*FRC*/Random.twister.import_mti(479); void (makeScript(14)); -/*FRC*/count=240; tryItOut("\"use strict\"; mathy5 = (function(stdlib, foreign, heap){ \"use asm\"; var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n d0 = (Infinity);\n return (((0x75180971)-(0xfcfb2d88)))|0;\n }\n return f; })(this, {ff: encodeURIComponent}, new ArrayBuffer(4096)); testMathyFunction(mathy5, [-0, 0x100000001, Number.MAX_VALUE, 1/0, -Number.MIN_VALUE, -Number.MAX_VALUE, Math.PI, 42, -0x080000000, 0, 0x100000000, -0x100000000, Number.MIN_VALUE, -0x0ffffffff, 0/0, 0x080000000, -0x07fffffff, 0x07fffffff, 1, 0x100000001, -1/0, 0x0ffffffff, 0x080000001, -0x080000001]); "); -/*FRC*/Random.twister.import_mti(571); void (makeScript(14)); -/*FRC*/count=241; tryItOut("testMathyFunction(mathy5, /*MARR*/[]); "); -/*FRC*/Random.twister.import_mta(-1858363283,1345626186,-1788531226,-1590867328,-1204407642,2007895713,487707344,340242727,-270746280,1671633505,-575614645,1944715487,-39211542,1397337773,537828182,-196367941,-1455097562,1932329008,39871445,216032850,-1959588824,-609295900,1950097936,-1695975164,-1983162277,1343052450,1670750488,1001233086,2054856497,-1443984638,-1297891646,1603806829,16574015,-1442957327,1298659160,-32201267,1836320510,-998223732,317445907,453694766,419403379,314818215,226140040,1837499524,1211297970,1834813635,240000742,703092572,1078119586,1361642244,1861546308,-1766759477,-1493904783,-1246808662,1128866607,-662397152,-1609319188,232458449,-1402513506,721961958,1466186703,-1190883899,1377776000,-1414900354,-1859653606,-448155231,-1509120032,1771327096,998957100,-2097986582,1672052052,-935144945,1262566650,-417950595,-543816712,1129993157,1726106106,-1059521318,-174246968,-432819119,-185983096,-1489999936,-907341145,1204934292,1244324009,-1529656542,-351375813,-1312409781,-1913634198,1413620357,-1210330426,769080443,1220450460,-1360753998,24543685,1686077560,-1148156683,-753207611,-590431467,-790815486,-580106853,181130805,309610160,507665181,-947295946,589412525,1077703375,811595158,2002758590,-552346196,840232180,2046480580,1818684203,-511857399,-1656116700,-941407814,672467870,747378938,-897282068,1875667364,-978421585,1923925659,-1196696394,1383928073,1484118748,-1977846988,506815161,2058988892,344578762,347824068,-1665771791,-972596259,-623035629,-5467173,2024537502,-1695626015,753566909,-1290843799,869970213,-1176383845,925852007,-1715380745,1927044954,-1000745252,-1377967484,-223691004,1681520529,1654994448,1664295623,-1584157087,1965591079,1938953244,77321484,-527172187,-1303676037,-1952143366,119800011,-1981535529,783914112,-1029600876,1820773769,858431803,1899918175,-1963541253,1081283086,400445571,221191180,1373344438,1027188663,-1784003575,1136131084,-289871959,-356825069,-370159347,521823282,591965816,-1055551832,894493241,1065346325,1050988646,-1802213639,466653161,1955448503,-1208139642,175544683,-98130537,-490533978,-1709908739,-329599684,2105830195,-2038373213,1011402434,-762393168,-1858110734,-1291196080,-519786141,-1641965901,468489703,-1973774310,-52011466,94196691,1693463126,492858608,1719929358,1099331582,-352423508,1459373796,712852878,2085474496,77450414,2004697784,229158073,582453856,-937583760,-996752215,-1398036392,-1358674897,-1609402910,824955402,871706345,1928074419,983306506,-1952523630,-912873117,-1255331895,2006655822,1073502694,-1973275081,936579368,-1766565130,793828058,920083136,-826116750,-841478449,-1909303049,798806374,-789825642,-1076652669,1649868103,761649569,-305690715,1157641007,-469455158,-268064500,-539617121,1663567334,890636438,-669924311,-1685754529,-1377009730,1452047347,-563642897,-1224249081,1477712380,710009887,-948239367,697981894,-678066417,25700092,-1354780981,813772159,1776632402,865937565,1050134368,-1594945807,274639848,-527904398,-864275747,485830912,-1648219123,1773645522,-98466403,-712104464,742479301,1751081190,-947296810,1457031236,554832675,1696220184,299262768,223233802,566358297,267956796,2040437639,-791894617,1212670822,-1651175850,-1569418223,1460349134,1417590599,-449959017,195652364,-761102366,981196161,-1103500433,-1816802053,-1146226362,40407684,-1368509671,2013078137,1040103313,293365985,-792172534,492339170,-1405077300,811862939,-1089732830,-296392405,-595842311,1629699424,1365098716,-1586451707,-461969299,2141994851,-901140219,-649340181,-237900727,166286336,-2038492365,-2129032969,-1867937315,1384666800,-1620723623,1421623384,1884030092,1834492063,-683925071,626139947,-1257520010,1848233806,-584074055,747439932,1957730214,-1430569472,1561751758,-381580365,-646504130,-2022115962,490317929,1757196764,1972989018,1310599926,755042084,2046987225,615242291,1689456718,817354964,1598547197,137040948,984560073,-1053737104,137891304,-1304231564,-1747247037,2120920254,1242671354,140926951,1234847243,-1557950247,-1956747579,-2071339232,598608833,1537662269,-1595880442,-261604777,1311974436,1848739215,2028220205,180672762,1181928451,-825200818,-2059089361,2007718843,1867111596,-248012299,1703513172,790265134,1454678619,-1450942604,2017471634,1744448553,745049572,-1036697147,-2093039176,1874589299,1297526107,-1195552441,-76840107,-1969816515,1402684415,1727609365,30010912,1671646606,271558759,-117694510,-165000603,874641601,-725804956,1110187905,-981959952,1531066903,-663067299,-900392481,43640801,-1103859323,1752845547,-955987745,-199644747,-757407108,-1647298798,92660692,801517297,1140778047,1208708151,-1000850676,-417762090,358932740,-775829813,1721644012,-2023008247,1660171455,377997448,865597455,-851741534,936356454,-279517698,1247802676,-956542024,1541157683,1456649198,761301615,1824595225,487406173,37070249,192483333,-111607697,-1274420575,-813375312,-1169695878,1443099734,16885917,-1633176817,-1316808137,-733874314,-366791002,1632431134,-1229205035,1317583600,1660343334,1183141762,380452670,1207465202,833767000,-442717829,2101886745,-595162578,2107909522,1697360294,-840620309,-1432987312,789858295,-221424971,-830520430,-1043893271,917561469,-1968036595,87773121,2119842618,1294280378,1959110206,1672453255,2046753242,-689254179,1978884286,-348510410,-581105705,-9719403,522436554,-1754014854,-534960234,-682406930,1328249443,-1441647041,-1947012201,1368596719,-405662394,-1442635712,705688535,-1978063846,-40425798,393106677,-826143986,-1156232430,1500884267,-115040325,-1813027464,-713575101,1119161789,200816557,-1611110214,1088835329,-1780621653,424711871,-2116122769,28553650,1008519943,-943124876,-1973843441,-389515327,1114637028,428895987,-537528318,2063340803,-271241281,-2090302533,-1759538316,-1635730841,1236601697,1927915789,-766180623,336085119,-1078537716,-1273031119,1520583279,-709041283,1506597858,-1307515430,-826934678,-329073061,-1231961100,686178708,1416302956,-118126758,-147091176,1283624936,-1309302443,1325838804,1212777788,-472659749,-1937801236,1563633088,-102978603,-86571226,-88886393,-772631900,132600889,-666096199,392257455,-147056356,1472858804,1276168478,850661073,-1555274700,1805137765,-1138157225,-262395309,1644042481,-1739840922,986780120,1035436512,-793551451,1314209026,1375795715,-329126723,-1628051856,-1898968236,1904809967,-1110917061,-675570677,-352033356,-1626376806,-38370723,-1057693460,-1308444756,1746796979,-580311374,385061526,-929296087,1772915555,1648899040,691226387,-478663671,-552636444,1540593810,1898772369,-1207654315,440713629,-1497755072,1798518139,-1023360667,1607516692,-1388879351,-1676169800,-621444949,543549477,-243606417,1759468236,-159126220,1478741748,-237253195,-525718436,1330298550,-2080896317,-201524537,1696600179,-1645842894,371078342,-1757178344,349787704,-796564334,1277384150,2024360201,-264496605,2060390189,-2011551841,260185063,31885576,-601307027,424304876,2028150896,-1026838823,498915023,-1941643537,-1514891224); -/*FRC*/Random.twister.import_mti(17); void (makeScript(14)); -/*FRC*/count=242; tryItOut("mathy0 = (function(x, y) { return (( + (Math.log10(Math.max((y && y), Math.fround(-0x080000001))) / ( + (( + (Math.sin((-0x080000001 | 0)) | 0)) | 0)))) != ((( ~ (((Math.fround((( + (y >>> 0)) | 0)) ? Math.fround(y) : Math.fround(( ~ ((y >>> 0) >> y)))) | 0) | 0)) | 0) | 0)); }); testMathyFunction(mathy0, [0x080000000, -0x07fffffff, 0x07fffffff, 1, -Number.MAX_VALUE, 42, Math.PI, Number.MIN_VALUE, 0x100000000, -0, -0x0ffffffff, -1/0, 0x100000001, -0x080000001, 1/0, Number.MAX_VALUE, 0x0ffffffff, 0, 0x100000001, -0x080000000, -Number.MIN_VALUE, 0/0, -0x100000000, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(218); void (makeScript(14)); -/*FRC*/count=243; tryItOut("if((x % 5 == 2)) { if (\"\\uB47D\" = (4277)) {String.prototype.padEnd }} else print(x);"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=244; tryItOut("mathy3 = (function(x, y) { return Math.min(Math.fround((mathy2(((( ! (y >>> 0)) >>> 0) | 0), (( ~ ( + ( ! ( + Math.fround(Math.min(Math.fround(((0x100000001 ^ ((x % x) >>> 0)) >>> 0)), Math.fround(y))))))) | 0)) | 0)), Math.imul(Math.exp(Math.fround((x && x))), mathy0(0x100000001, (Math.fround((Math.fround(x) != Math.fround(((x || (x >>> 0)) >>> 0)))) >>> 0)))); }); testMathyFunction(mathy3, [0x080000000, Math.PI, 42, Number.MIN_VALUE, -0x100000000, -0x0ffffffff, -0x07fffffff, 1, -1/0, 1/0, 0, -0x080000001, -0x080000000, 0x07fffffff, -0, -Number.MIN_VALUE, 0x100000000, 0/0, 0x100000001, -Number.MAX_VALUE, Number.MAX_VALUE, 0x0ffffffff, 0x080000001, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(569); void (makeScript(14)); -/*FRC*/count=245; tryItOut("f0.__proto__ = h2;function x()yield xArray.prototype.unshift.apply(a2, [o0, m1, m0]);"); -/*FRC*/Random.twister.import_mta(-1129887679,1218349426,-1779507280,123282244,983945938,-992087881,-1850568787,-1982189783,-2136772348,1892946085,350492933,-334613367,1836863643,360885887,-1930736909,391944364,832433199,1549843001,-513193985,285042448,-1139362247,478159588,-1977621365,-1088870323,2122409433,39659651,-789726723,-1812310751,-73293697,319695445,809037905,-1028984589,-618325815,1272148419,-893124832,1807169826,544574959,-620475565,-186881288,561944903,1609404220,-1124428610,1623258644,622383300,822183857,-1230760636,-1061823272,-905817865,1238920604,-2118014601,-589775926,-1467740735,475190615,-301916554,1807367010,1639684142,981048780,1803261142,-1996313635,-820082518,-526295141,-1528119765,-1086098449,1736949754,425802426,-1653010334,-1257417515,729124971,-1949596424,1961881963,-1015815454,679852231,-565814049,207920507,-2124717849,-442764256,1436491475,-1846231342,927755552,-2061582767,1287359530,1787749110,-2081043236,1800309605,1564663794,1184739837,1243175149,392888794,352040155,-1309751005,-437461707,-1371117484,-354065437,-824335160,-50476238,1070971319,-1443862890,239825646,-75371527,583608145,-1629989256,46273781,164754923,1663237018,1564848674,-1606017273,-1712226908,974939245,328541649,-1631356914,-1230708115,1207153291,-339319617,1463073761,-1140565793,787910860,-107797566,-1507146675,-520509530,626996975,-1444161293,1857832790,576928426,942845201,-1162286186,1645025202,1744737473,-537391592,1402041344,625180285,884926299,402952973,1347369670,1421066075,-1072379965,931689947,2008319347,-1939380315,873330375,-1919307336,-576611560,-1698830474,-1370254206,199087234,-2138442665,298011697,-874436465,2036577048,-1910098986,1003542645,782783905,-177081446,-24427335,-1942109060,2003197228,2044122254,-161312047,-344599785,-787681639,-1900687638,416399908,-1689872216,-1580961982,-1333078878,-592271972,1419211781,-997448218,425821556,487430543,273869289,328991536,1005488349,117128685,-796768381,-334310047,-528603208,1906472559,-290896922,-1036300671,-2051993291,477947394,-891103001,2042008483,-184501383,1197723165,-1368462793,-1882110413,117550351,1607347475,-2146696429,-123834079,1114919843,-1952482276,106182332,1153272423,1242551870,235633287,625517608,-1895173260,-1290189830,-990120929,1452537996,-1030109006,-1066854493,2050328160,-393860687,-423471104,1527183379,-1616344987,765498778,144666779,92443400,-192173782,-1218410659,788307237,1052149995,717632988,-795881830,-1888469940,-1583860850,-1050230552,478481829,-2061450210,22384098,1718699880,-1816464868,965555180,-414269227,1136960521,-1035554083,473075236,499443819,993609487,1336087305,-569096294,-1462408497,-1238013253,-54012039,1672767622,-1030282346,-301332681,-1092018794,1868450858,-948023105,771012810,-69057612,-1510132261,1759293513,1249254715,2018601389,153232997,-1140167291,1851204733,1557003053,693068802,-1351840356,-1580443379,1895621423,1279104841,443367081,2132922602,1241897905,1962728082,-1458914744,-1825890649,-996670911,-565694218,295114684,722678375,337322365,-2130664747,1539741001,2039222137,-191206229,-372841956,582232510,138416185,-296379962,-1603322791,452327122,1743345189,1816552060,-998480590,-1961394240,257451365,-2016924426,120353405,-1960522756,400381271,350017275,575867516,808453451,1498173053,857280957,-72890679,-702711717,903591977,1296845745,-898393820,1504819144,-1647175212,-1455467294,-1422406703,1136591541,1355680704,684298929,1799141915,-1148376695,438271046,-1420088142,-486642120,-1234101477,-1606213997,-164286288,-490316688,-182717920,-182820061,2145117299,2009210096,1001986002,-1483108464,1783080897,1435212187,-1848220464,-1578118530,1226263550,-379025893,-2074233789,1977021266,-1102144664,895776772,1730017777,-1256488953,-142981693,-1749806741,2133767502,-578878771,1630570118,1940777573,-787819886,1882959514,-1434133683,-1962973697,1926135300,-1804383126,-123581492,-1812695986,-1375841559,-354193555,50046226,2083433445,-1550226644,-1326958772,416006814,-84878747,-827659476,-1735987801,-1138253848,-995946320,302765398,-1670641052,1959729538,670569432,-1769461625,-344001097,-1709341473,685971185,-658245787,546058664,-1992580315,-797507254,1649731925,644325991,1785874602,195523890,-1716843199,-1987954297,980056603,-1991121453,1417601650,-1710652786,-814461679,944354386,414701879,1423324517,1415247589,1778958239,-997061403,1803782536,196100759,-1334959182,-312278181,-980938519,-118347249,-75755367,-568994512,973891035,-343753681,424850853,-229470151,1706542578,271640913,943350935,-139395470,60609868,2024905265,1723168048,1964087100,-2079669394,997483081,2079005918,-7074595,325315827,-1375904843,1955403620,360471953,837046441,-1949210409,-657895560,1676531356,219665144,-998324545,1821535343,1441574836,316921559,-366605842,-1872270810,807230809,2113577339,1294024026,1862347248,-306467951,1888766906,2054578397,-22886149,1554303466,1247995330,1438424358,1854105891,1828965819,557575685,-281698079,1419146064,1607970447,-1607878507,220554361,-958632202,-266491141,1070049892,-1904845951,581547931,2124964932,947656318,-568222529,-921860670,1024898752,-254581234,-1547129458,1217381571,-172239829,-271775092,-1188305325,1363043300,1952819802,1620473120,-1205764167,-38126069,-929524630,-2071212407,-947834186,-75420590,-1618386821,-2128874517,-1872746944,-1619360899,-1395952338,935376456,43764696,-872087986,100565386,-1571752253,-1521561662,1939686536,1343060389,1125509516,423364457,-698189923,2049786599,885934316,-1505542089,-1905541169,-828261586,824861707,2077413364,1482728704,-660580327,-330754180,502532572,1413128468,-2131257306,1736192801,1013324188,-1152132394,1218037984,1767066778,-2087994525,-959347958,-1970938598,226386702,1371333268,-1527938111,-349249733,690621430,-544177281,-1062534586,-1047152453,-384900204,-2110820827,-2146290452,-1975460195,750942395,950074638,574941619,-2045937336,564799040,-746853431,1055607549,1928066598,-227035880,-12260581,1770686979,1823787117,1398037053,226360815,981420540,2107385004,-1887441364,1243560586,-263281427,-824537997,1406391685,-1615994909,290102076,-1646056847,-1524564304,-1024673037,-385808166,-1677229282,27435675,1938029844,293917543,-1337335708,-1512841069,1853143663,1702564277,-1675538443,-1301771685,1745678568,2043033857,71998986,-1873749182,666688693,-803802161,-1845104139,643334956,-1839083187,1457914448,-2098278336,-553195113,-981934286,-1793224715,-200721380,-1583149030,2129904712,-2092252752,-1583700442,-1078125223,-1846518133,-1833078052,1031349274,-1333828539,-1787335273,-1555880091,957884080,959281949,277463201,22469750,1895636998,-867710481,1209037522,421210460,-1519049877,1852830805,-505851332,2037787021,1424202958,-1300605505,-1134107088,-1011761328,1446163529,232200177,-1823227764,2036187389,1645904225,882461954,-1033961552,1608460670,-798676590,-415826088,1582833337,-1108619924,-171931477,-1338654292,-150135665,442216905,1802554636,-1129539970,-53799996,-787311773,2112190298,790950327,1683410737,-1932551900,-44601052); -/*FRC*/Random.twister.import_mti(34); void (makeScript(14)); -/*FRC*/count=246; tryItOut("\"use strict\"; v1 = this.g1.t2.length;"); -/*FRC*/Random.twister.import_mti(50); void (makeScript(14)); -/*FRC*/count=247; tryItOut("Object.preventExtensions(this.i2);"); -/*FRC*/Random.twister.import_mti(60); void (makeScript(14)); -/*FRC*/count=248; tryItOut("var b = d.toLocaleString(z);(window);"); -/*FRC*/Random.twister.import_mti(150); void (makeScript(14)); -/*FRC*/count=249; tryItOut("t0 = t2.subarray(/*UUV1*/(x.call = Math.random));"); -/*FRC*/Random.twister.import_mti(199); void (makeScript(14)); -/*FRC*/count=250; tryItOut("\"use strict\"; /*infloop*/M:for({x: NaN} in ((c => { p0.toSource = Number.prototype.toLocaleString; } )(true))){print(x); }"); -/*FRC*/Random.twister.import_mti(358); void (makeScript(14)); -/*FRC*/count=251; tryItOut("i2 = m1.keys;"); -/*FRC*/Random.twister.import_mti(372); void (makeScript(14)); -/*FRC*/count=252; tryItOut("g1.e2.delete(a2);"); -/*FRC*/Random.twister.import_mti(388); void (makeScript(14)); -/*FRC*/count=253; tryItOut("\"use strict\"; selectforgc(o1);print(/*FARR*/[false, \"\\uF05F\", ...[], new RegExp(\"(((?=\\\\B|\\\\W*)+))\", \"gyi\"), this, \"\\u86AF\"].filter(Math.sign));"); -/*FRC*/Random.twister.import_mta(-1882326890,329636477,-1308753509,2028285083,-1420385835,-370437218,710236473,1137536462,-1714216260,-170931859,-635552345,1807506428,-1463974487,-459929224,-1271250805,-1834636741,449164918,-583990204,1560473113,-1226327190,-980321883,1154354658,-1519783323,-346042165,1549328929,-571735986,-2061945349,-163858889,984198171,292790993,-2009033217,-1990156864,-1312803484,1247860320,-1738524928,-106545774,-822282837,-2066940537,-1793903210,1704206940,1270994809,518197801,2140120537,-1598841598,-194532797,885824828,-1545718229,-993685925,-1798504419,-1464847597,1029119172,-387551216,-1183394630,1467263530,1316333651,625006744,-342075692,1417961715,1520038549,428570908,1756709444,-1910059541,-2038953002,-478308399,-1214812574,-1833928367,-1193815376,1702082396,1532901331,-603730054,97712342,849367097,414960852,1646537982,-314271125,1927072861,-1734706903,-992168467,927767257,1369272413,937212579,-838985696,-380537625,-1930323654,520660963,-812034015,1538849096,-798981314,-1731996889,1033677272,755922637,-659273278,-1053978029,-267036074,138663722,634541888,1022850691,-56041437,281836398,-484099008,-979520647,-908399810,-1318656533,1239345712,-1253202240,-139762684,-1935717879,-107909459,-1930819740,76235491,1886696576,-1584012914,-1557262405,602349425,-1135241379,367237655,361582982,-1328033387,171086611,1693695794,-177123954,-1859933767,256981194,832441712,1235646167,-2001530100,-1443791292,1214422080,1490215976,-1111717489,-404680833,-632280965,1276478569,-796370627,-1367850401,-242833317,-1840840990,-110034368,2068905072,-508615776,121751857,-1486393684,-1959500238,-895508623,1313130788,-1380794460,-514657283,-1573656741,101475862,1734185685,-1497400621,-403722216,899489578,1782054385,-1935504861,132782372,-2100894917,-1795828186,-612652928,-33526967,1706015932,690228896,1544549467,-32929396,-721430936,-229580484,-558550193,-1311310028,54531430,1596457928,101786865,1165215678,1949387820,2048677274,-2076823616,1081777138,1235707323,2069878319,2051710563,-243044776,763986471,2003733458,-1628321415,1254503316,457746515,2107847843,-477085464,-1883054773,-1987612169,-468626375,-1999652600,-913803295,188377484,-1571988304,-2139961228,-261948983,-209911768,2129842231,225393971,1225727855,-684778890,-486712567,-1358000313,1892537537,1041785995,171764989,-1768862281,-1572488721,-1802586755,-1030217236,-760979434,-579654707,-1662980664,1939682081,1939045377,-1521034430,-548734014,1575202799,1002230987,-601885174,729884105,-746393236,1028633003,471618051,1837872703,-804716334,1475912081,1999051341,-1416743988,-1620343,-284170127,801288845,1462938309,90143476,-1901107082,1539385150,312775182,-1413215772,1257753143,1185953517,-1142782029,-1013619042,672281275,1279257107,-524278370,-1762343893,1535202193,2040711143,-504493589,955273608,1817335510,-1300512576,1786924295,-1849784326,-510791431,-213438398,-268082279,928444036,492745291,-1907303151,-160789657,-1575069111,-316448586,509725223,2139638904,-97047059,761244034,-952041835,-1914293688,-435731348,1415079801,1370037536,-1752622154,-683849947,-1784702332,166050014,-1617231888,-194497993,-1516467335,327864183,1633131284,1816894154,1623943032,892916921,1465939592,-2146993292,471407842,-1168943056,490739273,-1756262680,1651320235,37353859,305414480,470581515,-1753891922,-1732551912,1672305277,552285252,1584958429,374521918,918259343,567791452,-1978925608,-1325564727,1236323434,-1680181493,-715959226,2060649600,-665612679,-1741798405,1321313384,-702441355,-1266433927,719050608,-1427277266,2068206185,-612766914,384792757,-982990293,-756984421,473839977,-1148277960,758736168,1811980220,-1742518820,-1116698436,939742910,-1082733872,-688019830,-338372119,-480729577,919131676,354350650,1582166627,-2046413814,995964637,1947402656,-794103443,-1995405113,-617359114,-1347567096,1612879229,1820632341,531953587,-863570829,1137223988,-1425791335,419973863,-799114448,-1471226393,542292198,299003249,-992546237,226599849,792193494,-1919344092,-475052421,-2052028633,-1823096112,1109623131,-1427122692,-1115403341,1674185927,2129736934,762802416,-1238775849,1422289101,1460130277,988942305,-485497193,582834948,-998266680,-1735681039,-461289116,938397988,-607794678,-1553981689,991901925,-1915698911,949608045,-1803195482,-796504054,-1833351840,832915798,667950475,2004305808,1161944548,275675256,-1242259660,1144579458,296794366,791899843,388056292,973310940,-556001876,-951150764,-203297536,-743387396,-447594627,116043477,-351497747,19115348,2074272971,141102877,-569398296,1225794811,-888429114,797762448,-1277425111,-1560000746,-335248091,-873337099,-229299802,-1713976486,477381468,142469500,2029080717,-458547532,-1199661905,229736688,427462448,1865633436,-627790317,1661229980,1273091264,1163692064,-2012675812,1893399060,-999438940,-1735517249,-552029738,1179795798,-1374720948,818452757,-870851302,-1312831588,-398037121,2095932504,1929018831,360032789,-586198130,433604009,330677466,1448515415,-2105955060,416474032,1025086376,1952641275,1303473267,-183248199,591945761,1907735808,1712422482,863921008,699154733,-1813544757,-1375530930,306232015,-1944590265,550776707,-1061013246,-433038972,1643377171,586131614,786171623,-1390254611,586972376,1622134824,-1604976699,1439868050,-1695290639,960851124,-557525237,-1925930256,801602928,-1173466417,968733796,1246767601,-259751931,-492665159,-1021714405,-1740418371,1112095823,-779118753,-1564451345,-1352189606,1783549117,-334647535,674712205,857608078,2033260464,-1105867102,-941733353,24115970,1914200646,-71124490,-1459797886,2118465523,1372770611,2101326585,-921809941,-2009696273,1839815854,-1422698051,1822777177,-957068548,1455956474,669559443,1150675840,-340453817,-643363845,66417523,919046676,2085395905,1133589682,1774675843,1330546981,576995293,-569301486,-581055022,6094732,526352296,-1682053188,863521117,-1872858753,-1744462212,791100205,260070403,-948106738,1741031430,531605536,-116239957,74201379,-932384584,1142757078,-538150545,-48111938,-269596991,675573395,1147312740,-1140488098,-498583632,-322996338,-1981180826,-292449005,-1310177722,-1662872556,-974661381,-2108729934,-1124877244,1948544910,1405224266,1396860244,-1816760645,678354421,381768568,-1613586019,1186138696,887986457,490118043,-1801769754,923139378,-346587400,658456630,1083353364,-496793105,-633032490,1495664156,43973348,-1090334160,1706060221,-1671988098,1018252048,-1432271295,1237654004,378029379,2042511997,1762394504,1332674428,1172435134,-567106115,-409023813,-787140228,1714506538,352114600,-1812026133,2052919640,365199828,-645106982,1866963049,-180152948,-1018676731,-2033881399,-1317679916,2104893314,-1161325087,-1120103025,1130726572,913195571,124297430,-316102366,-767000187,1941977701,-1188251258,439371581,-499165794,279661220,-417459190,648212361,-1941134378,-766657060,2144009565,-1778812664,-1855670817,634789630,-1415392245,979201120,-533642864,1371657582,-1715761952,-1860150117,-658777794,-1176162362,-1274605237); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=254; tryItOut("\"use strict\"; mathy5 = (function(x, y) { \"use strict\"; return Math.sign(Math.atan2(Math.hypot(-0x080000001, (x << Math.max(y, x))), (Math.fround(Math.min(( ~ y), ( + ((-1/0 >>> 0) * ( + x))))) | 0))); }); "); -/*FRC*/Random.twister.import_mti(315); void (makeScript(14)); -/*FRC*/count=255; tryItOut("testMathyFunction(mathy4, [1, 42, 0x100000000, 0x100000001, 1/0, Math.PI, 0x07fffffff, -0x080000001, -Number.MIN_VALUE, Number.MIN_VALUE, 0/0, -0x100000000, -Number.MAX_VALUE, 0x080000001, 0x100000001, -0, 0x080000000, 0x0ffffffff, -1/0, -0x080000000, -0x07fffffff, 0, -0x0ffffffff, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(347); void (makeScript(14)); -/*FRC*/count=256; tryItOut("mathy5 = (function(x, y) { return (Math.fround(mathy3(Math.fround(( + Math.hypot(( + Math.sin(y)), ( + ((( ~ ( ~ y)) != (Math.fround((Math.fround(x) + Math.fround((mathy2(y, x) | 0)))) && y)) | 0))))), Math.fround(Math.imul((((y ** ((Math.round((x >>> 0)) >>> 0) >>> 0)) ** y) | 0), y)))) == Math.fround(Math.sign(Math.fround((Math.log2(x) << (x < ( - (( - (x | 0)) | 0)))))))); }); testMathyFunction(mathy5, [-0x080000000, 1/0, 0x100000001, 1, 0x100000000, -Number.MAX_VALUE, -0, 0/0, -1/0, 0x0ffffffff, -Number.MIN_VALUE, Number.MIN_VALUE, 42, 0, Number.MAX_VALUE, -0x080000001, -0x0ffffffff, -0x100000000, Math.PI, -0x07fffffff, 0x100000001, 0x07fffffff, 0x080000001, 0x080000000]); "); -/*FRC*/Random.twister.import_mta(57316125,1688571759,-477067193,1739551192,1976984731,-1216284536,697285114,-756663626,-1426100078,1057754058,1515376238,1049262114,-783334486,789648831,464227127,-1086852451,-1219606152,-335706993,319698121,-2093917056,-2033444795,868406594,-518596534,-295809281,1103449787,17859633,-2129579944,-1883393518,-722605673,354548540,879408372,-1668423914,-37850993,-752309674,981557151,1350149702,-341420279,-2036447279,-1015687502,1420702748,-359375469,-734715908,86795412,1043609200,1136528183,-1689118960,-1388519259,1360502237,-712881434,1672617418,1074907379,285869614,-1633054804,-1652947753,1662374220,1407145272,-1070275626,-1645737800,-1625146299,-1705397908,-1940165403,-819204692,-933079884,-1693872589,912315891,1033378635,1347842864,-1703170607,-2094824880,1611989171,-520664853,-1408755281,1690350317,895031067,-651969979,1266768704,1985104089,-311852861,197679678,-1151641110,1823417825,488934057,-1529198044,362087221,646401650,798310635,-104868160,2007565475,-240554570,-440318204,-1068004368,-777440389,1259643557,1024523301,-1392712446,1085096329,-1506591796,981360625,-900716586,1396386273,447234668,-1872162023,433113057,-743925621,-203176467,-1293006475,1324572212,718298347,498686802,1861385146,924998228,-1945478014,592324896,1585803402,-804516185,1006707415,-47200812,-1618948636,1539225626,1979068386,-201499682,-1715881353,-980235414,-1115196360,453441070,-817538914,1464403837,-1137245333,533949028,-975238067,-73336607,947878117,-695561145,-778356272,416920921,1297040978,-1261145704,968190190,-281286465,663325433,-60952169,1843289482,-1205476093,-618140468,-191797150,85900975,1106827028,-1382570472,458113011,381000098,-1240465161,-662578649,283177571,-344090048,272042456,-886463466,-640907864,1171458485,-255207933,-318406717,1377897752,-2082286613,573726557,-18561070,1311608236,486889344,2144616364,20095911,-839415797,1078235761,2074076611,948329714,-2113079043,1739292253,-60149369,-2123740910,235281801,-303503846,776598127,-1234029647,1388004449,-652301537,545450356,1251885387,1078452277,-522383096,-1193765552,-919085172,2029958696,1044041180,-402126085,-1676589540,2120300081,-1250266698,577893950,-8655139,1459885072,-490131004,122202761,-1767171916,-1424778761,-119425713,-435750295,1798056888,1314801444,-511693727,1896273326,-914379428,-2089597592,2046393007,279916851,1758632301,1821018777,1921823491,1835110652,-94632727,1721619191,-1593785276,-2052247794,-157987237,-907003610,-1771127452,247272766,1055733595,-255895209,1259458513,379333810,380472059,-2107728652,220187808,-1454991295,-951615194,-1255193102,785911233,-1090082519,-1548928619,720244536,-1507746902,-2066033781,1438036140,1323017968,-693493067,2144075,-2027005001,965695045,-406442530,652775340,791915631,1874525574,-683674847,-144462177,-1383278361,164612044,1759475963,-165795277,904390788,1317702782,-1546822386,44892481,528713187,456079277,1276178372,-2042498166,-731745995,579691000,-1780874637,-301532279,-1402518345,-1489584694,-167188489,383826144,1215989484,1774453853,-403493401,367346098,-632343266,-2138131442,-1948828272,-1043869366,-1375583706,-1419785806,1399874288,-800354373,-343615342,-1645497086,-785468876,-2022695564,1542706974,-998036776,542930622,52281901,1065022811,-1432949999,1542237927,-702152611,1811783601,1885379217,1455668698,-1490978384,-426393227,632484021,-601471831,-1963502085,311045868,2039221145,1633808413,-969745494,-644984318,-935650421,-1011181552,-1483898928,-439476591,2063117139,-322343977,-1828545208,-602564567,935218049,2079021626,567355753,-1677521202,551004601,-94349418,1991052887,-1440573150,1690704815,-1773040503,1283476617,1909887273,2089537330,-244046795,-1999834235,-110313744,79691931,1307591729,-294226086,665901954,-542133293,-358437144,-510414599,1956169764,-1214477589,2135354610,-1428952623,1113853746,-26961538,-684450935,-1602569650,-606968250,1419142235,-1782868199,744944223,-1603977264,277690773,1087566742,-1157918087,-150177402,504364801,-1307960951,-1067054953,-1006797127,374451414,-265026587,1916263457,-1569732128,-1146536998,475032582,-1794977068,2016167608,-984539618,-377796479,-115853144,568071493,2002655773,437239686,-2139798755,-738819921,-768428785,703647928,499484110,446842800,-2093043131,1500228456,-1812266819,1395407794,2120788605,-764856079,-449690625,1222328962,-503406294,719979298,1886765164,1170026462,299630,1354380666,1653991437,-1274577269,698152207,-1874965854,-486819001,780271828,658155767,1488188221,475430467,553764989,275268792,197927052,-508280199,-765595222,-2003007340,-813163719,-1234303250,963474662,-1405717339,-152914690,-855037134,-577851727,208618118,759166067,-624327068,1927049641,-2098997512,-1775037976,-1896234221,1928658544,-1066961452,55323143,-288987714,-1994032347,766380111,-1987403134,134548243,1499066626,552390708,1460484899,-1851765102,1851310600,126863491,-1327841525,-77529928,1108157278,-1486348024,1689996945,1216348061,1738605681,-311839332,-1692277030,1437370105,1981824960,904913127,-971926031,104327643,-1011358082,1387200105,-1690125061,-2041120191,-715189037,-583589608,910548157,237315640,-1790027405,1572872451,1459085567,-1294275110,-1534542700,699931011,-710611481,1709267128,-939922995,-1136430852,-1806568724,-611521043,-1880781537,-1587774298,1896558868,-1422117417,862201780,1797216006,1445551682,1171598180,-246708450,-1107926662,238159051,-2077715468,-2032004522,-193019485,-293414976,-1332878668,-700702156,1436542979,-1160153006,-882338204,-664079316,-714211342,-687158614,-1853482932,-213377653,270716113,-1493081946,-269619377,-733245065,987801295,1664217061,1457400095,1876208509,-1465050898,-1432108617,620668848,-1995096974,-6137588,630241945,863425012,-2037878776,1979730955,-1497856211,-166145024,2049760917,-1469654641,739594532,1372853170,-357002025,1413681459,-604441725,-1421276224,-515435791,448885476,1773819129,2019385259,101479858,-1346027350,-2061467157,-1223969050,-1565349929,1163364417,-1539551039,1869667946,-1230244652,759499695,1789392966,-939568221,1694134140,-1645383665,-446880113,-1730063846,-637652521,589265177,1872782179,1744327276,1643119456,-1541830220,213858704,-2084332665,1298606341,109185803,-2118151508,2058762389,-362139869,-1842503407,196251606,1862222818,244160232,376617640,-606222298,1949268889,-1644711,1117510336,-1934497646,403426090,-1227622503,1623688682,1090743760,1280291085,-1606664970,1533806710,-996657484,1235153976,-247335494,-1589798947,198282721,-2104113265,-1499669612,-1441454572,-764343609,-2079007725,342987989,587071267,-1119322053,-920699309,983012795,513769230,1217812199,1522754621,1640184929,1156221548,-340140779,-62440297,46654470,-2000057641,2066196846,577258798,1103777420,-366784613,1620963056,-815735700,102901326,418347639,1435508892,690834869,1231517022,1598945923,-86122925,-1245579837,1955862265,64213697,-1210495872,-1006462888,-1127213286,452109290,412429019,1231088046,-778302212,1021827557,1046970350,1997293297,-249492386); -/*FRC*/Random.twister.import_mti(33); void (makeScript(14)); -/*FRC*/count=257; tryItOut(";"); -/*FRC*/Random.twister.import_mti(39); void (makeScript(14)); -/*FRC*/count=258; tryItOut("testMathyFunction(mathy0, [1, 0x100000000, -0x100000000, -0x0ffffffff, -0x080000001, -Number.MAX_VALUE, Number.MIN_VALUE, -Number.MIN_VALUE, -0, 42, -1/0, 0x080000001, 0/0, 0x07fffffff, Number.MAX_VALUE, 1/0, -0x080000000, 0x0ffffffff, Math.PI, 0x080000000, -0x07fffffff, 0x100000001, 0x100000001, 0]); "); -/*FRC*/Random.twister.import_mti(71); void (makeScript(14)); -/*FRC*/count=259; tryItOut("o1.v2 = (g2 instanceof o0);"); -/*FRC*/Random.twister.import_mti(89); void (makeScript(14)); -/*FRC*/count=260; tryItOut("/*ADP-3*/Object.defineProperty(a0, x, { configurable: false, enumerable: true, writable: (x % 5 != 0), value: t1 });"); -/*FRC*/Random.twister.import_mti(118); void (makeScript(14)); -/*FRC*/count=261; tryItOut("/*infloop*/for(let w; x; (Math.pow((/(?!(?:\\b.|.|\uaf06))|(?!(?:\\W)+?)(?!(?!\\s{3,3})[^\u0012]|(^)(?!\\W)|\\W*?|[^])/gi <= function ([y]) { }), 6))) Object.defineProperty(this, \"v2\", { configurable: true, enumerable: (w % 2 == 0), get: function() { return a2.length; } });"); -/*FRC*/Random.twister.import_mta(996425162,1245401019,1565898808,-2066142619,1131646841,1217503934,141743398,1159199985,1414145385,-862116530,-854012485,-1606735551,17310009,582185898,-1073857161,-141471719,437569126,495354249,-602537743,-704512389,1960746706,-364713407,-1661213175,2064236922,263447343,-1905173697,891955065,857289152,1239209881,-185385020,-2023517010,-898006825,-534841431,-867363837,1902453281,-1942533265,-1924487148,-266689077,68147206,-1412606315,-624938763,-1175007502,1561802854,532649036,1762805017,-2014757104,-1776125376,-945254161,-352786369,-324218273,2124758231,985343793,295970629,2008875389,-363311902,1924435842,-709445465,1355764924,-1737241499,34744245,1372596843,1779698786,1103244981,-1611072731,-785162875,-1695427518,817748643,1747572907,1017568609,-862827502,150296005,1462475093,401983934,1846902800,-366665537,58583061,-558415446,-287827768,784960321,-2076150487,-1045189687,1471680118,579450459,-1363818941,-2131749791,-1191741292,1681793240,-861243528,-1671269310,-794417332,668994390,-1457714802,1029289631,-585702171,557114423,-965451244,322786701,-1263662169,64829860,494333415,909990389,973945952,1687645677,-635833114,-1555137664,833062405,-474729001,-1502497465,-1646592918,1064274586,-1894772173,-1375384164,181535452,-2106038664,1098928572,1217900257,-377953825,-1681422323,1087883620,-1852279712,-104776512,857568775,-1266995509,432040484,-61186100,1508194465,1716790171,1428735958,-765632000,-1668967676,-1019512545,495499862,-303227645,1651498133,-2078997250,1597878413,-119085898,-1041917206,2087158135,-1973206085,474535555,1122308605,157915418,-408566722,1054525703,-1206044272,-818552101,-139405761,1694150578,-436673848,-1799856468,1969307738,956429488,-875028629,1760819982,1784957407,2053023401,-606444725,98574365,-79878243,-1823779076,-1494295405,838857985,1902410878,-715168794,1271227471,1719076437,-43471334,1973096821,-1127446252,-1433347616,-121026229,-1411489247,-344844015,-527886209,-2056800659,-227785287,-2018329136,1936743613,1365804338,-1101633359,-757812427,450579438,322856657,-501251517,-663185733,1894415123,1585620023,-1571428651,1679002609,1956591285,-123251511,1378577980,201039650,-948536368,795377764,-623032841,652990732,160589916,1145632499,-1637891306,-933001019,878467920,-854823927,-917157857,-1209813317,580776160,1498863811,-1335612140,-1200462349,-469333705,-268431600,1519597325,-2089730627,-793598894,-376075419,-1487327582,-2032922657,1586626792,2114633593,1403155561,238969649,1474439054,-1649359471,-1025038119,2084720808,1669298684,978023344,213166571,-788642617,-411374858,434384256,-2030758783,-1896271507,-1916153628,20783861,-544348005,377296033,-891260649,644215361,-1863396817,1726404109,1829686557,-539239013,778409830,-1889384665,1485871251,1124327441,1490395918,2118287769,-1262019114,1263796425,588666781,-1758625089,1776993666,1855558054,-451571389,1597875409,1555100409,1954667680,-364551199,1917180900,2131673898,-603186968,1677661229,-368831203,1693860881,-1990496752,1543114198,375874582,998430522,-990316568,756554044,-590292327,-359724448,-1430277576,-1454945129,507958386,1840907810,1141621660,503656453,1534409696,125232075,-1690082778,945294758,-607403297,1877724218,1938931463,976893757,-649822340,424489303,1567660242,1846490094,-2103023022,-2065717332,-1650581258,-403467521,459663645,-1117140688,-601620165,-653389157,911620765,1245249379,2071590073,1197494297,231794324,-393782232,1017550547,912605822,1901005235,1163557332,1686434071,396066208,767520380,1000868787,1588978013,-313292207,-1375719619,-1491300631,-197471588,-534327506,-1016409149,-748343675,-128522107,646872380,-57299137,-1131080276,142130796,-1681940827,-1174821648,-1498436706,2015808274,-1906895678,-728822150,-173418362,721786204,1245634030,1725004432,-733402738,-2011891850,-35975167,-840886901,698722680,-699749024,1767191830,283808835,-59685053,176340530,-1597502124,2067851067,166917580,756315097,2039234922,-501130632,783219477,72494431,478687007,973131147,-444680747,-1496986776,-1015190088,1678137905,1309299837,-1523418789,-1882346263,1994844189,-160079641,1054890380,-1353710238,1977976142,776175171,-1669499690,-1256528301,1443361674,121841335,-1796520470,-1325364588,-1705337781,2016437122,-1583997619,-1485976865,-133772401,66212870,-597540024,1810255852,-294538947,-1622112548,-1548482967,-207889150,163910967,1404758929,-715314479,1670938354,-835370356,2120458624,-1201808595,-1261196219,1122350236,-1350022879,558597765,1579372624,2007668609,217047692,-94869531,-2108379754,-626864802,944143847,-99078917,739774070,1106004121,1334369442,1829505230,-1559638844,376368778,-1454554192,-463321194,-343621353,1509684615,415358146,1398441280,1088559062,419572358,1444085596,-85000419,-29000496,1056004739,-1714226242,1367373806,-861480572,-380211706,-509569912,-652009467,91069429,709744553,779794887,715880842,957844137,-1716062357,-1861837121,1227302793,1747200554,1837493059,1129167234,-1846676372,-884671310,-1387465909,1159372953,-799198011,-1270998762,-1913560132,-1133824338,850978610,-387203574,-1185106941,-907261690,1647262055,315890246,-530023958,-1974750746,1897772255,1015706061,-1801148919,1400470719,307844229,-1515728243,-1206854325,-1668172168,-825267631,751710075,-1715467468,18983883,2127276341,-135798867,-737791321,447869899,1834616973,1431711416,-1775400860,1945224006,2112710432,1228681221,1811844216,770218125,102908237,679268145,83231651,530566586,427960127,1864984525,448432152,-1338416386,155839444,-2122223544,741689399,1777848330,-1964778655,99079237,-713256894,936742796,-379520380,1950391732,1491643952,73226073,-1122909984,-769686410,1069897210,1082219941,1641290883,-1867131277,516786993,-1744348638,-632251524,1369387414,350725690,-1752211310,-1224611035,-1890658322,833042574,-249273754,-1658451032,911385420,-780459444,1949636945,-1433195635,-1229950018,407885370,-551404574,-823348530,-305214793,297608208,-1289218163,-1128061722,-2033811925,-1623248099,670264505,-103843978,1142748560,-5414694,385468073,-2140834440,-971420188,2010686142,-1421719191,634684930,14200403,-1797216289,-993864916,-232125452,-2060103925,1267487641,133024984,-1127757722,-62232983,1489418553,-1538975454,1268907762,-64953573,-1848636817,2136997990,-2056369770,-111023511,381080981,-1912711633,728969358,1619627737,-1739797477,175488101,-1917267212,-312433821,-1769291487,-967527653,81998125,849776409,-1732362913,841106671,1767798373,-1482649324,-1850693932,2119835155,747033184,303132612,-173267517,-681420822,-1795268527,-1112785591,419011107,1652994410,-869084609,-649739875,-94153028,215701428,-1380390433,-634210744,291393139,2139335567,842821846,141971961,1064787156,-1130867824,419688769,642319602,552814721,-671459635,612337520,-1332573179,-173116025,-2061129758,298026817,1549833337,-1072030152,1059125483,-217639341,-174254211,-44971280,-35910172,-1092449033,-1668861819,1997184838,-40686417,-1528618273,-788071045,-588434905,-2134024958,-379473248); -/*FRC*/Random.twister.import_mti(465); void (makeScript(14)); -/*FRC*/count=262; tryItOut("v1 = r2.flags;"); -/*FRC*/Random.twister.import_mti(479); void (makeScript(14)); -/*FRC*/count=263; tryItOut("mathy1 = (function(x, y) { return (Math.tanh(( + (Math.pow((mathy0(( ! ( + (((y >>> 0) % ((y === x) >>> 0)) >>> 0))), Math.fround(( + Math.fround(x)))) >>> 0), ((Math.log1p(Math.fround((y > Math.fround(Math.max(y, x))))) ** Math.acosh((Math.fround((Math.fround((( + (x >>> 0)) >>> 0)) ? Math.fround(x) : Math.fround(y))) >>> 0))) >>> 0)) >>> 0))) | 0); }); "); -/*FRC*/Random.twister.import_mta(-17783906,-2128440003,-1171283096,-1500371149,1407338206,148277279,1104881986,830017533,-51617799,-943543323,856492164,-174805451,1354101068,-914394426,-1882451939,-301748233,-2119885167,508490519,376047732,-1846833538,-170774408,-810246375,786327037,-567060834,-2026752058,-1785766849,-480090115,1134798787,76072289,-631033367,-1380710566,631313039,376984792,1750343,1177564525,1137233919,-884460141,1820153284,-1505402337,-847306228,-984772590,-7535988,1190718895,-978995079,1852929227,140280994,1798376644,657471602,1108486843,-1556050387,1409816450,635746923,791106525,-1991831329,1273143539,1530417798,-784654755,1557995499,-1171350942,-1556824148,-714965029,866260579,-404129390,-853839920,-639874008,-1842405071,-1085994993,586943714,-1638270142,1105439813,2085754404,657771428,-1362441412,-1388606645,-1501696544,-658735240,-1553318205,-723679564,-160267578,-1400419453,-34500769,-71456588,-205572898,-1874031894,931475506,1610057953,544701169,1716385040,1822756869,1282394129,218932216,-1467151267,-1388754251,2041290810,712235742,1360489041,-1351942853,672746712,491789645,-2014197664,-931525006,-1667855963,-999554825,635936884,-1724654099,-1399849619,1998695068,-1661797821,1618120887,-570301341,920042061,-706947299,535934989,-121146628,1729363155,-64228954,-1072901405,-136018912,-1077030635,-206681714,-249482414,1913734620,-775536966,142576810,612437699,-568870845,-2147006362,-1616985410,1443700664,666318770,-2144800795,1110504681,-108889467,-1323133454,1247104127,-1162539920,-3277208,-1060627235,1710646900,-1825559026,1205295355,307038756,-1279813785,8165816,1809202806,1439697115,-956015166,1923479946,-1508059461,-1902183302,-2003129383,-1716144813,-144118541,1939091807,285039702,1483572706,-333236157,2143140339,-281551389,-1249556379,1538249977,-1097381319,-1109624919,-741450854,-363014291,667772378,365389699,-2092124484,-2044032879,1597886613,1758774926,562504364,2050719094,790138875,-547857724,-761783014,-613981257,-762127762,1105868028,562238867,1641172881,859290596,-1139715625,-1172955590,10018369,908057276,582451861,898531068,-201789692,-1044276497,1768540292,-1336904061,-6383315,794847836,-99833363,1851040876,1110156021,2068488097,-1995392144,123318386,-1035065239,-424247752,-1500678246,-605351902,-502652157,-2034979139,-1847829554,-1465869681,815789985,1848529830,1774420169,-1474183392,1487548473,1467591362,516252478,-1506705364,657685952,-1835725424,418341780,744405614,-383967743,-698204312,859041992,696113608,-1563682189,-1317871108,-196867208,1638025140,810878849,-913123821,-362794509,-913277887,-693985162,121618736,-386978216,1243749227,368349546,-1888124720,1068427210,-1043715964,587507999,541312588,1491530213,-694692574,-2131271589,-483724062,694341289,-642194945,1771925258,884861718,579986981,263302359,118566335,-1751710404,1961848592,-1358250721,754275166,451202809,534904031,-1169009161,2033735861,2042057976,1842267019,599723866,-1065881707,1295446216,-908946172,-1464822023,-188829561,1530496562,-405159027,956135509,-1086564047,511085044,1919934830,-1883685841,-328997868,1658131603,132209573,-1188201728,-1526887121,-783195703,1452925845,-1927866226,-399487397,-841253761,66375920,1366807706,520104413,843534822,-475847751,-287582753,-1820584936,-47522855,1815288985,1957200610,-1789269996,1659302588,-802259994,1531277998,1863853786,443097742,2080912891,433235472,-768215554,-1036964654,1809625141,-423416224,1511169202,-787347404,990266046,1011388130,1227374559,-1532243977,-803228319,-1023121934,-2107150512,-947235757,-762288877,-584438494,-2129233660,-624296637,-1271615796,-64109659,-1889850472,1125816219,-1009936554,1554870783,-1066771491,-1757686472,1509213693,-1642571892,-959940016,234178271,-915394323,1164836416,-311862997,485633674,-1848202074,-132874030,121587942,868296815,-686905578,-1264170904,1721335518,419283563,-1225845097,-515557896,-1766226274,-717274020,-2013461095,407318134,-284748417,1314424115,79652046,-1052657432,-1547705944,731842000,290591069,-1740845991,1512638517,-195504482,824475650,555980995,582211596,-943429928,-868220216,1350523466,1757399171,1033803929,239215571,-1470890624,1054077214,1571651142,2026920831,-23292943,1522205312,-192767464,276171562,1037482307,-1767906233,1359246933,1985782854,-1714413643,-779234894,-1600151923,2102918030,576862840,1669165181,218739390,1617460781,-1685002220,14140572,1794553667,107670517,1162604140,1045367515,-434613567,-399879887,1428870494,-1916439324,-651187326,1992072759,-1706216068,-1077691199,-2067678512,-2054704335,937314474,-1966526601,-1680523386,-1936713123,287062051,2099817977,907092813,1203723575,523386704,875876595,1695098597,-1711459293,-537947450,601980703,-788146621,-903124163,1024007325,-1120239041,-2047228241,1872333701,-467843925,-1843574469,-698532386,779235583,968121894,177927606,535410674,-1108007350,-1256422870,-67266356,-1203208375,1438293051,1824007468,-122425412,1063501823,-1362658790,1116799897,1564198122,-479558905,-1653042989,-1291709814,-1868919114,1829137311,1881254481,-1766210186,1960053538,-1867370501,-1984074792,960432802,-106501402,-1354372864,672536305,1374627919,-1805311253,408625368,-637140490,-1641035533,1249205930,1910914294,1067789683,-328528259,748930006,-2122410785,1895477607,571227986,270622062,-47020141,1981633894,1127643222,1068183332,1533609862,826744647,-1165523614,-1570225408,-82603127,890449254,-1581022183,-2120777737,271456770,798750391,-677094516,1961496820,1976726260,1729886896,-1061726287,-2111511540,-47612671,885640086,793111162,1904725523,-1137507253,206374167,-988014613,839048940,-381027811,-1859003297,-2056509905,1027063406,-1096202840,282051998,900716233,121574542,1520062084,-532720336,-2130717040,-945246366,137584825,-1811967529,1487356458,1788136865,-617540982,-1605840885,-933935682,-711505153,-1893654290,-118904837,-838741557,784406945,-4233705,1009986505,-2131233954,1387769990,-57372958,1202926691,140409396,346424707,-1590839626,-635136549,941418106,-289097639,-378400459,1014641758,707041581,-548954456,1555439882,-1846663437,453216422,1425192803,-1326379899,-1539364648,1518628446,638018640,-1212004192,-498194538,1752606835,-1234076712,-772858937,964529798,1735563919,1188782288,642041294,-1666223289,594558907,-542729014,1451731749,282355207,1143287448,-1982007208,1306837579,-20387416,-393762424,-510855136,757878340,1876910113,-423458419,-1918211045,1995867199,1289928213,-2056663532,-1645799626,1641593423,235161414,-435182947,-309975283,1863208763,305543199,1684099027,-18122722,538003944,657266073,-1350346716,-1989575232,2001284056,-1359520525,1336574760,375648574,1787389904,1231118881,-175353696,572864243,269355547,2111485439,771191655,-723752231,-903495482,-1398583223,-604310435,391974916,1390729435,-331363780,564600484,1896446281,-1329305364,962274371,843836115,-566789131,62520700,-467940132,-1271506720,1988951325,-945203035,1357498788,-245626114,-1651990897,1175209332,838547260,1094146836); -/*FRC*/Random.twister.import_mti(62); void (makeScript(14)); -/*FRC*/count=264; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return (((( ! (Math.asin((Math.hypot(( + (Math.pow(x, ((Math.fround(Math.pow((y | 0), y)) | ( + x)) >>> 0)) >>> 0)), Math.atan2(y, Math.log10(y))) | 0)) >>> 0)) >>> 0) !== (( + Math.atan2(Math.imul(Math.fround(Number.MAX_VALUE), ((((( + ( - Math.log(y))) | 0) !== Math.fround(mathy1(Math.fround(mathy1(y, 0x100000000)), Math.fround(x)))) | 0) | 0)), ( + Math.round((Math.sin((mathy0((( + Math.asin(x)) >>> 0), x) | 0)) | 0))))) >>> 0)) >>> 0); }); testMathyFunction(mathy3, [0x100000001, -0x100000000, 0/0, -0x0ffffffff, 0x080000001, -1/0, 0x0ffffffff, 0x080000000, 0x100000000, -Number.MAX_VALUE, Number.MAX_VALUE, 42, -0x080000000, -0x07fffffff, Math.PI, -0, Number.MIN_VALUE, 1, 1/0, 0x100000001, -0x080000001, 0x07fffffff, -Number.MIN_VALUE, 0]); "); -/*FRC*/Random.twister.import_mti(388); void (makeScript(14)); -/*FRC*/count=265; tryItOut("\"use strict\"; for(let [d, b] = ((function sum_indexing(iaiuhl, vwcglw) { /*RXUB*/var r = /(?!(?!\\2)+){16,17}/ym; var s = \"\\u00cd\\u00cd\\u00cd\\u00cd\\u00cd\\u00cd\\u00cd\\u00cd\\u00cd\"; print(s.search(r)); print(r.lastIndex); ; return iaiuhl.length == vwcglw ? 0 : iaiuhl[vwcglw] + sum_indexing(iaiuhl, vwcglw + 1); })(/*MARR*/[{}, (allocationMarker()), 0x5a827999, (allocationMarker()), (allocationMarker()), 0x5a827999, {}, {}, (allocationMarker()), 0x5a827999, 0x5a827999, (allocationMarker()), 0x5a827999], 0)) in x) {\u0009/*MXX1*/o0 = g0.String.prototype.normalize; }"); -/*FRC*/Random.twister.import_mta(1065461888,-1254260603,-1620347368,-466331765,1145855826,1448151702,469303901,415048674,2116575229,-603900045,-1810059409,-493627439,-1083537691,1384030860,-15376633,-1527606674,-532747751,1284135181,398981231,1323157711,-1680090698,1469756930,-252298871,1618502908,46844035,580053020,-976191581,645288016,834727556,960727080,801471795,-1725865129,1331222434,-1805477226,-2124904186,-1237950560,1775705360,937371546,-744287444,-1722068795,-946930161,-1345430989,-681424433,377742598,994966958,-1688208264,1359552416,-449158808,1807905998,-142828782,955842400,503420807,-257076433,-1931982089,-1155142603,-985582381,1741951185,-1800788247,1755665780,169829844,1872515822,467839544,929210279,-125106945,-935067489,481047854,-816722302,1163502347,-2011211253,25962081,-955473,1002874440,1324081573,600065943,1313997038,-660802864,-1755560759,220468229,-1937937080,-665102252,649581532,1217955112,-224280553,-106243303,1306584870,-1138745151,-1830453615,785205034,-1357820203,689809227,1525312893,-1149368975,151495401,1914836959,1899254342,211364430,-1457136787,-1553369617,750587466,364562730,1802563654,-143411789,-1745893423,-1483505467,637973620,-358545135,303950801,-737786134,144770886,-760469401,-2042032744,-774932393,1727657978,180231046,-1091948989,1051096780,1942037161,1427229058,561014509,302273544,-1573277596,-2002006186,-1939176469,1591704897,958549008,-1192623160,-2117160812,1170708093,-328925746,-1523585820,2028419573,-142721765,-1543125989,-1148116349,352648204,1799420599,1480656903,-1461737759,830796157,338142459,-531327961,-1129754830,1780143601,-357793389,-279538248,-1301542894,1649505379,-554406687,-138513736,2038091243,-1890188248,-994336010,1459675344,-365917763,1145072258,426268454,926513121,-1745956696,-1531408798,-1308345741,-1610100723,1531574348,1251414646,864044963,90249672,-2092997351,1166243270,1405160655,-1150117154,-895317265,-129746722,-594458981,-1549223578,1081298243,-1886484736,2031185183,532670728,739746923,211874818,872841249,2017683389,-1996202126,-1157321344,885192946,1946264165,-1704638070,2124837037,-954789988,-637979584,1402597851,782488506,1873707401,553197302,184137946,947966238,-1367437157,-836462369,1307131801,-1239381863,-1710583272,1666528519,781979186,1073937270,1020382087,276244295,-464683602,379718085,-702915829,1710485768,1104591495,901234996,-2074816118,-1686585971,909743580,559098565,-1917926123,183729076,-1469285098,-1575418409,-620051774,-1399306479,158347712,-438114790,367403881,515192202,1272525440,837187790,-1096574049,150756179,1934876222,435476852,790433641,365881870,797873521,-458973560,1959925576,-608438501,-875832182,-1032404077,2011194037,1113538986,1248761642,-1883670273,961407723,1025450876,-629264412,-83293969,-283808205,1304707977,2025224772,-22543800,-1739919741,693725826,-1079523285,-1459896832,1740261163,-1388748917,-1187171453,486603123,-1429451993,-1464258326,783767580,-1477847027,-790341115,1363435518,-146122322,1410050918,618206867,-1034774230,2105940182,-738858509,-1109696023,-731596670,1748954903,2079215520,502499012,522101124,-1577000339,43461127,1004217703,2105035468,1231138080,-1010124652,-1966831837,1800349705,694107404,581210009,-116066593,46203595,-1615085916,384720591,-2114319725,-80615395,541126673,2131616378,-2102153727,1895784255,-672770468,1449402143,2036855496,787535568,-379671860,-730488360,-1102660042,1815904876,1620805005,-348467356,1270783365,1611759922,-1356668600,-410084248,-260290538,930969573,1675760894,1330607571,-299697795,-741327427,-1431638229,-706014240,1233952363,-2041685599,724436256,-343442621,-293056863,1542229757,224118241,-488324854,-766677641,-1125228753,1646073328,-1465931005,1164085596,894638753,-1347599496,-1229932086,-1491264756,-1663746270,-1901962293,-1379583938,627463049,-1974059154,-1787986488,1693799160,9280966,-1066952600,-1559274119,1655099124,-379227349,-499880584,1453109752,318564986,-1750501776,1187967374,-2087648525,1701267977,-1111814886,-253727220,-381255292,1651043304,1343877342,-2118301236,1301724173,-489060855,1226368001,-1958898291,1470427161,2081950174,1292091577,997110689,-197954361,-24805549,-1338020553,-1665485007,-953030397,2024969670,-1696336904,1127973095,-949157443,1129860744,-985161172,465175112,2137929889,-1937184733,1610587960,1588178737,-636259419,-1556797617,145873132,1573724435,-475292225,1044919209,1158347654,793546343,-541151005,1902443513,1029549932,1621496656,358195353,-1241240524,-1521876204,753178754,1842903236,1949824929,-648640585,1853323523,-680813243,1877582964,-466665255,-990986063,1682182257,-448506820,-744668090,409299187,-999198999,-930213836,1525411046,-132787594,-1151993484,5851370,-402583130,-1150033116,-996289441,1777511946,1236363551,-1776456687,1491402116,822902930,-1286397627,1169330397,-1909238826,537650324,356146588,-340154793,140024544,-1936451042,403520878,-2063976964,-966639626,-1308048612,-1490990509,-259982596,909154248,1978594310,611228097,13732938,1974336865,-2104767609,-455802806,-419711792,1157268461,515555794,1692348443,-628583006,1966656802,-499376434,875507232,619784894,-721984813,-1629344879,-2030777436,1671628061,-911761805,-1563606034,-1098819506,-214383887,1152181749,-656583340,336502849,-740725350,1858900115,676066626,890211787,2112871666,-2146983332,-829533672,1376900123,1426258311,2130918708,-2062996430,2020428546,1529262384,-227399501,-296536584,1962561711,-248889726,-1815760137,-2128714015,-758368112,341729638,-1805376171,1773617410,274083320,282482673,242175661,863757230,1671024380,-90756564,215735207,106814147,-1922705420,-980245818,-1434578608,-968022772,1099267763,-1118551879,1257294024,-1207664932,2129117323,1680640610,-204140020,-893686677,144408504,-196199025,-1303119955,-1790486582,-1367092028,-1306314783,-540899819,-439310260,150142397,1741709414,-1703837352,2092693051,-1097374928,1899058568,-1854588380,2031881063,1202392723,-686494275,782535478,-1167490260,-10014606,1879924438,522204502,397471416,-830771775,1116952845,-1179417017,2087105631,417249457,230229115,-558836107,-1549583058,1621219027,735762870,-2014017652,617523524,-1790055543,818880880,-1700763512,62630471,1087648529,-56297251,-1101396407,2029818095,-1618743481,1899984663,1069589119,-1915607458,444617924,1575364149,668088854,-2062578624,-1740946674,1901627953,-1834922774,1361413965,-91208834,-1006937366,-904768969,-1427871265,532291258,1098690489,-572579551,-338586591,-1396185373,-1082631168,369019353,1034295265,-1459268905,1830720945,-176888103,377690668,-812264957,-1186060944,-386477573,1205361868,-989202644,909257185,1823119535,785229205,-2146669294,1658864625,-1046476783,2009458921,-210462713,1698480405,1499501939,1070359643,802960002,-1574762144,-1209299651,1846950153,143984869,1998052623,1967631254,-1785451138,-1170862541,1728842967,1227737821,-539829618,-390421996,-1680896741,-1858551519,1386935452,-1081872574,1501004082,1446827899,2107965177,-125799937,-1128754599,1771659367,499516134,2137442064); -/*FRC*/Random.twister.import_mti(122); void (makeScript(14)); -/*FRC*/count=266; tryItOut("if((x % 4 == 0)) { if /*\n*/((void shapeOf(b))) {((false.__defineGetter__(\"x\", (1 for (x in [])))) ? (/*FARR*/[].sort(Date.prototype.getSeconds)) : let (a) this); for each(d in x) {Object.defineProperty(this, \"m1\", { configurable: /((?!\\S)[\\b\u00b9\\d]*?|[^]\\W{137438953473})/g, enumerable: false, get: function() { return new Map; } }); }\no2 = {};\n } else {print(uneval(p2)); }}"); -/*FRC*/Random.twister.import_mta(-1764765692,-105801928,1314428942,1321383723,1190198671,-524040624,-720890298,-932452830,1617147427,-1125170404,208542702,39007004,226181431,1137068896,-2115760783,-244142816,993850032,1516592348,-460474274,-168280403,-795303307,-1591024399,-1740823592,589182906,-707485615,-770563836,445268279,-1896015021,1145387408,-1075409196,650846257,572455692,-2080235875,1621598231,1310814796,-1622005537,330762541,-1522166904,-844618285,2117466660,143499824,1085364004,-329205552,-316275669,1000303092,493517782,385067381,1966126637,1309913320,-554191817,1927117654,1202040216,-1684138423,-635402473,-1619584339,812264725,-429560183,-1771129740,824220874,322896841,-653903921,475780253,599390468,-1635142259,-2014214940,-2056936273,1160067348,1849679659,-1654503910,2116898908,1240331109,1839476119,-433716345,258143541,423752867,-1354150327,1604130945,-927931204,1044150321,106500201,1531936672,626097382,-1649371567,1037484707,1969915916,1042889327,597488442,2141858103,1581502861,895737984,1450937079,-908787507,880647781,1361930273,370850015,-1655960936,-959232891,1696949387,1766107753,-818982385,-1368739423,-727545356,1201973065,-1768818436,103163143,374038587,1803967942,-117128422,-89232348,-81725424,-1895248769,391147935,-158720049,1288096661,1472742622,1420172292,-1730473108,486003811,-1484652864,-1556090925,-1684577858,988633446,-23727166,2067875438,-2046525252,1012706929,1165760721,1191390063,-1008546730,-1670961342,-451108671,471777135,-362501464,-252969686,1406139894,-987403766,-1840818439,-696637735,1566576483,-340679743,-404282914,-1872531848,-1266661209,2048020135,-2021207428,1266890688,-690794372,1342562538,1648447910,593865552,-149931278,1531924760,917544073,1637588742,1281366146,2117137394,-1246925283,715184094,1602831009,-1204539442,1382309465,-1466323099,-1706506294,1599515345,-1085982651,-405915997,684946870,1826735966,1861794114,755473186,231756012,-1842411943,857949257,-1390204321,-96855830,1319328573,1390166987,-310252000,801904172,441540353,293398112,1612988705,-211538258,-837356452,-129613284,-254242139,-333556275,-709705904,405969353,1351202065,1809188663,642688666,1775649986,848153882,238785920,-1661288639,1046226690,-170058630,-1099837173,-1918964919,1311674986,533535200,-1464047714,856697372,-2050149398,-1135637196,-1164929601,99493259,-861649398,-1890595356,-1206098186,-1279728946,305201203,1450442547,2003136577,-558485311,-2062614614,-1699821912,-771322333,-1775037851,310693787,1331006964,729534612,-1277032292,1282799911,87375489,-113264128,1270435186,-1072138201,1117975732,-1069252544,1276610696,1846295607,-413509374,-1308430970,-726205071,-653611687,-195179784,-525618535,743760354,1727070453,523239889,886892682,632513294,2002406190,101622,460994923,796013422,-1653483053,-1486281988,-164368348,-2122836720,1422489038,1324850743,1680377881,-875485558,2054203338,-247206825,-1368363456,-799111448,939265049,-992137579,1848161538,2064983762,-1629438113,-1481772960,-179191374,698674853,1047681871,1553136886,717423616,1370305973,-260195198,721718949,2076800335,1100800042,1459582430,-1432461686,-1019179020,-1524485329,-24096377,-1097709849,-335487397,181029458,-2101269774,-1183159335,-1229076359,23987829,327551951,-238655812,125567003,1667350581,1280142456,2057553961,-160515852,2081773914,1440643954,-1143518155,1360516339,-245470993,1003331667,1937450063,-261484206,696474039,1643484837,195108739,-91296140,1799864121,851446850,-294135707,1172891304,-1210285279,265826320,-1657538292,-776739498,-1365016692,-113367094,1015939847,874250023,-1370357142,79325873,-1160661599,1929420055,841855780,-92260700,1479985900,1057051755,1762995945,-1515453684,-891043305,-199181230,-2054743928,27115911,819855651,-1433776484,-1262160971,628712746,-638955424,-588519292,-207552392,108033393,632483234,1424020199,-1192698024,-730281472,-690841158,243656345,-359835902,1369637274,-135559425,1888877910,-446433157,-1533239337,-1362686710,1507765730,-1147995312,-389781632,-1809263307,873613056,-356905394,254284787,-72643027,950118613,248589536,614526474,1668025228,1413018434,1666762961,863134916,1388988369,-1157281565,1356020027,-1324125282,-1433789793,1567889686,-1697373942,-1713661103,-1766056522,2045542414,2070781357,-953928823,-752034740,298794094,66128218,-1633558829,-1759813159,-59980872,-443908593,4510053,1550085825,2111035154,837537705,1360649741,-915818347,1917784296,1588310250,-1096549455,382879478,-1064695853,1699809288,-1680927171,1495880677,-83843015,-1125167211,1597804637,1480115222,-1320267854,-368888089,-1961952826,-1043987280,-1478994305,763119290,1273533710,-2007409193,-1194899165,607678706,220416427,737846082,307113545,879736144,-909404182,2059584133,556448529,-1403379243,-1716559176,-1493724862,222284596,-1241552165,416591883,-122055212,965543122,689524766,-127680444,-1126524752,1239989052,-824615692,-327232993,-518518920,2032203576,1785822541,225162455,1301416514,1435094270,-2056898161,963676359,1246485311,-463891904,1643714035,-1272939299,606515325,411377742,1630647286,2141804560,-937314969,296671842,-765399688,-237898494,373106007,258862426,-2032857498,1518413540,-479966095,-1946791594,966687998,251857117,-859498445,-10813155,1327347256,-245434041,553194027,-1506011852,1236116823,155096,2084376679,-546149956,788010447,-1729577882,-189307331,-45174639,2035952982,-288998735,318837477,681885186,1122351243,564758003,2012737007,-1187472736,2110995626,1474792672,452138371,1933455406,260252792,965928937,-320065435,409471451,54120025,-2080923142,-1327146562,1461706319,-1833636383,2117830157,418375625,-1202262100,-782375587,-806995218,-549277542,1129931701,-863628106,-2022125599,274061489,1317533070,569279722,2036015312,-65117284,1445981207,-744546080,120558953,1972655165,-1106244044,2141543499,2006648965,289141558,1667164354,759615926,-1284648665,-1265540705,1266900857,-1991285166,606691796,-312553276,1446035854,435370446,70321448,-245982936,-713901818,-897511397,1806085017,-1563227048,582709158,-1878261006,727917289,-2141029439,1207641146,-321697007,1064583361,1719446405,1039943537,1558051337,-1216249371,-1412040469,-1957750157,1574631957,-1642890985,-629691197,-2332267,1144719448,1275798519,-221663363,-926469398,-1234804158,590814248,-1475508036,-119975374,-992112403,-793053675,762420221,-823582265,1737349124,-642550682,-1734715689,-147468283,1842228483,1630910965,-496657322,635835564,236924826,605835980,-145865095,1760158159,1260086736,225824441,312418548,89170574,-1268550344,2036010263,1476290918,-935397928,-851855396,1425437349,-1227896128,248978025,-858226899,-625688741,-1227704343,-1008061427,-656100207,-411910729,1038862865,1195188346,-1610418386,1752657118,-1284000435,127276455,995673353,-1407203203,1931908785,-1082250645,766149949,1857194493,1042698537,2007783504,1246668929,1183822230,-1791378954,-95712850,1828655612,-294472285,-636938063,-1801238647,-1773328386,615364729,2091651483,1629016930,-1245441101); -/*FRC*/Random.twister.import_mti(175); void (makeScript(14)); -/*FRC*/count=267; tryItOut("\"use strict\"; e1 + '';"); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=268; tryItOut("\"use strict\"; var spujcw = new ArrayBuffer(3); var spujcw_0 = new Int16Array(spujcw); var spujcw_1 = new Int16Array(spujcw); var spujcw_2 = new Uint8Array(spujcw); spujcw_2[0] = -17; var spujcw_3 = new Int8Array(spujcw); print(spujcw_3[0]); spujcw_3[0] = 1; var spujcw_4 = new Uint32Array(spujcw); spujcw_4[0] = -29; var spujcw_5 = new Uint16Array(spujcw); spujcw_5[0] = -9; var spujcw_6 = new Float64Array(spujcw); spujcw_6[0] = -15; var spujcw_7 = new Int16Array(spujcw); print(spujcw_7[0]); spujcw_7[0] = 11; var spujcw_8 = new Uint32Array(spujcw); print(spujcw_8[0]); spujcw_8[0] = -2; var spujcw_9 = new Uint8Array(spujcw); spujcw_9[0] = -29; var spujcw_10 = new Uint16Array(spujcw); print(spujcw_10[0]); spujcw_10[0] = -2; v2 = evalcx(\"print(o2);\", g2);b0 + '';this;/*ADP-1*/Object.defineProperty(o0.a2, true, ({configurable: true, enumerable: (spujcw_5 % 3 == 0)}));print(spujcw_0[5]);m2.has(a1);{ if (!isAsmJSCompilationAvailable()) { void 0; abortgc(); } void 0; } print(spujcw_6[0]);/*iii*/e1.add(h2);/*hhh*/function kfpunh(c, e, z, spujcw_9[3], name, d, a, window, spujcw_5[0], spujcw_2[0], spujcw_5[0], w, y = window, b, this.b = /x/g , y, z = /x/g , spujcw_9[0], z, spujcw_1[0], c, y, d, c, x, spujcw_1, z, spujcw_10[0] = \"\\uD983\", b, spujcw_3[6], e = \"\\u547E\"){m1.set(o1, t2);}print(spujcw_2);a2[spujcw_2[1]];return -4;"); -/*FRC*/Random.twister.import_mta(1779076458,-1482273836,-617028798,566220837,1766371533,-1853578470,-656753532,-1241121901,1179608472,-143048123,-349524119,347859330,-534437632,1042472984,1438978090,376892502,-1519651911,-1971219188,-942874757,-60315570,-496541211,1582350245,1709223565,2049537821,332124679,-177788075,841751715,-74580368,-1190865368,-950866957,-1527769251,-2082664550,300086528,513654260,-1078397778,682685453,-1367846540,-1238099702,-1312579098,-398982393,-1052726038,1326492496,-2048209017,1352925229,1126643625,-940005221,653709894,511266995,-63393285,-1657327637,1110164287,552060710,-801225943,-835314233,-1609820765,-711762037,-2095648931,1228837895,1123540035,1146773050,-1055359034,514920920,278488191,427418774,954085113,-379269668,-1752620108,28453840,-1277972451,1118128240,-523825108,1531267163,-29304722,865361850,-956190036,-154902201,1483039289,426042747,-1260638940,-1253112906,-434120626,1788758886,-1095107368,-730628425,-1793245427,963299231,-466084657,-1753162262,1833311663,185462532,-1070527469,-1798180083,-1418915508,-516170594,19210548,-1007422092,125186815,-1245516752,-1113139327,1305102837,-625730236,-1379582668,-1711533665,-1541397423,-1966938357,-1919565489,-304118576,-1297019652,-1563243374,-1646938795,505846950,624259289,-281145948,1701042145,196971240,1966516582,728578418,1173295991,453535702,1256465846,685963406,-2124744747,33947516,1956202715,-702737199,-655862667,-1747979042,-1835223284,-89984450,-1610235962,1581812026,286995584,-1792332207,1071071093,996248779,-736485749,56834715,583667304,1716613412,408238966,-354239644,-504104150,1947047294,681593815,-442245087,1821543428,-2066629788,240445458,2010021421,108288520,830100101,902922110,-1692911768,-1384180174,1656914924,500006598,-1893218516,1225816090,1478565823,-1137591292,2139998224,-2048700145,1086687221,-1516425003,1122116402,-1397692183,-223513790,-406410572,1005737580,-939456079,-141366281,422209181,386102055,-1977033616,-1818808254,-783079217,-727356602,1912610746,-1707134779,748823036,1582618166,1364981400,739254270,1901522871,-201598599,-363382601,-558224752,-1404374740,-424541391,1692223132,-568400751,1612533956,-1349964723,164286633,1538101330,-2053460774,-1942210092,98200663,119763434,-2140801918,839730913,1399002037,-108338656,1787950379,-313494569,-1009324121,-525900013,-1974604936,880898115,-479192816,1953952858,-1096632005,-1944641937,-719957841,-65208258,67685955,-663823710,171998816,-1091688431,1043882673,-39592373,-2128695357,-1883495504,-610274251,-415351292,1569132130,-803687158,-754056794,-956878450,-82140318,1202986081,-951706103,-1574334565,-2116302265,1163277812,-1279097877,-1923635399,41404154,1116838259,1247089061,-1464709073,1336632431,78601681,-1631136210,-1971235977,1400468241,-337726983,1977040339,233058011,519657119,982875541,2041538784,1259623569,-1724848016,-563778251,-1002666547,1727769863,-204988291,-336442130,-753646637,-1510237599,-928207313,356149092,939572740,-438116038,-882163393,635618442,1198600594,1633277227,-1869918841,-512087512,2065295848,192044822,-2112169922,1052188838,-683209964,-2005401426,596346053,-344035730,914283317,142052971,1325714001,-1862894942,-2106164700,-1937043148,-2136897376,-1645875745,1372834558,642916998,-902835027,-1312705453,519608517,1295882519,-1396801586,2142799741,-1724084828,-968466763,289688202,-85799693,984529048,-1826521790,-13321723,990739779,-241755724,-2051220891,-1986307554,1508142325,-8397201,-995289205,-598896756,1452642296,-755947771,938687257,-1931350428,-1060019668,299437642,-868065704,1127498591,-2080837064,1882756299,1700509329,-508698784,-622514970,976628141,-640054970,992922987,-532124066,-933094206,1371303136,-471052362,-421287915,1392817943,217215233,-124083298,1910228473,-261194233,-1323262619,1884514532,1558573285,890144707,2008719664,-1195027644,1765983946,1095851122,780558250,-985521083,2141359671,1077114947,598180981,2051998167,-551549895,492563429,-1886661904,-81747409,-1890202972,-1899970050,1931044227,71412410,608580519,1270323063,-1693824836,-29759362,-747468549,288574878,326896558,1280116869,-1326321727,-212104954,1369335837,-259554864,-641636459,-47556114,-1595985516,-362039313,54458519,-1574239398,1294619859,1301025410,-1854996105,562208371,-991332332,707075547,473299563,427792538,-1684703191,639073891,1476146140,-1499000707,853137072,2116840572,610297822,-211387157,286033020,-1953825994,-929860927,-1112859797,-2090325302,1323260097,1803739801,-2081666842,2142553437,924832897,371998682,573805495,1578925489,-2103961828,-1062532528,466856661,834204864,-420183010,669568234,-703622146,2004035203,466697950,-27866795,2032867131,1897928509,1311851370,2049608300,-1955797064,-308084428,-768574203,180292847,-1058305912,1453434102,1102877808,59961648,-412111301,1866455391,-1521721271,2115853604,-782134283,-1648647169,-2074920307,-1390328574,-608786029,-1812194644,149327814,311605058,329938139,-203467378,-690362815,-1615633829,501100062,-1234361568,-1933385423,-674473833,2126205178,1241859874,-2080459881,-351851058,-655715828,-526425074,-1731209157,-96569574,-1105212657,688685334,1073933004,-1003710150,-815194903,694246560,11345247,-284312172,333353864,-1122108868,-1540052702,769379001,152411219,-2032181851,397498187,1662563418,-1971290725,-194032643,-999848665,-1146910741,26243304,-39168674,-583363326,84049483,-444597994,1236849117,-902352332,2085022039,-282599647,1362847317,-143785538,-1375871610,-1912054767,1558025265,749043571,1069624376,1612915217,1679157714,-253857608,-538614175,1621231062,-923147944,335377872,-347394105,-312005425,392534789,580671344,652298597,-276095527,1277877384,333082475,272486766,-758949564,-1641638186,-1212841883,-1837025199,-1339653796,-1095845522,1878698763,2015124110,-53651219,1777159788,-1362513079,-131955137,-268915318,-1541175723,1310192412,-1885346433,1190659833,-771470694,103535504,1040780209,-1053438552,-912534937,1343561092,-43088557,-2019272463,-1322248566,861745270,53995197,678883992,-853276256,130562091,-621336964,-79029582,366502747,-1557336015,-1095230691,183553767,-385702334,68051295,-950085360,-409745732,760189898,105517312,-841751432,1339589906,-820139051,112126539,-1434478354,-290370108,1132472535,-2105527968,137856566,1567227669,-325294144,230124768,185075374,1081431728,-1075636795,-493236007,1187539905,1533221635,1837156592,-1949262313,-1363215828,-2028719217,-193926546,760317025,1195175822,833203475,-656371148,844907521,953571597,272205171,-227593643,-1912759325,-1796113566,-1766042665,801021449,5851467,757812377,1752809777,-446821090,219264272,-1369980201,-416357156,-1909660754,1208763672,102851473,-1154513383,930796551,-94373976,-315940231,-723220485,1792597398,-637713765,646959361,-1037238222,-1390941947,400073885,-295736270,1790479413,-1405188720,669242947,-1521452027,-1194155806,747348632,718927627,-791111549,-1662501698,-1977593605,-147229499,-1203704044,-632100705,752108324,-132179088,1044488813,-160600961); -/*FRC*/Random.twister.import_mti(114); void (makeScript(14)); -/*FRC*/count=269; tryItOut("\"use strict\"; g0.s0.toString = (let (e=eval) e);"); -/*FRC*/Random.twister.import_mti(131); void (makeScript(14)); -/*FRC*/count=270; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return Math.tanh(( ! Math.imul(Math.asin(x), (y == (Math.round(( + (Math.cbrt((((x === y) | 0) | 0)) | 0))) | 0))))); }); testMathyFunction(mathy2, [-Number.MIN_VALUE, -0x080000001, 0x07fffffff, -Number.MAX_VALUE, 1/0, 0x100000001, -0x07fffffff, Number.MAX_VALUE, -0x0ffffffff, 0x100000000, Math.PI, 0x080000000, 0, 0x0ffffffff, Number.MIN_VALUE, 0x100000001, 0/0, -0x100000000, 1, -1/0, 0x080000001, -0, 42, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(272); void (makeScript(14)); -/*FRC*/count=271; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"(?=$\\\\W[^]?$\\\\s{4,}^|[^\\u00ee\\\\w\\u113e]*[^](?![\\\\w\\\\0-\\\\u0059\\\\W\\\\n])$+|\\\\2\\\\B{4,})\", \"im\"); var s = (4277); print(r.exec(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mta(557322397,1122688773,1092236460,974977556,1082374166,-1087932090,633492186,1534689042,-2000748921,200061840,49870605,22474484,1038333602,-837851652,-49765575,-1727263895,-34716432,603878786,-551363892,2033469783,-729568704,-1600872816,-1735736971,1263806619,-2048070154,-1764654888,-1113000346,954218999,1202557247,244003985,1855878125,-699843564,-1371389883,2061009169,1786810826,2068931786,846441768,1490401621,-818400272,-1482670901,-518026247,-1835511101,287665041,-2044424621,-1821674670,195478410,1014217770,1030664129,653399449,-53981673,-1354896511,-2137579054,1242759005,648795051,1670762278,1753613702,-1009531949,-160841027,-220369497,-1757024590,1611764559,680999908,941578090,-657721556,-1741654342,-538710186,-193656079,-1721274258,-1514563514,249652899,894419155,-209298221,-496146372,-1276334846,395947870,-517846514,936325743,-1817150489,-416730967,144556282,1312265134,-191806171,921854250,1774819453,-1530961273,-1384075089,1608201636,-1849985984,-876336766,-1857071313,-163281688,-135647898,-1227973622,-45827128,606359905,690209158,1778485568,540343017,1318023443,-1187209653,473159289,-1794061060,-1544452406,-1152348425,1101901756,868320627,1453357201,-376569413,-945546022,2082459335,-951271074,-1887130353,1003027671,-1487359749,-1848765641,1446461072,-1096551776,-1748841775,2051526575,-1746415343,452163681,-1708454468,1922940461,1449494700,-845571625,468369244,-222663750,-389054167,1244856143,1135414039,919380981,1444795636,2076376505,-745978523,-1990415681,-427822068,830913240,-868846167,1858136376,-596607109,-1908078503,-875067667,499560549,-1079270461,-146263647,1851020235,1677724955,487160534,1907202620,601953707,1229151944,-1627440245,1107641472,1487416685,-546792737,69666821,-1692467685,1657647675,816366088,-1040554303,-566543802,-1094439982,-2047614255,-912909554,1507842322,1011962334,167493332,1772598150,1532395944,-1810367803,-1032204255,-1130987114,912127777,-74043418,571482518,-1695675709,1468930644,-727743770,-1819095833,-294455715,1401704175,-1400937725,-376250314,1041051247,-1617176098,-1648381402,-13766131,1000648515,1692327776,-478920050,-1734040459,871255891,-286045924,-1276630660,-1405197113,-1998656666,1496906804,535268496,566072611,1118740686,-1627998229,-1289090084,121497885,-381905412,777333133,-1707430861,1099517363,874008355,1293908561,1907216434,522781768,-1343374369,574518494,-614289038,444051063,-104360528,740988554,-1172884868,-1649972016,-1470359600,1320808479,1762328520,240405781,1623095570,-1463181820,-1276198643,-220475674,-2047262458,1520306791,-1404351124,33293083,290562596,1734781876,-500957906,616484291,-29853276,1057727145,-986420748,1527568537,-1660902026,-1388668915,1574343085,-664732169,-2014819520,-284602174,-1570847137,-204899230,1851269549,-1257377810,-129616071,-187139785,2147008005,1246923005,473618516,1347691122,1940579439,-1103133810,-1674519994,-1498227270,956633287,294564958,-120861898,-1803159713,-272244945,1794901008,-414557704,-993690407,-1391546152,-1681999296,-750150026,-1292986113,746680382,-118054864,1629395822,853036263,360458284,-1854698440,-1280348649,703638573,-1654919527,-301253801,-972115761,-536846233,-1025690359,-745696340,-1033256862,7661532,-844971207,1770650062,86398133,1141359617,1483984817,469951753,902615089,533268990,-1892373581,-1156908673,119273020,159059735,1751160971,2094425105,1263979564,-467171494,1162816596,-992559060,707326782,-1207912976,-318570367,-904700526,-1159872743,-696463719,1428587062,-809029426,618994200,-69232440,-1107585902,-16424699,1534314273,355229932,-787729021,-351232860,-2139745405,-1824354216,72432842,2004953479,-1756450559,-270765866,462818943,706414933,1731882896,324008323,2005680861,408609201,-778644800,844549341,1294940578,1258963562,-1839730493,-1133745946,-1486952885,-665392194,-736733504,932470861,-642050196,-932080600,-1056317414,1362420866,-847483804,1043445918,-1957334507,-1858439117,-1645615429,-1494461547,-962543097,714192576,-1162050904,1659171941,94790799,-2102595724,950533714,1753873502,1088181387,1790205337,907939713,-1633656409,-1221324369,100921107,1528082067,321024123,-461109493,1680213088,104224701,1693640950,159144200,-1202380417,29048538,-1937014329,2110153988,2125928541,2052131166,-357128577,-1116710696,-430058084,-240342501,258373423,1806055447,-1578072079,1612081935,1166240042,1246768759,1974361835,571619416,-2110626773,-1039102009,-4326524,1986123909,470083226,1678676505,-929197895,77917032,-985158773,-1342111187,852310209,-1481290539,239185499,-2113469782,1986831380,-1000934322,-1656196862,206865165,-1498262324,2108756387,-287126084,-283838453,309528545,-1546880926,684581987,918436023,-1175451380,238238610,909826991,-1742866105,1837814642,193967258,42831600,1331184918,-912336513,-204022238,167217810,-1537913087,1263654776,1680856682,738178923,-1782055014,-622875299,1695863471,58314201,1859722285,-651540007,-273966093,-1041954299,2103329300,1520994746,-1312466852,1997967989,-185254034,-1383985179,2098035699,-578202295,399198085,1408757297,-916927471,1537006146,-1897687364,-764182521,1391093174,-921066947,-1672850018,719056702,-1282906498,2114010559,2140068848,-2013691896,-1142347513,-1140658925,1335349647,-371684997,-1486395327,1019625200,-1758966688,360283839,1583598756,-1118936231,424695149,1390514120,248679183,-1253177720,-1962711551,571355441,-1000584107,-1908599716,-156948849,-1502633958,-900201439,-588663725,1615315872,1291439609,1031112354,628153028,-153795330,-226596989,1155671419,1833796312,1182797153,-215878737,-1234759753,125040655,-235332337,1665072419,1124193878,-1605957949,-218071033,1442357947,-189100638,1916415749,-1809320061,-191632841,-1630905598,-1833342590,76522961,1970330967,-1055707120,903007195,502943801,443203796,-1230389370,1251192458,977104017,615808927,-1402596463,-82400319,2102761824,1747991103,795578951,-1354667377,-1546965063,-594557750,-940971421,71718501,357020802,-1031043310,644843301,1919426998,1115716700,1568575942,-639167680,1615833269,-837571058,-1924324802,1892115475,-1510351917,-8183914,143405261,-1127704809,-1483525460,-837886775,76924967,-53067896,928032895,-2082648035,-330691835,1293621268,-1659361289,-2104439494,542606371,-709836636,418699160,965089666,445298252,279731787,-848639515,-107785193,1573925147,-1858776511,594686750,-707251296,1621675755,-1456943343,-94261828,2071357980,1521973476,689587065,-1300216685,-1760959942,1288396012,590410764,-1457209122,519025055,76463602,1947304395,244221373,-1041969741,-1269714819,255787306,-401958813,-1718662136,-1147285983,-254990303,-1907555739,-1615573701,-1962593556,-30055185,-87795348,121075277,-283122377,-1790936313,-1291808693,-971580846,351712795,1957649154,-1741745685,-729118203,-815494963,-744762308,-1948502757,836628534,151709156,2111078546,61893998,-216330014,-1338239299,1694472086,1746582599,1070127409,-264800745,1451662931,-337389292,-209258170,854247899,576100098,-1276690689,951628022,546424461,-711959029); -/*FRC*/Random.twister.import_mti(133); void (makeScript(14)); -/*FRC*/count=272; tryItOut("\"use asm\"; v1 = Object.prototype.isPrototypeOf.call(o0, v0);\ng0.h2.set = Math.ceil;\n"); -/*FRC*/Random.twister.import_mti(180); void (makeScript(14)); -/*FRC*/count=273; tryItOut("var dsrypx = new ArrayBuffer(2); var dsrypx_0 = new Int32Array(dsrypx); var dsrypx_1 = new Int8Array(dsrypx); v1 = a2.every(f2, o1.i0);print(x);"); -/*FRC*/Random.twister.import_mti(242); void (makeScript(14)); -/*FRC*/count=274; tryItOut("o0.m2.set(b1, g1.m1);"); -/*FRC*/Random.twister.import_mti(265); void (makeScript(14)); -/*FRC*/count=275; tryItOut("e0.add(v1);"); -/*FRC*/Random.twister.import_mti(278); void (makeScript(14)); -/*FRC*/count=276; tryItOut("\"use strict\"; \"use asm\"; h1.toSource = (function(j) { if (j) { try { v2 = new Number(f0); } catch(e0) { } Object.defineProperty(this, \"g1.o2.v2\", { configurable: false, enumerable: window, get: function() { return undefined; } }); } else { try { a0[0] = e0; } catch(e0) { } try { s0 = ''; } catch(e1) { } try { /*MXX1*/this.o0 = g2.DataView.prototype.byteOffset; } catch(e2) { } (void schedulegc(g0)); } });"); -/*FRC*/Random.twister.import_mti(349); void (makeScript(14)); -/*FRC*/count=277; tryItOut(";function b(d, y) { v1 = (i0 instanceof h1); } ;"); -/*FRC*/Random.twister.import_mti(439); void (makeScript(14)); -/*FRC*/count=278; tryItOut("mathy3 = (function(x, y) { return (((((Math.min((x < Math.imul(Math.fround(( - (x >>> 0))), x)), (( + 0x0ffffffff) | 0)) | 0) >>> 0) ? ((( ! ( + x)) >>> 0) + (Math.fround(Math.asin(Math.fround(x))) >>> -0)) : Math.fround(Math.tanh(Math.fround(Math.acosh(y))))) >= ((Math.fround(Math.round((((y >>> 0) - x) | 0))) && Math.fround((x ? ((( + mathy1(x, ( + ((Math.PI ? x : (y >>> 0)) > x)))) >>> 0) | Math.imul((( ~ (y | 0)) | 0), ( + Math.cos(( + 0x07fffffff))))) : (Math.imul((Math.fround((x + y)) | 0), (x | 0)) | 0)))) >>> 0)) | 0); }); "); -/*FRC*/Random.twister.import_mta(-596423356,-401569041,430610018,-452561024,-1349337458,1613500844,-1979059364,-1827249721,-940483742,-300388531,-990018764,-2084984237,726872563,1094628751,-1472224056,-1877610556,-1091845430,1038248583,1180625942,42742083,1727297535,1824381289,-225337600,885828948,-747292373,861841473,-822667074,-1202456912,-787124351,1742295126,-655212504,-941745553,1077002070,2115084189,1502045199,851862015,547722223,-45894491,-1345553387,-352405254,-1096972909,145771726,1974561797,-2007977044,948773841,1150375855,914014051,-43571098,1402579130,1662274298,1028057882,562600504,-1651106161,1648167330,-48509230,-478311564,1826604861,840271371,424186607,538565445,-2013149076,919880843,-1611817496,840500962,276769883,1691071919,-145059536,-287432400,-1846554111,1786239437,128775927,1307609838,-824304927,1588963600,1861413283,2141276849,-1988044735,-1199724733,1251765106,-1839870113,675509324,2037842340,1773154484,90838464,963497479,-914212152,-1031422463,-1190420334,-1310140184,937136013,1182830609,2115474625,-2005460710,962920428,1349764536,1481459320,-812465974,1299119097,871493709,-798841876,-76448911,851852870,-2019483150,-1064185571,1944646241,-408932820,1500855712,300425576,1931518015,-684356968,1073790298,1448453942,-1909764749,-1533058029,-1442271400,713241227,-820804210,-29255716,609413073,-1629314459,925428303,-990769066,-2024482873,1154668533,815843022,1366101986,-1039867380,1397794295,454367981,1591813615,-320405479,-1599104922,-1517574417,523068050,1431338275,715881690,-40634793,706667866,1859623970,-1100637114,854646183,1520880339,-166066899,1196782556,295798444,-1551595873,-1303631236,-1622802510,1190586051,540305219,1788940946,1448217151,914486900,1526134453,-1778373431,161474597,1795073272,939779367,1816478491,2011777723,1726221419,-1048840197,1952928716,-1585109652,-407110408,1496182385,-1511617662,249131978,1188789789,-1734568412,-144470054,944236275,1186823663,197093423,-1117391161,-649639495,-1119476919,-1677030848,-855556099,1508530038,-1848069951,1883753961,-1306548701,21195090,-1891953504,1389361572,-874125740,-630851629,-1472893617,1858546884,808632151,-1187731733,-968861307,1142075472,-1168502436,-1772607626,147107845,1724489593,-1273549984,628325217,-1618747460,-832507318,1076957692,1443706354,1084189891,917020363,1352614770,878393580,151722031,111044544,-215290462,1387222785,-559265701,1678733657,1478253902,1041233666,583221263,-1092304769,44602811,364351940,-956070238,-1396154482,302623627,-1484525059,-129539921,1509695998,-1754464632,674560168,-30069671,-1067702480,-307321198,-1675498668,1363013435,1096688994,-1408606955,24918761,-863872073,812867495,-1925580568,-456733398,-1227010682,487025388,-740177308,-915445077,-171591305,1069175335,-324497078,2087878664,-1986629078,301273924,-768064887,1867828618,1027851371,-421721721,411972696,-838160826,700530037,-1951715595,39068371,1224140153,1114929670,-1966264449,-601080137,1440453095,-823748519,1420194470,-1132863338,-213722957,1628734453,-1244753755,-569373773,83260361,874387992,-1239537201,-136758160,1528852134,-1546957522,-256504365,-1238508117,1939551227,-1741496038,336809534,454795567,85528299,1394697786,1500700929,-1614804474,-54184821,-1387274738,619106103,-2027400731,-2022248960,-416977560,-121760305,1884079158,1432493665,704258771,-1709588061,-523733388,1774032950,2065616646,1558260238,486988955,-1410615209,-311828772,1453076874,2111635392,1296751237,-1122930953,-1685657817,1878611163,512644704,-1678723132,-9801115,-403281189,1466095797,-1016406846,1276551271,-812040481,-33597624,-531151118,433229204,442882077,1834673366,-540994650,1142933542,77665292,2004111108,22743438,386821612,1650409644,-422759834,-815052980,-1722356975,931118521,1453687050,1192673830,506890537,-1661836084,-503301972,-829141133,1758080929,106871101,-1423224934,-1631229999,1288213904,-1201892265,1747990016,1481644419,1455512321,-1825663881,-86089765,-1422533058,-1756612244,1309598883,-210776064,-986011785,-307136605,-50567345,-1848682304,-1504970744,-117251280,-1465070651,1808496219,-393454254,-1260463244,182942672,-1570155195,-236160631,-2079783139,-582555427,601420503,-1489327589,929958428,-543661857,-642017537,1591170497,-856543645,1803194000,-1697507948,72276697,-449919481,-398389769,-1270534224,-1797764621,-441077700,-1628778525,1143322878,2103136287,-675754906,-1332987584,2141879858,-1590879923,-633833920,-320786601,1222184272,865300471,1244002137,2048234311,-48883467,-893953562,2097928824,1402298124,1668170939,-1660351723,-1237881353,2076257617,-545486784,-1352319824,-1589212091,-426552996,-1203080578,-1135790722,466933115,-880555038,1700474785,-326074304,751483857,-30590174,1146455181,-787153876,-861964059,-1818231493,159545213,1097186802,164689664,1553470576,-612885771,1162011925,630848064,1679482567,-865597527,1011572998,-1527241469,-539369116,-1849733604,-1459988215,1186429329,-1133368793,659586438,446713939,1967659411,653089580,-1069499926,-2069995576,-849272170,-231105310,1892654297,2116373651,-1560613812,438773546,-1786180210,1586358944,1734184532,1094830707,1135693208,-1904669185,-1195159283,-2048534421,-1221213893,2123974810,-1342792431,-981459275,193699297,-827324481,551357578,779995605,-390180098,378752220,5621220,-430011143,1919563780,-367343538,-975677778,-502041264,-1825476242,-847507301,439872206,-730702977,2052935237,75967007,1270473813,841882761,-558016637,-74920155,-1121946384,1447831080,1355552612,-1314419456,1008450985,-1365101691,-130000587,-286341943,484551070,830074807,-1146761427,339390205,914867709,628529378,-1120589402,1452726547,70114802,1635592311,1138682483,1672300237,1433180271,1023286906,-781298213,-816042999,-1196720293,630232803,-1866419448,-829982270,-1829410196,-409867448,-939128501,-1594832480,209379061,139286295,61245527,-2045453953,-581146122,-606115939,-1487788213,1391781536,-1903193071,-1824399912,-1607117589,1447227471,1011031826,1641335578,-732049913,2010910628,1399043875,1639535397,1413352050,-1131466720,694142404,-1747786,268757746,-2136212050,985186914,-804379679,-1868348012,-1306951972,349923859,-1013692276,586654226,-2127260347,-179802816,198666460,1212526722,89632443,-847092030,1571565398,1294033474,198009133,1863981962,2006166940,1893110625,2090332613,-1063315989,-952657675,380623785,886739193,1974383462,1872556027,-1281058387,359733935,721749327,648994553,512619847,122446989,-566674911,2041072646,1287813612,-2135018735,-1855337842,1507733473,897199167,783740778,-1926329278,-1259319147,1748458393,-1586048601,943337600,1889631247,2019936741,802190706,-315731277,-1915128589,-1779535388,1850593421,-1537197676,1908529177,828670323,-419272140,238355215,428826454,841323057,-1004273727,555914342,-1334412063,-2110652525,-1810049416,1879047266,-1539811875,93777006,-593277322,693614198,-969218949,970827535,1666804859,1073333303,-1234286840,1219148949,-1367625531,1894903154,1853961651,567686893,-2040254917,1705082062,-82210166,1571473749); -/*FRC*/Random.twister.import_mti(210); void (makeScript(14)); -/*FRC*/count=279; tryItOut("s1 = '';"); -/*FRC*/Random.twister.import_mti(220); void (makeScript(14)); -/*FRC*/count=280; tryItOut("var ocetuz = new ArrayBuffer(6); var ocetuz_0 = new Uint16Array(ocetuz); ocetuz_0[0] = -7; var ocetuz_1 = new Float64Array(ocetuz); print(ocetuz_1[0]); var ocetuz_2 = new Int16Array(ocetuz); print(ocetuz_2[0]); ocetuz_2[0] = 6; var ocetuz_3 = new Uint8ClampedArray(ocetuz); print(ocetuz_3[0]); g0.v1 = Object.prototype.isPrototypeOf.call(p2, m0);Object.defineProperty(this, \"i1\", { configurable: (ocetuz_0[9] % 6 == 3), enumerable: true, get: function() { return this.m0.keys; } });function x(/*UUV1*/(x.toString = eval))(w = /\\1+?/gyim)(4277)/*vLoop*/for (var ptfjap = 0; ptfjap < 109; ++ptfjap) { let c = ptfjap; for (var p in o0) { try { Array.prototype.push.call(a0, g2, s1); } catch(e0) { } try { p2 = m2.get(x); } catch(e1) { } a2.reverse(); } } "); -/*FRC*/Random.twister.import_mti(510); void (makeScript(14)); -/*FRC*/count=281; tryItOut("\"use strict\"; i2[\"arguments\"] = b2;"); -/*FRC*/Random.twister.import_mti(526); void (makeScript(14)); -/*FRC*/count=282; tryItOut("\"use strict\"; return x <= ({y: [x], NaN: ({b: \"\u03a0\", \"-22\": \"\" }) });"); -/*FRC*/Random.twister.import_mta(-1490746639,918607990,-812309707,-1652685151,220058286,1452385954,-1276263289,-17717596,1479797390,432008395,128511414,1673794710,416376413,-225672392,-264206948,-482814949,-601009945,-391332375,-48920609,1189219168,-2086869062,-949619550,506712615,1638322278,205036570,-1260097180,1437305893,-1326990611,2050776875,1893807204,564111133,626670270,-2087090863,-774775777,1275299721,-1257170898,55660430,288845745,-457174431,1857825567,49242102,530722042,595076176,-538021532,-838335845,-1529301950,-17617447,-313357419,-51705877,-325392017,1611387333,-370740469,-740005731,615170115,-466106316,-1310017055,-413139570,-722652197,-894103323,-1971721783,2057421719,-1978460513,-298237366,-273781144,77330201,-30583251,2095353209,525295200,-856797005,-1264385423,-834267255,-1460342413,1863258476,1211058423,-726520445,2010256561,15611344,-2023931671,51586590,-1721914691,646736412,-525712603,2028487845,-2126938685,1870199089,-899386538,-2110224438,-1552112815,2143618025,-335225089,-154178085,-1248067187,1621738079,-2036608679,-731448823,-920148820,-480353091,-1316378802,-1818976549,-259349606,1877269214,648415259,1148547575,-1234562820,939379428,231192231,1261107911,-1019894259,2130074915,1560166615,-96172480,1363229295,1944878477,1888797007,1552521874,-384910587,-304766590,749742207,1585440934,1651248216,772003550,-756052949,-121154702,-1639663080,-169153017,-86174053,1475528047,-965289207,955758137,1010494731,-261973800,-1651534873,1943383643,-764132012,-1056411542,-803388336,107791758,1456643380,1259127889,2097147436,-1660678030,1575020287,1940804380,-2005188872,-1301138958,-1993853217,-553534899,1214954850,-1647711891,-154877499,-1865017390,-1703645569,1094428357,-1713385881,-1786579889,807992519,1217078414,-226083324,-270698560,-1581787193,-693153624,228590714,1611923927,256511929,889278988,-708518604,1371759180,-1900044504,2044786804,338503702,1989138955,-1356393337,-1210973817,-1592486587,-349773500,-1058552330,-1875083519,-2044697817,540496471,291167150,1883413669,-640070609,1977325718,690709818,-464949104,-1862097985,-1676865361,1818548191,1331275490,-240086149,-34133425,-705107601,-1893266789,-1863025571,-557686177,-1289275312,235685623,1808420265,-86668260,-389839382,1761966634,2039994280,421726408,2103769471,-1551995940,-1741038248,-1742969883,160557744,1823526786,-1649597684,-171313359,1795086980,-1034371579,-365638948,651844750,-349143901,-1182591785,1848818954,1114731639,-1912966252,647348917,-1098035031,-1423999284,1666133683,157248561,-256905778,162575617,20390914,1458490350,-1186828164,-747703541,-57960980,1983820819,1021336274,658967311,-411404406,-661720121,20189634,296186371,1136640158,-1139853746,-642752338,512217489,1070021763,779691045,-884879494,953895780,-2024284497,-1885373184,-1373158468,369931939,-1953378576,511853944,434935305,-1746735666,-1210814130,-331607103,-105052501,-1742079779,-1566328750,1304427391,-1155717107,1190420482,-1121275011,2070173410,-84090326,-1911162983,-345133357,-1672620937,-713518762,77461599,-737734761,652152954,-2061519903,-2134721338,-317808260,231300953,-1575645233,153344553,-537061360,1856202588,1890756732,711888459,-825274733,1633481604,-984279578,1830011731,738602128,1097384411,1957026407,-1407903384,1997095341,461040661,79884130,-1393106545,1092350213,547836543,-1105056589,-601211544,1384150767,1717558768,1127871249,-80775099,1985665726,-334276564,1040013822,653293344,-1593021000,878805097,-1776525801,-1904322829,1652597459,752483003,1758134904,1371897812,1584426376,319241747,1208697451,-882660823,276980006,-898459757,1079813848,-7678265,-859902610,-746175651,-1849420579,-886012904,1867079193,757153517,1968886177,-2062775857,1346922818,-664505360,-1986161468,-395876728,1568488496,-890391396,-197282778,541140537,-1917916437,-1644599744,-961644845,-56943416,1002414773,1255432887,-614919598,376706904,-1692177728,1619497332,1750641046,2049123626,-1603272424,-1317336531,-1443035167,-4115703,-1016965795,-739580411,387193760,-714588281,552620639,-1359661876,207005015,1022381986,841673511,213774478,243235257,-188484527,2096798825,-2031299154,-2080008275,1084225356,954717216,-761318447,1774533373,-1111505214,1806365522,1236624939,-445951846,-1759681355,-1709933706,843062715,2024456811,1779067679,-1678790488,-2141395430,966828270,-1012593736,1896499320,645685833,944905591,1889480864,-1130402187,-1193744876,-1095023304,-355264128,-115212464,-1472765083,-762469513,145008674,-762729100,-544114567,-1024700734,1750620020,128993876,1144218883,-991988704,1055170446,670040829,275954386,110243896,1963875333,-1167070673,1172339165,-1177750178,-2017333040,2031216322,1054703180,-1025394722,786078710,-1481804659,1874030832,235219997,1861137201,784242702,1864513065,-728136156,1551317071,-1834174337,1801136776,-1306077324,-1034401164,-44311713,323845894,-135228585,1095650750,-1580903463,1744711451,1928876797,961995847,1442850547,1234728650,900526360,-888135594,-70501581,142748737,997046790,1821707559,-2138057693,-1343215985,-435360423,1770760308,1712953697,-1023333660,-1340546841,552567502,-925172274,2083219493,143962081,1041876398,158470238,-1307335547,-594561910,1001851301,1725841607,1364891527,-1617877450,2011228641,-146370528,-644185508,-1264572622,1190273153,460603394,-1448221651,1238561228,-825268712,1881785746,-482560293,-1522717757,1874319629,-2050400088,-1523002116,402477909,25324112,149996684,-1490207533,-217060407,-1966754848,1433157119,2081965574,-928134881,1476538168,-1793358759,-1265879323,262254749,1874327962,1331180502,1463010167,371635246,-895640764,-727921620,-2029429480,695506978,1441359002,-1525199648,296448807,391959828,1849852450,-1878670969,-1242585330,-508660251,-961603817,102715237,-1943035696,517682935,-787638038,286303499,-1416624702,825950780,-271403687,-2122829707,1785519001,1477567134,-1950723457,1239228719,544036452,-1786063996,-1684902843,-1804200696,1561885848,-876274232,-981693086,-1745002498,-1924910416,-1893437843,-1961662335,707139705,-1028408075,-1316160344,713217962,747373676,899113801,-523575557,371314498,1242268029,-1687271491,-357986705,1106882607,1407217134,989368440,-1168022871,-392415953,1210393823,-1224398916,-1511615565,1239019320,-1311818076,1121442916,-1094361343,-248803283,2133277645,819637998,317987373,-1893572293,1233669183,-823464555,-1903697637,225711842,1313430472,1243890859,1992606571,-1376655159,-797253586,1833779101,1788883291,-1119726026,-103794653,552357073,-1882947067,600156120,-1507820136,-1351990848,1018276764,779176014,1515798025,1258882016,1949315423,-2050357646,-1189278091,-1547092783,-485210876,2027803605,-493639657,474965363,355182722,-46109681,-1251090252,1511499509,1280858343,-1191334425,1770421486,961835214,1015826541,-1279607740,62590231,-1835749717,470417028,-656470719,470923904,738269520,-803231235,1577702384,687399160,-1084952022,-661510084,-1940412691,-1471608076,1076554702,-556328282,897369564,585253334,-865338529,-681586491,251407141,581784258); -/*FRC*/Random.twister.import_mti(113); void (makeScript(14)); -/*FRC*/count=283; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n return +((d0));\n }\n return f; })(this, {ff: Map.prototype.has}, new ArrayBuffer(4096)); testMathyFunction(mathy1, [42, -0, -0x0ffffffff, Number.MAX_VALUE, 0, -0x07fffffff, 0x080000001, 0x100000000, Number.MIN_VALUE, -0x100000000, 1, 0/0, 0x100000001, -0x080000001, -1/0, Math.PI, 1/0, 0x100000001, 0x07fffffff, -0x080000000, -Number.MAX_VALUE, -Number.MIN_VALUE, 0x080000000, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(177); void (makeScript(14)); -/*FRC*/count=284; tryItOut("\"use asm\"; testMathyFunction(mathy2, [0.1, [0], -0, undefined, [], objectEmulatingUndefined(), false, NaN, '/0/', ({valueOf:function(){return 0;}}), true, (new Number(0)), 1, (new Boolean(true)), '\\0', 0, ({toString:function(){return '0';}}), (function(){return 0;}), '', /0/, ({valueOf:function(){return '0';}}), (new String('')), null, (new Boolean(false)), (new Number(-0)), '0']); "); -/*FRC*/Random.twister.import_mti(211); void (makeScript(14)); -/*FRC*/count=285; tryItOut("e0 + '';"); -/*FRC*/Random.twister.import_mti(220); void (makeScript(14)); -/*FRC*/count=286; tryItOut("var qhrpwr = new ArrayBuffer(16); var qhrpwr_0 = new Uint16Array(qhrpwr); print(qhrpwr_0[0]); qhrpwr_0[0] = -21; var qhrpwr_1 = new Uint8Array(qhrpwr); qhrpwr_1[0] = 13; var qhrpwr_2 = new Int16Array(qhrpwr); qhrpwr_2[0] = 3; var qhrpwr_3 = new Int16Array(qhrpwr); qhrpwr_3[0] = -12; /*RXUB*/var r = g1.r1; var s = s1; print(uneval(s.match(r))); print(r.lastIndex); yield; /x/g ;continue M;s2 + '';s2 += s1;h0 = ({getOwnPropertyDescriptor: function(name) { this.b0.toString = (function(a0, a1, a2, a3, a4, a5, a6, a7) { var r0 = 2 | 6; var r1 = 5 + a1; var r2 = qhrpwr_0 ^ 2; x = 1 - qhrpwr_0[0]; var r3 = a6 % 7; r0 = 9 % r0; var r4 = 5 | qhrpwr_2[3]; qhrpwr_3[0] = qhrpwr_2 | 4; var r5 = 8 - qhrpwr_1[3]; var r6 = 1 & 4; var r7 = 8 - a0; var r8 = 7 / r2; qhrpwr_2[3] = qhrpwr_1[3] * 5; var r9 = a7 ^ a2; var r10 = 0 % qhrpwr_2[0]; var r11 = r10 - qhrpwr_0[1]; var r12 = a7 % 7; var r13 = r10 / qhrpwr_1; var r14 = r7 % qhrpwr_1[0]; qhrpwr_0[0] = r13 ^ r14; var r15 = r9 * a1; var r16 = a0 % r9; var r17 = a4 * r9; var r18 = r17 & r2; var r19 = r12 + 9; var r20 = qhrpwr_1 & 3; var r21 = 6 | 1; var r22 = qhrpwr_2[0] - 9; var r23 = r19 + r20; a5 = 1 * r2; var r24 = r3 + a0; var r25 = r18 | qhrpwr_3; return qhrpwr_2[3]; });; var desc = Object.getOwnPropertyDescriptor(t1); desc.configurable = true; return desc; }, getPropertyDescriptor: function(name) { for (var v of o0.h1) { Array.prototype.reverse.apply(a1, []); }; var desc = Object.getPropertyDescriptor(t1); desc.configurable = true; return desc; }, defineProperty: function(name, desc) { /*MXX1*/o2 = this.g1.g0.Promise.resolve;; Object.defineProperty(t1, name, desc); }, getOwnPropertyNames: function() { i0 = new Iterator(t2, true);; return Object.getOwnPropertyNames(t1); }, delete: function(name) { Array.prototype.reverse.call(a2, f1);; return delete t1[name]; }, fix: function() { v2 = Object.prototype.isPrototypeOf.call(f0, o0);; if (Object.isFrozen(t1)) { return Object.getOwnProperties(t1); } }, has: function(name) { a2.push(this.g1.e2, b0);; return name in t1; }, hasOwn: function(name) { a0[12] = v1;; return Object.prototype.hasOwnProperty.call(t1, name); }, get: function(receiver, name) { b0 + p0;; return t1[name]; }, set: function(receiver, name, val) { v2 = t0.length;; t1[name] = val; return true; }, iterate: function() { print(qhrpwr_0[1]);; return (function() { for (var name in t1) { yield name; } })(); }, enumerate: function() { (void schedulegc(g2));; var result = []; for (var name in t1) { result.push(name); }; return result; }, keys: function() { this.o0.v1 = b0.byteLength;; return Object.keys(t1); } });v1 = Object.prototype.isPrototypeOf.call(b2, this.s0);for (var v of this.v1) { try { /*MXX1*/o1 = g0.EvalError; } catch(e0) { } try { v1 = g2.a2.length; } catch(e1) { } try { h1 = ({getOwnPropertyDescriptor: function(name) { a0 = [];; var desc = Object.getOwnPropertyDescriptor(o0); desc.configurable = true; return desc; }, getPropertyDescriptor: function(name) { throw s0; var desc = Object.getPropertyDescriptor(o0); desc.configurable = true; return desc; }, defineProperty: function(name, desc) { h2 + '';; Object.defineProperty(o0, name, desc); }, getOwnPropertyNames: function() { throw h1; return Object.getOwnPropertyNames(o0); }, delete: function(name) { this.g0.v0 = new Number(4);; return delete o0[name]; }, fix: function() { i1 = a1.keys;; if (Object.isFrozen(o0)) { return Object.getOwnProperties(o0); } }, has: function(name) { v2 = t0.length;; return name in o0; }, hasOwn: function(name) { v1 = r0.sticky;; return Object.prototype.hasOwnProperty.call(o0, name); }, get: function(receiver, name) { p0.__proto__ = t0;; return o0[name]; }, set: function(receiver, name, val) { v2 = (g1 instanceof s0);; o0[name] = val; return true; }, iterate: function() { i2.__proto__ = s1;; return (function() { for (var name in o0) { yield name; } })(); }, enumerate: function() { /*MXX1*/o2 = g1.Math.atanh;; var result = []; for (var name in o0) { result.push(name); }; return result; }, keys: function() { Object.defineProperty(this, \"t1\", { configurable: \"\" , enumerable: false, get: function() { return new Uint16Array(t0); } });; return Object.keys(o0); } }); } catch(e2) { } v1 = evalcx(\"(eval);\", g1); }"); -/*FRC*/Random.twister.import_mta(1186709801,2048302511,1158282594,1422803228,-1334432869,-1008215701,532478571,2126179487,698342982,3934118,-1449646614,93014877,-1901728158,-1459317535,-1766373686,383301388,-962405215,488460873,1276068108,-890704259,1642161915,-1137504891,-1470079956,-2087891332,468074374,469037276,-875728596,-1676482792,1558651702,-20241008,-436651305,-862189845,682670556,-56118284,-917748227,-142799307,-1949363097,-739796030,-882112480,-1512866329,1638981334,-2082575660,-1711041446,-44408712,777538992,-1807383861,-600445140,1137004093,1127886847,-594190618,-1175654214,90018501,-1824484259,-398804144,265775518,-359410205,-988320694,1434990713,-655648301,-1149154711,98352021,811134175,1115438583,946082149,-249405329,-476828610,1645555191,2137860420,1120941118,1198165680,439741127,-1707089224,1841143008,853431332,98101545,-766050742,1551641409,1967616272,-964986525,-925462711,-2016337892,402403596,-425727781,1873096522,1767375081,-1095998131,-635715362,43550273,-738654257,1157245975,-847694514,1350794159,904750994,1771591178,2047079643,1694196886,-1571383153,1328350813,-525911892,-1482913576,1493627998,2033559355,-1692852749,1543054723,-952719093,-830087122,2124672261,-1420392216,778375046,1658099965,-1430327421,2071653000,-1058335282,-1140328858,476768303,-590890253,1088906639,900876117,2027387919,1888489659,1826855900,-910866672,-279811175,-1808190938,1859694184,293752899,-194776766,397125087,38610804,293036536,1028062257,160950061,2076000095,-780526491,1764481108,-482132786,666070189,-1872285202,-2038144873,-107572000,-13668918,-1078597438,-1049652182,-966078519,-1934377697,664536120,1197029075,-1037160212,540545614,-994039414,785756302,498476613,1401956271,-954165995,-1514814107,1311027094,-174396357,923566795,-1482580155,-297303637,-1605184303,1291034888,-520472633,2093460272,-1391023134,-2030929884,386278668,881210742,-1679211952,1230867443,1942260198,672457149,1155246533,-992456143,1646072544,101771309,-712386761,744077944,771819442,-1447431032,2111261235,-293567148,-1380978916,1036133807,1981856658,-1778402405,586675358,-521289847,124981350,-1937782992,362204650,272248224,895178179,-824568156,-2035417177,2018434626,1978738976,-432405382,1796631416,1453036892,1989497746,-1630782900,1167857133,384781307,-891516364,-680188108,-1190948684,1379901512,647584514,-1794032154,454224140,1605983620,772360787,-893142789,236021,-1152712743,1293768062,828194850,1629554272,65710084,-941957186,1345164414,1866809661,-23247673,2037033975,-1866003038,-741988232,-1966036646,-1713453408,916770958,-2011215263,303402756,-1160376508,-880828556,1821970764,1464512156,64522002,-67204772,-865464637,-1101072084,-1419992940,1437946338,999009232,1029430864,1042018601,-941631265,548284197,906843913,-561285603,123404337,924771754,-2037903286,166637948,-1549649458,1155892563,1154750332,1296916871,-190940996,-1835735927,1952134919,670806159,-1544528595,597516666,-1604102459,-1691400945,-1904739445,-254741803,10191284,193885011,-666080132,-418516486,892041749,1732999734,1233221657,-1624256916,1173831406,-454820161,-1047074895,-1319803618,-1566304139,-36210166,-1849739109,1786723639,-98765822,-1321763609,115031728,1948080279,-1443129351,1141848368,-560336185,1333142958,125605003,161057558,700780121,-861135229,87641600,1836723657,891234918,-2022208497,1260813060,475737880,748888292,971040813,882902965,-1758196722,252547896,913463972,-877147594,919161748,779428994,829471988,-1976736654,334928026,-1385931456,-1109968063,-1188375085,-1996789538,2062751267,670027410,-915533942,-1691213812,-30333587,-299586196,1276245532,-10017143,1587105942,2003218349,-385130186,321273614,410544969,380616872,-1846830935,592846543,-350722974,-369604833,-472730927,1989574443,1993419010,-1518710519,-911131334,-1763090360,1130619109,1933280229,1764235079,-650861617,-111156938,135515805,-1507487978,-1341081370,982406434,1943073947,1954969588,-1039562229,-89120087,-1080918527,-279903913,1769308260,1191427452,861222319,-1613224943,2025275833,-1760255466,-229977962,-361855160,-872455390,1244591451,1109331664,1107828611,-607463271,-117351174,-1058905609,-904758638,-1494996303,-486917326,-660169184,-459068588,2002971920,702961585,-211168455,-2053341074,212996691,870761325,543248456,501341875,468447977,-1893517501,1314840343,400436016,537996103,796657438,-1745741775,676405885,1109774158,-1454660912,-917520489,-1269573762,-770367090,-1173575617,-706786408,1481766464,1069708889,1037883412,-624131626,-23679522,-1571387458,-225233261,-1330311078,-907066581,-434262600,-1592315588,-1347750362,-572223879,2008450540,1793156454,1554134235,-2138997,-2101508925,777047047,-336780103,1023700921,-999950312,-1407016241,870388963,-641028746,606942201,1953730808,-1928579400,-115195311,-918261610,574298565,1249134426,1911707877,-2069936004,915949639,1848362080,-231603186,-478693511,-787680442,1599972991,-52905967,1127954186,1329212185,-1037330438,1509289467,832979611,-239450371,-1848195071,464302341,258592075,-1951813351,-1713824401,813607708,-1444442768,-792870314,-331484272,-1379967257,-1819853610,-811960876,696134154,768378006,-1528966990,730408129,1900880840,-556728588,32306978,1482354517,-1195159819,488910322,847717978,-921888813,1497713946,1869213242,1606195338,1877618630,1974080290,-638050534,1174487775,-1023469994,849873593,-1417196359,-1951536200,-1641097669,1504195693,394541010,-2025302481,-180137477,-289531774,-502752804,-1085485517,1740048275,1935733102,629350229,159991449,789430733,2029549156,1600091904,-2002455925,-931310733,261757686,655365148,1346832085,1249942789,1809099609,-1723700317,997515501,232307403,1731448129,1172164249,1928918068,513339018,-2044951426,2126163371,362827574,-1824441532,-701494726,471215184,-872122351,-843647544,506838585,748217414,1820320007,27146592,181100967,1107835473,-1453483674,-14522374,1526432710,539956054,-1383105874,1856051562,2133665773,-1023245765,825445363,936632807,1123100561,2074021414,1429728750,1686515281,-240045941,-367359332,647693265,-2053730642,11435664,852760547,-1316814550,-1653354485,995312524,-225647088,211853823,443971022,-275263136,1792080606,-1831779486,-1410381967,1773339463,-486008757,1927221576,-1313078336,302559855,1605635605,837758244,-709835896,-397190061,233912532,1357601508,1760083066,-555328373,-315449645,-1030063443,835826215,-298269992,1671304044,-1366337187,1113605852,-1856741288,533237537,-2019360145,-1649332928,1157774872,1051605668,1727468430,-1800338707,1351575436,16725440,-449000078,-1302574080,-2034001701,-1447097052,-1030732783,-1218212188,1277488542,1277520657,-1789910021,-1798443827,1546022087,-534272364,-2083215556,621010989,468586995,-1120665965,196581826,-297489466,1746493835,-1547545045,-1385260178,2058504421,1485857275,1185650650,-768101991,1142593448,1665622126,19400900,288923214,-2074754282,156294909,-1035020418,-844822864,-310932582,-1299706534,1722377381,-516569227,-450506471,-1718472317,1749053893); -/*FRC*/Random.twister.import_mti(481); void (makeScript(14)); -/*FRC*/count=287; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Int32ArrayView = new stdlib.Int32Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var d2 = 4096.0;\n var d3 = 1125899906842625.0;\n var d4 = 4611686018427388000.0;\n var d5 = 36893488147419103000.0;\n var i6 = 0;\n var d7 = 3.777893186295716e+22;\n var i8 = 0;\n (Int32ArrayView[((let (y) (eval(\"\\\"\\\\u5F83\\\"\")))+((4503599627370496.0) != (8388609.0))) >> 2]) = ((i8)+(0xfa82cdfd)+((0x0)));\n return (((0x9aa2b8f)))|0;\n; return ((((0x784210dc) <= (~~(+(-1.0/0.0))))))|0;\n }\n return f; })(this, {ff: (function handlerFactory() {return {getOwnPropertyDescriptor: (let (e=eval) e), getPropertyDescriptor: function(){}, defineProperty: function(){}, getOwnPropertyNames: function() { return []; }, delete: function() { return false; }, fix: function() { }, has: function() { return false; }, hasOwn: function() { return false; }, get: function() { return undefined }, set: function() { return false; }, iterate: function(y) { yield y; print(s2);; yield y; }, enumerate: function() { return []; }, keys: function() { return []; }, }; })}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mta(504321591,-144984791,1916196558,-1091447989,-987265922,203050044,1489201998,-1231460195,-225626816,-1535573329,304240218,-514893175,1822280595,-453946045,-1769417217,-839951517,-1117291363,2057671773,1134795626,1799718753,-1455293926,-1076032849,2093140103,-1986598949,-1579623775,369601653,-1748771078,1247715938,1259733552,1727535884,107278843,-1659097992,476627007,-1210395269,-1824231648,1483764368,1600882086,194887792,970132002,-1817192430,-790378964,308046930,-2106226643,337056210,-602907997,-1406050196,-1591739846,-1993087557,-537859698,-853495716,-1073035080,-1614727238,-4920143,-567105120,-1673531086,-882099371,594636469,1497403302,1769425676,1214370243,1321120612,-1857518546,-1460257541,88363098,1514353374,-1722874388,-513381802,545582397,2079303693,751897417,272358574,1146742826,-798868031,-1029600943,1178767647,-1467335179,1430886222,-811655348,614197345,99209937,-1996419376,-1729147381,-598353124,638147347,410014786,883282946,-809450451,935093527,238483247,-939359707,323065044,-1514504710,1400581270,-680936484,402566430,-2119517695,-778833348,1219226162,210842476,-467171164,1844391985,-1692523312,-740018686,-355147121,767716626,-1920078588,-1930874921,1816553262,-1514518934,-345765281,945863645,1385004755,1083905465,1361133750,-909000691,-321172178,277915697,1934820578,-1118399278,-92948993,-378776000,-258720982,1719958869,454276659,-1873305186,821729542,-1865066399,-1468331300,-140912890,-581939967,-1108586465,156849630,-552294521,196660167,-224191396,-69055110,1071675664,-1732532475,122963030,715152139,995940912,-1861813602,271015335,-104174207,-698839886,-1173727962,331550613,-509671411,-1089223474,1815714763,1700742637,-1134558473,-1594978405,608535309,230862101,823428512,1768011467,-479495110,220424257,-1140929537,-674901180,-1149429421,567794573,660895957,-1765146726,-1546629419,397550191,1562377164,-1789998756,-419161992,1613782738,2046762640,-1967838240,-1623831640,-107030619,490930713,340564960,-2041257087,185890149,1614813097,-1427017750,332777878,-112748372,1575439943,122056703,32808387,-1451140389,-1501215423,-1268535400,-871825874,-1583211532,1094016559,-1878096394,-1770347886,805438512,-1347897493,-1479479568,699226491,-882217926,-1197601035,711326987,-534205478,793570225,786029784,-2046936996,882420177,-891451889,-1105053969,1882904086,353965437,1769421080,1547412591,-126616822,-1169286069,-2054830089,2008429809,-1661246713,968908237,-1011121284,-297244305,-2057223771,471997723,-1058048487,76030545,-314157112,-261020225,757605736,1390425447,-1408639634,-281951455,-134540087,-666074148,1772454790,781181928,-1656995885,-211716407,-1719253503,-316677660,-1100995041,959683545,-1909719630,-1957887977,-750603189,996291798,-1069365011,-1963182041,-380920774,520942027,1702378088,1733147218,-1965887490,-449871329,131510418,1824107660,1748281820,-189267412,1555507026,-702139552,2117666596,-1768052569,1059736370,-1031086179,-783718099,-1946904578,-709980822,-659307625,-740157240,1277972314,1048205932,-235704112,-678814713,-273291336,301558975,-1366811380,-339182900,1955177998,887321435,-1734313417,1469811551,-2124459596,266700082,1879629686,-161332908,-488480743,439161086,-898541672,-980112672,750333948,655150482,-817025492,-1611486528,1586493269,346370591,1580783048,1645759037,-732295626,912170618,-1970754954,566941096,-565204403,-722462429,-1011198506,735219440,1590923593,-2011572528,1067631923,540161994,-765088998,-1881809846,-991066778,589293866,1368070159,571996834,136571218,-232669407,1246446400,745781739,11957149,-2129823169,518143120,830052789,1626143656,-408796913,1999163815,669467257,-1372924827,-794675137,612118454,237674923,-659302826,2066324996,-446573910,-1207836875,1629338759,-2069393767,1207552288,-804479266,-1277877370,911597646,200254877,-1449656293,1766109472,1095235154,-1526576887,268235897,1616364355,-379096460,-1318843853,-1378676293,-966477881,558927305,677106756,-727041907,1444206526,1188772520,-2094852300,-19819585,1028553239,-1614940407,977778564,3316428,-1954122729,-1898639650,1512032385,1688497527,643547966,-1834163179,-1884223837,-309963549,-379658877,-1664921400,472000821,-881375041,2140160133,-1815175769,-995970490,-507379508,-974971730,-22134080,2143237741,-1531030940,502400305,-1494427098,-40042656,2113034052,-217794795,-1341006233,1590031928,-1396499748,-1289328822,-364619468,-1210378179,-1217028163,-367178373,120983667,-62629477,587922616,182450974,366470576,207396883,-2116540510,-721905842,1644713206,1164433471,1712703511,1397685576,-1648425245,-637552330,1130254600,-1366105153,-1440892508,2090675465,881078128,517533801,6446043,1815469350,36186354,224147831,-2034247380,-1304659462,1499677482,-252035426,-2092047920,1825490899,328503559,-840140954,1560780546,1321715008,675125223,175556636,-1893187467,-2018403230,-153338579,-37198785,-2026162968,-1735803531,2107600094,-1613669640,-77641544,-1712430961,81508632,-1534063606,-2109443373,488698517,-1743401364,307779491,982942002,467474399,-2130807480,353060977,1555527647,-105541264,-1741699948,1530322080,-1657328949,-439729403,-1996686901,-1555824180,-827670121,2076928991,-498876073,-1516589513,-603387469,-646955632,1480205969,990458298,2007076128,-1754763617,918764321,-1075834170,215401419,-274955096,-1123471420,-744581717,871431750,-1620038696,1177694585,1250843261,1776587932,1107313998,-1163495602,-1645739211,-8775227,-971260774,898575170,157682533,-409344951,-108749580,676981899,-386330214,4040843,1214422777,1446876078,-274848774,1669592282,-1558146058,214264246,-1874390660,-63050314,-1596825846,314630993,1193975743,-517987584,-263080974,121935757,-49619680,985204263,916061992,2135205939,-177470613,79136275,285030245,-1009661382,-1366511619,1655847380,-1744420539,-1449765688,1239467267,1220773238,-1148030397,1593297272,-25867727,1817617345,586175177,-182871669,1287066699,-833084442,-1036540812,-1259677341,-1924354599,-430284661,1233699830,-1119648481,-1740499747,-274060279,-1521603907,1873158801,-2100313680,612785473,-397227115,183021061,-1300856727,-903219090,884095358,-687396025,-593175559,665079704,-299796075,1842856271,-798381633,37792968,781181896,1658177282,1030949187,-1930390708,2001021199,-1066543178,-1423607828,1404265855,-1594472025,1271258435,1770426479,16864586,-126274644,-2019459653,-2144436524,-461481429,1373474194,-1465591572,1985713982,-724746049,-2118916088,23584813,-506641832,1737031036,923410515,-2000936601,1137808069,923584790,-405687990,-985340393,782010734,-2091086380,-867175162,1684036631,1171557307,1855467798,-126744549,-801655995,-389580783,-452604458,-150680491,-181041785,1706517161,-1079847447,-1402206339,584555850,138209518,-1682741597,-1901296546,1219630438,2127207869,1279994252,-1217049221,565348355,1273938658,1558904192,346897015,2147438309,-1756403183,-49743102,1970149475,-248621410,1840316870,2145557895,-904816252,-979524985,-1291821159,1569135280,518507736,25629992,-755517331,292344230,-1257904260); -/*FRC*/Random.twister.import_mti(119); void (makeScript(14)); -/*FRC*/count=288; tryItOut("\"use strict\"; testMathyFunction(mathy5, [-0, -Number.MIN_VALUE, 1, -0x0ffffffff, 0x100000001, -0x100000000, Math.PI, Number.MAX_VALUE, 1/0, 0x080000001, 0, -0x080000000, 0x100000000, -0x080000001, 0x07fffffff, Number.MIN_VALUE, 0/0, 0x100000001, -Number.MAX_VALUE, 0x080000000, 0x0ffffffff, -0x07fffffff, 42, -1/0]); "); -/*FRC*/Random.twister.import_mti(151); void (makeScript(14)); -/*FRC*/count=289; tryItOut("for (var p in b1) { try { Array.prototype.forEach.apply(a2, [f2, (new Object.prototype.hasOwnProperty(new RegExp(\"((?:[^\\\\d])*?)(?!(?=.){4,})?+?|$\", \"gyi\"))), g2, (4277)]); } catch(e0) { } try { print(t2); } catch(e1) { } f2 = Proxy.createFunction(h1, f2, f0); }a1[({valueOf: function() { print(x);\nreturn;\nreturn 5; }})] = ({NaN: (p={}, (p.z = this.x)())});"); -/*FRC*/Random.twister.import_mta(-1468362411,1825345239,-1976764055,-481565283,-1829392048,1315561809,-953951058,525554359,-1736782656,-726782514,1884333229,-1407712226,98761153,2018599812,-2090717081,-213966367,-92108136,565417582,-1063276983,378066431,-876999425,1641418160,805288648,-1870160219,586242171,-2001989971,165779170,908038175,-24085792,-952281312,1078580092,-16693465,-2003627394,-964003867,-343300822,-647364610,-133790713,-1680690695,-1856089732,367955912,-687903535,1668103281,-739907482,-1277483882,-225919940,-758411314,-1062096745,-135415125,1959268237,1519641966,1413319682,1714205647,2048007329,313036614,84622341,1352647441,2006358899,-1450406067,1492261691,-1348231047,-1411365925,64581429,963199986,-815638472,-1455608639,-1397080936,272301009,-54181304,-1268185919,2143052663,-1253795190,-2013620962,1203267249,-151045221,1657875085,-676469661,-196011507,-122307927,76313199,1119008273,-1611575897,130971922,-2012456936,-1231135377,-2017793740,1100139276,80559822,-1415782390,-1267729752,-1371984349,-346447351,1105492672,-1018311564,1271070212,-775982298,1056205488,-1949575453,1707830636,-1858906204,-482721423,-1647836396,-1781533001,1286643346,1143068120,1106012477,1046217780,-2039316379,362394808,296773840,-8262890,-2032668514,-972975568,-570645712,-1185425718,1720750578,311504637,-1759171188,2082042813,2083793765,-585072664,833280150,-1568077053,789780869,1457265079,-1509423438,-46874834,1993201575,-1898614264,-1156087276,161921846,-2036658533,40385151,1368946917,-552866139,880403787,-491538025,219641728,-1409282526,689354727,1913147273,-1974682369,-174242995,1304382858,1640294492,-277632262,448843643,-1653273177,-2003908320,867215043,-1945936463,1763297329,-1532479907,457431270,-1649849699,906338584,-814895944,214349662,1399429043,-206373841,-1416675820,1871924122,-1706018714,709674258,1084301966,-1587148838,-741280606,-688468406,-1928980203,-206802200,-1805224638,1830945498,-1375843044,968930026,822778802,1444600283,188853725,2079294279,-1156942063,-1641899176,-1648060782,171669006,196019520,271230646,1609523511,-1217497264,244617318,101050233,1045531611,600896684,1044987116,31463379,-667881026,-1543886504,-1123758130,2044208959,-1495403777,-1469481269,-1709710348,1764471000,-286403824,942193923,1428005796,-1715443150,1246562632,-1114736246,-265463212,1902962387,1504699144,-664078205,1750163724,-1548199777,1137095520,1398854891,650291238,-1749175612,1717262274,-1470521345,1581210681,607985132,505787018,1679417803,-453504669,-978621137,925122252,868719213,1207485202,92097808,-1099005982,-2107842664,1759101906,-1888639885,-433622893,1496191141,1354068888,-1353460,1303469855,-1574838980,-1234696323,1770617133,49743640,-1526770864,1942739613,-1366410358,1135304241,-37406046,-1271242668,-1073340987,-117042741,1383125145,714526007,2065231733,1629093938,-1091512085,1039909388,205754633,-1865684663,-332509552,1062555886,1833378731,-687458329,2127014132,438673763,-1668041727,-1831746894,1854136557,-122725096,1945675877,-910016025,1536459801,556291770,-1006512310,595376828,-980451000,-1252684303,-1918277204,-139393281,-808752982,-1493632654,1719868181,1038147128,715972861,1043995823,-1192868926,981472012,-1934351231,976768587,-100714617,-1201265390,612366371,1989154450,959255373,979830033,-2086250884,-1203868144,-689420973,-280605700,2063087180,-442372002,836104423,-1261905153,-1759374992,926445045,1640799256,-262278811,1047292143,345336202,1803576220,-669277310,1706605473,-645682035,122905015,-1766779803,1166229413,-1529523839,-826719830,996054658,929736498,1926737865,244671624,1123659889,2075427792,2070340478,-597118276,19973888,-338249855,1617623908,-1325115734,64348958,-1181344356,824463760,1989229709,-2065418632,-673551704,489289718,1986351144,968239039,-1502905643,-570621767,1526657057,1345852386,-839545254,1177774811,-1726432602,1238624111,-717610301,1216844383,479906350,-28581740,1488183359,-424415298,1123152789,357935659,-1774267151,1436568307,-1891305070,1568144148,-838256926,273499584,1598808509,1367422339,1136682097,1930650148,380955912,-1504841244,-1087508547,-1186433742,-1395098617,1703355985,406494547,64939502,-1227011047,1405140602,-67084314,228258731,-354447357,1129424549,-286075930,374270289,1115626932,152891860,1247344858,628345867,-1314663672,1916771580,-203195162,850568131,-991050488,2045953780,-1010627645,1601104264,-2109465009,1674868955,1071047360,207976108,707560711,-1574368076,-1861646131,1741287426,853061066,959226171,1534513173,656339872,-1325731555,-772941933,-1834153547,167094518,-247772663,1804885642,-2047949760,1160018532,-1196865684,-1389600536,-1729079155,-1623426485,139158856,583327957,-1578135416,46136133,-2127639229,-817133363,-2055614335,947836887,1236410825,950765207,-1126049721,128483161,-913428048,-1254177233,1344718762,123534039,160810873,1609095107,398579860,854686887,-1931244179,-1499115796,1740229744,-568853309,-1774636040,286066791,881503779,1335311218,-1312580009,-1538033463,-1910782153,964058485,-1966896710,1684462447,930416004,1928881695,201258612,2144368679,711175490,-1829869398,1435758271,1596593058,964412212,1899000935,46822819,-251182895,-1687120804,149384458,554254807,1463058091,-1410556000,1381613501,-1874100088,1721138719,1815860222,1911417520,1952783461,-1555976896,1157470814,-1711381786,-155319257,-1470007046,-1764142890,1340777787,1075454613,-1549540532,-368610487,-352965324,-205113596,-1226187983,-1561401981,-947691184,-1413187171,-1276907922,777595310,1166397595,803749137,1167927610,-815772443,37310984,-665712612,502673602,688643588,-1172364911,1930794297,367476799,264794865,-1120307156,-1885741306,358716339,-1736599582,-1562957607,648815020,-1945762757,-1652249147,1672818708,-1409927071,-1386430052,-193549974,-2002375827,762164591,1890898503,-1956068148,491573750,-1096381201,-321015104,504134615,969647212,1731646023,-646165930,452119204,385474836,-707589947,1415564574,-392787002,-1947657086,-1801875298,-1178264897,-1044589765,-2057452217,330565123,-1956439498,-656126891,-870776888,999342448,-1711286152,619094378,-1414677091,1627884093,-2048818610,-2054327574,1564951364,-320750492,-1806183512,-900036738,-1656167208,376911588,-625191936,-405024998,-1216602356,-511719610,-1717504441,1689709158,-2042609939,228041332,724579542,-1327362274,1994783373,92978793,2092135639,-1645592621,-1312199189,953603371,-643309012,1025417540,712419878,151655275,209805834,2019636083,1868477584,2093367394,-974831533,508794371,1501009694,649949838,1838421797,49155652,-1897218184,995099031,624011318,-1414549310,1745353014,-189759151,-1294791412,-1636274445,1681263587,1153902353,1556061601,1385919673,704751148,-1430678224,1230066678,130060697,571232151,345439317,-1738975915,-1409872470,-856030011,-1042042681,656615224,867797024,1812620148,-1706894288,-324014217,-1210267172,-819482999,-1853874158,-881567831,1147806496,1645493012,1559890486,939879007,-1612286309,-326659305,1822924471,1058367572,-1139402171,1654320596,-1196687606,1547464888); -/*FRC*/Random.twister.import_mti(204); void (makeScript(14)); -/*FRC*/count=290; tryItOut("\"use strict\"; testMathyFunction(mathy1, [0x0ffffffff, -0, Math.PI, 1/0, -Number.MIN_VALUE, -0x080000000, Number.MAX_VALUE, Number.MIN_VALUE, 0x100000001, 0x100000000, -0x07fffffff, -0x080000001, 0x080000000, 0, -1/0, 0x080000001, -0x100000000, 0/0, 0x07fffffff, -Number.MAX_VALUE, 42, -0x0ffffffff, 1, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(236); void (makeScript(14)); -/*FRC*/count=291; tryItOut(""); -/*FRC*/Random.twister.import_mti(243); void (makeScript(14)); -/*FRC*/count=292; tryItOut("var nsntbk = new ArrayBuffer(4); var nsntbk_0 = new Int8Array(nsntbk); nsntbk_0[0] = -8; var nsntbk_1 = new Uint32Array(nsntbk); print(nsntbk_1[0]); nsntbk_1[0] = -22; v1 = /x/g ;"); -/*FRC*/Random.twister.import_mti(293); void (makeScript(14)); -/*FRC*/count=293; tryItOut("a2.pop();"); -/*FRC*/Random.twister.import_mti(329); void (makeScript(14)); -/*FRC*/count=294; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return Math.sign(Math.hypot(Math.imul(y, Math.asin(Math.fround(( ~ Math.fround(Math.acosh(x)))))), Math.hypot(((y >= Math.acosh(Number.MAX_VALUE)) | 0), (Math.acosh(Math.fround(((Math.max(Math.ceil(y), (Math.atan2(y, y) >>> 0)) >>> 0) >>> Math.fround(y)))) | 0)))); }); testMathyFunction(mathy1, /*MARR*/[new Boolean(true), new String(''), new String(''), new String(''), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new String(''), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true)]); "); -/*FRC*/Random.twister.import_mti(582); void (makeScript(14)); -/*FRC*/count=295; tryItOut("mathy4 = (function(x, y) { return Math.fround(mathy3(( + mathy1(( + Math.hypot(( + (Math.pow(x, Math.fround(1)) >>> 0)), Math.trunc(Math.hypot((-0 | 0), x)))), ( + ( + Math.max(Math.fround(( + ( + mathy0((x | 0), (((-0x07fffffff << 0x100000001) % mathy1(42, x)) | 0))))), Math.fround((( + (((( + x) ? Math.fround(x) : ( + Math.atanh(0x0ffffffff))) >>> 0) >>> (Math.fround(Math.fround(Math.tan(Math.fround(x)))) % y))) > ( + 0x100000001)))))))), Math.fround(Math.fround(Math.imul(Math.fround((Math.imul(Math.fround(Math.abs(( + Math.fround(x)))), 0x100000000) * Math.cbrt(Math.tan(y)))), Math.fround((mathy0((( ! ( ~ x)) >>> 0), (x >>> 0)) << mathy0(( - x), x)))))))); }); "); -/*FRC*/Random.twister.import_mta(-2002319434,-1362730591,-780016854,302778557,-652037161,-1821696182,122474007,-1634701355,1671609873,270248064,2107137157,1578567807,2030881702,537980800,1304117447,-441377343,-807030404,-1324612941,-259507467,490350120,1918172573,-1764683737,1577121600,1292487779,-1524604834,222489272,-1163067833,-2086017737,1681315017,-1448421362,330749283,342838933,-49188358,2085688812,861677628,-221631928,-435121020,-1001609773,-330168056,-707867961,917099044,-1077164085,1222679084,1305407549,653458581,1217656515,1185748291,1836544046,339718082,-1596108869,-830983593,-1821066485,2074878396,-1871456087,-828954256,-2002759644,522231763,-1595780099,-772574399,-175943162,-1445694686,511628378,-692687667,1457959651,1589277510,-266564384,1767301007,1758506271,-1265680679,-1964388915,627782800,-1762701191,-744831070,-1677379076,295694254,-1478645881,2091650925,770739663,271618861,2705114,202217906,1142689433,1642364196,-1445328941,-1975564110,-241129373,-1557681356,-119990057,160908958,1197480006,-753806578,268423060,543469465,121078914,451353698,1401755467,1893524670,-791960626,-178020187,1743773582,1777363477,357423728,938978003,-1237911888,-1575519690,363343851,1605192175,-1868192886,-1659380398,1707596259,-284766941,-210043811,1058986865,-658607976,1025304125,-1818708,1872896620,-1971384318,1579478451,-742545273,-1795103576,1881649394,1589317316,218658958,1196555259,-2057795253,-568921262,1199115182,1378532495,1335246679,-1939644162,1498548075,1029987087,1471009508,294942379,-2026411781,-1822571946,-566760145,728730925,1154130677,803139249,1565484981,-1457673130,325022743,2143644415,-155861967,-1046026530,1163759956,-1035051709,23455907,520845401,-2013566195,177533257,1299572328,-49642916,-1581738827,130049034,1101924750,-865638067,327110571,-1956109602,1488044285,190883217,-1605301005,520978652,1861343564,-1556559742,-465828185,-67479734,1313330246,-816266078,1644099633,854845439,-1156591783,-1876360133,-593608177,-338477113,869731790,-1962472678,1531849988,1553995198,782770645,-613738655,425276908,-912197813,-1587920140,-1559110396,-1169700204,1998808896,1833450087,-1630833197,-813335969,984902660,-1591507887,-690367487,-1616413949,1728731094,-567521956,2116532862,-1025736761,142777925,410437964,-41954831,-1255132817,-1259558417,542995313,200595132,-2038152002,404935666,311836832,-1924352313,123999094,-599328102,-1705051792,-1202062264,-917611520,-1811733033,1323599040,924300058,887240353,1207118713,-1753573121,1686599474,1023240108,1097239645,-1173005950,1124290377,-913741702,-626360248,1329562060,-132710357,750586714,-1154374010,951673489,1631613061,1924288655,-769188895,-1873522484,1600949235,1802723854,-1057115631,1526488322,493617670,-251188179,-351194471,159614152,-122577390,-2107366130,445826659,-92000219,2105855098,592493812,1405029310,629507612,314876236,304214913,-167743367,-1138887575,-1494948423,-2106415744,-397707902,-1541586205,-1146959087,140104749,-132445345,212266469,1747409643,-1033166601,-1352668010,1793094025,477146467,70597681,-1959690012,7971221,-1884863602,1943673751,-207539454,607194882,-1920674793,-135077603,375809569,-756807535,-706717278,-2139996852,1693893639,1946441821,-1448066929,1659060204,624353043,1395152308,-757235532,1600739448,-1409041432,-1691726343,527665377,-906811905,-1204210206,-460751812,360943065,-1744056550,1586610137,561619362,117174250,-1164801083,666515722,636527331,740595483,-405179203,-237672448,-1153073888,998915390,1911973823,2059579516,-998568991,-1518972010,304223495,-419201155,-732208822,-1215584397,499052145,981792061,886261052,320173259,-599847007,-1593909636,-303985680,637873665,1966826715,1306522296,-1783135158,-1270551156,-906342558,1530713104,1688199675,360054922,388681959,-1842222752,460391916,-614009428,434379868,581924138,831568750,33914052,-600341550,1999923698,1349093540,-325560115,1615963240,1132349229,-1496627247,-1633018556,-716824228,1988107501,-642478181,700642852,1965959166,129015223,986587391,-392549003,-2054366744,1847878646,449708079,-1810788343,1438877015,-2104240202,-469040143,-1358855934,-1161097017,1553995074,729528965,2059348778,1103447308,695235899,1841405440,-1107430695,-180931408,-750113580,1043658371,-2089479193,800623908,-960188238,-438604840,-660120885,1043454585,-2113935184,-300839991,1871064273,864098272,923186233,-1823860119,1219723329,15135164,1757635098,791034590,-181894915,712385523,1034103879,-701197753,-463464333,-2042609878,-1467959671,291294314,761272601,999099330,1999493557,714219201,780403265,1582790558,1278876903,-952126249,1338967448,483421138,2009911054,-415993952,841812513,1741991684,-1256229094,122987437,824708838,-520080229,1679056741,1795716154,452593815,-529396950,82887215,1524671142,21736463,1620180368,-2100296456,1623032466,63760977,-1089714779,-1607631363,-1802657579,-707337272,1811822026,-1533735394,-967823557,-689297510,1594563924,-1114282807,967869372,40849595,1241937555,-1957225819,846624711,-539366455,1548331451,923671343,1635257352,-1709315232,1415011068,-1285394985,-1329461047,-434347605,-971546158,-290518240,1618643493,-1925833747,-158733144,2093667348,-389259087,-1071587579,-942582735,1617969101,1464421303,-2127499810,-153068562,1644865626,-1101644565,-525862259,-1989148746,92059067,451292382,-699098765,1375628808,75092583,-998150673,847334738,-1078721851,1358860422,1797765838,-799166778,1048556135,-539212607,1779329448,-612150601,-1083711147,534190705,895378758,714555568,1185127922,1304052961,1141792485,-1936705386,-1143340140,-286830178,-51194080,-1748095759,366807363,518331779,-932467699,-1604164975,-6293261,-330159183,-556612415,1761170399,-1045659620,-1556180837,1494480205,-690201214,516788402,-1453327052,1712204519,-1011751408,545439093,495861071,1418098204,688357656,2047686364,-2016436273,-1243590371,-447938348,-180334416,-269120330,-1503479452,-232511083,1792735802,1686974435,1287071653,2138617413,-563290040,-27856737,-50977595,-496436826,78642933,-582417724,1715625350,2097777539,682746057,1218799088,1291658839,282252320,-1513765368,-1158102808,-2114225855,1469384613,1604957826,2054633296,1479471033,-245291615,-753714703,-1235254154,1455082914,-1595691225,1065650059,262089699,-225493834,-597535479,1129173919,-2031768478,-1900286111,-1334060461,97273430,-627244090,503656422,892857674,2082481544,615247485,-1618426450,-629722409,-770948972,1741083372,-755271428,-609504098,-1788920589,-1972335522,-1913347069,2055510545,2012683215,-557723609,-312326608,1740043237,308757974,1322114148,1271586050,-588947602,-1206852528,-237128447,796570462,-493552808,852942133,-250883865,-1168290918,-563889860,-968299183,-1552601711,-369302049,-723427463,2089546734,-1833685827,1141152357,-1499027668,-896079676,137479993,-1907065345,-1058551232,-1658137508,457182275,-1872278846,-1031585422,-473237216,-551840189,1106979274,-1232399856,-1577238613,2080465725,-1477902395,527189398,-272572441,1584090164,-377651336,1147673519,972074908); -/*FRC*/Random.twister.import_mti(415); void (makeScript(14)); -/*FRC*/count=296; tryItOut("\"use strict\"; o1.o0.h1 = a2[8];"); -/*FRC*/Random.twister.import_mti(436); void (makeScript(14)); -/*FRC*/count=297; tryItOut("b2 + '';"); -/*FRC*/Random.twister.import_mti(445); void (makeScript(14)); -/*FRC*/count=298; tryItOut("m1.get(o2);"); -/*FRC*/Random.twister.import_mti(458); void (makeScript(14)); -/*FRC*/count=299; tryItOut("mathy4 = (function(x, y) { return (Math.tan(( + (Math.min((( ~ (( - ( + mathy3(((Math.fround(( + x)) >>> 0) | 0), ( + 0/0)))) | 0)) | 0), mathy2((Math.min((mathy1(x, y) | 0), (y >>> 0)) >>> 0), -0x0ffffffff)) ^ ( + ( ~ (( + Math.hypot((Math.fround(Math.cosh(Math.fround((Math.max(1/0, (y | 0)) * y)))) | 0), Math.fround((Math.fround(Math.atan2(Math.fround(( - x)), Math.fround(x))) ^ mathy2(x, x))))) | 0)))))) | 0); }); testMathyFunction(mathy4, [0x080000001, -0x07fffffff, 0x100000001, 0x100000001, -Number.MAX_VALUE, 0x0ffffffff, Number.MIN_VALUE, -0x0ffffffff, 0x07fffffff, -1/0, -0, -0x100000000, 1, 1/0, -0x080000001, 0x080000000, 0, -0x080000000, Number.MAX_VALUE, Math.PI, 42, 0x100000000, 0/0, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(408883784,-1935611418,1447988139,488202173,1491682255,-137441587,-1379037961,-1611385246,580897409,-1992254244,-397130882,1891399988,-684211433,-266726108,-1224714771,272504752,649780774,-748574844,692698128,356366603,-1791714463,1579709766,1586258549,1988390730,766050662,-1633368213,950946158,-270329708,1312149153,-778537375,-206640635,-1135035387,513083492,442695247,-2039918463,-752535617,1872970467,-1543510196,-1743658890,-4069620,1086159873,-1298503028,-521874027,937732700,-2064529406,-1204720955,2092813956,-2125935292,-1156554555,569197117,-1929689887,1255672817,-263630717,-44662824,268923630,1710920417,968593896,401434836,-1126774575,-1169870159,793108488,1063624020,82969862,1402465719,-792582463,763559965,1790030433,-482406274,-1959453298,-746227818,1688158989,197643147,-262889451,-1469575846,59350186,-501087534,-1793664282,1195663418,1374342501,41885374,2139609724,41120704,844214771,367080671,-1962975712,-2117174436,-618950957,-1692932210,1237214603,-234112208,-124254561,-1762787998,918923015,669306497,-160586104,1976841918,1818988290,1864980507,-936514477,1125635147,-162252264,356337991,247886363,1341038744,464980775,381449913,-137549514,-1562786536,892967151,-965573231,555306733,1706642940,1967967489,291151427,557813604,-561058814,1664197350,900407318,-1873487383,1460555547,748007013,106563194,2089355931,1030738669,776250727,-1975092867,-1761815193,1609065006,413210128,-199910934,-1619310256,-482889029,1734463191,-289784369,1157620970,-1208479308,182805133,785879023,-1077797040,1403962691,-772972925,1770479016,-132716003,-296787888,-290502512,1879156559,-949285214,47668886,1480670671,-1055388842,-983780389,-1506410709,2123635853,-807115633,449299316,-171985293,1986906469,534293342,-281833343,170605196,132082711,1088075550,-898767559,-916231156,-1178401849,-1578648046,-287640102,-1486870429,2032584133,312184603,-1781012145,-1529172643,453481181,191561749,625725772,-1960313392,-1961820645,-567791341,-117953935,-1541372287,61342774,-835083906,995852601,1662589789,-1110481078,910040423,1329897628,895250372,-463048466,1250448728,1188751776,-1400405245,-1495023191,284205447,-468856725,-2104558836,-1790218956,-1586469885,2116969069,2117915244,-439910023,1935017822,-1088726138,1372244117,-1927113982,-1554199438,-908801381,1142992576,-2027987537,1598628348,-560407065,895709454,-582470022,-1632649386,-2022844640,202552439,646540202,-1392456803,579114020,-957331874,895288165,1831861775,-239178703,-405751099,-193473607,-1126101804,489954209,1963610732,-348182272,-213009567,1263000080,1165070476,849006426,73729130,1067822842,-1836779602,-1049971526,518698584,1158006835,1849797312,-1654375515,-1179233042,-1313525383,-902105163,-1751095840,353465113,1410313100,1098205327,-94184053,541983816,1730949424,74876089,-1939471259,835459528,2147176843,-331528638,379468938,970205190,-43913531,1789964965,-781914143,1118864854,234974582,-895060077,2091131233,889912796,1207748520,387091018,1591927447,2010395643,-1393130341,-2123822992,1627720400,2070835011,1638756432,-2101282492,1945486780,322018869,-1473655904,577950540,1294781263,2063031871,633572423,-758627532,-1259867099,822499401,-885740217,-1529462946,384939918,765248860,1008943499,-960234699,-115435970,-1140799794,1590571614,-685144193,-1581135480,-1219087042,130165766,102027046,-1194009205,16018271,1717827567,-959723933,-860585580,-554682825,-1466231745,124612220,1607585104,1872015212,-1273841697,-1214380514,989548147,-1985960168,1259232722,-482907414,-1742337131,978675193,1094335109,-1299223226,1032678431,1726983218,-1027407439,1008001084,433692131,36162444,-528296199,-793001148,535202658,1424229597,722700073,1982423343,-1107609957,-42587789,809770420,1008823391,-1949694105,212481083,692798418,1679521684,160613364,540881158,-258658837,413898271,497017924,1058030928,656842031,-1809695444,-1942547123,870057017,1473036867,-871621682,1066700399,-1038242187,1702851025,-2106464236,1887058250,842985269,-1577984433,276037420,2060815623,-671114191,1141990336,195856726,-975520056,-398270511,-1748763137,-1078111198,-449695691,-985038968,-827473194,1663025874,1189177423,1084049169,2018297038,837036965,118145224,1575914231,-236340807,1576420564,-1123430045,-274932018,867167120,1989295421,-237445531,33044022,334213500,-2058058028,-797504779,926717382,-921692974,-1918717238,-1233869955,1296434555,1800636741,-16784583,-1601603865,2129614249,-403000632,-699434682,1137010208,-1426887393,-1763608527,697213470,1382649516,1991416718,-1962197682,-1128416614,1957612490,1555825653,1836134068,-2044133171,94644919,-1889888941,112605254,-18232477,-1876249519,1582231251,84879761,1306615492,628399002,1886938367,-1296564583,1312537852,-1946143408,-410843979,1316236452,-458259707,50906647,670408305,-683386216,1144823075,1880272071,-1556104321,836744229,-1789535584,-1519810882,-1242706390,1525088164,1519006913,-1032323448,525520802,-1340522527,-1171630553,1832075425,-1805594337,836510300,-1210925523,1569978379,-55535231,-1912924229,1959679373,2106112111,-147678293,369222277,-1670861680,444092076,-724277447,1043687128,1291822416,-1458862867,-960663129,1751444841,676993923,-1404656804,1167965916,355567415,-329158776,1066793540,1492024544,-1903359890,1276547042,409101686,-433235990,696942475,1633059943,-1694104992,1047304089,-2103167740,-468104154,73385135,1473611496,705310638,-1602703819,1288903890,1235810113,-1408503088,126341638,1478473589,457887022,-369641110,-1015958578,-1912249743,1102371811,1258261376,697387608,162355307,2115576380,1385118734,-142658354,-967636582,-1466633785,1678226914,-1663803205,-447722358,1163776656,44340034,-2051329059,-1888086970,246260358,-1649505427,-1605891393,-620102171,-353608113,1839190331,-2126636554,132120146,681607431,-70950821,1676798214,2146983583,745058868,-1383485657,-700772397,-462984820,-405239789,1937355323,328923813,-1079556014,-1059644398,-369248697,714557700,964924554,-642815764,-600694311,1903512626,481657263,329171649,986597029,514456715,920028396,1130837954,-237663762,-983929887,-476026490,-1275590264,-1654934009,11990967,-739218639,1669014462,-862598117,1123442648,1769647453,1778102709,376516702,-2128499124,1839438470,-601219726,-1903740865,-1098260310,589524508,-244236222,2126991220,-1501264252,1135125448,869315959,1510696272,-2100329451,804869073,77988959,1907209813,1853656370,376305966,1257457504,1199903626,-921742494,-332470553,-1283047532,1862215414,-1979918685,-1263760019,-1884505860,-1958589697,1461507960,400261556,-1887211016,1283165444,-1691097256,-2143107682,1968905836,-875604205,1683482212,-1251182052,-118349471,1167168085,763368994,683654584,1037426101,492452645,-692859186,-1147684100,1797232472,1420779463,-635792501,-1010039593,-1852154727,325267194,1772185501,-407929937,1391348521,125256109,123577755,1627759315,145635444,1285728734,931072948,-1111467269,-2035927527,592080358,-650050201,2046343879,-1871760307,-502811401,-1398341693); -/*FRC*/Random.twister.import_mti(149); void (makeScript(14)); -/*FRC*/count=300; tryItOut("i0.send(e2);"); -/*FRC*/Random.twister.import_mti(161); void (makeScript(14)); -/*FRC*/count=301; tryItOut("s0 + '';"); -/*FRC*/Random.twister.import_mti(170); void (makeScript(14)); -/*FRC*/count=302; tryItOut("{/*oLoop*/for (let lpgtey = 0; lpgtey < 4; ++lpgtey) { window;( \"\" ); } }"); -/*FRC*/Random.twister.import_mti(252); void (makeScript(14)); -/*FRC*/count=303; tryItOut("\"use strict\"; /*bLoop*/for (var blddpe = 0, b; blddpe < 103; ++blddpe) { if (blddpe % 24 == 1) { /*MXX2*/this.g2.Uint8Array.prototype.constructor = t0; } else { m1.set(timeout(1800), x); } } /*RXUB*/var r = /(?:(?:(^{0}\\3){2}))/gyi; var s = \"\\ue544\\ue544\\ue544\"; print(s.search(r)); "); -/*FRC*/Random.twister.import_mta(2025791834,366299074,1103849031,-155617512,136100518,1494158997,1718925615,-1708205261,1913837024,-14607119,-991721984,-969041250,615582055,-1342589795,-835319019,385435044,-1494595951,1376970318,1837082425,62409022,828036208,-1287542668,1990420833,866130729,-433932395,-287253970,2043293878,1913807583,1447530330,-1364465287,596340184,1279410725,-1278455415,1299726855,-1264142813,-1630814871,-1296021287,2111259678,-357226202,1547667553,-1398736020,-1281612367,24666607,-1072751991,-633157089,-834152285,-1165086587,-1447837668,1570685150,-1364643597,1270221578,-54533995,-2112117139,-973558068,-549737438,1632989339,-54251583,-1855834574,1480754455,1306181288,-882464365,1011639387,-63118508,409085778,158613878,-1003191162,432378812,-371446373,744424727,-25782674,1888107154,-1632167279,215644749,-817248709,2097647243,1391003653,-2054199305,-1736988186,1617496888,-1530532002,1062547065,42229026,2011260566,18901951,389200710,-561031144,-302817806,-1325097272,1890396889,1229930816,1290874039,-1703554007,-1850729807,-759076306,-1180981103,-1204771344,-282540239,-136196746,-787345246,847725927,-1383123392,-857426468,-796367742,1384135894,985823812,1608589689,-843546057,650391586,-9691001,-887061269,-1217948381,752402969,-1626841736,-1926148897,-1894810434,-1433326442,-264647100,-54719216,1941016228,-2002937409,730694202,1552504265,-464605009,-237847309,-1337770411,2147448139,-1177600316,-398990716,-573422362,1019483795,-83258585,1428103142,1854059050,-1954397134,829112798,-436628205,1472995268,-1009570191,-2119524788,-1387553231,1734175765,-1613921420,1770933411,1098981540,-1569762118,-765456705,-2077113174,1451771838,-1821111261,1727881013,-895174403,900912552,-578707162,-2114572895,-517917634,-1958414032,1712841754,-1193260863,-1003212022,-146498478,-62437635,851016316,-633842004,-422944992,-1585275061,162149785,1815880298,-1506577931,-1550466523,-907534040,1235903076,-76404128,-1743047542,1661492979,1810854874,-890423556,-1125126346,-1561217427,35102973,-1376066308,-1801785557,-1436920139,561572818,-1437909304,1304102544,-1394599247,1303568538,636008899,-356033708,1863776724,343447046,1245418901,-1540620688,1623265273,621845474,-3552122,826450879,-1550969924,312377108,-2091594277,1149165082,47683302,660478555,-1123617923,984740193,-1454536107,-1207253781,1498094303,-29438873,-1524109098,856743706,-922001262,498701442,1153542717,-665038977,1916868358,-2027491995,501277644,336013467,2120641430,691632577,-2103579871,866248922,-1697913916,-836783577,898959864,-1776036107,1293989338,-176477523,610831183,-738082978,290577675,1530760352,2040950354,-1821597468,312971197,-1336653859,2137641670,-249737218,-1291082646,-215834902,266609526,-353595743,-314936223,-2121076963,1199076095,-1173725786,-1788671382,-479810992,1161130489,-1466701398,2031682936,-1241065782,-549508948,1141686782,487100703,-1304298118,-2077021595,-1609389144,41326246,740294892,-1280966504,579876479,1436215478,1733442288,-917812494,1471597892,450444024,293506195,-1911843971,-2135187791,-1430237321,1794662365,-1973909331,-1462518594,610542080,1043943222,1604513498,-1383691981,1032155925,1636544780,1423104734,1211191553,1069507852,1357490889,-456105109,531734791,-2145488300,713164533,2066084686,-1576310249,1979386473,-1707808799,1990363795,1530945275,2092949971,-1512207119,862661777,-1648526078,-1984388009,372982603,-683752029,-393978901,-472570051,1845953058,-1389612552,-411871136,280873169,894306964,-186610266,1525639344,-750277472,-631305324,-2005634277,-2137052227,-1514758196,-1922219165,-177962710,-2093849974,1451105377,-508117961,32675990,-432351762,2060237087,-151902032,2019281665,1524278469,-495160335,2141063021,1544099785,-258196322,-1120448042,-1202551521,-1785033491,-1579403566,1669436395,343748137,-1547553590,517306835,-1681834878,-1657809828,776821396,2144098118,-17417114,-483053640,-114659092,-2104719575,-190924733,-1670387958,1453351249,-673926892,1988217277,-939978066,1383610099,-384887154,-1511040957,-1126968874,1928973535,489087088,-891239306,963984117,1399058494,-533737032,1965113504,788197702,1396953196,-225102816,-1932737328,-43434832,249081288,806273485,404181058,1797660136,-1206409523,-680336717,-1863226297,-788354415,1800983806,1531574210,1510865224,-164085050,-1191788042,688215921,-940360713,-132361254,-842929228,-168894664,225735512,1764176031,-21996347,-1608841659,1672511018,-167671813,-1063430633,4468918,1792657801,798440227,2052537088,-1873439037,-101087334,-277260125,-1181253859,-1641388045,-1780799392,-1716978774,127024730,-207341135,-288519474,487384976,398490760,811011697,-1771986156,843440327,250215609,-2087392083,1004188067,-1724301726,-1879592431,1825258231,-1231965251,-1040872103,-1522281359,-1730931976,927119639,1229398329,1973709126,671857798,-1661858354,-2010781439,217855767,1175457075,-1682958371,567994165,2045619750,1407317903,-1400238280,-3074109,1583587528,2101791277,1015180230,191417836,1498964048,-1235448630,1756888554,-1898431588,1290353077,-58227617,-554158821,634197822,-329985064,2040822237,1775460047,-1761282830,1143707496,1125442450,-1203302917,-1760950260,-1961161678,925765539,-693043703,-2081397154,2119591567,-1618857309,-1502144909,497487272,1653423290,-2059725906,-1394056248,596843782,-307623274,-1959709808,-1918640730,1953421578,2009584316,1019279494,-286938272,-2096395542,-1446907096,185967467,1830913090,-187307048,1359599145,-1807976742,-735546605,972022042,-1239985472,1102413733,-1725469815,-1107073521,376171210,874656081,-1185400041,815372252,1925777540,236036052,-1935634311,-1324940701,-1443102538,-1853893360,164748048,1192902801,-623876529,-1291410814,1284598131,1024198546,-1395343214,-1504683484,640727855,327420829,-538008472,-158084980,-1536826140,145685651,-260638395,-2138997073,1768815068,-159579374,115436261,67370730,1019246705,1620497289,-729007689,-1901406491,-672253897,-644884409,2097747136,427649498,166258530,-1219146838,91369495,-1231125569,1925630055,-2114222706,274921555,1745317576,-1575191908,1680301081,-561972419,1159455290,-1053537822,-1446516486,-1200230582,1578310371,-54691936,-1399290386,1419184470,-1892821147,1363556720,1884227913,1501070140,465016563,1531432641,-709975292,1373781226,-487807785,156224046,1914444144,785846366,-495738493,-373083631,-1390269236,-557870744,1891881129,1974042573,589487790,869321595,61754967,1406913899,-1256789916,-569230157,-909608193,-402402513,-598486180,-1588719892,-803663374,1936729254,258178715,-1599397265,-344518093,78111943,363752077,900105006,-832490497,-1220669172,1966634019,2065377010,-948357158,2035570746,701398792,1556138734,118141842,877448264,-1238208509,156585429,-1710436415,-382279060,-1992625203,-1481937792,860796709,921550998,-845648543,1680735631,620008797,703338533,-1164096915,318267583,-136971687,1558663118,1216959677,-1279899784,1565874661,1368797804,-912853106,-742421545,382465666,-288379587,619443990,-239193930,-703050682,334850631,1369603310,-397452782,-1518205257,1405660046); -/*FRC*/Random.twister.import_mti(2); void (makeScript(14)); -/*FRC*/count=304; tryItOut("mathy5 = (function(x, y) { return (mathy0(Math.expm1(( + (((Math.fround((( ~ x) != Math.fround(y))) >>> 0) ? ((Math.imul((Math.fround((Math.fround(Math.pow(y, y)) | 0)) | 0), ( ~ y)) ? (((( + (Math.atan(1/0) >>> 0)) >>> 0) !== (x | 0)) >>> 0) : Math.fround(Math.atan2((( + ( - x)) >>> 0), (x | 0)))) >>> 0) : ((Math.hypot((y >>> x), (0x0ffffffff | 0)) | 0) >>> 0)) >>> 0))), (( + Math.max((( + Math.atan2(Math.fround((x / Math.pow(Math.atan2(y, y), x))), y)) >>> 0), y)) & Math.tanh(Math.fround(( ! Math.fround(y)))))) | 0); }); testMathyFunction(mathy5, [0x100000001, 0x07fffffff, 0x0ffffffff, Number.MAX_VALUE, -Number.MAX_VALUE, -0, -0x080000001, 0x080000000, -0x100000000, 0x080000001, 1, -0x080000000, -0x07fffffff, -0x0ffffffff, 0x100000001, 42, Number.MIN_VALUE, 0, -1/0, -Number.MIN_VALUE, 0/0, 1/0, Math.PI, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(410); void (makeScript(14)); -/*FRC*/count=305; tryItOut("/*ODP-3*/Object.defineProperty(b2, \"1\", { configurable: false, enumerable: false, writable: true, value: i0 });\n(-5);\n"); -/*FRC*/Random.twister.import_mti(476); void (makeScript(14)); -/*FRC*/count=306; tryItOut("a1.pop(h1, a1, h2);"); -/*FRC*/Random.twister.import_mti(503); void (makeScript(14)); -/*FRC*/count=307; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return (( ! (Math.imul(Math.hypot(Math.fround(Math.fround(x)), (y ? ((mathy0((-0x080000001 >>> 0), (y | 0)) | 0) ? (y << Math.fround(mathy2((0x0ffffffff >>> 0), (x >>> 0)))) : y) : x)), ((((Math.log10(( - x)) | 0) >>> 0) ** (Math.max((((x | 0) % ( + y)) | 0), ( ~ y)) | 0)) | 0)) >>> 0)) >>> 0); }); testMathyFunction(mathy5, [({valueOf:function(){return 0;}}), (new Number(-0)), '0', (new Boolean(false)), (new Boolean(true)), NaN, null, [0], (function(){return 0;}), ({valueOf:function(){return '0';}}), [], undefined, '\\0', -0, (new String('')), 0, '/0/', (new Number(0)), 0.1, ({toString:function(){return '0';}}), 1, objectEmulatingUndefined(), false, '', /0/, true]); "); -/*FRC*/Random.twister.import_mta(1891473633,699962687,-1029358570,-1418263056,202918024,874023867,29685030,-526282406,-1593179907,-1848247631,-1915533439,-698559492,-1724639719,-834356444,-585301562,-1204260016,1742770078,740528110,973509948,-2120985510,-1772657109,-1903018344,910757622,1810654796,-768362138,-466548061,-1757202265,1650779796,-67556059,2043546218,601594883,147550490,-213342517,-984881411,1306360246,-508398714,117836841,1723556636,1537047511,-377394571,-1633353009,-1527625211,-2054334883,-12511172,-1485620002,1913857111,1013849572,-535340045,-1028321005,-1721990694,2041542030,-37194537,-1901558594,372879308,-2140055971,812536781,211455089,-1237511738,-1633004881,733080602,1278578368,154172937,-1702761056,-2025175323,1548494028,-748618883,194097249,-763346948,1572239245,-42070297,985357919,-50949889,1392925012,1824146442,1038084475,-274605522,1006372431,1291091226,-58237745,1168747785,-1467753031,820318240,-189202110,-11749765,2119072293,-490350557,-1935000457,-659438423,-1833897376,-20621023,219492674,1876155272,2131451869,-236497466,-448763409,-570080101,154791487,1721276293,1290502677,-1480550077,-812754344,-113514671,1620166011,1518042547,1814578732,215110470,536047970,-1682790642,1347170872,1693130858,-380343556,469771553,8303320,-1324060973,-248679761,1890720689,-1909948467,-111560195,-198474276,-1547976177,-1314033442,-1356065182,-585001257,-1581253508,846934989,-1840428665,-1544173195,-1217988044,-1167872170,-1108275050,1667721361,-2146168129,11735566,-299162800,-650989007,-367162772,-1467752524,684859886,1840317787,-1904125236,-781829497,-1462471500,-504047184,-1192213849,1213028554,470546614,-1745267585,1009398560,-1092545005,863452100,194991012,1586485722,-2138364621,1797721324,518369881,-1499115255,-728061867,-2131313326,1928168455,-1791554863,2005642592,-814773547,-1700389503,1693176758,56769403,1188938140,-4687896,-337604765,1462033391,1736146789,1851971675,-115641823,916366101,-62930158,-847951791,-2111560505,1765696773,135950675,1703761624,-601441839,1821293034,-1144297510,293764003,1936976325,-1159840087,-1464319054,1019411762,1079761289,210786840,-851084071,-985587153,1004240944,-1247216179,360906339,195570187,2006683907,412238859,-750522293,1905538142,-351953728,-1497323533,-1175909673,-1318712841,164111630,-377255814,-503756809,-599710315,478846081,1080793300,-1369598508,2019753863,106274556,148775609,-395063675,683063791,1393373667,-1655702991,-2050960880,-771974922,-1451230423,1777890809,-1882671061,512793509,-1348135646,-1299849490,932928786,895021411,-754401944,-494641081,-391781447,2060934058,562466520,147569810,141731156,821749339,539530188,-295627822,-1252138882,-1881603639,-526034580,-1984517473,1902376521,1471019455,-1105114929,-694745522,654556143,-886714001,-404475133,1962948283,570489379,392226032,-919547389,-1951490315,-180004776,-169337148,-489041000,-1562431609,1943194071,1240480329,-447174979,-593959247,-2053254570,-880867363,883888465,1109313125,809901429,-454166775,252900441,989803364,1557670362,858361688,1258791919,-298331938,1745339323,-1306178829,-576080248,-1232210249,-161185336,973241730,-1100129224,1011925667,1029787138,800186699,-1108940342,492671148,1215967987,733926704,-2139341467,883066798,311224436,1690268430,-933304349,825822955,-1086771261,1977057226,-699399894,1036200048,879091934,555905547,-2129442770,-567437820,-795511727,121895279,1291814750,1516398054,-1891700481,-1795163714,-1306208013,177559283,-1714506470,-688955349,325189615,1073172849,1441601910,-1972729009,1292821262,-2072569420,1284243463,-1645976217,-690441959,-1323427443,-698547432,980134091,843119207,-2084715814,-124886872,267784292,692709681,1312283754,1491065652,81843544,-1458981764,-552098321,1327327755,1937432100,-1015409165,1963604495,1060529866,299940704,1323915510,-432880743,-825534196,1338574210,-5052399,-2050195061,744846999,1090268913,-6651045,1567921685,-154415523,1140303997,294107802,1652154913,-1754119630,2090460874,-469088323,1569015334,1844713641,-1520144252,-989773909,-946152625,-383427859,-1869796804,-1073830121,24365528,1425776459,-924370780,-1345149729,-273145264,1627064713,-1258558842,2111723070,-1727489265,1699255801,-312855076,1332278148,1188778427,641443909,1938367870,-1147730864,928803863,-747656898,475298861,-1466662472,-434747256,135981979,-745720963,-636451344,1765741672,1403203196,355724451,-1586870183,-1080305080,-1080397901,1199889272,-639109471,1515250405,-12540955,-2048413204,-668287077,972868675,459852663,-926306057,636098768,1272147582,-984089889,-1421837130,571001378,-1339336290,-1868477372,2017671247,2062843413,918818097,-1543488581,-2067910265,836905,330700046,707530635,-1180964559,1281002430,-567565180,1203905399,-1254982313,-1522965432,-376322840,1704061469,-444818905,2077942700,1721737603,191283121,-1659331009,543574847,-586182428,1824091789,181377821,-1500797974,-1049868880,-540464562,404007711,225068111,-991953235,865664906,660000534,-1708922881,2059206165,1991764486,1594577275,991886950,-1176317497,-79030380,38013594,-1190681449,1435408038,349339818,1445169994,-1459526591,-1389861472,-1203180380,-1814675197,1228115901,-296671540,-1506586667,-367286230,-1598909178,-2078573021,-1924888546,-1227790200,-662756324,1203172098,305487991,-118446564,-1398773045,484463281,-716853972,-795416909,881193934,1994392503,-874347110,-6287326,-1312527591,80282515,-645719,298146510,-30875894,1759076535,-1339935420,1891869606,445769065,-827840717,1214689194,-1324631035,441585035,153262391,-471516957,-1874195270,-76283254,136718721,2073454032,267341415,1420968009,-597213117,-341435470,585741038,-1475611266,-535895679,1764380816,1954394480,-1399162958,311827510,1425541389,-271311944,-1073586630,-381026674,-218703176,-188038773,261883431,-923472423,1723763835,1328966404,-1736779792,209159111,-1416977305,615493102,-938707828,1256286910,765249254,-2048443489,-980995119,186965125,-2063333265,-1399565390,1520412449,1577532425,-1594077478,-1557469763,-510769120,797341787,-1268608714,872143646,1796515084,165146323,2087433953,1934645470,-767861949,650609836,58342922,-1099190879,271658486,-85900666,-1363618963,-2031374888,-1452633256,-1870692643,-1484197168,1844317222,2000277714,1337217819,-1395542714,1155571115,-1987660919,541237951,-1844214097,1621498570,1687901528,-1076448344,-1992348524,-32764260,-54937685,952825738,-1306163166,314290521,-337287131,2093117921,686859784,-2044555000,-1009935993,2140598197,-1354460741,-891488218,-240752712,-1918827611,-1029582870,-1080733893,-1106129688,1350142928,-2032604311,-1179970634,-746724149,-951763046,-1828162571,-1512521421,-2090712826,-1990620802,1558835099,-615918103,841870185,858701769,1951662539,1722332789,650911072,-1906910239,1713950637,-1030336695,-1029880750,-162584379,-781490035,-706436169,-1978632554,-894137726,-336175104,-2141218674,-1025690801,-120742225,-1729574852,1954538417,994766819,1803302439,2118109824,1905806757,-1756699585,-1950498118,-1941083908,-1341938842,-83452342); -/*FRC*/Random.twister.import_mti(134); void (makeScript(14)); -/*FRC*/count=308; tryItOut("mathy1 = (function(x, y) { return Math.fround(( ~ Math.fround(( + (Math.hypot((Math.asinh((y !== ( + -0))) | 0), (( + Math.expm1(y)) >>> 0)) * (mathy0((y | 0), (Math.min(( + x), ( + ((( + (0x080000000 > ( + x))) | ( + ((y | 0) - (y | 0)))) | 0))) | 0)) | 0)))))); }); testMathyFunction(mathy1, [-0x080000000, 0, 0x100000000, -0x07fffffff, 0x100000001, Number.MIN_VALUE, Math.PI, 0x100000001, -0x0ffffffff, 1/0, 0x07fffffff, -0x100000000, -1/0, -Number.MIN_VALUE, 1, 0x0ffffffff, -0x080000001, 0x080000000, -Number.MAX_VALUE, 42, 0/0, Number.MAX_VALUE, -0, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(347); void (makeScript(14)); -/*FRC*/count=309; tryItOut("/*oLoop*/for (var tyivhk = 0; tyivhk < 22; ++tyivhk) { o0.o1.h2.getOwnPropertyNames = f0; } "); -/*FRC*/Random.twister.import_mti(386); void (makeScript(14)); -/*FRC*/count=310; tryItOut("window;"); -/*FRC*/Random.twister.import_mti(407); void (makeScript(14)); -/*FRC*/count=311; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return ( ! (( - (Math.max(( + (y || ( + Math.trunc((y >>> 0))))), (mathy0((-0x080000001 | 0), (( + Math.asinh(x)) | 0)) | 0)) >>> 0)) >>> 0)); }); testMathyFunction(mathy1, [1, (new Boolean(false)), 0, undefined, '', '0', [], [0], ({valueOf:function(){return 0;}}), true, '/0/', (function(){return 0;}), (new Number(0)), (new Boolean(true)), false, null, 0.1, (new String('')), '\\0', (new Number(-0)), /0/, -0, ({toString:function(){return '0';}}), objectEmulatingUndefined(), NaN, ({valueOf:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mti(540); void (makeScript(14)); -/*FRC*/count=312; tryItOut("let (w = ((void version(180))), d, eval = \"\\uD4BF\", x, x) { o2.t2 = t1.subarray(16, 7); }"); -/*FRC*/Random.twister.import_mta(1922324901,-1531629593,-1919861405,2146494471,-1737736587,-936654236,364564605,-2107711777,347453272,1956736937,1227269084,1706680909,-142405162,382580908,652756925,1161054974,-1307444148,-1715635431,13037316,-1047193916,1835339975,-490770870,2041362584,-147687369,-1395517703,1738232283,-737470718,1298522789,427224872,1838802169,2143247137,-969719239,-255067120,-67755292,280982268,126101039,1608834819,-1106667991,188982799,389444616,347651987,-1009078034,1925892177,-1754898238,-744891010,962707940,857799385,-2098280893,974760683,601680828,-1661831982,-21589096,-1336491918,-1686892181,2016951726,-892641215,265029705,-2139221310,-52850100,-1959615808,634938239,-1634289709,-1818354672,-2139671382,378241716,920371397,-1980593416,1942549818,720584626,1921283960,2131549372,775282600,610812530,2132271742,-1687124004,-669589175,-213937247,2011035659,-816212587,-72786508,-1819275894,-973303677,1466597627,-488206754,1469872487,-828836822,192449921,562108807,1447569675,910768903,762841261,1747269634,1888814409,1520646189,-329769191,-726212873,1235338238,792165743,1906114292,1877017773,-1643960665,-424731643,-528003505,-361536683,-305188335,756025951,-1512921351,-2010580835,1533001893,1087865870,2073220605,313083226,-713388357,239735344,559145789,2002088375,391296665,-1897987227,-951494657,-1876798026,824739658,-1196552016,-928699954,-868046082,1000648827,-329385589,-1816196714,399555861,1935953581,1834761992,1552255569,1266505090,-1307469369,1493547637,798056983,172413907,-191537619,217765839,-422648506,-566372921,-536302740,1124186054,-1369164672,1844527798,1919830714,-509328834,-1943125293,-1598046342,1522639848,-1145830285,1064747291,1672241344,-617917157,277988395,590383875,1664784936,-403460999,-1919910150,-458562203,879855019,309248243,-1866783820,-67937710,-1191505955,-1317181855,1601839422,-2006736330,1296854656,596255737,1345704558,1497153124,-91416865,-1942328917,-318134866,872401561,-1856638020,-1242222978,-1260111260,1960211888,164737856,-1298062762,454391080,1360470917,164015150,-1761743309,-504090206,120885491,1446094556,963831258,1107505790,-1903156013,1150939555,1086438427,956589289,564607320,471341988,-331307167,-1551642682,128918793,-112829201,-1314376577,-1491926447,1646792679,-1164501028,-1881351031,901672284,366000845,-696589137,-968514969,819817643,-1992640024,1473456897,1187461021,1292661926,1918049121,1868747624,-636968652,478261194,-151149912,-2037859324,-523033014,-1478971224,-2137493842,-755028531,-679426443,866609928,-763182850,-1696671399,1240428260,-252014410,1865658219,-1677074372,-871196466,-1798368369,-1840605383,595934897,772775830,-1748855833,367742715,709948486,-143330473,-1808397379,-1020502458,-648380565,1395922481,-1134774420,728743834,-1897022651,1790419844,1914489568,1252172265,1879959900,490339831,-1359013792,1007225705,-787363788,-1921503027,-1034946854,1838653880,126828439,-1187460145,-335003187,-992272808,-404550418,1059203148,-1606554284,-910704901,164046369,-306797565,1801326589,736952810,-461228783,-731213594,-1287983233,-331735801,-128458385,1492036440,-1041020397,-511689340,2004226556,-2050705814,-152535596,-734522204,1096990751,1028373348,-385419052,302255277,2139693224,-1747926039,-1581144681,1028716420,-685787874,-1336940549,-216451811,1491137967,1947380618,1756792599,-157985434,784104383,1266583920,-1906972535,1104792500,-26664218,-569466542,-381013845,-2061080246,1001619730,1339168300,-920925682,-1525317583,845070710,-781229824,-462522223,-1757054727,1191602176,1416865233,-922252325,-1165849919,-1706962863,-1324172976,831371681,677739427,1419645723,1216291475,1399868731,912783046,-498253590,-1189558126,-893324897,-487119645,-17319573,457986105,-745140347,-1670395413,815612603,-1194168963,1598863211,1935837261,903735585,2137743272,1764736694,1186423292,-779831968,-860076413,1105529073,2118119512,921150660,-962954081,449005377,810962223,-998148173,-1819217484,-404432750,-302777613,-1126355436,497479102,-1028750461,1312272915,-1326089592,1221870783,-1264605220,1742206729,-860802937,-1272137023,-1081104203,-1027770092,282867575,-1747666364,-1435204643,-1273380413,320760233,-404572190,168343581,-1165797315,-955529544,-526074902,832659598,112350116,2120737512,428725199,958795956,-200145462,2003884788,-1795651523,1351990248,1415891972,1501153107,1727089351,-1184189302,1751260380,826710830,-290419899,-1715493320,-341717110,-122215153,-676666796,-157469885,466577042,261159373,1238155093,2041934026,-1902927299,-1012858924,-1877173951,256341972,561400811,1490409041,-1431007591,1397084938,-1271001219,-1380703237,345462900,1794940064,-597477137,-1891666793,816443229,-836926108,190144660,582268028,1876192857,-1007827571,-1573472468,1317316992,-1735899883,1212385815,-1407592251,-2069156551,468669537,1000926550,-173215705,1940687516,-1587866373,-622171451,-1983920228,-985713318,-1493991233,1597634956,1547197624,-932267527,-39815148,348130147,1643674858,-75788216,1046376161,668621513,1081129674,-1693990089,1697316470,-629294238,-1044747293,1467240281,-1119384282,969812829,-107805349,391568294,528178228,-1394678044,-1076871371,1637390141,-80082008,1591608506,-414760148,1943827506,-183857064,-782182424,1317272255,1181705800,-1800434986,69471065,-11268792,369294033,-2075357258,-1761713670,-634618852,-726711646,-925953408,1475184685,896707064,-1310233585,-967455519,135051883,1961600526,-301619279,1612460105,-631313288,368472171,-1815118340,124020873,-2009393640,1163292805,868399860,-1564748792,147309050,-2121090906,1954359140,816644124,1452621077,-1257105914,1473488362,1666285592,-957750618,-1118911376,-330163248,-1310627001,-1251581349,-608246468,1631267365,-862996367,1167903117,-472770184,560197378,1240417315,-1870817912,-244720457,-1588620444,715261402,1268142965,449561094,-618471706,1870436039,2144655345,179774296,1343525324,231092808,-530893291,-1253615953,-1330274233,1389311508,-632062116,-1474098369,709476893,1598103152,-1789374937,-215071981,1058353724,131090172,-1088108374,1805855993,-454741114,2039299879,813175638,2125349999,-463030097,-1704703603,-1153460796,477410910,-116772949,217913570,-432954678,401327607,483027775,-2109259126,1705217966,-1799731463,-2105270021,1947363533,-190841280,93276001,-2037925598,448785925,208583267,1087262686,-1969240111,1084747455,939335175,1255927407,-1740688222,894092659,1604691437,30530835,1615217230,-1500741410,1783079772,905374784,1047789699,-67076028,-1090734803,-1578169440,-347880856,943516063,-1935467258,2048866646,1118702538,-1433254293,-732727432,-333384877,-1201535483,-683853807,-1218740692,123068609,-174220734,-81564662,901856774,-1536135844,1472921391,720071910,389771769,-1186823604,-192628398,-1809095374,1352634164,2135445955,-2115364413,-745651149,-149989571,-1919089684,1552279684,1551652341,-2115422774,928978611,1822335301,-1241791392,403744794,-1169258924,-497250839,366747462,1467873692,-1870525149,2082294149,-597604507,-1383629836,-1598622532,-1440109199,383758158); -/*FRC*/Random.twister.import_mti(9); void (makeScript(14)); -/*FRC*/count=313; tryItOut("e1.__proto__ = i2;"); -/*FRC*/Random.twister.import_mti(21); void (makeScript(14)); -/*FRC*/count=314; tryItOut("\"use strict\"; /*tLoop*/for (let y of /*MARR*/[({x:3}), new Number(1), new String('q'), new String('q'), new String('q'), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), ({x:3}), new String('q'), new String('q')]) { a0 = Array.prototype.filter.apply(a1, [f1]);\nselectforgc(o0);\n }"); -/*FRC*/Random.twister.import_mti(114); void (makeScript(14)); -/*FRC*/count=315; tryItOut("/*iii*/v2 = g1.eval(\"delete eval.x\");/*hhh*/function ousclg(w, x){for (var v of a2) { o2.a0.toString = (function() { try { Array.prototype.forEach.call(g2.a0, (function() { g1.o1.s1 = g2.objectEmulatingUndefined(); return g0; }), h0); } catch(e0) { } try { h1.fix = f0; } catch(e1) { } v2 = t1.length; return p0; }); }}function ((4277))((\n([])) , Math.min(x, -24))([[, {a: {x: [, ], x: {y: [], \u3056: {z: {}, x: [], z: []}, x, x: e}, x: x}, a: {x, z, x}, eval, x: [], x: x, d}, y, ], , ], x) { \u000creturn x } function f1(s2) { return (4277) } "); -/*FRC*/Random.twister.import_mta(-1868742210,-800008285,-1354990711,-326377681,-360298737,276113205,138102513,1159572600,-2110894880,2084997055,23121760,1753504737,-10955989,667463930,906853643,1945395846,162870716,-816053483,274949183,564641240,973789105,1583540272,-851058019,210533934,1223929630,1686184449,1731331224,1157168515,64854630,578564214,-1577171550,1137513310,-2007506603,1005794274,999405363,1813034395,263437399,429282946,-1385645381,-865266022,2111112399,671313166,-166508427,2097997276,1028168728,2078498299,-1507738337,-471974045,1369362196,-1786840738,443660218,-2108236965,352899977,728256910,19566041,-417292378,-106165190,1765413504,1524763988,1731880836,697553923,676829493,-1157524995,362530272,1696732049,1998926158,-1930499387,-1004976079,2009186563,2045315094,-2085264126,370158176,-1059062665,465221951,1901023181,1986599157,952774854,1779120311,-1256473510,505777896,-830189210,1130011821,-148468786,-87411193,1403509787,850481582,-371979179,1752320034,-1747296969,477874549,863433864,695805027,-250651572,-1662646873,1374161836,1813454853,251770574,1286821918,-1638583659,-1063510375,1598892251,-1097289198,-1889500819,688311153,1926132096,1739847795,1828562902,1103180502,-69916869,-973410300,-975496484,-165069297,-1527312288,-1463636413,-347255769,48004635,1863249370,1541638212,1655910145,318902480,110938718,-1083160063,157139896,-1156694253,-1517195454,432739591,-551101411,1088528796,-2081863381,134206896,2003934421,1515389792,1571383002,-1534475319,-1016412346,907694574,744200235,208814239,-238674752,-819946212,170129178,-204002874,259366524,156186123,1316775280,997796121,-902064592,-698399696,-1733950280,1069154297,1026238594,1387051160,-961833155,-1806000543,-1277554786,-816649907,-764249724,1775886998,-1222501689,1688219366,231921339,-75623413,-540354252,-841434740,796090177,-1901193526,637655551,-1087324380,1656817496,-1264489584,-1861943613,-2135940633,2002063300,-1599006755,-1373210368,817706083,1870983538,1142897243,-118990364,-1481890810,-328879820,1522590581,1021296520,517298880,182788487,-1740835988,-2121624315,-924187243,-853448084,639804595,746156063,238227710,-2099289494,-447871250,-181444136,-1695949463,-172913985,-1927946892,-1891569074,-689448167,1942205371,479727230,-1990137124,-1904651857,630679405,302707834,1639679675,220542673,1291519334,1478014064,-1365413718,998383323,299445472,-859857878,-2109035052,890566784,-200388175,-652059459,1452818756,655649465,-1016179337,1011973842,739664220,1599055889,-110804680,-2090283762,-1028099267,-194316596,-399663112,1101864163,-493932751,-1936782488,-1021698515,-669598286,-1915255809,-1792441557,-290488685,-761407294,2108432834,1575623263,-186972677,1469796904,-2041451028,-114848133,-781035357,1171569650,-1076244315,1330710131,1735167296,1897661110,881494656,-546840262,1946070577,-1606536717,1819285913,-597085473,1130089243,-684354178,-654164918,230896749,-721443877,1509701663,534852588,1344448625,159948840,1354487065,294008149,-771299823,-995829201,-471480192,-700100725,1467864171,-1149855077,1228145475,117276427,1038719672,747629704,1790028152,-101854299,401246396,1344040804,1798735755,513363830,-418786936,1572433642,-1964459043,1493104592,-1150089944,-507512031,-441849281,1041506159,-1542631245,-1751049441,2039881933,-32498188,-627953065,1118020261,1306781698,867135192,1593686252,2069257445,1316740798,426657884,-714631092,681053202,-389907245,969704958,-368462751,-1999049622,-1375081611,-763525497,-1197977460,-535077619,-1973995435,-616355307,709961733,-667796278,-413225857,1911584971,817967171,299632809,-491801858,-786431597,-1078910836,1468048253,-1351380256,-1676641584,-1557798709,1458278588,1762913543,-39300174,-1039284579,-1332958119,-1380207020,-996100937,226217041,1698891005,1178427027,-912485925,-1872703685,-1952899395,-1014032745,-41226875,-1762338435,1694265448,2042690915,-1454924224,-755640031,1045683273,-1307195202,-221886519,-698154229,-163948383,-2125968617,238212931,1001830453,-101925786,1863000465,-1489923616,1206302004,1315604626,2084237274,-184239023,-359334738,1831664661,547403684,-993345474,-971962837,819165688,-537781641,985558522,-1838118495,-1087359528,-1447135892,-1509090875,-1065962241,1021367851,35183094,-949821024,-633823385,-1370252156,-933076252,1546001804,-1170693008,1139508372,43403697,-825214118,291998974,-1890641307,-949381981,1669876977,1672252509,-75566833,-1017971801,-723137010,-2138624474,-112797479,264516346,1029623442,1267709857,1055946268,-805959958,-507787236,673663640,-844320911,1300890131,738120597,-2050533199,-640199660,-217243990,1419704058,1067151319,788914116,1595776913,162939620,-365975330,1669862649,1025714721,-1596877043,975253619,-1269473928,-1838336744,262491964,144244587,34701769,1411240973,35176950,1847051536,-1085880654,-256462958,131885837,-773135664,1456805812,52698134,-950778287,594016672,1980013100,329424009,1163010769,-1028548210,-62676385,-1074305552,-214728913,2129382410,-115736104,-1038938112,1434523010,-296711994,-981140484,-559614417,1106013826,1015735369,648675196,-1995235602,-69773098,-29168502,-2024950874,189518960,-1324216644,-1401611152,-340452316,-197543450,-1347630329,-2044783257,752129346,1587253990,1472061236,801222792,1748063372,1415061595,-83768928,-1710397346,683836924,-712085004,724995891,-1785529975,1805997642,-1250849704,625325973,-1359985701,-1706302732,-1032160610,896506404,1853144359,80092564,-790265164,-679890698,-790484777,-1570787198,100691606,1098859125,1307263189,1349683530,1807263463,-900700641,1994847354,-110312573,-1112760962,1725240423,-1744671800,395534715,1892971235,-65953852,-281776774,124705766,276362856,-1465523109,-1411728515,1524599607,1311291639,1526121286,1434952750,1800725849,140066402,-299759675,1568432708,-389280964,327512092,1253813007,826523704,2093855073,-702917358,-596563085,-343504528,-1907821686,-218296796,932848614,1451221835,-2090669058,-717088371,-87615628,-1153655842,140373381,1715870944,-371091681,-1756723137,1120980438,-535879868,1565949888,-131640154,738765501,1886963357,-26493924,-2052196824,-1453000880,-729948223,1992277042,583326156,810737882,1179485395,-1097694775,626091178,1009123651,1146804850,1076126834,1822715804,-1294139800,-18116829,375030080,800276919,-1914924613,1491593088,-199193647,-407553247,-94889605,-981267574,1405951325,1027832980,1517242561,-844510046,-2051892974,299868614,1664846659,796208862,-319448829,-131779072,-488485522,-2023250179,326485787,-261368286,-62400580,795202214,-1208538145,-1815803942,-2146178841,1644700221,-1250911773,365377412,-1499943067,-808816272,-1761260885,936141590,848855306,908529526,-748375976,-1572441637,-1017947311,1090269523,-664454344,-679480766,252898642,1072735739,817440313,-563098262,1154897920,-1457515038,1829635394,-1364785567,180705634,-211681807,-1597684160,266588313,531696283,653708657,1535738717,-1527650645,1444946669,-2071045908,-728457424,-1380102923,-1828093447,419014761,-873924223,-251103226); -/*FRC*/Random.twister.import_mti(247); void (makeScript(14)); -/*FRC*/count=316; tryItOut("{/* no regression tests found *//*iii*//*oLoop*/for (aamxqs = 0; aamxqs < 2; ++aamxqs) { print(x); } /*hhh*/function uhembh(x = x, x, e, a, x, b, a, x, \u3056 = -3, x = '' , e = '' , c = window, x, x, x, , e, window, x = b, a = true, w, x, a, \"\\u3BE5\" = /(?:(\\1))/g, x, length, let = \"\\u7AB3\", d, x, e, x, c, x, c, window, z, this.d, d, w = /(?=\\w$\\b+(?!\\xD1)?|\\x22|.+?.[^\uf8a6\\S\\D])|(?:\\b)|(?:([^]+?)(?!^)|.)?/gy, b, x, NaN, x, e, \u3056, window, e, x, a, get, a, x, \u3056, c = /(?:\\3)*/gi, window, NaN, x, eval = -11, x, a, a = /[\\u0027-\ucbfb\\W]/, \"19\", w, x, x = /x/ , z, x = \"\" , x = 23, window, x, \u3056, c, x, y, x){print(((function too_much_recursion(rqbfhf) { v1 = this.a2.some((function(a0, a1, a2) { var r0 = x * x; x = 3 * a0; var r1 = 0 & a1; var r2 = r1 - 4; print(r2); a0 = 3 / 2; var r3 = 9 & r1; var r4 = a2 & 8; a1 = 3 & x; var r5 = 3 + a0; var r6 = r5 + a0; print(r1); var r7 = r1 % 1; print(r4); var r8 = r4 & r3; var r9 = r0 / a2; var r10 = r6 & 0; var r11 = r1 & x; var r12 = 8 ^ x; r7 = r8 | r12; var r13 = r3 * r5; a2 = r8 % x; r10 = r8 % r4; print(r10); var r14 = r8 * a0; var r15 = r1 + r2; var r16 = r2 % 7; var r17 = r8 + r12; var r18 = 2 | 6; r18 = r0 * r3; var r19 = 0 | r0; r9 = r6 | r17; r6 = 5 % r0; var r20 = r0 ^ 4; var r21 = r10 + a2; var r22 = r7 ^ r20; var r23 = r21 * r0; var r24 = 8 | 0; var r25 = r3 % a0; var r26 = r14 % r13; var r27 = r22 * r4; var r28 = a1 | r16; var r29 = r9 / 8; var r30 = 4 + r14; var r31 = 2 | 1; r12 = r18 | r18; print(r28); var r32 = 8 + r8; var r33 = r32 - r26; a0 = r8 % r8; var r34 = r6 / r26; var r35 = r24 - 4; var r36 = r35 + 0; var r37 = r7 % a0; var r38 = 7 * r13; var r39 = r25 | r37; r12 = 5 % r31; var r40 = r9 / 4; var r41 = 3 % r29; a0 = r17 * r19; var r42 = 6 - r14; r3 = r37 & r38; var r43 = r42 + r40; r13 = 6 | 2; var r44 = r23 & r9; print(r25); r10 = a0 * r5; var r45 = r10 + 7; var r46 = 6 & r21; var r47 = r41 & r13; a0 = r28 ^ r32; return a0; }));; if (rqbfhf > 0) { ; too_much_recursion(rqbfhf - 1); } else { } })(77566)));} }"); -/*FRC*/Random.twister.import_mta(1324766070,-1616826562,-1454134840,109172222,1265817350,1207227995,-2089358670,-1592695409,230160086,-1026551479,1959883312,1777261028,-1394420397,952743009,-1187763624,-2135344069,-652812061,2017314807,1083105885,-1678034177,-632174604,-2123219379,-1258736303,248611587,-1671907910,836737014,-834577851,695306352,1241112939,1808492571,1275082499,-1892347478,532807776,387036058,-665337511,1986624271,752614088,775785440,1967432594,-819512101,5564321,1397609708,-2109933737,1677411052,-34700881,-154776284,-1592389139,369222867,-1110494027,-87618161,-1227019433,172566768,1671124636,1136660671,-1388413007,7608477,-1706578291,-1079159562,2031316331,1070894695,610728837,1345795599,1629670719,-1304020922,-1062457847,2051521230,-745248519,-1071345381,-337883982,-727861958,1466403549,1968628338,1790809727,-1649641905,-1389127418,1742418990,1975698352,1760902061,410744499,-1314475408,-445537397,-2083136336,-1428800626,1622773972,1803304156,-971927774,-1119404269,522401439,788815579,1337804081,-2041374953,-759223511,135095266,1092456278,-1875355489,2040160990,597412531,1453797888,1205746335,141509502,-1998663332,591546997,1680635334,1519442209,1392186105,978641827,-764645219,-157821006,-940709791,-1987944468,-904074618,1649119221,541004354,-327326547,-507249152,1166128278,951278850,783908223,-1669621303,-1381110841,-485910506,2107819731,92507606,-447119956,-484370743,-1368451769,1939005981,-906018927,-373111043,-1446394384,-1888967348,-1767200781,-1589763731,-288206849,1627302765,1358332844,1374181308,-562955110,-123910802,-1285705674,-789702828,-1919542535,-1260899527,-1826794827,-444781825,-2079460057,-1012906554,-671397090,-238842975,-53355637,-1237316001,-1145040181,6740038,-1674651253,1239575705,168427491,1496177236,1954945698,-243966237,-668610037,-1214740452,-1384963299,1081455547,1626310888,-69092860,-310551564,-229451554,-229153573,-1151154819,-831005046,1748907587,1284300188,-557022650,1453839564,-1753119778,1928751537,956426297,-2137506387,-370514555,1830237198,-1838443004,-154201440,856043200,-153727199,1700167721,872389312,-1884454271,1851879212,-1609705905,-1244667252,-861243710,-897979586,-2015739815,661867192,-598423297,1122113149,1401032799,1509073140,-1448732110,-590945883,2083200392,1382506045,1807641112,-306139097,1703610597,2006447366,157058088,1705026031,-1472137504,971467504,1305564420,-1709354725,1725216473,-1209058226,1113009516,-1923830829,327409570,259596794,1822437471,1631412172,428484042,1088861735,995433295,1236958088,1797941620,1779285825,-806295396,-1799134036,899902942,2103443868,-442262521,1985346751,2045607,-1827905652,1842960539,-845251317,-859495855,1770443486,-876052479,-2116002499,790850295,-1216140938,-1444240293,-320590782,-463507860,1426225589,1218722678,2089507093,-665207865,10727739,-342325039,-1743333993,-182742014,1215451212,1309092568,561011907,-1563798752,-2015393856,-1355087269,1564964866,1920874143,1362585066,1563454316,-1221220387,31127957,1676798614,-1650147961,1543441739,-1837310455,-2020299731,1270762183,1062389207,1118996963,-484589162,-696429622,484741194,-951410193,-2133719386,1724907666,-634766225,294499276,1965781331,-1284544870,15484993,-997836037,-1101450929,-690104452,959947517,964887284,-855557814,-1047795359,-886521154,1944644559,240596328,1837602704,-1701308232,1270452239,-223195554,318058927,364061432,-283673067,-2080181807,1695128887,-945673006,-2004163865,291527235,1253725340,-35843212,1848363795,-1605954805,570567218,-1009825385,1968985488,-810532925,1463499373,-1264258773,1485046863,-613438332,86408634,181786320,592963953,145443655,1570108915,1701709709,-1176508432,-683556177,-1975116924,185595209,1888578042,-932011965,-119268081,799299355,-1116480249,625979382,1883693166,358832845,859874082,1318011245,654684363,37971721,731786347,-322314406,-1767425015,-939254546,-1372569269,1186296074,1513758793,479551748,489020450,2065246411,319389655,123443624,-1798819621,-546383334,-105334376,2095129590,-1395871406,935256044,1975366546,-1845468018,-652775938,532848660,-365240282,1307014816,-772700455,-1131194811,-1447187636,618140701,116415519,-1637628354,-720490222,1383141305,-762367759,545992613,586988107,1836560389,223328960,59759225,-255117173,-1298859390,-1729984549,436233615,-109337064,-754195899,1975470181,-2399727,380005094,-514190256,-939459486,-1327483680,-320486623,-306043741,1958794600,-2009974296,1243031391,-962723367,-2059402973,-2115688120,-401000505,477288753,-263349826,-595433232,2028164432,986071631,-1169155798,-848357047,-1508932752,1411963793,-2135191575,1277120462,-1311751514,-137065400,-46744460,1208637341,-1909011021,-2063458023,-1036204820,1047974839,1061005986,868840999,-1571500994,-1679218200,-1708183155,1333452990,-2143582154,-337518867,1430878594,-2017085937,658997482,1163306831,51191574,1271516492,-1428030392,-765473392,-663344845,752261623,-826300610,757423524,1966985432,1389731292,-1328480132,848685022,-782526631,-843061575,-206561782,-1000885327,6666285,-1121872561,2064423129,-1523234685,789827080,2015769558,-954531994,883325740,22051858,-1859246163,1940323379,-672697167,-23078537,1760918117,-451720665,1030560422,551250410,-548132018,1305737315,1249641058,-544004039,1639405761,-231665876,391366482,-62686862,-486789060,-1459963835,1456717476,1106795577,838535721,986322103,-1576778548,-773940843,1506365247,391579660,-1746464494,2013415326,598231166,-1952078055,-1513923144,-1789035276,-492795590,789891405,299756680,-1881141300,-2075439635,-52022818,946441234,2072225220,-341426930,-327306841,1709458067,-1007837090,1281047622,-1478531187,-693285146,267829953,1959147116,1391226329,-1277644736,-1166974624,44497874,-2062732374,-881575831,259516543,1337397849,1282643671,-1549145327,-570647108,-28737903,-119425464,812650737,-1030277441,-180784384,-1452786246,-427205022,-291733750,-979905814,208736852,191299319,-145842277,525784394,-745564922,2091930439,-1364838214,251321397,2093206600,-2116349360,-1754198377,-531914823,-1413797710,1165592701,-988441085,532622061,-612027355,-1472729063,268668834,-1363922415,1438718542,555654195,-279803338,-14028277,1772811765,21839125,-1011965929,-817292242,1836231405,809009907,1379213024,1213760137,-1323704577,-2022271415,-2043243929,166749715,-649177219,-1265783553,-2000295820,-1083535427,-2118747399,-1702384012,1621500338,-1569653947,-1362076953,-1562139968,-1779446253,1065451753,-1295074799,1928950234,97266575,979069812,1951005818,1189241792,701087291,1671821395,-1868550050,463391669,-2058834093,60243058,748368228,428521379,-843088977,-1047328533,1714942956,-1899610316,772317754,-660523567,-401641881,1514652568,1504490086,46595760,21025188,567812143,713955632,-1239932491,1763531743,-1507395590,-563092694,2057995987,-1210365014,650242493,960172651,1552587168,717059198,1005362340,795962281,-761188214,-516535816,1533737727,669352774,1825370032,-1612343000,431688834,1837853405,535369071,-1385258296,-1799121176,487690772,-1573181288); -/*FRC*/Random.twister.import_mti(139); void (makeScript(14)); -/*FRC*/count=317; tryItOut("mathy5 = (function(x, y) { return ((Math.log10(( + Math.fround(Math.min(x, (Math.max((((x | 0) || y) >>> 0), Math.hypot(x, (( ~ (-0x07fffffff >>> 0)) >>> 0))) >>> 0))))) | 0) !== (Math.acos(((((( - Math.round(Math.fround(x))) >>> 0) >> (mathy4((Math.fround(( + (y << Math.fround((Math.fround(x) & Math.fround(x)))))) | 0), Math.fround(Math.sign(( + y)))) >>> 0)) >>> 0) >>> 0)) | 0)); }); testMathyFunction(mathy5, [-Number.MAX_VALUE, 0x080000001, -1/0, 0/0, 0x100000000, 0x0ffffffff, -0x0ffffffff, 42, -0, 0x07fffffff, -0x080000001, 1/0, Number.MIN_VALUE, 0x100000001, Math.PI, 0, 0x100000001, 0x080000000, -0x07fffffff, Number.MAX_VALUE, -Number.MIN_VALUE, -0x100000000, -0x080000000, 1]); "); -/*FRC*/Random.twister.import_mti(397); void (makeScript(14)); -/*FRC*/count=318; tryItOut("\"use strict\"; /*ODP-3*/Object.defineProperty(h1, \"toString\", { configurable: false, enumerable: (4277) >>= x.throw(x), writable: Object.defineProperty(x, \"sign\", ({value: -3, configurable: true, enumerable: true})), value: g0 });"); -/*FRC*/Random.twister.import_mti(541); void (makeScript(14)); -/*FRC*/count=319; tryItOut("s1 += 'x';"); -/*FRC*/Random.twister.import_mti(550); void (makeScript(14)); -/*FRC*/count=320; tryItOut("mathy3 = (function(x, y) { return ((( + Math.log2((((((mathy0(x, ( + Math.atan2(Math.fround(x), Math.abs(x)))) | 0) | 0) >= (Math.pow(y, y) | 0)) | 0) >>> 0))) | 0) << ( - ( + (( + (( + Math.trunc((x === (y >>> 0)))) | ( + Number.MAX_VALUE))) ? ( + Math.sin((Math.imul(-0x080000001, Number.MIN_VALUE) && ((( ~ (x >>> 0)) >>> 0) + y)))) : (( + ((( + (x | 0)) | 0) ? ( + Math.max(x, (y === y))) : ( + y))) | 0))))); }); testMathyFunction(mathy3, [0/0, -Number.MAX_VALUE, 1/0, 0x100000001, Number.MIN_VALUE, 0x080000000, 0x0ffffffff, 1, 0, 0x100000001, -0, 0x080000001, -0x0ffffffff, 0x100000000, -0x080000001, Math.PI, -0x07fffffff, -1/0, 42, -0x100000000, -0x080000000, 0x07fffffff, Number.MAX_VALUE, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(-1909080361,-1129258205,1597125582,-705367491,1718661890,2035818505,-213499817,-57941439,1963958578,-597214616,1625274211,264394143,-1988942559,-1387636854,780182154,146111706,-1390672711,930679874,301403321,-1357633770,-406356914,-62291755,-307689607,-1401383197,-1022959085,604449904,465708166,1037027420,1192024639,-364784932,-2141241638,1755742426,1323204226,-1238479003,-1443512300,-1131675348,-985593760,-489391878,-1840400571,396190769,75741138,-315941972,589839530,388952180,1240908108,416821104,532128783,1952396431,540837289,-1039950503,-133889737,1254175639,501084163,-1601945329,-1592488121,1395759359,1802555735,-456033672,399298625,-123915986,1727291241,1460014903,1909876294,474869244,1078904769,-1877349047,642700060,943578682,540203263,757620104,1528572408,1583838412,-2138223446,-1428507151,-1861113301,-1843668579,-73296979,-724740161,690508561,-780503635,-470898028,-2068478894,697665365,585700962,-1259350397,-1079416632,-181312530,86980779,454381567,259803040,318221425,1796372668,827534115,519344988,-125404030,1948476504,322573586,-1050408876,-275669839,-401417975,-1387407498,-235169091,-132390903,397041198,1385140200,-1077392816,260955573,-1475204810,-149315658,-545319901,-359953161,-1793934709,1682062048,2140542847,762824722,1344944214,771614065,1254744455,831994797,-1989838269,-676740281,-1068044204,-946483754,1106249217,683041822,241024731,2019622397,-510082571,1602362383,-1325740739,-854903188,437794159,-1831746457,1204936147,646028771,1412949910,-1360794595,-348148704,-1176156254,-1010031848,-1699072546,108085056,-818334872,808653189,1933163093,1909697857,-985032802,-1272418495,-964771543,762985926,1002523569,697932246,-1772953329,1045898884,1397052160,1105479623,175869858,-209256114,-1119691949,-355099919,1221048088,2131032933,965190247,-457274753,-1036844795,-236157925,1598655759,1158654104,-37994191,-1917744564,-2076797557,-2118771772,-911193946,-1641082884,-537787154,927399634,-339877933,-399398510,1288761715,2105292664,1032186512,1883941211,-1043960036,2063843477,39913173,462872268,1957137380,-1516934500,1131235045,-1410711346,-1531970188,-1127062753,-578839960,-1725270374,551063088,1489426071,1992201186,1300217727,-173195587,2136301408,-1847377938,525413436,435210617,-2100269198,-1645408903,-624844482,-781031685,-1543819046,2050120901,533969129,-930315790,-1059086387,538641027,1314585887,1292096956,-1460165079,1557555714,-2000868426,1548894294,-1826583603,-1597970610,-383166555,993274027,-1728342414,953022871,988407386,-396715314,-723253192,-2113870867,-185905902,936819901,-8939378,1893601231,480402629,1129081883,-1973059387,-1465625849,-600619076,-700789794,1206526085,-1232354511,-478330760,2126998267,-550259825,-990871481,900010242,140065603,1390612850,621865111,1097724878,2038123767,-1182062574,1077806166,1019326954,-1266723102,1449784239,-1448210116,1321865000,101006555,-286665454,-1632240240,-2022836830,1042178589,480560245,-752054863,93804889,-479571381,-1800050679,938081637,-536893162,-1852890560,-240700062,693555131,1955139050,976059562,-1701747327,-2106941942,-1955790466,-19096193,1427843557,51988857,-1197261814,-1974531072,-801407755,586502656,2091006975,1024348303,2050350611,1904645010,-2011487703,2044300451,-1598946567,-1758300163,277682388,896651878,-588865497,342981287,-1955724816,1421796784,772686719,1909685702,2057163887,-1312108556,653021697,91605569,209025375,-275448809,234094530,228506888,2023002700,-1710882186,-834536373,24758262,128208391,-2039090975,-295699193,583766498,1348768428,1853395924,-1175425212,-2086042080,1329870500,-543369407,265676522,869030364,-1431137933,882742130,-1794808949,1288337987,492920401,-646920836,-717303372,-311452245,934194562,1001075855,-289812953,1630536778,1610736717,222018000,-393896950,1240660178,-13834551,875050529,-470977269,697522434,-2055038122,-2026911039,-650433194,1691538670,1461306082,1113443029,-1143288660,1642779606,79470897,-1612165106,1239696550,-349855029,-136974427,320341800,-27626856,137399769,329051632,851729606,521379758,746502109,-314863100,145267145,13282062,155245663,-1514263583,-1073535354,-1015639310,-1197569460,1296005732,463144860,-1059513271,-1246404571,-1699977429,1892934807,1126896189,-362830692,1878556684,-1318517190,-374564017,1432486041,-166597088,-629632807,751290665,661971221,-688000216,190261489,-1202492495,-168453905,-1555386753,-12052309,638906751,-851239192,1764933303,1451739011,-241793927,-261211260,-1551651258,-1288868054,-157953210,395220457,534196427,-1906251153,-1529832005,373624508,-651276721,15304369,2096781551,-426031651,-357278238,2115816143,577971347,1842977226,-1154406363,1010723027,-866780041,-723590546,-188242391,1065068232,1990416377,-1584930602,-1626766724,-440453960,-1035927653,-1527591100,410404594,-1489729068,-2002914467,-1276229642,608289469,1821953278,1567461210,1229002299,-233674338,-373993181,947094205,386928368,-56185137,1461773738,621700359,1939751601,-2056770401,347664821,1145969661,1656439611,1824378799,-1528262759,457213476,1622858700,-386751289,1165732657,1658531115,1175472021,-778968871,302355811,-614524413,1108660630,1394727150,-1513122462,1464147945,-116570483,1627123485,-1371980742,-1886174041,-1462459439,1088869954,-1370641519,159739066,1590480464,-1314019968,-753523527,-1585622509,1349505448,-2002997022,1281834834,1268088912,926038371,-931236563,1203623824,896823919,472621556,1286308513,-1615228529,1345792489,-1887239194,971924987,-947269028,-1386244770,1503895376,-559185751,-1587120498,-656435863,872757376,-1334185361,-1752519871,-1548628830,534751897,-455168747,-1594720585,840177721,-1837016738,-1545327153,340284428,27250860,1142001889,1425819872,1860715782,-1648088652,-193036632,1408245329,-1676029564,234244278,1227594382,-1046829277,-634471559,-1014601440,1674164197,1111485923,-1104328366,1380578189,399887956,-166651230,1638214106,1477752645,-1647489773,-1499868247,-124154684,991177829,211349623,1025821571,-455180095,1480796497,-2094995795,562330024,412539362,-1246499525,-893974828,-831244496,1611486416,1210784965,-639406998,1506924239,1600923294,1853115397,-689301263,1732458389,1752262909,-595739531,732324053,495393794,673288720,-850516509,-942496342,56835216,147739234,1488979658,-186594526,2143928501,671365414,-1193047575,759313271,2104011017,1622495607,-2020448898,-1369622615,-405315081,623183264,-1443056427,-50453573,482439129,-1005152020,1593191123,1953035010,-810441449,318799962,1773849593,-797215692,71612280,137353887,-43500935,1645741227,-1395717600,127616562,2066445359,352318058,1707085275,-1437878887,-1049513935,-2145881144,612286714,27907158,165721229,744131369,-716953058,1098003191,1427675004,1579942297,1957492233,612691967,-1369913872,1355031338,-179905155,1835949805,-16703837,1913572958,1071186737,-1057225974,637084773,44835712,-913682054,446807793,679882113,-1709148823,-1533399744,783241689,-482162293,-383032053,-1312763487,923362611,324104540); -/*FRC*/Random.twister.import_mti(277); void (makeScript(14)); -/*FRC*/count=321; tryItOut("\"use strict\"; mathy2 = (function(stdlib, foreign, heap){ \"use asm\"; var atan2 = stdlib.Math.atan2;\n var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Uint16ArrayView = new stdlib.Uint16Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n i0 = (!(i0));\n d1 = (+(((/*FFI*/ff(((~~(+atan2(((+(1.0/0.0))), ((d1)))))), ((4194304.0)), ((-9.0)), ((0.00390625)), ((((0xc5fbfdcd)) & ((0xef21fd55)))), ((d1)))|0))>>>(((0x0)))));\n {\n i0 = (((0x33f940b0)) == ((((((8388609.0) + (1.0625)) > (1048576.0)) ? (i0) : (i0)))>>>((0xffffffff)-(-0x8000000))));\n }\n switch ((~~(d1))) {\n case 0:\n {\n (Uint16ArrayView[2]) = ((((0xf41f3e5a)+(-0x8000000))>>>(((8193.0) < (Infinity))+((0x70d5b2b) <= (0x3c867b25)))) % (((((0xea5ac1bd) ? (0x59d0de92) : (0xfffd87c1)) ? (0xfa7e1620) : (!(0xfd6b3a8d)))+((((-0x8000000))>>>((-0x8000000))) == (((0xf91c4610))>>>((0xfd9af4ec))))+((0x6d2adccb)))>>>((i0)+(0xeca62a1a))));\n }\n break;\n case 1:\n return ((((((((makeFinalizeObserver('nursery')))))+(((((((0x6ecee47a)) << ((0x1835f188))))) ^ ((i0)+(i0)))))|0) / (~((((0x16393*((((0xffffffff))>>>((0x667e75ce))) == (((0x4e80b358))>>>((-0x8000000)))))|0))+(0xfe82748e)))))|0;\n default:\n i0 = (!(0xfa14e3a2));\n }\n d1 = (d1);\n return (((i0)+((((0xffffffff)-((0x6cecdfb3) ? (0xffffffff) : (0x5a443346))+(i0))>>>((((0x8ca30721))>>>((-0x8000000))) / (0x6b004213))) <= (0x12936003))+((0x471200f8) >= ((((0xfa28f67d) ? (0xffffffff) : (0x36fb3c29))-((0xbcdc9b6) >= (0x6ba296f7))+(0x83cd288d))>>>((!(i0))*0x8e3a0)))))|0;\n {\n i0 = (i0);\n }\n i0 = (i0);\n return (((i0)*0xfffff))|0;\n }\n return f; })(this, {ff: 'fafafa'.replace(/a/g, decodeURI) instanceof /x/g .__defineGetter__(\"x\", XPCNativeWrapper)}, new ArrayBuffer(4096)); testMathyFunction(mathy2, [(new Number(-0)), '/0/', 1, '0', (new Number(0)), '\\0', ({valueOf:function(){return '0';}}), [0], [], (new String('')), null, ({valueOf:function(){return 0;}}), /0/, (new Boolean(true)), true, 0, 0.1, objectEmulatingUndefined(), undefined, (new Boolean(false)), false, -0, '', (function(){return 0;}), ({toString:function(){return '0';}}), NaN]); "); -/*FRC*/Random.twister.import_mta(-1369276423,958324324,1113869752,-2091490811,103222941,327614430,299406009,1829324144,837070335,1728545025,976816043,-1946931981,-1886689910,1470748660,2023810690,1763571550,-1324819517,-269484980,905525016,507127789,1545427088,-740140112,56690649,743777208,-1497092079,848999563,1749332951,453590294,-1440126190,-1517245483,-1240219658,-2086801403,-1704341089,-204576290,-690228277,-783367226,1428946624,-1128880253,-1884582499,1258343890,-997727160,-1205776522,870644359,871067222,-255149705,-1041004686,-2044112993,-91705158,1029788396,-239943183,-1205456151,-178451483,-436772873,1835694309,-338625916,-871758920,-627435013,-1751813170,1586869692,-1402808066,1662670749,720283200,-713429763,-80018775,-1037721963,-152503060,1264316660,1880922669,1987035609,-2085148474,-1600061759,-1466825340,-1937556379,2144194139,-645910357,-1173047463,1120124544,512409070,281597978,563643618,-892964149,-2119873497,1524697953,-1269996803,-1750417079,1025861223,-286564635,-2002143532,1259708785,264959848,1706956215,237119144,915680341,-70587363,-682743950,1346278873,-31882109,1336281097,903760178,1654903611,1368166382,1922034586,-396041291,915959149,-80050115,2117869746,639437986,-384985467,1431508737,-133881176,-769770186,909151633,-230689920,2018746639,-1244580449,2072526031,-274964915,500890765,-1874049720,-1141388302,-1582178551,-1176216174,980867839,2006091242,-602308015,454395763,-74636376,-518229876,2003094755,119583468,-1945101011,229449727,1551469983,1926361834,286252974,-2099136858,1220222355,-1205066992,967129309,-830604222,1656546824,1057636438,1956828454,1780706081,1872056655,1118412575,-1959289926,601144353,258787372,-612093031,2058911982,1154209961,946382039,1104396669,1703358281,781952772,608476325,-276279450,556554308,-1548648922,-1511394819,-1929038962,-208145622,217185151,-1640549785,-559394946,-1704698459,-1969970384,1001417775,-1146705043,-951490404,-897248262,-1463753207,1255933911,-228602948,1344830605,1759099664,997609610,1615343983,1789527626,1855734117,870561748,-1925997716,1212368769,160421918,846995309,-274559177,-1700391162,-1187370425,1439479944,-1135938177,2051030878,693450390,-98045311,1947888549,-1152959943,-1681281126,-1569195049,1984568125,615191774,-1695761408,-729618796,1416667333,-1982711814,432809622,-717919139,-5939811,-1261060713,1671934422,1227365908,107372954,-1156841536,-2114138783,-427955756,-1467332690,1824986753,-841694047,1955110618,-1205937992,-901773618,1225143885,-365038253,-281083214,742730015,-1397480820,52701268,2032366912,1986707152,1131116781,-2138594503,-1125274046,-415188571,-2065735325,-1451879317,-248302131,-54643549,152969951,1361338948,1896451182,231093453,639072200,-1630805216,-544432570,1249389375,-1254263603,-1461904794,927706964,-677536764,-212557225,-1496051331,814790577,-958713286,754609278,1920669862,-382372834,-1090624628,-1024086975,739873092,-1259791732,-718065833,-1334275313,282882586,1175720227,-441120569,1735769072,655758439,-1739405047,108767781,-1747018755,2065918887,1262023911,1030319733,-71892601,-1690308150,1858646693,2085887465,-1274789554,1581304969,114831304,2104707988,1899751136,-1359512444,1025445149,-1948208901,818732782,-652595932,141592360,1540955732,-1209301109,815635059,1919595274,280237492,-1095864186,1373837767,-949519647,-1520448427,-2046810050,-889222119,647861476,-1268088186,-611609421,-1050323119,1886006918,-646845569,-2118602338,-1106635058,1734441731,-871814065,-1108409087,1474431578,1248144391,-686415182,-1476398661,1960384074,1720645768,443574656,670613054,1384275037,316281098,2000744261,-1670842545,1636367373,399795884,-402675603,-1007161233,1871741067,-248917471,-1360985584,-449317779,-992182005,1543964087,344323639,636188275,-1564465606,1197064521,634066212,1359831121,-729554466,41042836,-1765371927,-556965196,1993186896,-747227499,-1151995188,521908518,1255346423,-680895143,-740772482,-1838629661,-2108649654,1786766268,-1393759302,-2143066316,-193393745,-2047978785,-604066471,-440207903,-979624263,847259315,-2123793492,2065662994,141423053,-1922533007,-947063134,-1900942830,-453393178,-837244475,-15451912,-1260526215,346244709,194519640,869930089,607527469,-2030430092,-1699708198,-859911967,265990355,-1680227718,-61415064,222787225,909083003,2100538452,-1018865028,-671273930,-729761674,-719806217,1826237037,794505640,-1501836774,791992205,-1982792072,2110082767,369469598,2093539631,1083599696,487711579,1446462697,1963080578,1799807257,-789054517,454938868,-1412858839,727881006,-1172946629,-1382713296,-26151801,-1580533688,633259579,-2038685652,1414523115,-281617623,-1546991057,1193685404,161766031,311899536,-1881741662,-782459835,2069721545,-983404102,1127892897,424448330,732412097,421404954,-1962254351,-302826775,76906849,-595338292,-929703006,-1732655635,1206576175,1419017867,1077609837,505232860,-907461662,-1704756678,-569406956,1881221851,-340493868,2117766721,-1972057575,1093013100,-1021692549,-414673699,1829983526,-281790390,1800016061,1903148015,-514644209,1164681819,1682175393,1642424845,-1662431382,-1370109208,-2104094713,-569403238,-110367752,826794890,1827132460,1407681659,-439023192,-2132346852,-472580228,236194696,-1399836346,-1202641643,1712657011,-754506175,-344615169,-21460991,1369635665,247111010,-1705307163,-1341405018,-943190569,506168786,-1687991677,-1566947060,1453533208,-485363182,-1368670192,-817065233,-1964269610,1028450916,-857703237,-1824202549,574448276,606079868,-1212607748,-719065032,1708193805,-1290091928,195327064,-1857329940,-924716466,-216215474,-841218115,-99147185,-1711992424,1823574052,760243220,811079583,-1481032415,-1135173334,-1119556127,-1766167887,1291584974,2109514690,-902062513,-2071373580,174796702,-2063424479,1257497018,703238867,108818410,488782351,-1820439860,-1990690499,-2039128471,1903632676,1447173035,-369860631,-663626168,1433634124,-1913991404,-235470520,1448017929,23620091,1281721061,186715738,203876580,502484370,519862650,965788624,-871986244,958400568,628606600,119551630,1177436406,1422353648,-1029410095,333647314,378032864,-1486006467,185141259,-1486747675,1030488645,-646809192,773147624,-1960716520,-1159437811,1355400840,254570714,1632833162,-449242327,290365502,-2032228680,-2056446141,1482697862,954594642,530256866,1143764671,1398529498,-1598922481,-1633367755,1933510021,-1423942672,-1794130602,283855295,-1674666380,-2115718075,916658297,-127135708,-1648683068,-178187985,631967944,-1470315166,1015082270,603956113,20528793,-1468080850,-1235529709,418451279,2084700346,231098219,-738485335,1900905898,636776804,1902148903,-1551546369,21304162,1044160101,-826420234,-1228495717,-825474066,1659687521,1006112818,1040274282,-232158212,425091031,-1842834882,631559087,301614586,-611145191,1740153158,947002395,334069441,-1412478697,1328080468,-69755629,-482649095,470355675,-707352138,-237139894,-1199422006,-1575970889,845365361,2105131309,1200612939,-714302763,-73880892,-1121961696,-2112198378,347692021,-670118966); -/*FRC*/Random.twister.import_mti(609); void (makeScript(14)); -/*FRC*/count=322; tryItOut("mathy5 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n var d2 = -129.0;\n var d3 = 4398046511105.0;\n i0 = ((((d3))));\n i0 = (i0);\n i0 = (i0);\n i0 = (i0);\n return +((+((Float64ArrayView[((0x2bce92da)-(0xffffffff)) >> 3]))));\n }\n return f; })(this, {ff: new XPCSafeJSObjectWrapper(window)}, new ArrayBuffer(4096)); testMathyFunction(mathy5, [-0x0ffffffff, 0x0ffffffff, 0x100000001, -0, -0x080000001, 0x07fffffff, 1/0, 1, 42, 0, 0x080000000, Number.MAX_VALUE, -Number.MAX_VALUE, -0x100000000, 0x100000000, -Number.MIN_VALUE, Number.MIN_VALUE, -0x07fffffff, -1/0, 0x100000001, Math.PI, -0x080000000, 0x080000001, 0/0]); "); -/*FRC*/Random.twister.import_mta(697128112,1249167301,1213495830,-1056512155,-1576401978,-1165595475,-1936530557,745512464,1425769688,635358018,-1186176867,-1044802839,1067123473,-748246936,-1757138560,-961876830,2119410857,1215016476,432227723,-11390963,1387027473,500843145,1427166845,-1826211427,-337489317,-1271609298,-2037464710,-119042208,-816487340,-2020998089,273912703,1283825149,1041092800,-1494141007,681337998,1955119804,1320868092,1153305643,-1148195587,1382209791,-1213931921,-1094695971,-1820230350,-531897848,-1545341246,1028948941,274140539,-1316712132,-895762278,-1267461564,49615394,-1365721729,-1946257140,1410144079,-85176650,1511028426,-916674080,-1320861116,-279279737,-641566565,2039514892,-531381542,20985891,2029815689,-1734311670,1807348722,227986575,443446566,1741587984,442493438,-1086548931,569485036,-1219711837,-1150143000,1582954646,-781576218,-930262240,374335967,-1951463182,519159990,-1887879468,392808317,759546289,496059028,1299291194,-1825442359,-2001426479,1875280044,634919200,-1879592584,-1331166808,1465997005,-1052950820,-658648623,-88895893,927929970,909788821,-369888041,1703239423,-758028872,-1598888875,-1047836383,-283843971,-1798446242,-660132488,-1353177221,281712252,1696289262,1895732378,347323737,137062488,-1114201804,-280342586,115510833,-1371582718,-2027156182,-778460813,352589995,-830099659,1082664550,-628658016,-1253770108,1837848926,1592798750,217296174,1756697752,-43714734,323868646,1440700799,-1637296206,-1816412731,-1139443638,894308753,359965253,529310249,-993657402,-804218316,-50715511,38353065,1987986826,1504403677,1855327843,1857910686,-1121905238,-1361826384,-1560896800,-1007950140,-1596693517,-1985565866,-1540474385,-1787291805,236795308,50672236,-83697165,409051992,-361107449,-755155814,1104710684,-1761207893,1318147938,518174017,1093536967,-1058316670,-767598765,1007680101,1955135234,-605120339,-1209040051,805027481,-156563176,1974059074,1363565999,2105673585,260898215,158375613,-1445475764,-388351638,-1937262432,-1660303801,-1832485517,974026875,127988527,1431817777,-1298351076,-1731743706,-761530370,1083526376,376323669,464247278,-1562789116,205546120,-1221600076,-1520542979,-583459992,1243020853,-81628330,117378778,-2134806752,699243101,863440234,-1737951050,-362365078,-1765701181,1765982436,-1570225397,1028174856,-1529163950,1235338480,930968011,-1459848742,1387076020,572607356,-1878675693,1212951820,985502249,1312774853,-1027208537,-1105200149,1464025878,-2131596588,-342250435,-1561126004,884117140,-1418057626,-1014465220,673767765,-482634590,-1859102695,-750803322,371371319,732826472,2037187496,2000016967,1828964794,-885508962,-1988352664,223148640,-2117556566,1582446672,747682037,-603760136,-125665629,983452130,-37376496,470098735,1114018337,-727908849,-1307656731,-675743000,-1806680710,-1337220992,-1113627548,-1928772483,-1307280523,-1483161946,925303467,-779694955,170335801,-1089160567,-13031016,-291565892,-1835082560,-547686912,1023411460,-834816313,783169702,-2007515854,625156942,1515800273,789952414,1744299501,120637150,1892383528,-29629194,379989783,-795221955,1113375967,26805702,-1876879179,-1285322116,1131849997,1030453479,-957833624,-1858419049,-1647815466,-1419590637,-198248527,-76680170,555073340,947216806,1889963347,-2013808311,-1707028530,-1221738208,-775347245,617517583,-433545427,-328049073,1002760111,1132582437,1120415391,644673493,1692029574,-2007954449,1229644472,1628898732,-1577195954,1216744587,2090386000,-1853888659,907695053,-2021206984,-379748628,-1141646443,1660859500,908346943,1069428617,-1178269395,-171339344,1442968996,829497096,-245777091,-1648856421,-825684355,120783949,-1004992720,-2052987728,1260498620,988658043,404738169,126331034,1398417054,-1103612826,-361839097,2013191036,-1049586579,1056066998,1225935250,805131807,-2144534884,2105819417,512550039,-628689844,-1642825248,-1452990449,2084057414,694451417,180067854,-194200799,414492800,1216764867,1288838836,-1954471536,647720674,-407228011,-1103719600,1705928753,1408441923,-1130248804,1220662168,-2008356228,-2144326066,-1492941161,-1756860611,-1903769862,-62006124,167008758,-1697832258,-1110499954,1802593970,1036300097,633834617,-1584687398,-1900828759,1602467676,1464026080,-1446848302,-346855465,-776585665,-2128985586,-979683367,969084518,-2121832932,-1195548511,-1302565704,2019802178,1497157558,232738892,-1883449378,-1006427714,903170283,923610666,-740016310,-73028347,544195135,-1645695950,-869657383,-654180335,-533393259,806153995,-2090798228,1556206634,768891406,-1106213518,1790407228,-840123805,1494331057,959473773,-191907963,-71036038,2054253012,-78337816,1329687142,1239340576,293948676,-368236781,1182774079,787569237,1337610171,-1443360168,1373796311,1184493240,1739582577,-384949391,1535319887,132937659,1463673019,1295821471,278625698,629343833,-799542643,-1385767451,431761913,-370445745,648413690,-698002311,-1658436304,-1262948789,-1106010449,-258562011,-255228050,-804165480,951513174,-178514302,1387414378,-151245250,693324172,270847439,165302659,-1656190131,-1525772333,-1801283512,-261400183,-1942202129,-310006299,-1952688317,542197537,-1688897142,1267173244,927377993,485078532,-1942867622,-1623966261,-932390859,1808441164,-287761489,-1071463595,978824487,157004756,1036191571,1776326461,1140901756,-1198906347,-1685504794,649570427,-2030707090,-16668298,-2117903991,-357923732,1940372949,-144591714,-113325164,-2007004119,19663919,1530507123,-1392197833,-454713114,-2079394144,2038304793,-958949580,2027044648,-963115855,1256112513,-237382379,-626683825,-1101371607,1676623698,296690175,295236820,-235945928,1961872057,1217232770,389228050,-1878441640,1743193889,-1359001260,259454340,20055415,2019487528,1566669991,-196921782,271953248,-1470303258,1672960617,-221064848,-55495811,-498631091,136125889,903742531,934432997,-619368956,-1150230155,574354821,-1630330999,509439636,-1569168499,-54810744,1196992946,545233831,1780741199,-2026948782,1434616656,1192509554,-43130286,1514008527,2131286295,-1301756138,477749685,1071406479,-1599277051,-1330122011,-398414035,-358059291,-1257792348,2122037456,-646926980,17518672,887223428,891501796,-170094113,-916507120,932872968,1871526523,-855198545,1213136352,-514619899,1949287994,469062195,1553444719,86425574,-1010620182,-22062300,388644904,-563773525,1552049258,1702529204,1364322972,1939017251,-948564374,417319087,-1574800910,-407327763,-1618999026,2075260093,513146047,-1439904338,-1874605673,-787319728,1491955747,1235499334,-202679910,-644140600,568131642,-715451078,727047318,-1369703122,-377922092,8452444,-1064130561,555055482,-1340700986,1290609768,-1691615901,-511016935,-2026820953,-1563446213,1382392652,-395890571,752076134,1783713746,-2041674412,-347975025,614404931,754148864,2075093096,1566124651,-426888924,1635273103,-782888123,1451970990,-1839844230,-894261091,606248615,-1858325326,-840548181,671647639,2127323716,-2039761570,1254193992,-1921768486,-1163355762,-214180070,-1309685289,-1729315199); -/*FRC*/Random.twister.import_mti(158); void (makeScript(14)); -/*FRC*/count=323; tryItOut(" for (let c of arguments.callee.caller.caller(x = e, window)) {v0 = r1.constructor;f0.toString = (function() { for (var j=0;j<38;++j) { g1.f0(j%4==1); } }); }"); -/*FRC*/Random.twister.import_mti(291); void (makeScript(14)); -/*FRC*/count=324; tryItOut("v2 = g2.eval(\"v1 = evaluate(\\\"mathy0 = (function(stdlib, foreign, heap){ \\\\\\\"use asm\\\\\\\"; var abs = stdlib.Math.abs;\\\\n var ff = foreign.ff;\\\\n var Float64ArrayView = new stdlib.Float64Array(heap);\\\\n function f(i0, i1)\\\\n {\\\\n i0 = i0|0;\\\\n i1 = i1|0;\\\\n (Float64ArrayView[4096]) = ((-2199023255553.0));\\\\n i0 = (x);\\\\n i1 = (/*FFI*/ff(((~~(73786976294838210000.0))), (((-0x8ad0f*(i0)) << ((i1)+((0x51b51d67))))), ((abs((abs((((i0))|0))|0))|0)), ((0x252629d5)), ((1024.0)))|0);\\\\n i1 = ((~~(+(1.0/0.0))));\\\\n i0 = (i0);\\\\n i1 = (i0);\\\\n return +((+(1.0/0.0)));\\\\n }\\\\n return f; })(this, {ff: Math.cbrt(((void options('strict_mode'))))}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [0/0, -0x080000001, -0x07fffffff, -Number.MIN_VALUE, 0x080000000, 1/0, Math.PI, -0, 0x07fffffff, 0x080000001, 0x100000001, Number.MIN_VALUE, 42, 0x100000001, -0x100000000, -Number.MAX_VALUE, -1/0, -0x080000000, 0, 0x0ffffffff, Number.MAX_VALUE, 1, -0x0ffffffff, 0x100000000]); \\\", ({ global: g2, fileName: 'evaluate.js', lineNumber: 42, newContext: [(makeFinalizeObserver('tenured'))], isRunOnce: false, noScriptRval: true, catchTermination: true, saveFrameChain: false }));\");"); -/*FRC*/Random.twister.import_mta(1697698604,-1004589666,-1987629978,-765070705,-1735765341,-225076464,-400078214,1087025232,-553394238,-591450592,-1058795066,843744978,-763934898,835940628,-1744707911,-1453324051,1844117806,-2073272546,1286377418,-1239339544,-1189819442,-63269798,962838089,-1122243035,478382767,619220172,-1786911551,1009364325,-584989313,-2044945957,-227093314,261985730,-1343017634,-2078687030,-1759331141,1054950791,1388102789,-1570158757,643598553,536648408,1926266746,-137158602,-2135729887,-1590133745,397646241,-1449802188,-308388324,939500327,-1396300004,1747566749,-1637866577,1277521157,1850126389,-1736923000,-106257619,-725283463,-727778867,52453113,2121653201,1553532071,-1417897753,-1842402382,-1842325166,280622721,-101791581,16247635,-983833946,1479400516,-470356144,1186216340,1789886033,-1946856102,1618615719,114060150,1823853711,-590574203,1235646678,593505282,-913490379,-121817572,1400834792,1694553195,2104433823,-774276477,1773044143,1426943774,1993297017,1238737891,-1426102389,-1129209806,1991699737,1507889015,864145155,-1669117758,-1656778872,-926199276,1546166177,829394927,-1758276107,-1430323801,-396216912,-15059659,-1148636777,414997509,-2044076832,1599499564,-1568347729,1603816812,1034823463,191054248,536434157,268159179,-2028434592,-480472629,1403235317,1503171456,-1338120477,1285076533,-1661657010,-821770723,1388274563,1125886188,415909866,-580061037,-1893045447,478776876,-680135558,-1380289804,-1387526060,745458101,424809879,-472898640,-107932238,300013209,2011200947,790367592,437797065,-2112765116,1144519634,129353639,-1304799653,142796352,-1103334704,-404888515,-1187257763,-1956806265,2087001474,984149371,309264724,-759174338,1945071186,883008978,1364546041,-2056263748,-1683043372,116630582,-1377111391,-624606742,-2045039180,-497669051,-1570052977,2095185966,-181297008,80504071,-991222619,-1546273631,479858386,-1837691911,1580141624,730139325,-1036480469,1623178509,-2045704541,1066569331,-212644149,-336783941,1039280365,-921063613,2051490760,1414284661,1271577880,-347199516,1357539144,-1081572983,-1328100809,1100457550,1197783759,645935201,-1086906196,-1353094000,454498054,188037726,1334441166,1276463363,1903959491,-665552370,-504744055,1257199446,-1150012786,1582423831,-1655410752,-21253800,519057312,242357262,-1243215733,921859306,1210287224,-115777454,1227298438,-1881620994,1885924401,1079800851,850216744,369118641,1957016864,-1672926421,1463515544,-1505238752,678540029,-1844968315,-686671720,278412290,-1731643415,-613636336,1042751343,-2140011642,1232872018,212795503,369544154,-1672468014,-288132261,974653791,-1005289523,-843362251,74752740,-1717198094,-597983883,-1345516050,-1123390857,-59315278,-728039782,-984679864,-1753030683,-1159651226,1012377297,-1425390,1982776261,-758597958,-1240298777,1632005641,-472622057,-1022388146,-454426199,-961430638,-21848849,1827279850,1510450712,1962162469,1879113998,-658724352,-849957206,-124794949,1616987909,-324358343,-180462840,578246208,1297943423,-957059891,-530973703,708844296,-1566564512,802563125,-1769458609,1069939016,-2034506778,1424029100,1759855230,259530538,362063931,-1762306964,533046308,-622924775,89186029,-1703226458,-812020689,-1653993258,556793516,-67745927,-1911186591,862695204,-1974822150,-1261523132,1533086659,884458384,-1824381540,1240076313,-1450858900,-1371161255,859639447,-669599177,-1930253245,1591272908,1106032813,755173770,334212820,-646722286,100040838,1832086464,-189294846,-1083538010,-770043745,486555353,-1845743093,128980559,-875614173,740868240,962303099,206710209,853570981,725172359,1025975939,1256916506,916940277,-2034651816,325258359,-706598995,-819057927,1813797330,1780313558,-1203051046,823217994,-1724528941,-1284915472,-646216687,-433539195,1658257916,803890529,-1861267907,267237253,1624382259,1964135263,2128662995,378711920,2106050107,847556246,290434813,-900134630,-243167540,255982764,-1518216492,-83494967,-1964311567,1338259805,2107661423,-224314532,1184074899,-1667238325,117634905,-2018456964,-38510452,1375322558,-1117188569,-38761943,1566254004,-63492850,13489961,181622520,-321005412,2100974873,970364335,1815515870,-1442961104,1426907788,329565740,285822091,109997373,1042212874,-2109947502,1949074645,-1433371958,-644980593,-1687324454,-1012554567,-188431107,-1493917749,-1434105233,-457603997,-1514893472,518230257,919843898,525005330,-317113600,1192221436,-710582510,-1669112352,-1590511989,-569591190,724215998,-1582204329,-2019459307,1374839910,-440835124,-186296574,1219072499,1994867373,-1882774449,-774061668,-393882107,-1767100839,768791458,-2111646211,-680100092,1702415710,1336286285,-1970400457,1157646828,556364133,-1513979900,533279602,-1099923462,1868152415,-610051292,1977342825,354617585,-804135852,165835276,-507037049,-1793470191,1970438827,-1345100231,-1043740125,1613802664,-1693483758,460358789,1260616369,129250334,1284274692,-1234594887,-1591766818,1254720671,2114517501,687787275,-1494802326,1046632493,-1657145793,2094536251,51565245,1257742470,-2026583685,1397145823,-1858213068,-551943308,1600429870,-1498004353,-798385391,-551102315,-1845848809,-1961840411,-1196168028,-899636017,-878557032,-756675362,1687911991,-1447152941,27865318,1142143746,945131006,-801691792,1118292286,981083300,-1730067496,-1189477372,-1305551263,-1132615897,-776840819,-913154468,-1196461550,-1769923039,601159291,-547693594,-1171333544,597027364,-1250646750,-292306562,-75573663,41144701,-1698967216,685839993,-605811679,470309009,1458445758,156863255,-2087515115,-1190694009,13758342,-1850842032,-1147192536,-1435736822,388088873,1979146700,461588105,-1927122705,1558467840,-2111934159,403159936,1378865913,258270728,602592176,1835459221,1064388040,-765459178,-608700964,1975061821,407279124,480669208,1715377304,-294809317,162342916,908015593,1995152577,-267975691,1532456833,-544526590,-424996570,644955200,1298193747,-1145377042,96850255,-222187724,1115366148,1203914786,811699949,-406504389,-236927042,-876628076,-310119287,1751041443,1425837703,-1805716988,1353677734,-359075578,663992718,1990921922,1181108243,552235903,1919278477,826915525,666286321,-384958934,1376321277,-579539748,-1112727147,1785318693,-1425452023,-977458673,269127371,750320668,-2041436126,-1683580640,-1836569979,-1507055229,-1380083823,-722661642,1101748052,-1548613017,658850507,-1072485123,1453937770,-1417181861,126064521,-1756159214,2101651985,-174070660,1545291674,-459806693,-563566408,-855056132,243007239,-1372002478,1982961040,292406411,-1571833023,1816004110,-919267328,271518158,-217291626,-1108075486,-390585698,-303844710,-440678070,992850304,1755997024,-385865734,-800885900,615690846,336102591,-1796358838,979333229,-1663660327,1445699622,-15900748,-632392203,284679741,63527998,899212408,1198234695,1126493906,1747835378,-265760755,-896614780,143990892,1844273223,-1575268298,457315561,1756920948,562405843,904294037,2049593270,-341628179,442209851,-1405570913,1568410068,1951160596,-1399532548); -/*FRC*/Random.twister.import_mti(4); void (makeScript(14)); -/*FRC*/count=325; tryItOut("e0 + '';"); -/*FRC*/Random.twister.import_mti(13); void (makeScript(14)); -/*FRC*/count=326; tryItOut("this.zzz.zzz = x;x.name;"); -/*FRC*/Random.twister.import_mti(49); void (makeScript(14)); -/*FRC*/count=327; tryItOut("let c = \"\\u8D82\";print(-20);"); -/*FRC*/Random.twister.import_mti(94); void (makeScript(14)); -/*FRC*/count=328; tryItOut("\"use strict\"; \"use asm\"; mathy0 = (function(x, y) { return Math.fround(((( + Math.imul(Math.min(Math.fround(Math.hypot(0x100000000, ( ! x))), ((( + Math.fround(x)) >>> 0) ^ y)), y)) & Math.tanh((((Math.max((x >>> 0), (x >>> 0)) >> 1/0) | 0) ? (((y ^ ((y !== x) | 0)) , (x | 0)) | 0) : 0x07fffffff))) / Math.fround(( - (Math.fround(Math.hypot(Math.fround(0x07fffffff), Math.fround(x))) | 0))))); }); testMathyFunction(mathy0, [0/0, -0x080000001, 0x080000001, -0x07fffffff, -0x100000000, 0x07fffffff, -0, -1/0, 42, 0x080000000, -Number.MIN_VALUE, Number.MAX_VALUE, 1, -Number.MAX_VALUE, -0x080000000, -0x0ffffffff, 0x0ffffffff, 0x100000001, Number.MIN_VALUE, 0x100000001, 0x100000000, 1/0, Math.PI, 0]); "); -/*FRC*/Random.twister.import_mti(374); void (makeScript(14)); -/*FRC*/count=329; tryItOut("function this.g0.f1(f1) { \"use strict\"; e2.has(b0); } "); -/*FRC*/Random.twister.import_mti(415); void (makeScript(14)); -/*FRC*/count=330; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return ((( ! Math.abs(Math.atan2((Math.atan2(y, Math.max(y, Math.cbrt(x))) >>> 0), ((((y >>> 0) / -0x0ffffffff) >>> 0) >>> 0)))) & (Math.hypot(( ! (Math.fround((mathy0((y >>> 0), -Number.MAX_VALUE) >>> 0)) / ( + mathy0((0x100000001 >>> 0), ( ! Math.fround(y)))))), mathy1((Math.log1p((( ~ (-Number.MAX_VALUE >>> 0)) >>> 0)) >>> 0), 0x100000001)) >>> 0)) | 0); }); "); -/*FRC*/Random.twister.import_mta(153435761,-445453212,2006660749,-2067792408,-1661751740,-2131299777,684509659,1499901260,-510086305,-1313945217,-1314876052,-1080586754,1966828328,388663934,449760173,328027593,1301296066,-321366830,1578163992,2107839618,-606090711,-630170487,972372023,-1206858793,-908649150,-429024810,-767594852,1737068084,-739996098,-1728294696,-757654544,1653281796,-304118180,324019361,-1505182028,727297935,-1823696905,-2130342398,139098482,1977894329,-1920990302,2018413713,-2091054521,-1395030542,1010052625,-802680988,-57329311,-1956977231,-1849407830,-1792379979,-1242716453,689906110,1601868955,1960839805,745551127,-1406971113,2117000156,1985725990,1751312921,491547067,-1039719108,-240402419,456453968,1851628566,194333096,1177980772,-978789135,810698574,659138504,-1811250679,-707949091,-1416464590,958140703,934483264,242545177,-688004598,-1379028698,1820096072,-1244871342,-787417242,1024050379,-2073310997,1858000504,1475423824,152264107,387691457,1399955536,1997133179,1546322276,2028476163,-1659248355,1529633663,306838768,410114682,1832657437,1955590938,951583919,-1841285725,1576643164,-810671632,1290391375,-739382211,-1599996143,412592377,-494320007,-726757112,-304982137,-1613227828,1470001709,-1718551519,-1122007286,1860871973,-673726990,582574131,-142885860,-189837677,-419267119,316472895,-1733015735,507154437,673250418,981079068,-1051373481,781878966,353609879,-198060737,-1334433700,1893152874,-2107700906,773543162,875413655,-1912003091,-1820100457,-449133020,670009433,1942072448,-253221348,-1448850819,2001840005,-397713839,280886695,-1958687892,-1169606297,789426423,-80361070,144277507,-1036349839,702411733,1530538002,1220414956,1038510616,1487922697,1354698019,-1868330698,-19598450,-443284310,-966003460,-2035237675,-131520458,-461029756,-131913675,-1589753496,1239853273,491850510,1700788510,-1700787809,-778542473,-861565829,-1416661174,2013778999,-1073857997,830977749,-1052614545,938620072,-1850044397,846086357,-509665052,-1716237825,1833319133,-387072400,1004334325,-967977738,-251828853,-804384433,-1031509914,-695931978,1132310767,263494040,-1532964130,-260073567,-316489807,-903395075,1522130196,-1701113922,1149263463,16616673,-1254827809,956869401,-500638741,-1706587478,1157802177,-743532279,1360177697,2096556846,-2127081600,887495681,1061547031,1359703867,1082639032,-1575475179,-787786972,-377588839,1485187203,851966716,-87997171,-913904390,140633209,-1517808171,-1316416690,1584362201,845566391,2127495622,2012071347,1780715511,1564805143,284313661,868999956,36068252,-346359667,-1711652865,1086015896,670114173,2133060346,1794545833,1437891637,381533498,-431468664,1982664840,-1045628889,527832165,1972238170,-939060096,1325260282,-1967959947,-751995685,-1139864027,1422348255,433995653,870046546,-1860720925,-644413456,581610825,-2060106721,879661108,301762497,-18391758,999226517,-354968713,1322598660,-1955278583,-165709917,1332784617,-2080094004,-372000141,-801233630,-1209250798,-812203264,1688489601,762216725,-1844640265,1647978295,-1367833367,-1882524736,-3618670,-517300377,-1514739819,-1835631584,640631321,577080200,278414985,-1064842066,-137303362,-1591854396,-2132103916,955174477,955585871,-1178600744,470112339,-1474422881,504472109,876268468,-13796202,1550675628,-871772609,-844103779,864777470,1512107130,358333001,512858870,-429000735,1491036070,-1215684976,-1065589041,-1539807668,1086689473,-147356399,-410434938,122818378,-606172616,-1631883544,-2139520541,-1729760143,-842332103,-274823010,555595059,-644973690,-406211268,492923664,-675787805,-1781342354,1023695223,-278454216,2010326454,-402574773,565810858,-1553592321,-1180693223,2045213092,-808935728,-131508044,-1928987825,-1153591039,555475935,130989210,-290219982,-647761854,136309728,1675750423,-947185053,1951802498,-2067679227,-63771740,1399070033,-29349222,-2089576034,-1114061884,1727682403,1870660132,683342198,635378540,-219722863,-336001818,1407798231,-1993951758,-1969860868,353911468,-191717495,938845609,-254601813,-75524024,1653010920,-1069580910,493632858,-822890341,1892290870,1916275961,-567954913,-148346892,245576036,-1940754424,1005757551,-1850492716,21750549,1404475627,-1282247276,1144347671,1235250469,-554133331,1307040620,-1519350341,-585812645,101617933,117364235,202968006,1257941309,326982360,-1235257036,777670802,-1168665739,1178849744,735942286,114824288,-1334663658,-1613116281,87320545,-997643649,764575848,908998599,-346048128,-1447341476,86934862,-339199086,-818792205,1139028333,123693831,94919187,94889389,-377337082,-1868251865,1759821738,-1145753907,-1338503479,1751078223,-550368853,1832172910,758962867,-492906589,-1564072440,-719358208,-1273122076,-1219845588,-1486552308,-1822115770,-1656998155,2113507871,1271133815,1237570301,-1498195637,1565498058,-1459683345,216972666,-1934561015,-531173732,-2082676336,1389458740,1723989946,539250966,-2122015925,353501449,-24451934,-1078973274,-374155976,264204339,-1611288647,1122807319,688442063,2064949914,-1460369963,-1905995402,2138255401,95325773,855066496,-1700668707,-1023959485,-188905719,984548057,1165678418,484622282,-607534139,452120246,59088582,-1091472399,-1687546740,-1499670533,1411697929,-578404648,929925085,350098373,-717617454,1116568598,-700558729,322087732,2067361129,-1525230650,2098663595,1871471195,1130338604,292932626,218611898,-668849357,1705272614,189191504,-1985036915,-549902470,853984022,1133029804,1175251690,1122353516,-1736691330,-1351399917,1954008871,1224676343,1919370510,-1879165757,1819507881,1889606785,-952420494,-1331530244,-1803340785,453238875,1615937594,-1890011673,1035038674,-560619040,-1775232070,634910860,23932753,1866206523,-395818918,-2010236849,-315533318,-616892404,886464069,-1209217580,790237727,102789069,1523004975,-1237458785,1565524521,-43622519,950716704,-496343012,1088355437,152597082,-1427938241,55373185,1032302489,1639952444,-692613358,-476232994,620761573,-365969917,-1882724658,-2108253876,-392477231,922310710,768448884,-1974011679,-256751198,-125341510,-1135127463,440939090,1672867664,1857305692,-1118096119,1444161118,520172489,159557218,527167385,1500074968,803148382,-846872345,803869988,1115039937,-1461023202,-644554530,-83866459,-1059670049,1802583196,-351975487,-937900147,-2067456183,-1179231256,-2133959156,-1454637651,2122988738,520261303,134924919,654020799,1489865944,434818893,-1178834016,-745185271,-843508815,11818616,1312721160,-68529104,-436520904,-1864249810,-1034479283,17422477,-58110469,830656172,-1132127378,242456546,-1373037638,-1893496569,343353509,-1293772489,1090184602,-89751253,1145701067,437892419,-1937970384,1680119156,81129409,1215658209,-1399761956,-89757497,1053641935,-1483140402,1658923605,1171386888,1399594777,1682302545,1819651077,-1855561406,2081025410,1665781327,1119110717,-1545139398,1542914342,-942350221,-2113714418,-1483722588,967578848,2069296651,-2029735129,-755142750,1063669382,-244856723,1058163563,-758955135,-267866225); -/*FRC*/Random.twister.import_mti(51); void (makeScript(14)); -/*FRC*/count=331; tryItOut("for (var v of g0) { try { a2 = r0.exec(s2); } catch(e0) { } try { a0.unshift(g1.b0, this.p2, /*UUV1*/(y.keyFor = function NaN (w = length)2), h2, h2); } catch(e1) { } b2.toString = (function() { try { e2.add(b0); } catch(e0) { } try { Object.defineProperty(this, \"a2\", { configurable: let (z) new RegExp(\".|[^]+?(\\\\W|\\\\u652F){1,}|(?=\\\\B{1,2}|\\\\cE)?{1}([]|\\\\b\\u5486\\\\D?.)?\", \"ym\").__defineGetter__(\"x\", encodeURIComponent), enumerable: window = (4277), get: function() { this.v0 = Infinity; return /*MARR*/[Infinity, false, false, objectEmulatingUndefined(), false, Infinity, objectEmulatingUndefined(), new String(''), false, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), 1.2e3, objectEmulatingUndefined(), new String(''), 1.2e3, false, false, objectEmulatingUndefined(), objectEmulatingUndefined(), new String(''), false, Infinity, new String(''), 1.2e3, false, new String(''), 1.2e3, new String(''), objectEmulatingUndefined(), 1.2e3, objectEmulatingUndefined(), 1.2e3, Infinity, new String(''), new String(''), objectEmulatingUndefined(), 1.2e3, Infinity, 1.2e3, 1.2e3, false, 1.2e3, new String(''), 1.2e3, 1.2e3, 1.2e3, new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), Infinity, objectEmulatingUndefined(), new String(''), Infinity, false, 1.2e3, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), 1.2e3, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), false, objectEmulatingUndefined(), new String(''), 1.2e3, new String(''), false, Infinity, new String(''), 1.2e3, 1.2e3, false, Infinity, 1.2e3, Infinity, new String(''), Infinity, false, Infinity, objectEmulatingUndefined(), new String(''), Infinity, Infinity]; } }); } catch(e1) { } try { v0 = (p2 instanceof s2); } catch(e2) { } a2 = arguments.callee.caller.arguments; return a1; }); }"); -/*FRC*/Random.twister.import_mta(1638630609,-562172115,604536093,-1534667909,523538700,-1258071256,210367273,-1880092167,371225451,-1981693643,-74250103,-313139596,-1603798162,-1323018372,1571259407,1258947567,-1931779996,-1706849422,-865764721,-2085971566,-1969935770,-1656873689,-1496705590,-1585592211,-374100029,-1603728770,-1006527181,-368616344,2101603432,-1956751009,121196048,-1166054256,1227101941,-2125429118,-372381416,976381827,1509635800,-856424749,1041873127,1383891780,-571638161,1681701746,-514434953,1401232058,-1784819277,-306777268,-189375410,1335020894,-1368642422,136451775,-1556492659,-1195911285,-723030904,21065747,-773297827,1337520989,2123354231,-471478419,-1930496906,1650397399,-1486206503,-1883909899,-1396030944,-855094569,555975526,38766779,800280237,-1625749241,-596297319,-1436865493,689581484,174338911,1154973821,-713563859,2001222073,-610706864,1474669822,-497559492,-1566043849,273174141,1616084840,1513985699,-1366505449,-1354496368,1067717517,-768328257,-608050632,-1574818204,634917192,-535422754,-1511490761,-587041738,333092969,1869248537,1336424128,-354133698,-1161777713,-117500427,570699117,-2122049888,187887278,1978313188,1513587003,-538560880,-164789287,-735544343,-761355072,1050740598,1608182114,1383998182,1032523493,-917814315,-132313410,218767714,817500006,-638772137,1624416344,-2110121806,-1823253913,962584672,621316131,24285799,-1770377311,1357026925,1918381701,-962148357,-826675555,-53378874,-1156719129,-483007314,1001198246,-1204525056,-1011577734,1991441277,-648541742,-886750588,790777186,1748624000,1571699700,1748958958,256452605,23706878,270330705,-1701761231,-180996789,1793809449,1358833128,377506393,-725075401,-412735880,-1258723891,-730781133,-58305984,-278403987,-1146166376,646872495,-1548343798,513356788,-1974733377,2038782938,-1417777920,-220836273,1374217243,-1408484457,1889807008,-1951008574,82953997,151617274,-86814207,587157841,-197051310,-1524376377,-376096428,-551242146,-1125963585,279529070,-1748357373,-446236234,1298547942,-1026831321,-294900022,-922617004,-169928580,-1735310557,-585370218,-1259495807,-330622610,-146692793,-1794832130,122053559,-1186026342,47646174,879153828,-497381442,-337183177,-704582553,-754873833,926832528,-1770315958,866104324,1759260354,-661386803,1799239677,36577299,679550142,-1756027580,-408483102,1193601722,1372519196,157927783,-266387057,1770645463,-1041247414,-818271788,1792288455,1813458627,-1134644187,-1233265144,-1246298939,922253743,-391899087,1588085696,-985426182,1974915454,187865901,-842944299,-1800347938,-1768641902,-1147049185,-573344572,2065391667,136517929,-616452177,1584094556,1834055165,-602386405,388157808,-438939226,-1047634200,-1517599828,199793828,-305389835,132781911,927605292,-369055597,883088618,-467193073,-1977469357,-204116173,-1422626639,529897001,-107639734,-538047722,1756696608,-876719057,-1573991033,1243140197,-440877552,-145504345,-1601067985,2035511142,-415148745,1871904131,1064960282,1149454352,1489427275,-1090618017,171494872,-582104798,-635607910,279236367,1192885606,-1194313179,223366074,377353139,1310618664,1049034456,1861984877,1604015771,-1403239381,2012336584,436283742,-1998416170,1358228518,570573417,-715695893,-2092201463,-2025610485,224252569,690893011,1844362114,-134841012,-604871230,546413796,-1361783400,1861142349,343699047,-1387010139,-906944206,1832077835,1824668982,145357527,1471193761,-329507829,20919478,404604913,1134272687,986837265,-700301210,556523565,-1672265018,340297592,-2010270192,450063828,-1465234862,-213078514,-1572733873,288889776,-1352470637,636741404,-1295354730,1656084990,-849251342,651301443,-1314371360,1079919361,189831253,466945327,2098187556,1550980856,1353439334,1207887431,506526713,-1765961239,-1650076048,609729634,263736106,559893652,-1530762753,-1403522899,-261277365,-653435610,335301605,1385222171,-551936371,-1344733467,653339509,-955321527,-581818790,538511517,136414681,1013151704,1169298348,-31879556,509176938,-986180764,1431568510,105756023,-2011839332,1028411722,940457994,-1648801925,-791560033,-1556269686,-1479129769,1579796917,-1788490557,1444055320,940949893,1419173164,1288248834,1502050202,-290567385,622082562,-1472124428,-1895086319,326734496,2134360824,1579467892,-1176822880,-1107564327,131065371,-1381016470,337562977,1189466743,2010735988,1940926173,144917948,335510032,755334274,-396474434,2146397416,1086201341,1729230585,799895011,774809336,482897872,143544369,1559922189,-143086467,94711128,-248314698,-2000177193,1956850899,1286062965,142647149,1342235391,1972787173,-758859758,1014498593,-437825009,-490111855,185051860,1016674356,501598277,-840322436,104308853,1654541090,-791237464,-2076168741,1897212738,-1930944740,1477076833,-1419179062,-1808179499,-894574760,183174517,1811156946,586943200,-299910776,720818673,1774976692,1268335867,-1676380534,-467809720,567960009,678830850,-457388593,730739039,1632393834,1724065477,-1244400431,-1916333205,1547317927,-1888389113,-826723624,-1873255217,989176409,-2081385422,1938819481,-240934740,-1953444600,-991475624,999207022,-1443003942,1078849536,-1485380260,1530056713,-2032318878,791932772,1783854602,-1428980632,-156915559,-562016637,1136951758,1039053365,1814153733,412072102,1152141565,801548578,127521678,1242468188,-5970230,-724706965,-633156563,7069436,1015239995,-1141826866,164759125,-1564950742,1407638240,79799657,-923603854,-1682148556,-1884109707,-1429857077,-701257099,-1509421207,-1739308354,1686764305,-1670752444,-1014486132,-796291203,-1680331564,355140460,1209280013,-923611877,968997571,1417752930,-488339878,47363941,1480041766,317233851,559409308,921595369,-268661590,401985089,802072175,866946172,2037796190,-969494698,-1373701096,-1414780770,-1235491948,-44049347,-826347331,1309846042,131937669,1326002478,450171580,-1979180794,1146594638,-632702727,1594163195,-201904390,1376509776,-931998874,1956118853,-880487056,-1919488577,-1390615150,-1027441041,218245363,-453072721,1797265717,-853229525,1269361312,141388385,-2059588053,766411252,-1020487188,-1181802125,-1090374470,211526038,933551989,107638129,-2121495745,959458543,-581483896,-184454808,-784717690,2112780149,-248103371,787062344,-1602349769,156982396,552324636,1353420752,296180362,546690187,-1124912582,512921845,-536543559,-1261167351,919598375,-2016564953,-1121471746,1530479188,-1555278843,-1753086273,-1044705046,1691923694,-209825799,718291490,1005722927,940334185,726330613,-168052594,-2020167658,-1795109654,-1562813130,1794668226,26839232,1907823263,350333064,1218792089,-2088209832,-1618677052,-881462793,-1229743527,1696626781,723966028,1688673961,-58233426,-925331083,1246619657,573647119,-106552211,634962215,-941621748,25844074,-1747475153,408267539,704095689,1772637506,1920721292,-388990532,709238098,1784648073,-1988424391,-1094236551,-418295064,-1548748394,1475239650,-1188067091,-1080870167,-1134620884,450697449,-110022645,-386583945,-976355491,2039418230,242903756,-183165593); -/*FRC*/Random.twister.import_mti(156); void (makeScript(14)); -/*FRC*/count=332; tryItOut("\"use strict\"; mathy0 = (function(x, y) { \"use strict\"; return (( + (((x >>> 0) / ( + -0x0ffffffff)) >>> 0)) != ( + Math.pow(( + Math.fround(Math.min(Math.fround((( + ((Math.pow(Math.fround(y), Math.fround(-0x0ffffffff)) >>> 0) ? ( + 0x07fffffff) : ( + Math.hypot((Math.atan2((x | 0), -0x080000000) | 0), y)))) < -Number.MAX_VALUE)), Math.fround((Math.fround(Math.atan2(Math.log1p(x), (-0x0ffffffff | 0))) ? Math.fround(((((Math.fround(-0x0ffffffff) | (y >>> 0)) >>> 0) ^ ( + ( ~ 1/0))) | 0)) : Math.fround(x)))))), (Math.asin(x) & y)))); }); "); -/*FRC*/Random.twister.import_mti(427); void (makeScript(14)); -/*FRC*/count=333; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return Math.hypot(Math.fround(((Math.max(x, x) % 1/0) >>> Math.fround((Math.atan2(( ! (Math.fround(Math.sinh(Math.fround(y))) | 0)), (y >> (Math.cosh(mathy1(y, y)) >>> 0))) | 0)))), (((Math.min((((Math.max(x, x) <= Math.fround(x)) > Math.sign(( + Math.tanh(( ! x))))) | 0), (Math.fround(Math.trunc(Math.fround((Math.max((-0x100000000 | 0), (y | 0)) | 0)))) | 0)) | 0) && (((Math.fround(Math.fround(mathy1(Math.fround((mathy4((-1/0 | 0), (mathy2(Math.fround(x), Math.fround(-1/0)) >>> 0)) | 0)), Math.fround(x)))) != (Math.imul((Math.min(x, ((mathy1((0x080000000 | 0), ((y !== Number.MIN_VALUE) | 0)) | 0) | 0)) >>> 0), (( + ( ~ -Number.MAX_VALUE)) >>> 0)) >>> 0)) >>> 0) | 0)) | 0)); }); testMathyFunction(mathy5, /*MARR*/[x, x, objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), x, objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mta(-1095231624,-1745483684,2083747103,1245668830,-340612830,1468792476,-363621136,-1631630817,-1787244760,-1262365084,54311135,-2097723995,1693068959,305930455,1581567417,225057510,1907948941,-488651299,-1942159691,1132279110,-1257638546,-2085378483,1307998514,-1664856964,-589522397,-1560143577,-563436034,-359094047,1443513128,1232577149,1993062810,-546918075,-289932599,1578116477,-1378189910,1734664087,593836348,572106468,149168235,-1618465558,-1767731082,-2110935621,143578935,-184189245,-1022849673,-140755636,1005802504,-1740149182,329288024,416035670,-5834429,-377281930,-1439170225,1079977181,1967391865,1655181500,-1821055225,-276104223,-1469396812,768307567,-2048882516,-793221262,-792757552,985839545,855378154,2020917008,1208253151,-1258902051,-238316289,950852819,-2068508202,-3196900,-1669994133,-449478771,1740776052,-1806290763,-437897867,303985769,-783857379,212527759,266821952,-2019765631,-182797214,-1791204359,-1261237399,-1525539474,-894606330,-580989743,-1697836892,500115249,-930531982,1219608149,-902531134,-1145156572,-151386349,350316869,2125403889,-584997627,1221995869,-1922319796,53800497,-527285984,-854090478,-523450794,-1423235059,2074593499,2114415399,419633496,-960258599,-1875314196,-1838958758,1336019747,1072913903,-563369755,467714796,-607815502,-1220087859,771670481,-1844379507,-979476780,-1637036951,-583231967,-340989611,707575451,-32737684,605945704,560742296,930705622,596716807,-1784391115,1753363781,-1436642483,1875321054,-2119114373,-1487872211,1519586882,-790472209,1173816527,-113524900,-721106559,148485150,339471196,-1175542093,549401494,1441939384,-1753405874,-1630325659,-2067238223,1977187917,1123584262,-905967319,-1558942808,465187713,-1930602166,-1214121603,-521327312,1638205362,1012096823,1973023121,894761116,-1329063896,-530868136,-1348765281,-996071574,457731220,997502432,-1336892812,-1834029832,1337635152,-2029572905,-1868555032,-679032657,-133145200,113390698,747378649,1637083303,1482899193,1564557148,-2141123931,1551694736,-1854192348,-42386392,1077992868,-866867203,-1450833571,2008810615,-1826656029,1583557879,-1844524131,-1624300523,-554733525,-783902555,-2019631738,-1982089319,-651288928,-1808831619,-1491581338,-1008394544,327299595,375340654,1290047572,-917542394,1606442714,365614901,-1669515379,1803955810,1248186516,1095708876,-272124448,1238854052,-947233178,1252554796,-286909997,1386603973,1209169238,612897627,215003622,2063353424,2112337633,285586411,1971927305,-607061130,-1842455864,1499202068,-966302269,1143080355,-1101051858,2053116456,-115363266,-1732872743,-685352555,1595592234,951996466,1173593809,700175053,-555112560,-2044002633,1677432747,-801971085,555638989,-1110270094,-2068220211,382667760,-575661797,-1198609496,656922605,-1620795728,1441526312,1327574730,-1691090183,-1609659815,-1288986712,-682061513,1656569654,579305213,-1441883195,2074869109,-1804932458,371643277,-1843507846,-189251783,1125888948,2027544346,19176756,-1754104930,-1902924261,-627815930,-1207667481,-282910730,-640417681,-695631760,1181229242,-1321985903,-1446699762,-1085778858,216266292,-1229368641,1231282897,1722134716,-775886421,1298116722,1899319058,181561007,461207276,1546250059,1892138351,-144568267,1514590527,1562890180,-431479023,20547871,1594178059,675049826,1601048595,1518960292,1660752659,-1223843874,-531791537,274607558,-1441466384,2020160057,-720190469,997232239,-1518751954,-2028460210,1770138005,-1999985960,616972659,1308725832,-80536319,-552067003,-1329213343,-394548348,-554155729,-1527211050,1390763612,1431513833,1177612900,440946139,-749646455,-890986277,-800407830,-561983301,1719349889,604386394,-730410584,428443652,1035143331,-827635108,-448630495,1513817514,1027335470,-370036496,819298335,1260963689,-1054885812,-2137563226,420098938,-2139012182,-556961387,-1293089162,-887728191,1803919456,29577300,-484831620,1482761704,2131859375,-255467708,339255984,1991547750,874317175,-589987910,454113366,1849723309,367360356,1228614968,260714577,1820907275,-185025560,1941962971,375714329,1446023101,185439367,436325275,-1276423990,1786898914,-1106408179,-1914969085,1047561674,-1618335310,209487963,-72504588,-973653169,-1963745121,1514496486,1013298973,2103666810,-451777773,-1074141576,-598771918,1442978456,-1586079928,871037791,-606118314,130018701,-716614112,822434370,-1187535584,-153541095,-1682679232,-1151954658,-1574972747,-1846221245,1049535578,-2051424380,1105102520,440972304,668331825,1966222926,-1161639108,1046197809,-236487443,-2100638191,-415731812,-1073102795,829016837,-4235075,-1206314707,978161255,-340016004,607693162,-335160265,1777375341,82125854,2023224777,1209903992,-1369439868,-159111553,174997143,-15448025,-1884309481,740531663,-2120487272,1946966483,-1498156676,-805371794,598030727,1570411812,-29313342,-1816951043,556738671,549004591,1703679271,946550192,-2002079497,-67328927,-494813284,189134358,2047759641,1150237294,-784027790,-1745269700,-744637737,-1839153862,497082172,-1396493223,-713567720,1953592080,990924645,-1426093410,479487120,-1542143505,434462100,-1432254269,440855080,-358301552,1814539522,-733414748,142817688,228059959,1352278245,-874400162,681652238,-406274480,-469467538,2133504430,760855710,109841363,-1822809508,352576055,-122200395,-2023958323,-733377657,1800226937,366878038,-932694904,-2033414242,2112829868,-1569210307,-1096025017,-103457443,117311684,-405757345,-1518719088,1476482092,-466110872,1477638673,-1198383514,-1470628125,1995240632,1625327858,1715342591,-1015039887,-1878930512,84334398,1381157284,473722321,-53929791,1998218135,1767240700,-2048995427,791980500,474481274,885445780,2124260484,-1269307581,1596918339,1418327628,1301178813,701051140,1282541792,167768836,736775333,281366260,-1542383170,976132809,2091781388,649925000,1383052117,758676961,1027982004,-291171833,-1804084175,-1896478557,-1991741721,879182965,1229997965,1571510401,181470715,1845427366,1561338054,1485931496,-1024078563,1683103389,-1688432199,735438616,1712134382,1150158735,-434990949,-907155598,456614217,-75923061,346590871,-678824564,-603098109,-2088322917,381807393,-464584289,-1429600674,-1239563016,-2122008092,-2053792865,-2097013108,-1866583488,2032051869,-555831982,-854083895,1390979311,-1267089484,-142071315,-426477382,-501085974,41747991,1123554794,-2082187466,-569206059,-1286483777,977509547,434103361,190326805,1940851235,1135450463,218694905,-69195289,1976254895,-1735039979,1279870753,2010537340,-1772807729,1249744589,456962764,355056900,-387443544,100328469,-774716776,-180583740,1006795193,-355026371,-1805520306,-527099786,261269437,414216001,1422024501,1130984808,1911922904,-1235181166,978422619,-946317289,-666741262,-2060314630,403751639,-1889074000,-1315515098,1236750043,-600859691,-1953375578,-1989379685,-98213245,1019437323,-176035652,-1470630110,1449660742,-1094813359,-1264963861,2146863243,-1460231793,1339188971,518437316,1332607825,1780132146,1112089313,-2105242910,-497239852,1158987692); -/*FRC*/Random.twister.import_mti(266); void (makeScript(14)); -/*FRC*/count=334; tryItOut("\"use strict\"; let (y) { p0 + ''; }"); -/*FRC*/Random.twister.import_mti(300); void (makeScript(14)); -/*FRC*/count=335; tryItOut("\"use strict\"; v0 = Object.prototype.isPrototypeOf.call(p0, g0);"); -/*FRC*/Random.twister.import_mti(315); void (makeScript(14)); -/*FRC*/count=336; tryItOut("\"use strict\"; let y, b = /*MARR*/[new Boolean(true), new Number(1), this, this, (void 0), (void 0), this, (void 0), new Boolean(true), new Boolean(true), this, this, (void 0), this, (void 0), new Number(1), this, (void 0), this, this, this, new Number(1), this, new Number(1), new Boolean(true), this, (void 0), new Number(1), this, this, new Number(1), (void 0), this, new Number(1), this, this, new Boolean(true), new Boolean(true), new Number(1), new Boolean(true), (void 0), this, this, (void 0), (void 0), this, this, new Number(1), new Boolean(true), this, new Boolean(true), new Boolean(true), (void 0), this, this, new Boolean(true), new Boolean(true), new Boolean(true), (void 0), new Boolean(true), new Number(1), (void 0), (void 0), (void 0), new Number(1), this, new Boolean(true), new Boolean(true), new Boolean(true), (void 0), this, new Boolean(true), (void 0), new Number(1), this, this, new Number(1), new Boolean(true), new Number(1), this, new Number(1), new Boolean(true), (void 0), new Number(1), this, (void 0), (void 0), (void 0), (void 0), (void 0), new Number(1), this, (void 0), new Boolean(true), new Boolean(true), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), (void 0), new Boolean(true), new Boolean(true), new Number(1), (void 0), (void 0), new Number(1), this, new Boolean(true), new Number(1), this, new Number(1), new Boolean(true), new Boolean(true), new Number(1), new Boolean(true), this, (void 0), this, new Boolean(true), new Number(1), this, new Number(1), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), new Boolean(true), this, this, new Number(1), (void 0), new Boolean(true), (void 0), (void 0), new Boolean(true), new Boolean(true), new Boolean(true), this, this, new Number(1), new Boolean(true), new Boolean(true), this, new Boolean(true), new Boolean(true), new Boolean(true), this, new Number(1), new Boolean(true), new Number(1), new Number(1), new Boolean(true), this, (void 0), this, new Number(1), new Number(1), new Number(1), this].some, jedbqg, x = new (void shapeOf( '' ))(), {x: {}} = x, x = x, yksimt;print(uneval(s1));"); -/*FRC*/Random.twister.import_mta(1815014175,-1843190754,-1612875309,193127072,-1709014109,-1209858967,829389388,-1967806559,1795760183,657034253,543820576,-785372681,2074961096,-1844281495,-357510844,-937142668,-1400736209,-1484703156,698560987,-1260061901,777340294,1821704718,-243896807,2026456537,-458612349,-290538393,-1740063364,-843656984,1917608335,415294794,-350126759,269745017,1706239132,935466682,-905708997,1950255545,694675138,365957149,-197610988,-1445922905,-748974060,-1488875939,-419088944,700995862,-331918694,-1906044717,-1639773669,1416666000,-1599787534,1940659814,11592235,-150667491,1406707759,-1086400909,-1790916175,-1990746424,1147946476,1316195954,625592568,1859643732,-1139488483,1625064688,-906100684,1239688336,-136582698,-1783906882,1689999457,99157198,-1166774504,788739189,2037094365,1147692598,-23990994,-1957277809,343896136,1068638690,-1152728430,-1535833849,389411088,-2126561474,-416686029,-654664180,1832746340,984901686,1417086579,-2105143204,1390278951,359128190,869831983,2086035624,1170370963,-1924283134,724816554,-2104149084,-1253701502,1696629718,664381933,-127569585,1424430210,-995186154,-864012207,294759710,422809815,1229187908,-873464474,-1170012362,944199736,-990586185,-62153803,371118574,-1437580542,-880838763,-1611377239,25323926,605900637,-381580388,-550330685,873539879,1491187107,-1433347097,-785651129,-1095665888,-517565837,38009218,-1129583181,-2067676163,-1790267192,25708731,-1480730192,-1541804560,-779312648,2100467092,-198296380,-1750007921,903349449,1938575669,-1616827355,-1480503785,-664849657,576832225,1318318625,1676505885,-1716355399,835616405,-255389012,-1026972550,216366091,1072266234,-1560609768,-1429643414,-1245367221,2116005697,-1335138211,1130165637,-169669369,-204432043,396307716,-623186294,-998977252,-713835811,583361731,2059187108,-1780958632,-1422897424,-6791654,441800493,196043670,-466022498,1150925921,-83763509,-930592733,1708640905,1211707936,-52317936,-361964077,-1204802726,-717179319,-319589342,-156558883,1156900275,157991784,-160073955,-178293268,-688453955,-134279200,2020547590,-205274447,1105008521,597925905,-897748621,461194928,-676422515,1030779749,1661315309,-877696480,122584070,580647424,-1589901054,-1118880091,472105841,-482349804,-1214088545,383765695,-1893275186,-89910399,-1801175700,1762711229,-338935515,-277189004,-1431742808,-1619960171,-1833378499,98282113,-1939944055,-584800204,-1193926238,-1981542973,-670178524,964479141,-333559120,856605823,108713525,112502840,-126738209,2040346860,-42787645,941930168,1352741376,1198566957,1833362886,1678738869,-2038584390,202537950,-1128651787,-1514048407,-1324027981,-807602425,-1854158394,414689614,1698966385,1229354192,-1579723588,2146757158,-255515653,1830445413,638680707,-569310681,163959523,-133712979,947493866,559712781,370072007,-1611652100,268677853,1102654933,-1768869910,318083073,960144448,421322180,-2031645729,1448071008,-160492106,1957480227,585030413,-879659057,-1720543465,1826258187,-1530257425,1386430133,-1941834264,1258047819,1839590925,-628711852,-1041817552,302080138,586232946,-1911201839,870464117,1189886743,897019926,-2019266054,153176633,-2065095234,-210762090,-283582438,-2014285763,-1694748396,-1836634369,-890230873,275412068,-9565878,-473575065,588514664,1241507635,-1382072936,-1577934601,-970111987,826573118,1365384654,464372973,953654957,-791705696,755955317,-121188043,1237101842,324051068,1247063896,-1071044329,2087428179,-1682317927,-69324583,541774769,1962049556,10597580,2081780560,-2139508604,1598953882,-772872287,1038996249,-683068904,-357538607,1125044224,-1894405559,899331008,-765584997,405000320,1132437144,-338322049,-96983727,1949176322,1474173395,-15260386,2065790950,-2065986733,-461699439,-1140837274,1520158803,-1441733929,1024556928,-964503918,-50203991,1373609837,-375381066,-289433091,1478605779,-27144533,-1829620667,-1690846433,-2048181613,1646305303,740902495,-249335400,719927284,-1615328134,622190119,963670343,190133930,-336528372,-1646648026,1712649495,631244942,-1453949355,-410778585,-2041281472,-763249946,1582384478,-41648065,296464580,1814587332,1183091275,202943471,187973588,515425514,1640484088,-1194127189,-1672787931,21551676,-365312137,272110808,-613784303,1407704609,891207799,-566283650,-850892003,-260160102,-1661567939,-907515827,-1063172336,929472132,-931925289,1664554869,778739172,1158808832,158579796,-2066330430,1237182057,1910741388,-233742588,2025238295,-1910744601,1562034105,838928900,-877912940,743237260,760160639,1350310236,-2114921990,-851135356,-1012361949,-1488772775,2046646393,437252873,2048757257,1451264138,1708376629,882090195,674747027,-951916252,1898711105,-475062351,-1407396139,-882729620,-465510352,834798270,-960263883,1972703929,854493667,-601901451,1735592254,-549394345,108186502,1365944781,-2003720268,-196264423,255501258,-1640320582,-284447325,998163654,-1325449206,762969400,-945656937,769836416,-236552385,-952868259,1466223063,1405559209,-1775832264,-1215409390,319099770,1224645232,1936781559,896505382,1898670205,1963443116,1710445128,828602540,1197643924,541989241,431943422,-1118315661,-1723139878,-242094994,-2098155365,-1109473232,-286355183,236680961,-16081337,1089168894,1918768504,-626526813,711196482,-1640622983,-893425056,-721548148,770820263,-1151208350,1183713084,-1452287284,-799828165,2048015757,1400682175,-346436571,-1003735006,2130000407,186744692,-333639661,-1699838740,-1687387954,-1927712790,1155302234,-2000065107,1931877160,-781028657,777590420,-1914471619,-977946494,724420951,-1468413857,1494161395,1096894789,-1770162982,472211895,949116472,-1319400045,-1329497845,-1334636823,523471664,946599419,499503803,-1563418162,-141557996,1675982487,-1886202041,-1997226549,1452856132,-190373599,53804192,1330733119,1817272136,1035396146,-408559889,2125226847,2139165817,461489057,-226520101,-322793769,-1401890702,-1531466609,-432997901,59172374,-728887103,-238093501,-126803987,-554543269,-1782326629,1332554788,553021057,1373620299,1153179656,-1604222865,-1542077226,-1354136380,-1413658046,-1472195772,153422643,-276457898,2087059976,-1076533250,402666108,-807930181,-296169776,-1814096163,1350355360,-1493664503,-994391082,96161514,-2074937686,1306707465,500924727,141249467,-171274458,1011692869,-1652801901,1533666248,1544626018,-38721792,44804120,1759948886,-847561800,1233065592,1449256333,-944928400,1520003719,1897866317,242596298,2059872732,1506512553,-1106544025,219482657,662138514,-1792224520,291624051,-494554222,599545830,-1855013522,1523820837,-898164522,1871770025,-652414354,960882470,319030079,1642603939,2145779690,-981577645,177987597,-1475865930,-62908769,1614381334,1236087849,-877128354,1718898336,-535266760,1637375895,-1235769591,-1343149532,-846817078,1064330383,-1802576261,266220585,-1978349073,-1501797442,1982450157,1605622679,790338775,1305650952,-913892050,-956256715,-578201086,459786621,-46259025,137492773,-168292184,725072319,-553886500); -/*FRC*/Random.twister.import_mti(193); void (makeScript(14)); -/*FRC*/count=337; tryItOut("\"use strict\"; \"use asm\"; mathy4 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n var i2 = 0;\n {\n {\n i2 = (((-0xa0712*(i1))>>>(((((0xfa29adc5)*-0xe787c)>>>((0xfbbe1d39)-(0xfa8cbbd9)-(0x5b083254))) >= (((/*FFI*/ff(((16383.0)))|0))>>>((0x4d237ad7) % (0x6ba5f35b))))-((abs((((0x2aec9f41)) & ((0xe9bcb740))))|0) <= (imul((i2), (i1))|0))-(i2))));\n }\n }\n return +((Infinity));\n }\n return f; })(this, {ff: (void version(185))}, new ArrayBuffer(4096)); testMathyFunction(mathy4, [-0x100000000, -Number.MIN_VALUE, -1/0, 1/0, 0x07fffffff, 42, Number.MIN_VALUE, -0x080000001, Number.MAX_VALUE, -0x07fffffff, 0x100000000, -Number.MAX_VALUE, 0, 0x080000000, 0/0, 0x0ffffffff, 0x100000001, 0x100000001, 0x080000001, Math.PI, -0, -0x080000000, 1, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(413); void (makeScript(14)); -/*FRC*/count=338; tryItOut("\"use strict\"; const b, jrcofg, {x: [{c: arguments}, [e], ], x} = new Function(NaN), x = /* Comment */eval, x = x, a;/* no regression tests found */"); -/*FRC*/Random.twister.import_mta(-83833589,-1370447071,-874698569,-922530121,-252167953,-1826905678,-1340177021,-1044184645,-622825595,-1849303958,2094272672,-1099028665,927116850,212152539,2115885107,-1252784703,88085932,-1475679737,-1209438827,2132635728,-251107293,-794849390,113446274,121730763,624784256,-1469792626,1461283530,653068589,2046124060,-1636399216,220134166,1437244272,-996023542,-1166309820,-1300406834,-1675471659,1739425480,891747008,1406827190,-2035915351,-237587657,-1015162142,2040385971,-239484198,-203915978,667896557,-1391710315,1194745646,705769114,259404530,352623683,-471730254,-831962730,-1596447504,1908693314,320686731,1379796117,2002236980,101223430,-1067430715,1344297729,1027731172,-643446469,-1566110671,-1153158479,1772465268,-1087747497,-204167523,-1064149532,1522001270,1658803941,1293345775,100950715,1616660326,-2115042168,-686159063,533477584,1718300719,-1140954115,-1408088070,-988637750,-1496503927,1732774294,-531659431,-367344629,877294702,1950798888,-1949989572,-768204729,558304506,-1647680945,-662665537,1167466120,-764778004,28728003,1538660070,-1956438292,-409931396,-404558455,-731552352,-525263152,-862032057,1707130087,-1282766231,1090839084,1689383460,170479639,1475085326,-75733474,169585329,-992149778,-885569360,-502196987,2089412709,1464185689,2030250233,1274321287,-471811766,2028469261,-223757988,269081519,-2050316626,2090277107,1626904809,-1513868674,891571229,-1035118813,-509509885,-1093765073,-994670450,-634460603,-601364591,-782882546,392864378,1358979846,1856583968,337264783,1625617351,-2024440437,-1632164018,-115228390,-781340789,1636700154,-1669968512,-835889415,1959216280,-1212895559,408450367,-1159644701,-1081333518,1506934913,-1724041587,930167974,1302460556,1933568168,464740130,-1953166772,-1501519016,-167107749,1278800916,1891409883,389536795,1576234179,-1979277269,-395366900,-1733587112,1769300999,-1487572595,1496938682,-1622826,-2096765491,-379084120,1997524720,-1168163909,-1682596643,-1456373380,124165724,-332888581,-2118784038,1568599837,473526582,2008723671,-721134317,-288140024,1834375792,1114432021,-631608067,431480249,-421158589,-2016822386,-582021328,514620163,-1848671345,919844399,575609760,1856504554,-706718510,-852177024,2131837905,-840966123,-1562375034,-1681235287,-869572167,-2110851137,-1437965170,-1944550378,448345924,-666100450,-1731054690,-373261542,1155137594,-734309962,355672052,-923912284,709024060,-2109117015,1126001989,-2006682747,-7849866,126844117,1203536327,406691169,1477411871,1962894675,1380527638,1998971619,-156449316,1102064322,-1728851518,1624398514,-901932182,-1225718528,340656279,2079756136,4310717,604415193,-646432631,814728199,366248480,333550682,474913413,31960352,339616995,-356149823,571139481,32070745,-1560860162,1409483050,-1935457689,-1889142693,-1790006537,717578878,2037241663,-288535297,765828824,-1450764093,-2098473552,26252788,-808325568,-1350171462,-2125722465,1361284736,340101516,-613577232,-526974572,-1128270612,231463553,26188978,-983752682,-2048178743,1583580419,-560254436,1195170549,-468934704,1448002839,-1273810515,-812671209,-1350946537,-111521863,-843351701,2101358899,1940966301,1789217216,632452248,-1381548299,1266062476,271280997,-1403979763,1970590934,-434975330,1246581853,-355586043,-732762318,-1444555621,975521337,982273853,34973161,1248745474,-641158842,-2090394318,1211860150,1314967405,1920062316,2064805465,1875075089,-1630258095,353264558,573568316,840529818,-2085641947,694312030,-798784511,874163720,1246522752,-1946591874,-1114559350,-1866936331,1513372444,-215736397,-1446601665,-1276313108,-1623965896,24858374,994353918,-1417602756,-966974779,2022120384,77970599,-1232509370,-685309743,-1946085146,1016355295,-2848942,-518233216,166469181,255406824,-2045023483,-1705754322,-394910727,93936782,-1922132212,1670750850,-1756080936,-1091767119,1171844800,-1466542352,641389580,-873138631,1842497146,-208991485,1483284517,-256857724,989350432,164563183,1678899071,-1151016070,-246483320,-1799097130,908406213,-1014616759,-1698091633,-1144335926,763591424,2103090684,265048424,547327307,-698155220,-818547976,1797741169,-24450350,-1712565654,-1049545588,1143251684,852858419,-814390798,-96119555,328760214,298715885,763409626,-947231895,-836360088,1545630103,-467674509,-206952319,1911762329,200714146,745035676,722456729,-1442409041,-1251977306,-1657540903,-890884980,-1676521102,1797145190,1518547558,1640543356,-957377708,1716912793,2002861700,-2138430989,-1554006343,-1100770665,-15207878,-2000044484,-1005156011,-2125625561,1004320095,-454718600,-1122791260,821182960,2061245523,-917492309,1764533840,1908096312,-1695105777,1811347669,-1536635108,1020378063,-1233959932,1590253626,1398995097,1349479352,910754741,1871257751,787936771,-9521153,2061011952,-782661607,761439837,-1894644614,865276806,-1375553708,1865853893,1562666657,-682539581,1985959312,-1266738823,1554358335,-2105037014,-1343579424,-1642113692,-1950787972,2027678808,-1314408079,948917134,-191151638,1548244316,238946426,1011011673,-121680709,1850256960,-204199177,1302725429,-1001034504,1493276308,-1153262200,-369236271,-958206955,827480166,1491827962,54425951,-667865553,2062139585,923255006,-292892840,-1285980708,1939089061,627150905,-1245911250,1091558210,2094411554,1196773545,1805015583,1829207410,1236531995,-270253575,-1680730819,1685049781,-825963417,-908378945,1114184242,1337164489,1341469975,-2021955062,-1365856990,-2105103306,-500153123,-943670422,860737325,-1993764987,-1560379292,1361479724,-342655066,-1842161728,1666531571,163804258,148836665,-1410548187,1730356833,1275224216,857120724,1242032651,901138363,250057549,1850410684,-1228699103,1216754505,-357930831,1658379130,291681866,-850886900,862381449,-1778091338,2070348487,252434498,888056454,1488112990,2087058425,-199933412,2122887322,1337677291,-1662157606,-1371267534,-1574773541,-1526222922,-1880040065,1211399082,-1574221680,262388838,-1052873773,-1694653657,-1963761864,1755686691,-957923780,1167680302,-1150619643,843642335,188501082,1499198697,1712344163,501788642,-567805857,-374266584,1294138035,1844899895,-1927864649,-1238618176,-1238830,567768250,1985423470,-341599921,-1010860564,1277799582,450526763,1182276562,-1264575213,685691658,467953826,-1582740259,-986595135,640829949,-1638223445,1653457676,-1475091276,-1534274898,-1457260555,837420197,-1412232496,120203710,627840705,-1657130999,-1315116196,152138761,553650409,-157850921,-666947087,1971717871,-2014636566,-485810483,812524380,-663268855,1431514806,-356857719,-101078977,1621266587,320774574,759620930,-1236839240,-412605863,-1123431872,-727302158,809414301,-1691871811,170377205,-617481309,-1945116191,-1902761383,607287457,-458408413,924747188,47819567,649199334,2019964838,1147203204,1997358728,-349161918,1422245003,281117347,-1071471169,-1222513748,297172136,-954044275,-2056005354,176227352,265051662,1351512682,-609944921,1233697464,1836158468,1090657599,1373784626,-1777312154,1320589842,577193230); -/*FRC*/Random.twister.import_mti(28); void (makeScript(14)); -/*FRC*/count=339; tryItOut("\"use strict\"; v0 = a2.length;\nfor (var v of s0) { try { o2.i0.next(); } catch(e0) { } try { a2 = a2.slice(NaN, NaN); } catch(e1) { } Object.defineProperty(this, \"this.v0\", { configurable: true, enumerable: false, get: function() { return 0; } }); }\n"); -/*FRC*/Random.twister.import_mti(186); void (makeScript(14)); -/*FRC*/count=340; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return (Math.fround(Math.fround((Math.fround(mathy1(( + ( ~ ( + ( + Math.cos(( + (-0 * 0x100000001))))))), ((((((( + Math.min(y, y)) >>> 0) << ((( ! (y | 0)) >>> 0) >>> 0)) >>> 0) | 0) >> ((((y >>> 0) % (Math.fround(mathy1(Math.fround(x), Math.fround(x))) | 0)) | 0) | 0)) | 0))) ** Math.fround(( + Math.atan2(( + Math.atan(x)), ( + ( + (Math.sign((( + Math.min(( + -Number.MIN_VALUE), ( + x))) >>> 0)) >>> 0))))))))) & Math.atan2(( + ( + (Math.log((((x >>> 0) || Math.min(y, x)) >>> 0)) | 0))), (Math.trunc(((((Math.cosh(x) | 0) < ( + ( + x))) | 0) | 0)) | 0))); }); testMathyFunction(mathy2, [-0, -0x080000001, 0, 0x07fffffff, -Number.MAX_VALUE, -0x0ffffffff, 0x080000000, -0x100000000, 0x100000001, 42, 1, 0/0, -0x07fffffff, -1/0, 1/0, Number.MIN_VALUE, 0x080000001, -Number.MIN_VALUE, Number.MAX_VALUE, -0x080000000, 0x100000001, 0x0ffffffff, Math.PI, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(580); void (makeScript(14)); -/*FRC*/count=341; tryItOut("p0.toString = f1;"); -/*FRC*/Random.twister.import_mti(593); void (makeScript(14)); -/*FRC*/count=342; tryItOut("\"use asm\"; "); -/*FRC*/Random.twister.import_mti(600); void (makeScript(14)); -/*FRC*/count=343; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return ( + Math.min(Math.atan2(Math.fround(( + mathy0(-0x100000000, (Math.min(Math.acosh((Math.min((0/0 >>> 0), x) ? -Number.MAX_VALUE : y)), mathy0((y >>> 0), ( ~ x))) >>> 0)))), ( + ((( - x) < (Math.fround(Math.min(Math.fround(y), -0x0ffffffff)) | 0)) | 0))), (Math.sinh(Math.fround((Math.fround(( + Math.max(( + x), ( + ((Math.min(x, Math.fround(x)) | 0) > (( ~ (0x100000001 | 0)) | 0)))))) !== Math.fround(( + mathy0(((y ? Math.fround(( ~ x)) : y) >>> 0), ( + mathy0((( + ( - y)) | 0), x)))))))) >>> 0))); }); testMathyFunction(mathy2, [Math.PI, Number.MIN_VALUE, -Number.MIN_VALUE, 0/0, 0x100000000, -Number.MAX_VALUE, 0x07fffffff, 0x100000001, Number.MAX_VALUE, 0x080000000, -0, 1/0, 42, -0x100000000, 0x0ffffffff, -0x07fffffff, 0x100000001, -1/0, -0x080000001, 1, 0, 0x080000001, -0x080000000, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mta(-1468603434,-1954080256,2097362551,1110118929,-135380402,1041236004,1897958974,812518984,-911251182,1169603855,1657939972,-424491075,-1347917502,-589676395,1257414548,730639494,-55117596,1477098266,343425277,98847698,1419672582,-183319867,-1000254592,1107050841,1146959103,1573238480,-436792098,302794253,-262802377,1012397691,-74660447,254957528,-768620712,1789771105,2031824353,484468897,1203182529,-21202792,-335226981,1436348477,1025199438,1732376364,-1758037107,-403477505,1096172501,-145405107,-767781146,763872451,-215983981,-809325662,1070527395,1534488722,-1462542653,380273377,1666334573,-38686304,-83998,1510330519,41552693,417692558,-666756249,-2071458780,-1867494851,-946548520,-1394345963,-59484875,-672849073,-1899765334,-570257561,-604816120,-1696444143,800482988,1898051825,2082581862,-1244600862,611337847,-952478278,-851149254,-1175625212,-111452200,-1375603282,-1117730644,1626623692,-1368602392,362199294,1976983299,-2103859052,1585778142,-769316277,1977468197,847792362,1367785577,-1608729741,2066554330,2096989023,-299700016,-503664770,-1985181976,1676789426,2022153809,1420507481,-1932801843,-858811021,1402269378,2019496729,-1448452241,621908298,1408578995,1791422374,1793608766,-1892561687,-1965498073,-164695385,2145523327,-1762672342,720799402,1251434082,-361720165,230323752,-1983999914,2122361006,324435642,-671331279,1566133460,1601694219,376046972,1274729349,1667769214,-307521224,-1137985449,1429212039,1728620769,-1970586898,-1300393308,-1113078872,-73386053,1872623360,-549753548,-198089822,1322784082,-92132544,698151700,1747675811,-470371263,-1539024365,1801700011,-1744408333,-376513511,-758052146,1137549151,1786458955,2054154985,1351078952,-767791845,-832122243,1239624120,1234841479,-1535788384,-759404775,-1987564488,-1988675984,374884963,1496981515,1376116475,-770738681,-1891647024,582085805,-938447117,-1764726370,-379566436,-547300476,2091765446,-1588905021,1239961272,-452711454,1252145959,-1910703413,-1236428998,797505184,2073738868,624885086,1350664347,1191676376,-1361281231,-311562397,1587498536,741013052,-891752219,1358593129,1138844378,1612306918,1988580161,2137563528,-981355998,124432360,-1311227948,1824380981,1035070100,870883636,-538563558,-253757142,464535072,-285126988,1476172136,1623047405,893037572,1749475339,996433735,-1613755441,917027990,987507320,-1967445435,-1823018882,1150750774,1594783366,2113265515,-1749316347,1879589429,-1975419681,1634863771,-593574697,-662766380,-495640759,2026298681,881467336,1977678076,1119834223,-1542517961,-68274343,1478360002,424906897,616690394,65750928,-402072129,-1150948101,2082194825,-2063994925,1748527380,-280883824,948409567,-601254395,-639288006,-2014914887,884685559,-1040800279,84136962,1877330759,-876122646,732466743,399423012,345960550,-505188417,-206856080,-1289364558,-1614316877,-1323294993,2090843265,-597413247,1492211077,193032648,37517857,1933175079,827764313,939301643,-1595702546,870943236,1432043108,532012357,-1128471273,1628375507,-927010063,-1145004432,-984415067,538133682,-1366889270,233777095,24577014,-630496096,-1532789512,1333524101,-1233496080,1442880397,-278361108,1881512007,1069456081,-1821962664,-1748650153,-1560776436,-1216255253,1822314700,1811642373,-959803508,831393703,335491212,177043179,1174465868,-20705015,-1241118286,1845880885,356268714,-1038517745,-1930949548,-2131639932,1775457645,1529270477,-211135533,-397630138,-1223864733,633317601,876962019,525711927,1335619578,1357932995,-2023422421,5086107,57802094,415750315,-1844250644,-1670562135,-102089851,884408902,1010836700,-209673809,-197516320,1938466645,531778386,-471994147,1341098618,2119235706,-1966139136,-1797885198,1203065008,-651923793,-118542709,1416211655,-255595781,667053225,1644326346,-938193056,-258361055,237553470,-1656362170,-326611923,679160066,-29639197,1588010030,894196629,141134739,-1281668124,583036156,1694570518,34328347,-1954205228,-520447771,2128237251,-1794317700,-162905540,-1758843462,-540864870,1592204534,-275187135,-345604568,-988972731,1752948660,1450974030,-553640908,692251694,370751143,383354493,618480534,-2092028409,-967439519,-352208531,-1078149110,228902584,-1692584187,-769512714,2092656934,-1063097470,932495388,623174927,1700892571,-1455518425,-1469380204,-1584469647,-997700393,84374699,92064888,1290297776,-1901369416,930531517,-1677304130,-89071389,267416990,-118213427,-1247305676,54785807,-456112954,-438276384,1777095744,-1882114260,-1701850369,247915577,1964969662,1877206134,-345105200,1239972808,2075604236,150511715,-480168146,326949179,-1711555509,1715654836,-1202120604,640367696,1120803815,-2071916574,2065726436,434372444,-808358629,-306837506,-2058969363,521412416,-489810965,-1693580876,1317332172,1849841865,1063656155,473512989,-1228355721,1090372290,-1909564976,-2103431285,-622398923,1078719887,484915116,-1041048490,1000340973,-582064331,-598123828,21740296,593723562,-64048372,-872667966,1246094016,-463120783,1718423206,1538726948,2099898966,-1789835159,-668698467,-883839347,1472876160,775920421,-1179761165,370701550,-1570489065,1106951330,146033831,-1686320160,1561918071,1595522116,1738024422,-1279489921,831838202,260091421,-1287656420,-956832366,-1184706405,-1181892312,-1910955396,1832204345,864053947,-768309739,1698561481,-11979658,-51253727,-1426839926,470171967,-1835061911,234138121,557142247,-1298289686,735373840,-1658362726,-1327380684,1751198845,-1030607512,-291135942,1613360747,1601167133,-1792393923,2062606820,-1107743038,458516340,568057172,-302914018,573034782,-1648251332,-589804721,-1676148376,760577992,-1818992962,911376552,1476530543,1508431235,-484019710,-954844595,1588707496,-909331350,-1331799460,884778890,2010922980,-1874830474,-1198578609,-1680339900,-878436881,1374804235,-1181820991,-1889856115,495554273,1571781106,-1910950914,-1404582190,1761007570,169858528,69836514,-2050448324,897550690,1418174664,749402865,-1233341565,-803615539,-1971317551,867206846,-443325743,836454094,-1427050340,-442795756,1577336370,830360283,1955924239,-51891992,-1221324689,227657832,-948229815,-2044938260,1683798043,124498155,1599725015,-1780114154,362705178,-1948793704,-1058931404,-860408788,708809215,-2026033839,487220291,-1138425841,322304654,1858782849,623856961,-456517471,1971586558,-1348786449,166329837,-445629367,1304286177,385569017,2065556726,1890933932,599504696,-684742523,-1760601567,-42032204,1347483724,557180425,-1920194641,1513938613,1052125199,-1974267970,-762345896,1895335612,521386670,-1633321619,-916423621,1170519722,86268850,-1243440376,-1352767812,-1452525531,-1025466033,52130577,-1647140576,-921274744,-929422450,-271790311,672137673,-1646704197,1936055333,-1394327687,832036203,-1188216761,-375092814,1227059719,868746520,-1493388910,-1673722097,1056012877,-505040013,317882637,-482933254,-2117546277,48323500,758904141,-130896836,-361809180,30281663,630186238,-767441414,83385005,-1615889980,-1533803853,393774820); -/*FRC*/Random.twister.import_mti(351); void (makeScript(14)); -/*FRC*/count=344; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return (( - ((((Math.log10(Math.pow(Math.ceil(y), y)) | 0) > (Math.fround(Math.max((Math.fround(mathy1(Math.fround(Math.expm1(y)), ( + (( + Math.atanh(x)) === ( + x))))) >>> 0), ( + ( + y)))) | 0)) | 0) | 0)) | 0); }); testMathyFunction(mathy3, [0x080000000, 0x0ffffffff, -0x080000000, -Number.MAX_VALUE, Number.MAX_VALUE, -Number.MIN_VALUE, Math.PI, Number.MIN_VALUE, 0x100000001, -0, -1/0, 0x07fffffff, 0x100000000, 0/0, 0x080000001, -0x080000001, -0x100000000, 0, 42, 0x100000001, -0x07fffffff, 1, 1/0, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(546); void (makeScript(14)); -/*FRC*/count=345; tryItOut("mathy0 = (function(x, y) { return (Math.max((( + Math.min(Math.fround(( + ( ~ Math.min((y | 0), (y | 0))))), Math.fround(Math.tan(( - Math.atan2((x | 0), y)))))) | 0), ((Math.min(( + Math.asin(( + Math.max((( ~ (Math.PI >>> 0)) >>> 0), (x | 0))))), x) < Math.sinh(((Math.acos(( + 0x07fffffff)) | 0) | 0))) | 0)) | 0); }); testMathyFunction(mathy0, [-0x080000001, Number.MIN_VALUE, -0x100000000, 1/0, 0/0, -Number.MIN_VALUE, 0x080000000, -0x0ffffffff, 0x080000001, 1, Math.PI, -0x080000000, 0x100000001, 0x100000000, 0x07fffffff, -Number.MAX_VALUE, -1/0, Number.MAX_VALUE, -0x07fffffff, -0, 42, 0, 0x0ffffffff, 0x100000001]); "); -/*FRC*/Random.twister.import_mta(-1592538682,40453380,-772706921,-1272572405,-980954387,911647526,1831340442,1261719807,280883848,2021748682,-773396979,1596757186,335849403,1980077809,-1942099448,1478077638,-732150295,-1256215311,1077689870,-1362218527,-660493735,2077447836,908590440,1452289374,-1415297659,770676015,851476530,975981424,-1985499346,-896759098,2029990199,892264369,1519823128,-445061907,425123167,947065524,-440873351,-1354682723,-282984595,-545293583,138348155,1339943468,917004268,-119002563,-2118019629,-1791952769,70743676,-354582954,-2088500320,-1602041944,1980507245,-263653912,1192016326,1887819764,-175540643,674567537,-634010703,563867830,443205929,390955131,62831280,-639313562,-122248308,-1839090014,-1205131775,-1788738402,-186812246,-946003818,1652109465,1732670539,-1859332412,419077180,-2019747941,-1796124531,-1509577763,270352486,-1265190648,969624779,-2082169958,-1410263818,-196853028,1820091993,-2052503267,1195374198,-2099851335,-1278115936,1150708991,758989152,1393005945,1898252296,1935277443,1738765148,499081350,-132534675,-1573173931,168670811,-114332234,1789690925,-2070895965,1588382317,-1119189593,1655624794,-1257096146,960444475,-1601642336,-1055091173,-2036290898,1835099836,1822225308,2109088937,460519937,-1129445084,792006538,-1142310199,1640490207,1385664725,1014014180,-28172453,-1626913681,-1260107336,1482352214,192430342,-503860249,-1422210245,1452964684,854387427,-1644963987,1579359054,-855459564,-138859522,793002131,809112597,230255002,1920539429,1386485889,-1479067827,-1524784565,1235761007,-2097190792,211440494,-29456106,1216773274,-151530291,-95103219,-1741924219,1776531534,1526451900,1694059791,1066751545,707370646,-1067188816,791173887,-280011899,1809728759,1903158726,907174788,-757391260,1021425535,1861978083,-1014581655,-819007059,162570453,-1556110036,-557462179,1655745961,748314152,-930839976,-453832160,2103041699,-1967107701,871052418,-1621721657,535413674,1110919517,-538830220,1227449663,-869690948,-1430595356,1839048566,866818214,1019500349,2042567257,-1328502968,1710049488,-1111482036,1726872994,-1552453117,1875964806,-393163434,1976064601,-1485880627,-1974023220,-1918976083,-354848815,-636698971,-330485804,-2096475030,-790485486,-412535421,-1750912116,1707613913,-1436946719,412848273,95572432,722111337,335970461,1830688462,-540817601,1755077459,-1148017490,6824690,2002387570,-2085733528,1031125582,1153784464,320714886,-470955415,-1324090371,293804462,1562962000,1844539861,-843194491,925506489,515724617,-1520499270,482548315,-1669876832,1173119669,1852291301,1146098944,-1505300634,-999132891,-1688568538,-1450029256,-1406074140,-1949715010,211639104,-431497019,-1704464782,-1558651802,452397164,1455829387,-1689484958,1840228290,-140622096,-288986254,-1959950572,343760285,1882459534,1013482843,-9885090,-764308035,1954380022,-466907724,-72026920,1860223409,2109088601,-1919997142,820930389,-1031789353,1173135521,-1728759124,-1165627410,-171372786,-155849825,-980656033,1236083852,-1888893905,-1504518630,-1946184117,-1526176507,2053154654,-986097114,326369305,891444586,-2092989861,-1917356552,610114065,251510389,1546752574,-2104677651,-1036176469,-919639667,1558330886,673740698,-931093923,1177663741,-1049182438,-1347686144,1413721937,-1325076124,2045022477,-1667392296,1754493696,-459450832,-1005352766,1011183762,2133234177,308576617,1066998339,-763013465,-427996385,-33793521,876977,-1720265219,-138229447,1769931544,1066608243,-279550217,319497433,1626472843,866536327,694897770,-1648881171,746962903,-965948941,2016179198,-1536699896,-2107711935,1206182309,-432423933,49522013,1880139691,434278083,1702207876,745990674,962269008,-2107442790,1741248730,-8845993,1524994147,353527592,610513281,1973210130,-871881954,-1502251753,1287066188,1064885681,1575642475,1747020821,-1253355670,-1903463914,111805524,-1704603958,-1862168244,480893306,702037166,1100432292,1511552888,-747159572,859282537,1398334374,-610724274,2073448147,1420126832,-1238919158,-1137951453,1084606430,1598659182,-1552047003,130688049,-1456859908,-739583849,-1910263828,1713912181,-698474897,-1633781534,1817901815,1525210449,1851290385,7823970,1956918508,910022731,472493536,-260086190,1451508546,1416899077,-533542799,1960983281,1691720157,-1067043867,-50850934,1646782286,454353923,-944954933,-1250914967,-1053241259,-379928203,249893641,1636594093,-792272382,-2032112377,1801610471,1844848865,-1105149382,-1510959621,-1196919832,1092289522,-341813273,402741308,-1770516227,25811127,1940316768,-69704825,-1626483060,157915794,242287136,-1582254125,1208975822,1617328906,-266852822,-824096490,2059497872,-261952469,-675328342,-355448153,140011435,-1415660189,884395422,-79315886,829591672,-1786334971,1143117566,-829598544,-1214229388,1228974392,286821950,-220450808,674577797,2028302832,44399928,-212718477,-528660136,-1808573226,-776971031,1214592376,2136337031,-1211653705,427208468,-1022630164,751073819,2060583702,1994631911,-2033239287,438951962,1656069885,1894999618,1399162110,1579010926,-1037002968,-501402928,-826662150,-1831573738,430449030,249583810,-430106959,615336785,991197674,-909372203,1826533570,-2044817126,-1610805225,186597726,1415000253,2022639380,-2080892804,-1067241809,-548482818,167825695,-599781284,-2109895935,2002174834,1590991015,1622919471,735692710,-1757132223,1762825758,677558814,1110881238,-1416651475,1840878872,-486923987,990557369,1931841812,-704657232,-573161036,-473353629,851341244,1911127366,205172927,1716822351,-1949459603,-613353666,67573558,-1618728315,-1867895531,-622035260,-1410813413,-1929104858,-1959437678,1172226045,1021866549,-669597169,952028560,-1851703281,1064208244,-1498267705,-304756039,-421828194,-1855961949,113012163,331769960,-1063219226,-2088855035,-1936017096,1399934760,-1514933493,885729883,-1488868588,1263659895,1178914809,-476983345,-1842320469,1212029819,2049538289,275795480,1031620701,-2009427434,-868312197,1923192744,-2110027601,1752335172,730493838,816267335,-1806555196,-1212430960,108223639,306167041,1554273438,-1461921320,1056581045,317826979,83783963,1055168458,517142131,-1051687497,-1396568713,2089079977,-1269302423,2061658400,1395504718,1620984776,1275466888,1593873734,1316323770,-44073299,687114153,-570449733,1552456303,-1978768866,-33301907,1734713233,-591955992,-1032703516,-494627944,-161821808,-1745406662,658397129,-1291485075,1055959554,-1950870186,597620177,-836320075,1466396020,700399490,-745917277,1287232740,-954121236,-720681090,-558853743,315723263,752429358,-1179761315,712389450,-1122154212,1034666299,-1578137156,490432949,-24827998,508851290,1985695636,-1095946206,-659075329,-99269722,135785264,-1274672638,-1554463958,-1751943584,-1809946079,-1186498776,-571804790,1977710254,576063387,-1444076583,-103363843,1738302008,-1279022459,102120988,1426225900,-1302980841,714041086,507639417,-201318209,1320000044,-716990613,2077396603,-1201420627,-1040117123,-1346334726,-1340671634,1646367747,1969386428,-296954231,-1474193653); -/*FRC*/Random.twister.import_mti(141); void (makeScript(14)); -/*FRC*/count=346; tryItOut("s1 += s2;"); -/*FRC*/Random.twister.import_mti(153); void (makeScript(14)); -/*FRC*/count=347; tryItOut("{ void 0; assertJitStackInvariants(); } Object.defineProperty(this, \"v1\", { configurable: (x % 3 == 2), enumerable: (x % 39 == 19), get: function() { return g1.eval(\"/* no regression tests found */\"); } });"); -/*FRC*/Random.twister.import_mti(194); void (makeScript(14)); -/*FRC*/count=348; tryItOut("o0 = {};"); -/*FRC*/Random.twister.import_mti(204); void (makeScript(14)); -/*FRC*/count=349; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(213); void (makeScript(14)); -/*FRC*/count=350; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(222); void (makeScript(14)); -/*FRC*/count=351; tryItOut("\"use strict\"; testMathyFunction(mathy4, [-Number.MIN_VALUE, -0x07fffffff, -0x0ffffffff, 0x080000001, Math.PI, -0x100000000, -0, 0x100000000, -1/0, -0x080000001, 0x07fffffff, 1, -Number.MAX_VALUE, Number.MAX_VALUE, 1/0, 0, -0x080000000, 42, 0x080000000, Number.MIN_VALUE, 0/0, 0x100000001, 0x100000001, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(254); void (makeScript(14)); -/*FRC*/count=352; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return ( + ( ~ ( + ( + (( ! (((Math.fround(x) ^ Number.MIN_VALUE) << (Math.expm1(((( ~ (x >>> 0)) >>> 0) >>> 0)) >>> 0)) >>> 0)) >>> 0))))); }); "); -/*FRC*/Random.twister.import_mti(354); void (makeScript(14)); -/*FRC*/count=353; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return ( + ( ~ (Math.min(x, 0) - ( + Math.atanh(((Math.expm1((Math.fround(( + y)) >>> 0)) >>> 0) | 0)))))); }); testMathyFunction(mathy2, /*MARR*/[x, x, x, x, x, x, x, x, new Boolean(false)]); "); -/*FRC*/Random.twister.import_mti(480); void (makeScript(14)); -/*FRC*/count=354; tryItOut("\"use strict\"; \"use asm\"; t2 = new Uint8ClampedArray(b0, 1, x);"); -/*FRC*/Random.twister.import_mti(501); void (makeScript(14)); -/*FRC*/count=355; tryItOut("\"use strict\"; v2 + '';"); -/*FRC*/Random.twister.import_mti(510); void (makeScript(14)); -/*FRC*/count=356; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ((( + ( ! ( + Math.atan2(Math.sqrt(((y | 0) & (( + ((Math.cos(x) | 0) >> ( + x))) | 0))), Math.abs((( - (-Number.MAX_VALUE | 0)) | 0)))))) < (Math.sign(Math.fround(Math.atan2(Math.fround((((y >>> 0) && -0) != (( ~ (x >>> 0)) >>> 0))), mathy0((y | 0), Math.asin(( ~ ( + x))))))) >>> 0)) >>> 0); }); testMathyFunction(mathy1, [-0x0ffffffff, 0x07fffffff, 0x100000000, 0/0, Number.MAX_VALUE, 42, 0x080000000, 0x080000001, 0x100000001, 0x0ffffffff, -0x080000000, 0x100000001, -0x07fffffff, 1, -Number.MAX_VALUE, -0, 1/0, -Number.MIN_VALUE, Math.PI, -0x100000000, -1/0, Number.MIN_VALUE, 0, -0x080000001]); "); -/*FRC*/Random.twister.import_mta(3121520,1515213299,-618994714,1840466260,1520601380,1160963757,1196096295,-1756155960,891891063,-1081425415,-836305486,-620404020,-1033109331,-167324882,-1561485451,-907549765,870681228,-1214164563,1690296968,-50331048,-696838611,799355690,-804410627,-1113062811,1517931341,1564661479,-744787704,-1284275229,738651227,-194009478,1900277519,92170505,-749620391,-687430840,-278158039,1269407419,1520139079,1059591040,-1093519137,-1572677275,-1876339551,35815650,1719092013,-181665747,-1455239178,888672729,-1281260510,1542185418,854916393,-1828862805,1799486986,1033607053,-93160238,1104230689,61347997,650524177,1231411677,-1696756599,1962108499,628233737,400954713,-1248377581,636382099,1124315845,-716434856,1903295755,932815094,-1866780793,693342854,-923449907,-1825333536,-1866012147,254806213,1211625008,1062757185,1151321123,-1521033323,707496555,-1027817414,321959792,-950781459,-638933113,-938449386,-170245605,-1156407555,-1068944871,1706766756,1702146771,-448477776,1131248765,24106514,2134297861,-1455499434,-1371425990,1472458911,-404274715,-396761601,80005899,1727330556,1564576968,-624961482,-1752355791,1319269968,1436209069,-982611481,-1689872552,1309572814,-1477494335,-1732434433,839119384,-209531349,-1321079205,362555672,-279498893,-1551560483,-560406636,626992503,1511107536,151219188,-912359392,829885144,246596152,-2017182155,755626591,1676610145,96547010,657430236,1554523259,1806490599,-203958069,154085571,-891146314,-761943323,845231152,-493770691,-536079756,-847516881,-1792175112,-235475929,963385372,1987871564,-19460569,1291715201,-337331928,1711307652,696489541,-1785691758,-1743721040,-733721860,-1930169425,-1307031287,452519540,-1777992828,1805272237,2073522698,1701545146,-1736901082,-536808812,1167365446,-697610336,3096590,1293371641,2086941807,374553702,1898492037,-118147388,-1341409036,86035478,1781683082,-838684805,-1315055115,-51289672,-2031894925,-1538713492,-570230895,-399373205,37355782,1601301561,-899712784,-875362395,1660321311,-849144614,-1404684807,204578137,1605359615,824003715,1570654857,-1990905929,-565748536,726702085,1477446739,558024875,-231705747,-2108317671,-930371640,-1724750646,-1838919505,-492060370,-2649148,1219787929,464990671,1096487606,-1147248704,1365706465,-420837825,349768956,520384665,345003915,2052403311,-201868292,1035681573,1423271768,-320026064,149801910,399452730,1560180052,-1892886771,-1652417604,1430714963,395562648,2111262048,1834824441,641786645,1888360158,-1576317362,-529068199,1407129230,-1374368291,2021153651,-935750571,-1769815783,386906039,301711665,290617941,-759696105,1936163031,362905924,-2095773045,-1970729729,-1894284133,1148025652,-1353982012,-1087360934,137013748,-1061002220,556343554,775298121,-294842134,-1466318504,-273072174,1301837924,541554486,1867976765,-1371468956,1561023460,-1948955352,-223857681,-1338217350,-1120482371,682578902,-612614626,-1305914658,827136316,-1194770857,-991521936,-637228391,1023314861,-1023394900,-556401896,-1376009872,-2011409534,-1948359963,-464871158,-1456428393,-1015246792,1949255637,1507572092,-180907537,327376530,1648122235,-1178136533,-29942652,1219963154,1567744528,664104312,-1897723150,97077636,1077145049,1186865764,1030492961,-1493611876,-620569548,87573643,97979374,-223155226,2003905231,1852750866,50949771,369285107,-1082518711,-1576928416,-659620199,-1651391452,820315572,-926786008,-1241300554,-1779329898,1777842761,157779252,1633801740,1963054855,-1347995448,1469942320,-1427022192,-548772107,-1722614705,1365153145,-649590291,-2050224888,53131656,1982910795,-154987627,1914615387,-622643907,318750210,2052685652,1550905349,-1453624229,825826885,-1160245570,1595145273,1314382328,-1584860847,1745514305,1843213205,-18436903,-1263064033,1149193281,475654286,255430317,-1475176840,-523234569,-743819023,1843391953,340084589,502232483,-380296718,477835620,654925262,1196900574,77955980,1310949702,-519919756,226304996,1203497086,-1397590615,-1819985116,646702580,1112821083,142084130,653540942,309097641,-1491221118,661079882,654978064,-1095118762,-699804232,-1040163525,1358137200,1288025008,-776559778,-468310146,664223925,-1381027141,-212677615,1735847713,635578184,1365370030,-1315268027,792613545,367414632,176456109,-236370332,581361180,598738175,-1140830797,1003397061,-564823723,-455491344,1409762670,-869549510,-1651428823,1460048491,-1357129239,-825215436,912681598,-1366348158,491078361,-1326330458,349636306,2105885928,-405698911,1289129335,1304226368,465903984,-848823840,1107553427,116506360,-45078177,-1807079700,1799436754,584019767,-1876653495,910290396,1698019899,56876994,-1483245973,38496924,484447874,-1433846959,295585860,-1432687433,-1099641198,-910919019,-2046061134,-144976677,1910138013,-693821486,2099882574,-1160978084,-238641145,-1764482413,1589682839,-288035278,1889717559,-587762189,1897716728,1895852207,1968215086,596002786,897894973,-1246343274,-963553265,-1036507392,902849565,1832864114,1042353383,1389996247,1279621485,1464760957,399706019,-345932347,-1398595686,1420770031,70448730,-1289335292,-709646176,728529836,1633742806,318015932,-945536383,-1757915720,-1069242282,702939854,-2098657611,1940925303,-525275932,-1738169500,-2123638806,1730561285,1937885261,1990236312,-2005109430,1004208026,2093450517,-602895785,-74947875,1820533135,-1400370817,428595889,104114989,-1719223961,-1303935582,-665331785,-556315488,1440408147,1911579656,-477593411,758954590,-1687160508,606552894,-1453397777,-1744363262,-1439420880,308125177,-1281112966,1627859106,-828487023,-834351188,531451435,776741714,1988051424,678437149,-939284060,-1434398123,-1714228818,-1914827528,-894786332,797937162,-1830703316,1418909220,130361995,1448408879,1132729624,696994381,-848336066,-33474861,-1252417770,664967504,-1089301592,-1390977834,581070572,-1972987987,-898453323,187779463,-1850424574,-1150854590,1561724418,-1577175731,92582060,1155286038,-586717201,928534858,-1613199500,841635969,-749298784,-243877805,1532230984,-1144433628,-1847056331,981548446,1144909479,-2044676182,-952148321,1625881577,1252375404,-463445245,-183264224,-1951258875,1535667580,-357821223,888976454,1440298487,2068459736,251427794,-62132914,221212220,-1470168623,1263587575,1199680696,-2102390698,1132890209,-1612729301,-973773357,1062349193,1470263827,-978446954,681109137,-1079490570,-696896934,-1525143578,-1436641816,1985790745,-41238989,-1397318678,1096127420,1690820904,1847599155,-1200391855,828559700,454145907,-1033602545,-108434420,-1928618070,-514411082,1386449285,-538112985,431402399,1564888708,-1674550712,942792539,-765903952,-1011650171,-1841160160,-670869446,23062245,118229120,45164177,-1196057366,1231174000,-681604628,2071035651,-360133102,-1073614103,581948850,829685720,1815432615,1063743518,-1968751879,-1532037861,-1265723905,-2135382913,-615087963,-2006457169,984911543,1642107769,-1408271217,-1681130041,-979743074,-1088493387,-1783963593,1627319727,-75624156,-291963334); -/*FRC*/Random.twister.import_mti(149); void (makeScript(14)); -/*FRC*/count=357; tryItOut("var dextmp = new ArrayBuffer(8); var dextmp_0 = new Uint8Array(dextmp); print(dextmp_0[0]); dextmp_0[0] = 10; var dextmp_1 = new Uint32Array(dextmp); print(dextmp_1[0]); var dextmp_2 = new Int16Array(dextmp); dextmp_2[0] = 10; e1.add(o1.m2);this;s2 + o1;"); -/*FRC*/Random.twister.import_mti(237); void (makeScript(14)); -/*FRC*/count=358; tryItOut("\"use strict\"; v1 = evalcx(\"a1.unshift(this.o1, p1, t2);\", g2);"); -/*FRC*/Random.twister.import_mti(273); void (makeScript(14)); -/*FRC*/count=359; tryItOut("testMathyFunction(mathy4, [1, 0x100000001, -Number.MIN_VALUE, -1/0, -0, -0x080000000, -0x100000000, -0x0ffffffff, 0, -Number.MAX_VALUE, 1/0, 0x100000001, Number.MIN_VALUE, 0x080000000, 0x07fffffff, 0x080000001, 0/0, -0x07fffffff, 42, Math.PI, -0x080000001, 0x0ffffffff, 0x100000000, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=360; tryItOut("Array.prototype.shift.call(a1);o2 = new Object;"); -/*FRC*/Random.twister.import_mti(337); void (makeScript(14)); -/*FRC*/count=361; tryItOut("mathy1 = (function(x, y) { return ((Math.pow((((Math.pow((x | 0), (y | 0)) | 0) >= ( + y)) >>> 0), (Math.cos(( ! ( - ( + ( ~ -Number.MAX_VALUE))))) >>> 0)) >>> 0) , ((Math.pow(0x100000000, Math.fround(Math.round(Math.fround(mathy0(x, x))))) == x) ? Math.atan(((0x100000001 ? Math.min(Math.atan2(( + (( + x) & ( + Math.PI))), y), ( + mathy0(( + Number.MAX_VALUE), ( + x)))) : Math.max(mathy0(y, x), y)) | 0)) : Math.cosh((( - ((((x | 0) >= (y | 0)) | 0) >>> 0)) >>> 0)))); }); testMathyFunction(mathy1, [-0x080000000, 42, -0x0ffffffff, -0x080000001, Number.MAX_VALUE, -Number.MAX_VALUE, 0, -0x100000000, Math.PI, 0x080000001, 0x0ffffffff, 0x100000001, 1/0, 0x100000001, 0x100000000, -0x07fffffff, 0x07fffffff, 0/0, -0, -1/0, Number.MIN_VALUE, -Number.MIN_VALUE, 0x080000000, 1]); "); -/*FRC*/Random.twister.import_mta(-1452942593,-1652769707,1645126264,1356071034,1547715880,-159694789,1175813540,-665254124,1269443011,621843018,1802702750,91134422,-280408197,-1556134217,-550228427,-908701937,-1264978475,392842111,1038343918,1436831138,1436152585,-1376881885,1834322620,-441836227,489895707,-1749453290,151325627,1224758080,-848558106,-1871502395,1293065097,-846609603,-783306504,528204364,1778933009,-360337429,-247404558,-154967673,350136734,-1610563209,806430942,-547125913,-2145847509,1629859270,1992488869,-549348834,-1345464347,-1247630762,-45540360,1266807778,-719531058,1903970052,-1364306382,-1894794446,1628100114,286868395,-1060549516,-414976596,949482975,1195905747,-1464899078,-1432393024,-1434591231,-318616659,1988631522,-611813331,-1196218926,-700395530,-826132146,-1456921708,1225680573,1610310487,1128116765,-182105806,-840447402,64989791,-137917840,1570366728,-1786195473,1093324532,-1719745901,-931120524,-93435037,-1028303732,1621790900,-1063641744,1944403457,-327864712,-1385894734,1900515073,1159419616,967037429,-867229479,-691139666,61208770,1965253410,1902050154,556261767,-1660747234,1280885945,475032662,-1458178940,-1402431198,-1779181698,1004276300,1333206650,1123845531,2144792693,-1059911518,756538162,184738582,1698798214,1010993226,-1671893355,1753826625,-1644964533,1854718192,755695543,-375379154,-1497713729,-1308557814,-1119340907,1889458776,99117369,541259405,-1712235325,2100171351,-1477471061,827826104,1727561468,2020020697,1371295968,1555311284,-325312297,-1392415019,-923986942,-716288376,-740712883,-1881106514,-901187083,-47134076,1153361339,-1541770079,1233191004,-906717862,-1930889373,-1959319481,181067415,-1781206428,610596696,-1200623846,-2135893305,-1219624971,-681071140,105477659,1508199140,189417874,1815490929,-679589218,1295568443,400299378,-328566241,1286091403,590149835,2147226371,-941987759,-2023423016,172687436,-374631055,73943475,1457542733,1708206096,-2074952084,1393683697,1196368642,927056794,1262156016,-1986451566,-1112235855,-1934332168,1217505886,2002310002,-294473945,-1378948013,1138912401,1313798551,279558318,-1904927790,-1643940520,1793964753,-1876985579,-44644371,1142031003,1551109311,-1631581739,327805197,-484982601,-1477930536,-66230154,-1814093640,572305354,-1518685430,-1193735457,2099411500,824047997,2080523905,1396795891,-2037514918,143139366,-1411357974,353223602,-1127129119,-522710848,-1083637534,-1362649387,1170758652,-962139791,-920698047,1781101621,-1830495681,879613028,1337102283,-2024152102,-2068887792,-1982997796,-1835951517,1620715531,1280395161,543737504,-1337494997,-2107937922,-843770513,1742392782,-163170320,954365856,1098574177,-1114462256,-1220593346,-605164732,-1920994591,-1264932523,-2136197608,-1916593163,-1795635233,1207884798,-1276092395,1653786071,30741413,-634196790,194623118,-175528282,-1282404390,-2137394268,1736483401,1290466772,758165198,-932375048,-1971237240,-1713476906,-51269641,1181707043,850317711,1877573663,-1825329590,46760980,-743875433,-2122261343,1601951058,-1986107937,-1005134102,-1111348117,82290464,315719562,-831283207,1455274339,-777730234,-401437750,-1663206265,-647308442,725970680,-267111056,89211547,1067561635,-754713912,-533565227,2054377757,-27700000,-1947174712,757191567,-1191099057,-2138888777,-1390638728,-647758374,-2115350495,888203854,-101357753,832906254,-620249701,-649143764,306007981,8029857,-2094061500,1538074757,-744053404,110642643,-546301020,-1395023089,-1647509495,-131018382,1508249663,-714684184,191124908,-706563528,-2058830428,970252416,1556289233,-991216856,134041700,2016841009,1851783331,1957114555,-475917520,-1051047581,941696107,470507053,708037315,-1040331189,-574336085,-1267076133,1525274593,-1294456958,-1307524549,-1569023739,-317018994,-642967866,58732146,-702493235,86906705,-69866225,676053878,1966626609,-1739265562,1913951100,-39398503,-1158285895,-586499113,-393794803,-1585164051,-1629251846,1925979038,586787226,281257271,-548418255,1593042536,683548320,2023031338,901614598,-1069185109,1434473713,1338914195,2091035228,-1097888748,-1688291417,-959752064,-863668634,-456884878,843081655,-1790375620,1658600547,-1933499122,998904803,53970399,53993185,1805057680,-528934440,-2027560512,215221519,967447271,1311195980,-1111566015,1261264341,1052628265,146154986,-2086995150,-348215433,328316323,-82132402,1706095882,-2039883608,1790832534,-185806592,-1921520919,1230976122,-536012606,1366832499,-18087376,-742238208,1318629534,800762745,-1164960744,-101605506,-1205021338,295679674,1188587592,-1356145822,1170073127,-1882410620,-281997778,1031651332,-1680722994,631368471,-755459734,359534457,-1153706644,-1882917837,348159666,734531487,-1636863404,1897589402,215819961,-802043333,-1040552292,-296000360,-1609430418,1162726250,501803751,-1198674095,1552448237,-1206074460,1496508931,-1354703942,-948627223,1265119640,-1307000905,838793084,1879461850,174646882,799377829,-1391297520,1662174465,-1515051223,1418166797,617891964,88501152,-8329224,-332316007,578862731,-1958225907,-48430550,364433620,672614701,-543402735,1640937419,1652773670,1438802075,1253118704,-437170179,-1293214571,-993046095,-587178927,-1109779156,1488987019,361359366,636392533,1475320922,-340419274,-1051909293,-198229344,1782031429,755715852,-1347908717,1136714075,-300081192,-973490302,-1227495855,1056861563,-456092010,2059735750,1717391965,445322989,-229945819,365508357,-669780534,-1492733016,2036633470,-1591322414,1413308278,284243468,1058614573,1039802752,513043170,1321866389,-2035070065,1369875074,1185560431,-115478130,2052148093,-622834755,-767971094,100101667,-179552503,-611509966,-173730924,609899071,-801897392,-1618617062,1309686922,-1479282059,203527437,1441323441,1240063826,1376828317,1538349969,1939095833,-1387803305,-886441927,-475166012,-749573857,-1298808660,-1880599631,-793024681,-1463086777,96767938,-315281390,-740434918,-2063763699,2092321964,-1987236648,-1041403886,2042825358,1680713292,1563716982,-795060194,1824800656,-1268363815,428031364,877653659,-930979078,-627510935,-2002637577,1046411816,985971541,-1504442047,764933635,581930450,-754054033,349583027,-1468624410,-1905908338,1829041104,1650425416,-1343261687,395760303,-964430942,-471751412,-219265851,-674306090,1316552486,-1848634265,-1558015698,366041185,1330281484,-126735292,276916694,-1208508793,-654121020,-452001567,1793881290,-210767669,546865295,-1467377299,1490232554,2059883537,-1092851976,-1053910733,-1400871314,-590038184,-1480022547,1215483293,1271899735,-423007312,1417324710,1041288703,1159124701,807203766,-478256579,-1709321341,1375833374,-1332232912,1582229717,-270023336,877952635,-1377473182,1581370282,1290685073,1633302563,345048729,667999638,1736874343,681056791,-1893273138,-717390127,2116921451,1568927702,554953995,-516598464,-1576181426,-680103818,-169730181,-872816694,1523456466,530405370,-827656405,1061696970,-867693463,157734448,-1102011990,-1776159153,1274031724,-1702693698,159047370,1824996833,-1985970899,511182240); -/*FRC*/Random.twister.import_mti(94); void (makeScript(14)); -/*FRC*/count=362; tryItOut("\"use strict\"; v1 = Object.prototype.isPrototypeOf.call(h1, e0);"); -/*FRC*/Random.twister.import_mti(109); void (makeScript(14)); -/*FRC*/count=363; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var ff = foreign.ff;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var d2 = -129.0;\n var d3 = -33554433.0;\n var d4 = 4611686018427388000.0;\n d2 = (((-590295810358705700000.0)) % ((Float32ArrayView[0])));\n {\n d2 = (d3);\n }\n return ((((((((0x85e2930f)-(i1)) >> (0xf36fe*(0x2d8456fe))) / (abs((((i1)) >> (((0xe167f77d)))))|0))>>>((i1)-(0xa4842f34))) == (((((((0xae84071a))*-0x4d26c)>>>((0x65dc2e2b) % (0x6ea6c0ef))))-(i1))>>>((-0x8000000) % ((((d2))+(((0x79f882b6)+(0x68d1e99b)))) ^ ((0x50319319))))))))|0;\n }\n return f; })(this, {ff: /*wrap3*/(function(){ var gtotig = x; ((void shapeOf(null.throw(\"\\uDB51\"))))(); })}, new ArrayBuffer(4096)); testMathyFunction(mathy1, [[0], 0, '\\0', undefined, [], (new String('')), (new Boolean(false)), true, '/0/', (new Number(-0)), 0.1, ({valueOf:function(){return 0;}}), '0', (new Number(0)), ({toString:function(){return '0';}}), 1, objectEmulatingUndefined(), (function(){return 0;}), '', false, -0, null, ({valueOf:function(){return '0';}}), (new Boolean(true)), NaN, /0/]); "); -/*FRC*/Random.twister.import_mti(491); void (makeScript(14)); -/*FRC*/count=364; tryItOut("if(false) /*bLoop*/for (let xfeqev = 0, x; xfeqev < 21; ++xfeqev, null) { if (xfeqev % 6 == 2) { print(null); } else { g2.t2 = new Int32Array(b0, 20, 2); } } else if (x) function shapeyConstructor(ojfytt){if (ojfytt) Object.defineProperty(this, \"setMinutes\", ({enumerable: (eval(\"/* no regression tests found */\", /(?!\u0093|^(\\d)|\\b(.)\\2{2,16386})/gym))}));this[\"prototype\"] = Object.defineProperty(x, \"valueOf\", ({}));this[\"prototype\"] = c !== ojfytt;this[\"prototype\"] = (1/0);this[\"prototype\"] = ojfytt;Object.defineProperty(this, new String(\"17\"), ({}));return this; }/*tLoopC*/for (let z of [this.__defineGetter__(\"x\", (({/*TOODEEP*/})).bind) for (__parent__ of ({} = (void shapeOf( '' )))) for (x of (/*wrap2*/(function(){ \"use strict\"; var myqrwr = this; var fbpnoo = function(y) { return ({a1:1}) }; return fbpnoo;})())(\"\\u02CB\".throw(-20))) for each (c in x % d) for each (z in []) for (\u3056 in /(?=(?:\u0bfc+|\\b))(?=\\b[^]\\2{4}|.)/gim) for each (x in [])]) { try{let cyuafa = new shapeyConstructor(z); print('EETT'); print(cyuafa);}catch(e){print('TTEE ' + e); } }"); -/*FRC*/Random.twister.import_mta(2024372732,-245373840,1701964684,-1340717507,-10419737,1671697036,1162049259,985335732,-159579642,2085241402,1916454369,1638390062,-627522107,956838545,1350556708,864501386,1680282804,-1146156614,1035958194,65121710,-1063085820,35162065,1433392341,-17789680,1301915865,-519091131,742795180,1469014645,-22841177,-1932013796,279638548,-683915052,-2138291323,-768334781,1796944278,-728417647,-245508108,1691464106,-1533042523,-2070111926,-604266554,811780192,704833509,2071446074,-405131412,-1753886527,1669483661,-2008070759,1723013539,2025069738,1430865758,-435209333,-1229513193,1238765997,364289513,-1511787439,-1657919247,-366133372,-1175123652,1749016615,996414373,-1845035263,-1341842774,380079292,2029363128,-1068220465,-1237856114,-1036967755,62316838,997939990,836377994,33972711,-379370373,1892276223,-224887097,-354438163,163530529,714614726,1463530920,-509849315,1260653967,1943703996,-21470341,652305322,-213878947,-1473611124,-939305492,-562078835,-1163257708,-125594264,-1706055658,-1861135616,858114829,-1998858018,130010133,757972759,-55536143,1787083198,1374020129,321008201,-1986962972,-273709168,2096155975,-636313863,-168897669,-746820716,-380058360,-1681432530,-1026439771,1552318460,-1467639107,-1123168644,-2116541193,118525084,962488908,822021292,-2118822019,1250886521,250588363,1856672824,-793724030,-635688860,-1393187043,427431957,2033783430,878197912,-1121920617,-1265464528,1538333859,-257658839,-44067519,-850969110,-77989569,1138120158,1875428123,1728456230,-1421520237,696920403,126602728,-696099615,-353919631,-1960997149,-1057790797,394247274,-1091031442,373029478,1669503758,-1447764629,265464027,1917150780,1259304083,-1534798605,-1227357318,1007473749,-347712382,-681870924,1850865726,-1811015235,-1654939052,2039114759,2012907496,824654769,-397331342,543837169,1709414670,716002390,723669267,-1158811861,2096595969,438291157,11589889,1750004096,-1466258019,-2107046624,-536523871,1626678418,1718558454,1312965117,-1460788988,-976194958,-285190767,-886415652,417032361,1260115186,1911021704,-424269865,-263274297,1820561586,1306279940,712346502,-93590744,-1196229265,-1922422912,1037726157,-1808963573,609678683,1203342501,-1195915007,-510319623,756528017,2096302041,122994255,1889547325,-2080546546,-735024229,-422983354,986260552,-975082634,-38632415,-571479129,1937621416,-424004173,-711253483,-2025894130,-1345303647,-739813239,914595096,1677461725,-954597784,-1712036236,-307710100,1070103324,136941326,972793716,758301007,1774603237,-248702492,-1419137829,1641275134,-1483052118,-1157591042,1332670954,2005923768,1550073645,1447476244,1401584385,105831957,-491631145,-280560184,1128805109,-936845462,1911071419,-397099274,-578720825,162345732,-2124189211,2021742253,1910985456,886627214,163957168,-518248138,1320380939,1185677909,2009176208,270707744,561885991,414356714,94144451,-671147076,-1858461901,773768187,469934256,1119336585,2080990493,-1303730126,-1866024348,-1814711728,630105089,254821116,-1910297733,267807360,963512294,373951293,1436962308,-1254312949,-193715745,115601733,-1023202598,-636740016,-1431547763,-1878357071,-1297338554,-650960582,2110580883,-2124397878,986637346,-102556764,1107838462,-334962515,525546789,1008702840,-85530290,1965997491,-699264866,-705190674,1301579988,1547803690,-249543791,-1096153723,-2120719373,1238927725,1733706334,973020761,-32380378,1810738299,-1914558894,1607299144,781934436,-953878528,1435057375,452806291,-104011980,1325630857,-1090376738,-1603659742,335955715,1221143370,-1626968673,2128638371,-1543996077,-787250053,-1812272273,-723434687,401567823,-144160380,287334505,-1377058862,-141525249,-998419852,-1150110242,1538221038,1614359221,758770438,-1055025999,-1915447655,-612140229,-1843999787,-780493622,-185824591,1653334125,-1151695458,-1439180594,1357299561,87763084,-752701735,-1525710558,-2116901408,1849918037,-1359347617,943670598,158009064,345657899,1193104596,345903722,-2068944489,1861363038,-889013275,-1689791822,1954795789,411911142,1786294556,-798867665,-53792308,1969864270,829953092,-32824739,-496348594,-1698525128,1719705177,1468335928,-364156912,1029849449,-841270289,1946165467,-159726005,-807382274,736530338,-1676001297,-1400844300,1655035057,-1567621464,-1104876856,55724165,992365856,-1980287700,-986059354,-839904827,-760824715,504424227,-115630771,-1087029036,1613077183,202248421,533864277,-1183866551,2043804341,2035659236,-1328173506,-1443377963,-601085936,1988243303,163609587,2071788790,-1736858247,-389810567,25909584,163827958,-1504978463,1809489196,-1788058356,887262246,1832089817,2113306518,-1906056476,-1796635385,529619445,-1368115357,1120021216,785619128,-872320689,786378732,1012658798,1580173656,325393531,1924591522,1111340748,604888458,-190825154,825490435,283469672,-2061964614,55090323,2132506473,-580947046,-2015417053,-791033285,1017987033,-178759681,1890108158,762155627,1308533286,1317082083,1430627549,-822579972,170887925,215976427,385717600,-330520995,960504496,938459932,-1671098248,-1431191747,-884279494,1042174130,1892123728,805841697,49210593,214446499,-275096155,1535476032,2034757379,-575621574,-1692951431,1572615610,70993109,318639113,378128465,-1025500524,-111718412,-809954523,-1341886450,306493034,-1769202235,2145682012,-661968458,-1433939780,853938478,-524442373,-1000891145,-1143894676,-74084017,-38001047,677758163,-1222188126,-602652673,-1235638725,-1698194402,721298686,549781595,-329889551,-1554476056,1697758553,327315509,18569926,1987264372,-289203936,-169790825,-1827513792,-1747199757,909121642,-1682309650,-711724177,-954437825,-1752920969,1836863706,-578686561,1903202988,1524748642,129658620,544675610,1935549464,-1529848896,903190248,1461064122,498878566,-1932260765,-946509696,251245801,-82863947,-1246523689,459612653,1876164662,1919971375,1220820043,-364376376,613198124,405382551,591855906,-907616566,-1570475004,-2048331083,1140105148,1344852902,691877813,-1352382664,-433579949,2076162634,1128105393,883143045,-536248488,-1882590222,586536330,1670357994,1591189266,993544576,-1149734793,-1259181582,-1169083869,399258102,-1852096163,1654359655,-820722473,1789769917,960749321,1557025608,1685322592,-1877430970,422937837,-887619333,689830669,1342290220,1181790859,-711604474,1475149811,344360355,-1090391515,155130487,1242362711,1624942521,1860640523,-43837766,-247883795,765223547,1968927535,978924312,-68487635,2015615312,-1880935172,1406619279,1955821003,1830495319,1940939900,-600659057,-772549191,-777075896,-1427567649,77855699,-1049253524,1100537397,-70306440,-1712539825,910757863,990799198,1587911298,-1003076674,346974693,-1662484445,-1135557071,-1301543715,-1941892477,1604671378,-1466199335,377059596,2017951695,795604063,-1619547984,-1024274417,-626916017,-369881003,-227546726,-2146833729,1173879117,1306767333,1412477648,655235155,-1972066426,2060294884,1404344410,-760108336,-251615734,-619563384,638062772,349591062,83954970); -/*FRC*/Random.twister.import_mti(171); void (makeScript(14)); -/*FRC*/count=365; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return Math.max((Math.min((( + (-0 | 0)) | 0), ( + (y != ( + mathy0(y, x))))) >>> 0), (( + Math.log1p(( + (mathy2(Math.fround(mathy1(( + Math.sin(-Number.MAX_VALUE)), ( ! x))), Math.trunc(Math.pow(0x080000001, x))) >>> 0)))) >>> 0)); }); testMathyFunction(mathy3, [-0, 0x080000001, -0x080000001, 1, Number.MIN_VALUE, 0x100000001, 0x080000000, 0x100000000, -0x07fffffff, 0, 1/0, 0x07fffffff, -Number.MAX_VALUE, -0x100000000, 42, Number.MAX_VALUE, -0x080000000, -0x0ffffffff, -Number.MIN_VALUE, 0/0, Math.PI, 0x0ffffffff, 0x100000001, -1/0]); "); -/*FRC*/Random.twister.import_mti(381); void (makeScript(14)); -/*FRC*/count=366; tryItOut("mathy1 = (function(x, y) { \"use strict\"; \"use asm\"; return Math.max(((((((Math.fround(0x07fffffff) >>> 0) >> 0x100000001) & (y >>> 0)) >>> 0) ** ((Math.trunc((((x | 0) ? -0x0ffffffff : (x | 0)) | 0)) >> x) >>> 0)) >>> 0), ( + mathy0(( + (Math.fround(y) ? Math.max(42, mathy0(Math.atan(0x080000000), x)) : Math.round(-Number.MAX_VALUE))), ( + ( + mathy0(( + ( ! (y !== y))), Math.fround(( + (( + x) == ( + -Number.MIN_VALUE)))))))))); }); testMathyFunction(mathy1, [-1/0, 0x0ffffffff, 0/0, 0x100000001, 0x080000001, 0, 1/0, -0x080000001, 1, -0x100000000, 0x100000001, 0x07fffffff, -Number.MIN_VALUE, -0x07fffffff, Number.MAX_VALUE, -0x080000000, 42, Math.PI, Number.MIN_VALUE, -0, 0x080000000, -0x0ffffffff, 0x100000000, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mta(-2005246970,-615565037,1563409361,-1875239093,2014474933,-1059719332,-2061228381,-738363526,2142140493,-1445592359,-1768409738,-543273199,1356909723,484270644,1961944988,1340470732,-1816893895,-902414626,509710114,-1910146079,-1698244137,-1653816819,-210159673,-786740385,-1781209965,135043726,-1582686818,-722476242,72765762,1817748608,-549578412,-394433250,-520632938,-258641295,-1341476604,129342611,-1355306161,211307950,-1835563362,1364258874,-1385614385,-56557101,282489718,2115220880,-1674359972,-1114885564,1406631663,-528566533,814057406,1012479695,1178831687,-82633372,-905151723,263646803,558429642,483742621,1258868592,742195406,-585143315,-2041291284,-1664876804,-1214721808,282478366,1161634015,1687296258,-1072925634,-1515449025,1172321350,256090498,241485460,1525390008,1424907542,785729541,272695218,-31203517,1264258698,1789432255,-216599710,54610157,-830691530,-649008091,1644371349,-392086343,1530731070,-1448535249,1281650213,1091698363,-2126433355,-904369009,-673167339,1651936638,-530623230,-398744418,2039465277,-357576179,-1261270510,1951991321,-947290437,2119872731,-248930715,-456812152,1890258575,-2110658615,2017862796,-1137850715,-1280307781,-630768544,-1793326377,-1279078815,-63246547,73872988,-564212648,1677676884,1878069566,-1129325162,-1408791159,-1420222247,-2084360484,-1149157249,-271764159,1677172955,880671716,1611018754,670673070,1979195002,-169300933,311261651,513290310,-2049564185,-7413784,1172611031,759337610,-1014014229,721691623,1886882991,-595408336,-453995581,-1398693428,1415677692,-1748712403,-1615072737,-841829629,-1414094483,-1867127611,1776822457,1380904557,-754630280,-438719182,-2107980951,142435172,823912581,1285566539,1452645288,1463331878,-1531348979,495273122,-1437834488,308511330,-2118222404,-1410994510,-1733383702,-13591870,-534745558,1659925931,1395005600,1493983056,-745359175,-201984132,721856400,-1871722968,2116782999,-308330072,802397595,342426549,-2126314076,514583808,-881663218,774775706,-1727869164,-1767161017,-361358446,-2035135996,1360961458,1441322003,-639383736,1025342259,-1481499168,-146742454,-1076638180,966135367,69494532,120442357,1009433921,183677845,-43334251,-2116414509,-604582179,770990749,-617807630,999928592,653404617,322219548,-1916820988,-1397370240,-604014982,1260251944,1521994356,-927332720,1753804220,-1152634661,1895280457,439431552,-1309651427,1323925424,-1257445930,379740521,-54131103,75687783,-963734340,203014482,206611924,-693801641,-302156368,1417930480,-1948023399,742447844,-910333016,-124537991,-931001146,11533358,-141727810,1138067817,2012174357,-1375242071,1664154149,-444487784,25662701,-516207726,657647284,1962189614,-48135242,1088076007,-1204948752,-681377861,1401894643,-81161045,-1227435367,-2136296432,-1718737195,-1007213732,793398917,797594982,871126726,-1447343218,1566149218,135207735,-140617794,-188640118,971559512,787485876,-23846359,140107167,-1598447934,-1240268970,1157304476,-612540490,-1700850971,-1427041615,1656235185,1462584886,1654961763,236912157,-1755376314,-801008587,55318219,-352530493,500736930,725976175,927827453,453086738,1457584624,1305568599,-79980789,1270410773,1901753055,-504437185,-414154989,869219957,1631189693,249138594,2018399352,-2029127932,-349864847,-816330936,589983788,560164759,-1342417021,-1665783643,-1926570960,-751715220,602660509,2077548720,1951660953,-2041120931,-169353141,1822945481,-651097980,-87912411,-1848691931,2094477103,1742432676,1461741876,1407548362,287634090,1380622571,-293799638,1097584133,-2079455888,1756093300,431675004,-1451622315,433570674,1714258666,1340941019,370277968,1756327730,334041541,-2030358350,756175968,-270117314,-783154935,-1431227610,171341628,92653555,1641353109,1673599828,-1803050680,-417741861,907250865,2119308187,988478809,1305752317,-1365632561,465618794,-784011699,-77065585,31737012,-310243285,1751275847,1689497974,-1262735004,1450619920,-5790450,-1982661177,1776362217,962579658,-1305659727,-1498560626,553923449,-156039579,-1707242321,236065865,-1506405097,-62088735,179077181,626307035,-626684879,1978863084,-435146593,-1634527899,1460434094,-703789679,-1320792353,1899008642,-2111208371,-676756296,-1619473332,1734053759,-1527092532,1204970748,137025858,2082008208,1466930,-1363674722,1895789745,2119091585,1539178583,1320053412,1521870011,-1078276544,-1947596757,-869687283,-806494171,1445845186,370522873,397180770,-2012933833,-1277633246,-2088151648,-845530377,-1987998061,-1124238369,-1952477341,639346925,1860931378,-1646057617,478551912,-1617210108,-1945864062,191879585,-92677984,-417793917,975997505,1959686076,562102127,836855154,1492589367,323857240,-1205484147,1799695031,350177954,-763559623,291515697,-491931380,216709627,-919867849,29994383,-412915945,457579944,-1892427943,1947806742,2105179409,1706185445,-2142180294,970871634,-1344879985,417901563,144952886,-1785771926,-1760616690,-257866082,111576935,836654871,551121860,-1679453363,-839885300,-1556667741,1357952140,-850228007,-472908404,-1730967119,-297337340,1934619325,-237065856,2040469046,1358810729,-1614588896,1497954739,773278153,-767287477,-2132859980,-1212971834,-1956659899,-1701673384,1900870985,-1249988029,1434758756,-2121653172,-1106345558,-533739273,-1639930738,-1044281138,-2065967739,-1701624254,-706126770,-1057149374,1788953086,-731303903,1919062992,-684839234,1315825765,-1872504620,329018086,10287262,921040712,1955273815,2072970955,2013139675,-1485158088,-250226890,1568837925,-734881703,-604966187,-1582920353,-1651466719,-2126508763,514091798,-1337857339,1426518568,-1702630479,595647837,-104164981,943077671,1801882575,-1668428673,1341508779,913401507,1430113934,1575677658,-1030454009,1506853877,733002155,-899289374,-376546528,-1397912677,49499901,-793909495,-591320835,1155301552,1067408472,-121780397,-2095384348,-1677082259,-1697099545,-823100365,406240804,-1030603523,119058936,719772338,-1347472868,-408110973,-571242088,-516826164,-830264552,282995923,-334434816,-1002349272,-461241927,1730467480,335643187,1079908463,1670213918,-1055443293,1559751365,12225940,852684685,-577044558,-493086546,-2012032253,-1905725178,-244322193,-95448367,-318361495,1032730721,-1262301950,622723779,980690071,1842786731,1731690111,574008234,-1078645143,1260383254,-1858087822,130831174,1636928022,-343625387,-1034102033,-1819337126,-475066969,-1876192622,-95110077,511864751,1489836999,482925880,1233116130,343127535,1665280776,1147086588,-180896214,1344440314,-1341468679,-554645519,-928082231,-621127915,1792144062,-94536113,-703999277,1677284202,871730933,1942552175,1046523597,388739730,168190618,-121721362,-1498641983,1902952529,1504954018,-1758280161,153435151,-560667370,-59380943,-921356085,1921158016,298157756,1759533863,1552658964,-1282681212,-438804041,86972509,-652597326,1430566375,-821685348,1414962409,-785269599,1268005223,668150217,-1772060051,-1565336253,-1263930616,-1570440351,86626456,478056946,355269103,-1942470860); -/*FRC*/Random.twister.import_mti(70); void (makeScript(14)); -/*FRC*/count=367; tryItOut("this.v2 = g1.eval(\"((void version(185))) = this.a1[3];\");"); -/*FRC*/Random.twister.import_mti(99); void (makeScript(14)); -/*FRC*/count=368; tryItOut("/*oLoop*/for (let zcgmeq = 0, ropgzu; zcgmeq < 127 && (new RegExp(\"\\\\2\", \"i\")); ++zcgmeq) { Object.prototype.watch.call(o2.g1, \"acosh\", f2); } function \u3056(x) { yield (b ^= x) } v0 = a0.some((function() { try { e2 + ''; } catch(e0) { } try { h0.valueOf = (function() { try { this.g1.__proto__ = f1; } catch(e0) { } try { v1 = Object.prototype.isPrototypeOf.call(f0, this.h1); } catch(e1) { } try { s0.toSource = null; } catch(e2) { } for (var v of o1.t0) { try { o1 = v1.__proto__; } catch(e0) { } try { o1.valueOf = (function(j) { this.f0(j); }); } catch(e1) { } try { o1 + e1; } catch(e2) { } const v2 = new Number(NaN); } return b0; }); } catch(e1) { } try { g2.v0 = Array.prototype.every.apply(a1, [f0, e0, t0, this.o1.p1]); } catch(e2) { } for (var p in g0.a1) { try { a1[8] = new RegExp(\"(?=.)|[^]+|.+?\", \"gyi\"); } catch(e0) { } try { this.b0 = t2.buffer; } catch(e1) { } for (var p in t1) { try { v1 = (a0 instanceof m0); } catch(e0) { } g2.o1.s2 += s2; } } throw o1.g1.o2; }), g1, m0, h0, g1, this.t2, h1, t0);"); -/*FRC*/Random.twister.import_mta(1199042932,1947613335,1552909709,1820329750,-1667792783,1342516461,1340412752,-2009857077,268474076,1472857555,1767686739,2105323024,83978427,-1073632402,-1058405787,-1426191998,299200723,1857042686,-1342478243,-1935882493,-990676351,1485958833,-1698676793,-952268748,-1770304386,28648446,-1998960485,1321308506,-16270217,777429285,-1822568040,1799225187,1852956350,740062356,-1482161273,-350144611,-971191571,815108125,-947996014,-1756069181,-268698112,-572231215,-1475951162,-21437648,1482726981,-1052944193,-1980852122,-1012445038,1255437748,421418975,1836661310,828113292,1025260154,-2005404844,2032461589,1456182533,-406836761,-837283041,332914847,-777868450,42242507,1719429702,1775386619,-1298780363,-1749696807,1082197765,-127755141,1995255176,-1303588599,2029085496,-1409479993,812422519,-401623250,945421296,-1536422005,679947653,-1558691853,222382311,-406618663,-1627289805,1012928052,-549798573,-1162828895,-1011755731,1868128025,-1440995996,-1724591717,-891194928,-2039248766,179585140,1204926554,-748184713,349865335,-237123332,-1906582192,953467142,459965149,2075489939,551318216,1824958418,1360846173,-854150893,-425657865,-1533112624,958015369,1426433815,-1193264517,1550064528,-1461711902,1950547341,2048043170,739591792,-177468008,1200041278,-457453648,113364561,-1469068210,1751489403,-333618046,945719227,-956312305,1960810929,744720399,-1035876242,551951910,1279774043,-1785444156,1427364895,1743901136,963167177,297400509,-1842756328,1663406896,1184878091,-206377856,172040946,-1730937858,2062479277,2130328777,311694584,459532519,-1409861903,-984366962,-1381843732,-744311049,-392849889,773536860,-660644609,1995202111,1545583407,1573171284,-1554506025,-1510693099,2050751670,-1265815424,-132120083,1958738256,-1273105444,1894577562,1982034018,307166410,388450666,-901373536,-1775885767,1738130366,570308849,2117511416,873650654,-474787263,608284667,-1522483570,760116149,51880855,-84590959,1373083951,2104781376,1272958197,1174322280,-970021741,377038529,117834750,-1648823821,-471966420,-1661260707,427215543,-612919239,-1587927376,892868016,1067370931,-736370351,-110688945,-1259839350,-273082502,-1713537832,-825357404,-17451733,927739007,-1959130696,748689881,-742235495,-1633119983,268102925,-1999762346,-1853206516,-1399075489,1608085178,899188212,480521721,-668656986,1392030207,-390006409,-2065723508,-1100048278,1338165004,492803063,-214094074,175669197,1758688057,1642056032,-1874276217,283695927,-1034466864,-937097191,-1714380149,1247739008,837962811,1769559639,590804759,876725888,1732851282,-1805487235,1047043236,-569499546,-1485447523,-1158361081,-909382539,1733795866,986034441,1191640967,999401824,962873282,-587400675,1481098880,-518366347,-903069068,1838723534,-859202293,289200436,963280671,1416472666,-789011833,-1886558435,359171641,-428438102,-741430242,-993486936,1412852576,-810960716,2084959545,-936149131,-247977340,-1208693530,-1339537354,-1537129821,489373638,322536255,1529133892,128932999,-160247094,6041128,1623141601,1406080230,806691450,1363157980,1876002732,70788197,-1783356105,-271103969,1021101701,376194690,932704544,-575562673,-1440787760,1181065303,1743245535,-109613111,290292923,-1424958390,1628482711,1442125255,-1324297033,2066722878,657122465,-1443388307,-11261284,1018841623,-1348286539,-311925537,1509182273,552790207,95652776,122503832,-1297815820,1088651017,-501612452,-883164773,2070446078,-309385351,945396251,-1990387853,-400432713,1185669884,-1567728591,689516849,-35713723,2144264031,145965772,864310752,-541396919,-1720765054,-1120523963,-1119019995,-2044010316,274890229,1340260618,-1340060939,1874542475,127268717,-85616116,385960364,-238676157,2080447511,-825232335,285347182,1837405754,-1566319802,-1631146817,-1206657499,-1976238238,1896989675,-127564641,1795060616,1260498404,432343991,-1931926813,-1393604904,-1751695503,734415219,1183203594,910004413,-1451584922,523619489,-1851391129,2020370799,1237072506,-403703209,1782456334,-667725346,813233909,-1221335624,-1734445840,2040616660,-311435555,1150094143,-246675297,-895464946,1752011278,-1318895497,2109082780,-1361708327,531402491,302588231,-1878139042,-1241035099,-1286889821,961558553,-1229271985,1337558322,-1062130519,-1579037772,1144490750,-1266286183,-277086942,-1781992489,305275331,-1002748562,1366574384,-1508065720,150613578,381392234,1765425888,-1721269389,1256772752,-332085925,1069868655,2126080517,2108539242,-461106082,-762585583,-555756543,1032008609,-1928270271,-1217327383,2091518828,-771252480,-2006078681,431262787,1090797503,1091022332,-555568772,1988092099,-580370616,-519000089,680716760,768124681,-1964116745,-574802691,2088589142,1480738062,-438914517,703286427,527871459,-811374163,-399392675,916934268,-179535935,2038129101,-754212923,-1855211906,-222127523,910155355,122311922,1609636007,1769450589,-1840776095,224001924,1453938404,-502833854,-816316405,-969000155,-1785121696,-1665660765,-481192220,-1635645772,237722687,-1454577426,-131036479,-1354158716,-1280264426,491027486,-286007927,-1427000063,152901883,364305740,-1841258244,1000369296,-1830421932,442591046,-1908268066,-1637764676,-55829250,1716764282,-2071810215,-2030473631,-1183688457,767862965,995408710,1717765911,904113849,392664263,-2114281710,290003049,550572783,-1505938644,1900170773,1278926816,-414089067,-1446384785,-1541771198,-346635564,-297311808,-1711236755,-997790745,1329893572,1826915904,-661993853,1791280839,-494596584,-813815939,1205973115,393264720,-371460493,-622693041,-1931197301,-569906486,-1189025983,-2123076715,171726325,-947498527,-119669749,-189932602,-1430115360,-1467756195,49968087,287645333,-1091779317,1022534085,425887309,1710452243,1610580981,-894088099,1121265582,-1917828519,-569118295,1935789035,-800133172,-1566756506,-746679057,1692409362,-2105755689,-394602465,676887285,-388050245,1372735859,-1586283571,-508172832,1669247043,281077489,278584214,1484393066,773503941,-1836913222,-1407554537,-1441801912,-611889031,1517892751,1645520752,-1682732293,-710700230,464117977,417302974,1146889931,-2000839966,149816326,-1276800263,-243822704,-400475691,1614278683,-92707674,1737861212,-196279230,-1603704351,2012210714,1977243914,-871217453,2128033944,-1193107034,1532303523,1830439362,1209914330,1955461989,1696300035,-515509531,-1374787148,349779536,1913791178,953568454,280670867,585874113,-1358740710,-812872513,968302559,-1567938492,-1289170304,-1191763109,1999066254,336724931,-1813951117,1998884700,279696452,-1910719928,-1260142143,328884482,525785425,2081775142,-1032540349,-959493107,409731925,-649225924,1800878436,1327026806,-196134446,-151053063,-1573689807,1356697728,1366290381,1011099913,-1036607453,1027822540,2000656921,1267032607,-905258141,833813319,465719555,1643928632,-646658069,1241861040,-1616333297,-1744104896,483464974,-1303643623,-518922392,1974152161,-1380521636,754817651,-1698504797,-555070700,862894948,1365069340,142359772,-502559326,-1403377081,2024109471,504773072); -/*FRC*/Random.twister.import_mti(64); void (makeScript(14)); -/*FRC*/count=369; tryItOut("{ void 0; gcslice(2905016921); } i0.send(a2);"); -/*FRC*/Random.twister.import_mti(85); void (makeScript(14)); -/*FRC*/count=370; tryItOut("mathy0 = (function(x, y) { return (((Math.fround(Math.hypot(Math.fround((( - (y >>> 0)) | 0)), Math.fround(x))) >= (((x | 0) <= ((((Math.fround(Math.hypot(Math.fround(Math.fround(((y | 0) <= Math.fround(x)))), Math.fround(x))) >>> 0) !== (((Math.fround(y) * (x | 0)) | 0) >>> 0)) >>> 0) | 0)) | 0)) ? Math.tan((( ~ y) >>> 0)) : Math.imul(x, (((y >>> 0) / x) >> Math.min(Math.fround(x), Math.fround(x))))) >>> Math.cbrt(Math.fround((Math.fround(Math.imul(x, x)) <= Math.fround(( + Math.imul((-0x080000000 >>> 0), ( + Math.sinh(-Number.MIN_VALUE))))))))); }); testMathyFunction(mathy0, [Number.MAX_VALUE, 0x080000000, -0x0ffffffff, 0x100000001, -0x07fffffff, 42, 0, 0x100000001, -1/0, Number.MIN_VALUE, 0x07fffffff, 1, -0x080000001, -0x100000000, 0x100000000, 0x0ffffffff, 1/0, -Number.MIN_VALUE, -Number.MAX_VALUE, -0, 0/0, 0x080000001, Math.PI, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(414); void (makeScript(14)); -/*FRC*/count=371; tryItOut("\"use strict\"; h1.has = f0;"); -/*FRC*/Random.twister.import_mti(427); void (makeScript(14)); -/*FRC*/count=372; tryItOut("mathy4 = (function(x, y) { return ( + ( ~ ( + x))); }); "); -/*FRC*/Random.twister.import_mti(475); void (makeScript(14)); -/*FRC*/count=373; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var ff = foreign.ff;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = -32769.0;\n d1 = (+abs(((d1))));\n {\n d2 = (d1);\n }\n {\n d2 = (33.0);\n }\n {\n d2 = (d2);\n }\n return +((d2));\n }\n return f; })(this, {ff: DataView.prototype.getUint32}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [undefined, '0', 0, (new Number(0)), (new Number(-0)), 1, 0.1, true, (function(){return 0;}), false, -0, '\\0', (new Boolean(true)), (new Boolean(false)), objectEmulatingUndefined(), ({valueOf:function(){return 0;}}), '/0/', /0/, NaN, ({valueOf:function(){return '0';}}), [], null, (new String('')), '', ({toString:function(){return '0';}}), [0]]); "); -/*FRC*/Random.twister.import_mti(615); void (makeScript(14)); -/*FRC*/count=374; tryItOut("Array.prototype.unshift.apply(a1, [p2, p2, this.b2, s2, g2, i1]);"); -/*FRC*/Random.twister.import_mta(1200077002,1707387912,-392177782,-1430240442,2082130152,-1870428351,-507987370,-1710762898,981473553,-1273864779,2142922935,-628119170,-18717493,-1895673554,-2011743351,821208913,533394855,-1556241416,1437280169,650918242,-1992486703,-869602766,-2042071503,1658251940,1605123100,1388772671,-1890514704,-1876156264,997171084,1893042433,1067307179,-1504487135,-456351721,-1125945529,-338526237,-1510486770,-1472867188,-1309105880,-537194950,559196644,368956789,-1688509720,-1184740675,1621216157,623776803,-1482237225,-11424003,1799448293,1019966430,-829679650,-1209586366,-1388402133,427787700,191438556,412929884,-1544176425,-340630500,1118036076,326187327,1252983406,694112869,597921020,505550585,780038989,-1625584345,565924283,-40896347,962363564,1371281705,-1214083334,-1487012493,31749422,1263233343,180627464,-603832716,-1470775863,2039818112,-609533914,-1699566426,-1184790641,526124313,1615499597,327587997,14909075,-1894872097,286536693,708061228,803029505,-1647253831,1227627242,1379824508,471586073,2131710981,1348292856,-1246652688,1314882814,674647837,-831925330,-1891388248,821212644,-1245725277,769564101,-1433224349,824735965,424167604,771456191,1825078815,89463652,1573194514,33289620,258483573,1598384351,1010570602,-118969467,-1732415399,-1719163778,858361035,1164933546,359210190,418016062,807004392,-338072886,-1554230304,-1207314676,-1754059641,-501942567,-1571612765,-1836330203,1678324955,-223675198,433325181,1627918862,-499294800,398708101,-677217085,-1603038744,1315970625,2113076930,1395867379,-156376100,390111580,-1224051843,1299758767,-402234854,-1457627877,-542112564,-1112991066,1369115961,1181803224,-960273921,-392998993,831227891,445142535,-301229054,1165089224,229644978,1876205796,-1268499426,1170636969,-1312432189,1355201558,1211717906,-1710853607,121707194,-320024412,-564222311,-1274608293,-1140314193,-1187363352,712381313,-552256618,-1167533099,191982733,1047523575,118303487,510426849,-1848144716,48808397,-1525450959,395379260,70616405,114008522,-941690187,1538224076,5291266,1127707226,1170920329,-86865376,1903292212,594837109,1108882192,-1366224255,666470152,679466916,306008984,877771289,-1481743635,-1618662221,-511283618,-367472290,482567802,958682599,1073394207,-2067778449,-1511625666,729725373,-1936132320,1307496811,687878091,-412252204,-574131767,-952344971,2066773128,636257085,-661698325,-1449155368,14147615,470974147,200148799,261527120,306519948,-1404601649,-576922298,-2027621406,766229637,-720277909,-1769606524,1571249034,1449146145,2074500843,-168555244,1394464987,1513216208,634020490,1743426187,1227606300,813184494,-986601557,-951616050,-498055382,947166463,-466298679,-1720239564,2061292701,-705561825,-356034061,1850889720,209756033,-434356705,926717869,-1139217931,-1945055265,1644018666,-424255745,-230134964,1366600252,1459705179,-659055896,457332292,-1672432299,-417789644,-1278845960,1859116160,-425702545,560779368,-227978344,-1148471432,784645136,-613059076,271936530,1229341166,1025803550,-1895380167,-927371989,-262814712,-1357262438,544146190,1887567583,-1509389974,45382948,-1128701916,1301505588,1506794531,1095318700,-418322601,-1025553475,1596419147,-1059080975,-1873692992,-1616720771,1407822674,361123752,-1404554414,-2111443477,-32959112,-546977236,1478364234,1387227148,-2003455570,1234349291,157452612,-984593138,1361883794,1217931182,655232052,-418999463,380544236,-629638965,-34821589,-23144295,1672908781,121705752,-594535502,-1915543983,-919429775,-1719056417,1357787162,-454313081,1353469912,-1197674376,-1745654219,-156965206,-1620702501,264712088,1332823563,1637260210,-1439629683,-1999802203,1717451027,192479261,-702527991,-1490615693,1702525448,1510618370,335869639,-1951470190,-990205351,1249008324,-1094370827,-1727633414,-1919446463,-1121081685,208507258,-1404195483,320395974,-945146967,-738066600,324716653,1775178315,-1209984301,1855684995,111713771,120222385,-2037577058,947166929,286663900,-558672851,-656355368,2056380626,-1368234040,1796433647,2015175538,1530766504,-270619951,413326277,654702580,1997861688,1771808530,963133134,-1683601139,2013938278,-1592216908,498799425,2097440040,-1808031254,-1004194784,-1591762074,1371760932,1635476009,2022937464,1832922129,852240217,-564341882,-1077608230,-1770414423,763142705,-1563721497,347843379,1130664871,-1365552279,-1829082148,-1986479380,1900836075,1928185523,442247794,-2014534307,406067630,794321985,1276084490,-860338814,-1578158328,-977461932,1614379863,-1194048716,-539581311,1891729871,-1373917892,615928747,700119412,636072459,1964732520,-372221394,394135222,-903466798,1722597508,-2035825259,1565185502,1849233815,91421515,-364605030,-1093914230,-1394321519,-649991448,-50477613,1009492876,70479463,1519758947,1417067845,-649222122,-34738707,-2023416298,320229554,-2033328308,481540559,188886697,39093433,-697423499,593740051,1026290488,838659768,-222808141,-1457028199,-421615742,-557121825,146016948,-285281664,1479671954,1268597767,-488291136,1944945501,1263835581,-265453529,-540409651,-1616534790,7826882,1595066891,915860808,-220914437,472711173,610784943,1457765815,-56396296,-1822437645,-171333302,182141742,-621993875,1214870654,-1148322948,1989124725,-1718979139,-1418663818,1553056439,-103169947,-1879326163,714993777,1287409290,-86977851,-300559916,-105140555,383650570,851354262,151236192,920052318,1634932347,1845119350,-148339208,-1391316391,430877269,1228813082,1702331304,1262813321,-720020976,756269314,-729267683,-346259601,46657769,-870058441,-208807487,-666711100,-179296550,-1646757669,1025285241,2003589294,-1309328229,-151049083,1635346775,-1760719139,390621170,-77326575,-442643758,539209595,2025879204,886965174,-1080084127,-386350313,-1054921101,1863661269,563717211,-1917803364,1098772354,1325490254,1399770362,780426826,-777051789,578132732,1612863824,-654676148,19915919,-378714053,-550936657,1104761203,-401896736,-1308524547,-496649201,776753747,-857278061,1783606587,157763184,-744663637,-788537491,922074603,-848539648,-570538532,-803976775,-1672446897,-1112251411,1368373418,-1429218202,-2056375676,-1522497286,-956617801,881243398,1534834487,355560763,-140055319,2049927616,-2409325,-525507864,-2094404706,-969656475,-242271268,-1112621206,-592848568,-1902759567,1937460129,-1565646954,139693676,99287038,-1431566554,-224172038,1771999829,39669476,-1640080663,292740650,1758028330,-87121035,655953077,352962093,251492297,2371477,1173641889,1907994192,-2018117461,-524682434,1624385702,-2130774517,2068633277,1203087985,230080448,2092027283,-705087944,-86645402,-283839437,528104312,-668671957,-1102931307,599108035,648801152,59756391,-1586425199,-1056327610,1441426582,1355590782,-1847489158,-462308850,75089905,-296781664,558212401,2091166942,1584504405,-816976018,1973730182,1000855199,1841167617,-2133691331,739358253,-148107557,-1168847662,-1918458750,1078571578,-1110940849,-16375710,-1998079563,1006093771); -/*FRC*/Random.twister.import_mti(33); void (makeScript(14)); -/*FRC*/count=375; tryItOut("\"use strict\"; mathy5 = (function(x, y) { \"use strict\"; return mathy3(( ! (( - (Math.cbrt((\"\\uDDE2\".valueOf(\"number\"))) | 0)) | 0)), ((Math.imul(Math.fround(Math.fround(( + Number.MAX_VALUE))), x) << (( + (Math.sqrt((Math.max(y, (x < Math.fround(y))) | 0)) << x)) , Math.log10(-0))) | 0)); }); testMathyFunction(mathy5, [-0x080000001, 0x0ffffffff, 0x080000000, 0, Number.MAX_VALUE, 0x100000001, 0x100000001, -1/0, 0x080000001, 1/0, 0x07fffffff, 42, -0, -0x07fffffff, -0x100000000, -0x0ffffffff, Number.MIN_VALUE, 1, -0x080000000, -Number.MAX_VALUE, 0/0, -Number.MIN_VALUE, Math.PI, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(275); void (makeScript(14)); -/*FRC*/count=376; tryItOut("var orrjtp = new ArrayBuffer(4); var orrjtp_0 = new Float64Array(orrjtp); orrjtp_0[0] = -23; var orrjtp_1 = new Uint8Array(orrjtp); orrjtp_1[0] = .2; var orrjtp_2 = new Int32Array(orrjtp); orrjtp_2[0] = -17; var orrjtp_3 = new Int16Array(orrjtp); var orrjtp_4 = new Int8Array(orrjtp); print(orrjtp_4[0]); orrjtp_4[0] = 1; var orrjtp_5 = new Int16Array(orrjtp); print(orrjtp_5[0]); var orrjtp_6 = new Float64Array(orrjtp); orrjtp_6[0] = 513; var orrjtp_7 = new Int16Array(orrjtp); /*iii*/([1,,]);/*hhh*/function cgfrqi(){e2.delete(g0);}h1.has = intern((({ get sort()\"use asm\"; var cos = stdlib.Math.cos;\n var abs = stdlib.Math.abs;\n var NaN = stdlib.NaN;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Uint8ArrayView = new stdlib.Uint8Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n var Uint16ArrayView = new stdlib.Uint16Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n (Float64ArrayView[((((((((0xe8af0681)) & ((0xaeed7b33)))))-(e in a)+(0xfa1b61c2)))+(((((0x37fda7de) > (0xffffffff))-(0x8a02df5a)) | ((0x96592bdf)+(0xffffffff))))) >> 3]) = ((d0));\n {\n {\n d1 = (d1);\n }\n }\n {\n (Float64ArrayView[((((Uint8ArrayView[((0x5ca5f7a8)) >> 0])) & (((0x74c9f283))-(0xfed5bf80))) / ((((((0x933e17b7)) >> ((0xfee259b7))))) | ((0xc6ce57c)-(!(0xf807443c))))) >> 3]) = ((+(((0xef4e1aae))>>>((((1.0) + (+(-1.0/0.0))) > (((d0)) % ((((+cos(((1152921504606847000.0))))) - ((d0))))))))));\n }\nprint(\"\\u56DA\"); {\n return +((Float32ArrayView[((((((((0x60acfb22) ? (-0x8000000) : (0xfd176106))-((0xef7aa874) ? (0x623b7c33) : (0x37f65bf))))+(0x9e1c311a)) >> (-0x6a1c6*(0x20402581))))) >> 2]));\n }\n (Uint16ArrayView[(((~(((+(-1.0/0.0)) != (d1))-((0x312acfc8) ? (0xfa845e51) : (0xe7c6ff9b))-(0xebcf9b7f))))) >> 1]) = ((0xffffffff)+(0xd1cc9aad)-(0x1955e52));\n (Float32ArrayView[(((~~(+(-1.0/0.0))) != (~~(d0)))-(0x596f2a0f)) >> 2]) = ((((d0)) % ((d0))));\n (Uint16ArrayView[4096]) = ((0x72ed305b));\n d1 = ((x >> a));\n d0 = (+(-1.0/0.0));\n return +((d1));\n return +((d1));\n(d = Proxy.create(({/*TOODEEP*/})(-6), '' )); d1 = (+abs(((NaN))));\n d0 = (d1);\n return +((+(abs(((0xfffff*((d1) < (+(((0xf867b300)) >> ((-0x5b5e539)))))) | ((-0x8000000)+(1))))|0)));\n }\n return f;, apply: true })));let(y) { yield Object.defineProperty(orrjtp_1[9], \"0\", ({enumerable: (orrjtp_6 % 2 == 0)}));}throw b;a1 = r1.exec(s0);"); -/*FRC*/Random.twister.import_mta(1123641334,-979066447,1268424036,1656536725,1963286273,693950839,1914888423,1002444464,-1033052119,1939874880,626055061,1322425048,-629490143,-1133755068,458551931,1956071758,2100731764,-925802053,-1617963670,-1337801370,2112579282,652199661,2137336134,-992839468,975293065,1103134140,-412354019,559832564,-2010259841,-1312021498,-695860794,-423189239,1281982446,1670368709,-1286539852,2063531940,-1058527679,1101805389,-1489200650,1601349665,1611088075,-325579571,-1874808205,1064244510,-885789979,228075334,746987159,-1769573803,-1624537462,-641371144,1394614279,-508392042,100464668,1986804360,912965263,-217204500,1568439854,1679944014,1128319308,-339050092,-1117756736,-1476397536,1229106207,1002495128,-169547071,-2052381418,1925030984,-1095619950,-1682407576,1579927976,492569576,648752705,1928698294,-674157636,125810249,1829409550,-533722752,-2131299630,-275553677,-776639474,-1619544541,550355951,1006439336,1007027316,1135293279,-1985824646,586214019,2025143373,-1316209048,-611159043,-131563147,1654459467,1977861598,-1100558193,-1039500529,-978726973,824885298,793274336,-1318885449,50123935,563427653,1152482793,-1149709244,1303550006,384507006,-656785871,753937304,-1754261475,2035702117,860929657,-137037684,1183216140,2031360051,-1424111496,1223585758,1150100339,-1643877906,874392565,1357584253,1079664658,-495781673,223347088,-976070886,996849318,-1330673676,1545436492,-568419513,982980307,-2078627536,1494454599,-1084848473,1230630420,-130840787,-642416546,1801433201,69689483,-2146796545,-43142000,-1427659040,-12941350,-800347410,901784261,-621934954,1709766896,-1716228173,1512291198,2129419853,-70690822,-2057315713,-11627134,1625945418,-1509197310,-692078611,-681046429,-2017214245,1119869530,912775214,-1766284235,630065569,231923499,-924182191,948722060,-297862698,-2108802173,-1135655172,-109632022,46567584,-1734794441,1731514467,607422581,-977569903,824887412,908788145,112402399,484706134,308034691,2071208756,-595695541,-899204801,730213559,-2087195419,1461343549,2097119124,1293282240,1158479474,-1315790992,1563738508,-776803636,-1613964861,2137630218,-1495257162,-1615632983,-430345901,-1856137115,1362687492,-1486921054,-196410028,886068478,113919803,-1707834811,-1467707893,953499245,1306120651,-1801459248,-1638094085,1756192331,-1830074195,-1687367810,-1885973466,-642900223,1524726018,-2121852445,1775562109,-1219435127,-280338995,942178701,177397374,1072599801,-1644806971,-881063670,1834649974,317086324,20627245,494174389,-793118843,-1931031453,694776864,-1245958757,222109755,472423043,-951955605,-317856702,-1614724636,1839668939,-1758026511,-1144797840,-1618900890,-1557279897,494905542,-1677721915,392816570,-1331246671,1085480817,-659337089,-106620841,-263857071,-1588092727,-1442343985,-1312627132,1483232540,-219489594,8172049,-30458497,-1543969097,716365265,690058094,-130588398,487546946,457319123,1432002956,-507358944,-1894308475,-376795188,-298998147,-549911959,-1371435142,-943686222,2017667219,-1835286174,-476424822,567595177,749615374,1757161725,203993948,-1706963423,1466423956,-1841168060,614497347,213443417,-1944195513,-906177927,-365307878,-1724387280,-266017616,1649332141,40601165,1733571001,1243505852,522519488,-1256658217,-211724690,-1012823829,-291859258,-2115331666,1898130135,-831244185,565265718,-542829704,-1282470893,-1206795892,843800961,1473255024,903749916,530519799,-505461472,-1548610459,417250018,1105510823,-897643798,741729597,1197637946,-1531615393,1504212036,-1408035138,1162998797,2134687178,-387147768,417306967,-1270764900,545528204,355399358,1760766751,-1557163061,1060222019,1142904097,-131190803,1775898954,-591002969,131817777,1334039080,-191856873,-178173346,301478820,-1692535643,-636968150,252860808,-1180948203,2048974719,152525076,543291954,-1845002645,-330246479,-136845369,1799629580,665541077,53812313,479687792,-1929273158,885930909,-2044458138,731017665,458671918,-1484943785,-1092105641,1292109871,1839613135,-429215896,33250555,972647193,-1615552489,-1822177154,-2093215116,-640852099,531433511,41434303,-529092114,-191500319,-1942831661,-525044301,907643704,-2041512541,510173793,-1764926426,-916871925,-1872752955,-1354213401,119403032,912016696,-1191343596,-995555843,-640653651,-1636142257,-181605158,-829254109,-278100196,133728846,-1428163518,-1000758078,1593351783,-1348174166,1314218101,-475981150,-1691524022,407557426,-908397032,1938430159,1474066770,-1382324690,589238809,-1480282687,-520074977,-2135725795,1303038661,-479420607,1450386158,-1312077094,719231374,-1671133394,-441584191,-580002864,1088119251,-794701247,-1496190906,-2061191225,1003410323,1022235276,374049088,172786989,-2075690261,1990149117,50304602,1348888018,-326269762,-1380946656,190193172,-1330573915,1157095497,-641286588,67151316,1625359051,1082846871,-558598384,-1996613671,1930301353,-644571327,2115007647,-1156743515,369101281,-1150616598,-351233847,1197099075,2081833453,-1101854048,-969723457,470772831,630900218,-914704241,1821496542,224051601,1757348258,-649462798,-1769849024,1600230347,636015176,257744036,-711606560,-1189268011,656479057,741992451,1987314697,1517374260,-541406147,2043838525,-258505493,-834520491,1077011463,1918221836,1870803099,-394233671,1329029516,-1228142627,1050900864,1621377478,2053465627,-153896237,1566225048,-729339301,946686665,-1350118669,1132500516,1943466581,898023429,1247542525,-1408891528,1749968352,354543404,-2027011081,2060594479,873291046,800827680,1923376862,-1056780422,-781197758,-1437614933,1066132777,100110861,-430964606,-1691112329,-524178244,-145495832,-397035421,-1770035940,1998103835,-1390448190,-2089833728,493364405,-1901521560,-1778124573,317066558,-1388468923,-918335972,-28651610,905617894,-1761013145,1395247045,-484587687,170820920,-1835591769,2133590541,142092023,-535559419,-1503806815,-215672361,1176723452,191010875,174362381,606770135,-1398856648,2072885882,923300278,1497153231,-185875010,-2004603256,-1912043003,-379583230,1653871219,597558957,-575333601,579994698,-621171590,361724916,-650328429,-635668204,561218486,356769664,-249148531,1421363583,238961262,-13571699,830526045,728790416,1719690433,2030449725,2088177391,854044174,1016735059,45751932,-374112929,1787351689,1857626420,467295690,559512817,-1878760643,-487356093,-708830441,-554402516,-357062363,247308633,-419093509,68841674,201791460,-917885792,-741212376,-882564993,507007818,-576808789,333570648,-286304781,1952348652,7542488,-747127550,-609101629,623285190,1437103274,1409899448,-1925682120,-1151457059,-904025259,1042415103,-1550145267,-1219813732,-1699530162,-1335179643,86428111,-1272801039,2087376933,-695620320,-1204267804,1895739773,-162426748,-203962995,1723434107,625673251,1272712398,997862242,467074046,278801413,1433960774,1293421535,-421641116,873100774,1482372037,-264864738,-212182512,-1717222776,-820913561,1415569449,726984658,-1078393280,532553005,-1250716035,-85947862,-1244220350,1990249129); -/*FRC*/Random.twister.import_mti(260); void (makeScript(14)); -/*FRC*/count=377; tryItOut("\"use strict\"; t0 + f0;\nt2[4];\n"); -/*FRC*/Random.twister.import_mti(297); void (makeScript(14)); -/*FRC*/count=378; tryItOut("g1 + s1;"); -/*FRC*/Random.twister.import_mti(309); void (makeScript(14)); -/*FRC*/count=379; tryItOut("testMathyFunction(mathy2, [-0x080000001, Math.PI, 42, 0/0, 1, 0x080000001, 0x100000000, 0, -1/0, 0x100000001, -0x100000000, 0x07fffffff, 1/0, 0x080000000, -Number.MIN_VALUE, -0x0ffffffff, 0x100000001, -0, Number.MAX_VALUE, Number.MIN_VALUE, 0x0ffffffff, -Number.MAX_VALUE, -0x080000000, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(341); void (makeScript(14)); -/*FRC*/count=380; tryItOut("mathy3 = (function(x, y) { \"use asm\"; return (( ! (((( + Math.fround(mathy2(Math.fround(0x100000001), Math.fround(((Math.hypot(y, (( + Math.log(( + y))) | 0)) | 0) < ( + (Math.acosh(( + 1)) >>> 0))))))) < (( + Math.max(( + Math.pow(y, (Math.atan2((y | 0), (( - 1) | 0)) | 0))), (Math.sign((( - (0x100000000 | 0)) | 0)) ? Math.imul(Math.imul(y, y), y) : ( + (Math.fround(x) & Math.fround(Math.log10(( + x)))))))) | 0)) | 0) >>> 0)) >>> 0); }); testMathyFunction(mathy3, /*MARR*/[x, x, 'A' , 'A' , x, x, x, x, x, x, 'A' , x, 'A' , x, 'A' , 'A' , x, 'A' , 'A' , 'A' , x, x, 'A' , 'A' , x, x, x, x, x, x, x, x, x, x, x, x, 'A' , x, x, x, x, x, x, x, 'A' , x, x, x, x, 'A' , 'A' , x, x, x, 'A' , x, x, 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , x, x, 'A' , 'A' , 'A' , 'A' , 'A' , x, x, 'A' , x, x, 'A' , x, x, 'A' , 'A' , 'A' , x, 'A' , 'A' , 'A' , x, x, 'A' , 'A' , x, x, x, 'A' , 'A' , x, x, x, 'A' , 'A' , 'A' , x, 'A' , 'A' , x, x, x, 'A' , x, x, 'A' , 'A' , x, x, x, x, x, 'A' , 'A' , 'A' , 'A' , 'A' , x, 'A' , x, 'A' , 'A' , x, 'A' , x, 'A' , 'A' , 'A' , 'A' , 'A' , x, 'A' , 'A' , 'A' , x, 'A' , 'A' , x, 'A' , 'A' , 'A' , 'A' , x, x, x, 'A' , x, 'A' , x, 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , 'A' , x, x, x, x]); "); -/*FRC*/Random.twister.import_mta(373392937,1188191403,261243476,1116362304,219526521,-307033495,-24341479,-296885723,-937731846,-1585560933,-1156724158,1368922638,-2091124366,-1803966415,-353732890,-1739931652,944027589,1946761510,1691316287,1757297193,-2144610684,-1141510584,1425440663,-957889599,1887853324,1177602415,-48282662,-1773649420,-396943450,800383146,866999327,1647581731,-936487690,1495438413,-1546975038,830649382,-1966037808,-905260102,-2002677680,302411295,-1186676904,1782714892,-1264119226,-70578706,987386446,823702836,1417197642,1402646298,1232632838,971118675,1548259861,1336196511,1401494758,1534334058,-1358634186,836742364,402138863,788314114,-529465814,-408091467,1960765505,-779088173,1804888645,-108294517,-1653645642,9196057,-271674974,-2086795807,790888659,2096873464,-438364316,-772098974,1692398674,1820027942,136720391,1354515718,975052658,403880757,897582239,36979093,-251454495,-1300736217,1568904222,-888415451,827825208,-2111096477,156511105,1887992532,-505385459,1647489938,-1835787307,251445193,-1451200072,-1968575610,987666500,-1980055973,-1108635813,-1103960531,-578729827,1871850751,543400540,-42088802,-1853184781,-484428196,588958427,559984855,1068485907,1724659565,-1647785130,-1253873362,-180305435,-1218137608,-1196211847,-1389069837,1157951168,989369617,1410250562,-497746780,-1020201136,-1575007860,-734062737,1573202304,1439530404,-129777409,-934083577,1159914667,-2107612086,158321827,-1706127,-1568055205,-936127694,-560150221,1540534681,-1248078296,1878050084,294233000,-255963059,-1139550606,487149982,1270600666,509459106,266667777,-1475489790,-2141324046,-1272112340,2086856429,479668299,-823885216,-1904148148,617395162,490471279,224887460,-1019451981,-241621726,132090348,1647695914,-299635670,-114812415,-1552156135,-1077435893,-1242213991,1570221666,-1231647702,1174273716,1575153156,-781767827,2008524807,1062388729,1441171913,1365418546,1445512547,1696076796,-1639231494,41227343,1500283454,-294916430,2085790853,-503087350,290799151,-1960663819,476762034,1243727398,653910840,-235814341,-1015507077,1270674176,2104558028,-2098755706,-225657027,-1473364218,483174750,-737806967,1916589536,-539531874,-1994618081,-900774865,1599005616,776932275,-394778152,465787642,2103081741,-820319929,-65117076,636559407,-1947755647,-1254747990,107637617,2091975025,-301382495,2112786564,-860635800,-1594176066,1686013567,-626529313,-1656241188,-176221407,1973789619,240577589,-1431314718,586327186,573033192,640477449,-2012418648,69721440,630938820,-513667502,-176788293,-908613909,-774987467,-1254369986,873243745,1123358091,40383955,1814001342,-1280573283,-2015650615,1776293879,-172876255,-982559309,-923858257,354581558,331041153,756786972,-576812239,-1792841775,-1385426812,-1531624687,-657807962,-675167034,1837306612,533801494,-694586004,-1899754773,827235821,-2099709885,-733171921,1630752907,-1492845143,1218005733,-120619930,-2019445168,-686928092,-543369273,2084869435,-1658186745,-348017015,-147895671,-1341562903,462371017,2101725901,-308539031,-1752369425,923593882,-1068437627,942228048,1079606436,-222652755,-1021553818,-794625437,-1367358203,778631271,-476112082,1238228612,-2625050,-1228813317,1255298601,-1029556501,2068605345,1377094503,304398706,22280737,-366865195,1081679566,240628758,1034725645,2147263048,1395209796,621814194,-1913498460,-1527581619,1200842526,315170953,-964985182,183614946,-792526376,2045729262,-1144090215,-734224748,2104104294,2117260419,1079629909,1568908826,-1809665476,-218865320,1326851121,-711581175,-1219112986,-2001416549,1589555983,-1558770969,668520150,-1304305282,1332401317,116167956,455950596,-1452523464,-654729869,-91839973,-625201270,852110247,-1718578317,1810289417,-1243153830,1386978438,558177193,403599107,1364964942,-238326417,-1487647519,683167379,1108648564,-1477988868,1331331223,-556553353,2059846231,-847557272,-1533044271,391166590,1591159859,-1727203941,-169303192,1122333683,-2091273889,2112540802,-1498128869,-858742587,2071756537,1304942177,1213082087,308499878,-200941806,-1709254075,-950560924,1753939661,-1943499131,-28633423,-1800782356,-149999452,1424605853,841817612,1449205021,-1085557441,-2117696329,-844128266,4725068,-854591424,1071812934,21314149,-163860347,920446522,665627738,2102001537,-1670110236,-1718243420,-1160487130,-1240203208,-571772822,1132572277,1246073143,1219792079,1949135845,276061217,-1656602124,1398461195,-543195327,2114499936,1202655525,-1632633680,-269290045,2009324458,-618393570,-1498327165,1188368845,392902130,-85534105,1144681192,-2062489758,-139164275,613886926,-543366386,1084857284,-1877971112,-1876551620,-1180772134,-1668247872,-106333283,872467791,-2014862092,910353576,1933778637,-136030345,-1084602048,-1667796289,451275962,-1356907074,319514915,924845528,1062873575,1717754109,1163109368,178985895,1452286130,1438230433,-1280797682,-1699640351,1787251500,-1343871829,-788086627,1283076357,-1629810047,2107931638,-2106702196,258882337,-1565874877,479956680,387592826,1421496061,-1115546881,309553624,-1532489647,1332134592,-752671234,-208246922,-220724503,-484607589,340298496,2141449289,-1155997505,-523786416,793808969,-624254849,1447948380,647556707,-1748387326,211967229,-62551371,1713807933,-1200951115,1948318023,-1351281619,-2100348943,-1519302862,156635990,114568871,-1234699030,1686823220,-1464006833,-1860504656,-1218888066,774357790,-1299886800,1056814818,-1034965613,353657467,-1382805953,-771302463,481221166,-1649993533,-1059873868,-422648664,1556476550,-174195930,661569539,836896962,737814064,682047624,-1445680087,-1644378313,-333118821,-634486668,-1955635957,-626155518,1456915525,-1290976467,346092003,-671715113,2088143275,1729887992,1812560211,762083722,-2131585483,-331572472,-664899643,842950102,-741721390,386107899,-2107114882,-405976072,1997977457,-377770093,-999171687,-583625415,485297590,-812594554,-1188374805,116370832,-1296210351,978696739,156047442,1944949018,813981501,-1803479396,-1478251469,-813788392,1014900594,-173168913,-908006957,286317168,1895788583,-555413562,1197650638,572004539,-2060459054,-1108074458,690969474,-1377163409,-1542968368,-2125985073,1938372751,1523773037,-1398532181,-1096356923,241137552,-1047901580,2109931629,-606003020,-1625610793,1977371368,1555710867,-1207184193,-619736543,-1336960280,-260105347,-1565324518,-1632545799,1258760364,-152162592,-392264874,-437611111,1230572389,-92881625,321797571,834760072,-343691148,-1600698636,388488479,930344893,-1882742882,1121777823,-1428000802,-1992651716,-198764552,-435905904,1366872869,1264312445,-1930850986,-295358253,840798514,316358172,-1661855702,634610666,1293245720,634438281,397656395,271772777,2142049293,1848718462,-1223232132,-2073854595,1629869742,670821652,-1947915390,-387842521,576685303,212748186,1736185432,476096153,-1742202518,1311169971,-965666537,749766297,-2100338391,-809947856,-1858481874,-1123945575,-1184706052,1562312486,1811017925,-962338200,519256597,774542878,-2055985824,-1672453909,-712547602); -/*FRC*/Random.twister.import_mti(270); void (makeScript(14)); -/*FRC*/count=381; tryItOut("\"use strict\"; testMathyFunction(mathy2, [0x100000001, Number.MIN_VALUE, 1/0, -0x100000000, -0x0ffffffff, -0x080000000, 0/0, 0x080000000, 1, 0x07fffffff, 0, Math.PI, -0, -1/0, -Number.MIN_VALUE, 0x080000001, -0x07fffffff, -0x080000001, 0x0ffffffff, 0x100000001, 0x100000000, Number.MAX_VALUE, -Number.MAX_VALUE, 42]); "); -/*FRC*/Random.twister.import_mti(302); void (makeScript(14)); -/*FRC*/count=382; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return (Math.hypot((( + Math.cosh(( + (( - (Math.sinh(Math.sign(Math.fround((Math.acos(y) | 0)))) >>> 0)) >>> 0)))) | 0), (( + (( + ( + (Math.fround(mathy0((mathy0(x, 0x07fffffff) | 0), Math.fround((1 ? x : -0x0ffffffff)))) != Math.max(y, -Number.MIN_VALUE)))) >= ( + Math.acos((Math.fround(Math.fround(( + Math.fround(y)))) && (Math.pow(( + -0x080000001), (y >>> 0)) | 0)))))) | 0)) | 0); }); testMathyFunction(mathy1, [(function(){return 0;}), undefined, objectEmulatingUndefined(), 0.1, -0, ({toString:function(){return '0';}}), NaN, null, '0', false, (new Number(-0)), (new Boolean(true)), true, [], 0, (new Boolean(false)), /0/, ({valueOf:function(){return '0';}}), (new Number(0)), (new String('')), '/0/', '\\0', 1, ({valueOf:function(){return 0;}}), '', [0]]); "); -/*FRC*/Random.twister.import_mti(559); void (makeScript(14)); -/*FRC*/count=383; tryItOut("print(window);t2[6] = o2.o1.v2;"); -/*FRC*/Random.twister.import_mti(601); void (makeScript(14)); -/*FRC*/count=384; tryItOut("/*infloop*/for(let c in ((Proxy)(x)))print(window);"); -/*FRC*/Random.twister.import_mta(617505338,-398732055,1451683978,1151761021,157311592,-1600394466,-112888769,-1628735974,-1920081030,-661257661,-1619490678,624613239,212371401,903651511,-600493914,1426912001,-2087041975,939492864,1425987158,873801229,-635612208,-986616900,-919056398,-1884849423,88775976,-1575431342,1371655232,-617303443,1154554230,-1208083704,-1756851159,1115026054,-1328916223,458137542,240220833,1355937225,-693240365,-555662391,-1165177604,-1287357689,-1540896357,1445574694,-482438026,550064849,-1696457706,626157316,-1956121906,942125259,-1830580596,-476661976,56161519,1001908139,-1995302300,1491383131,-1949502576,1633862878,-442081560,-752548210,-23676539,-1664866122,181950217,201663149,-1969362989,-1803743452,-1895601777,293578418,1326319661,-1036456885,-1036495543,1422469519,-795366780,105841518,-1723293122,534028077,-1926273615,341384431,-1814707230,900681338,-57118431,154417760,1361996028,-644287375,-1834312109,-366050516,-1495229812,535627916,760241937,74222054,-1558216184,-1930664165,1137833976,-736910488,-1550184085,27967140,1751651540,-527190159,-135017717,-600690015,-966353368,-1176142585,-1555946376,1038671933,-1413571750,1139443897,1393903798,-804679149,425977924,440702024,-1923627968,-1612818042,1017751044,-1453823696,-486607444,-495918763,1749573983,-229034908,51649412,-1303232134,1175203133,1903214870,-1993351368,1576012195,1280507699,961604421,649025459,501038995,305110024,533765516,-828134046,-693858360,-871141787,-38997951,1763736078,1199324591,-1673148600,112473290,-1854441439,1929023421,-797946110,-959564670,-1880430289,1694079014,-1630801473,494157656,-987636974,309118760,-1702469354,1852824356,-7569790,865952952,-2013541475,-887113079,572423420,-280243363,-1883502640,961446277,605484971,-1250538050,487211374,1558789572,454532569,1206977926,-621466651,-167844573,32817025,313294753,605215289,759867330,1672903093,1156775054,-636319064,-355519900,-1855245923,-691995592,605801114,-689926379,-629010447,1899325756,-1950466118,2034665572,-1428718451,1369442563,185744924,1905162078,-1845924232,-658761098,1342902502,-1424683204,-654404907,-1610390404,-2129142999,1808094444,-1290163483,-128608582,-1321578544,1249358673,-1717767091,604960901,843889008,-913000153,160641280,-93565109,-1428818330,-1157591029,-780262441,853310272,-2062568304,-1566419691,428563994,976844845,-933920843,-1525600685,1915378727,1645438839,1635276902,744705078,253368299,-1470751512,-400849995,1275927122,-504417122,-1029335876,1558238373,1021786236,-1245371831,2145642089,677642564,-719224193,-1297727882,-1786244507,-53198745,-1856190370,-1768665023,2040251566,1141770401,1618303070,2068299148,1690800780,-666508545,1178188242,-1526090584,-893852888,-490011066,1342392190,1632210498,-1616066815,1483764958,-1308773965,-1276058938,-959390983,-1528053689,-618649470,1672949115,-911933250,672814373,-1388314132,1031066883,1779204484,2115128501,-216366551,1892268116,-124280419,-1208283253,1093682959,843654226,1477695847,1917346860,1894311200,-243012193,1291332637,-234382983,-1050383781,-1670209511,-680307738,403377817,850818309,-2112315749,-234800895,-176114186,1194251912,1764441804,-282452782,1586052141,667814858,793025861,1187975727,2020256953,-1160084891,85410324,322742812,946124177,-281024792,374635705,-925832076,-37307025,-340996501,1178679638,-697401130,-851523177,-92204623,-1883717706,-1374496032,1361166878,-1145814258,1230561933,2021099826,1663726890,798712399,2139696879,730776230,-990949343,-1393441902,1721186336,-741081642,-1213257667,-122329605,1371451529,-1249501536,1552979652,-260672000,411717147,-1764372903,-471466501,-94016631,-930868547,856875086,1571724501,-837012547,-41597647,1048470076,-1357819422,1239823771,-1185129392,-1865820849,-1890905322,-1510334617,1043554286,-167038805,1678573222,-1007377258,-243058773,-1762815541,1144541440,-411055504,-1796216882,-1924443894,987274281,1062009342,-931216463,916893319,-1054154141,-1106559037,1663588306,-1736637478,-525304527,706028225,1766839335,1899809353,-191014254,1394775431,-1820598190,-1176326,-335938701,241930172,-1797802950,-1708830220,-1119245104,2090252478,2112821024,754175982,-1680255720,483010966,1958414547,-626889296,1223173892,-1602406879,-1439217323,636396288,-1871591020,835201745,1223138370,-2121918942,1971607127,2038224952,-293843550,1946155355,-1541318111,-1489115747,-89918658,2045453000,1691122668,257269627,-502683909,-1831479994,1380908402,-647413256,1269105366,887308438,-1859199055,-1124517486,479258406,-562433373,-581626388,2130301469,321409096,-1992930293,-1684768131,-123934358,2121169028,1799812094,2038841586,-638950810,-2072807909,507729798,1321796141,469124269,-1544505850,-633951875,-882087083,300102017,-1476873702,1719223888,117785868,-1911330158,-192676661,702331804,1328618763,-1549079135,-658137417,914934634,-1874296750,1655324888,721957191,1365230015,-673058685,-1754202992,-877483844,929093608,863246284,217604572,1663321137,-1077414615,-1539396024,1096274063,-1545927211,1531843604,-876304398,-1462337422,1241066571,995341765,360098435,-871493134,-1618520126,-1058927274,-1627011073,343898253,286053093,-1934126129,1610363045,586789025,314391680,-833958065,1804698975,-1541528787,-1007818999,845022014,-1023119017,1175550164,1141561825,983838049,45868263,635602921,97411213,1128499883,-1011302103,1051120062,-1906466015,-12099720,-1942763251,2062912483,-1763976241,-1875561677,2126675982,-1296670013,-1710793541,809836962,1690418839,278951310,-1947151415,-644221240,2080291484,-118033268,1088609542,1739945780,1690007908,2086734676,-1693515943,488483051,-1401738655,1087225411,-1171946521,-362226588,-1304927156,1363170997,1089647029,313737724,1956850164,-970509638,-107208681,-939997208,1372603982,-631039368,533733572,1368371664,1750332999,69517099,1624903648,-622371082,1116373502,-312205142,1061361207,-1280296012,-865817816,-2082675972,-1793501666,1298713184,1050901631,-1960954977,-1746660755,-798270113,-1309358016,-2086566837,533250238,1024812691,-1941634585,-2106463527,1661382558,1704483053,-2088549263,86401351,1540833620,-1254565420,-1504741912,86580552,981188040,244613932,702202808,-129604989,582224304,1824474865,1010740916,-1884575371,332907892,-1169707972,-471030809,721446661,1150306120,407159028,-856985829,1305683359,-923920325,1853632119,-190604566,-396146995,-1819761411,1601956310,-1212422851,444517816,1799988390,-536101044,937452622,-1945153270,-1198880464,1788034899,-304633938,1255113904,826630472,961294067,-1418065876,666177996,-496072666,-1817038727,-610141300,-706046778,2001210594,447181348,170679582,-1709801636,-241762065,-1190114682,685842736,523724193,150208910,743991867,-632782233,1257737503,930657616,1088445305,1817756353,1732705881,-548341647,-1517262648,1750746245,-1402967400,374384684,122235399,1037837924,-1224981948,1001794166,-1160469052,-518793101,-1985946822,996348364,1672024882,-74674845,-1809019731,-719623563,1201507032,-651906386,-182653452,-1871722506,-2056356392,-1280642929,432157643); -/*FRC*/Random.twister.import_mti(76); void (makeScript(14)); -/*FRC*/count=385; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return Math.fround((Math.fround(( + ( ~ x))) << ( + Math.acosh(((( + Math.sinh(( + -0x080000000))) >>> (Math.hypot(Math.fround((( + x) ? Math.fround(y) : Math.fround(x))), Math.hypot(( + Math.cos((x | 0))), Math.fround((Math.fround(( - (x | 0))) >= Math.ceil(Math.fround(x)))))) >>> 0)) >>> 0))))); }); testMathyFunction(mathy1, [0x080000001, -0x0ffffffff, Math.PI, -0x100000000, -Number.MAX_VALUE, -0, -0x080000001, -0x07fffffff, 0x100000001, 0, 1/0, 0x100000001, 0x080000000, 0/0, 0x100000000, -Number.MIN_VALUE, Number.MAX_VALUE, 0x0ffffffff, Number.MIN_VALUE, 0x07fffffff, 1, -0x080000000, -1/0, 42]); "); -/*FRC*/Random.twister.import_mti(306); void (makeScript(14)); -/*FRC*/count=386; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n i0 = ((0x35bbba23));\n return +((-16.0));\n }\n return f; })(this, {ff: function(q) { \"use strict\"; return q; }}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [0x080000000, 0, 1, 0x0ffffffff, -0x07fffffff, Number.MAX_VALUE, -Number.MAX_VALUE, -Number.MIN_VALUE, -0x080000001, Number.MIN_VALUE, 0x100000001, -0x100000000, -0, -1/0, 1/0, -0x0ffffffff, 0x07fffffff, 0x100000001, -0x080000000, 0/0, 0x100000000, 0x080000001, 42, Math.PI]); "); -/*FRC*/Random.twister.import_mti(397); void (makeScript(14)); -/*FRC*/count=387; tryItOut("const o2 = {};"); -/*FRC*/Random.twister.import_mti(408); void (makeScript(14)); -/*FRC*/count=388; tryItOut("switch(true && '' ) { default: case 9: break; }"); -/*FRC*/Random.twister.import_mti(476); void (makeScript(14)); -/*FRC*/count=389; tryItOut("\"use strict\"; "); -/*FRC*/Random.twister.import_mti(483); void (makeScript(14)); -/*FRC*/count=390; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return Math.hypot((( ~ Math.sign((( + Math.tanh(Math.fround(x))) ? ( + ((x >>> 0) / (x !== 0x07fffffff))) : x))) | 0), Math.fround(Math.sin(mathy0(( ! Math.fround(mathy0(Math.fround(Math.acos(x)), (y | 0)))), ((x < Math.fround(Math.imul(Math.fround((Math.imul(y, (Math.cosh(Math.fround(x)) | 0)) | 0)), Math.fround(x)))) | 0))))); }); "); -/*FRC*/Random.twister.import_mta(-1711924675,-93476876,128103539,404805138,-835451092,956243756,831285520,1441702389,2088107509,-735560136,856240654,-516781121,-392162438,1469896865,711240505,481748192,1169986694,1689676038,-1728813196,-1895948306,-1196548957,-1343206228,-818398170,-446825330,2004168697,1877320492,981566331,-1762955152,841201176,-1650595904,-1030744862,1504183016,2066711689,241733085,-741733661,-1722384527,-1490562940,-1968728323,1473933772,11140270,1551109115,48979447,-980125589,1851083322,-311507285,-1584572625,-2075346891,-1431649645,713379712,325086554,738575224,1299194233,-836150089,277926731,-1128303715,-1386973002,-1452241391,2034641890,1511877846,-848803394,331199046,-1011190893,1757886259,-868992872,-2030756842,-719441514,470476247,1006206322,-1053677786,-347102187,87488867,1219397886,-330903000,-1658525984,-154748607,203719036,429141398,1694255462,2050804878,-1496672417,1250137503,1550726907,266521205,-978610551,-540821643,-245227687,-1333778896,-1953980993,-281304336,86590827,984196154,1127574435,-1723029094,1338683638,1370988523,-1575778212,-1868243269,126367344,-1181022968,-894440091,-622761942,-1179883572,-1204794688,-1817237572,1533322674,-24539026,1549933713,1180259221,1566338367,720894710,-762640862,-1998366015,801638301,-1124284866,-481329078,1582968070,1218875757,-1839378426,1016913824,1682825340,756542200,-39104840,1757734359,-1256452815,609621154,-982293204,-1942705094,-1303871313,641371524,-1046316142,1824586592,-478924950,1792930647,-1076483100,-1057251794,-1904489359,-580873838,-1535302042,-518590312,-1107596330,400856318,367922289,1268547307,2034740445,-66143680,-1425259165,1914630362,96305801,1465528688,-1288726871,79761176,1941649358,-1038999680,2078322012,1241799016,-1730933122,-1594062109,-1385594032,91552231,-804046469,1002193463,2023311926,-1373313071,287110948,-31284872,2141341481,-20572884,995830008,2097321873,-1699569559,1863931018,-1158378313,-1955872432,1710063875,1048028767,1287863831,302615501,-402081677,913096834,-1121554479,-929785171,-1359800542,527575651,-359514342,-1295038,-1281068033,-1067445416,-2109737641,1252442138,-743505835,-269167318,1897096514,-986021413,1887176408,-486273834,-1657615497,-413686106,-1016144161,-147496621,1940991440,-455160829,959592946,-1546779005,786913605,-50440856,1792909005,1681518797,1519716129,-2091047218,-2130826911,2105304498,-609504070,315991712,-776997824,-1617855199,-1511609626,2005015878,378141798,-232128124,-437456838,651116678,777807907,-345017910,327542285,1670856243,-1483149267,-1436925397,-1062927098,698424857,-524278625,1351529021,477536211,1144192379,-1971069537,1708395994,1104552755,-431229058,-2044496978,-2110892202,-98252498,851487029,1526802458,1958168415,1964528551,-228017575,-187933413,252213224,-514429504,1435537679,71658714,-1999771441,-1616508517,1261904755,-142337738,-2142539642,-175018938,-1466194174,1687257703,-114429149,55269539,-1423184436,289357305,1623649321,-1107082579,1067895441,1862157274,954043966,-37925397,-39847130,1704920072,-1745891384,979314296,-902496548,1363251110,720980174,-1300123630,-211271419,1455790467,786909757,-88292399,654695714,1257463124,-1095533229,668627052,-1020718550,-14644651,1225635923,1362498380,-903600483,-302129884,-72627220,1423413909,-243906644,-69137473,-685266280,-1575830643,-1065819010,-90100361,-1394167559,-1415934477,-902984816,-1638508466,301900027,-466555889,1489473023,1269429787,672110247,-330321353,1235834792,-1264725318,-1814857920,-1400362139,-661921358,1918829297,1859821469,518802027,535448123,1424093016,2064535715,1275149896,-576133371,-1186082359,1177128263,1844340538,1577141847,239401917,1957250148,1026259565,-426551598,-1346837967,1851035054,1204456346,803588630,466064666,-1918046983,38126280,-1996828036,-1601341071,-1457977206,-838783849,1854062084,-2125223734,1843775550,47276682,-721880957,-117956245,2079038595,-1876935681,1072736548,-782687175,1930502671,1438793547,-917642047,1701061245,2118820112,-1953114296,1614065257,1452168745,334353782,1667236734,-1071567463,739234632,-917632081,-687125617,-378564964,-1078843664,-1011861623,689119086,60287878,1181799527,925022230,1599835894,-2040695877,376103768,-1937004218,-1689705211,-505886935,217705426,-1302883719,-429796959,2065933901,-1446067556,-1536531870,-1748849614,1302253346,-1905466328,444955498,1189985192,74242898,-1673340377,-1883338682,1445905114,919121290,-1746834539,401573892,416290554,-2134704094,-24736883,-460844930,-987516221,-740702067,1356672169,-1430820922,463315945,1973104297,-491893405,-1050141852,-1214011665,-1689227555,598805018,-966324695,618477200,-58337220,2114724497,382494686,1532926745,666690612,323637343,-1595257507,-691611434,54568432,-528044464,-1707377090,69134364,-1753185519,1235574537,-76747809,297055111,1651924039,-1410709846,1605531945,1886584084,-612708659,-691947437,288192873,-427527536,-615628139,1690725972,-573078444,-1169214361,1464122891,-846321147,1548087934,-10014861,2066675308,-674737539,-1316507645,-616864132,-1426259426,2027721812,897773300,743740882,-940968314,2094010635,328337823,-1204828236,2140364199,-1502078288,-1811744932,1298948923,883821287,-1995145302,-892239238,515224613,-552832463,983883554,-1725139644,-1983023846,-547647883,-320731661,-18767732,1770470080,1281697937,-1210275933,-1106967265,-877203392,2078720870,1474083990,2077523125,-648905141,647377008,-14012287,1975709176,2089859456,1018368694,1380293815,186344036,937112823,2113128093,490320231,-2106050325,1607967762,1562703936,176173708,-1014118335,1762669653,-1306959710,417262119,-1020180090,1311674352,611705236,1944419048,1126771607,1243195648,1604073853,347528903,-642819444,-1027375626,688864928,-698655116,183237968,-1933508024,-672705859,-466816081,-903021562,-95870611,-1064406433,-1695642861,1650819776,937393256,-499575195,-1323958516,-469972237,-1963700367,-1676326841,717209113,924656867,416756345,1869301310,1225049307,1021878005,388230560,-869534323,-1222269301,880801668,942276711,525946387,186279335,1997777689,-178241256,1757638171,1040000361,1551418575,47682783,1403760334,1877160319,-383074346,-1930239011,370852462,1479989789,-214760609,401253613,325528995,-1671977656,-240912080,-992250506,-1550155189,-785806596,-1205098102,-1835370796,-168742146,-1208147572,-277032591,1479946461,-818901606,734808779,-2093069749,1529244759,-1319733396,907409945,81185295,-2000831461,347672093,1291865940,-179832409,659691904,1425507231,1722557977,102283181,-126181166,-1246393698,328883414,-513762005,462465048,1541271355,385612793,1852521680,568466737,1887958539,-1656841417,1100499328,-317354405,815178546,2006763109,-715101890,405516590,-16234236,-1744410199,-168804091,821935964,1151522620,1638808539,-1921445815,-1427074241,-1772761586,-1397128885,-48238461,653833078,-1264283522,1307262596,-753745489,271534020,-1078432335,-1102344956,-1779217119,-135668041,-7594165,-1557343983,748729376,2130660977,-715762311,-684572516,-851853376,355515875); -/*FRC*/Random.twister.import_mti(97); void (makeScript(14)); -/*FRC*/count=391; tryItOut("mathy2 = (function(x, y) { return Math.tan(Math.hypot(( + ( ! ( + Math.tan(Math.sinh(Math.pow((mathy0((x | 0), (y | 0)) | 0), ( ! y))))))), (Math.fround(( + mathy0((Math.atan(( + Math.atan2(( + y), ( + x)))) >>> 0), (mathy1(mathy1(( + y), (x >>> 0)), x) >>> 0)))) ? Math.fround(Math.trunc((Math.asin(( + x)) | 0))) : Math.fround(-0x0ffffffff)))); }); testMathyFunction(mathy2, /*MARR*/[(void 0), (void 0), new Number(1), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Number(1), new Boolean(true), new Number(1), new Number(1), new Number(1), (void 0), new Number(1), new Boolean(true), new Boolean(true)]); "); -/*FRC*/Random.twister.import_mta(-2085595017,1045559960,-919348790,-188495077,211985215,-1301195954,-1469955124,-760651636,-927313281,-1729330589,506614767,-285186208,-780675435,1247669098,713442528,-564424065,1280775698,448156772,471962862,-488416582,1152546313,-948546738,-1536678255,-504200493,-680230970,510857052,258691108,-829335523,1198238953,-1708858962,2103489267,-957796644,903262363,-278934393,-1513000333,-1997986161,177914866,2059420047,-422540089,1820129207,-54824848,1712654526,-848981638,-117740159,71315789,-2023022917,859504357,778850732,-562535216,-1484435009,1686881823,350297242,-1449374418,-1294604315,2063509897,173605201,7537914,1050460148,-1633950869,911049860,514692006,2036980762,1802927991,2010416364,-476354719,500973646,55118492,-6987358,-703873545,1119861034,-1382403739,-377952415,-1569687933,478825715,798325374,1085226586,-2052947184,-2095357096,1104874288,-2018526858,-521988300,-449992368,1653540304,-796959979,512987122,763559648,-1604565120,1261355982,-1982230819,374321273,-1891028487,1901433424,2061297948,866863041,1323196476,-1937889342,1229203892,-549434683,-1789955528,-546712393,1141430721,-1624675098,133766190,1237824333,1285665503,-1273981696,-264392683,-398803139,30221244,-253044323,532308041,-404517455,-937083541,2068594037,-471067445,1790749396,-318612564,-1805478954,-932196013,-704280797,-1539625905,-1894825740,-1269183953,-1340990412,-1817424486,-1511613202,1255718905,-821555579,175014864,1098733907,695018956,-2096296118,1458557225,1553289698,-921257145,-1566851772,-451201608,1156878280,1725412748,1420493932,-1729768640,-875223885,1355491241,1455698747,-244074745,628604066,-1727929020,2013705846,-277067020,-1421199270,-1255180230,924044718,633769139,-701419541,461415378,-636364787,-891067168,705770780,1977243924,1733038991,-312135705,909208253,-636220090,-891264446,1361359559,-803218457,94086305,1756984973,-1080186336,-189603826,-548103469,-186411068,-571766201,-2098877953,936678351,-2068481244,-536042574,-1368286746,-1597399369,-1447723498,836087176,-794226109,-852246689,-901540801,-750725642,-2125425529,-1014504852,1049530166,-1507538164,428955205,1500229520,-888011207,-452945829,1880772587,981752639,1128099937,-1893525035,938633544,1643325382,1416601562,-996182704,2099245723,-24730847,2061368712,-1916255134,644700400,515022960,-1745134231,1976444196,-2086550950,187525419,-36814034,1698481316,97701856,1121718967,-998677742,-1257278665,-1394192925,-2061523286,-1393836280,755652063,420940997,-1372254808,2106948287,1576437845,18624010,1969373024,1315465124,-1757849592,947662859,1676686381,-1212977827,775425374,-628603615,1800061386,-73422400,-604161100,1596291140,-1844313097,287257296,1742569319,-1982507120,2111769459,-328467487,-103232970,1537584922,-767005606,-1217229231,-984292061,956719657,925447873,736583328,632357831,1330571367,-1269174722,321290088,1902415938,-654378051,507785810,541279869,1053352612,213562552,249575174,-868149659,1304387682,-88192040,-877993571,-2106290717,349866682,-963479906,-1512767811,559566371,-271853208,642144898,925665701,1053095053,1441738145,-353315874,-1330131539,-98655297,-1750316721,-55597057,1504983399,568823279,-670807551,1662357405,517377314,-1565052873,261567112,379820673,-2068316807,-618642249,-115051186,1759174608,932482235,-1237856312,-1494769842,1658968518,633147719,-949570741,1403085012,-27092260,-339740542,1892283696,1070016650,-858492740,679530674,-2076721952,-10272755,728153712,523501176,1926659883,-844771513,238663825,-581937628,522459935,1010780117,734439799,1465191796,-855627199,-167436294,-1262348736,-1165421473,-11781568,1097500612,-1357131766,1492441438,2000777896,1375579425,1892899577,1780676224,1532188628,-1175232627,1877178038,-1458020775,95439490,967103994,1261888524,434875173,-1083940247,2078664976,-1793134380,1809062801,1584830258,1897280444,747810765,1193093635,-71075619,1051419191,1423567863,66827086,771886885,1314667791,1979576177,-893197023,-478387141,-214777192,547082103,-1296232715,-268961990,177387590,1958284879,1343662172,-1850936586,455974064,-1643700585,2264027,-1725028733,1910898271,1264221090,2036986944,1800781317,1849871630,-1622920729,-1398107093,110664127,-315175501,889979353,-584346207,-1050677430,-1026142555,1236636387,-1846505964,-1406401679,757548808,949544097,1144704603,-279756210,-1592215695,-1647621787,-1577647313,1245766658,1122492146,1315725475,1691450864,-1073993167,318313751,-1391422740,259718778,756014814,1938001780,579805228,1349720591,1137280057,103681928,-1065512187,1802247614,-445306311,-2123262130,1997047956,-1741877385,-318621208,1734227216,-924724861,-1976995227,-1241859818,-1992503627,-803849759,-1603179950,-1532966237,1079580867,2006574112,20055151,501999746,-903317997,-984751370,-2051180858,1823271852,1760219598,139931498,1122272002,964531163,-737856506,-819155941,-1531354079,-2124303183,-238881424,633776897,971073986,-1751766146,-1172477379,754903944,1656898676,-929560575,504026114,1154797172,-1049228234,2020922576,1702446831,-1259046190,1807691862,2114089750,-428042672,-442266768,1384088702,1912096260,725630291,703680387,1208871967,-1385711374,-570262796,237109495,768459533,1836298867,41359317,-1635501739,1442416733,-1854404478,1722607030,45079349,-1733794175,1189277345,-649901036,339893770,-760613263,-1196981104,317209698,-1815365564,-1639526054,1996102655,-372031240,-826763070,762192808,1866275097,1758758201,466191200,-1566151463,-1724272331,-1691427628,-1764451412,-1549089684,1663900738,-109922,1935979874,1878271766,232143595,334869330,-2075370882,1179453915,-34526814,531949558,-1884246863,466100237,-483819072,2040728674,-1671405333,-1686168252,-1020537313,-679343931,482461647,663162059,721376128,-2012526955,2076242721,1184567390,-153568392,-1025740841,-175817703,-1060111741,1362120355,810557526,-547202787,1782929583,1910868914,-1363757547,-1489292311,1376098984,1679082443,1139296366,1824720679,2069365728,-2133171565,239997734,1925131120,19532812,1774671835,-1209844612,-1112368341,1214668711,550291605,-1982883078,1784972444,-2025365073,367694002,-2059435753,1673548447,309455728,-1123516723,30526353,437789999,766630121,-774790710,-1590689106,539305414,355256339,-1724359461,407347079,909582917,303983806,-1022638350,874374768,1202619966,-257695181,507286327,-2015858250,-2122563873,1275061405,1666110118,1461501191,-256389559,-1021249056,-1572731795,168986727,-457808369,-1469418467,-1915219161,-24688604,-1711318969,306143052,344389696,1009828122,1668946795,-1363922889,1205110234,-1292991916,-2054647651,1712212349,-1411779684,-483462389,819629212,1043236100,1130810665,1019334010,714260292,-717488620,1315035869,-1638793303,-1701223395,858481067,1276356240,916167893,857648336,-890740481,-1508103500,-94867037,984407359,-1843153167,-662436198,792726945,561077788,-465854317,-1410088689,1740448291,-1748248556,229580234,1205209099,1431671090,-140027585,-331877403,-247184239,636829933,38642192,1819067423,-1976989197); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=392; tryItOut("\"use strict\"; o1 = {};"); -/*FRC*/Random.twister.import_mti(315); void (makeScript(14)); -/*FRC*/count=393; tryItOut("f0 = DataView.prototype.setUint8;"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=394; tryItOut("print((/*RXUE*/new RegExp(\"(?:\\\\d*){0,}\", \"yi\").exec(\"0_\")));\no0.__proto__ = t1;\n"); -/*FRC*/Random.twister.import_mti(489); void (makeScript(14)); -/*FRC*/count=395; tryItOut("a1 = g2.objectEmulatingUndefined();"); -/*FRC*/Random.twister.import_mti(501); void (makeScript(14)); -/*FRC*/count=396; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return (Math.pow(( + (Math.max(Math.imul(( + y), Math.fround(Math.max(Math.fround(x), Math.fround((Math.sign(y) >>> 0))))), ((Math.max(x, -0x100000000) * Math.log(Math.fround(Math.fround(y)))) | 0)) === Math.fround(Math.sign(y)))), ( ~ 42)) !== Math.max(((((Math.imul(( + (( ! y) | 0)), x) | 0) - (Math.min(y, y) | 0)) | 0) >>> 0), Math.pow(Math.fround(Math.asin(( + y))), ( + x)))); }); testMathyFunction(mathy0, [-0x100000000, -Number.MIN_VALUE, 0x100000001, 0x07fffffff, 1/0, -0x0ffffffff, 0x100000000, -1/0, -Number.MAX_VALUE, Number.MIN_VALUE, 0x080000001, 0/0, -0x080000000, 0x100000001, -0x080000001, -0x07fffffff, Number.MAX_VALUE, 42, Math.PI, 0x080000000, 0, 1, 0x0ffffffff, -0]); "); -/*FRC*/Random.twister.import_mta(-231182432,736301727,-832140404,-1394971084,1001884043,71449577,714945663,-75786648,352543467,-1115847530,-755689079,1891814619,304512289,-1922159353,1529298952,24493593,-977601615,-2076592110,-2071260085,1919763822,-206761914,1800260037,1297169173,736306976,950035342,109554813,-1549011885,815075512,-933260767,1644535648,1339587778,-1425458852,-1494189578,-1996191004,-469651389,-1857530369,1799633923,249139869,1851228085,-811643576,1456222046,525574527,1927490913,1630913092,-1237068790,-1571320871,-542236457,825681514,-1910581644,708534246,1912887965,1907843192,1956002303,-1882663859,-500808863,-431680467,-85076854,-1002781420,719225926,605484160,356884878,-457284741,-1769080188,1992784283,1087119568,745096771,1387856546,-260408847,-2366016,-633593808,2093796333,-1365479896,-706589293,-1889346626,1723167116,-611185252,1439690662,-1304136727,-1150265301,1654241272,-513970964,-285125710,-942864726,-1499822335,-663099470,1027604584,178944254,-181341560,-907613309,1007305978,-510429155,-1505712038,369723539,-2067401614,1695682467,-1688451516,-976477985,626236938,-76914577,-386306195,-1948718067,95520716,1075462363,-1595109818,-1783044559,-86095656,238841473,960863676,1025359098,1303027135,1775411224,714614447,-126916182,-1887848847,1604388586,-1098224829,837925578,-1146861528,80922678,164186415,-1308451741,65777483,154747065,2038826651,-1919871126,-1776175220,-815186897,-343803907,512569247,1186138190,1704084590,-1315499995,1116319702,-958665060,-778585039,2093189626,281373844,843175626,1133696493,-1148070436,1095809453,-1190429524,-1834589737,679408038,954161869,-1949854963,1776929673,-1300126611,912608946,1223055213,-427714534,-1975894761,-1475870203,1618053376,1708260627,-1002327842,1965932360,801236121,865527235,-1208108885,-198760508,1058302493,-1501825069,-981004340,-156640494,728137916,-1284990802,-1743346522,-81441064,-1117972181,423565636,-1595815685,684567145,29491416,-1608992257,2048186814,-1282495748,1627786137,-654136276,-1502765344,681796025,-307351492,-391150976,1435544545,-1160060425,-814235391,412336705,-1577261102,1346931552,1253809845,391659615,145100793,-773907530,-1167845308,-68106810,-1571229361,1902873568,-440242697,1683363120,-1138866943,2099129743,-1788837660,830298196,813678308,1613234344,-978243385,887698655,-2134940879,997997586,1321054907,-429709555,1574858739,597178860,1549605143,-1982893946,-1540215961,1487949370,1327550111,295950223,-1697117438,1646555010,-80906959,377899281,-1845054440,46380309,1457380271,-1390560735,-106642524,-287983035,1721114949,772499525,1823182628,-1341216346,1597527194,-961265016,2029911857,-756074316,1123330221,944592307,-1195347379,-1987803441,-1128237714,-1370950858,-1185505622,-370446433,-1381031322,-1327713639,135254536,-1362737138,-808644438,1041270896,-1284484430,-1205311343,-1182334132,2030448396,-252847616,-680373663,16410091,572533437,-1181480796,-1889939272,-479089728,778071570,228297778,864466801,-1836400732,397261670,480340483,1008376368,-1191058720,-1466935926,-2119812930,-244013416,1563481306,-1218695949,1038217339,524498441,-1286140780,-1783594632,-1505186425,1754773357,401927949,1874747909,1340555605,750301701,632668887,-1404707772,1385052362,1994858212,232699111,-2107643105,1012800119,1476667819,-797182944,-345924075,-1398265241,-1421030189,-149228655,338134866,-1137508871,-1336699184,325750221,-1544095996,1244429283,-1808905289,-282054542,1619159432,132414517,-1162736502,-933955178,116983883,1738780878,-481006337,604132332,598364120,1324480694,-1327390562,-902168921,432541093,1829439342,-559612078,-1587661485,-453354652,-1518771395,853440015,-1760555840,-749087175,976128578,-1529832849,1963670427,-1924848212,273283368,-1926237309,-2085031566,2073934077,567268871,1748103097,-63978155,-1407015100,-2053268190,-2047422949,-1287406595,-1850662694,159032084,887467793,-1101730328,-1390393954,1952423335,-1332745617,147101982,-141577770,867678514,903344363,1929444960,53966143,1729384147,-1879679190,-440110133,-965940296,130085877,1703926116,-107157473,1947594881,1565762252,-1538594466,-1702158113,772699714,-1599408547,-1666825859,-1374512137,-2065916293,268319818,493697825,-1498140349,1757763693,-1711892300,-1956059298,1360847381,-359281998,1349227912,-1650200402,1831451161,190775737,599661772,-1434114538,-2004667855,-2141972084,1034144931,-386302352,1871234715,-1599636019,-673565589,-1789394894,-2130696618,517996897,726758540,-1412083619,1585604217,-1234819180,286027219,277188814,287933479,-1023890563,-1332105928,-667913532,-1397447949,232766243,1746643486,-1775602570,2108798436,588363541,-915014785,1913624863,-997209172,-83772583,-1914807067,-1145556326,1197536630,-1006708105,687548168,-2119636396,1650554670,-1397947122,-847839178,-2023449460,646491731,-901238569,1231766888,-1857349807,269425109,-1245067306,1244306091,992990741,-4377072,1493633462,1134380714,-2057938972,-90991636,1444248140,-409060307,170028243,-1196535108,427204536,397747259,1833609637,823710100,-421371542,-913277910,-514373544,1666830650,-1392013933,838729277,604773911,-1004373986,-1051139930,1652364339,-345622949,-1828376939,2048414557,-552626980,-2128485314,1230640081,-682846505,1255932801,-725744424,-877059774,-1334020596,-86838252,614410283,991195305,1127176485,-984954475,-410120861,8452478,1415319616,-407742913,-970404728,1899225309,1359343506,-1933457171,-556052691,800145112,1585178195,2047909922,220111963,-1434735602,1811964129,-1026638126,-1474566634,2142571556,2081227283,209296958,-348592875,542615789,-2092775511,903889817,-1155018785,1388208568,-1084314513,-1095838365,-1008717219,1672514602,209006747,1670557752,611290174,-670101542,1591080535,-1705114672,-1063470027,-445295425,1519970453,-1313496688,-1050866792,-1895279509,1776444790,-1904109104,-300639692,2066785921,-842101255,1076640128,1724016753,122389149,-1805979714,622798598,1032837818,2099595782,389033155,-1851280665,-1140605311,-1638205708,-750126475,-754367964,-697326134,1612148622,-1441831161,-1589407052,260375772,-71133369,-288529317,-407658110,1362104738,-1191096368,67416303,729206986,584148791,284227613,-360216361,121940549,895129371,1797916623,-1919831080,1648785240,-956129757,1086784239,-1346759440,1912333683,-149415322,-2075520013,835459665,-685702981,-1603292563,-624625349,-136761533,1809700706,630811365,1356195285,-1271204751,930095175,303098886,-266249174,-1051520515,-387687427,352808496,1612566351,-1413798677,-808694147,-583825950,-1097851280,972342546,735023206,-608877814,-1922703877,83758142,-1769923072,1040747354,744718297,304876091,-1928327106,-1577996719,1795338755,-437750649,-1171648541,-1883078787,76777800,1586670572,176557686,2052495654,1145151089,704114434,-1624750700,-1086626005,-726017843,-889680402,1867280208,-1790821291,2056036629,1009358533,1393247905,2106660119,-1605738193,-280015724,1079183320,-2090410437,-964454551,-2025817991,-1034701079,-850142501,1337210080,913352444,1588203675,-2144929954,-1310796879,-1219690326,-758552691); -/*FRC*/Random.twister.import_mti(186); void (makeScript(14)); -/*FRC*/count=397; tryItOut("\"use strict\"; /*infloop*/for(x = Proxy.createFunction((function handlerFactory(x) {return {getOwnPropertyDescriptor: function(name) { var desc = Object.getOwnPropertyDescriptor(x); desc.configurable = true; return desc; }, getPropertyDescriptor: function(name) { var desc = Object.getPropertyDescriptor(x); desc.configurable = true; return desc; }, defineProperty: undefined, getOwnPropertyNames: function() { return Object.getOwnPropertyNames(x); }, delete: function() { return true; }, fix: function() { return []; }, has: function() { return true; }, hasOwn: function() { return true; }, get: (new RegExp(\"$|\\\\B*?{2,}\", \"gyi\").x = /x/g - \"\\uC0AD\"), set: function() { return true; }, iterate: function() { return (function() { for (var name in x) { yield name; } })(); }, enumerate: undefined, keys: function(q) { return q; }, }; })(x), (let (b = \"\" & ({a2:z2})) /* Comment *//\\3/gyim), (4277)); (4277); x) (y);"); -/*FRC*/Random.twister.import_mta(-1837408279,-1856675246,1197562569,-732502828,-1979700980,1321107869,-1926994420,196703086,-1307942728,-38959304,-1988985684,103938617,-502393928,1317148433,1355257004,-908438504,-2037180507,541884835,-186057134,-2106672455,-1412521653,2086598434,1024111768,-1644635245,-131460657,611340280,-1791129494,977528131,1468686819,-308015434,1559222726,-1036833878,1418550439,1589751592,-1685716853,-679118645,1641631617,-148633933,1683152910,-298827701,1815278476,-160670685,-687547121,285443798,1888298895,-274120948,1328437006,1782956703,1678081639,1189674235,-246690794,1108665464,-38466621,1159470332,-606616332,1501230162,-1505813868,-1808293243,1886809715,-507189604,944943095,828288543,1030002894,-1589119914,-966393809,-32499834,-337014874,-1420560840,-1498992294,1460839205,-308493568,-681132483,2091195766,813031907,-394014885,-1922434384,-2136313771,-1863545718,-1761702461,-158958850,112412932,853765319,1183071154,-1293435660,1896955628,1529797164,1082710374,-253402811,-193032589,-977179600,-1846613249,2048365184,2111305245,-1752386275,30915868,282477989,1929275368,671041345,-661371664,1740835078,275161694,106642653,-1361538496,271905178,517974086,-765217020,2133884646,987845187,1741877722,1782359643,370843736,-55899936,1002520408,893938656,939009262,-1717184771,-1831178113,730530157,325946776,1847420122,-1546796549,1348115834,-437810670,1611326404,1281055067,1793507702,-908628953,-339608150,1585237537,637079284,275024426,-582522518,-1120468550,579507378,-1385658663,-569568384,2033681643,315538734,-1131710374,-165287723,-414766831,1050076271,-1282614959,-732492773,636106377,-369564172,-1421954525,2044969070,-1383373964,-641252134,-615447535,-128571706,454214479,645004686,1080471351,-1114357369,-835764100,796513998,-217216519,-1928623740,1120441890,-1141288601,-1243445411,-616865820,-1887979163,-294821100,668370225,1477168521,-1754015329,-123373357,-1106742043,-545355283,-255828922,1213726173,-1779550430,213924686,-1986626980,-2026212611,-1661304563,275416545,-2008611218,1302529106,-670075575,1607500590,1943440804,-775987775,-2038469143,1445777130,-1875509156,-2138531125,273393437,-1994513526,909164065,-1743776156,1913571227,-143148403,-1350955156,750362996,-1920885719,-1647231170,1324473859,1900626728,-2028496154,-1892718721,1869213809,159688542,-165974505,-923000228,-992294761,-1777289828,-1527987833,1818036705,392977787,-341248809,-1958567244,-281085658,2015052025,379134817,-817908888,-1136530150,-349552985,-465882453,1470712471,1481612555,62426809,952855909,-1373960609,2082026004,2065089071,-915644876,-503110842,-1845002785,555920336,-1367455928,-288408535,-1686242078,98526129,207382186,-2091289664,1069867008,283258278,132377911,-1787749555,1802375349,1989873808,898504641,-966175811,-1129478836,465076087,1644359840,-2076118326,1026987352,2025049694,-373383188,37029955,-1522796532,886148252,-721978297,-554094600,320976123,796490440,-860473470,-783761710,-518871834,-27174559,797195709,2036876693,1916780180,-353587885,-2092107830,1372625545,137852099,-2127473311,-846663256,-1380087171,-223586884,1598257841,-1147958102,-2009595292,284582058,-672212059,1962951977,-410917849,694940489,535163697,1716813905,-2004616455,52502661,-1363589965,-1522279010,1717586354,1936499749,-701633130,122810483,1678726100,1779034092,-1248368078,-1483800407,1350004766,613209630,-523757606,-109529895,1903654814,330687825,-411790157,-423642873,1820128315,468340545,1456017420,-1661989048,-2127141741,-642533300,154137562,1365114506,-677536482,-334602692,970269628,1141005554,1284641079,1384483252,1579884395,1940557998,-614316828,-1298535376,746012961,674242355,986991655,-1694081098,-438955569,-1468399466,1477446926,-2126454440,-1816145987,-1678372281,-1290925665,-893208871,-853281746,1074525178,-1100626319,-533534582,-169802047,2132849795,-585595017,295704360,882997145,1174253399,-1925571882,578978835,339268085,-568306951,970014557,-810020367,1399242310,1363437159,1094937116,1502077364,-837580850,1934819318,128950351,-1880036088,-2025041822,1315622470,-257637658,1796403268,-964452962,-343129221,2138579748,807188848,-258533045,1760175795,-1817701826,-1303110714,1672105354,1179954890,1964543028,-398520101,675382543,-300162744,-1872499710,365116184,-907177891,-591290572,-1404350495,-613559433,-231670007,-1289255617,1255333642,1991518490,1429570293,1018792292,702477582,-975455876,-1360170945,-240241314,1302558671,462537070,250411824,-1522833617,250613723,-125660127,-640970991,765121091,1418522066,-443661506,1214813019,1126034499,610750702,-2091762603,863755936,1351556636,-496841138,-1814433292,-201803753,1660354714,-1983164345,-840296175,-482811792,-1464042759,-580669426,920963851,-383734285,1683506460,-1848886634,-322420438,-420133246,833434781,-110846582,-547560076,-1605992675,-1644988147,1932696309,-336155740,911883350,-1701254452,-382566135,-965614747,-346456982,-806978399,-962943192,-881468467,-134226551,-939922072,2112674788,-675896076,236276651,-61963299,-662056177,-1686005109,-1785210314,-668844927,-1715875126,-2001325715,450515306,-826837492,-1808856878,-676501027,434534817,101169719,-1115637839,1639078351,1406926463,1549911965,1729842685,796942813,1770059275,-613988154,1118673418,-609941140,-2090768964,770574080,-792476512,-1672173826,1976462206,-330867811,377233036,2024544563,-2087473135,-1396570877,-1570848271,-1898522345,-1100611456,-1275049035,-1741445091,-1420398994,-1043682752,837922647,843508626,2071235011,-1284722288,1984335620,-416388103,1391827764,-425240300,-507406690,-1312346233,1853356643,-367802602,-680035231,-832000339,2043280528,-1135560771,848274159,-1016787552,1299496110,-1751905465,2119846288,500785474,782775648,-1632477271,331686066,833692545,2135652093,-1193796933,-59586494,73526381,-642578007,1104363009,-644890735,326809829,2084858225,-1644396062,1847731211,948335727,-1420785809,-1726110294,-1024993632,-1252540494,666990661,-1235890269,-2116339077,2050049091,-1941748138,-1766584640,-529270937,1263240731,285971042,941225012,1868064353,-1435866995,1639447307,1306351970,211252662,-105564583,-1313529608,-713912285,-522623613,-2010158007,-577838023,-550034538,-576021240,-1011165284,-1761689873,-782553445,755582559,2062753232,-564519684,1935129008,-1711361799,869847514,1518380628,1872551429,1374301921,-1087611544,1189605763,-244731441,1030753430,578963574,-51810110,1194334870,616152918,-52786679,2116206721,-319031249,32454780,-596896782,2057376516,-2123866687,1697340884,-631252542,2126258115,-1895942075,54291459,1388801716,-1860713885,-60034875,-1750002291,-1988565737,1320957845,-1562171496,1532512378,-1357953174,409604863,-1446672417,1345418962,895467083,-843295272,-742237868,-2024544833,-1111475956,-1522577728,-1258229133,275040963,-1617352845,-1142412294,173343005,394237887,-1521604457,1848486409,1441537916,-605230677,-1153150821,1787502795,1232010836,-1871031319,-1902820687,-1433084089,1533252372,853976688,1938162158,-1359082608,810151001,369489818,-335691145,-556145637); -/*FRC*/Random.twister.import_mti(103); void (makeScript(14)); -/*FRC*/count=398; tryItOut("/*infloop*/for([(/*MARR*/[true, 'A' , '\\0' , '\\0' , function(){}, '\\0' , true, '\\0' , true, true].sort((eval).apply, ([] = (window = Proxy.create(({/*TOODEEP*/})([,,z1]), /x/g )))))]; window; (((function factorial(wmzyic) { ; if (wmzyic == 0) { ; return 1; } ; return wmzyic * factorial(wmzyic - 1); })(2)).UTC((uneval(yield x)), (new y)))) {/*MXX3*/g1.Math.clz32 = g1.Math.clz32;g2.v2 = (this.s0 instanceof this.h2); }"); -/*FRC*/Random.twister.import_mti(420); void (makeScript(14)); -/*FRC*/count=399; tryItOut("b.message;a.message;"); -/*FRC*/Random.twister.import_mti(442); void (makeScript(14)); -/*FRC*/count=400; tryItOut("v1 = Array.prototype.reduce, reduceRight.apply(this.a1, [f1, this.f2]);"); -/*FRC*/Random.twister.import_mti(467); void (makeScript(14)); -/*FRC*/count=401; tryItOut("mathy3 = (function(x, y) { return (mathy2(( + ( ! (( ~ Math.fround(Math.cbrt((((x >>> 0) < (Math.cbrt(y) >>> 0)) >>> 0)))) >>> 0))), ( + (( + Math.log(((( ~ y) || y) | 0))) != Math.atan2(( + ( ~ Math.round(x))), Math.fround(Math.atan2((((( ! y) >>> 0) | (x >>> 0)) >>> 0), Math.fround((-0x080000001 ? Math.fround((Math.fround(x) & Math.fround(-Number.MAX_VALUE))) : y)))))))) >>> 0); }); testMathyFunction(mathy3, [0, 0.1, false, ({toString:function(){return '0';}}), [0], ({valueOf:function(){return 0;}}), '/0/', -0, /0/, '0', [], (new Number(0)), true, (new Boolean(false)), 1, null, '', undefined, (new Number(-0)), (new String('')), objectEmulatingUndefined(), NaN, ({valueOf:function(){return '0';}}), (new Boolean(true)), (function(){return 0;}), '\\0']); "); -/*FRC*/Random.twister.import_mta(-309209594,-196603296,-760617397,-1664377961,-741531054,1377754836,-1605174647,1366139655,1036726239,1625190072,1497526678,41736060,-1362713269,-905903080,-1221272584,700023578,-1411780460,-1279316114,366343314,802619402,-695008920,-1008276926,-1592781283,205329867,912286432,-1689059677,685835092,1413007020,125776838,-1760333463,-29003615,1393058193,-1298944359,-403101073,423405342,-541185207,939678026,-1692667634,1751217055,-1656748628,1842930287,873494896,-2081154906,1454505617,-265456914,444330083,2073884004,-1524677561,1177701759,-533973756,-91494217,843443976,-1163119873,-1269682000,-469021884,163961888,497293201,1964805940,-414246253,-590897531,-2019533337,-1556939818,1896981476,-1444917577,594136158,317688366,2049546945,986934950,702982539,1952709514,689890989,-46929145,-1394850002,2106233810,-622830682,-1399594101,-1540284968,-1005852494,66004044,-1060498285,750453695,-2128815064,-1750792339,-957440010,-1718147421,-1200110418,170683923,587029926,1393629519,-474403278,109002883,344980033,-460823211,-1480215177,-1013577415,-539464992,1798735329,-1651700225,496402144,-501180871,1297240784,-653990003,835945565,-1287691362,465467757,-1124257069,-921918128,-1535282262,-766727582,383005038,285061392,-1017987067,157357378,709702134,-359584420,1757254235,817887275,232204961,-289555516,-918720989,-1314721492,562658796,205592723,584686992,1532052656,-2056949085,-558859846,1865118309,-803515942,-1117390169,157469936,-389132418,-794922974,-175261712,-481964138,1931967594,-384521744,1426995766,-216934697,-760033181,-1457806199,715437306,-1835741735,-2044660999,946538316,891477911,-851132209,-1011408487,-1942304786,2089770654,-1582958758,196539118,-829266993,2055287000,289156851,-1236496731,2058726712,-629315085,-1730160578,305394337,487237781,-266263893,924649894,-1322274200,651992939,1976545071,-202725480,1675161055,-668336096,-460406053,173966571,1062220981,-644157081,-164785768,943906086,-399457023,-612716067,186246059,-1415782101,-2058625290,66772989,1867568057,290741844,-1223328105,-1293192644,-1997510497,-100555498,-193924885,1325262903,1481999942,1244866128,1626589271,1464877896,1325438072,-1160151194,-25657239,107849320,-1432895360,-2091595193,766641802,-1074314197,-1102318465,2074103200,1539095188,346462572,1033642151,-543802668,-248457847,1551355249,1848703115,-2129945050,-950894306,1999643423,-18546239,487873624,-1402212617,37646982,-1458922747,-189519414,-1208075112,-638349318,-2124802950,466712010,-1466098726,-1821838857,1710813575,-1596621551,1225918414,-788644486,-1549240344,1287689639,-2091092038,1159855472,1312674882,483614070,-433312040,1727028717,1492043894,1570678652,-1497910376,1358447196,612689537,-989447265,-1869317924,812684369,-1343623789,1904329388,38243852,-219704814,-1557106824,1386635111,171541967,-1349668523,-252495958,1185233578,1561851272,610303893,-1858476195,-2087711949,-1523641347,-1046335058,1905850487,-1355318982,-566606555,1439784719,-841096822,-1537221914,-1046084583,1974862485,1913972029,-878513105,1774020737,2092927159,-1270185851,-599167335,-1332002568,-35261615,-1097340539,2050940765,139718642,1473946363,1321404808,-998730405,-1956749610,-549552189,2047235888,73383448,167006049,-242019047,35751741,157199482,142555797,-934296888,1210987307,265788752,858594450,-1095972095,1092968098,-277512184,-1665643325,-1740736159,-1571037079,1010934268,243525470,777815278,-321261938,1412924396,132090809,-1889215604,1312196091,-1439218736,-587145394,-1864811541,568500380,1425699512,268142737,-1044905909,-1187055417,1036861083,1385519679,-1643053792,-299422901,-2037080840,-1543137874,278770361,-1712003028,-274482718,-1498289432,-1925584954,1574666970,-1281420494,-882299284,1745783599,159584576,1477744665,-1260564363,1993459859,-1765285129,-1286884288,-359061763,-858399896,1561714232,544053711,-1276644552,-1239331371,-400509265,24419573,582363401,-1752046513,-912181278,-1676859977,853678995,886042959,-32387916,1139311295,-149777859,-993229476,-1816286200,-281658886,-1825023981,-1833381677,-619204891,112067656,-900372673,-1178555564,-1934768315,-893612837,140024051,-942073988,-1690254138,-552927462,1237197193,369658098,-137853227,1855985963,1091745206,1266855482,-376176293,1096249186,1936464702,350355266,-569296420,1123211201,-1700437405,451287987,-38357061,694806060,-1365714640,-293738983,603091745,-1815974186,-391997525,219723136,204713120,1846545768,-547586632,1864090003,-735169575,-1709584774,746030640,971524198,302296015,-621288290,642140335,-1281383083,-1179694756,501903363,1514614957,1192713399,543504755,-17201555,1377804008,-108271406,1743568362,193809596,1063360527,-1794962459,612564567,-1568072435,-87513746,1026340598,-1304468947,-2011389700,1964442921,1800006161,-1075411838,1109161008,1994181498,1773860902,-1691242491,1850208070,1334544199,818959809,839371407,184587492,702247748,-1865714172,-498676302,1004592167,-1782088444,-1659242635,1675768234,-2018460531,-600021108,237333044,33058962,1664499970,-1825021215,1950595813,1460509871,1976480691,-570042046,1117997697,-356320904,-1144257537,84259189,966990380,-888635744,1787685762,-171658608,-117078189,-1235858601,1759817449,-885483977,1969056789,1019767417,-1956301010,289992834,1920197889,-311961137,-557962333,1251451374,12775554,985648618,-1491520950,1780939461,1817828646,-1702785216,-732276325,-255938283,872129199,-1816895877,146588351,1149577909,1355382825,-1699512582,27125699,-669750938,180076533,94960665,-1220507457,1719858053,-1120064827,1706360314,798312951,1086316830,-2136478766,899552166,358192841,-73440330,1946542381,-33822647,-702472529,1864844845,-1044722355,1959948284,520615234,-1047839248,119642577,1168684100,770921847,1515897409,71250705,-546834191,-1138394262,141703878,-1209079766,-638893865,-1353335054,-961445319,-1506307599,-1969481800,-1081217030,-232646188,542553586,-1243717679,1448099902,438054511,2076102027,-665734398,144852085,1694925710,99132898,-1466240962,257573512,-1821892202,-527301100,638240585,886280724,-1237870758,665393735,-249013941,1461786861,839514245,1348139737,-523093920,-1520789252,-242520853,-2131597873,-414582986,1987213830,-516385493,1450769372,-757450998,-1986206570,-191743202,-936613255,-361530401,-433488570,-959949582,-1199655185,1199748781,1319508075,-680681301,-931142468,-1576365957,-722624868,-1353853405,1330184595,-2029491180,1442718631,424935709,-1462293871,792892684,1608949899,237861488,-1154180856,-1323120298,-726358867,-1430757966,646400618,1787508197,1720828883,603049441,1097700881,847444910,1835987718,-2083962081,-1229223208,287942653,526966431,875223140,-457868244,1226564385,780579359,-1372046378,1105299142,-2115312740,455182057,-713015020,653415275,-127649203,484876363,-1751081365,2065922651,-889664522,-1653440795,1041756412,1794112982,-2041032877,1994932953,1045521561,1820536464,-148113493,1658455628,-2083770477,981540889,-1442746847,-2256285,-868945037,120674157,-1025090420,691552106,433269392); -/*FRC*/Random.twister.import_mti(133); void (makeScript(14)); -/*FRC*/count=402; tryItOut("\"use strict\"; Array.prototype.sort.call(a2, (function(j) { if (j) { try { for (var p in b2) { Array.prototype.forEach.apply(a1, [f1]); } } catch(e0) { } t0 = new Int16Array(a1); } else { try { for (var p in t0) { try { i1.send(f2); } catch(e0) { } try { o1.o1 + i2; } catch(e1) { } try { t1 = new Int8Array(4); } catch(e2) { } for (var p in f0) { try { function shapeyConstructor(rfjsnf){\"use strict\"; if (rfjsnf) delete this[\"callee\"];Object.freeze(this);Object.defineProperty(this, \"__iterator__\", ({configurable: (rfjsnf % 21 == 16), enumerable: false}));delete this[\"wrappedJSObject\"];this[\"\\uBD2D\"] = 0x40000000;this[\"wrappedJSObject\"] = (let (e=eval) e);{ i2 + e2; } if (w) { \"\\uACE2\"; } Object.defineProperty(this, \"wrappedJSObject\", ({configurable: true, enumerable: this}));return this; }/*tLoopC*/for (let b of []) { try{let qgopww = shapeyConstructor(b); print('EETT'); print(({a1:1}));}catch(e){print('TTEE ' + e); } } } catch(e0) { } try { var v1 = this.a1.length; } catch(e1) { } Array.prototype.push.apply(a2, []); } } } catch(e0) { } o0.e0 = new Set(i0); } }));"); -/*FRC*/Random.twister.import_mti(405); void (makeScript(14)); -/*FRC*/count=403; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return (Math.log(((( + (( + (y > ( + y))) + ((( + x) ? (0 | 0) : ((Math.imul(Math.fround((Math.max((x | 0), (x | 0)) | 0)), Math.fround(y)) >>> 0) | 0)) | 0))) !== ( + Math.max((y >>> 0), (((Math.fround(( ! Math.fround(-Number.MIN_VALUE))) ? (Math.fround(x) >>> 0) : 42) + x) >>> 0)))) >>> 0)) >>> 0); }); testMathyFunction(mathy4, ['0', [], (new Boolean(false)), NaN, /0/, true, 0.1, (new Number(-0)), '', 1, undefined, objectEmulatingUndefined(), ({valueOf:function(){return '0';}}), -0, (function(){return 0;}), (new Number(0)), null, (new String('')), ({valueOf:function(){return 0;}}), [0], 0, '/0/', false, (new Boolean(true)), '\\0', ({toString:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mta(-1375061271,1782943104,-82117852,1343150415,2064368805,1406544133,-671602189,879919717,-1983873536,827017416,1534679827,-914571571,1164295039,-1520178287,113467237,-328789864,1043540573,1097316085,680138762,-1102410927,1165069174,1795794652,635346772,639403910,647933347,-596893354,1594582655,1760982002,761761001,-1539932993,-2041558163,-369385547,1908774381,584694985,-111402436,1825667428,1066021384,-432497164,662401426,2133833708,-129044214,974835828,1737962131,-1525723646,-1210615484,-1166096833,1471903088,-197854124,837708304,-2021980794,-904227483,-266529979,220497143,130749969,-1696123054,-713428586,-800276766,291716713,-227619096,-478444544,-1701772469,302332528,2017207572,-1464770180,-1088319936,-856108202,-699326108,-123303921,117020604,115537063,-1227246114,605931158,-1818062810,-204601744,-2049515276,1390050926,1488599475,-420568980,-750043053,-1559434202,-1710235308,109079282,-1815478546,-432504543,-812663764,-727562903,1442546790,-532038575,-1418728989,-609552547,1264264345,-1577632384,-817719683,1334000892,158254837,1370413290,-226833446,1633580679,-391701795,-435240262,-2146119489,-726080456,-503262599,-1596822204,2056110591,-1297658873,1025114104,-1466132356,1069053771,393817546,2032856365,1133581168,1351494847,414958553,-1223902285,-2056749093,1082449278,-1954830712,-169591544,-281046852,-1993343455,813531748,-673362703,-1952500823,287710774,-791293145,482283577,140188959,1919160925,316745286,779815376,334624154,-1567135494,2030085054,479542715,828567834,-1038226139,-1344661188,1664743800,756507791,1935187252,-1533983705,1815043833,2073860577,1924236895,-393492395,-891627370,373791022,-1634363601,-1249352879,-1269820004,1051976951,-1710657702,-404431456,1662411430,723660096,1726755628,-973928311,612594321,1604423404,1265326677,-1113065067,-564163130,1914194309,-462564891,2001947559,1065969307,-462756692,1229275593,147483702,703429798,-91436545,-65100584,165629236,-1270557886,1549976224,-205073402,-752852799,1284019467,1673610793,528617557,-601977977,674910758,2146628468,-1208241803,462491992,-1061092021,-1088695595,514341005,1215782958,716707819,-1659655300,917106113,33841452,-769775473,-1484542184,1548747617,-165386269,-119457645,-955083764,1204267388,1727111225,-128050082,748756957,2141362881,858635553,1982874736,-1945097156,1692927852,-1644711434,1572778099,-2004919162,539131756,945974517,-1318313155,765204435,2057702134,411046569,-667733537,1450764260,-357800932,-1305139066,-663060834,-678584503,689083536,-1604701891,2103060855,-2039143340,999405172,74580264,1369498258,429603357,1959314212,-644774072,124032265,1672536105,490482931,1974864045,-634951935,756652625,774449166,-1119292811,-1540543242,-16527190,-811863837,1347090780,-1083618217,2080522879,982618464,-712703944,-1173817922,-1471101482,-1542079869,1012529962,1182632246,-1503722500,899825614,1586560555,577021588,286559546,-1021480915,-288907615,-1698370775,-865456816,-1059689167,1968479457,-2030828225,463290527,-1709698507,-615581605,1222199965,276827584,961754786,-1600687389,-1401332696,-703323289,1094205851,772622868,-197860164,-1077844651,548049621,567528736,-1864966403,651899356,1818236401,-264171036,2122912623,995113240,-904050383,2090038057,897993961,-1694077148,837253660,-776278068,-516946362,-2136522013,1718639606,-2124188198,-213299160,1186274377,1005274779,-604622838,1436257729,1335131076,-796764373,-1185906267,971741477,-1648522094,-124544816,-2033033466,-2001146234,518754566,-2074929881,2139536698,2126301382,314267929,507329505,-1934292213,297082944,-1068832531,-1583867514,1243908233,61608509,591176281,1839465105,-1619605972,-1252640818,-964156580,-1168825003,-70296608,-983106958,-1753074505,-1234778969,-2011495637,737837209,-573037603,-2062390162,546256653,-1344982831,920961291,1982934213,1043515275,-1667529145,-2103653557,1717783808,743883693,1735144679,468696281,1420630421,13856501,1273401023,-1840687538,-270715523,-465313351,-1428495138,268587251,1530916930,1507857709,-1016764084,1925427276,-1920744429,1606565791,-1925123494,-1627539313,1887717953,-1620111414,-265054167,1353979530,-382654908,61481332,-2041890310,2041954854,1248279520,612525276,919520245,-1152073678,407556899,-721706451,117827944,-1871081221,-924040882,-1687701095,-1082643282,-1298690518,1646322571,1882685831,1223549556,-1520625274,1968599258,-675366227,-1623084401,-1562277083,1900715511,142696495,-876291472,-1480584737,-1143618299,1692507035,-1397290265,-521502485,-1714051060,-1723916019,-1773578712,1929492083,-1879587729,-1686823467,-672502112,-1526657327,1428465633,-1907482161,385694720,-1958853348,1751601069,-989355243,967028237,-1927213664,-2093043750,-1561056846,-529008181,1749006010,-2112659227,-1777305359,1140890963,-251902282,-371776094,-1712389493,-58920527,1931138415,-228472604,-1887572995,-1838388063,-20840194,-1289295687,1940917762,-1728211554,1821228142,-321595601,-1723437377,-2103647740,-140102647,1234400288,733793700,1132602389,1035255788,410790624,-374861474,-957585845,159713713,12277262,2073401240,-124816408,-783580913,-1791275647,-1179346857,1577012273,658520930,569785976,619059027,595157845,-1857900462,464654908,-367103326,-551281683,-23451098,-220558002,-543818602,1706942992,-1911002543,317959757,1383762424,-1706557347,-805664606,1293229993,-1394223758,-1877372990,213745651,-658126952,1227712940,1225207171,1692457739,-1400150840,-1691658058,487925369,-2066854139,1405698390,-73210454,1025423753,524820232,1964724338,409739177,639886413,1195395212,126804508,137761051,1002614800,-1706301476,-2122190456,-612552410,760200219,-631671061,123876888,1583440800,948908206,-118646814,1415871978,-71885283,-1627063379,-97325342,50829058,522699929,-1828790237,-143180634,1190812995,547073754,2137597051,-773178076,-1989254243,1647088528,1633033959,-67894725,-1795890160,-1091112517,-105492983,911933711,42265325,-1738444745,-759972959,-1623420799,-136386165,-2000543964,2098674179,-764017190,-1390544454,2118563937,-1811309479,-1998939174,1289718909,-1831786612,99637931,1318004955,-568712896,-1943735185,-1833495164,-1357318574,-1126426821,1125674046,562556487,2028575678,964719378,2023042878,-1968678893,110657407,-1239687767,-241678971,-1128186157,1196138678,402544336,-1234025263,-186245426,1934700303,1926424738,-1784595341,1868972887,-517104080,-394080273,-979107937,-129328443,-2002969389,1035399553,1869358923,389970714,-352294761,2079820075,-778578819,486080993,1228363025,1480723038,-1196135370,-954894185,-1130459064,1208929172,10139112,-1728968996,-494826603,1084319994,-170782513,-365977316,-690093697,-1906418498,469511626,-2065115971,1121907799,1659522693,2121822713,1202195297,-1983781593,56578234,1389578833,1400234668,-2146000246,-2118596315,-508222705,697057240,-53223727,-242759722,-793483579,-814585723,-40124507,21180143,1560591645,884444345,1415673027,-760558963,964747602,1035189904,-1323413495,1538702690,2041039713,1576223299,-1411742050,703745641,-1621572155,-1423342441,903375022); -/*FRC*/Random.twister.import_mti(12); void (makeScript(14)); -/*FRC*/count=404; tryItOut("\"use strict\"; \"use asm\"; delete h2.iterate;"); -/*FRC*/Random.twister.import_mti(22); void (makeScript(14)); -/*FRC*/count=405; tryItOut("h1.__proto__ = o1.o1;"); -/*FRC*/Random.twister.import_mti(37); void (makeScript(14)); -/*FRC*/count=406; tryItOut("mathy0 = (function(x, y) { return Math.fround(((((( ! x) >>> 0) == ( + Math.exp(Number.MAX_VALUE))) , ((Math.fround(0/0) > Math.fround(( + ( ~ ( + y))))) >>> 0)) || ( + Math.fround(Math.cos(( + (Math.cos(( + Math.round(Math.fround(x)))) | 0))))))); }); "); -/*FRC*/Random.twister.import_mti(201); void (makeScript(14)); -/*FRC*/count=407; tryItOut("m1.delete(i0);"); -/*FRC*/Random.twister.import_mti(214); void (makeScript(14)); -/*FRC*/count=408; tryItOut("var szajgv = new ArrayBuffer(12); var szajgv_0 = new Uint32Array(szajgv); szajgv_0[0] = 26; var szajgv_1 = new Uint16Array(szajgv); print(szajgv_1[0]); szajgv_1[0] = 4; const t2 = new Float64Array(a1);throw new RegExp(\"[^]|[\\\\s\\u00fd]|(?=(?:[\\u008d-\\\\x9b\\\\u7fD0-\\\\x9B]))(?=[^z-\\u72c2\\\\x91-\\\\u00BE\\\\\\u0019-\\\\u1A2c]+)|.{2,}+\", \"gyi\");"); -/*FRC*/Random.twister.import_mta(298016091,-1858439307,300244115,1029241473,702317904,616428046,-1339013218,-1961362577,-1009731151,1667134454,414703976,-1365325183,100099288,-862706835,-1123168944,-1367971236,2092746928,770089480,185399511,-511284639,-1754203428,-224872863,2066871673,139757291,-1205442470,-1299341645,-997753009,1718375177,318540811,643589336,-1628460438,327922381,119113030,-1362985537,-2002076596,-1394347587,1085030648,-884986537,1394239384,-789336150,-1001716091,677366674,-450784504,309905538,-276095388,677355181,128893382,1082859496,-367684707,988388390,-394055476,-551443286,-512185265,-167974847,-1141409340,-48426256,1745729468,1690839877,1459485026,-172617982,1843694187,526873055,-2061893396,1143133468,-1939727607,-1274246305,465690366,-1314503024,1173108250,2127640831,-602502886,455272030,731744960,-660377561,-1500006507,-129977425,-1617787580,1622449972,1564150240,-1782433998,174939349,1088672500,-1896600764,-884163874,1752353501,2011751498,769794546,-1619655304,259993307,-1044669670,263422408,-1951224941,2142077399,-1147389976,1872176377,1051953137,-510551417,-1768321631,-380860799,1484990728,-1323220166,-985176584,-1976549303,-483629512,-566594180,1711525714,-324805668,-1833896304,-267679496,983121380,-604346534,-1303891582,-1972202070,275778853,751547284,649606140,623279518,94059263,-1502218886,1425091666,974279330,-743438272,657664816,-597169397,261400823,786527946,-1417789601,-1564585188,-1861098732,-980533431,-1765512628,-426418698,-196980997,-363523071,-892895913,354140151,699118847,-443195163,123312450,1970520807,428946752,-353417976,-364260108,2118800048,560570522,-136676913,-465880379,715025523,-2133529271,2075124873,-1095182054,881116351,191316462,-81565376,319384031,-2056403905,1248424222,2005415748,1755015104,-1421653211,833161412,-1681270739,-1823098094,-638799729,1996499327,-374718267,-753341338,355000276,-1043936892,-323214186,752077043,1136239597,730038737,219943611,-2060383801,1108665128,554652866,-474612805,-505461030,-829705557,263428394,-1828171388,-2090341902,-889478159,1297235268,563754150,604295712,-1761754013,-773218088,1719343670,-665332543,1275206273,452861276,888107045,287253467,-1781858326,-597495081,-1563416585,-364335327,1622967300,-123524462,1868229763,1330552251,660681882,1630227776,311696864,-86259505,-2081176480,-565199298,950370403,-106688026,1364332889,-667075656,-1257689608,-1683501067,-268840970,-1396156199,-2002610528,-635296773,1860210540,549281570,835616012,1494546917,2105213985,377318788,1284251891,920844932,1275823713,-1828489247,959786458,-1466050736,330884290,141898154,1787477445,600259492,1413881623,-1064450177,-1397956041,1629140854,316928223,1262021256,-283419861,-772308471,-2105966562,1170464422,-1917784541,110099329,-1976028564,-665176451,641044390,1551688704,1931740612,-324967642,-407258156,1967379191,1210946540,-1877169390,-1881278176,453112912,-1080062577,1084817968,1556117767,-891885803,-1177565505,685954040,-915876392,70631226,1347403584,-588249248,407209625,439930466,-215841483,-1591961853,1368551378,-1299595644,327222159,770652460,-761707886,432645855,673535482,-451604783,714384997,-1368356322,-952824421,1558750135,-1330528246,-400682098,-773677524,-131696492,114398791,1235346062,-728652281,-1663959879,1801051613,1761433406,919870433,2120253970,-1515052786,-512698203,-1352623790,-178755550,1431486890,-544567731,786112014,-1525387463,-1731824211,-1692601989,1982107837,59440503,-894936057,-2076609955,-212602735,137083607,314328465,253958443,-1721170956,1592372800,1198068200,849309498,794922260,1200014195,-146170568,-1239063038,1313549072,-1725763913,-1276666522,1002911910,1963155791,-1197422584,-394052240,837143740,469870576,-1157169640,542518095,626284449,-1300054321,-204073283,1427656685,1882382808,677557015,-1771971009,-1148272536,-16849274,1444403998,-1967592458,214654934,-1072807199,-1991479625,1255215077,-1681335120,-717012948,-512589162,-976734519,-32289488,1941425082,-1131537611,1886815488,-1216946454,-1611364912,1804278829,482130705,-865663878,-1016212625,-924770048,-366811392,-431430263,489277858,755607138,-1422240334,-378779639,43037603,73022826,-442807391,1716841440,926157930,1442395143,-925203136,-46518866,-1515144163,1863409993,798491987,1286963080,-601488598,-1569607676,-694466728,1290639098,-1175599130,1258434729,689845668,1174262410,294962626,-1766992037,1960984589,-151355042,-541038620,86285273,130308484,-1551827617,-1429974201,1734956503,-661966110,-837442861,-1566799666,-1074002390,923256206,-1976929910,84116764,-64390651,220721596,-937854990,-815496833,-1603720627,-1710139917,-505563655,-1871887693,-1871251659,922816239,828676347,941474268,-2097209871,-420479870,-367534675,-1380655951,-1467391994,1999574637,226387750,-2143723924,-1047277856,-1309890142,-1620042956,1476408549,-1582265917,1800149729,-156958208,-172680617,1898800502,-317847581,-1192599324,-1282819198,-1124826712,-1596503254,594439456,-249327616,-1594470999,-1133076977,542941185,-1289045141,551613477,201635520,1699954705,-1932102535,-974619749,-1990271993,-1055527869,1605082064,-2080872227,-1303472468,539612709,454671595,1168914612,1602585748,-715290995,722143748,-1176469032,-1016718212,331630206,-1930988248,-1689678479,-970580009,1171993336,-444283825,-1170087507,-1681783654,1317223520,1433288010,-197601871,1117993840,-503856610,-665003874,-85667518,-1439950961,-1564348140,-750648143,-101184583,-1307800587,-595191733,-1338277365,2049223177,-906050036,1087350252,-1703943431,723886838,1417375114,433383218,1567247534,-1674510428,1979391498,-711483216,1191612063,-491942897,2124602882,-1362221357,804767870,1205667801,1984593219,-817665066,1430004363,-1533622960,-1139804938,1040665296,-1131506744,-1499644471,-1594091673,1319252332,-115900226,630847877,2009587599,-536715998,1885542341,-693399887,-1389750817,-1926315803,-185521223,-433436741,814361034,287421866,2046190029,398437432,288607800,940155795,132127971,-207973404,2129500482,135303048,843701584,-51541098,-1010774079,1607069655,1293734947,656845431,-844722311,1182307305,-823822115,-1718676222,652552183,-1152112442,320159947,1531378426,-888993113,712637140,-1810914192,455585980,1378029435,-55634160,380023060,-1285561504,1790095303,1268171739,-56524632,-2106619319,-1282538071,-873478443,-2112589353,513786261,-1363083011,-1793123227,-182153823,1370625568,355492626,-178136309,-90218614,1850449852,-1123547849,393900750,887059680,1727007434,-2020414805,801197240,-1086469454,-1580248317,-27387964,2144258260,1422290464,270938493,345466450,-354200226,-1712542643,1536398670,-2120674657,1477511662,814148596,1113551005,1081896362,-1477083955,-1327373266,-359268881,1494048254,724189941,72444975,1011851244,-1886991688,1676809094,-224891984,-1340512597,208186899,1526806656,-1999368636,-164551941,-79719975,1601533353,290044602,1724289729,271443539,-1489758034,-897210254,1153788693,-534345755,-1503275972,-2092919788,-1189881882,1616794467,324801904,1606987662,-1775417354); -/*FRC*/Random.twister.import_mti(105); void (makeScript(14)); -/*FRC*/count=409; tryItOut("\"use strict\"; v1 = Object.prototype.isPrototypeOf.call(this.o2, h1);"); -/*FRC*/Random.twister.import_mti(120); void (makeScript(14)); -/*FRC*/count=410; tryItOut("M:if(true) {s2 += 'x';this.h2.set = f2; } else {Object.defineProperty(this, \"i1\", { configurable: (x % 24 == 11), enumerable: false, get: function() { return a1.keys; } }); }"); -/*FRC*/Random.twister.import_mti(223); void (makeScript(14)); -/*FRC*/count=411; tryItOut("e2 = g1.objectEmulatingUndefined();"); -/*FRC*/Random.twister.import_mti(235); void (makeScript(14)); -/*FRC*/count=412; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(244); void (makeScript(14)); -/*FRC*/count=413; tryItOut("mathy3 = (function(x, y) { return Math.min((((x ? ((Math.fround(x) >= ( - (y | 0))) >>> 0) : ( + Math.pow(Math.pow(0x100000000, x), x))) + Math.acos(Math.atan2((Math.trunc(Math.fround(Math.log10(Math.fround(y)))) | 0), Math.fround(mathy0(y, 1))))) >>> 0), Math.fround(((( - (( - mathy0(Math.pow(x, y), ( + Math.sinh(( + y))))) >>> 0)) | 0) === ( + ( + ( + Math.cosh((x >>> 0)))))))); }); testMathyFunction(mathy3, [1, '\\0', ({valueOf:function(){return '0';}}), 0, (new Number(-0)), (new String('')), /0/, false, -0, undefined, '0', (new Boolean(false)), true, (function(){return 0;}), '', [], NaN, ({valueOf:function(){return 0;}}), ({toString:function(){return '0';}}), null, (new Boolean(true)), [0], '/0/', objectEmulatingUndefined(), 0.1, (new Number(0))]); "); -/*FRC*/Random.twister.import_mti(562); void (makeScript(14)); -/*FRC*/count=414; tryItOut("(void schedulegc(o0.g1));"); -/*FRC*/Random.twister.import_mti(574); void (makeScript(14)); -/*FRC*/count=415; tryItOut("a0.toString = (function(j) { if (j) { v0 = g1.eval(\"mathy3 = (function(x, y) { \\\"use asm\\\"; return ((((((mathy0(( + -0), ((x == 0x080000001) | 0)) | 0) * (( ~ ( + y)) | 0)) | 0) >>> mathy1(x, Math.fround((y !== mathy1((mathy2(y, x) ? x : y), Math.fround(y)))))) | 0) !== (Math.max(Math.imul(Math.fround(y), (Math.asinh(x) >>> 0)), Math.atanh(Math.pow(Math.fround(Math.min(Math.min(Math.fround((Math.min((x >>> 0), (x >>> 0)) >>> 0)), Math.fround(x)), x)), Math.fround(Math.sqrt(((Math.asin((y | 0)) | 0) | 0)))))) >>> 0)); }); \"); } else { try { this.o1.s0 = Array.prototype.join.apply(a2, [s2, i0, i0]); } catch(e0) { } print(uneval(t0)); } });"); -/*FRC*/Random.twister.import_mta(840267322,2067680721,-523397048,-865767350,-599041068,-1165710591,1669286722,-806934135,-75151247,156792232,1919856538,1339835344,2002507419,-1847433257,-145612957,-464571989,-147921667,216239623,968717018,2092528513,-786402540,-594703425,534638171,-84096849,710517291,1459606473,1119353181,-413540169,508581194,-1890677927,291415897,-1302303999,286889268,475359939,1858716098,186268317,1242408052,-1674040933,1498722979,371405950,-322599635,-2129038842,-171383319,-1760377832,-297200983,-218828573,-2135702947,276096798,2099801618,-2023021811,1332749936,-441429960,-2035972882,-785528677,-1150881053,-44562471,1786333502,1960142689,-1188860068,1572102982,-1231888875,429178013,666718778,-1061406257,374567933,1726735739,-1590451568,-1584396431,-1247515938,-1561579099,-690422178,-739714377,-259900876,801615706,1600719013,-737458632,1054438394,2079570362,-19280344,-1633868347,-1048171676,-551105220,-1623028691,1193132606,-1724546255,-978119608,-163378939,1824238663,-61090362,-136166673,-420131041,790672952,1560395288,1957478490,-1384853039,-38072298,-879718083,-1329283279,-261002464,1835777943,-1221324212,-1693049244,-1824801005,297788604,-573587078,430318992,243629201,240105791,-1844447964,2025918758,-38609519,-113852893,-281543523,-1427420670,-1245633481,-1301337688,-714662708,-366118397,1340174252,1791948510,-908437246,603619933,1636879339,1944646011,-1705084032,2017887433,-1217040843,2013452352,-353494319,848581867,1693778627,-233154150,-735340212,-74771817,538967232,-214895646,-1546481883,1910837745,1599920698,-821537439,1790856531,943210073,1476625199,-585998540,-459464751,636507488,1439208420,-1081613940,1602972253,206122054,-1744033670,-827282864,401100404,1149476928,-2137398660,924301300,-949285710,585827060,1073149485,845556645,-545612014,-1257546463,2006016721,1359389129,1714574952,-342358044,1410051711,-1910348737,-482275794,977656071,-379160823,-1711729883,1793548937,1628400566,255979048,-1383092394,-1079492660,1144051597,-1732418752,-1068816834,642081914,-24232373,1572483620,-1728640666,1862521479,1187252016,-2108660845,2086909502,-1713448891,751826674,-1533400879,-1931076559,-613547741,-1593718074,1220153192,-1220172770,1872093161,1556939617,-1697923091,1700579511,-980450197,-1157721555,805242273,-1089246184,1790451062,1459437320,-236944229,1666150668,-1638184850,-1274673481,126917256,-685700091,99738453,-980226657,289043770,-549356832,-479898626,1050413392,867511459,-260560780,-1098716486,918706233,514254121,1801512353,-1408059946,1153028812,689976345,-1566802667,665115452,-192711712,-2051472853,-663633151,382289212,1922881168,2093782749,1120606993,-972639124,48493601,-542831776,1388815327,1063746205,111242936,-1519128156,-1781593170,-1825355319,-470663227,2040883895,604362997,-1885909908,837000283,-1016149427,470356920,623054371,-1591828231,-1018222271,375259331,-929007671,1558076785,883367193,1900876844,-1422006625,-760610153,-822777571,511495560,-1198767241,458124606,1040509918,-1027766627,1412628885,-120290600,931870301,667937271,-1707227382,-1711858401,-1061366266,1809838724,-1373142460,-1701034560,-240977211,757576537,493824886,-1403078676,130691531,-1660573638,1821214564,-852728165,893725776,-897457569,-1007368351,57516925,1945917971,-1053606530,-1974486198,-1790113521,603109982,-1970000937,-1338695390,1063789267,-2074569186,-1976693211,1164889999,-375062692,-2090415809,-1252264775,-1365757005,710870602,2089278788,1498146048,1668961248,1146521052,-1480815959,1143533189,1441105503,1759130959,1611607485,-1825635610,-732509669,-4523902,948990130,-406163586,1325928134,-161062192,-1700887138,1577670329,-382242430,-1382877325,-824000529,-1419479480,-279478052,-875996851,532625220,-1068712330,-796557080,-2060982370,-1912187257,1928089253,-1958377969,-978604675,1947162487,2098176861,-148100554,-893495436,-647707609,-801412809,-1404512792,-152109565,-1218416294,901410351,773778437,187788285,55685168,1639108667,122626641,-827421720,-11705083,-1831511983,690961310,722419755,517433171,1132295195,-575106902,-660494936,-1757387934,-691798875,-1681271830,298335979,-645102000,2133026698,-712594814,-2143065567,-549502591,1331170014,1457135760,1314035153,208915280,2078681341,1926511249,1406977707,540060203,-1725105150,1658396548,-1366629399,1714384886,-1406750946,1151191433,587208158,-823164114,-873101888,-1745505180,2136670256,-1017578821,-2058631503,-790280373,1005297037,1438161164,-526179604,-1299376265,621604469,1933904145,1185086456,-1626535424,1578084943,-227431357,-466887413,1093005128,-633560626,1733766115,1624677540,-628980302,-1560231356,1372269727,-1157379935,-1356698349,1399747093,-1387233925,1532424173,-1384838576,-1198208961,345055766,-1474691230,1292014799,-2023173649,-486468579,-1928666112,1517433074,-1697181477,93663175,-1652961094,-179920969,-621302004,918788134,-2045337383,1840233992,305314159,467256247,836041536,-395102523,1582581577,-1990505263,1436174016,-1809458417,699120954,372436203,609659942,-138745457,-1289174583,956359353,-1199525414,-1654437650,-2117767222,-1868797773,1907714826,-1120168910,1190525425,979958180,2122551402,1033840685,289238145,-89661605,957056886,-1053121271,692655071,1580948477,-1481262510,1258411806,-640241164,-2039753288,-981678679,1682765764,247014236,1374112679,-556643452,-2068602379,1393718290,-2028928270,-288960044,18382164,-1354717694,1635482393,-381831877,-260155277,870751174,-206916160,145654508,-1416240757,-172856125,-1789398537,-1883077223,-1295134623,1523198142,1273896179,-1833830990,396631719,280087945,-861537969,785288848,-769699200,-855588403,-1886281937,-445863925,395886249,-1756941767,-784744009,201985082,-1120014293,36985695,1064096241,1130942733,-212004220,428701743,1464043009,-1510261752,-1434616275,164555791,21343810,1629460601,862752236,-1832558290,1936607993,1171390842,1255332258,-1065181347,1619638485,-395299385,939063302,564860455,-2114856903,1308043411,1822989898,429815697,-1936278197,-772866286,777470350,1705194476,1732059339,-1684896545,-1296383256,406474855,-827126943,-365006532,-1829843868,-562749172,-538408857,506259775,-502207263,-401448952,-899083773,-209634486,-1554341958,-1868998746,328896231,1496205024,-1815773957,-2051938459,-1295284232,50751456,1997179007,569374480,410241933,273298147,2044245035,1443159731,-1532289360,86881966,372020112,-1751801480,366389325,-38528065,1762003502,-1540658206,-1491163415,734291884,-1118582940,-1391473878,113404746,-1260443249,1557253537,483349865,-1470248603,2019568051,-1320554622,-718384619,63893552,593791159,511634052,-886472278,783597244,1149020474,-1263984289,-1895623016,1860498484,-1141381825,-1690685358,-2114161593,-1822348894,-1191181187,215939972,1142900553,1367328040,1360610764,1068211218,893386376,-1159582857,-1377247929,2119981803,609922313,2067586464,-2041681993,1480124898,1854649003,105731745,-712799617,815405449,-1414703337,815759509,1055803209,745138734,-2097631055,-641585854,969072165,843421493,2052902603,-340426473,-343430038); -/*FRC*/Random.twister.import_mti(326); void (makeScript(14)); -/*FRC*/count=416; tryItOut("this.v2 = undefined;"); -/*FRC*/Random.twister.import_mti(337); void (makeScript(14)); -/*FRC*/count=417; tryItOut("\"use strict\"; print(new (/*wrap1*/(function(){ \"use strict\"; v0 = a0.length;return /*wrap2*/(function(){ var thsqba = ({get: 19, set: /*wrap3*/(function(){ var lksoap = /(.)|^(?![-\u00c6\\\u008c-\u0088\\r\\\u009b-\\\u0433\u009f])(?:([^\\\u3563-\\cB\\S\\ub888-\ufcd0\u00f9-\\\uc0ab]|\\W)|[^]*?)|Y[^][][^]|(?:\\S)/; (function (z = 20) { \"use strict\"; yield window } )(); }), enumerable: true}); var qoghpe = [z1,,]; return qoghpe;})()})())([]));g0.t0 = this.t2.subarray(8, 18);const d = \"\\u2448\";"); -/*FRC*/Random.twister.import_mta(-2120517566,1126417717,546325469,-248993814,-1706733808,-2083649054,1523644688,-1510999121,-1634690278,1583381550,1194900812,2015878688,855196016,-1284860943,1345118379,1304276914,-1944648247,-1316043754,-66918670,-2048576550,1339735359,-1032362524,208612330,-2128153339,891259092,1532123244,665756804,358226519,75031976,-734868300,490821093,-1110813395,1305848498,27752647,445844808,1219062834,-2061099651,-293918151,986014079,1192838284,517537354,1790414586,504571084,2047468164,-908495468,-815547110,1819074473,-919675258,697688208,1589178753,-1973904954,-567178599,1885027160,1411883293,-1777215431,-939052883,-443024738,653872650,274309577,-1075906568,-989887984,-377915834,-2141377714,320580648,-2093723203,1319275189,1853163829,299098737,296229369,-318264681,897587245,470674142,1499133169,-413434070,-187176808,-606136312,1860937935,-1199708698,947975145,1641769190,-1059864420,-1210937904,-1967959004,1709975860,1363087842,293831069,-402922480,-1783100568,390856043,2133190311,-665657723,-1672671379,1620854931,-1000553276,-328434247,-345708826,-774167858,-1264759585,-1049370236,-914007130,-2138321153,1594159225,-1380754859,964648468,-611049231,1332989728,-1843044230,-1271264583,2119488460,-1732440090,-1493483837,500063253,1291377966,-1800690491,-53696292,-1060179893,-439295535,1723144596,1417208598,394371437,1513132255,-626090029,-449918696,1207821410,631860710,-499400944,-1804510745,-1685633615,-504787827,713288071,1962542174,113070828,-44872187,-593935573,-394885405,-424233277,-2074539061,1217613270,622730928,1592611998,-1657864300,2075818537,-994615642,2041115475,-1936913476,-183713387,32446969,350087440,-298387925,-965802434,-1797689758,-391202688,-1294432378,332824537,44408090,-1334773086,-725326305,876104753,-2093104403,1488439286,-496834209,-88880582,-1581133096,1254203167,1674108225,1470527824,-1691077522,1737233543,1405091108,-1200807146,675291890,-2055402571,-1800610247,-1598139907,1023651847,-494413694,1444876339,178051818,-721765744,267616156,-1165952365,-964636553,1947970816,1606465054,-162770547,-1678872282,1565873064,-1952893319,-1655801133,-1510925813,-1694033923,1075220753,-545000453,179958656,-1605028048,1979215737,915555624,118245003,1386664185,-1223587474,-2140619136,-1618413785,1318122432,1257738921,507601164,454744549,-598776383,1903296220,-414114163,955551972,886460778,-2084001641,-716540741,1322282044,-98355441,1093185654,-186428481,-1337088485,114447219,1932042099,1083255922,1335488265,-1787159510,609013214,402663341,1714236356,1673601599,-766962212,2036497605,-79400425,68744885,-786305650,-1165991254,-37879135,495109880,-1114390228,-2045167903,1760180476,-2008236272,-1270723359,-1338366803,1117067385,123349605,1552290290,1501522731,433644406,250572671,1209080585,59644694,-1261371885,-819823399,-1098465510,-757745457,-553549573,-948065559,-1189056877,592794323,-1642435658,-2056462533,-1052514014,-235222701,-455014119,127339254,6851609,-1545855834,633803920,-11585763,-305541537,1457377174,-589426883,-253319520,-993552879,445678410,204649642,-1128192060,1048977842,334943073,1803637883,296412138,2129440483,1107884779,1291612163,-964303696,-1815004884,-1721250408,1257977825,60208648,1007505791,835131175,548124312,864170647,-971797480,-1660109075,1066161178,-1919858875,1236437352,733678369,934040354,-1072538349,-1562041367,-745996156,745290968,410669707,-1599143479,-313366845,113450315,1300142694,-244389524,-1778790594,6660527,-1628377431,-490380782,-1125766171,1324663313,-1674606053,-462935879,16292582,-2078611748,-1347929902,119033840,-9439828,-1591525514,493419877,-448751089,2069661625,1057623724,-1674092414,-148894063,-1545016320,-496188937,425263407,-1277763451,232799471,1278147558,1413782836,-486629356,1667262855,1173628327,-1170129564,2003748917,-235630721,158759440,836498447,-1275819227,-2067081654,264821691,-732682587,-734571006,1178508018,-460975872,-299090784,-1090106351,-982713628,1927240634,1273321798,-1250029246,-1509099187,-493287640,-1106552770,-745601456,-1328967169,-1546209454,350222414,-910302658,-1719672196,165174680,561833819,-1209161003,-1567391770,840978105,503641660,-1478485004,1261255586,131529809,-1339667023,1314151356,1988744628,499747752,-466041215,-1011611580,-1650737422,1907501793,-1503417043,797061636,632833758,-1538653318,1028457750,-1449643155,-2061612510,426057562,-1855140712,-1833775557,-1822750903,-1310164760,1474135537,-1812871616,1944315123,-1997924699,-1507035575,-1691722951,1454453765,-1657547015,161122008,915269527,662866445,1046060990,1066938830,-1748912054,-1761562283,-2047439984,-615914863,953538523,1800534259,-755638838,2134569296,-1946877957,1622396619,-783317258,1411018400,537528643,-1878709336,1222446561,863837561,1537957201,-1821409735,-1989871675,-1179819725,1673740676,-218947423,368132051,-789286374,1754709512,-1962199667,1219179717,1771799420,1247819056,-824835169,-1452062755,-385512457,1179658723,436581025,1748169125,1392764517,1446418343,1892775456,-1017474320,1869137822,237012997,259741932,1144821932,1553365083,111013300,-1671469085,2130009837,-318186007,-22718452,1792177288,-1606178361,-1918620107,51740913,806501265,-1416111143,-1370940411,-476455570,1140940806,-881240628,1341431530,-1038327985,1170835927,-1230946455,1945056304,-2110911730,1884412287,224914950,1064465379,1124214204,-1552896750,647459210,319870296,870458409,-2030908136,-22482935,-42520603,-1349053751,2110516488,1456445215,531241777,831820220,-1987830458,-1150766000,154171072,1896260394,-1265155445,1075149669,-1162966761,2144495318,592895748,774298088,796488395,-933991231,-1634099863,1297446848,2021861295,-1805608021,-1282160373,-1760281651,-967805254,2074506153,-1724744501,1949079407,-2127780056,1431421521,-1760235207,53764393,-1786106468,678515153,701040143,-750934220,-453342043,-1201286596,-2033865877,1692216304,-461233324,1883731746,-1099863826,1507983824,1561724799,-438480991,-1179928625,-2026259215,-933724608,-1166424572,873628861,-404178212,1705974748,-861622710,-714065597,547478470,-1747297652,-175026729,567169687,1792245495,846654713,-1460118455,-267135272,1402208524,2128138837,-1362969999,-378563419,-844297527,-908609153,-340358885,-455455295,-984439938,-1230815903,23402720,-224707969,-1939319754,586893611,-1476078043,-31185824,1175523948,-1603765437,1752571983,1312748827,1772280221,-792955595,-2055763352,459526113,-77850716,-434718477,-1704774152,1498365486,-1758129408,1464889882,-1319187203,1944652651,1661626573,1514072087,-574091995,-2126462353,167911774,1036314054,-1456239601,-955398147,-380565664,-240037171,865448335,-464045026,1672315476,1296998526,-723322283,-802236572,1758229386,1919227956,-453246428,-1993908798,918230184,-1888700142,1425601963,491324181,878700757,-2119662144,-1867560930,-1762890253,-643389359,1503365952,-242759165,-536919189,1011725986,-1672787996,-453117243,680794158,-66423421,803708950,-1825915083,-2129528867,-41035207,1465586166,326204428,365866834,-82840155,-432926603,858675410); -/*FRC*/Random.twister.import_mti(605); void (makeScript(14)); -/*FRC*/count=418; tryItOut("a1.push(t1, b0, this.i0);"); -/*FRC*/Random.twister.import_mta(1886602464,795666296,-1547826996,462656397,-590032376,1693645392,-1116558689,1758119808,1365877161,470052712,-1412278438,-1904471571,88830647,710353435,504037378,-195900728,-1976385599,20677161,-922327530,-1638522741,-260819964,305003349,-1181629666,-896864318,1702109655,548032315,-938549083,-1856828179,-1552051809,1845852958,-466691123,-1810237960,-1943391377,-574753602,1287784465,277908460,-1499590394,-1376681188,1777112950,-1044742982,-1675067232,-435414639,2069158049,1055459435,260255528,-1136838290,1923217636,605783656,1963875055,1782877053,-131007082,2002175296,-148375299,-829021032,-74005187,-292250964,764017128,2083306962,-515234832,145601920,-721480988,-846546030,1251497701,-1467964528,1439575644,8071232,1920507017,-706880475,1693593688,-1942216157,-870667744,-261340304,-2062778116,159694972,-272529654,-1641235001,291052789,-96814392,1945080271,-2095493796,2105423714,1447657290,1091842227,-1368570391,1868660760,-829760019,-448063619,-1352227998,-262810477,-1433680724,-423975211,1623362000,-1723410894,-435226429,78958681,-595930132,-2091684395,-635995691,454085381,-98858844,-659812085,-1599574210,-1796488245,710622670,720146512,1905366930,1467297320,-860249875,-1689600962,203774212,-1404441220,-1085402532,-411961902,-11865274,-1405220181,2096378126,1886318051,-1078567913,-1162268232,-1646657857,1734498306,-1771182039,-610590707,-1810817640,1438708856,934428536,-1534302939,1468866167,-1783937588,1735066960,-427563305,504012818,1887284667,627805678,1344941498,-281628281,-2086593481,1998591108,-472775675,-605600119,-999008755,-1249774113,273515681,663279433,-1990349086,-343289638,-1567184703,1577065746,816022035,884237668,-627710415,-1341925530,491685370,-930777102,-208735158,397463057,105264569,775253192,1832844059,1520631311,-248401621,1914413127,1416407413,1456011807,1841442500,-1376624268,-2101830957,1742801801,1972652054,-2070125492,516013933,-935522270,839618437,564121647,-1423910471,-1421343000,-1837400459,2100113234,-156798157,-140392707,-1723682775,540229271,-232237526,594434678,1207245261,1399737362,905422828,279071307,580991674,624585196,-896120360,1386116412,653360020,1566850022,924220726,-882379280,-230498288,-1036074857,-9124205,-921501054,-529014812,-400244494,-393507808,308917139,-1596312328,914851839,-401098896,1011634794,-2049122269,1139844085,1768631959,743623145,1529184444,944925884,-2073451778,-1947401938,1025775185,-175752848,867582035,-1587977756,1128897890,1575362531,1096227555,-2134504357,-937861049,1322922421,436916796,-1781872035,-1949929812,2025505609,855860554,-2120948899,-2094707745,-206321181,1979918102,-1955755514,1752265494,-1342961454,1297450818,-1000419266,-770367752,-2068929041,-636370383,1065728651,232256402,1467572598,592846288,-239912561,-1857211261,1191726509,-1781944241,-1793700497,-702398567,850953486,1422625659,1809811497,1627934405,1066402959,-189267607,1843390233,918929645,252284266,-1985184449,-1217388715,-15595180,-817644505,777399114,-146380949,1366011600,52923377,-981306436,1120628365,-1172020421,1824615174,2069403313,-436370560,-963866209,-253391773,-785898770,1328231767,1910549574,-657180827,-1485044166,1631199012,-2141612291,-528385804,-1885098528,1427384744,-572563234,-900595855,-1953929828,-2109685259,1606222413,-306671628,-1325098863,-400095977,-1746269262,1964717174,940991067,-322436930,1605557776,2062818960,393448956,-17260725,542344370,1431362812,-1146209814,931320061,-1888280766,-681248968,-552602400,-1474681547,821562426,1918132911,1146750945,-1339450912,-1467566142,-1318143300,592358952,-1494143772,-1231067272,-754442700,2010263092,1744150230,-980255101,353073988,411254579,-1990695157,1217838874,1095758723,-1430717101,-183222536,1468459617,2102878386,-37293849,1945253922,-1210582264,-1318489138,1576126105,1182991026,-1141780914,769343603,-66665405,839616198,1633321237,161190453,-138259010,75306363,-1540431703,-1400029603,1385859919,930515210,1323143845,-2122397306,1295128278,1604684213,371689156,-1182381368,2009932602,-1324231269,1954600519,440783261,-873971560,-820056823,869022280,1784989559,1494819644,-1791104514,1972986460,525336511,880335539,-322227405,1902779949,596459206,959066316,199715017,978362544,1904293294,-774253756,1401117315,693424733,2042073603,1081202451,345642710,1007709557,865630608,-681158810,-1279355846,1051275242,1557843769,-2036781603,-1117315649,-184132352,1885268212,1847191721,-1788015952,434233281,-723569514,480284001,-1067735720,-1240560756,-269641003,688276988,414354348,1644290189,-378836012,-62842152,1271552092,1657305951,109320125,-435420860,-346729109,2048172791,1248517956,-1940880023,-873435904,228436631,-1600422264,-611073726,787738176,-1610478135,-1214233771,2142956423,1660809171,528747434,984270549,-1192058304,1074200427,1003810756,-1057901267,1713564823,1012342497,-874861246,-589662514,427575538,1002393907,-1908297532,-2065605709,-697143865,-818943693,-1790729039,887152915,973011490,88911169,-735350776,1140990876,1061262649,1156854036,2146980789,-166423023,-2088174975,1597924201,-1465373156,-1249506281,-359111077,-22063896,-241981579,-321273201,1494651898,35972808,2138084560,-1204872757,-90086223,175227669,-1974951372,716163127,2086162246,704211660,116820612,-1545185239,1049804556,-319311886,1372231285,-1511549698,-802018479,-2131402230,339998056,-1673405725,368045988,-715433707,-723235371,-1283937194,-1524846190,535672897,-1912635425,1650834478,1964355527,839372366,1388173122,-852212129,-1879880000,2085689550,910274890,-1442193634,-2001775616,1086374226,339011333,1261861382,-1447886,1818238288,174837990,-569264711,1992654474,105760197,577184090,-1308616269,-1410286500,-462347524,1003146253,-1477814866,-1835381037,316366526,940832959,-2056864978,-1742458465,1345540870,-472961813,1627165457,-562943765,-2049480921,-1613358580,-2092594885,-1878737274,-1999454267,434779294,-1886006981,1194203057,-1703955160,-1604292553,1935651548,-1547404215,-481135053,1722057106,-914770940,298878936,2093200188,-2026628389,-723330650,1272591105,-115894866,-566924021,-999702206,1029506843,-795910994,-660293062,-2060814371,681099523,1528831477,752233359,-1976483244,-1960416636,787998908,2007116539,-623242916,-907351173,-388787462,125557144,1657661721,2015290677,680851537,509602180,1962573209,-1631479590,163590490,481341407,-324580132,70829958,1867028833,276122529,369436901,2134514746,234692098,33627061,-1670746957,-2049260582,1154667971,67156708,-426946661,-2137374905,-1753922739,-998254295,1406166069,-768278675,-324413979,-852571784,-1776469373,1909702019,1185630280,1804800183,-313585497,2087133436,1541100026,503512754,1613475622,-1488721684,822791357,1142060523,869172794,532674873,-423219336,-1599440269,972976684,1135660230,-399628650,-2074422951,-1122756892,-230158499,-542915785,663832914,1314157793,-1287317,1750753634,-1802112114,-2137684115,589527935,-416717605,-1156279558,-315316954,-1260411975,-2028887,-724458759,-2079829940,-856021287,567836081); -/*FRC*/Random.twister.import_mti(8); void (makeScript(14)); -/*FRC*/count=419; tryItOut("a1.sort((function() { Array.prototype.forEach.apply(a0, [(function() { v0 = Object.prototype.isPrototypeOf.call(m0, o0.b1); return s1; }), (void version(180)), p1]); return o1.b2; }));"); -/*FRC*/Random.twister.import_mti(68); void (makeScript(14)); -/*FRC*/count=420; tryItOut("print(Math.imul(x, window+=({a2:z2})));function w(w, \u3056, y, x = (objectEmulatingUndefined)( '' , /x/ ), x, b, b = new RegExp(\"((?:(?=^)))+?\", \"i\"), x, x, eval, getter, y, a, y = /(?=(?!(?=\\1))|(.^[\\cT]{2,}(?:^))*)/im, x = false, \u3056, NaN = /x/ , x, x, x, x, NaN = true)(x.throw(null))window; \"\" ;"); -/*FRC*/Random.twister.import_mta(-1016510678,226461959,345693249,-1738218872,-1651185667,-1363697556,1826089068,-742555514,-412525472,-374853259,-1778589579,-1184533797,-1968753041,-385253051,-780390385,-1509601848,-1811960177,-1462520222,500419994,1973923989,1887777789,-950329139,1270258081,1269870077,1056822295,-1028314358,-1285760646,-684559430,1302887258,334331769,168428951,-456571220,-1372631182,-1723115456,874470167,-661281343,-1977436352,1837761353,459435886,-1068109676,1861216164,852537672,1230233049,-1836960987,721321380,1085146704,390164085,2007297440,-399976707,56224754,1063211956,-580706540,-1856011171,1732978880,678702655,-26422552,-1953475842,-633505885,-1158050264,-605278713,-1977835706,-1521350569,375699200,362251262,-1206743573,1519753770,-1181245992,-130958824,-1246139911,441784918,1372539764,1148242682,-417056745,158497929,988365262,-2140231472,-1728394854,818762601,-2122726236,1794961113,-1218091706,-1402124510,1533365054,-1554739751,221606527,1320258291,1214179824,1826432329,924868216,-1623176078,1114016422,1579072603,658213601,1419875891,1382838584,-287262849,1577767723,1546617181,2110588160,-513122465,459427225,747944200,961381303,522033358,-421953936,1568663966,-1189501588,1875017541,-200100559,-1110160670,-1143591982,1215444708,-665900019,1569586009,1822508601,-1725153647,62203386,-981948093,-2015945594,-1870790422,-222111782,716638258,-807409173,-180985808,-1734568313,457850059,2048688161,322934392,-64990317,-311995387,-714414815,22418997,1642755115,-1949209964,1304534575,-1099120810,-1293304250,-1187957499,-2009554777,2080801026,388666262,-1695268466,1943752405,-627328390,-1314051793,-182525020,-1081126361,1509805036,-1620032145,-1663401276,52557382,1651599730,-1368131155,-220131167,-64536725,-309755656,-843012296,1719477801,1552571682,-1494502958,-2100786715,-887094960,-1695009407,683605734,1644383523,1184195948,-482868159,645565396,-286687494,-766465809,1263931760,-797426500,-1614647251,-207437767,1482235254,-768338864,-486737126,662817436,-1509259678,-777432529,798777359,-1181871022,-960336266,2123228432,2053587516,-925946725,2112897055,-595700699,-2071982475,1419286895,803500758,2028711293,-1006826156,1743527527,2120788738,1730383546,-1740865614,1106328442,1434668540,875141657,1205659203,1811562281,922371694,-1329111025,-72023796,2008749950,-1240985693,532418967,1172633537,1609902281,1350702876,168003852,1383940799,-36140524,766304757,1393510521,-1168729131,-470750327,-142224343,-625976245,1523522056,226270743,1720368219,701866501,2054027337,-1040232505,-1305106368,-2037747588,-399878020,219901668,27665401,1158607565,1315370050,399932391,-703904379,-1823349269,-28166884,-212458540,-1689642300,-475154157,844522349,628908488,1624186962,-1793829050,-2089875751,209240946,-730424179,-1591010973,1037547204,-665128615,-1741472875,-857441532,-1679201907,3255320,2077558641,-467342105,-1792160287,-1453410820,187565567,742727643,-1630560523,-1446914729,438639284,-173296662,-1826394747,1279883979,1660843006,106574028,-1437875089,1804788743,1794061500,-1360724762,919516115,-1276799502,1163537504,308686573,-500982500,1472938691,603862368,-1448095106,-769031251,2076847394,-1896751750,313796959,-1434596391,-47687464,-1318700333,-1527566551,1500661552,1402996174,-843099173,1321516050,1816780240,2015191375,355108940,-28546016,1624801389,-724776314,1913965221,-1996663009,872969153,827361072,639260586,-925692989,442842391,-1666262959,-1472907656,-1327699225,-941671234,887271758,1850814364,1430877282,-292353157,-210019617,1959389625,1667433881,-940109524,331472306,1298541097,2087991645,1025874217,696608290,-585467884,-439657291,380255487,-393991610,2093931525,2133398036,-1791234026,-1256632895,1704429490,336771999,1674860999,519204288,372990804,-268875595,-446631163,1277589569,1798551485,-977810646,-1838617665,-878013241,-1070989838,-1441737297,1488834694,-1137297831,1263024776,2044532561,-436656189,1067064467,-292739915,653979402,469063688,478513994,-1511660931,-147615503,-240881311,-1366526788,-2133439449,-2103267369,536556165,1748352611,1090222349,-351296670,353101409,-1531694791,1989703165,1843798712,207294094,-252734637,1979093820,1343264486,-455574329,-1558558143,-989409449,-2108156617,-1541793773,734863332,-1833405204,600907868,1462921599,1159160893,-406549613,1254105437,2142313185,2000254609,-13304881,-576971248,2084951571,12325808,-284835610,411067299,1052381462,1295794378,751570572,990978501,-130075996,-1676744929,-262803952,-993708565,492617100,215629704,-563261050,1257552771,322207606,-668333298,-1270055423,-2014253697,600092499,-171675948,-1842348166,-1637506152,-302365895,-489639308,-1182375259,1531341793,1154819627,1110282871,798120541,1257552751,-1523282158,-1732415970,-816461428,-1744930201,-978523953,1241128156,-853387917,1513525665,-762686112,-589070086,937713568,-564635731,433466393,-88724518,-1687483951,1120153507,-2071120433,-1565290208,-191050422,-2116804552,1050692162,827563236,-928928250,-1874648111,-2114848185,1898819178,-120961855,-63208691,-1350670912,-1102679612,-549313682,1849290567,37026067,1584475058,-102901240,166411033,-494977156,1831692804,1142718889,1910423082,-1832302627,844318466,1331803326,-76127226,1057584912,-1520026265,-145683339,825042479,-1383596797,1065779156,-1552973633,1921187132,512428301,627522042,-514742170,2012630128,1332915447,-758854585,2134992721,1754529720,1502476851,693854136,853180440,182108881,-663983125,-1465097533,893843708,-1215204012,374556327,1574747604,-1954332787,-2013022944,1498256708,648665598,1715097701,962135858,1309268228,1427882149,-657132978,872111008,98959345,1043895077,-2008515376,-217051727,-675021115,1980132174,-610843904,381965684,1748961269,1588873932,1540982272,796690265,-6617777,1685885635,-857045334,-241344102,-1160315751,2072967025,-1792557218,597872854,-1598614259,1562957583,590185245,741186082,1242469060,-2004127326,-2050323061,-47121659,1224695390,-1359947439,544374789,1765244382,-1206779309,-522357356,-1900203143,1565360396,1586748829,-1833662781,1774370485,411110689,-1857045890,-1284515093,1260694478,-1415230415,-933472637,-2145191305,-924022920,-1304019919,748537608,-1735832234,-1297045269,-1267492515,-974576920,-2127357593,188799849,-695853862,494340498,-1064286729,-1722779800,1828433157,-1115167789,425439033,-1424404456,1915753525,2054544943,691000446,1796945733,56295088,1503703146,-4918289,-1393665362,-1061819005,722186463,161831781,-2101555857,-403080527,-1781265535,935889865,-196542861,-524155837,-328922737,368520468,409979612,-1758259747,2089441570,1631003193,-1577645069,-1288041983,-946174225,1053354355,-958264417,436902200,-1801328982,1698267531,-1402211271,-1218804572,-385298354,-484319361,1668514138,763752737,-1739945,-455169740,-1236334980,2134884448,1967592598,1922352029,-720867048,83545558,-80351598,1094326009,1055724012,1979441958,-1367669256,934147759,1996496034,567254894,1982218531,744661477,-25668056,-841322315,255355116,-742806209,-218779710,-645164751); -/*FRC*/Random.twister.import_mti(395); void (makeScript(14)); -/*FRC*/count=421; tryItOut("\"use strict\"; /*tLoop*/for (let z of /*MARR*/[new Number(1)]) { print(new RegExp(\"(?!\\\\2)\", \"gyim\")); }\n"); -/*FRC*/Random.twister.import_mti(464); void (makeScript(14)); -/*FRC*/count=422; tryItOut("\"use strict\"; /*RXUB*/var r = /[^]/g; var s = null; print(uneval(s.match(r))); "); -/*FRC*/Random.twister.import_mti(521); void (makeScript(14)); -/*FRC*/count=423; tryItOut("\"use asm\"; mathy1 = (function(x, y) { return (( ~ ((Math.atan2((((Math.fround(( + Math.exp(( + Math.sign(y))))) ? Math.fround(( + ((y >>> 0) < y))) : Math.fround(-0x080000001)) || Math.max((Math.exp(0) | 0), Math.min(y, y))) >>> 0), ( + (( ~ x) >>> 0))) | 0) | 0)) >>> 0); }); testMathyFunction(mathy1, [[], false, ({valueOf:function(){return '0';}}), 0, (new Number(0)), undefined, (new String('')), '', (new Boolean(true)), ({valueOf:function(){return 0;}}), NaN, (new Number(-0)), objectEmulatingUndefined(), '/0/', (new Boolean(false)), 1, -0, [0], '0', (function(){return 0;}), /0/, 0.1, true, ({toString:function(){return '0';}}), '\\0', null]); "); -/*FRC*/Random.twister.import_mta(1136235331,1662005487,-923319121,-895582547,1535242174,-1475959376,1663728576,1619054918,905356139,1740291812,1112204493,-6323013,407379625,1670993826,-848886404,1024271521,-1229362875,-143686552,-123927692,-442560758,-125259058,-750672302,-165388978,591582662,-1175979109,-1761893071,-60341318,-1552362142,-654044225,1362093927,1750217463,-2053246247,-1874449190,-186432780,1796879762,1556576185,360422049,-1764082074,1659820009,-201669091,-1143223932,1228772217,295537013,1809806480,285515724,1510582755,-1416538879,753738214,813783955,-412750565,-762704761,2128156465,-840702556,1383105710,1359971891,1207750764,-1436081988,-1532945124,-48915259,-1485737761,-1500717328,254728745,2065006549,399028727,1595509271,1403681362,-2022786806,-52595917,-397627316,-541677105,320160594,119362007,-499650225,-1105518504,1924507988,1391881664,-469163887,-504542668,-1686074429,1421876820,-2064486442,317965006,-533657205,-2044726317,-1760876002,385217760,-1514348374,-1006877481,-1492368134,1417002415,26647462,-1664732408,-293288430,-1565194479,645619264,-1354740722,-1850300017,1490866917,-1864067006,-1699721449,1129421857,1568310090,1014339527,914964681,1351051242,-1799049626,502891212,1958876290,686575167,-2038671639,1929203206,-586145492,-1451620417,-192834109,-1159583538,-1102997582,-540510531,-1895757591,-1180540433,-1011378316,785740648,734067572,1496965326,1978789521,-1987741259,-2027195438,632443166,-317322286,1731226495,1987530692,613630144,-519908204,-1424462821,-543490099,1980310133,-513352336,625827785,1403638773,592363917,1426494550,-1613847036,-1993889536,902615068,1351720502,-908022983,-1913933310,-950294073,1592575211,-833635563,-1988330405,-2088859512,-1565750527,2029090265,1437304705,-1028171487,-1559662220,1795504812,621147640,-973880269,-988021313,-1526708897,1294261623,950325878,361690525,974200207,59630311,554521055,1291936082,-653315882,246431741,728162542,-1891026781,527246124,-1060973547,-374347861,1517669714,1516617259,-1850110370,371549049,1527941977,722436576,-1758869176,-1618676021,-782849903,-1466430586,-6333940,537169680,-1480397113,-1837900207,-1241173352,373779552,-429653947,-734636385,-103391714,698048101,-1732257421,96541750,-2035658041,877066615,1408111536,1339322420,2014225005,-1393626631,-2109738031,-1627184501,876851570,-1444317068,-826417239,-999889114,-45516138,33229136,1258553106,2144752627,-248262199,-982190139,710473933,-547540044,-1781905815,-710999660,457296935,-1277927887,1412806874,1077416296,-1425660905,1783544323,-1410368542,-1697732337,934068093,631080861,1361896844,1896986388,2092078495,988096668,-785946147,-1340042388,1256176101,504475406,267381167,390195437,-664035392,1898407750,-50293419,931598082,1845910262,-1319901743,1269759469,738341732,-1503434324,1717857825,590704731,1160833092,1830551426,-689736899,1485140189,140645326,177882512,92323225,-1261600553,179817963,103371647,957028480,638105800,1712500300,-975004484,1777742812,1402072598,-254288261,938908524,-1510190683,619320107,2091715299,-747931910,1140548378,-918797519,-1126791601,26252573,361299109,-1015736777,1779367438,1040159917,798331455,1450666126,-1750174692,642872719,-634048144,1018048883,1811961748,-902431384,654235854,-993892633,1890250750,1765631231,-156468694,-1912865492,-1006942941,19415205,-170865524,-216557857,-1704244601,557545584,-1498192960,1639481985,-275293954,808652485,1991415491,-811986689,-1784226824,-417468023,1216518761,-686186939,-1397011998,961159036,-163518128,1188078761,1799714500,-2064135060,496325494,-1104331155,1005887353,1763621465,-1233669120,150364746,1152209547,1139476271,1822345158,2005616287,-1524316643,1238131754,-1627482763,1321096222,-1517769255,-127534122,-1682073466,384054118,-633995257,-1017870494,2036849174,-563337977,-3423047,2034680511,140275583,-621357513,1916882362,-1281974530,135439130,-603554645,1716628483,-2061414314,-318421534,-143146421,646748436,-2071997007,-1989560713,-1371008769,260535157,-2031426800,556889498,-34548212,962278304,2112701830,1921552419,-813945300,-723448639,-155182042,-654607434,-1056289876,1677034762,-1713168061,676909174,1329043842,2023347525,1652827525,1164847101,1020296883,-2033680721,88737731,-593824855,-1977437442,-213640401,-899616327,-299334336,1750969399,1600246021,-841677053,-2020475281,1667303691,-1412042057,1110056585,1299895471,254161413,-1060735853,625743108,622051970,929781401,-914275985,-451892860,-641729363,1397495782,1948455561,1371766250,-961557551,-963031192,-1509482420,1409253776,-1112765479,-720638810,-2115875527,-471505258,-1379140062,-695006858,-1637582499,1198365381,-1896414410,-439415139,1399417832,689044891,236669820,-1735986799,1511451949,-961801962,-1249318639,1311881891,1246254239,-31467378,-497591127,-1948294383,-1476531265,1720801924,377446928,-149103063,874211544,1256227928,152609951,2102676547,920090791,1596509470,-1408191994,2075488245,199880462,545683154,-375775301,-517726010,-76424710,112033352,-312700580,1894945579,-61555330,-462721839,186023992,798556383,1158833003,-228821419,-2066223557,-1507834869,-363752914,346167331,666521742,-904444129,1146997386,-1433846867,-2012296612,-1752151757,2003078118,1100289158,-2074851389,-169746936,435534856,-18077416,-1564235073,-1086816382,390538344,656331144,1495097616,480962391,-577220716,-657094523,-1822447961,-1550259405,1498546270,1663909627,1277746945,286217154,-1761635289,-1329710925,2039677289,1343533461,501344725,-349566196,149349922,-86277803,-2115811796,89192830,1086653161,1522681494,727324917,-2097627865,-1754315866,1355248580,-1969824982,-671011779,1328069244,-1192052697,-519036134,-413027560,-1200217200,1204117390,1990049303,-2105368294,2033012200,-1170032868,-1461221636,2096104200,-677852979,1249187009,-1292153435,-493021603,537767296,2050568273,954993812,2147434611,2053580404,1264923762,389975476,-791181842,-145609202,1099349149,-961825491,-1026765585,-272081162,648456227,78164010,-206362827,-1074484683,1274081947,-1984220913,-20724616,1196125691,1095935591,-1409144525,-18402193,-2039482109,248980259,137222827,-525088536,1731523465,1602411717,-1456139106,-533112956,78824673,-2063747551,-2133165218,241850034,-1373996301,2039225206,1653566023,-800779844,-134298054,-383740307,386964875,477551024,-1019128795,-809850869,591674791,-581597730,-889467080,1397682116,2028715495,613168970,2082742047,607543533,1254414560,-996160598,1104961990,-33064341,1876254161,1055387901,899364720,-2053089550,1830184783,1716748911,-457996683,61904411,343660833,1601460491,1415837647,-1331165562,-1116147623,-2008194165,152103498,1855502801,-1144696646,-760510237,715013046,-322383927,-1035050223,1557968977,-1481652510,153097704,-313627190,-476828023,1321151017,-571474543,2060838899,-432440862,710960111,-641719389,-2011326638,-743280119,-1849157740,1075272179,-148310384,-1867744109,-1581301117,-1873412890,1389220158,-278838047,-2145398232,-368761,-626418303,1653602036,-2017513255,-1325689202,282972611,560694739); -/*FRC*/Random.twister.import_mti(93); void (makeScript(14)); -/*FRC*/count=424; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return Math.min(Math.fround(Math.round(Math.fround((x % ( + Math.abs(( - ( ~ y)))))))), ( + ( + Math.fround(Math.ceil(Math.fround(( + (Math.pow((y >>> 0), (Math.fround((y | 0)) | 0)) >>> 0)))))))); }); testMathyFunction(mathy0, [0, -Number.MIN_VALUE, 0x0ffffffff, 42, 0x100000000, 1/0, 0x100000001, -0x0ffffffff, 0/0, 0x080000001, -0x100000000, Math.PI, -0x07fffffff, 1, -0x080000000, -Number.MAX_VALUE, -0x080000001, Number.MIN_VALUE, 0x080000000, -0, Number.MAX_VALUE, 0x100000001, -1/0, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(258); void (makeScript(14)); -/*FRC*/count=425; tryItOut("mathy2 = (function(x, y) { return Math.sqrt(Math.max((Math.imul((Math.asinh(( + ( ! ( + y)))) >>> 0), (mathy1(( ! ( + Math.imul(0/0, ( + x)))), 0x100000001) >>> 0)) >>> 0), ((( + Math.cos((y >>> 0))) & y) >>> 0))); }); testMathyFunction(mathy2, [0x080000001, 0x0ffffffff, -Number.MIN_VALUE, 0x100000001, -0x080000001, 0x100000001, 0/0, -0x080000000, 1, -1/0, 0x080000000, 0x100000000, Math.PI, 0x07fffffff, 0, -0x07fffffff, -0, -0x0ffffffff, Number.MAX_VALUE, -0x100000000, 42, 1/0, Number.MIN_VALUE, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(429); void (makeScript(14)); -/*FRC*/count=426; tryItOut("testMathyFunction(mathy5, [0x080000001, Math.PI, 42, 0x07fffffff, 0x100000001, -0x100000000, -0, -0x080000001, -0x0ffffffff, 0x0ffffffff, -0x07fffffff, 0, -1/0, 0x100000000, -Number.MAX_VALUE, 1/0, -Number.MIN_VALUE, Number.MIN_VALUE, 0x100000001, Number.MAX_VALUE, 0x080000000, 0/0, 1, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(461); void (makeScript(14)); -/*FRC*/count=427; tryItOut("mathy0 = (function(x, y) { return Math.min(( + ( - Math.atan2(( - 0), Math.fround(( + Math.hypot((( ~ (y | 0)) >>> 0), x)))))), ( ! ( ~ ( ~ y)))); }); testMathyFunction(mathy0, [0x080000001, -1/0, 0x100000001, 42, -0x080000001, Number.MAX_VALUE, 1, Number.MIN_VALUE, Math.PI, 0x100000000, 0x07fffffff, -0x100000000, 1/0, -Number.MAX_VALUE, 0, 0/0, -0x07fffffff, 0x100000001, 0x0ffffffff, -0x0ffffffff, -0, 0x080000000, -0x080000000, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mti(607); void (makeScript(14)); -/*FRC*/count=428; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return mathy0((( ! (( + Math.sign(( + x))) | 0)) != (Math.asin(Math.fround((Math.round(( + (mathy1(x, (x | 0)) >>> 0))) || 0))) >>> 0)), (( + ((( ~ y) | 0) | 0)) | 0)); }); testMathyFunction(mathy5, [-1/0, 0x080000001, -Number.MAX_VALUE, -Number.MIN_VALUE, Number.MIN_VALUE, 0x0ffffffff, 1, 1/0, Math.PI, -0x080000000, 0x080000000, -0, 0/0, -0x07fffffff, 0x100000001, 0, 0x100000000, -0x080000001, 0x07fffffff, 0x100000001, -0x100000000, 42, -0x0ffffffff, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mta(-70467762,-917503999,-1383796125,-1418773490,-761651792,-678290004,1673521459,1046440627,-422136876,969904000,1159861268,2028421545,-413162841,-1193804829,-2132559798,212010827,-1636250455,791145042,1541306910,1918833179,-249158984,553960330,-1760723979,812884995,-1673209628,880538946,-1348226497,400418217,2051022973,182207003,-44625097,1583117437,-1922203821,1100378641,-41185445,-1699882736,1983468400,-559373428,-2285873,-235055420,-2044520810,-1708156053,359255194,-518500259,1428702440,2008138661,1356590779,1813285962,-632760967,202968034,34559894,770142954,1184973448,-191033171,-777904541,-1847296411,-193934715,231992467,-569241453,1962688502,344496852,-522205761,946197385,1049280392,-1102744550,1960040291,-1494016576,-260956187,53623344,1350507937,1684681004,181461703,-533336146,1847455938,241559400,-233750137,1817985613,156285610,-1296726097,-1859743412,-354350508,-264096700,-1188399155,128797198,1517660594,-2078153614,1212721671,706028308,-1557733475,489333766,-448195960,2141488427,847884802,-757143284,317775737,-1860770063,-1348165829,589845716,1453861491,1875852649,2121937505,228892694,1515011206,1735068041,-1299124460,-1343430020,-587155111,889762896,-571227099,266541332,-1408585332,-1265041688,1493880098,-174681445,600885457,561267532,-1795350422,1998769549,-2092507673,2003244084,1876512235,342949107,-602994716,-408081807,149982619,1172809019,-430145529,499297134,2059213695,-723380915,-229792091,592238628,-798791910,-425422385,-1023391347,1952101646,-80958530,18145558,-733966765,1219247865,96563943,-152813251,-693109900,999758912,1210251810,-225919337,382540354,-652501284,-2110500297,-393588518,677880539,-507326766,924894526,948528913,1609494024,-610736219,1796137354,-646039423,734027708,1014387786,381306889,188937392,-1883696223,1195469373,1467279783,-1429592681,-69913225,-428058797,-1927397147,1834536336,-1172300860,865242761,-1654670792,-1491362838,-1448792829,-169472500,-153371324,-1110483790,-1973025394,538769280,-1909149098,-1143165707,-1745852680,-1325431882,2088712989,1148821161,-711090505,-2074957768,-341139510,-161790359,578278262,-100437542,309565150,1979731799,1207751813,1753134509,1989498485,23441269,1965797769,-2142896392,-1406143487,1647420905,998467518,-1741288525,-2016533208,1847679945,409937641,1213403260,-1486577944,-924838918,-164393600,925601458,-511311416,211434925,1552461866,-1911432359,1136160525,939676148,1003033133,16600559,-1780448278,-88763083,-301706208,1804655879,-1525929089,-994953829,-474649934,1879755871,-507088185,-1794364951,205440542,-806843906,1711872413,1001365637,-1036515682,-371301293,-1489974392,-678801219,1423085129,-1614016252,526320022,-618643509,1000352304,534351518,-738712453,1306485676,1634641613,454862199,-1449735304,-1248522281,117332930,775803301,-1053688333,-1416447016,311478113,-511127954,-1984810321,553927965,-1002410723,-1847004397,1385311861,-830285699,-1201891506,46287518,-144681849,1589526829,-1442440334,232099483,1364337185,-1304954572,-928126176,886437221,-903392542,-1749541565,-1244367333,1233394676,-1263849434,1997023377,-1441789853,-933020856,-542726934,-629857171,1539601533,-647343555,-896776971,-401458343,1374077250,1207432883,1538672147,1076929654,-1826833112,-2062333681,841886197,1577455502,703500136,970611830,-1325636079,-1336466256,1515020031,-211001778,-2016870051,967723799,855668282,-837961229,-1214971382,-127473069,2074138967,396949439,1120291769,-277359812,1527268784,1633017114,2118190841,2112491877,678348066,-303270362,-1691055121,565964267,-769431336,699557890,-1767516119,-1448163613,703321529,-1712587560,-2115680444,-583861854,187240316,-401750012,1794869785,-780019019,458880098,-11656361,-459342897,1762855301,1419966433,-1589630674,-1176650936,1256710927,1362308968,-1003730366,1105545567,1525706252,952044595,-789286425,-1071037689,1768340281,1979169823,425455386,-154948343,-1891021970,2090496118,-716380545,-1949622885,949455202,515365606,707109298,-367362485,-1361035403,498760423,1882169300,-1055226151,813203250,255507229,-1756293531,1636943040,-1514517290,-581624185,1374493404,-780169732,1944822025,-1814184355,-207791869,1978151185,-1935567414,45493730,896637756,-1382348379,-926081133,502925009,1077184414,-709951019,-380193195,1685771515,-1311855006,835063003,-1490938312,-999560239,-1458597247,-1780916883,919771447,367485119,1174210790,678903300,1176315167,-1795947631,2026442348,83805795,423174751,460533884,654372623,-1000915874,-89735899,-1676030268,1896171639,-682972447,1402966989,1374569675,-657371833,-795531186,1103817353,1245838859,2063907462,-1349080776,-1138152637,164816426,-324584844,1662029438,-697035457,-648709807,-775990647,-2012208423,-70234603,1467046378,-1632220930,-578638302,-1075972983,-217230406,-1492105975,-1061717470,1636750290,-1119467105,441108408,-914109129,-1710478747,1741125363,-1318270997,741479647,-205030905,661173723,1279508170,2080910798,556817623,-850959235,1964386211,-646731586,98782354,-339719336,-798243850,1953604997,1434834250,-877242638,2121231549,246064961,-1768053851,-1554812783,-233088384,688863929,1846551387,1134863607,571374771,-378587965,-1182121107,-921375216,1007835318,-1384464455,405295181,-1598421624,-684301290,-2068054006,1879291908,207021658,-9005837,-628973352,1336049927,-293678614,2033297652,2102512273,1784110061,-2036072953,2116887212,-1558900167,-2132296275,551510760,1819476676,-1878610680,1404578088,-1535248747,383868260,1793566728,-122866600,1080702497,1309304108,1944019558,648259543,-1784586025,451249138,-632012586,-840530251,-1042426972,-1380773924,315224463,-983799914,976536184,-393207314,350914390,139880375,-920491067,-1557134818,-950763549,263698179,-1491971143,2018021452,337641958,-778840241,-1347302078,196120787,-467366783,-1888830622,602167785,253606607,2075432375,577882546,296853121,-883592938,1235012129,-535808842,184715494,-265474522,-202002471,827600431,1859951286,1902634959,76948417,-428478193,1758008707,-1200927333,1456877776,-738074122,-2026965006,-1535227225,-1551290325,-1250912088,-575303086,1906721524,-1754123434,-960896361,1504625600,1307839110,853060908,1770448918,-555821183,266390242,-1577782247,-1553593728,-1070645030,285534468,1008279900,-908522888,-243970161,1547100418,-1748570785,-1677174291,-1880429631,-593470252,591434989,-196198076,-697675289,-419432945,-773591387,501047363,-222587854,-1597541404,-814893357,-1693081048,-1625249861,-334612815,-1919328233,-1827015922,2137888663,546991742,-532188496,-1920825687,-1667809816,1495479667,-1229702090,-636571116,-1392402738,-2053966852,-1640197371,316150592,1728864971,887019803,181836781,628793296,-1500776917,-1029149043,930851837,-1518696264,459275928,-1950411558,996072413,-422285628,107816909,1638107277,2099625629,1509215608,-1327165883,-1656026593,274049651,1609478067,1620058356,-133096123,-284628917,-1391656114,129466414,-707349383,-802748885,-507830624,884667292,-1298131273,509668952,1167219631,-244024230,957913540); -/*FRC*/Random.twister.import_mti(150); void (makeScript(14)); -/*FRC*/count=429; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return Math.max(mathy1(((mathy0(mathy1(Math.PI, Math.round(( + (x & y)))), (y == x)) >>> 0) < Math.tanh(((Math.tan(Math.fround((x <= (y >>> 0)))) < mathy0((( + (y | 0)) | 0), x)) >>> 0))), mathy1(Number.MAX_VALUE, ((Math.fround(( ! Math.fround((-0x0ffffffff , y)))) > 0) << (((-0 >>> 0) ** (Math.cbrt((x | 0)) >>> 0)) >>> 0)))), Math.fround(mathy0((Math.atan(( + Math.sqrt(((x | 0) + 0x07fffffff)))) || (mathy1((Math.acos(y) | 0), y) | 0)), (mathy0(( + mathy0(( + Math.fround((Math.fround(Math.sign(Math.fround(x))) * Math.fround(-Number.MIN_VALUE)))), ( + x))), (((x | 0) ? y : ( + (y * ( + y)))) | 0)) <= mathy0((( ~ (Math.fround(Math.hypot(0x100000001, (((y | 0) >= (-Number.MIN_VALUE | 0)) | 0))) | 0)) | 0), (Math.min(y, (mathy1(y, y) >>> 0)) >>> 0)))))); }); testMathyFunction(mathy2, [0x100000001, 0x080000001, 0x100000000, -1/0, 0/0, -0x100000000, -0x080000001, 1/0, 0x0ffffffff, 1, 0x080000000, -0x07fffffff, 42, -Number.MAX_VALUE, -0, 0x100000001, -0x0ffffffff, Number.MIN_VALUE, -Number.MIN_VALUE, -0x080000000, 0, Math.PI, Number.MAX_VALUE, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mta(-459697536,-726009454,1924624648,-1390792058,-1854950413,1959692930,-148746767,-467537141,259544077,1937723073,2108317004,2050116034,-2069256281,170926638,-1537373700,966950835,-340074902,608033573,1283457958,1535352610,-2030668550,1272673396,277753943,-2043523413,-1578257228,-643289046,1280314101,2041188035,599483739,1420716798,1362546664,1594455380,-1739761147,445333229,1461463856,-1298176881,-1252492381,-2128524981,-913150839,1864605588,668469101,1843155862,-439933381,379326394,-2082468390,2082612223,1125933446,1834971869,1139788131,-355999597,-963085693,1461781697,-154931773,980412700,-1349131440,-308645156,1232921907,357746695,-2006628997,592148435,-948473509,-2036400660,1028334455,-162689330,1525356547,-630365968,-584849509,-320626015,-1457557950,-1836114658,1263969706,-1264125987,118308965,191108590,1601602799,899952929,1259002962,1848419042,832757842,136400827,309739983,1128166718,1039894443,-1909471520,-2097721452,-571242700,2038010702,412971545,489519915,-1764130863,-264523986,1940091145,-775798562,-1877284542,-544627061,-1123705564,2000129469,670942513,-1274368615,2086791481,-885729602,-319074841,118373319,193037829,-1834346840,-843305461,-1307280442,-1558456933,1336404797,-551079165,-109281942,-1412359822,-1401663855,1878165262,1760735722,509514195,856293718,924455790,1879251657,1254136491,475690436,233036315,-440164568,-1497078875,-1718965264,-1147703715,-2051791711,-305465535,1399426767,-349377685,-1584709068,-607904684,-619784681,-1772876113,189447496,956331550,-1493204604,-605953419,1161159224,-851560068,1987801527,-327611832,-105528185,-2020061894,356284220,-1764548749,1563135386,1331735186,-1292055814,-1802132878,2098556399,1766379443,-322245823,-248930171,-1155266065,-730626852,382838303,-1781567740,255836961,-1370704505,-864522208,1872852608,-1499536189,628369747,275119097,1795735973,915851170,-54066112,-2099107956,-881173499,641597844,-548654151,1313910198,1063367276,-634096414,-1275041679,-973992847,-636246660,-1140830863,-1971111620,1476335019,882222315,2028318629,124805089,917960994,793854572,453665135,-1017023533,942383615,-63277195,-1198306543,-687515542,-1328511948,-570771370,-1712770286,-1466662904,-1128204107,85368368,-1031106063,-127606494,1298852499,111037767,514630108,2025441609,147616767,-1823341466,1166672051,1855451625,1032111237,-872626043,-958476986,546744983,-2136276550,1322547425,1712406582,400322322,-1324602444,-2091140633,1285595729,-623425570,99181797,1136187788,1583401195,-1779545288,-1094454851,-2136028925,-669692108,1299323708,121068985,883429895,-1964083591,2070122466,-267261409,-700559682,164000253,1558196681,-2118986176,-1899255113,1976844608,-888789140,-1096250092,-108159772,911128828,1531870344,1121086195,-448798689,-821723834,-1841491642,-2011610304,1408310710,136582822,410909330,-1939771962,-1676617318,1231972852,-26555181,-1658521425,-367113799,-1896498174,1745681888,-1530732020,187850903,-201440832,400613695,2004277506,-594452176,-1329469434,-1770412382,1959243532,-2121149525,-704756265,-1493982037,-1359569535,-2130777516,161316647,1505382768,139150340,1251528301,856725861,-1726955594,-832713739,1535076785,1479011101,-1254983786,-128752268,-527030822,-1715979179,1940185741,-1501122601,885358051,768383638,-1695237082,-177313993,-908812241,-267481958,678030741,-895185082,-1082607094,-1928275718,-572428268,-826572614,1190576114,-1951769337,281042263,-1961400556,-713409498,-1694661445,-1440885556,1954913440,1350542707,-1098569619,618626103,2047754073,1833890271,778782986,-910193149,1594636795,-651551934,662324488,1134042133,1573206764,309656712,-1309646008,935669279,1231337952,-241292761,1214713147,658613101,1563627618,1252180470,-1389484175,2045631376,540875286,21868777,-1279540980,323565209,593261147,-773461282,-1983431597,1435392737,1116385288,-307919060,-1356064257,-904523766,-626917843,-739216359,1181576486,-1103948897,1246199724,-1685149933,359309381,1164416482,-404968724,-1963996718,-120051816,-9699019,626279438,1985925016,-472656962,1653286308,-832032458,-1780527079,-1415557645,-701013020,-918764514,-1298670172,-1513573358,1589950281,210004499,1767091062,1734234468,-155132053,-1870408298,477141867,1440245516,1027210999,1778097508,-1428103592,1230146684,1595267956,478825328,1343345485,-862661651,-684060499,-2040634344,-201161194,1673776152,530345545,-1379890492,895870019,126528800,73295099,-787553291,-1511754059,-2136767626,429257826,1592688117,730306986,1438971105,1820013465,-616932319,-1808231552,1435139221,2002774494,718593093,234872779,1071853376,1068859788,-847748752,-993140609,988938914,561884606,-397580526,1608716922,-181211415,1235478208,1309199669,1295075174,651313649,1842357639,958017411,-229531673,-1479564169,-771641436,-1007627093,-1156827092,853832569,758208386,1985553582,-1727580724,899459733,-1257953861,1197253003,-1352594667,-282516797,-225083851,1796719961,207759220,112686578,-1095821475,-951785899,-642104617,-195048420,-1649016853,-1045815378,2034272253,-1293769179,-421984520,1769616169,2075911058,1943096761,547230402,317237262,280250275,880785020,-893882310,-1700220043,842306781,-211025564,1571733665,334749655,1833699061,48831890,235354435,1540829774,1703494532,-1600318105,-50950895,-2121514778,811977681,-33716690,798177951,468062275,-130411085,-291125956,800659159,-3014497,-1837278854,1735093188,82007045,1164687251,419551360,-934064719,-1792561621,-2084414163,96728983,595350354,-1850657272,929364667,180611599,820368297,1318676529,1455948292,588900530,-620009637,1508740967,2120884270,-1257198587,-265673915,2124076441,-1571759713,1418141211,1844593031,1111361455,-675590807,-1903616936,-930562375,889144539,-2052324625,-760843746,-921288784,-230464121,1364688546,-832513292,-1351345605,228350280,1936728146,-449444163,74633630,1371315507,-655604490,1642001157,230905118,929192585,-1888444335,-929981303,-436738297,776595337,-2024531910,-1128001444,-1317331345,273991211,2135454846,2006040229,790676190,535725256,2055165320,-49130604,-269948485,-1295902829,938917259,1085374499,-1318277255,1421156432,595483350,1269638376,1700927830,1151954042,649562243,127383639,1882540910,-1063881933,-1607651481,678473046,1875105775,1128235212,1850623178,1285304425,402041617,-1294541722,-700371776,1833305139,2098796787,-336295694,-339555716,2080023679,-1074196167,-1284245627,977504210,-1770925082,-1703564808,606049691,-1636129523,-1862955484,1362933784,-1786544264,-771596652,-204154031,1428857565,-671149132,1428568665,-1231832724,183839571,1041127957,458856082,-1252844327,541219930,410962027,-592225863,19844169,1431355318,1432303927,-1607822772,797310936,-1499975472,-835645646,2079256362,720481832,-216050426,1411647655,790277129,-1880734667,-1797223826,-832441611,-2045069084,-936854655,-2001146204,-844616042,-420596661,-52640873,1916415696,1758634210,-1568405583,538446863,-1400929110,1557903630,1169713939,1574425838,-2079924353,-1640065831,505801661,-1206272677,1159313536,1822602421); -/*FRC*/Random.twister.import_mti(141); void (makeScript(14)); -/*FRC*/count=430; tryItOut("testMathyFunction(mathy2, [-0x080000001, 0x07fffffff, 0x0ffffffff, -0x0ffffffff, Math.PI, -1/0, -0x07fffffff, Number.MIN_VALUE, 0x080000001, 1/0, 0x080000000, -Number.MIN_VALUE, 0x100000001, -0x080000000, 42, -Number.MAX_VALUE, 0, 0x100000001, Number.MAX_VALUE, -0, -0x100000000, 1, 0x100000000, 0/0]); "); -/*FRC*/Random.twister.import_mti(173); void (makeScript(14)); -/*FRC*/count=431; tryItOut("\"use strict\"; testMathyFunction(mathy5, [-Number.MAX_VALUE, 0x080000001, -0, 0x100000001, -0x0ffffffff, 1, 0x0ffffffff, Number.MAX_VALUE, 0x100000001, -1/0, 1/0, -0x080000001, 42, Number.MIN_VALUE, -0x100000000, 0x080000000, 0, Math.PI, -0x07fffffff, -0x080000000, -Number.MIN_VALUE, 0x100000000, 0/0, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(205); void (makeScript(14)); -/*FRC*/count=432; tryItOut("\"use strict\"; mathy4 = (function(x, y) { \"use strict\"; return (((Math.tan((Math.abs(((Math.atan2((Math.log2(Math.sin(y)) >>> 0), (x | 0)) | 0) >>> 0)) >>> 0)) | 0) >> Math.min(( + Math.tan(( + (Math.exp((Math.asin((y == 0x0ffffffff)) | 0)) | 0)))), ( + ( + (( + y) - ( + y)))))) | 0); }); testMathyFunction(mathy4, [-0x07fffffff, -0x100000000, -0x080000001, 0x080000000, 42, -0x080000000, 0x07fffffff, 0/0, -Number.MIN_VALUE, -0x0ffffffff, 0x100000001, Number.MAX_VALUE, -0, Number.MIN_VALUE, 0x100000000, 1/0, -1/0, 0x0ffffffff, 0, Math.PI, 1, 0x100000001, -Number.MAX_VALUE, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(400); void (makeScript(14)); -/*FRC*/count=433; tryItOut("\"use strict\"; t2 + '';"); -/*FRC*/Random.twister.import_mti(409); void (makeScript(14)); -/*FRC*/count=434; tryItOut("x.eval(\"/* no regression tests found */\");Object.defineProperty(this, \"v1\", { configurable: false, enumerable: false, get: function() { return o2.b2.byteLength; } });"); -/*FRC*/Random.twister.import_mti(470); void (makeScript(14)); -/*FRC*/count=435; tryItOut("mathy0 = (function(x, y) { return ((Math.min((Math.sign(Math.fround(Math.log10((Math.log2((y | 0)) | 0)))) | 0), (Math.tanh((( + (( + ((( - (y < (x | 0))) | 0) + ( + y))) | 0)) | 0)) | 0)) | 0) << Math.sin((( + (y >>> 0)) >>> 0))); }); "); -/*FRC*/Random.twister.import_mti(621); void (makeScript(14)); -/*FRC*/count=436; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mta(1104897379,748637285,2062953178,176502023,-295708991,-149689678,-1673027452,-195017060,-1387739020,20316646,44868973,1445200508,-2116685464,685557340,-459005256,-577763289,-1795862729,-747442374,1684154705,1299445576,685571420,-1214387963,-138300915,1777137113,-1635416078,1492062674,2010912794,1260771033,-1856303789,444535949,45477160,-478725773,1296702053,504545037,893527843,-2064110459,1996037999,317236312,-2063289857,-504138192,982257343,-1386457552,-169799552,-961224520,1050928119,-707658529,840103514,2035633088,-718551189,1218849723,339817543,-887917289,646715164,1679539217,1448291244,-279025080,-2095737985,-1455053794,34962188,538688263,1903946283,885071872,1720190918,-410066167,1081783949,-177185152,-511813428,257459567,751750411,-986298446,2142062112,1526878219,903332134,1263432838,-1404464432,1046707818,-819182398,-160123627,-1298071083,1877053607,-1277008923,-526509874,66369397,68161625,2012748570,-1259371498,6399992,341594215,-1750599520,1533117637,1902657107,528866004,1120837294,-970346445,270247587,-1269074939,-1443906827,1476821320,-1093285084,1542474609,1516616233,715492985,-497899964,-1425681717,-1420707391,888700004,-1967432259,694159400,940717318,-1271496692,1628948578,1251906936,-1520488039,-43030715,1684315569,1221754377,-705834173,243083136,-1309367102,2103253680,2060409711,915611146,-1680466882,-1809247986,-1524763404,-703465583,-661679626,2144131049,1678727651,-1254996451,1135339939,1943782382,1860610004,-186761013,215285028,1815590076,-2090205376,1304048578,963745910,-1739956852,-886122832,171621159,-250728178,2104002069,-758071483,-537302604,1929737497,973094827,31978961,-2099241090,-385500292,-1982181892,-435431222,-1263534266,-1431326371,1917668535,580328148,-1319860576,-854496560,141720794,994872105,-1649317457,2036627472,1199268323,-1043672002,1716681506,-711521582,-1431053894,-2024850782,-320466445,98393734,1567346953,-1983837488,-1217424503,-417918596,1703613418,-33792870,-1774965121,-792534042,552952990,1888926203,-263141936,1297058971,1316832968,-1589962662,-1636259013,-2034871517,-565905742,306616252,-452769523,1945920606,-2066015325,1876136034,430188095,18184499,1732402889,1829679296,517327095,-1308393565,-2074924356,-1330235308,-62323224,-244294436,-1301011159,-2041625082,1865235176,1612888798,30435961,1960734492,-338196473,82561794,-423906154,46026552,1093832395,1664915307,-1174269333,-121806813,1395090781,1907366625,-1639683650,2081142824,842927061,-1798721211,-666065988,1632004357,689119002,169589035,-616006816,-1346112071,-427187911,1999958774,1331663633,-1676882451,1101801637,1125707431,-1382964396,-547658654,2017887693,1940328906,-561924126,1410992174,-1081901370,-264817053,747948689,2028318698,65050610,74285035,1825594620,-563779618,-204228258,1708263568,-1732955887,384269599,325790944,-317194129,1187103195,-159874930,1171206953,-1754183805,1596681059,-1031585895,213714883,1442901189,1296200686,1017124032,-580631044,-1429232287,1089460537,882642746,102138548,214270514,-254796312,-1783723531,-271255274,1435001720,-787585687,-186450862,-1799239638,-946132276,-659930567,-1867728874,-481792259,-171486845,-12836411,-653347085,-675162631,-1061061986,-80736993,-139776466,1886276237,-353059558,-1547356727,143834696,-1720115583,-1033583750,161254056,-1702225225,958736989,905111553,1384776059,674573183,815008908,-284434402,-894961848,-1664505082,1725395799,988773057,-912216651,1370061480,-2051107940,-814276963,-738741143,457198630,391381885,-1450498119,1630098562,2012514660,584391895,-1488886783,1814823896,-820785545,149133063,1991332821,-1923226107,-104782716,1139735910,-782751208,1962684952,267710082,1842152739,-671924477,-1152437046,-1386867505,-1821983429,-104062021,-1330332428,-1664846493,-1124276588,-1185871657,-2078643811,-876763949,-1426447983,769226252,565550218,-24269485,-759033263,-78896224,535618745,-1570964132,1215036611,-1231365121,-1762418302,-1822026888,-1528593862,-1720555604,916814820,-1910693423,1916928124,43929916,1238548303,658069528,-1072927998,120325454,-403202737,351395088,1804976767,1847637751,1415861094,1049849500,-1029629508,-553625217,-1701751410,147428574,1508460191,-1114345457,890911587,-1752141742,-1918042814,-1504665530,-397476494,95397439,367880308,-2133265346,1639459032,-883571285,-1125085988,-1632306399,766299723,1577790289,2057383552,-597892287,1883575579,-1381437273,-1782133911,-428268661,825275527,-114959066,-1237871575,-228657126,1028953119,-42739127,349872105,1579476741,1906213479,163803461,-818711482,1060086872,1445628227,188646704,272010698,1589874711,-1793217581,-242671098,623350920,-1164638766,-1404419591,-1013192002,-107088775,725334463,-363448452,-1182508781,-872801321,239241499,-1778488758,1129567457,1920595648,-1832156803,-1952798205,-255156466,850835785,838731563,2095687196,-510324803,-1900111008,-510499396,-1738719889,-303653955,129004027,1625591783,-132870963,-1259921537,420704613,1842371905,-1737986060,-1232103812,-238421716,-316085566,-1849814685,266598940,875145030,-939283747,1748122882,-1203663852,270819861,-32226435,2074025180,647715720,1317204548,-1199553634,217944793,-301819136,1114398830,865767210,-223281851,1250042895,-85906522,972177845,349972573,2126064625,-825625228,-497686783,-333572332,-1493881356,1933548917,-1576769720,2021971790,-1158867485,375897458,63712204,-1386605047,535543968,1345918568,-1789221359,781262535,-1641646019,-2033226198,1475604583,3797531,-1865137637,-679823922,-217680087,398726594,-857165403,507684371,-1257132459,195632941,-2053741463,-304602289,378914811,495867365,480233156,-92671132,1763300961,1178069561,-746240506,987219279,467488907,192022974,-1977919502,-1857270181,521479129,-1314584158,-252594045,242468700,-1107418693,-837599737,-604112628,-1462905387,303287183,618961971,1889458140,-997889547,-1960503501,70974016,-999992122,-570315939,-1666825632,731850594,1861616802,784261110,461710466,-1553100487,-1005118246,763304878,-967315503,1821823084,-1153975722,562813599,329125759,-642538948,-1375439949,674611418,192136362,1716233231,117673635,-1779406678,1316533733,1161870057,-1843332109,1319892578,874409795,819921896,399944653,2142335280,1432613502,953404647,-762597944,1157683796,-1574675719,-965311825,2093813757,1581784861,-2058422131,-383446947,1476985972,1067790484,1152066176,-1768134854,-1581070238,1625531120,-357374312,1756909322,-1699162813,-1814921300,355293957,-883043818,-1467407948,1158101582,-1123276712,1627242123,-1079353716,1157645018,-1330977231,-2085492072,-236765489,1388281617,-588944475,-1872215013,429112825,763648661,1414574347,82089014,1012350355,2104274591,863819007,1130633481,-673591640,-426773508,1770774786,-2041810427,-955067302,-136039112,-886934842,-727897056,1890586717,-502474988,-1902450119,-271577915,-225724064,-104471722,1439791273,1126135468,1978939908,-2004141708,1136726732,-438325753,1414186231,1196899361,-1504514136,2075309478,281191707,-2064252981,-1637261822,1086381896); -/*FRC*/Random.twister.import_mti(6); void (makeScript(14)); -/*FRC*/count=437; tryItOut("\"use asm\"; testMathyFunction(mathy1, [(new String('')), [0], undefined, [], null, 1, (new Boolean(true)), objectEmulatingUndefined(), ({toString:function(){return '0';}}), 0.1, '\\0', 0, '/0/', false, (new Boolean(false)), NaN, '', ({valueOf:function(){return 0;}}), /0/, ({valueOf:function(){return '0';}}), (function(){return 0;}), true, -0, '0', (new Number(-0)), (new Number(0))]); "); -/*FRC*/Random.twister.import_mti(40); void (makeScript(14)); -/*FRC*/count=438; tryItOut("t2 = t2.subarray(2);"); -/*FRC*/Random.twister.import_mti(55); void (makeScript(14)); -/*FRC*/count=439; tryItOut("mathy0 = (function(x, y) { return ( ! (Math.tan((( + Math.atan2(( + ( ~ 0x080000001)), ( + ( + x)))) | 0)) | 0)); }); testMathyFunction(mathy0, [-0x07fffffff, -0x0ffffffff, -1/0, 0x100000001, Number.MIN_VALUE, 0x080000000, 0x0ffffffff, 0/0, 42, 0, 0x080000001, 0x100000001, -Number.MIN_VALUE, Math.PI, -0x080000001, 0x07fffffff, 0x100000000, Number.MAX_VALUE, -Number.MAX_VALUE, -0x080000000, 1, -0, -0x100000000, 1/0]); "); -/*FRC*/Random.twister.import_mti(149); void (makeScript(14)); -/*FRC*/count=440; tryItOut("\"use strict\"; /*MXX1*/o1 = g1.g2.Map.prototype.entries;"); -/*FRC*/Random.twister.import_mti(166); void (makeScript(14)); -/*FRC*/count=441; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return (( - (( + ( ! ( + (y & y)))) ? ( + (( + Math.imul(Math.log2(((x >>> 0) >= y)), Math.min(( + y), ( + y)))) >= ( + ((a | 0) + (( ! -0x0ffffffff) >>> 0))))) : Math.log(( + Math.log(y))))) < Math.fround(Math.hypot(Math.acosh((( - (( ~ ( + (( ! (x >>> 0)) >>> 0))) | 0)) >>> 0)), (( ! y) | 0)))); }); testMathyFunction(mathy1, [({toString:function(){return '0';}}), NaN, '', /0/, (new Number(0)), (new Boolean(true)), '0', 1, (new Number(-0)), '/0/', null, (new String('')), ({valueOf:function(){return '0';}}), 0.1, undefined, ({valueOf:function(){return 0;}}), -0, (function(){return 0;}), [], 0, '\\0', [0], true, false, objectEmulatingUndefined(), (new Boolean(false))]); "); -/*FRC*/Random.twister.import_mti(500); void (makeScript(14)); -/*FRC*/count=442; tryItOut("L: ;"); -/*FRC*/Random.twister.import_mti(526); void (makeScript(14)); -/*FRC*/count=443; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var ff = foreign.ff;\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n return +(((abs((~((0x528011f4)+((((0xbeb96706))|0) >= (((0xfc4b4a03) / (0x0)) | (-(0xfb328326)))))))|0) == (~~(d1))));\n }\n return f; })(this, {ff: XPCNativeWrapper}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mta(963674820,-819597961,-1591820733,1398047222,1867737776,268908359,195993897,1600591231,-1884785483,-1485748687,2100856957,198475140,1146679012,1821475147,1658658591,586888514,1285481237,1370268069,-1963738531,-671771632,2069606436,-908865434,128515407,-1228498198,-1483893954,900498710,694432249,-755572073,-1504785319,-1819183127,589923941,258417379,-1531488752,-1302879131,-409141119,65089749,-2016753332,2048429468,-391870857,698887229,287202019,437520295,-1689322351,1925078619,-1426898987,886646380,-1530738156,85116182,210918446,2113978430,759110455,1554379154,-1624454767,-483770613,1604126758,1623455092,1149677594,-1088487685,-224759424,-2027020734,1424122436,-1950072707,-1506651262,389509273,2027179822,1126540108,739512109,-974261675,-663091073,1176822437,-1604996985,1683147618,-345059529,-193909143,-1288722399,-2124214379,-1861388512,1650218877,-1770213438,974427342,1713942805,-616644439,911912698,605539629,1246680163,-714443283,-1112046037,-1779071891,1920408727,-162570351,268115825,-1313665716,1835457800,570627239,-1797185761,18340864,1916921527,-1434760249,-10909110,833358242,1635931308,666670297,-788263841,-801133829,-1610232490,-179517344,310898221,-812884859,550274377,1800844474,775766786,29130721,1995656486,-198189602,214206073,1125114365,1229804700,-1526434854,-1329745057,2140333156,-1283171632,536397200,1861227700,571485606,914694882,-412950584,-489414293,1869236456,1569732748,1685784174,309511829,1501910856,-1915138228,1575967248,-1787409561,-979115142,1268908623,-621861910,1622408874,-559886066,-39962669,723064824,1041191401,509910222,1204384768,-335950087,-498922747,-1627863916,-1803524331,989489243,28154903,-517662826,352061889,-129956046,-789506708,110962343,1729835616,871057174,2095772298,1445288067,-758063524,-560568591,2093187713,1546151394,761340556,-1350205980,-1132659584,464427301,-790722382,105221571,555827041,-1524478710,-1570972693,-1724289498,444450559,-1538852082,1103157324,2102143734,-1691918247,164285846,2100254886,1118002890,1203969519,-1355296095,-1825265768,1794735999,-325873215,-1195346671,-113874104,-1524934262,185432341,1853519304,-1201735339,-841826995,-1370682483,181429747,-351339973,-1284121615,21859415,-1887251838,-1733594872,288608108,1182715982,-2076870823,-2139969460,-80531543,1300081091,1256138707,1324327880,-856748104,-594684274,-1277911300,1079252204,-45644861,-954806458,-1868416310,2014329605,-502157469,-352478504,709826787,-952071916,893290453,395633784,-110550714,-1870892986,40645192,1835328248,-140916537,627674420,-628832456,-302778207,-128074599,-371616822,-1289066843,1236255957,-536492412,1113240584,1156251800,613721717,777382643,1934638632,-2083638031,-306585387,1894528224,1348266588,298694007,-509756818,1416168395,-1338372919,1967257863,596947645,1979096430,1008276326,-2032107247,681489061,-1653437410,1753112226,-1315334789,-101046387,486439171,1828820827,1435878972,624953634,-1717910740,1420472162,617341976,-791187330,189816190,421480189,-1658045048,1255559343,2032978928,1127439079,-838403160,-1264760963,1994596871,878715947,1324518993,-1443340207,-679832166,193378474,-1133113288,-2041227959,-1324786756,1308009688,-1829057329,1673439250,792196435,1794889188,-1823994609,-539141470,1016926218,-695100205,1294364304,-2128365823,1278719483,-2084649132,597980248,-736134400,1719462487,-331667409,-2069211090,-466553807,-546725213,-2009113079,302228093,-2016644405,251399233,-639530649,-924216981,-723212346,133100144,1204339852,813344040,-446616020,1233999909,2116903205,-2058150482,-945484640,-739800340,-8753157,917571114,-1632526371,245462261,-880003724,-671768762,1272058030,1719149549,-2007849321,1677009665,-1919405922,1873180654,636954146,-144093393,-1747582209,-140112089,891865072,-342001738,-625345552,-1977274480,945454537,1512586623,1406480312,-285003030,1433258541,-853826929,-1452529945,-1565907842,-490370258,-323630700,1768553831,2134256478,-1257038123,-1368583491,876147994,-1013573445,492439120,322825739,-463161296,-1639587008,2112450449,-689944128,1867554050,31124679,1982689802,-827648754,-191694659,-489193315,172596006,-930624119,1395406345,61718127,1577442665,1702986717,1568500218,-1622646980,2083264250,1384500276,-1795004113,-819762687,-222842104,-794988685,1983984331,-608608150,1838350712,-1430765627,-1711566983,1692269355,-473501263,-874167298,-1123917904,-1564612096,2087626895,1447615898,-633441351,-330537439,-1000933624,1477329772,1652602842,99452432,1247580429,-1402534494,92343010,-601239503,1523945685,-995052939,-1143522840,2024806974,1253578799,-240491205,1018279831,-336578917,946517307,-237432024,2012079410,-1728340457,1088230249,-946334443,1532063350,2106877187,824639609,1885667295,3100886,330277012,-1974919023,-1860109258,1397176156,-523354481,-782228713,-947297532,-1170103209,699440973,-1133747687,1035246365,-1611068997,-1592500535,373262234,1979130274,383150149,-2094060660,684100526,1760973113,-1667887824,592965691,-1695198219,-1670778951,-73883507,-2135854054,791303286,-1432518199,-1922023481,-1940081076,-747195491,-882478183,-1974057303,908337392,-37372390,-239871634,657179946,-556212662,-769894766,1348633408,1079314681,-1106045232,2040239435,-513460624,-1120711166,-721151217,-1532309941,94086026,115556202,52853926,-245708014,-257979958,673933420,876885735,1047668670,577939291,-95213899,1944908598,-1359214043,-1153740430,1395831714,-26881437,-218226066,185298785,-2048249647,-60619127,1042848987,-976518551,-763835955,-338278545,-220067890,1398216587,-678665673,-2099461098,1925750000,-1735130227,-287092259,1300019589,-214302182,1494817938,-856660028,497190696,-1970152407,1025407179,-758935227,243995475,1842907082,1356297338,-1445208211,-1400453050,-708628639,-464975856,-784934257,117778786,1579571002,266080186,-1209536820,-287377603,-160666955,1572441159,237684955,-1584632521,-710143703,-1706272208,867400166,-616551810,-1812645931,-369990032,1473764064,-365637532,1153183658,1039087100,2025284727,-998615988,19188987,1143148710,725033838,-1983754870,1684030789,-522662791,-476038403,-459008341,-1884608005,965863053,1750034247,1868735197,1373961499,498473123,382661889,1500500045,-399693858,1633937809,-484870847,-1592299405,24464939,92450109,-1785362842,-1030156029,1095102590,209309286,440154070,1496073674,-196087812,-118723920,-2123686899,1757092344,710536199,1720474868,-1688267409,-1053224877,-2064474791,2062695354,-2029728395,-1233052684,-1909041997,2012211531,-1774172988,-1429851757,-856869936,-1251658019,-2108756489,-56415768,-479534756,1394523453,1333358994,-1473773134,1495979093,-596609704,61384412,-250717156,1763046046,1948525085,1517108422,564493426,-1145031561,669632136,-1719453774,1032632132,510892353,955011225,-184104660,-1652773365,1669572542,1262988524,566484156,-1947045960,-1400922408,-2053030336,-97068228,1466506362,-1359109249,-132446689,-818242313,283845397,1900440881,-1372903324,-547049261,-318289187,-851799392,-1794450248,-1943271035,-655444374); -/*FRC*/Random.twister.import_mti(11); void (makeScript(14)); -/*FRC*/count=444; tryItOut("true;"); -/*FRC*/Random.twister.import_mti(32); void (makeScript(14)); -/*FRC*/count=445; tryItOut("mathy1 = (function(x, y) { return Math.fround(( + Math.fround(Math.fround(( - ( + Math.log((( + Math.acos(( + ((((y > ( ~ (y | 0))) | 0) * (Math.min((-Number.MIN_VALUE >>> 0), x) | 0)) | 0)))) | 0)))))))); }); "); -/*FRC*/Random.twister.import_mti(152); void (makeScript(14)); -/*FRC*/count=446; tryItOut("\"use strict\"; \"use asm\"; v1 = Object.prototype.isPrototypeOf.call(t1, b1);"); -/*FRC*/Random.twister.import_mti(167); void (makeScript(14)); -/*FRC*/count=447; tryItOut("m0.delete(a2);"); -/*FRC*/Random.twister.import_mti(180); void (makeScript(14)); -/*FRC*/count=448; tryItOut("\"use strict\"; testMathyFunction(mathy4, [0x07fffffff, -Number.MAX_VALUE, Number.MIN_VALUE, 0x100000000, 0/0, 1/0, -0x100000000, 0x100000001, -Number.MIN_VALUE, 42, 1, -0x080000000, -0, 0x080000000, -0x080000001, 0, 0x080000001, Math.PI, -0x0ffffffff, 0x100000001, Number.MAX_VALUE, -1/0, -0x07fffffff, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(212); void (makeScript(14)); -/*FRC*/count=449; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return (( ! Math.tan((Math.max(Math.sign(mathy1(Math.atan2(x, -0), x)), (((Math.max(Number.MAX_VALUE, 0x0ffffffff) | 0) * x) && y)) | 0))) >>> 0); }); testMathyFunction(mathy4, [-0, -0x100000000, 0, 0x0ffffffff, -1/0, 0x100000001, -0x07fffffff, Number.MAX_VALUE, 1/0, Math.PI, 0x080000001, Number.MIN_VALUE, 0x07fffffff, -Number.MIN_VALUE, -0x080000001, -0x080000000, 0x100000000, 42, -Number.MAX_VALUE, 0x100000001, 1, -0x0ffffffff, 0/0, 0x080000000]); "); -/*FRC*/Random.twister.import_mti(378); void (makeScript(14)); -/*FRC*/count=450; tryItOut("let vngfkd, x, \"-2\" = let (x = new XPCSafeJSObjectWrapper([z1]), e = ( /x/g ).call( '' , new RegExp(\"\\\\cQ(?:\\\\B)|(?!(?![\\\\W\\\\w]|[\\\\x48-\\ufe2d]){3})\\\\S\", \"gim\"), \"\" ), b = x, cphygs, ksyooe, a, x, ushpis, d, x\u0009) /* Comment */\u0009allocationMarker(), w = (/*UUV2*/(x.isInteger = x.blink)), x, eval = let (c = (new Function(\"\"))) new q => q( \"\" , [z1,,]), wabytg, d = new (this.__defineGetter__(\"x\", function shapeyConstructor(tffeoi){Object.freeze(this);this[-6] = x;this[new String(\"19\")] = function x (y)\"\\u4071\";if (\"\\uB92B\") this[new String(\"19\")] = \"\\uE541\";this[-6] = -24;return this; }))(false);Array.prototype.pop.call(a1);"); -/*FRC*/Random.twister.import_mta(518637698,262316431,834941259,1206702961,75312430,-1085313969,-1842160804,-271616838,413579152,-229316735,1202224535,990462673,1885763508,1421942163,-541431352,-320318191,-285497960,-368266756,1061551601,411777281,-1300538262,146017861,-1820700879,2045051487,-1296352524,-1650204778,1216947356,1923874680,-618488806,-1194845148,643691706,61169212,1257575591,-1421973022,-1651522111,875990645,934737103,-1156409883,636741095,92565117,21460818,-1132569769,-46503877,-192154364,369669018,-206499912,-902347099,1020055883,-619740903,-1664621312,-327291,-1595927230,1063004328,-1657514018,1544935749,-1176658136,109870774,216265949,-1283611863,348877515,1750560505,-104737875,-1627469264,-2021339081,1786909289,-1411747949,78419765,303896320,-1574494539,-2023880622,443009474,-37138523,102526118,-1644319394,506576751,1859417159,316367214,-706093455,-299685721,762747245,-1400595408,-1472778468,1241179605,-1370620602,758516104,-986820121,1778819481,1402962796,-499242195,-464602680,1091879060,-403952081,-84379519,1252556130,819079569,45730473,617539270,-1055837256,-1802556099,58253680,-1058760165,-226464398,1493030500,-1614040119,-806859003,-432090371,935437276,-523628075,1083058867,-1843362418,942788702,-501477083,520916832,-296354152,826146294,-1809459215,965538294,666901092,-394310649,1146833644,-1417348051,1379702758,1030582431,-2052291704,1200364476,1635386989,1923551889,221557370,1932756462,534771067,-2023807903,116676592,1186585530,768492913,-848263536,1007914271,-348375455,-1380088032,1877072953,-128208030,-886336199,-168612111,-1657876484,-1873433454,35596870,1753497886,-384143340,-447560698,1837566019,1781975805,-1427398840,-99276979,-1196553292,-679015989,-1709398999,705800586,1846483954,-1771170587,-483397147,412005732,1045944150,-12172780,-1252032538,2054092652,-1908693442,-515502185,1026333164,-686531941,-831057415,2141534003,-423695237,-1029311251,-318818934,-714315224,-1617566604,858342046,-2047584053,-902255777,1887856298,-1681209105,-809406081,868794382,1287354582,-1172360066,-1928348371,492842971,1297708923,1979628415,1836373798,996626717,1955544457,431302843,-543165763,1170103327,2046621508,-247828986,1649880102,-1906093386,911847708,1377983469,1473090657,1856467159,-1067592574,774300486,748468015,-574490471,-1956112517,-549294416,-769619577,1949852929,-1075479062,1926521572,514919893,-1283459893,-89111224,-1829230535,-1178334471,2101180618,1188983875,181355887,1129229606,2077650050,-768504939,427768854,676794580,1368345940,229536153,1573606750,1316611261,2108527656,-1172041677,681351612,-1259753411,-399038507,-1738962591,-1095425555,1347433682,-1376004043,-777980124,1987733124,-949658869,-535306553,32777931,1254777876,-873761432,-1049939954,-256791536,-2090227133,-1499046303,1719647302,-88954637,-1186087259,870755087,-152155019,1749291870,1327870892,-1257749960,-176994747,-1900227666,936619852,63078537,1562723978,1631603524,-1092796359,4949281,-1644998787,-424305115,120630105,-202126036,673331285,679913994,1123203437,1005977487,-1252661062,753158141,-30362618,-850631918,-687872813,-486429663,18805068,1999850567,1221425762,1968724188,-1372349951,248891697,-1074904690,-1580100694,-1022299265,-2011992471,-2031962448,-430127585,1046500885,-438274642,-461733330,-2042237452,-1866034964,-2117113395,-226584736,2010926,67688319,-986026524,964802537,1275294463,1800752728,-1405508372,-1959848915,1022892211,-2105173791,-1585851310,-1201667597,586420503,727204086,-1967273431,-997224099,-1928721490,1475205954,2129791528,-2002228257,1801388307,-1210826171,1412339277,-1349272007,-421300624,-601136575,-1629431824,2040075813,1154051109,-1691780830,-1345089722,847788487,1583445711,1239639160,133281320,659812179,-1982156446,-510697501,-283101876,-387925047,-168912014,2119847447,699187610,307229659,-694196757,-1216960486,2105107994,976177390,-973951423,-1863943165,453623847,-1925236875,-211260029,330773284,1734909834,-1971553608,-1487769678,-1280228379,1023908762,1934238807,-276823784,1899228684,1382609629,-1649366297,701793177,1709772396,-1450672379,1755436951,1259776217,-1022221418,-825984278,730543989,1951301269,-885578287,708256016,-2135313780,-458493817,-1729738920,201989202,1306954218,-697072110,643729155,1041191977,942281627,1832799449,-543425871,-1257105118,463140637,-334268683,902888533,-431995903,-167070214,1143782762,1621099852,-38529067,615222745,-144512738,-66250605,1510999419,1341302198,-1983972046,-2142087291,1149873829,-166547288,724724132,1218148901,83356517,-1879954294,-289426020,-1988424408,1112162698,410557713,755101022,-939642109,1014925128,1209737965,-796090391,971846895,-1691277324,157872310,145784154,818506776,-905291800,1608122575,1013969167,-554301715,1887970599,-2144595850,1564875736,-1569107019,-2030784663,-913257075,-628119367,-1826279471,524195033,1423692628,358427153,-392177134,-854784061,-1727759010,-1863821457,81141691,583976919,-81828296,-255028205,-814218827,1631389531,1333869976,400276954,1866134604,2094519843,1789674392,-768599409,189130785,-612154075,2050431084,-1735387173,-1429805301,-2130284322,-917351364,-1443723179,-1957180257,397111762,-1605652210,709102253,-1441945059,-236183864,46931069,365468745,-1397799506,1191843533,1965652711,1806018435,1327752017,357509098,421424343,1693410650,212664316,1482845740,-1676243379,747163853,1785051925,-447924053,1639371663,1049994334,260452172,-223637442,-382634194,704343038,1874878920,2090671874,1111967681,-771308061,-2092758936,2090116357,-63180889,1039487086,802665220,319706364,307770325,-741440573,1560279107,-653566124,463761537,1277632163,-16506019,1053232484,-809072135,-48055931,269040159,-1007696338,1274322406,-1502585378,1978775257,-1951117851,-335378356,-422163480,1665032348,-1828245117,700417352,-2104106892,-802138899,1268940140,1459246114,1119941199,-506650914,-1350326428,1913779685,-1217541661,-410962750,734284247,1952006238,-1157834149,-627961074,-58021419,2087193726,-2142636191,1614240746,-633365039,892722939,-2120028055,143952457,-2023602282,640868009,-1924089540,530983131,394477866,699952680,-1576722520,21078821,-521307039,-1049700854,-405987346,1824858476,1506121949,1740203267,-1405251074,644624013,-2070935774,-1544966170,649167813,2083000763,-1471799562,1871294584,1570623820,-1407475934,-1914175507,-1741498533,421440526,-1208555099,997089474,-386937974,-851657200,-1066130347,2083690474,704318481,-2071121554,591607259,2029871534,-1550231677,884430664,-642800790,514912643,1914468352,1273576889,-1097551228,1300875482,-1778981053,-444627425,2060605479,-308629721,542120472,1215429145,624453399,-1603132457,1765432481,-916471733,-1677107373,38187727,-1086947005,-1878055770,-1288454776,-1269054881,-829835285,-1938861709,2028413382,-1566873497,-118899549,-1817056254,-152091045,-1533996314,-2034016693,1765026626,-454259443,-1671098697,-382167791,-141908822,-1261664243,-1912468547,-1801204373,-42663274,-1006323527,-1951698115,942098398,-137228101,1432674618); -/*FRC*/Random.twister.import_mti(61); void (makeScript(14)); -/*FRC*/count=451; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return Math.fround(Math.imul(Math.fround((( ~ ( - (x | 0))) >>> 0)), Math.fround(((( + ( + (Math.min(Math.fround(((Math.hypot((x | 0), ((((y >>> 0) ** (x >>> 0)) >>> 0) | 0)) | 0) , Math.fround(x))), (Math.fround(Math.log((y >>> 0))) >>> 0)) >>> 0))) >>> 0) ? ((Math.asin((Math.atanh(((y >>> Math.fround((Math.fround(-Number.MIN_VALUE) ? Math.fround(x) : Math.fround(( + y))))) | 0)) | 0)) | 0) >>> 0) : Math.fround(( ! y)))))); }); testMathyFunction(mathy0, [42, 1, -Number.MAX_VALUE, 0x100000001, 0x080000000, 0x100000001, 0x0ffffffff, -0, -1/0, -0x07fffffff, -0x100000000, 0/0, -Number.MIN_VALUE, -0x0ffffffff, Math.PI, 1/0, 0, 0x100000000, -0x080000000, Number.MIN_VALUE, -0x080000001, Number.MAX_VALUE, 0x080000001, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(306); void (makeScript(14)); -/*FRC*/count=452; tryItOut("mathy4 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n var i2 = 0;\n var d3 = 65.0;\n d3 = (2147483648.0);\n return (((i2)-(i0)))|0;\n }\n return f; })(this, {ff: Math.cbrt}, new ArrayBuffer(4096)); testMathyFunction(mathy4, /*MARR*/[x, ['z'], x, x, x, ['z'], x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x]); "); -/*FRC*/Random.twister.import_mti(411); void (makeScript(14)); -/*FRC*/count=453; tryItOut("o1.t2 = new Uint8Array(t1);"); -/*FRC*/Random.twister.import_mti(428); void (makeScript(14)); -/*FRC*/count=454; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( - Math.imul(Math.fround(( + Math.max(y, ( - x)))), (((( + Math.atan2(y, ( + Math.max((Math.max(y, (x | 0)) | 0), (-0x080000000 >>> 0))))) , ( + (x , ( + (x ? -0x080000001 : y))))) >>> 0) >>> 0))); }); testMathyFunction(mathy1, [Math.PI, -0x100000000, 0/0, -1/0, 0x100000000, Number.MIN_VALUE, 0, Number.MAX_VALUE, 0x080000001, -0x080000000, 0x0ffffffff, 42, -Number.MIN_VALUE, -0, 0x07fffffff, -0x080000001, -Number.MAX_VALUE, 0x080000000, -0x0ffffffff, 1, 1/0, 0x100000001, -0x07fffffff, 0x100000001]); "); -/*FRC*/Random.twister.import_mta(-785693266,139744584,984387298,1186412594,1891481168,1646986250,1065140344,1218752685,802221973,342047624,234298527,2054781520,-1424973049,48028090,679651668,1258509700,1025341971,371642830,-1398794064,-2113107519,-734378165,-1744442851,-718053912,-749221230,285994756,1479238465,-408684207,1561946922,-599253404,241754501,-1549009749,981898725,-602932868,222362246,1345771572,-1645388191,-799397511,-559126467,1934974451,-844186518,506716202,2004734893,2123621689,1774886426,-1027087900,215975838,135715279,-709724408,31641368,-248607289,1061879533,595182199,1681287287,624051954,397092789,-1731888514,-447851811,405173904,2041310897,740652925,1824132405,-426906291,1369248859,-69023687,749614616,-249892376,-1560075875,2046239053,1097013332,1492875432,188961443,67379358,2077731912,-1112160021,-515806803,472029021,-1428016336,-1963572778,-1021377643,1310728244,-938665533,-780332296,2101560758,-1277805457,-634827869,-761379763,642379514,1522283895,-1693045814,1232145332,-985741824,-1729522787,655587696,1399284212,454516195,1861473894,-592218501,-289769937,1852556220,-1435195090,1796736364,-1078957839,-904752776,670550025,-239884000,398970701,1449761640,-947345182,-959001794,-1590013526,-1206943150,-1939242594,2094949034,-17915099,-420745730,-680381154,-1931906,1273060660,18073066,533593930,1084346043,86763748,-756673239,677671090,-11540533,-493106216,-413710365,-1776654957,-453591161,768273164,-1527046342,144221194,-71904711,-1673225965,496199006,1344012858,716623854,1857137058,1545241179,648210322,-691734180,-818571369,1086217216,-965881163,309394982,-1176665802,1829718744,-129468972,-2052342903,-1217343476,-448561060,-1128629829,866509360,869006629,969799081,1858213156,-175710290,1151523283,1781232703,-1682183031,-1672835348,2082356278,18835981,-1352938007,-2044590228,51092922,513344176,1943324622,2129198109,-1287034132,1336713996,1293023751,-2108031330,-2097787862,-1713339110,-406844592,-705697439,-53607877,-1213275789,-2045417010,-92457084,317385507,-996132523,-1052794934,-1515921614,-196266277,493051876,2066981705,290324242,1177593860,-285180763,1532880550,-611875640,1955561915,497373204,-782649916,1846277626,-1837950779,739295866,-1331116000,292391415,-1339961625,-467612629,991766807,2036464504,1356065297,390469278,1384356987,469581564,-1941744905,-1887078615,851518675,108270833,342624742,882387406,1502591764,-1750718092,1307389524,681810533,-1348117202,-1454834902,1298495363,-2001000782,-1618937001,283173236,1745721512,2072071061,1864304431,914530140,-1095354844,318338284,-205398383,-1892145345,-363285481,-1896443772,1207498236,-1684641971,1697081101,21252370,296402525,-337672698,-244315410,1852204942,417906855,1989364169,-721891656,1521544255,509728932,-348507074,1902295374,385459487,-772797860,-95095388,-1820200706,2055975676,-959692936,-304483720,-453667460,1634681411,1155926503,600988099,1620508054,462114466,158817078,1230864220,-1727585730,389962009,667551420,-1167818920,1792061500,-776244621,1177923324,376796099,-949204242,-357946101,1732574865,56217457,-675112926,1677114065,-962101621,22346691,755436507,382994337,992741018,131159639,692266852,-727335395,-1313142050,-1510164971,-1145321589,1037718508,509480143,-2094550785,-534653081,831809851,-1735648147,566506264,1263273268,-1626801154,1498061498,2021499840,1581801485,696791153,-1124146874,1449753375,74170131,-697672549,-1733168150,340107998,-1255014942,-1501946860,1182735976,701578300,1624042285,826988758,-1536217378,-735211900,697955926,436929120,-737377655,-576319945,1751574235,-1712400487,-1815929469,192826850,-720910991,-1478486593,1022477007,2147271885,2083166912,50756149,-229936588,-1654224837,1384432601,776452044,-1320758888,1279442065,-1023881237,1783371338,1745355367,1858202135,1420619732,-1932959469,-2124532109,1459026243,-1159585259,-826904172,-1808949641,-1698905215,844796727,1639967008,-855922674,-408553852,-1258393542,1456108734,-1166708150,-1922610696,-1824841802,1879134988,1267342216,194280639,-797862835,1659405580,-1485160269,-2081819978,-526817560,120321625,-1314470871,66632946,-476982379,2063528066,1198223022,-1182705552,-2041445820,-1271179656,-1011960416,-1853647623,-830848171,1990036197,-1247086341,-1227471817,-1772461286,-670607197,-1357917377,-1872293246,-987070566,1482367612,912399411,119236299,1661547704,-1626615985,569424985,-933827703,623408703,-1797588136,-1964487041,-1800390601,1265884565,-1808768742,2031458579,-1174465410,-864439864,1518667421,1318890508,-80276354,-1057932355,-1029116070,-1688725695,-2015488652,-769601542,2076718740,-73687914,1229461362,-1406295857,-1093826079,483749096,42258527,-346537464,1127829674,-24989892,-2106969853,-1701177268,1730807405,-1891149898,-1838870274,1119080342,949801253,-887132516,1306597630,275753128,-343470560,-1342832181,2059273147,-2065681591,1724674418,-462221886,-1061065640,1593437249,-375219247,-1910782011,702790394,-705244392,-1489302767,2117081606,1781379224,592331912,-1741150456,237740260,2016630351,950770474,1126875032,-1540754631,353768606,-289279833,-1552628619,1979819827,-635495366,-553091047,794986497,-991060010,-92443504,1121723661,-873033683,-480221143,-1119233556,-1834436631,134028426,290602431,1391200066,-1027865456,-1502510640,2083838524,1098860556,1757896338,406300506,-955579608,-429830473,-642417242,2110416649,1375394094,2052205030,1707172051,-1055971106,-729007513,-1871892757,898824124,1929787651,496817730,-658641239,-1417634676,1222041346,-1373659903,1041392946,1237643566,807526206,-1276947162,-84666103,1632928589,-1321016830,988863593,330744433,1437667973,-1043439648,1547323843,1764322305,-2073078068,397103963,547559636,1224557864,99363150,-656642775,-1694252934,1598186306,-1479631895,-1071367536,897031691,-278657745,1016112086,-280062362,-420049335,-883098250,-1979932477,-1469410558,1980096682,-1421062375,498511824,713687259,-1265158156,1684324386,-1375801981,-776476479,-1323000022,2053093676,1329993716,-391487969,-1605182231,1990435392,1067701503,-1690440813,710942711,-1428343642,937591880,1924434540,-538169839,1027981634,185175476,228910020,1960313048,147951070,-368551826,-442397387,-1097584301,2144585519,-1308697280,-154180266,2108999516,769543475,-917107960,1431816758,-1991932096,624958437,9002858,-1488249335,-1816529992,401151129,650330189,-352598422,863427190,1624967697,-363381221,2020381830,686797494,924259522,-856626909,1552200773,-1497205930,-1164015575,1004814980,-533956165,838155930,-1913631686,-365536579,-1522586872,-341594731,13163720,-1682562852,-1343518908,-1538155533,-2141611711,-539440929,753845223,181949314,218953831,-1165187421,1722473311,-606907062,1694639083,855204561,519221354,2057570688,2015258990,1795444254,-1076026045,432443413,721825243,1061518564,1473637129,-459354812,1278442720,-1398977278,74524006,1197286662,683574733,597585961,-183703318,-653077558,-1336909102,-508473852,-621129510,344711880,2033964496,909853658,-530956574,-1138386208); -/*FRC*/Random.twister.import_mti(12); void (makeScript(14)); -/*FRC*/count=455; tryItOut("/*RXUB*/var r = /((?=^))?/gi; var s = ((yield new Map(new (x, ...b) => { \"use strict\"; print(x); } (this.\u3056), (a)))); print(r.exec(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(303); void (makeScript(14)); -/*FRC*/count=456; tryItOut(""); -/*FRC*/Random.twister.import_mti(310); void (makeScript(14)); -/*FRC*/count=457; tryItOut("\"use strict\"; mathy5 = (function(x, y) { \"use strict\"; return ( - ( - (( - (((Math.max((Math.hypot((0 | 0), (x | 0)) | 0), ((0x080000000 >>> 0) <= (y >>> 0))) === (mathy4((x | 0), (mathy4((Math.tan(-0x07fffffff) | 0), (( + x) | 0)) | 0)) | 0)) >>> 0) | 0)) | 0))); }); testMathyFunction(mathy5, /*MARR*/[ '' , (1/0), (1/0), '' , (1/0), '' , '' , '' , '' , (1/0), (1/0), '' , '' , (1/0), '' , '' ]); "); -/*FRC*/Random.twister.import_mti(517); void (makeScript(14)); -/*FRC*/count=458; tryItOut("a2 = [];"); -/*FRC*/Random.twister.import_mti(527); void (makeScript(14)); -/*FRC*/count=459; tryItOut("Array.prototype.push.apply(a0, [v0, e]);"); -/*FRC*/Random.twister.import_mti(564); void (makeScript(14)); -/*FRC*/count=460; tryItOut("\"use strict\"; mathy3 = (function(x, y) { \"use asm\"; return Math.hypot(((((( ! ((Math.atanh(y) | 0) | 0)) >>> 0) | 0) >>> ((mathy1(( + (( - (x >>> 0)) >>> 0)), (-0x080000001 >>> 0)) | 0) | 0)) | 0), (Math.hypot((( ! mathy2((Math.atanh((y | 0)) | 0), y)) >>> 0), (y >>> 0)) ? (( + (mathy0(y, ((Math.atan2((-Number.MIN_VALUE >>> 0), (x >>> 0)) >>> 0) >>> 0)) >>> 0)) >= ( + ( ~ y))) : Math.imul((mathy2(Math.fround(mathy0(y, ((y ? y : y) | 0))), ( + Math.ceil(( + ( + (( + 0x0ffffffff) ? (x >>> 0) : (y >>> 0))))))) | 0), ( + Math.abs((( ! (Math.imul(0/0, y) >>> 0)) | 0)))))); }); "); -/*FRC*/Random.twister.import_mta(257554225,-1989794197,1515062538,-2120102058,-43240499,1161520801,-205110139,1977078635,-893344135,1566298570,-1503352215,190772264,-1823562969,1871274558,-568707500,-825353564,-1489057752,-1466071623,-992241449,-242138331,1045563353,698416734,-1758901643,-890255743,797382963,-839693798,-506731997,-1136582708,-1668345973,-1337876561,257201329,1676076096,1456461291,-1013161414,940056100,-1952733224,1925101448,-2039582892,-1029417993,-1881629619,-61885112,1340332434,-1157723960,142625288,-1818685225,976803625,1424564610,719116052,-2100186444,1586882721,-2036338432,-752823637,707967059,-772301667,-1471459834,-21394129,-1563243537,111772658,-115626926,1967827583,1967572576,-559631629,1611942677,-1406503012,2052152825,58699836,110315600,-1644669498,-1093334083,-1688992508,324021744,1862783334,1164857402,1339655641,-1423105715,1410224532,767327865,-525298097,-1608838350,1534030473,-1324616486,57394642,-786860090,-1907475224,-1786318294,-1842618461,1624936451,-1645855986,1361736294,1369004547,-924799149,-1959505391,-2110575498,-598359764,-1721338318,-1992069424,-1483638042,1192509152,-1495727695,-1887953985,-410777622,-733238594,-268203854,728700641,-2024126980,-352677292,2147360178,172099998,-722305511,1269600882,1721227291,915567741,-1550596093,-1414947882,-256189707,548610557,-1036110477,-1062348699,982606254,1446793901,1040537508,1597320237,-1295731184,1844690508,-122600145,1120501804,-1543478596,1077911557,1263786582,955748166,-254056975,-1061742111,2060718549,-1619109266,-1725260233,1862590171,2015281957,1605349357,-1291604192,1572986606,-1053708309,-77412973,-1872869774,-471512139,722224339,70463232,-473426693,-426202023,1353835954,2131043306,-1282568998,1359183046,1793398307,1615841086,-1980417087,1158719736,1252458870,1523740566,-379485753,1677396549,-1218898669,-858730513,132174187,1716590675,1091342775,-1475895471,-1437364129,-1315579320,1063777595,-1926391828,-1929996374,1643640158,-1423173618,882693643,1527756574,-991407955,731863265,-1638173661,-439826511,-945810453,-342259766,1534383566,1365963135,-551410781,152596751,-342981382,1328729326,141435713,-1196526370,23267785,-906008416,-1382393051,1016576221,574385133,578062688,2047410842,717068830,815970914,-1014550182,-1262725169,-1277086339,-169187680,-1105056300,1152292050,-630912055,-1266799092,-1450184969,653832869,-1603508928,-1994399678,620163058,-704526777,-1498723855,507326849,1805318284,594383223,1164502787,2018874631,-826245795,-453763257,504055066,-559430781,-1035784260,827041130,37588878,1150430199,312650152,337164447,-1774371463,322092924,558469313,603492493,-1457550219,-1262678841,371960213,1577264384,-1228877165,-1496936736,-1702683687,-1499373532,389113673,-1456929389,1538443816,92265491,-2099125531,814439959,-22958217,198122950,1360110329,89991205,-501759057,1387095009,-2076986779,-1668400291,-1624833936,-362547529,-1036298991,-420772529,-660778900,-567391787,-204006159,902674805,-1893725629,1443891238,-1964114357,271830948,-1673683181,-511866140,982221196,187400494,1805294966,27990505,428798558,-1196128296,-1066002301,443934163,1970578608,1852578999,1769725233,-208636563,1585228207,975830281,-483422622,942854171,302518336,1245823875,764882704,-1095750219,443671017,1056531171,973979940,-490064551,-362288304,-950940654,146205487,-298380751,-1091434594,483676175,60988475,2035319258,-101382912,652315050,1248928055,-545230039,2072901913,304516512,389516156,-81189451,435370787,-2111538740,-311315492,-2123469772,994384618,2021653608,-1882084255,993834276,89497896,-974836125,943367050,1978178482,829293214,211397921,1504334030,-500278249,-190878585,1814150065,1208502791,1098044755,-362879010,1753744759,306884603,1356968254,447759207,1759364692,316760402,735809678,-203930280,330421054,-1684093551,234589655,-2113934276,1876351651,-116094437,810416397,1154775472,1573542244,-2061357751,-363624773,-1626286743,-2112142720,1267624523,-1956397459,414627889,-815441693,1560615200,232816298,1902772381,-1998861193,-445508571,-434725035,776872087,-396436303,-441364899,971651710,803413145,1772020947,-602272731,-2133986926,1403165830,-316588493,-1068434206,936175851,1192898082,-1177174073,-2024802679,-2122801391,-2127514977,1372322167,-757157788,-1467579161,727905971,2097030991,-1952452168,43288631,944197723,-2058612487,-507333501,769398441,-44804685,-1855093229,-1348340064,-64006996,1671107729,-1606488589,1844006312,-331916801,1906100729,-2031179993,-2072671992,-1210871247,1386221295,-1354398577,-475658581,369414878,1730894114,-2070106084,319072404,-1468625552,845460019,747563573,-487592472,1841068726,1687217218,-1990412095,1174705461,551857198,885991629,-1469857547,-1831138117,-458616701,1869703115,-924239223,2108336449,1670320737,1375428009,1187113239,-1858871167,-720258814,-35802380,-1948144956,-1973607192,1043512011,788957047,-622209458,348206148,-1072901268,2137761469,-1993403707,134518138,-228944756,885413901,-1592799781,1551211636,1887321935,1777514307,-1025741095,-1545482443,-1155899678,-1024324074,-472485776,-1168643031,1219921345,-352689285,-636454067,-166667303,-1154305180,-440512593,-269458402,26107750,-736019907,1289465502,-1428663972,-1229217333,-396083611,1989830091,-646081124,922799652,1044866280,-2005465125,143264448,2070262029,-1570879773,82375006,-222659366,675978322,-1154894467,1770493686,100286708,2052067190,-1189435754,929446891,-1079995361,422402907,319124155,-1138557295,2014772274,-790617356,1182882682,1611527987,-347380286,-669550983,-706425646,886159155,-2077396852,-125034377,-554091049,-494309289,1933306999,-975452414,-1990384711,191151685,-527353997,-312446483,-655842705,1817950161,-1146698685,-473827065,2046954299,954198446,1447626793,1974677542,2108236257,-1062322520,1300574808,2097369711,-1261743199,1622225672,229280279,146391714,-1882614293,447163564,1552130734,-1791630748,844927181,1376716775,-1880150903,1662720544,-1949866735,-1458155596,-1146985080,-2028847940,111289743,897943130,-1167453012,839449374,1654843907,83698540,2045245130,1297535760,774602937,596557388,-1232344745,-1916661005,1542930825,-1067325255,1055445608,1334090718,889635953,966623510,-1301141877,611120225,310263759,1960760593,862976172,1068021501,1706652056,1277362419,2028030688,1413706398,-786891190,1754884577,-1739825527,1644652882,556040139,-1713847353,-1360845148,1413538028,681236971,-1007291023,-2061320104,607789142,1600123857,-491086550,1919469492,-114114800,1532436898,-538352702,-493820343,-744939232,508468780,594986338,261786788,-516351809,823029497,-2063541223,-1299720313,758571635,-144024344,515508225,718184305,1015419839,-1334980491,-305133731,910676309,-1390126281,-1205125716,1834303364,-819354409,178187307,2064980629,-1940416312,27907319,1418946500,230364333,1315522309,1614607679,-1698045371,1299925187,1789952462,-911777013,557456052,-1257201054,227252274,-616251146,1096122188,-1518574374,-508223215,-1025712435,-1234524728,1594293881,-1155314658,1573147353,-1306159985,-1355251010); -/*FRC*/Random.twister.import_mti(292); void (makeScript(14)); -/*FRC*/count=461; tryItOut("\"use asm\"; v1 = g2.eval(\"--x\");"); -/*FRC*/Random.twister.import_mti(328); void (makeScript(14)); -/*FRC*/count=462; tryItOut("\"use strict\"; var scfyyz = new ArrayBuffer(4); var scfyyz_0 = new Int8Array(scfyyz); print(s0);/*infloop*/for(\u3056 in (( '' )(window)))print(scfyyz_0[0]);/*infloop*/for(var scfyyz_0[5] in --NaN) v0 = a1.length;o1.s0 += g1.g0.s1;"); -/*FRC*/Random.twister.import_mti(511); void (makeScript(14)); -/*FRC*/count=463; tryItOut("/*bLoop*/for (zajpbc = 0; zajpbc < 0; ++zajpbc) { if (zajpbc % 56 == 31) { print(0); } else { ; } } \nfor (var v of f2) { try { t2.toSource = (function mcc_() { var uclagr = 0; return function() { ++uclagr; if (/*ICCD*/uclagr % 6 == 0) { dumpln('hit!'); try { m1[\"toLocaleString\"] = e2; } catch(e0) { } try { this.v2 = t2.byteLength; } catch(e1) { } try { m2 = x; } catch(e2) { } /*ADP-3*/Object.defineProperty(a2, 2, { configurable: (x % 13 != 8), enumerable: (x % 3 == 2), writable: d, value: m1 }); } else { dumpln('miss!'); try { v0 = Object.prototype.isPrototypeOf.call(p0, h0); } catch(e0) { } try { a2.forEach(x); } catch(e1) { } for (var p in i2) { try { v2 = Object.prototype.isPrototypeOf.call(g1, g0); } catch(e0) { } this.g0 + e2; } } };})(); } catch(e0) { } i1 = new Iterator(s1); }\n"); -/*FRC*/Random.twister.import_mta(458556621,-380466291,-1224510054,-1256282154,1422952192,1129157686,-169374796,-616318271,-365864711,-1723970177,-304482460,-1563733121,1531599658,-840763710,182155236,923762774,1142606530,-1117656703,-1054556829,-219243522,-1129070630,4659550,416629532,-1581622387,-300900476,-1807226737,1034919303,-2034996557,-2014734817,1334909446,-454898910,1337125086,-1439720487,-698799110,1006594343,1448729779,-639704604,-325341856,518532501,21789721,-287375860,360435998,-1239764600,-1543348039,1696274064,1979780277,1695569093,1754951193,882780758,-1599195211,1266845544,249815776,1378160353,-294499542,-1360858231,580630099,-1723549004,-895676944,1486837380,-551736161,1504349624,-393426381,-1036779021,-1459900227,-1419278014,-1242429981,-426240890,-1325903670,-1797810402,2124994780,163875931,-1430245434,-1234274061,-134508172,-933663191,-1958838595,1542096674,2017924555,1335278822,1895984283,1146069533,1390195861,-29509406,2107982590,1874709265,-263675003,502689596,-726153310,-908926484,1838728578,-1709981011,554983688,-2057206444,-1801171616,-1857717318,1729694272,-408457220,1927811184,5079255,-1857326174,421411112,-1109785765,1172445206,147430587,-1779663271,-1835040972,-573987168,-550881278,-563049094,1233298901,-129793574,-1340162704,60671426,-1796805245,-1258815040,2025428174,-1260687691,541844152,115198504,2142476506,-1153913634,299604394,-114275635,-1074315548,1038574264,-2026515654,-884215792,2007427788,-1818957014,-1031923705,1922324798,1299511169,-1273149249,1385153400,-399967683,-1870506217,213218181,730410126,205653364,-1116912570,-1654774564,91877417,-959343172,-285201158,-1265467689,623814737,-1313626246,-1472652704,23741341,1447189939,1569159698,-1779975464,-2108308204,-1180772002,1895197619,1368217002,503762791,-1844394303,-1924381595,-829998427,-2021548600,-1900303628,2067317436,-786984475,356983294,-1373236830,2045678319,1600358789,-1468666542,305900345,1482761028,-698091146,1180965762,163445721,-467440808,779977093,-464663174,316566551,-1584424824,-1440374745,-1893036882,1646586176,-1462288606,-17674950,979226329,-2036302136,-1406021754,-1722292618,1799283644,164189731,951042469,-637967184,-1562895784,767317775,-1922477768,-124859822,773229668,-1930968166,2071832212,-1381165595,-1243834489,1435499201,423776508,946712051,1536607217,-1722015648,-942670560,1583314341,615712030,-927820356,-9233601,-1595042327,531712788,351758066,1034869254,-1237886100,2120661674,-12717763,1309596582,-1364163684,1955041235,-682937834,128134348,-1170371623,-427427843,-1149976485,1010593326,-1992086866,-1597254605,1051659557,1038769999,-648547867,-2145672566,670756769,-196990911,1750696303,-899872241,965790295,-241441939,-1982179247,1082049748,1728189168,-1397170560,-597521553,2083321429,1736235527,-1224141539,221503097,-1679737453,-1328147948,1373919906,1963062889,1124615678,1916542399,1787633975,2147257416,-1511233410,-2001968364,-1179812629,1254925694,364332959,-1519919911,1028774048,1168158238,-1534965070,-1979821373,1911732587,-1281671478,284037513,-2082996429,1038048402,1776054207,1784368985,-1675368357,-1129829329,237271054,244353329,-432547537,-1373411191,-1542198551,1785595249,-1619708744,-410358143,-1874808172,1991597294,1314177292,1498253978,-1919234669,1861798813,-550313631,9837262,-564888342,-698686486,1003213262,518744333,-877751087,-1446363132,-1860341095,-1771540693,-1969948045,-1534372447,1953058413,1039595510,-1088107663,1901351707,1141733720,-711045474,-1849782445,1406044275,-2004524788,1024619748,840910436,-864592463,-2095707693,-1993761488,-881315464,-698162580,-972123288,467676369,-1646885861,199240495,-1114614819,-821652332,81815904,-1645183625,-1119808245,687516116,741427911,1352053055,-707789004,549012516,29159221,-1494115298,-726067703,-892866491,-409161770,5917770,1820611533,1877723972,56767452,2047160333,293270546,-1181230953,-1766763923,246337034,-1656460205,-1819088040,1840805557,1356216554,100650807,592335117,-390820225,965726100,-1513522048,1901516185,841571259,1595625187,-1725570061,-1485371148,2050156587,-5759489,66645452,-864597464,-2108928746,-2041647560,-1152928839,-49562481,-191927649,-1428037649,-1493570611,770631760,-1759548986,-1597192339,1797057761,1905124663,-654661107,-1481698857,1961370144,1487685748,1324093074,518617638,1966707567,-1982881426,-1691494507,163479138,1688579835,23167278,539166670,1594218786,753416684,-1358939213,-41804951,657577860,253375547,-261057115,1236482417,-2008790923,442230720,344096945,-1237537750,-2028500671,217635026,1702881514,-673685013,277885977,-401748798,-1105271137,1326474600,-311743355,-1717515818,-2010353567,135642360,453415543,1446720963,-1994018719,-397293819,-2064644474,-389351641,849665070,1281890658,-1866433900,1790227783,1346499517,-1612475793,915376078,-353573365,-953824924,-885895427,276770723,1550631560,-25411511,-719507307,-1272394937,-1917884670,2119769107,-1039243617,1429056513,-1150201470,-1715413073,-589637683,-1653067584,1402213436,385938452,-745057836,1197176462,-2030662429,-214061843,369002712,-1499461074,-1014994425,1198422502,1257272991,1333021986,-566447331,-723881188,1260143419,1230454570,2100130044,1783618596,-428444219,848742159,907495547,-2057097598,672696373,355336345,-1441037185,-1762006491,-582092826,591861648,134395609,1413814465,1045991162,1579279466,-483632332,-1984973800,-282921240,-1305791890,1825332505,1770824994,-2118915884,-186325137,-1089258427,-277445174,586524649,-190374643,-1847759471,697043139,-1128723239,-1866305992,-934096061,793954423,1742873076,-1947669883,-1799612017,1173295358,-123594371,1665317335,523419411,-1267052868,-1226727260,895730493,1393599494,-78079514,-508173818,1659636689,1187718357,1075470251,1979838886,760807539,-581699950,933008059,1457669050,680941600,-20671630,251122844,513823257,1089410229,80411551,1085802176,-1693878852,361365657,342988863,193490024,432370472,266490882,-404364741,377485348,-268406149,699956393,2122312104,1702717801,1805029430,1496871694,-1936051439,971459213,1370495429,-1267295639,465116524,-1140705561,-575667561,22760871,1455432854,1066082659,1868211951,-1719993764,1008886078,509433596,388950948,1034022983,70803067,-1797798312,1050126112,-1527322275,-1373224331,518910475,-275807847,-373335484,177798507,691048464,1270192177,1100450194,-1144765204,1845895404,-1782669962,1005961375,97237810,-1909985290,-1023968662,1407947838,-343226180,538319706,1072922783,-462418039,-1358187312,1304164,2132969739,-306246452,1250083229,-1483488919,674540837,-1576781102,-658314983,-207168488,-996962256,1500428527,1759824146,1099417183,704489760,-1885924693,1262285608,57808371,1773034825,2037181388,1922113995,-1466239927,-599048147,409307513,-240570726,865948755,-1494807799,-1295993275,1539593941,1194299524,429064842,-570496928,-859829879,-1319560660,733035201,-924675531,-648893388,-2119858524,1333506683,1225248384,1640709768,849163683,-1227359883,-728832427,-197826217,185193610,983593355,-118444664,1886056253,506427438,1558608588); -/*FRC*/Random.twister.import_mti(82); void (makeScript(14)); -/*FRC*/count=464; tryItOut("L: for each(let x in 19) {(new Number(1.5)); }"); -/*FRC*/Random.twister.import_mti(176); void (makeScript(14)); -/*FRC*/count=465; tryItOut("\"use strict\"; t2 = v1;"); -/*FRC*/Random.twister.import_mti(188); void (makeScript(14)); -/*FRC*/count=466; tryItOut("\"use strict\"; /*ADP-3*/Object.defineProperty(a2, 5, { configurable: \"\" , enumerable: true, writable: false, value: (4277) });"); -/*FRC*/Random.twister.import_mti(216); void (makeScript(14)); -/*FRC*/count=467; tryItOut("e1.toSource = (function(j) { if (j) { for (var p in o2) { try { a1[13] = \"\" >>> this; } catch(e0) { } try { Array.prototype.reverse.apply(o2.a2, [h1]); } catch(e1) { } m0.delete(this.f1); } } else { try { ; } catch(e0) { } try { e0.has(v2); } catch(e1) { } try { /*RXUB*/var r = r0; var s = (((void options('strict_mode'))) < x); print(s.replace(r, yield ((a ^ w).call((4277), )))); print(r.lastIndex); } catch(e2) { } this.g0.o0.v0 = g0.eval(\"g1.toSource = (function() { try { s2 = new String; } catch(e0) { } o1.v2 = Object.prototype.isPrototypeOf.call(e0, h1); throw t2; });\"); } });"); -/*FRC*/Random.twister.import_mti(464); void (makeScript(14)); -/*FRC*/count=468; tryItOut("e2.has(i0);"); -/*FRC*/Random.twister.import_mti(477); void (makeScript(14)); -/*FRC*/count=469; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return Math.fround(Math.pow(( ! ((((Math.min((((Math.fround(Math.min((42 >>> 0), y)) | 0) >> x) >>> 0), ( + (Math.pow((y >>> 0), ((-0x100000000 - Math.sin(x)) >>> 0)) >>> 0))) >>> 0) | 0) | (x | 0)) | 0)), Math.max(( + Math.pow((0x07fffffff > -0x0ffffffff), x)), Math.atan((Math.asin(( + 0x07fffffff)) | 0))))); }); testMathyFunction(mathy0, [0x100000001, Number.MAX_VALUE, -Number.MIN_VALUE, 0/0, 0x100000000, 1, -0x0ffffffff, -1/0, 0x07fffffff, -0, -0x080000001, -Number.MAX_VALUE, 42, 0x080000001, 0, Number.MIN_VALUE, 0x0ffffffff, 0x100000001, -0x080000000, -0x100000000, -0x07fffffff, 1/0, Math.PI, 0x080000000]); "); -/*FRC*/Random.twister.import_mta(-1208347943,1325611644,-323747903,-310392127,761139913,1603022128,594611284,-58709830,1033525922,-923656915,-2021819384,-2133982960,-1085164873,-851326061,328367315,957085462,-779914788,1891589647,-1859745030,-626402965,-1461093496,1053719968,-977435525,-406309546,-1180700193,-1751216735,95492073,-327943138,-1926993144,-179000075,-1393870190,-1671409008,926963573,982205445,1731816979,-1731740747,-69029454,-1473922554,1537271884,1648546567,-238241523,-2100459669,399726414,-269108344,-241425735,-1132433751,2127746567,1561617317,262744038,-1761808551,311392680,381304193,-189182062,-1994936067,-2102059671,1138102392,-1150143003,-1198139298,-40213077,629307894,-798776006,-1839371262,721624388,1730479022,-169412011,-164682559,1885642832,1598409494,-716183535,185801943,-936517627,-512189642,1946123875,-1453252854,-489750149,869574651,1174888718,-1369118101,1319858298,151278527,-592791668,1452439891,-10401365,1513271864,507501912,-1584549292,145638456,-1873908229,-418312368,-1114810038,-332186531,-1837978478,-2113866253,1743812010,342795476,-1204068997,-305655369,-591306678,-267935572,802006339,-1730736543,-695516489,730717734,-1499640626,442440604,-1782822218,-1910440441,232017260,-1157445920,2084282182,772714270,1821893266,1311256716,1843434075,717130205,-1410113627,-1360960978,228143496,561618548,1567834842,1277638474,-450325639,-990713138,1266266565,401306018,1848480864,1645610574,103293335,533880551,1865798843,1337112932,-1430362071,389548052,-933124952,-1159787678,-2039842285,-1721850538,1069959223,1325841382,-86407161,-1072867929,-1620378567,-1439689494,-1038433773,-1654669215,659747550,994454495,1086810957,-1911816392,815721461,501036744,2089489101,1492595412,1973699422,374410741,855457329,1042715082,-1052548890,298101780,-1434479456,1304766481,1420620110,-97066980,187963757,-1395176387,-1946560188,587721067,802108982,-706814351,-1575518636,-372865327,819567103,1985774991,302493430,-238686078,-698947276,2137797124,282339872,-1288115769,-1440068965,999339325,-1275568392,1464699832,1713532257,-611133827,-1514259493,-2009570549,754043185,-183971108,-992438702,83958648,-553967737,-2065012624,96910703,367605856,778546686,1961017350,-719051005,1402305024,-612142491,40264485,1060928557,601451823,100886370,1466582757,617115156,-273414009,-811111697,-392608937,1474832236,-489733910,-2026227777,-752279731,-1619858521,1415585741,909415381,-950176055,1436178544,-1584416581,935694691,-544149412,1222132460,-1095367496,314238633,-1260896305,1076973369,1481109403,2123843615,-1990456271,1800298681,1490846444,1834206092,-1787172289,-2141673301,295983314,-2118357126,221432025,649608545,1563139559,-546385699,-20921621,97391507,-835583362,916306473,-636910637,329953451,87590536,1007768990,1722119338,-1387288278,1145077437,-1743006944,931672993,-1442891859,-745686470,-1613603017,-1325228673,1765094456,-117047249,-1533852571,-1322247498,965837379,-1172837190,-375155477,1976705976,-1169095642,2072988770,548602134,439273517,1228732679,1108556936,1572419018,731458139,-1181847345,436625314,-1846946911,1022341905,-594117325,-574916566,411500021,-2035471711,1752734454,200689970,-1071080558,-1614825256,-784555802,-1169707040,1041723435,617393261,1799884835,1208958427,-1630827616,-1412772826,-434527223,-476434015,-2119514093,-627763900,437348175,1027233488,-1196268436,1247611107,-63669632,-1253150052,-1482295204,-1939712313,1684297525,-657218359,742736746,1389414869,-1578601511,1128075530,-1592999073,2030962274,1278904992,-168659641,-1944027546,-561377026,952867562,93412928,1593331899,-533664613,1944972958,-95721013,2050531283,459889168,-1535445946,-1596083969,697624097,-59982547,2077326388,1061915531,153605523,1726509421,1917564666,2115639943,-80748347,-747567489,435899068,1831271292,-366864299,1700653138,-1350707895,2040743500,-373947093,-1707886722,1756425176,-1297626785,1682713407,2128593981,1281192599,-433371611,1261213288,2093558304,-2085233571,-2043396971,-1453897399,-89156195,470367518,1320135907,-1310411212,-1986145714,-1662734730,-951296872,-629550518,-76734156,-1467230850,429297047,208997007,1428076800,-54042430,-912951568,1412502280,-875285391,-1702336101,-172847468,1154795276,1256913637,831197938,1543312772,1468239815,-701482442,313974082,-429693660,2063183611,1780025156,292842627,-1167190201,1648870528,1121512888,1958628634,-318921722,-11556865,360477574,-2110319770,-769779119,1223969428,-281375308,2056222294,734515178,-1394609680,1417396895,-1015413513,1689413918,-1372809001,617794625,1967073879,-844990417,-1808952416,-14140909,-1974271145,573092637,1327050649,397087205,362941412,-1043228052,-1217343073,699751710,1548973423,-120646858,-1937091270,-376154349,-1530826399,-1197550570,799343585,2035999961,805805746,655549892,-749648853,285875561,-2047869484,-175812617,-1804168295,1646255509,160446033,2007558527,453453192,1246793645,925343714,1885334662,-1651177683,-155655751,1608541639,536820543,-1527722610,-806768930,1092214290,2101007631,-859769525,-1341077712,-587122613,-1362465479,-1822287522,-165173656,841668117,-2112759459,-1376283740,1440274631,1845193982,-949990991,1429879143,39566409,320196499,1287166911,-1632798646,-1430433919,-1889544150,-1312281810,-1352447709,-1731725280,2098740929,699530580,-182881818,574397745,1106205828,1266691818,1068559773,1109473145,1887841324,-1732106422,-722276151,1870534992,-1539901217,1470118940,307864358,-1194118609,885568657,600273622,-112120406,-995075267,1958099038,-632126447,-382802395,1762113598,427344925,-2048213641,-226024423,-542304687,1479416790,113894808,-400524518,-1878646068,665457489,-516742494,-728693210,1727750022,1690232608,595985702,151591495,1188127167,-919555920,-346441137,-1946905400,-295769761,-46381650,-1471157768,-1649174808,-265953997,1750286011,-1823526530,2013756597,1965676745,-430045291,-1924632185,-580632763,-1326766451,1980082882,431680910,-2021030296,-1022652844,519599863,-1838239673,-1593938112,-81658270,489206096,-1651114153,-773639106,-332071569,-1003177306,1457287883,-1599401874,1733990635,1933530409,579182030,-768119344,1725606517,180352318,1433347433,1743299687,-386305668,-266302745,628313155,-1877303711,1784767907,1990457637,-2024040910,-2001530865,-1483361698,735298435,-1242191532,1176745380,1873384588,152636145,-235884930,394483439,454989605,1781861511,-1957059232,212345421,-1699172073,698895329,1866954171,822280293,1060450736,-223462803,-1026171035,1207976539,-1340824954,1827280462,-2042728411,1842034505,1994135566,-1617255,-887193263,252737845,679172503,-144376045,-1524997468,392096708,-109389854,1610475198,2007387185,-941927214,147584324,-1798092948,-78112186,-2145071773,-1005324401,156462086,-565565869,196927372,1851978286,-702200106,1209878089,1679134421,-823941399,55679122,-1689017736,1799996403,2115996504,-1498306954,-2075343079,1318772740,563213255,975715657,-534476571,-1315492275,-1750316690,-1451667901,2065117157,688137538,1661654055,-586570170,1720154098,1842295815); -/*FRC*/Random.twister.import_mti(99); void (makeScript(14)); -/*FRC*/count=470; tryItOut("mathy4 = (function(x, y) { return (((Math.fround((Math.fround(( + Math.atan(-0x0ffffffff))) ** Math.fround((( - ( + x)) >>> 0)))) - (mathy1((mathy1(0x100000001, ((Math.pow((mathy1(0x07fffffff, ( + x)) >>> 0), Math.asinh((y >>> 0))) | 0) >>> 0)) >>> 0), ( ! x)) | 0)) | 0) - Math.fround(Math.imul(Math.fround((Math.exp(Math.hypot(Math.min(mathy3(y, x), Math.tan(y)), Math.tan(x))) | 0)), Math.fround(mathy0(( + ( + Math.log(( + Math.imul(Math.tanh(((Math.atan2((y >>> 0), (y >>> 0)) >>> 0) >>> 0)), x))))), x))))); }); testMathyFunction(mathy4, /*MARR*/[null, new Number(1), new Number(1), arguments, arguments, arguments, null, undefined, 0xB504F332, arguments, arguments, null, undefined, new Number(1), undefined]); "); -/*FRC*/Random.twister.import_mti(494); void (makeScript(14)); -/*FRC*/count=471; tryItOut("selectforgc(o0);"); -/*FRC*/Random.twister.import_mti(503); void (makeScript(14)); -/*FRC*/count=472; tryItOut("\"use strict\"; v2 = a1.length;"); -/*FRC*/Random.twister.import_mti(516); void (makeScript(14)); -/*FRC*/count=473; tryItOut("\"use strict\"; \"use asm\"; /*RXUB*/var r = new RegExp(\"\\\\1\", \"m\"); var s = \"\" ; print(r.test(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(550); void (makeScript(14)); -/*FRC*/count=474; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( + (( + (mathy0(Math.pow(Math.hypot(x, y), (y | 0)), (Math.atan2(0x100000001, -0) | 0)) >> Math.fround(( ! Math.fround(x))))) , Math.abs(Math.fround(((( ~ -Number.MIN_VALUE) >>> 0) ? (( ~ Math.fround((( + (( + x) | ( + y))) == ( + y)))) >>> 0) : (((y / Math.fround(0/0)) << (((0 | 0) * (0 | 0)) | 0)) >>> 0)))))); }); testMathyFunction(mathy1, [0x080000001, 0/0, -0, -1/0, 0x07fffffff, -0x080000000, 0x080000000, -0x080000001, Math.PI, 0x100000001, 0x100000001, 0x0ffffffff, 42, 1/0, Number.MIN_VALUE, -0x0ffffffff, -Number.MAX_VALUE, 1, -Number.MIN_VALUE, 0x100000000, -0x100000000, 0, Number.MAX_VALUE, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mta(487517032,-2070511403,1130931279,-1680049372,-323218833,1963650868,-1871934326,2048909584,-934374370,-1910716885,-733310168,965235607,1979405889,-219595349,1402786834,1063954699,-185265092,-918364399,1126993397,2109858010,53758911,1125736916,-9547887,743644963,1980139374,1666117437,429719022,1070125405,-744130537,1902606477,-1654559389,-744323572,27455241,1594968097,18742940,535725388,1568861010,444112217,-1288766252,-339844108,-280367992,1001801505,-1435510039,394149946,-1733762484,-107028253,326257795,-935510739,-747693727,880634331,1586846548,-1974705927,8540394,1989694290,-225898142,1922436165,1851800122,1708415831,-13193377,2112424538,617995007,-1830697197,1722333360,-1583320644,-250942164,881511319,-1324376639,420612950,1407116958,215378931,-539032392,2016475086,1772663108,-1042363082,905679556,20917686,-808085138,752195287,-1573227363,1819569343,-2100846502,1048195904,-1175737899,1617033212,-1259331083,334962176,-2089409276,-883182201,1779308596,-858366937,-1335329821,481857819,122552971,-798632325,1815869511,-2031419334,1998091320,-35033823,1013532263,1255023038,-1436349870,1393494667,-76620419,-584470782,762590730,1059843454,-1837424496,2071608566,446900355,880890537,1061350158,1640331769,1724401986,1728990846,117803973,-1188145080,-1141842582,-1192024382,-1291176059,-701086058,-1009793064,-248101863,-2068638584,2128371736,-783757915,-1136430432,1199087441,638236961,-661131200,1046720828,199099043,-2003334562,986227875,-822004234,2059657878,-1215386423,-607967852,-1172921692,1971798242,356181859,310998117,63207614,1487847864,-1325545468,546712646,-1506920194,1801218217,1642026473,-872927205,1535229453,-1062887970,-998053866,-890066104,-1219265946,275558822,1970416966,1442990422,-809910216,-1651713441,1484756617,25541412,-1997612710,-1699673651,-523599283,1290135123,964422164,6606324,-1460057918,993964973,1722963671,-842244499,949895951,548117658,1470467578,1512600831,1082337458,-87806083,1111563097,-2078418999,1960069319,1964390706,-308759047,-942493402,-1038236689,875626411,369754123,-1067438734,318714105,-1794591686,-409276648,-1590962984,-1156586534,-2078930730,2102579201,-790068691,851088711,659153970,-1835882682,887997582,472413890,-1882856753,1454252059,146631741,-589340285,-1002343972,-422579499,-1697739907,598194077,1755679524,-1439432179,-1310955277,-1903971295,1879073658,2004121632,-863495887,-1690830724,1357189489,1777067111,1937593891,-1201393344,-854233291,1682714041,-112073015,-529630433,605663493,-743690016,-880009001,-2136449617,1748566102,1862722873,-1384801566,2131253167,-1406268482,-658595613,2059523757,400507053,71854148,1675095300,-1892185306,-1819047957,688293053,1954927917,-47397696,1090086154,429864859,1102106289,1674136085,812052970,1438561601,71745552,543094451,-1261818271,-289815500,1884954867,-383168999,304907895,100524689,954916267,417567969,1497031250,-1697564193,471206081,-231211034,661387918,122691402,-823567643,-68689025,2069248065,-2044687491,-1956232019,966974175,342673342,2085709915,1584489298,1505846306,336621622,-2093029475,810084161,1594339036,-1696828059,44310057,-143510021,1384268172,566224470,222956324,-1575651153,-1142291824,-1346683882,1045266397,-609773950,-1362774932,-1527805121,-561075892,1506424270,-1060118656,1049914428,-657037173,-1052626992,1684653560,-1785821718,-3870602,1868344202,1391317400,283902674,-940634734,391845414,978767114,849835119,-1215907213,-663412400,-370202996,-931716412,904551248,545763192,-1924429132,88805451,-1867280046,-1298082621,-1429468775,-1369521127,-1449975500,-938017667,1660944140,2058148144,-271313150,-183554361,-2029198735,224257051,786936977,2109974631,1085469972,-2029470109,101594627,880712972,-538608565,-367846557,2021455863,164730544,-841169652,342277483,-373812219,2077501667,352184834,-152500523,-861187282,860972021,1025041366,1705547033,1309691277,783157061,457845548,-282306379,613493841,-1653984828,-341201574,1019775569,1885810611,-1249811443,-1872375484,2114342276,-2123144499,426101978,-625850900,-1502235378,-296531941,-1606109450,-1979133189,939927781,1034406111,1013217984,-622509696,-1670084959,1919073516,293941219,62207599,2005269942,1128544116,-312797412,1984667434,-504711597,-33024825,593298228,-1861858588,1661913844,1577797286,431186211,693925065,552193528,-1296957481,-1395663922,107340141,106684304,945841063,-261918717,-863801976,212071799,469102076,-667960936,787594231,-744567542,-284147874,678510704,-828517370,832960898,-506052947,1002724097,1052934423,-1819634460,834241677,265181303,2090460412,-1494366330,484115961,-527900604,-800069399,-1043195211,1354491248,-1655939773,-45430457,1775539072,-1237657490,-1935153114,-60775320,-2098452863,-1970182113,660911724,-1400347640,1581800612,1415175921,-344491239,267163792,742797257,2064603426,940723997,774120793,-729449427,-1314402820,-1980522832,423724904,-1839946887,-2121467364,1518285937,-1991270725,923911710,157748078,-722957189,118291258,-1793258323,-1815871165,926703754,-1444972624,1594516017,330427189,1401715878,-699165571,-1679958806,1509643078,399314661,-1935803453,873162053,1211955189,-980079699,411696264,-937525413,611844369,-673997135,1563071397,1701148845,-1828619630,-369870230,2054544889,-779499044,1632067827,1175018848,-1229572101,-307847646,1007015430,742384918,1203496666,-1727608676,-79041469,-2097590249,453007332,-2137207975,-75090116,151006602,1704096903,1635886238,1716327662,1175850289,-889964221,1943257941,1532856372,1612320027,-1692591470,1895739530,-412006074,986064915,545061427,877820221,-1800611291,1767437683,2119758629,-264026018,35099857,1321512015,122701977,-1195106775,-739611229,-1104794508,1682287666,-479342764,-594847112,-271714708,-513607838,-547937893,914798848,-1486738221,1105495482,2098394615,-202537253,526604188,-919682239,430656274,-1170146639,1756672831,-1773517090,-1639893156,-1188552658,-1026410140,1083389298,-1166019933,1506758286,-1382776194,1515646576,1486124059,-1167098877,462008118,-668816653,-548427782,-2146388685,-1677114285,743483043,2060874935,-1208013220,426978290,77735669,-1645241974,688785873,-1454446094,-341236001,65803532,1465279114,-2069812888,-804463421,2100129214,-1323107975,1514676670,-468097871,836435013,-1443190613,-417518732,953811147,-319091526,-1513906132,-932177988,-885384046,2112683089,-1240941108,-1168711680,2002794040,-751711242,-1827746276,-981812037,-1734343445,1444551886,1490750562,-2124569631,12678094,536813654,999368791,388914477,-498596332,-44944473,389786459,-1024925674,900282470,-1110570692,1989885829,2020201259,-2053628057,-1439255879,-1439886016,-140189736,-518193525,-962165817,2026753219,1825104502,-643110553,1163118075,983010440,-21813868,-595097085,-46312225,-1393304747,2078428694,222750581,-1056452245,805687311,1244174775,71547638,-674558054,-1649422504,-2142863260,-517281279,-110634144,1635503152,-488192448,316263729,-1863468693,-555244768,-1077881231,-1555243093,359831624); -/*FRC*/Random.twister.import_mti(201); void (makeScript(14)); -/*FRC*/count=475; tryItOut("s0.__proto__ = f1;"); -/*FRC*/Random.twister.import_mti(213); void (makeScript(14)); -/*FRC*/count=476; tryItOut("mathy4 = (function(x, y) { return Math.atan2(Math.min(Math.log2(y), ( ! x)), ( + ( + (((( + mathy2((mathy1(( + x), ( - Math.fround(y))) >>> 0), (y >>> 0))) >> mathy0(( + x), ( + Math.PI))) - (( + Math.hypot(0/0, Math.abs(( ! ( + y))))) | 0)) & ( + Math.log10(( + Math.imul(( + x), ( + y))))))))); }); testMathyFunction(mathy4, [0x07fffffff, 1, -0x07fffffff, 0x100000000, -Number.MAX_VALUE, -1/0, 0x100000001, 0/0, Math.PI, -0x080000001, 0x100000001, 0x080000000, 0, 0x080000001, -0, -Number.MIN_VALUE, 0x0ffffffff, 42, 1/0, -0x080000000, -0x100000000, Number.MIN_VALUE, Number.MAX_VALUE, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(485); void (makeScript(14)); -/*FRC*/count=477; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var i2 = 0;\n var d3 = 1025.0;\n; return (((/*FFI*/ff((((0xbe3f6*(0xd945bd68)) & ((i0)))), ((-((Infinity)))), ((d3)), (((x.eval(\"/* no regression tests found */\"))|0)))|0)-(0xfcb7903c)-(!((0x6c50bd24)))))|0;\n }\n return f; })(this, {ff: Date.prototype.setMilliseconds}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [Number.MAX_VALUE, 0x100000001, -Number.MIN_VALUE, 0x100000000, -0x080000000, -0, -0x080000001, 0x100000001, -0x0ffffffff, Number.MIN_VALUE, 0/0, 0x080000001, 0x07fffffff, -Number.MAX_VALUE, 0, Math.PI, 42, 1, 0x0ffffffff, 0x080000000, -0x100000000, -1/0, 1/0, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mta(1131170093,-699574001,-563023720,4622006,1391736810,-961834429,1286211850,-974031710,-440235829,1424476291,1447431664,-1840472206,-1347258755,358059765,542122972,648122343,488718099,684793548,-13440296,-936808336,-1128206935,1542807120,-1493848882,-1925604391,604516199,-256976225,67174128,978019531,-958416139,993026662,932781986,-1920984662,1576497110,258107358,598830447,1439575179,-1406750354,934501171,-1587917353,-972866632,1293946367,-1786848573,-638876828,-1915188422,-1078397729,1509820453,-1979193257,-103270655,400459849,675698320,154373134,-746247882,208685347,-1868824831,-1085680436,612496936,-126950958,1891660557,-450274873,-761721114,-2018157133,-3561573,618356123,817463651,114884281,-1727626569,-2070447376,228029022,1219500951,1925517817,427623242,-1479204304,-920953615,545789083,-787063033,1185786948,-1989466412,1050918250,43260066,1030096427,1929575606,-1035566353,-382323870,2017021030,-889004265,448480614,2084151621,-1904133338,-1234980026,-1532036695,-1227531060,-52255372,-148089133,635532735,1889944392,550613544,-941225132,1545668990,1436131413,-230634385,-901177975,-2067585966,1522970300,-1038696160,1993147340,2003133293,-1912711643,-1773227953,-846416444,418463006,288231946,-527546110,-1918825653,-19932913,-334992,-2123156275,-1280023283,569334911,-1270086960,1465998060,1190247936,62722046,41731579,1111576790,1094905548,865745974,-1817794723,-1777663343,931490721,179173200,-1710558605,2101658272,-447568993,1039320121,951063576,875486276,-257961172,546655745,-889079947,706967278,443257705,-193607121,-953072648,-799300848,-1893836756,-1057611224,-751735140,185304718,-306494421,619767834,-5313151,1282890869,-219720511,-1549828596,961872815,2086094369,-1552037516,130154803,-2011556315,-1310710549,1581206803,810111112,-659092036,1451289437,-73343362,954754609,-125327141,1632913701,1646365704,1960084347,-1196724983,-1503825023,-1853610243,-1015235432,-210739281,929327485,1028817352,61235152,-1250391950,1649414395,781797826,1663576925,-403082882,-125704355,-2061242889,-1032318803,757406468,499118406,-1322936422,1698484746,-532023087,881867758,-1614279692,887418542,1784891589,-1182144679,-17986437,-1150673716,-927811418,-433615493,-1634254172,1157427110,-231422491,1488401510,349989921,149454690,904282062,-1734271289,-135200817,-861903917,525253540,1208345010,1905436071,-1156643151,-1705970780,1825961791,767279752,1100804559,-447364160,-1627796619,164126787,-1216770422,2043819067,367250301,-1776890367,1602387743,-869398976,930138374,2026281804,-926269975,-422961730,1155740213,872182509,-1463659901,1461085227,-404308759,1695301121,1373489251,1116597336,1647936764,-1239558980,516309436,1188904290,-1998187519,-1862153909,1474232077,-803600251,253167574,1507212888,802318152,240401462,1398066557,294353465,-1449334493,-363489489,1563032418,-1102201748,-1562352371,-1591908221,-912833562,-664677535,447386268,108777932,-1349599541,-1982904674,1168182455,580949831,-684132194,1237665866,473063124,-2014385947,412676141,1992735116,-1494787514,-204468454,-1891021992,-378890769,649091936,1206100827,-735381784,841635107,-704056310,878576899,-20192192,-121471099,-1193518961,-2059104019,1100698242,-770020134,1941538733,-70847453,1772071455,-169633712,-1527737040,1390232640,-36462835,308545041,1800004022,-1391304507,-1225186102,1462124894,-127879221,1323019565,-1432575971,1963865721,532643367,-1120072509,-238481072,-1367600569,-1648254940,469949700,-1846021441,184062682,2057069599,1428947932,-1103463441,1693852439,2059135199,851802023,-1545222583,-656229538,31046862,495443632,-267648811,-1079103806,-1894293070,770084541,1144157982,589971646,2057294902,1486499534,-1396529134,1834626539,990140639,2052033825,683310816,471463494,935358604,867542888,544584086,439188897,-175892879,588187512,-706622310,-514892454,-1430228165,-54681409,-118413287,-1914520445,265932909,-320877485,-1979529157,1026499796,-428707344,1365768038,-1765913433,-1989806711,-768075055,38265954,2095292966,1900028500,367605486,1729365699,515819518,1891046778,386756311,-282537405,-1649358887,-364382385,-364649672,124342431,-164690342,1362887942,1273185652,818509909,-870752367,308110228,-2071256556,-443893885,351006333,-231604330,836118237,231744347,-1938265561,-1844248195,96246942,-1584086505,-563150297,1714339183,42814933,1437402261,2123915122,-1714327825,-1631183329,-1106443455,1876654838,1489199031,1994063917,-1886251772,-435406510,-1757143904,-734087764,1874236860,-1800327615,-951270769,856782886,1804950153,-280151205,-37242951,-642415872,-336132962,1380376532,-230924145,-603299921,-463582013,-646421214,-225293196,132394157,1081766446,-2066389053,1924602557,340990705,1643594950,581798059,-388478982,-554267998,-1996250327,766713091,-397417739,-1245541971,-677604515,693878960,-1914050509,-1141072451,736825358,-1356654287,-2007389045,1408137232,-668532527,827644073,1329081430,134188070,928846896,688408383,-220199123,-1496072611,226491900,-652029891,-320356657,1832751075,-479311174,113675076,1984184652,2114944161,2057185139,339423983,1512311364,2039238784,-2014433208,-1897219640,318797706,458398319,1524708251,-1372025258,-482560028,-1257237163,-914126731,-1080202763,1782340745,-1561369791,-1608322833,2024458733,1960464829,1380557735,2042906823,131388763,969774531,764006235,1607969075,-181977913,1911091703,-1479164707,-999346671,-1014061070,-429886520,182247967,-111701591,-347645674,-1599527717,-1173783118,1332735934,-1537113468,-324748571,791550478,-1354260261,2055073001,-665191934,249046307,-1682342804,-442997695,1262719008,1442104919,-1217859721,829026136,-1730495080,-582797368,1363167523,-1026043091,-1994661328,1182585626,-813890582,-1769483591,-818240583,-168432804,-1221037424,-1990643622,-117432037,-1691044098,-836870085,1428024290,-348045570,-280849089,-1324991868,-1773352042,-2045048586,-1506327638,-103170204,196235593,-1727419527,781334420,783018387,434737470,158678808,-803832837,1150000002,709041305,-804948033,-1457833822,-28303038,-738690916,-1383041303,-1710432174,442102123,2131342393,906132774,-1449339902,-1391326580,359468905,360630327,-245629696,-1309013421,-1811603577,-1924664058,-588754941,983876033,-1565291299,398181609,-207737783,1831298799,-525350559,1217056101,-1087750757,516421821,1324885584,1408793426,1445505313,-947159199,19473223,-1464899983,1488919652,-59168415,-1463272876,1366662585,702878229,-1812191618,-1584448846,-1770016446,-1396738636,-2046994416,-1175519200,1961750457,1615066220,1897915819,1542492411,-213095718,1486059601,1644471992,-1828385463,-1328189532,-53429841,-760402307,631349210,1826554171,112074201,1743468261,254386673,-601386493,-1296788237,227431544,1282917186,1958401982,-947778165,730809633,-584302879,-109443809,2049012966,-1386170857,859547470,-1916085543,267517472,-1482822166,-591075631,1168104620,1208551368,-1562579049,378755959,872296181,-2050403630,-270126312,-157106305,1479460344,1990450251,627193554,-528626690); -/*FRC*/Random.twister.import_mti(41); void (makeScript(14)); -/*FRC*/count=478; tryItOut("neuter(o0.b2, \"change-data\");"); -/*FRC*/Random.twister.import_mti(54); void (makeScript(14)); -/*FRC*/count=479; tryItOut("\"use strict\"; ;"); -/*FRC*/Random.twister.import_mti(60); void (makeScript(14)); -/*FRC*/count=480; tryItOut("\"use strict\"; for(let c of ((neuter).call(( /* Comment */ '' ), (Math.hypot(15, 21)), (4277)) if (((NaN = \"\\u3AF0\"))))) throw z;"); -/*FRC*/Random.twister.import_mti(226); void (makeScript(14)); -/*FRC*/count=481; tryItOut("mathy3 = (function(x, y) { return ( + Math.hypot(( + ( + Math.pow(Math.fround(Math.acos(( + Math.sin(( + Math.atan2(( + Math.fround(Math.imul(Math.fround(x), Math.fround(-0x100000000)))), ( + (x > x)))))))), ( + (mathy1((Math.max(Math.fround((x , x)), (0x100000001 % Math.fround(-Number.MAX_VALUE))) | 0), (Math.pow(( ~ y), x) | 0)) | 0))))), ( + Math.max(Math.fround(mathy2(Math.fround(mathy0((Math.min(y, y) >>> 0), Math.max(( + x), Math.max(Math.fround(x), ( - x))))), Math.fround((( - x) / (y | 0))))), (( + ( + ( + (((( + ( + Math.fround(( - Math.fround(x))))) >>> 0) ? ( + x) : (x >>> 0)) >>> 0)))) % Math.pow(Math.fround(-0x0ffffffff), Math.fround(y))))))); }); testMathyFunction(mathy3, [0, 1/0, -0x100000000, 0x100000001, -Number.MAX_VALUE, 0x100000001, 0x100000000, -0x080000000, -0x0ffffffff, Number.MAX_VALUE, 42, -0, -0x07fffffff, 0x0ffffffff, -0x080000001, 1, -1/0, 0x080000001, 0x080000000, 0x07fffffff, 0/0, Math.PI, Number.MIN_VALUE, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(-990569355,-525701816,-1506838007,-1103231147,1852034130,165908793,-1236691952,749024821,-1066783560,1085693041,-429165342,857095256,169276581,-69266064,-669079304,1705267161,-933048119,-607700561,-1116938982,905611903,1780384645,1392550985,1530993392,-1178878511,-1257453727,603405246,-1501525487,1388259935,-2089895023,-1831916296,728961494,-2035002082,-1301038526,1598854453,-1699453398,-1678069628,2033025275,-1571912134,-870152979,2009143979,-1067866706,-1261256349,2008587572,-1980963098,-234342165,-1420406588,-856888224,537392086,-1292856043,166083579,-253737818,869739137,-59195204,-1127571236,1418096720,1249063333,-1620576776,-788382897,2104997276,-2131356606,-1621085294,1284189786,264161702,-1989887991,-1898353685,413830883,-386713735,1584138992,360328566,-985855536,-1401423635,-1749466578,1805900243,295792563,469508047,1886372567,219708690,2022589590,-2140182895,5041048,-1784529165,726446210,-1992582412,-849269085,-360178066,1669025388,-993117599,-1118721429,-1048367596,-1573044273,-1791620180,1110949741,1911650226,2000473626,-1274455152,-816332977,1094622897,478396462,-631948799,611697689,1287239434,-153474254,-996997935,807735750,-145832130,681538746,-481949792,-31660166,-1858361017,1507278886,-225380436,1455675210,-1609330878,-1333759406,1329002496,266871264,1007351228,-1390513160,-488006356,-629604837,-1695928063,1445507609,1950172041,-874493544,-158364892,568187381,1145174529,1154551289,-1553876990,1842640514,1963995161,849889897,-379329193,854844319,67043100,825939598,424963108,-133959449,2136123374,1144524500,170487146,-1647804226,-1143625452,-367043841,-92802746,1942046245,982284158,-1713934356,-68902897,198036627,-362933876,-1257909624,-1600896506,1951939419,858131528,-1661398596,100786245,-1482589684,1665871479,-508767553,-340098035,1098702897,317131792,1968874074,2052505180,-1148412913,-1487228387,1659419990,-179677117,1121351994,-888198568,2036712912,956383784,482981481,1785904693,1339874653,674643453,-1992269241,1236238864,-2127358557,69456069,-1241390929,1554465617,-1351308899,-1737011995,663578665,1429170264,-337731305,705499476,-886511089,-917696322,-1087280546,-1499279624,2123643584,-1603412823,-1969129511,1528501183,62024374,-449652845,-1821625519,-792009952,-1382250923,539777393,-404991631,-1007275462,830233286,1215562077,462080551,-2055604784,-490214459,389633943,738932949,-1954624089,-357198792,866561425,1396850152,-238039056,-1871311241,-1058599406,-300765685,-1636461161,168270298,1700522526,-903015897,-2140515557,58013170,-1144672387,-124366381,1573372771,-716540714,1162292880,-292207109,-2071328601,1154094810,-2040604514,736396135,-246413153,-953318706,34274854,286793467,-1262733906,-76532151,-119540474,434799795,690026230,208234887,1920010644,1190501545,1156159469,1550517483,152660912,616680098,-1372454928,1252192601,1009506286,-1672976985,1521987233,-487254712,-494930707,1196155693,303684731,-1719038260,355819326,1036657588,1503047870,1148878737,1549625060,-1531248245,-1161040375,-314091111,1554525743,-915708883,-1205469721,-1257968659,1738757754,1598910269,1522406987,1243162068,432165365,1013275378,-1748051239,-1751006706,1964426117,2047769317,342140887,-1495446219,-532955901,-1234369025,-1403036333,-1420491928,1688460761,-1272404029,1255326843,-2120379047,-108169815,-985620831,-258344693,603355216,-859451317,3209596,-1265007479,-442926714,-64413178,-292038927,-296137894,133779503,2024301360,1536460559,1705795728,-952437642,1553098531,-1342941437,-952251204,-296207473,994322243,720408384,107510655,358351008,-892474218,494938653,936382589,-1161120568,1851330554,518621648,1527279863,363777408,107806614,1563203413,-879378135,-388099146,642008527,418078996,-1407850486,1198092783,-364783606,-1623764380,1110931552,-347462632,1190727553,873300301,323668405,514948028,622380973,1286429457,1635187386,96468396,1057544904,1158930335,-1999836432,-614853249,401186138,-1474815666,316989709,754057650,-695821451,2128343577,-1648309451,875807272,215587706,-775687043,940013800,-1451471710,1046852977,554690201,1787688787,-774996464,-1813455385,-436066798,-387354334,1634316676,-787949102,-1830161467,1446044831,-1142916213,651391227,-1295380027,159931801,26475154,1719178601,-1718829619,-1245996822,-1396265670,63804528,-704589788,-444648381,-360054877,395567987,27617893,-650971644,-1590083963,1242992099,-273237516,1843864543,1632928610,352649261,1076053831,-525121037,-859430694,174315897,1923304568,1993796799,497677547,-594740574,-761729947,-792142252,-445800565,798832849,-473383994,-623173329,693944606,-967326089,945933437,-796854495,-1106706714,-2023582842,1396979566,298994822,-378525271,609446240,1190261625,-306903193,-1869185334,50266963,1870082114,1825124327,951826136,1555893519,2112201349,1853190748,-756375552,-1284394711,1544189692,-175463225,495028570,-1793853856,1482527562,-1959733299,-1574803680,-307633058,-1394418804,-381005269,671623049,-556880216,1370979513,1511481734,-2040991508,1535866570,1896806959,-443420940,1424805699,-1991354491,-1152879683,-1518716035,528616475,1803778171,1893058113,-376677226,1185953460,-1444931297,-854969502,-798233806,841413004,1022936140,-2133961875,78461115,-3962173,-673309986,1487579957,1930377014,835075502,-55095142,-1975161097,-1136326517,-677667544,-602454309,-1056444973,-744008807,-1074130954,-2024086498,1338849236,-1069506584,-954929095,-40946082,696751941,1049875608,1205636326,854085542,-616169783,-997380075,1921165537,804971254,-1228120813,334328470,-755628458,1083000608,-1763241208,857996247,1366593561,581953234,-578537993,116799513,-450916066,133798033,1456687239,616087088,-395655749,-2079980613,-750572607,-190862461,1386758768,-1471863962,-353286444,-601376613,-1146649525,-222192174,1238891777,-422619113,-1700504293,-559525326,2138200836,1865707289,-1592891157,-1905853590,-1282114192,1894635909,-1339486215,-589209337,555082218,-1294966196,1920230928,-496820626,-354167594,-1225073395,451784433,-675432036,-727290992,-1816696793,599422850,-972526771,150816535,-1554101338,-278892759,-1937971837,493438444,26372769,-1673205296,-834790026,-1536703303,-2107159992,-1347634676,-840714548,497781364,-489532066,-1036636247,-713170460,423662466,1209644365,-908114329,-1313589893,1364737639,-1040916483,1009423499,-1203027636,1808483785,1498857559,-63700754,-309223375,-1642739118,1928263054,-2110987326,415843899,-1866169159,-2008693639,922143223,366232262,-1007472047,-1929007195,1427583314,-185624226,-241523186,483654532,1996609919,-903148869,-1536754088,-1049440545,1037813798,1095352838,1617809210,1310498986,-834956656,1944004980,-974469359,1267843107,957740618,2023638581,1609697532,-1589949662,-1747979282,-1261301148,1819119424,19516817,-367238476,89439850,-331485239,2088976609,-373260611,-1072599446,710296921,-348237270,268657285,560599955,-2018452971,-829588409,-1611324313,-740002047,1506103713,-1545758740,1038455919,233789076,32522531,-1022501480,129243972,1880990392,465663766); -/*FRC*/Random.twister.import_mti(57); void (makeScript(14)); -/*FRC*/count=482; tryItOut(";"); -/*FRC*/Random.twister.import_mti(63); void (makeScript(14)); -/*FRC*/count=483; tryItOut("\"use strict\"; mathy2 = (function(x, y) { \"use strict\"; return ( + (((((( - (( ~ ( + y)) | 0)) | 0) >>> 0) ** (mathy0(mathy1(x, y), ( + (x > Math.fround(Math.asinh(x))))) >>> 0)) >>> 0) , (Math.acos(mathy0(Math.fround(0x080000001), x)) % Math.pow(-0, x)))); }); testMathyFunction(mathy2, [-Number.MIN_VALUE, 0x0ffffffff, 0x07fffffff, -1/0, -0x100000000, Number.MIN_VALUE, 0, -0, -0x080000000, 0x100000000, 1/0, 0x100000001, 42, Math.PI, 0x080000000, 1, -0x0ffffffff, -0x07fffffff, Number.MAX_VALUE, 0x100000001, 0/0, 0x080000001, -Number.MAX_VALUE, -0x080000001]); "); -/*FRC*/Random.twister.import_mti(279); void (makeScript(14)); -/*FRC*/count=484; tryItOut("\"use strict\"; /*oLoop*/for (var aumghn = 0; aumghn < 4; ++aumghn) { if(/*\n*/undefined) m1.get(g1.s0); else if ((x = -9)) throw [z1,,]; } "); -/*FRC*/Random.twister.import_mti(407); void (makeScript(14)); -/*FRC*/count=485; tryItOut("mathy1 = (function(x, y) { return Math.fround(( ! Math.fround((Math.fround((Math.sinh(Math.min(( + ( + ( + ( ~ x)))), y)) >>> 0)) & Math.fround(Math.imul(( + x), Math.imul(y, -0x0ffffffff))))))); }); testMathyFunction(mathy1, [-0x07fffffff, -0, -0x080000000, 0x0ffffffff, Number.MAX_VALUE, -0x080000001, 1/0, Math.PI, -1/0, -Number.MIN_VALUE, 1, -0x100000000, 0x080000000, 0x080000001, 0x100000001, -Number.MAX_VALUE, 0x07fffffff, 0x100000001, 0, -0x0ffffffff, Number.MIN_VALUE, 0/0, 0x100000000, 42]); "); -/*FRC*/Random.twister.import_mti(553); void (makeScript(14)); -/*FRC*/count=486; tryItOut("{ if (isAsmJSCompilationAvailable()) { void 0; validategc(false); } void 0; }"); -/*FRC*/Random.twister.import_mti(565); void (makeScript(14)); -/*FRC*/count=487; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(574); void (makeScript(14)); -/*FRC*/count=488; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(587); void (makeScript(14)); -/*FRC*/count=489; tryItOut("v0.toSource = (function() { try { h0.keys = f1; } catch(e0) { } try { Array.prototype.shift.apply(o2.a2, []); } catch(e1) { } v0 = evalcx(\"/*MXX1*/o1 = g1.Symbol.keyFor;\", this.g1); return o0.b1; });"); -/*FRC*/Random.twister.import_mta(-1131211138,-1065560926,-1263206643,31918742,-2142204760,-945278806,499304352,-251803640,473825644,480805536,-1169971734,1188621218,347294630,-1437036021,-742696114,1840852890,1256444654,-640353013,-1867398514,-1110065765,1509477202,166978584,-1021010610,775672840,-1049763051,-2001209724,-1625287246,-193543440,1910251684,151291364,2126481418,927772541,608459333,-1104444868,301412030,269800549,212257351,1779041481,-1162498368,-1424227046,1631827790,-1770673468,-1475041025,155647617,2107838443,-1195845480,28607826,-630744109,1537433038,1677415577,-1309810768,-609382742,176791341,-485658707,125393840,-1429618303,-301227677,356033205,1890503776,-1505999521,552968601,-1371570740,1353768889,235925016,-411367902,-1853231313,-268937707,235941376,-581104085,418207351,326502946,-1613337856,-1608631640,1749151650,729431875,-1161218558,-337854621,1160267084,-2128504801,1082063935,-363046985,-2084099740,-1334505382,-1257991969,-1230416113,1189125041,-299371857,1582449554,-1882545186,2020821616,592875936,-59405364,1226625004,905858878,1215246955,-361067247,-591927743,-189830401,1574257115,360652882,1780057472,-638659483,-2053718764,1028742022,-1320146109,911907649,702364474,-181544372,-2071894616,-1118930835,-1205682076,-459903966,183008089,-807510170,-318417372,-1037909435,-1389838921,-2085268668,-1109183789,850587720,1756935368,2108703529,1518501832,343124619,1760048334,894351029,150227795,1633486212,-960285512,2137115092,-1589021695,526983224,-1308285184,-476290592,-226574447,-1169102049,-1075517859,-1475024277,-155554566,-1767645550,761149405,-1679638585,-453354825,-563760379,260603108,-1858412996,293794330,-446133639,1084931910,-82766416,-18534915,-768775349,1283987326,-730812184,332858026,953816483,-773418321,1037092352,-1331803646,-1530116204,812222112,-1194871949,1811246922,-52461357,-1192990125,1928243357,448732002,-84190039,-1654702989,-938068707,-492361542,1852724378,356550697,-1258771970,774003400,89549400,-1419884533,1896055758,1516374111,1444738840,-685805094,62162985,2133344799,-908006103,-1110450764,-524501353,142679564,-1804319115,-2126049794,636439129,1073052181,491636694,-1317957648,-85886977,431148066,-1089144541,952943377,-753951453,-1890803317,-916571470,1476984859,2110557699,-963963097,1624429708,-1297985577,-1201271269,2029009413,2118105609,27999104,310736254,-1520735764,2005500966,1700374681,-508430972,-1374567199,-160785473,1321636739,-1281888248,-1211844997,1978658296,2028361858,1061331867,-1108444945,439370954,1175355837,-185088551,-24973536,1266173712,-354816311,-703109051,-1348134732,1528641572,-1513276473,518892527,1007106404,-1113672196,2134787015,-79242503,-681815040,250433905,1323842032,-1345019443,-1203446500,1584638357,1189673239,-1450621372,128434960,-494620549,-1093740878,-945280874,1012609369,-696967955,1961770743,-2127167931,1666859260,-2054207701,947785536,-1769422173,-840831436,-1270872921,-1292941990,1533903137,250725823,544051736,-784364578,-1801773646,541668608,-1523650411,2044638935,1598558007,-1258554296,-1195818553,2066881969,1919233647,1825152146,-269162956,1190643315,604260245,-979426349,-1738128738,-1461875030,-453342547,247876652,2100380247,-1621183248,-1715756482,1677883263,-271400977,-74056584,-1142324854,-1928131290,454743232,139433308,171334686,-172437105,1008288369,1226205791,-1407429928,-540141634,593119283,445469537,1433316928,1418358181,-1661986098,-1612948092,-1116362361,-189001881,-662018049,-1604693153,1194627860,1005980545,-717770415,-1463535959,713904593,1261044786,368455358,1927105056,103835627,733818397,-872646899,681252186,1061402006,-452048391,1748725477,-25686977,1591950864,-1562256601,-690235957,-1383998018,1337732908,824503052,-1487216826,-857304215,486397759,-1162448002,-442836584,-1997837727,1112995707,1738021979,-1706709156,-1064901960,1719764269,2105335570,-1651261206,-2123715182,-1570283593,-1993101480,1826537904,-1995048631,292991333,8365612,-1198328681,590853740,-1161841098,-2026353577,1361830397,628631744,-1490699844,-1367315751,-301556876,-148748367,876926454,870295692,329952555,-2131503773,642167510,-442315365,1495961420,-346659067,-864143778,236583480,-40321420,365056806,-605816136,1694839364,-1654251179,-69670663,1423038358,1206093170,374725387,-2112625035,1378994322,333086129,978434129,-778270450,1650396004,1024868985,485555618,1901305070,-1745446556,-888873943,1461668707,1111812396,-1993004117,1138905045,873343061,-1368054416,1050571993,1463808678,-1222422871,589620052,6563737,-183325515,-1019599071,-1698825004,-1801181976,1744349947,595218834,1461381286,-989130245,215530440,210179835,-1078410780,1261459407,-36282942,-1985074243,-2006978990,1843187365,-1489137995,514047132,-1297463142,-1043989164,-2001772286,-1751063491,-816691633,941266899,1856265007,1865660725,1421467139,104562540,249032690,292531563,-156841290,1920581941,303133612,-1657020231,1133790958,-745563197,569960928,-1997262509,750605983,-2122935371,129602876,1674388288,-1329887106,-637465314,-731897808,1244573688,-868453147,541189106,-560149045,-1917113124,574518027,1380705218,-367389457,-568344446,-1253084385,576562404,1033380245,-839332258,1207882537,578509634,619785365,-1537183931,1571794759,-1129096849,-72305612,2003804779,-1221083366,-2044758703,-2108051919,-2117939827,-1035695920,-257634142,454030925,1310052257,-1739247763,2146845526,-1315731705,1422815491,2075604614,496884691,1212431446,657974540,-1251572528,-728380953,15354652,1235316111,-1155242610,420263108,-1576858546,-1731644779,-1109385575,1074763408,-1369605871,-1186464797,-285542428,-1515450591,259255267,-1589530270,1089136352,-1237458939,1570108072,1420532075,-1992714857,513053393,1758422945,1268444084,-1917932651,451206559,139059517,1749407842,1566625988,493009302,305263024,1375396012,1874010072,-499112897,1688467778,-1495461361,-2084972364,-1299469254,1708358857,-1469565374,755000827,683022306,1943058630,65364551,743742792,1706812050,-377360219,1571390429,1762381344,-547171415,-1294380489,1888049043,384411861,-2114285832,138519045,-1184164998,-1003104614,-1810053588,1531087944,-350433361,135402243,1285693606,13051278,1772662910,1754654864,-2080402785,653175775,-820959600,-1494181605,-933286955,-1703175158,277198791,-228901696,-252296850,1459515562,1964264520,-606065243,-1500261416,158845859,1028176533,2085418764,-2007466852,-716223883,-1175349121,1738011852,-1475294000,217657961,1547763569,1611959187,-2082894277,-735057849,1453301316,2080188876,973630083,-1067473008,1834896302,406317654,992311765,51945169,-590741648,-104309329,-1910207526,-567247639,-802416668,324607166,1244675126,-1470660996,2083751341,986466803,1088773726,1993575218,-70532460,-2019962967,1416688394,-1951499820,-1939995343,-286405662,665808241,846227054,479328342,-113682409,669725255,-629782152,-1215508640,-2093430513,-1704475481,-1602132604,802326514,-1263720056,-840120026,-384113235,1623021336,1343021964,-839682205,-823141587,1673660384,-890296823,2079104649,971936734,-1338200497); -/*FRC*/Random.twister.import_mti(19); void (makeScript(14)); -/*FRC*/count=490; tryItOut("mathy5 = (function(x, y) { return ( + ( + ( + Math.pow(( + ((( ~ (x | 0)) | 0) | ( + (Math.fround(Math.log(Math.fround(Math.tan(y)))) << (mathy3(((x * ( + x)) | 0), (0 | 0)) | 0))))), ( + ( - y)))))); }); testMathyFunction(mathy5, [-0x0ffffffff, Math.PI, -1/0, -Number.MIN_VALUE, -0x080000000, 0x100000001, Number.MAX_VALUE, 1/0, Number.MIN_VALUE, 0x100000001, -0, 0/0, 0x07fffffff, 42, 1, 0x080000000, 0x080000001, -0x100000000, -0x07fffffff, 0, -0x080000001, 0x100000000, 0x0ffffffff, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(190); void (makeScript(14)); -/*FRC*/count=491; tryItOut("function f0(g0.o0.o2.g1) \"use asm\"; var abs = stdlib.Math.abs;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var i2 = 0;\n var d3 = -4503599627370497.0;\n i0 = (0xfee435b1);\n d1 = ((/*wrap2*/(function(){ var goameu = window <= ((encodeURIComponent).call(window, )); var xgzwoo = window = this; return xgzwoo;})()).call((void options('strict_mode')), (4277)));\n d3 = (4398046511105.0);\n; switch ((abs((0x37c9e819))|0)) {\n }\n return +((d1));\n }\n return f;"); -/*FRC*/Random.twister.import_mti(472); void (makeScript(14)); -/*FRC*/count=492; tryItOut("const tjubeg, vbnvvk, x, nqtegg, voiwvd;g2 + '';"); -/*FRC*/Random.twister.import_mti(539); void (makeScript(14)); -/*FRC*/count=493; tryItOut("Object.defineProperty(this, \"e2\", { configurable: x-- ? (new Set( /x/g )) : z.watch(\"constructor\", ((function(x, y) { return (( ~ (x | 0)) | 0); })).apply), enumerable: false, get: function() { return new Set; } });"); -/*FRC*/Random.twister.import_mta(1587551880,-1804780033,-137311262,588031232,1672495052,-1141649563,-79379675,-727516062,-1695521352,2061072398,1075192899,1564691829,1227876385,1694832239,2052817206,-1698092909,-19752555,-1248936827,1313621423,-459043845,1764048041,-2035302382,1237210776,185862607,-2053241322,-952144933,-308574907,-1212393955,1016648993,1375444778,-308453804,-543996930,422493810,1177319597,-2140309626,1778196298,-562793586,256615628,-927604172,859151689,-659206495,-319156928,1432354508,-1956355659,-1658126343,1197725589,-671719818,-580245863,1928599437,-862531608,670591149,275778476,-1999641349,-1658822637,30899395,-869067931,-2116091321,-766676257,1409897202,2084377356,893524482,-859242858,-889243310,1950568504,-206103542,-905595072,-479692731,-368469875,1775059595,-234114779,2021955563,-415718834,-230718848,250347855,-1666820468,782395326,-1842286076,-2103997795,-1222508191,879998057,1041618916,-374796502,-1757115981,-1175769634,-404412716,-429951522,1209976005,-1299983041,-1465094945,289473484,2006689897,-542506376,66294619,524035492,888980674,1253268838,-1555000528,1505716515,-1275565110,-604621532,273929676,1303950697,-1499999,-1052097634,1947737466,1232826165,1849521229,-881252541,-650437064,886966163,970055077,1372727014,1024193068,2127252015,-1873016417,-1828962624,1555566644,-708257786,144939144,1542407612,1167111540,1239598758,904689557,-1211252013,824461247,-123606593,-1731808128,241303463,1460073224,-92491239,1280438875,894832328,343265890,162930610,-1719056755,-1343156783,308287043,-914070454,1004058842,-649198620,352543172,-483115135,1330739751,-2081298200,-1669224142,327415109,1084242508,1749503136,1898621566,-423820369,-1716079356,248636207,-1446524181,1862609546,1249156254,386621587,-1766373163,-2110473973,1122210829,-1435500656,1973233672,587515663,-764199682,513452115,1189885769,69748242,-1724013538,-1410606614,1968953037,-1541611992,-825839054,-197197817,-1301506001,1541938957,1592511069,-323805367,-78098468,1612078263,2106713544,1349685537,-488989112,1724069440,-794391067,1188037772,-764176831,1196954071,1341877397,-1184113840,1172020777,1489137980,-561318897,199351110,-1370999018,-460449683,-89044509,-6121308,-261480432,-1468175576,-1620779059,1922432891,-207747884,836977304,-63475849,1857314006,-493561181,-687813709,-1165585011,-101923369,782862584,-925106802,-867693197,681356700,-1430307227,1853962027,-839943438,1254543510,-735629022,737152591,441098724,1820315597,1264227953,1225807749,786048389,1893783048,-660616006,1185932366,-712995385,-222013133,1718499586,-1610463304,1317157138,-396487952,1838000717,-448307305,-898783588,2087187588,-562911827,733482563,-2093132526,1851520217,-337119658,645525432,1828211846,1152275905,-1588977753,228566055,1290363673,910317552,-444869543,-1902412053,-1188677786,1726065074,1588405286,-1674140357,745751895,1621611137,-1011396956,-1955747506,482079090,1079581919,-1299052318,505226630,2043401798,-152324511,1158031893,-1735296844,-1196796452,1028826389,1515633156,1327628520,1311797641,2042315262,-413536131,-510488513,-359639677,-2004401045,1201429757,-1673573989,1547905763,-593419346,1985320346,1186224853,1805845137,-1905240001,-1634688064,-1090463342,-757269468,1216930878,-1858322861,-1938374719,969816664,-141502812,-820078257,1086103645,755861866,-733034629,-469395383,392404020,798832264,1718721519,609965679,803983489,551185113,-572597050,1160113793,1416934925,-1052887223,-147829100,-1976351072,330775724,175654313,714050911,705785321,1837876956,-1200045472,-1849505329,-1957592858,-78803016,1667008801,1472076278,10354543,-1619832607,-1482270005,90449392,919533099,998258310,697528094,1184054035,711369471,-411342553,-756601795,-1956387823,-1643301771,1936084466,-1179366513,71703511,-855782159,-1827314857,1559294280,1565033328,-1803339674,-1360894442,-1674191179,470632189,502515458,1278889764,763372900,-669845233,-1739510069,903062659,848037959,1623170185,-436325724,1112679028,-213114,1169876840,-370250041,-2112260120,1112884082,-152288923,1402238281,-2140761397,1059908507,-1961800659,-1700315871,-1878954296,-1243921342,-1180638567,-2062867282,140347195,-1120028718,-698318687,1047660569,841130862,-201515,-1781633315,-1932138396,-1169721411,-1661747595,835094798,102616771,-628026727,-1825895324,-1099363246,-216318791,-983562770,-1541963455,1295312511,687836093,788128309,-333595331,1741571039,-1715838184,1640248107,686062879,1650541685,1650152603,-447132831,1990596492,-469833339,-1026376674,-43373352,338082822,-1241075274,709119683,-1754988438,1104132584,-916985317,-582087070,-1765093375,-644137170,-844106061,-1144485137,1896890996,1689550417,32794880,-1222334799,1411154826,1152386312,-1222831269,-2073237817,-1092159134,762993253,248230888,1836617758,826163845,-603679938,1087003402,855571758,-77817714,-16041284,-641220616,926194678,-1282528165,1853457748,1331932047,2014609584,-1665894013,-1242692118,1709778421,-147665362,-1909215124,2065711414,-864357091,1190168768,1887089148,157849649,-196338468,422618748,-1734544449,909983846,277366240,1871320495,2038773615,-1647593102,-1514065838,-248736310,-918120185,-828213793,-1753582842,-193269194,1092452361,-144739335,699253457,-1394011605,-18542840,-1931176653,-260298277,-58792497,-1260639423,-1656257576,-1066902577,1976421494,-1738135328,-2009071361,1884943152,-245342400,954680378,-1785847316,1668726629,200341517,139549564,1933320199,-654046004,2016410978,1557058812,-41870649,-1358939611,1385922532,1758089313,596090868,-2097244794,-124341252,915167627,-117839813,757842422,-2063812697,-1870580569,1763416399,-2027126003,1669648610,-2074432297,1004156929,-636999959,1249751084,-248763924,-110340492,-376803185,-1831959355,-158383408,-1168985074,-1340027998,-1313766055,-607910660,1618318440,-1494896193,610147585,1268762361,2113335164,-1899858667,435779136,-957577263,-1065690022,730667627,54040517,376793835,-24405485,846272715,490086856,-1928191404,704818679,1906313617,-489853178,22687373,377247106,407839253,323648464,-682613644,909772002,1208714916,663070154,-707165116,1027874503,1448098232,-585326613,1665080294,1667908041,886508327,126101873,1842987003,585938616,-54654343,-962128973,1689166107,-1747365841,323697823,-1627371120,-1181215640,-1310080459,720736888,539993118,1678188161,-2081753534,-220481673,-1757848295,-1352670035,-1732706416,-414662144,-1159069570,1128396638,-1423603302,-1259261420,-723633946,-559980136,-1285736915,-1515210195,-1310777059,312728463,370194782,-370817137,-959959487,1735934001,1809717456,201519311,-989122043,-1270493735,-1627764073,439941910,-1518433072,721900709,1811955236,516532487,-1334591001,-1900903973,-2075851821,1607431077,1650851518,-1192588488,155661030,1225059816,-117594871,-423305246,-1685679370,692188336,1891262017,-1312253239,1778446014,-561440101,246038549,-1016349018,-376418389,-380786563,-1550425731,1234322248,1030376947,16382587,-1861686949,308469876,372195375,633684163,-2059744080,873673968,-478698611,218848223); -/*FRC*/Random.twister.import_mti(49); void (makeScript(14)); -/*FRC*/count=494; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(59); void (makeScript(14)); -/*FRC*/count=495; tryItOut("if((x % 3 == 0)) { if (x ^ x + (new -2(x, this))) g1 = a0[v2];} else o2.__iterator__ = (function() { for (var j=0;j<39;++j) { f1(j%4==0); } });function arguments(x = ({ : intern((timeout(1800)))})) { yield new x() } ({a1:1});\nprint(a0);\n"); -/*FRC*/Random.twister.import_mti(393); void (makeScript(14)); -/*FRC*/count=496; tryItOut("const d = /* Comment */((makeFinalizeObserver('nursery')));h1.toString = Promise;"); -/*FRC*/Random.twister.import_mti(453); void (makeScript(14)); -/*FRC*/count=497; tryItOut("a0[8] = (yield (4277));"); -/*FRC*/Random.twister.import_mti(489); void (makeScript(14)); -/*FRC*/count=498; tryItOut("\"use strict\"; v0 = Object.prototype.isPrototypeOf.call(h1, o1.b2);"); -/*FRC*/Random.twister.import_mti(507); void (makeScript(14)); -/*FRC*/count=499; tryItOut("/*tLoop*/for (let d of /*MARR*/[null, function(){}, function(){}, function(){}, null, null, function(){}, null, ({x:3}), null, function(){}, function(){}, ({x:3}), function(){}, ({x:3}), ({x:3}), function(){}, function(){}, null, ({x:3}), function(){}, null, function(){}, null, ({x:3}), null, function(){}, null, function(){}, ({x:3}), function(){}, function(){}, ({x:3}), null, null, function(){}, ({x:3}), null, function(){}]) { o2 = o1.e1.__proto__; }"); -/*FRC*/Random.twister.import_mta(1986487617,223244925,-1300710651,-217406472,2040232885,-259232437,-598225017,1732017183,-368460691,-120841450,2130639998,1624328877,1027664873,-457769035,1506005541,1571387130,-1293964055,-1701122983,-1431495646,1522436154,1464558467,544157252,731883363,-2036079156,1148320848,-1027659752,-870504391,-1438889391,432246032,-355845100,788790005,2120851991,1094849543,-12746369,-1388760995,403612209,-198443459,1243837518,-1879976460,-851011777,-355893469,-549324148,-111958544,548339981,1955261305,1356557837,1002919566,-1501416487,1446106632,-1013179208,-59500278,-2074090274,1325691753,-270643496,-1348895603,-1234361261,-1985265953,-137424885,-1679836716,-343041845,-282925492,-1411520138,-312747238,-845054925,606034857,535035652,-979255736,1090978737,1592289093,1773039129,-1008699140,-2057231217,1789041465,-1827362658,-1757845488,2094380404,1076190577,1255780496,-1284990501,-294996814,204719023,1193596394,1065560458,2013424487,2071912851,-1908673862,1498240652,-1250853934,342775066,1598324268,-2133509351,-1972762986,1733575347,972684693,-1482212555,-381748636,-1017422395,-519709218,1087429476,-858432191,794156748,-806901824,-410410302,428400223,972008338,-1781779720,1723598231,652230448,843815674,2089551993,-1050450948,-1941209645,1357010712,729022494,-111225662,-538079933,-249534209,606361644,-1961749663,110512059,1869522346,-33004439,204219555,-664541888,1672790993,-1944484326,-172665497,683404865,-1304198344,28038113,685383599,386713849,-1983304307,-1076969874,-1085259866,854971640,630725800,1267730927,887628775,1506528050,2143456107,-929429202,1240691408,1774547283,84987449,487850977,1651744744,-443954476,-915854610,800136011,-357086609,-1972405029,442182334,131528951,1848838895,1425278726,-1128510143,1872767734,108839767,-439427692,823314224,-1731175350,-55544178,-1705963675,1712536968,-1888213939,-1490134142,1956382368,-1118729287,-2382199,73396956,2060778678,-1212332025,492362859,463474031,-1452138744,933035804,-1919564599,345916002,-2135790023,1640120495,-1488236685,-1970420279,1996051902,-1646462971,-718594491,280436071,1055804878,-1742408377,683114575,1606948533,-1302685861,-1068963764,-2008012278,1629021525,-934882833,-628345777,1392499946,-1081262905,1537932500,-535090572,-1370212990,1046397827,1354725511,340527844,1607297263,-859887996,669948477,-1784323058,-1792255784,-1966650283,-2097319944,757306860,-815271214,-1943093194,-1987708436,-2057112400,810491137,-1345409726,766317244,-1344111767,-1739922894,498412487,-1451939091,1464125143,1354716593,-312359015,89160128,491737505,-717641844,-953832832,-1772806580,1529311839,-1184817975,420447837,1547198052,874032360,2137020151,-1896611810,145952962,-1215690647,1874850918,-420025147,997331941,1163759253,366026097,1100981186,-50448016,-30793234,1997323472,-170708715,1797746243,1437387354,53230157,57086926,941107778,-1350768461,1633550924,-951214937,1477120118,-1338829892,-1847796866,-1166816802,262167528,1181468692,-744161510,182941034,-941481439,-120521992,1195585003,477274610,-567368808,-1189439795,-678966128,2076778803,-1393080151,1418397866,190659748,-1441827575,875477412,1435292525,54545690,677230739,-958173377,-1471185726,-223230010,-1882592556,2125744570,1961756233,-1313028554,-160884895,-627529775,-424337419,-752387331,-232206125,-1243472962,572497923,-735124552,793860519,-511213359,501870593,509406627,1379588887,-1145103634,-102016183,184496800,-1779264520,1227514111,251612092,-1548239999,-196272873,-142678088,-1191308844,1165047740,1687728106,1371968873,585284080,1752420182,-1581970835,-32371237,-1354177222,1836885647,-1416828772,1093965327,-54147427,1410952427,1989439511,-1553055892,1699914636,401769475,-986604408,-270433929,-327216127,-479293297,-36994556,-1925329827,-1408366323,-1357178024,-1561379733,1520683819,2080715541,776768327,149135074,-2520194,37322686,-1647181357,-1281913885,-1169260016,1038681847,-1939697569,1899273179,1363925635,-315582688,-901051740,1248239093,532415620,1084712981,1240514070,-1250797420,2030807030,653608916,2043607732,-1368014287,-238865689,59817611,1845854662,-1676473695,1028069692,364673644,1466804537,-1677884964,-1021216022,67457622,-997893795,912674149,-1895571748,-342224822,1036395914,-762562468,-2141356800,-1281965724,665226461,197689647,1547264962,219162625,-847269080,442244724,-1134185935,379854223,1404442831,1891540565,1791888388,1721666823,710202834,-593226683,359960875,1417655270,2131556634,-769443669,-690743800,1676528135,1370706796,-1301198893,-71931742,-2044246788,1954127510,1024535531,258295710,1965463468,-431990178,-1993990600,1496321453,-1381810305,-1142582640,1041529166,448665280,1119469962,2106594353,819768873,460729328,-685549893,-1364363080,-819787749,-332366784,-748139145,-1852869288,1003475281,-110865181,-1812301371,1104895709,1012705147,1339442975,-553464291,-1148984274,-1722286299,-1448139690,41866438,-802140512,1761693149,381350651,-2004997404,-239148883,917517245,-434458416,141706751,846352773,394992850,-478533545,218901298,1185647604,-1590622179,-108430113,-176849191,-477881568,1471209961,1708727108,680680400,964436144,-571988017,555354948,1088908306,-1146581122,-1847193645,-1151036126,1233267,1368324696,-377113360,1354615377,-1395044071,-1470812887,-1035039011,1069246638,434243841,-1665723550,-2066562840,-962982322,729751245,-15457821,-2087419602,-916715901,117741555,-1544441070,345648164,-747956734,1329162290,1619370267,-1769751109,-646009778,1018250129,-1414527452,249499947,975213034,300573440,-1349307992,-1854422310,1671827956,-1777662105,-235414134,1152406209,-925303108,1285696036,-1087599124,419162882,833999036,868952146,-692494797,-639422148,-2048712240,2013785202,1970594452,-1628239122,1772031665,-1621899848,-843552,-187817542,-1077299178,226203029,-929931041,1156656516,-1438014251,1767475658,-1844068610,2032936532,-1165272258,1176299026,-1994644367,565689451,326295781,416677001,-1640809165,443002617,-930222902,-749038279,-1630750407,-603635414,123369044,-2011190853,-1353703578,-746904342,-1422081231,1872623006,-1557000106,2062453173,-1788590374,434913957,151558742,2104572055,897728861,-1030174291,-1157975104,-429710356,111083419,-1085895495,-462395169,1942163964,1792182084,1262390839,80596301,-1164228533,-60242418,1214623504,-62981851,1834526521,2124027742,1639733713,-290241629,688368171,561001258,1340895464,493967919,-1516170636,1750492109,-224546529,1932632106,1905389529,-66181466,1547423047,2050803572,-55473765,391917791,553622115,2139722141,-2135569348,-81116728,-1965365211,1661455616,873978493,877265340,-1253711815,-1737106141,1739544251,-2103316825,-1336643084,1194933143,-878178255,613319987,1259924645,-547481425,-408744930,-1586286579,-1209583956,2074412062,-610065276,1255116725,-1138042831,-1483976957,907100306,1842041265,101929870,-435677659,-1315502301,-975984544,-1447652724,-1646163886,621936595,-2027365891,445081845,-492728675,-517727046,1677978463,1885163434,1947694428,-889615333,-163270247); -/*FRC*/Random.twister.import_mti(7); void (makeScript(14)); -/*FRC*/count=500; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var atan2 = stdlib.Math.atan2;\n var abs = stdlib.Math.abs;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Uint16ArrayView = new stdlib.Uint16Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n i0 = ((~((i0)-(i0))));\n return +((-68719476737.0));\n return +((Float64ArrayView[(-(/*FFI*/ff(((((0xff3ede30)) << ((Uint16ArrayView[((i0)) >> 1])))), (((-(!(0xbc1cca2c))) >> ((/*FFI*/ff(((+(0.0/0.0))), ((-2251799813685248.0)), ((-65.0)), ((-4194305.0)), ((-1152921504606847000.0)), ((-2.0)), ((1.0009765625)), ((8192.0)))|0)+(!(i1))))), ((67108865.0)), (((-3.022314549036573e+23) + (+atan2(((-4097.0)), ((2251799813685247.0)))))), ((abs((((0xdcff4e2b)) >> ((0x2238c38b))))|0)), ([[1]]))|0)) >> 3]));\n }\n return f; })(this, {ff: XPCSafeJSObjectWrapper}, new ArrayBuffer(4096)); testMathyFunction(mathy1, [-Number.MIN_VALUE, -0x100000000, -0, 0x080000001, -0x07fffffff, -Number.MAX_VALUE, -0x080000000, 0x100000001, 42, Math.PI, 0x100000000, 1, Number.MAX_VALUE, -1/0, -0x0ffffffff, 0x07fffffff, -0x080000001, 0/0, Number.MIN_VALUE, 0x080000000, 0, 0x100000001, 1/0, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(317); void (makeScript(14)); -/*FRC*/count=501; tryItOut("\"use strict\"; /*MXX3*/g1.Date.prototype.setTime = g2.Date.prototype.setTime;"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=502; tryItOut("for(y in ((((Uint32Array).bind()).bind)(((function sum_indexing(wzeoeb, iegcdt) { ; return wzeoeb.length == iegcdt ? 0 : wzeoeb[iegcdt] + sum_indexing(wzeoeb, iegcdt + 1); })(/*MARR*/[x, objectEmulatingUndefined(), true, ({x:3}), [(void 0)], ({x:3}), true], 0)) | ({getter: []}) = (({a: []} = (let (x) eval))) - (d = Proxy.createFunction((function handlerFactory(x) {return {getOwnPropertyDescriptor: function(){}, getPropertyDescriptor: function(){}, defineProperty: undefined, getOwnPropertyNames: undefined, delete: function() { return true; }, fix: (1 for (x in [])), has: function() { return false; }, hasOwn: function() { return false; }, get: new XPCNativeWrapper(e), set: function() { return true; }, iterate: function() { return (function() { throw StopIteration; }); }, enumerate: function() { return []; }, keys: function() { return []; }, }; })(x), (x = ({a2:z2})).eval(\"/* no regression tests found */\"), RegExp.prototype.toString)))))(([]) = (uneval(false)));"); -/*FRC*/Random.twister.import_mta(-526159621,1377293814,-1353627660,-2044147966,-251800298,1163006159,287368818,707471893,136287005,1114527188,-1509600745,-225553785,1293129051,2093959157,2011477712,767842772,1872778339,1799550815,2011255517,-267075436,1839694611,-1139028665,405264662,-1256478573,-1879905100,807742680,539421111,-1618375681,-1528140974,-179921676,1599616311,710132505,-414372163,-204959862,-1697012008,2082439644,-560833015,-1632692769,1443159830,-300754040,-1081035802,363372325,-538590558,724823943,1088153460,726898938,1817385443,1667935995,331112409,1773211735,-1588209096,-209280423,1900326040,1878328964,1001872937,682119529,23798778,442449155,-1994954754,1594042614,1821561867,-1421489598,-557709950,-1948225255,-1269206788,-1288253193,1123001381,-1234284018,-61768309,-931821426,-1962546999,1082174554,-1579189914,-1982711083,1104261652,-1594353818,-1176777942,74333402,-1313909737,-194097211,-595178730,-1672145429,1817543663,-1548527643,-1528018353,2017232738,-908874773,84820671,1327996429,266440936,-1672761595,-703344105,776226865,-2080097170,1321200856,-380666563,-552476857,-249581720,-591130741,-1046353919,-704377238,930382752,487858508,1347813357,-1245014896,-223520490,583388964,720299311,1912072912,-112033598,1523462118,276219902,1624171163,-1571004273,-1621002033,2127249688,-1377760010,1750046933,1703553812,986498880,1855906356,-1678799094,-2038933899,-2121574147,-1810268685,-1694614472,2011045057,1597843342,1354857822,-1395522717,-2114177978,-2059806064,-1043045884,1171239210,-1846081866,-1047094419,571215121,1601822726,733975501,787897553,-1961026575,-1216176766,114740039,-199417251,883990905,1272399425,-1482644560,2102974418,-942102740,-786289281,-373469201,-1883939598,538541924,1215436356,753204248,940579526,-1818198620,-369770360,1479928206,330821039,145089384,-993823988,675869027,996946388,1653365724,1053788920,81007630,-434361134,139862072,1797804869,471485809,-851811276,-891976507,830055452,2096065609,-1454125423,-319556975,1004457704,1700766053,-1244504625,-258879470,553638816,1814075904,-1223076162,-1944801696,1374089808,-463640785,532685401,-1370178056,-2097454600,-1267729714,-715025377,-597833690,-1909746482,1066022543,1142610700,776394210,1298546317,1230764889,2065004959,-2005663122,562355456,270810257,-1111411746,-850722634,-33769530,-2144308620,-1225233866,-317037713,-361081241,750118477,1350736248,-1044648116,-142579912,-2129570666,-351803180,1557050893,855026034,-771862365,-1803623010,-1367015548,922106246,-374223114,-2097701858,-985632933,1698815752,-1259565703,1997302004,2022377008,-859598156,-855488476,73850086,-1058394508,-995125885,70714663,303285609,-455684496,-1585491432,-1227367706,-807525968,185646534,-577277843,-378150663,-737795082,-123549384,1462666044,-831792084,313693156,-945974481,-1144590013,1501605741,-1524332135,-1464106719,563437648,-2088395042,710717396,-2048287278,-436843589,1180060450,-11229341,-1155079627,-941604297,1003465768,-39339517,-1216517550,326591907,1424718407,-1007104358,-285099761,-774073765,69516875,-2057429811,1083211442,-2000733787,-333858192,2046417804,1814007301,760926307,-1450049909,-1031113231,1851072521,-1231998273,-1831774679,1431084443,1661460192,-822898028,542706731,-806524944,-1281644199,1023295213,2141491758,1577799641,1135467862,-1561101165,-325099567,878058837,-496830126,1168504005,-380904211,1982017977,536149211,-238784704,-1121478127,1546049105,1091675530,-1151984149,166973285,-604377400,344357108,-1887715909,-670292935,-124566875,444865724,-73401314,-1260013356,1582744309,1004042051,362388204,806511653,2044738220,1806884854,1534695574,282953445,2021362902,35367362,2122745695,-803801161,-1532141652,-1517981314,1066200840,-1095921783,1526574671,437428622,1545604646,-176639010,-1091019127,-1361113746,-1833893620,-466644300,-943404082,745706995,-1693403202,1093108903,-318917847,-5363485,-1521918406,1743488584,-1453141616,81164282,1743432519,807798115,-1568590237,-2377366,-1947868444,1357063628,-375752309,-2010489752,-1689970676,-105117333,-760299026,2032716912,533026673,545239745,-87235957,1752899813,-1128356286,1884672079,-2117916985,87882177,187173801,-1785880792,1991379026,-258123216,1704670685,2061056188,-1307201783,-1883160646,-1057270847,-811867534,2043813846,-2102796043,-1341649840,369928999,203479419,-817227492,354150068,-1802664856,-620798608,1947258804,-1994453354,235616214,-926175872,736485393,-1282494733,900650136,577370571,1420701640,-1409064453,-1504678096,573296921,429919658,-52461697,-729220416,-1344253713,1105330595,-488668081,-1302266368,-905798716,333444751,682857756,1116332215,63799552,202652440,-1151902840,312420665,-1895277251,624679743,889789701,-656768537,1858392996,-646109038,-1055718819,839050540,-554024058,94471201,-1917541586,-558898383,1484885587,-664681807,-1761419277,52600974,2076366695,-1606597167,1435712825,-500172771,-1406858996,-1033735881,-1052905348,-1026076454,-981140930,374843313,1128398231,-670388036,-2113985491,-1295568529,-633610550,1019953514,-402462179,363068540,1612839463,1731957422,653418728,344183448,1178357074,1172366678,1824664536,-797080852,2063526684,1424742724,-526804867,-646196676,-708005359,1335988216,1037506070,-1984417996,-2112552802,1049130055,-2072730219,280319526,291116872,-1948543071,1834712423,1500842637,-1945977768,1912575171,187346070,491016557,407564282,1484929543,1915845127,812497369,-909604660,65610965,-495638069,1287400425,-736156384,-1813253820,2088170274,-768065243,-441936798,-524815626,-1081582638,79625591,475044650,-1305754016,2097973859,-1457029986,-9164812,-1590533229,650210208,-1758888109,-1604038671,1629696978,1979324972,-1626419291,-983538155,-2139364071,307680816,-1943321611,-1649880226,-1198806500,1823358012,-1324743964,1514020086,-1878410245,1815008076,-2118140323,500958444,-769184404,922818995,-1409702932,-1878438661,689156298,-2123593125,-668772830,546877959,-426577644,-1969835456,1742029062,1763507634,2019565620,-1313579063,1832448424,1743876080,-1739270686,-1988027146,-657214968,-1313753524,872780770,1833625203,-368643019,1352289489,1424286104,-299440434,287168455,-1750972239,-97932579,-738849793,100974966,1676416787,-1573108796,-2068816063,-1783233553,-1443397815,-1849418738,420644538,-1528645263,988322675,617205064,2116056582,-80231829,450646173,-2118822618,118067545,1021317122,698677118,-679685541,193244551,211855990,1408699805,31339024,1609056435,-590246353,-970210949,-1754938685,-205315706,1525991677,-1753845391,1881644755,1991033988,757701365,1354351570,-1810933393,1414502565,-356057460,2059359370,-930365136,-92107597,-889779905,-895440573,1653908743,810620959,1177193302,-863410040,1250743425,-1179107508,-1114654943,-430171865,-1090314101,-1418804890,407484370,1460185854,1316673548,148693885,171295903,-1802288581,-700512303,-2120201934,436516765,-674260887,1858669899,-1684975526,1542136477,1594739550,1080262993,-1604596975,558332167,2123970955,599976176,332089284,-1987767203,-1982160310,-1069346344,-1107875990); -/*FRC*/Random.twister.import_mti(147); void (makeScript(14)); -/*FRC*/count=503; tryItOut("\"use strict\"; /*infloop*/while(([] = (arguments)(x)))o2.h2.get = f1;"); -/*FRC*/Random.twister.import_mti(243); void (makeScript(14)); -/*FRC*/count=504; tryItOut("\"use strict\"; testMathyFunction(mathy4, /*MARR*/[new Number(1), '\\0' , new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), '\\0' , new Number(1), '\\0' , '\\0' , '\\0' , '\\0' , new Number(1), new Number(1), '\\0' , '\\0' , new Number(1), '\\0' , '\\0' , '\\0' , '\\0' , '\\0' , new Number(1), new Number(1), '\\0' , '\\0' , '\\0' , new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), '\\0' , '\\0' , new Number(1), '\\0' , '\\0' , new Number(1), '\\0' , '\\0' , new Number(1), '\\0' , new Number(1), '\\0' , '\\0' , new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), '\\0' , '\\0' , new Number(1)]); "); - diff --git a/implementation-contributed/javascriptcore/stress/regress-159779-2.js b/implementation-contributed/javascriptcore/stress/regress-159779-2.js deleted file mode 100644 index 5879eb91ff71c751e57d45205095d1d43d3b4f45..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-159779-2.js +++ /dev/null @@ -1,5450 +0,0 @@ -//@ skip -//@ if $buildType == "release" then defaultRunNoisyTest else skip end - -var jsStrictMode = false; -var ENGINE_UNKNOWN = 0; -var ENGINE_SPIDERMONKEY_TRUNK = 1; -var ENGINE_SPIDERMONKEY_MOZILLA45 = 3; -var ENGINE_JAVASCRIPTCORE = 4;var engine = ENGINE_UNKNOWN; -var jsshell = (typeof window == "undefined"); -var xpcshell = jsshell && (typeof Components == "object"); -var dump; -var dumpln; -var printImportant; -if (jsshell) { - dumpln = print; - printImportant = function(s) { dumpln("***"); dumpln(s); }; - if (typeof verifyprebarriers == "function") { - - - - if (typeof wasmIsSupported == "function") { - engine = ENGINE_SPIDERMONKEY_TRUNK; - } else { - engine = ENGINE_SPIDERMONKEY_MOZILLA45; - } - readline = function(){}; - version(180); - } else if (typeof XPCNativeWrapper == "function") { - - engine = ENGINE_SPIDERMONKEY_TRUNK; - } else if (typeof debug == "function") { - engine = ENGINE_JAVASCRIPTCORE; - } -} else { - if (navigator.userAgent.indexOf("WebKit") != -1) { - - engine = ENGINE_JAVASCRIPTCORE; - - dump = function(s) { console.log(s); }; - } else if (navigator.userAgent.indexOf("Gecko") != -1) { - engine = ENGINE_SPIDERMONKEY_TRUNK; - } else if (typeof dump != "function") { - - dump = function() { }; - } - dumpln = function(s) { dump(s + "\n"); }; printImportant = function(s) { - dumpln(s); - var p = document.createElement("pre"); - p.appendChild(document.createTextNode(s)); - document.body.appendChild(p); - }; -}if (typeof gc == "undefined") - this.gc = function(){}; -var gcIsQuiet = !(gc()); -var HOTLOOP = 60; -function loopCount() { return rnd(rnd(HOTLOOP * 3)); } -function loopModulo() { return (rnd(2) ? rnd(rnd(HOTLOOP * 2)) : rnd(5)) + 2; }function simpleSource(s) -{ - function hexify(c) - { - var code = c.charCodeAt(0); - var hex = code.toString(16); - while (hex.length < 4) - hex = "0" + hex; - return "\\u" + hex; - } if (typeof s == "string") - return ("\"" + - s.replace(/\\/g, "\\\\") - .replace(/\"/g, "\\\"") - .replace(/\0/g, "\\0") - .replace(/\n/g, "\\n") - .replace(/[^ -~]/g, hexify) + - "\""); - else - return "" + s; -}var haveRealUneval = (typeof uneval == "function"); -if (!haveRealUneval) - uneval = simpleSource;if (engine == ENGINE_UNKNOWN) - printImportant("Targeting an unknown JavaScript engine!"); -else if (engine == ENGINE_SPIDERMONKEY_TRUNK) - printImportant("Targeting SpiderMonkey / Gecko (trunk)."); -else if (engine == ENGINE_SPIDERMONKEY_MOZILLA45) - printImportant("Targeting SpiderMonkey / Gecko (ESR45 branch)."); -else if (engine == ENGINE_JAVASCRIPTCORE) - printImportant("Targeting JavaScriptCore / WebKit."); -function whatToTestSpidermonkeyTrunk(code) -{ - /* jshint laxcomma: true */ - - var codeL = code.replace(/\s/g, " "); return { allowParse: true, allowExec: unlikelyToHang(code) - && (jsshell || code.indexOf("nogeckoex") == -1) - , allowIter: true, - - expectConsistentOutput: true - && (gcIsQuiet || code.indexOf("gc") == -1) - && code.indexOf("/*NODIFF*/") == -1 - && code.indexOf(".script") == -1 - && code.indexOf(".parameterNames") == -1 - && code.indexOf(".environment") == -1 - && code.indexOf(".onNewGlobalObject") == -1 - && code.indexOf(".takeCensus") == -1 - && code.indexOf(".findScripts") == -1 - && code.indexOf("Date") == -1 - && code.indexOf("backtrace") == -1 - && code.indexOf("drainAllocationsLog") == -1 - && code.indexOf("dumpObject") == -1 - && code.indexOf("dumpHeap") == -1 - && code.indexOf("dumpStringRepresentation") == -1 - && code.indexOf("evalInWorker") == -1 - && code.indexOf("getBacktrace") == -1 - && code.indexOf("getLcovInfo") == -1 - && code.indexOf("load") == -1 - && code.indexOf("offThreadCompileScript") == -1 - && code.indexOf("oomAfterAllocations") == -1 - && code.indexOf("oomAtAllocation") == -1 - && code.indexOf("printProfilerEvents") == -1 - && code.indexOf("validategc") == -1 - && code.indexOf("inIon") == -1 - && code.indexOf("inJit") == -1 - && code.indexOf("random") == -1 - && code.indexOf("timeout") == -1 - , expectConsistentOutputAcrossIter: true - - && code.indexOf("options") == -1 - , expectConsistentOutputAcrossJITs: true - - && code.indexOf("'strict") == -1 - && code.indexOf("disassemble") == -1 - && code.indexOf(".length") == -1 - && code.indexOf(".splice") == -1 - && !( codeL.match(/\/.*[\u0000\u0080-\uffff]/)) }; -}function whatToTestSpidermonkeyMozilla45(code) -{ - /* jshint laxcomma: true */ - - var codeL = code.replace(/\s/g, " "); return { allowParse: true, allowExec: unlikelyToHang(code) - && (jsshell || code.indexOf("nogeckoex") == -1) - , allowIter: true, - - expectConsistentOutput: true - && (gcIsQuiet || code.indexOf("gc") == -1) - && code.indexOf("/*NODIFF*/") == -1 - && code.indexOf(".script") == -1 - && code.indexOf(".parameterNames") == -1 - && code.indexOf(".environment") == -1 - && code.indexOf(".onNewGlobalObject") == -1 - && code.indexOf(".takeCensus") == -1 - && code.indexOf(".findScripts") == -1 - && code.indexOf("Date") == -1 - && code.indexOf("backtrace") == -1 - && code.indexOf("drainAllocationsLog") == -1 - && code.indexOf("dumpObject") == -1 - && code.indexOf("dumpHeap") == -1 - && code.indexOf("dumpStringRepresentation") == -1 - && code.indexOf("evalInWorker") == -1 - && code.indexOf("getBacktrace") == -1 - && code.indexOf("getLcovInfo") == -1 - && code.indexOf("load") == -1 - && code.indexOf("offThreadCompileScript") == -1 - && code.indexOf("oomAfterAllocations") == -1 - && code.indexOf("oomAtAllocation") == -1 - && code.indexOf("printProfilerEvents") == -1 - && code.indexOf("validategc") == -1 - && code.indexOf("inIon") == -1 - && code.indexOf("inJit") == -1 - && code.indexOf("random") == -1 - && code.indexOf("timeout") == -1 - , expectConsistentOutputAcrossIter: true - - && code.indexOf("options") == -1 - , expectConsistentOutputAcrossJITs: true - - && code.indexOf("'strict") == -1 - && code.indexOf("disassemble") == -1 - && code.indexOf(".length") == -1 - && code.indexOf("preventExtensions") == -1 - && code.indexOf("Math.round") == -1 - && code.indexOf("with") == -1 - && code.indexOf("Number.MAX_VALUE") == -1 - && code.indexOf("arguments") == -1 - && code.indexOf(".splice") == -1 - && !( codeL.match(/\/.*[\u0000\u0080-\uffff]/)) }; -}function whatToTestJavaScriptCore(code) -{ - return { allowParse: true, - allowExec: unlikelyToHang(code), - allowIter: false, - expectConsistentOutput: false, - expectConsistentOutputAcrossIter: false, - expectConsistentOutputAcrossJITs: false }; -}function whatToTestGeneric(code) -{ - return { - allowParse: true, - allowExec: unlikelyToHang(code), - allowIter: (typeof Iterator == "function"), - expectConsistentOutput: false, - expectConsistentOutputAcrossIter: false, - expectConsistentOutputAcrossJITs: false - }; -}var whatToTest; -if (engine == ENGINE_SPIDERMONKEY_TRUNK) - whatToTest = whatToTestSpidermonkeyTrunk; -else if (engine == ENGINE_SPIDERMONKEY_MOZILLA45) - whatToTest = whatToTestSpidermonkeyMozilla45; -else if (engine == ENGINE_JAVASCRIPTCORE) - whatToTest = whatToTestJavaScriptCore; -else - whatToTest = whatToTestGeneric; -function unlikelyToHang(code) -{ - var codeL = code.replace(/\s/g, " "); - return true - && code.indexOf("infloop") == -1 - && !( codeL.match( /for.*in.*uneval/ )) - && !( codeL.match( /for.*for.*for/ )) - && !( codeL.match( /for.*for.*gc/ )) - ; -} -function confused(s) -{ - if (jsshell) { - - print("jsfunfuzz broke its own scripting environment: " + s); - quit(); - } -}function foundABug(summary, details) -{ - - - printImportant("Found" + " a bug: " + summary); - if (details) { - printImportant(details); - } - if (jsshell) { - dumpln("jsfunfuzz stopping due to finding a bug."); - quit(); - } -}function errorToString(e) -{ - try { - return ("" + e); - } catch (e2) { - return "Can't toString the error!!"; - } -}function errorstack() -{ - print("EEE"); - try { - void ([].qwerty.qwerty); - } catch(e) { print(e.stack); } -} -var Random = { - twister: null, init: function (seed) { - if (seed == null || seed === undefined) { - seed = new Date().getTime(); - } - this.twister = new MersenneTwister19937(); - this.twister.seed(seed); - }, - number: function (limit) { - if (limit == 0) { - return limit; - } - if (limit == null || limit === undefined) { - limit = 0xffffffff; - } - return (Random.twister.int32() >>> 0) % limit; - }, - float: function () { - return (Random.twister.int32() >>> 0) * (1.0/4294967295.0); - }, - range: function (start, limit) { - if (isNaN(start) || isNaN(limit)) { - Utils.traceback(); - throw new TypeError("Random.range() received a non number type: '" + start + "', '" + limit + "')"); - } - return Random.number(limit - start + 1) + start; - }, - index: function (list, emptyr) { - if (!(list instanceof Array || (typeof list != "string" && "length" in list))) { - Utils.traceback(); - throw new TypeError("Random.index() received a non array type: '" + list + "'"); - } - if (!list.length) - return emptyr; - return list[this.number(list.length)]; - }, - key: function (obj) { - var list = []; - for (var i in obj) { - list.push(i); - } - return this.index(list); - }, - bool: function () { - return this.index([true, false]); - }, - pick: function (obj) { - if (typeof obj == "function") { - return obj(); - } - if (obj instanceof Array) { - return this.pick(this.index(obj)); - } - return obj; - }, - chance: function (limit) { - if (limit == null || limit === undefined) { - limit = 2; - } - if (isNaN(limit)) { - Utils.traceback(); - throw new TypeError("Random.chance() received a non number type: '" + limit + "'"); - } - return this.number(limit) == 1; - }, - choose: function (list, flat) { - if (!(list instanceof Array)) { - Utils.traceback(); - throw new TypeError("Random.choose() received a non-array type: '" + list + "'"); - } - var total = 0; - for (var i = 0; i < list.length; i++) { - total += list[i][0]; - } - var n = this.number(total); - for (var i = 0; i < list.length; i++) { - if (n <= list[i][0]) { - if (flat == true) { - return list[i][1]; - } else { - return this.pick([list[i][1]]); - } - } - n = n - list[i][0]; - } - if (flat == true) { - return list[0][1]; - } - return this.pick([list[0][1]]); - }, - weighted: function (wa) { - - var a = []; - for (var i = 0; i < wa.length; ++i) { - for (var j = 0; j < wa[i].w; ++j) { - a.push(wa[i].v); - } - } - return a; - }, - use: function (obj) { - return Random.bool() ? obj : ""; - }, - shuffle: function (arr) { - var len = arr.length; - var i = len; - while (i--) { - var p = Random.number(i + 1); - var t = arr[i]; - arr[i] = arr[p]; - arr[p] = t; - } - }, - shuffled: function (arr) { - var newArray = arr.slice(); - Random.shuffle(newArray); - return newArray; - }, - subset: function(a) { - - - var subset = []; - for (var i = 0; i < a.length; ++i) { - if (rnd(2)) { - subset.push(a[i]); - } - } - return subset; - },};function rnd(n) { return Random.number(n); } -/* - A C-program for MT19937, with initialization improved 2002/1/26. - Coded by Takuji Nishimura and Makoto Matsumoto. Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, - All rights reserved. Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. 3. The names of its contributors may not be used to endorse or promote - products derived from this software without specific prior written - permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - Any feedback is very welcome. - http: - email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) -*/ -function MersenneTwister19937() -{ - const N = 624; - const M = 397; - const MAG01 = new Int32Array([0, 0x9908b0df]); var mt = new Int32Array(N); /* the array for the state vector */ - var mti = 625; this.seed = function (s) { - mt[0] = s | 0; - for (mti=1; mti<N; mti++) { - mt[mti] = Math.imul(1812433253, mt[mti-1] ^ (mt[mti-1] >>> 30)) + mti; - } - }; this.export_state = function() { return [mt, mti]; }; - this.import_state = function(s) { mt = s[0]; mti = s[1]; }; - this.export_mta = function() { return mt; }; - this.import_mta = function(_mta) { mt = _mta; }; - this.export_mti = function() { return mti; }; - this.import_mti = function(_mti) { mti = _mti; }; function mag01(y) - { - return MAG01[y & 0x1]; - } this.int32 = function () { - var y; - var kk; if (mti >= N) { /* generate N words at one time */ - for (kk=0;kk<N-M;kk++) { - y = ((mt[kk]&0x80000000)|(mt[kk+1]&0x7fffffff)); - mt[kk] = (mt[kk+M] ^ (y >>> 1) ^ mag01(y)); - } - for (;kk<N-1;kk++) { - y = ((mt[kk]&0x80000000)|(mt[kk+1]&0x7fffffff)); - mt[kk] = (mt[kk+(M-N)] ^ (y >>> 1) ^ mag01(y)); - } - y = ((mt[N-1]&0x80000000)|(mt[0]&0x7fffffff)); - mt[N-1] = (mt[M-1] ^ (y >>> 1) ^ mag01(y)); - mti = 0; - } y = mt[mti++]; /* Tempering */ - y = y ^ (y >>> 11); - y = y ^ ((y << 7) & 0x9d2c5680); - y = y ^ ((y << 15) & 0xefc60000); - y = y ^ (y >>> 18); return y; - }; -} -function fuzzTestingFunctionsCtor(browser, fGlobal, fObject) -{ - var prefix = browser ? "fuzzPriv." : ""; function numberOfAllocs() { return Math.floor(Math.exp(rnd(rnd(6000)) / 1000)); } - function gcSliceSize() { return Math.floor(Math.pow(2, Random.float() * 32)); } - function maybeCommaShrinking() { return rnd(5) ? "" : ", 'shrinking'"; } function enableGCZeal() - { - var level = rnd(15); - if (browser && level == 9) level = 0; - var period = numberOfAllocs(); - return prefix + "gczeal" + "(" + level + ", " + period + ");"; - } function callSetGCCallback() { - - var phases = Random.index(["both", "begin", "end"]); - var actionAndOptions = rnd(2) ? 'action: "majorGC", depth: ' + rnd(17) : 'action: "minorGC"'; - var arg = "{ " + actionAndOptions + ", phases: \"" + phases + "\" }"; - return prefix + "setGCCallback(" + arg + ");"; - } function tryCatch(statement) - { - return "try { " + statement + " } catch(e) { }"; - } function setGcparam() { - switch(rnd(2)) { - case 0: return _set("sliceTimeBudget", rnd(100)); - default: return _set("markStackLimit", rnd(2) ? (1 + rnd(30)) : 4294967295); - } function _set(name, value) { - - return tryCatch(prefix + "gcparam" + "('" + name + "', " + value + ");"); - } - } - - var sharedTestingFunctions = [ - - { w: 10, v: function(d, b) { return "void " + prefix + "gc" + "(" + ");"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "gc" + "(" + "'compartment'" + maybeCommaShrinking() + ");"; } }, - { w: 5, v: function(d, b) { return "void " + prefix + "gc" + "(" + fGlobal(d, b) + maybeCommaShrinking() + ");"; } }, - { w: 20, v: function(d, b) { return prefix + "minorgc" + "(false);"; } }, - { w: 20, v: function(d, b) { return prefix + "minorgc" + "(true);"; } }, - - { w: 20, v: function(d, b) { return tryCatch(prefix + "startgc" + "(" + gcSliceSize() + maybeCommaShrinking() + ");"); } }, - { w: 20, v: function(d, b) { return prefix + "gcslice" + "(" + gcSliceSize() + ");"; } }, - { w: 10, v: function(d, b) { return prefix + "abortgc" + "(" + ");"; } }, - { w: 10, v: function(d, b) { return prefix + "selectforgc" + "(" + fObject(d, b) + ");"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "schedulegc" + "(" + fGlobal(d, b) + ");"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "schedulegc" + "(" + numberOfAllocs() + ");"; } }, - { w: 10, v: setGcparam }, - - - { w: 10, v: function(d, b) { return prefix + "verifyprebarriers" + "();"; } }, - - { w: 1, v: function(d, b) { return "void " + prefix + "hasChild(" + fObject(d, b) + ", " + fObject(d, b) + ");"; } }, - { w: 5, v: function(d, b) { return prefix + "validategc" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "validategc" + "(true);"; } }, - { w: 5, v: function(d, b) { return prefix + "fullcompartmentchecks" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "fullcompartmentchecks" + "(true);"; } }, - { w: 5, v: function(d, b) { return prefix + "setIonCheckGraphCoherency" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "setIonCheckGraphCoherency" + "(true);"; } }, - { w: 1, v: function(d, b) { return prefix + "enableOsiPointRegisterChecks" + "();"; } }, - { w: 1, v: function(d, b) { return prefix + "assertJitStackInvariants" + "();"; } }, - { w: 1, v: function(d, b) { return prefix + "setJitCompilerOption" + "('baseline.warmup.trigger', " + rnd(20) + ");"; } }, - { w: 1, v: function(d, b) { return prefix + "setJitCompilerOption" + "('ion.warmup.trigger', " + rnd(40) + ");"; } }, - { w: 1, v: function(d, b) { return prefix + "setJitCompilerOption" + "('ion.forceinlineCaches\', " + rnd(2) + ");"; } }, - - { w: 1, v: function(d, b) { return tryCatch(prefix + "setJitCompilerOption" + "('ion.enable', " + rnd(2) + ");"); } }, - { w: 1, v: function(d, b) { return tryCatch(prefix + "setJitCompilerOption" + "('baseline.enable', " + rnd(2) + ");"); } }, - { w: 1, v: function(d, b) { return prefix + "enableSPSProfiling" + "();"; } }, - { w: 1, v: function(d, b) { return prefix + "enableSPSProfilingWithSlowAssertions" + "();"; } }, - { w: 5, v: function(d, b) { return prefix + "disableSPSProfiling" + "();"; } }, - { w: 1, v: function(d, b) { return "void " + prefix + "readSPSProfilingStack" + "();"; } }, - { w: 5, v: function(d, b) { return prefix + "deterministicgc" + "(false);"; } }, - { w: 1, v: function(d, b) { return prefix + "deterministicgc" + "(true);"; } }, - { w: 5, v: function(d, b) { return prefix + "gcPreserveCode" + "();"; } }, - { w: 1, v: function(d, b) { return "void " + prefix + "getLcovInfo" + "();"; } }, - { w: 1, v: function(d, b) { return "void " + prefix + "getLcovInfo" + "(" + fGlobal(d, b) + ");"; } }, - ]; - - var shellOnlyTestingFunctions = [ - - { w: 5, v: function(d, b) { return prefix + "bailout" + "();"; } }, - - { w: 1, v: function(d, b) { return tryCatch("(void" + prefix + "disableSingleStepProfiling" + "()" + ")"); } }, - { w: 1, v: function(d, b) { return tryCatch("(" + prefix + "enableSingleStepProfiling" + "()" + ")"); } }, - { w: 10, v: function(d, b) { return "void " + prefix + "relazifyFunctions" + "();"; } }, - { w: 10, v: function(d, b) { return "void " + prefix + "relazifyFunctions" + "('compartment');"; } }, - { w: 5, v: function(d, b) { return "void " + prefix + "relazifyFunctions" + "(" + fGlobal(d, b) + ");"; } }, - - { w: 1, v: function(d, b) { return (typeof oomAfterAllocations == "function" && rnd(1000) === 0) ? prefix + "oomAfterAllocations" + "(" + (numberOfAllocs() - 1) + ");" : "void 0;"; } }, - - { w: 1, v: function(d, b) { return (typeof oomAtAllocation == "function" && rnd(100) === 0) ? prefix + "oomAtAllocation" + "(" + (numberOfAllocs() - 1) + ");" : "void 0;"; } }, - - { w: 1, v: function(d, b) { return (typeof resetOOMFailure == "function") ? "void " + prefix + "resetOOMFailure" + "(" + ");" : "void 0;"; } }, - - { w: 1, v: function(d, b) { return (rnd(100) === 0) ? (enableGCZeal()) : "void 0;"; } }, { w: 10, v: callSetGCCallback }, - ]; var testingFunctions = Random.weighted(browser ? sharedTestingFunctions : sharedTestingFunctions.concat(shellOnlyTestingFunctions)); return { testingFunctions: testingFunctions, enableGCZeal: enableGCZeal }; -} -/* - It might be more interesting to use Object.getOwnPropertyDescriptor to find out if - a thing is exposed as a getter (like Debugger.prototype.enabled). But there are exceptions: <Jesse> why is Array.prototype.length not a getter? http: - <jorendorff> backward compatibility - <jorendorff> ES3 already allowed programs to create objects with arbitrary __proto__ - <jorendorff> .length was specified to work as a data property; accessor properties inherit differently, especially when setting - <jorendorff> maybe only when setting, come to think of it - <jorendorff> I guess it could've been made an accessor property without breaking anything important. I didn't realize it at the time. -*/var constructors = []; -var builtinFunctions = []; -var builtinProperties = []; -var allMethodNames = []; -var allPropertyNames = []; var builtinObjectNames = []; -var builtinObjects = {}; (function exploreBuiltins(glob, debugMode) { function exploreDeeper(a, an) - { - if (!a) - return; - var hns = Object.getOwnPropertyNames(a); - var propertyNames = []; - for (var j = 0; j < hns.length; ++j) { - var hn = hns[j]; - propertyNames.push(hn); - allPropertyNames.push(hn); var fullName = an + "." + hn; - builtinProperties.push(fullName); var h; - try { - h = a[hn]; - } catch(e) { - if (debugMode) { - dumpln("Threw: " + fullName); - } - h = null; - } if (typeof h == "function" && hn != "constructor") { - allMethodNames.push(hn); - builtinFunctions.push(fullName); - } - } - builtinObjects[an] = propertyNames; - builtinObjectNames.push(an); - } function exploreConstructors() - { - var gns = Object.getOwnPropertyNames(glob); - for (var i = 0; i < gns.length; ++i) { - var gn = gns[i]; - - - if (0x40 < gn.charCodeAt(0) && gn.charCodeAt(0) < 0x60 && gn != "PerfMeasurement" && !(jsshell && gn == "Worker")) { - var g = glob[gn]; - if (typeof g == "function" && g.toString().indexOf("[native code]") != -1) { - constructors.push(gn); - builtinProperties.push(gn); - builtinFunctions.push(gn); - exploreDeeper(g, gn); - exploreDeeper(g.prototype, gn + ".prototype"); - } - } - } - } exploreConstructors(); exploreDeeper(Math, "Math"); - exploreDeeper(JSON, "JSON"); - exploreDeeper(Proxy, "Proxy"); if (debugMode) { - for (let x of constructors) print("^^^^^ " + x); - for (let x of builtinProperties) print("***** " + x); - for (let x of builtinFunctions) print("===== " + x); - for (let x of allMethodNames) print("!!!!! " + x); - for (let x of allPropertyNames) print("&&&&& " + x); - print(uneval(builtinObjects)); - quit(); - }})(this, false);function cat(toks) -{ - if (rnd(1700) === 0) - return totallyRandom(2, ["x"]); var torture = (rnd(1700) === 57); - if (torture) - dumpln("Torture!!!"); var s = maybeLineBreak(); - for (var i = 0; i < toks.length; ++i) { - - - - - if (typeof(toks[i]) != "string") { - dumpln("Strange item in the array passed to cat: typeof toks[" + i + "] == " + typeof(toks[i])); - dumpln(cat.caller); - dumpln(cat.caller.caller); - } if (!(torture && rnd(12) === 0)) - s += toks[i]; s += maybeLineBreak(); if (torture) switch(rnd(120)) { - case 0: - case 1: - case 2: - case 3: - case 4: - s += maybeSpace() + totallyRandom(2, ["x"]) + maybeSpace(); - break; - case 5: - s = "(" + s + ")"; - break; - case 6: - s = ""; - break; - case 7: - return s; - case 8: - s += UNTERMINATED_COMMENT; - break; - case 9: - s += UNTERMINATED_STRING_LITERAL; - break; - case 10: - if (rnd(2)) - s += "("; - s += UNTERMINATED_REGEXP_LITERAL; - break; - default: - } } return s; -} -/* -function catNice(toks) -{ - var s = "" - var i; - for (i=0; i<toks.length; ++i) { - if(typeof(toks[i]) != "string") - confused("Strange toks[i]: " + toks[i]); s += toks[i]; - } return s; -} -*/ -var UNTERMINATED_COMMENT = "/*"; /* this comment is here so my text editor won't get confused */ -var UNTERMINATED_STRING_LITERAL = "'"; -var UNTERMINATED_REGEXP_LITERAL = "/";function maybeLineBreak() -{ - if (rnd(900) === 3) - return Random.index(["\r", "\n", "//h\n", "/*\n*/"]); - else if (rnd(400) === 3) - return rnd(2) ? "\u000C" : "\t"; - else - return ""; -}function maybeSpace() -{ - if (rnd(2) === 0) - return " "; - else - return ""; -}function stripSemicolon(c) -{ - var len = c.length; - if (c.charAt(len - 1) == ";") - return c.substr(0, len - 1); - else - return c; -}var TOTALLY_RANDOM = 1000;var allMakers = getListOfMakers(this);function totallyRandom(d, b) { - d = d + (rnd(5) - 2); var maker = Random.index(allMakers); - var val = maker(d, b); - if (typeof val != "string") { - print(maker.name); - print(maker); - throw "We generated something that isn't a string!"; - } - return val; -}function getListOfMakers(glob) -{ - var r = []; - for (var f in glob) { - if (f.indexOf("make") == 0 && typeof glob[f] == "function" && f != "makeFinalizeObserver" && f != "makeFakePromise") { - r.push(glob[f]); - } - } - return r; -} -/* -function testEachMaker() -{ - for (var f of allMakers) { - dumpln(""); - dumpln(f.name); - dumpln("=========="); - dumpln(""); - for (var i = 0; i < 100; ++i) { - try { - var r = f(8, ["A", "B"]); - if (typeof r != "string") - throw ("Got a " + typeof r); - dumpln(r); - } catch(e) { - dumpln(""); - dumpln(uneval(e)); - dumpln(e.stack); - dumpln(""); - throw "testEachMaker found a bug in jsfunfuzz"; - } - } - dumpln(""); - } -} -*/ -/*************************** - * GENERATE ASM.JS MODULES * - ***************************/ -function asmJSInterior(foreignFunctions, sanePlease) -{ - function mess() - { - if (!sanePlease && rnd(600) === 0) - return makeStatement(8, ["x"]) + "\n"; - if (!sanePlease && rnd(600) === 0) - return totallyRandom(8, ["x"]); - return ""; - } var globalEnv = {stdlibImported: {}, stdlibImports: "", heapImported: {}, heapImports: "", foreignFunctions: foreignFunctions, sanePlease: !!sanePlease}; - var asmFunDecl = asmJsFunction(globalEnv, "f", rnd(2) ? "signed" : "double", [rnd(2) ? "i0" : "d0", rnd(2) ? "i1" : "d1"]); - var interior = mess() + globalEnv.stdlibImports + - mess() + importForeign(foreignFunctions) + - mess() + globalEnv.heapImports + - mess() + asmFunDecl + - mess() + " return f;" + - mess(); - return interior; -}function importForeign(foreignFunctions) -{ - var s = ""; - for (let h of foreignFunctions) { - s += " var " + h + " = foreign." + h + ";\n"; - } - return s; -}function asmJsFunction(globalEnv, name, ret, args) -{ - var s = " function " + name + "(" + args.join(", ") + ")\n"; - s += " {\n"; - s += parameterTypeAnnotations(args); - var locals = args; - while (rnd(2)) { - var isDouble = rnd(2); - var local = (isDouble ? "d" : "i") + locals.length; - s += " var " + local + " = " + (isDouble ? doubleLiteral() : "0") + ";\n"; - locals.push(local); - } var env = {globalEnv: globalEnv, locals: locals, ret: ret}; - if (locals.length) { - while (rnd(5)) { - s += asmStatement(" ", env, 6); - } - } - if (ret != "void" || rnd(2)) - s += asmReturnStatement(" ", env); s += " }\n"; return s; -}function asmStatement(indent, env, d) -{ - if (!env.globalEnv.sanePlease && rnd(100) === 0) - return makeStatement(3, ["x"]); if (rnd(5) === 0 && d > 0) { - return indent + "{\n" + asmStatement(indent + " ", env, d - 1) + indent + "}\n"; - } - if (rnd(20) === 0 && d > 3) { - return asmSwitchStatement(indent, env, d); - } - if (rnd(10) === 0) { - return asmReturnStatement(indent, env); - } - if (rnd(50) === 0 && env.globalEnv.foreignFunctions.length) { - return asmVoidCallStatement(indent, env); - } - if (rnd(100) === 0) - return ";"; - return asmAssignmentStatement(indent, env); -}function asmVoidCallStatement(indent, env) -{ - return indent + asmFfiCall(8, env) + ";\n"; -}function asmAssignmentStatement(indent, env) -{ - if (rnd(5) === 0 || !env.locals.length) { - if (rnd(2)) { - return indent + intishMemberExpr(8, env) + " = " + intishExpr(10, env) + ";\n"; - } else { - return indent + doublishMemberExpr(8, env) + " = " + doublishExpr(10, env) + ";\n"; - } - } var local = Random.index(env.locals); - if (local.charAt(0) == "d") { - return indent + local + " = " + doubleExpr(10, env) + ";\n"; - } else { - return indent + local + " = " + intExpr(10, env) + ";\n"; - } -}function asmReturnStatement(indent, env) -{ - var ret = rnd(2) ? env.ret : Random.index(["double", "signed", "void"]); - if (env.ret == "double") - return indent + "return +" + doublishExpr(10, env) + ";\n"; - else if (env.ret == "signed") - return indent + "return (" + intishExpr(10, env) + ")|0;\n"; - else - return indent + "return;\n"; -}function asmSwitchStatement(indent, env, d) -{ - var s = indent + "switch (" + signedExpr(4, env) + ") {\n"; - while (rnd(3)) { - s += indent + " case " + (rnd(5)-3) + ":\n"; - s += asmStatement(indent + " ", env, d - 2); - if (rnd(4)) - s += indent + " break;\n"; - } - if (rnd(2)) { - s += indent + " default:\n"; - s += asmStatement(indent + " ", env, d - 2); - } - s += indent + "}\n"; - return s; -}function parameterTypeAnnotations(args) -{ - var s = ""; - for (var a = 0; a < args.length; ++a) { - var arg = args[a]; - if (arg.charAt(0) == "i") - s += " " + arg + " = " + arg + "|0;\n"; - else - s += " " + arg + " = " + "+" + arg + ";\n"; - } - return s; -} -var additive = ["+", "-"]; -var intExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return intLiteralRange(-0x8000000, 0xffffffff); }}, - {w: 1, v: function(d, e) { return intExpr(d - 3, e) + " ? " + intExpr(d - 3, e) + " : " + intExpr(d - 3, e); }}, - {w: 1, v: function(d, e) { return "!" + intExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return signedExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 1, e); }}, - {w: 10, v: function(d, e) { return intVar(e); }}, - {w: 1, v: function(d, e) { return e.globalEnv.foreignFunctions.length ? asmFfiCall(d, e) + "|0" : "1"; }}, - {w: 1, v: function(d, e) { return signedExpr(d - 2, e) + Random.index([" < ", " <= ", " > ", " >= ", " == ", " != "]) + signedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 2, e) + Random.index([" < ", " <= ", " > ", " >= ", " == ", " != "]) + unsignedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doubleExpr(d - 2, e) + Random.index([" < ", " <= ", " > ", " >= ", " == ", " != "]) + doubleExpr(d - 2, e); }}, -]));var intishExpr = autoExpr(Random.weighted([ - {w: 10, v: function(d, e) { return intExpr(d, e); }}, - {w: 1, v: function(d, e) { return intishMemberExpr(d, e); }}, - - {w: 10, v: function(d, e) { return intExpr(d - 1, e) + Random.index(additive) + intExpr(d - 1, e); }}, - {w: 5, v: function(d, e) { return intExpr(d - 2, e) + Random.index(additive) + intExpr(d - 2, e) + Random.index(additive) + intExpr(d - 2, e); }}, - - {w: 2, v: function(d, e) { return intExpr(d - 1, e) + "*" + intLiteralRange(-0xfffff, 0xfffff); }}, - {w: 2, v: function(d, e) { return intLiteralRange(-0xfffff, 0xfffff) + "*" + intExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "-" + intExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return signedExpr(d - 2, e) + " / " + signedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 2, e) + " / " + unsignedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return signedExpr(d - 2, e) + " % " + signedExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return unsignedExpr(d - 2, e) + " % " + unsignedExpr(d - 2, e); }}, -]));var signedExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return intLiteralRange(-0x8000000, 0x7fffffff); }}, - {w: 1, v: function(d, e) { return "~" + intishExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "~~" + doubleExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return intishExpr(d - 1, e) + "|0"; }}, - {w: 1, v: function(d, e) { return ensureMathImport(e, "imul") + "(" + intExpr(d - 2, e) + ", " + intExpr(d - 2, e) + ")|0"; }}, - {w: 1, v: function(d, e) { return ensureMathImport(e, "abs") + "(" + signedExpr(d - 1, e) + ")|0"; }}, - {w: 5, v: function(d, e) { return intishExpr(d - 2, e) + Random.index([" | ", " & ", " ^ ", " << ", " >> "]) + intishExpr(d - 2, e); }}, -]));var unsignedExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return intLiteralRange(0, 0xffffffff); }}, - {w: 1, v: function(d, e) { return intishExpr(d - 2, e) + ">>>" + intishExpr(d - 2, e); }}, -]));var doublishExpr = autoExpr(Random.weighted([ - {w: 10, v: function(d, e) { return doubleExpr(d, e); }}, - {w: 1, v: function(d, e) { return doublishMemberExpr(d, e); }}, - -]));var doubleExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return doubleLiteral(); }}, - {w: 20, v: function(d, e) { return doubleVar(e); }}, - {w: 1, v: function(d, e) { return e.globalEnv.foreignFunctions.length ? "+" + asmFfiCall(d, e) : "1.0"; }}, - {w: 1, v: function(d, e) { return "+(1.0/0.0)"; }}, - {w: 1, v: function(d, e) { return "+(0.0/0.0)"; }}, - {w: 1, v: function(d, e) { return "+(-1.0/0.0)"; }}, - - {w: 1, v: function(d, e) { return "+" + signedExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "+" + unsignedExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "+" + doublishExpr(d - 1, e); }}, - {w: 1, v: function(d, e) { return "-" + doublishExpr(d - 1, e); }}, - - {w: 1, v: function(d, e) { return doubleExpr(d - 2, e) + " + " + doubleExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " - " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " * " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " / " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return doublishExpr(d - 2, e) + " % " + doublishExpr(d - 2, e); }}, - {w: 1, v: function(d, e) { return intExpr(d - 3, e) + " ? " + doubleExpr(d - 3, e) + " : " + doubleExpr(d - 3, e); }}, - - {w: 1, v: function(d, e) { return "+" + ensureMathImport(e, Random.index(["acos", "asin", "atan", "cos", "sin", "tan", "ceil", "floor", "exp", "log", "sqrt"])) + "(" + doublishExpr(d - 1, e) + ")"; }}, - {w: 1, v: function(d, e) { return "+" + ensureMathImport(e, "abs") + "(" + doublishExpr(d - 1, e) + ")"; }}, - {w: 1, v: function(d, e) { return "+" + ensureMathImport(e, Random.index(["atan2", "pow"])) + "(" + doublishExpr(d - 2, e) + ", " + doublishExpr(d - 2, e) + ")"; }}, - {w: 1, v: function(d, e) { return ensureImport(e, "Infinity"); }}, - {w: 1, v: function(d, e) { return ensureImport(e, "NaN"); }}, -]));var externExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return doubleExpr(d, e); } }, - {w: 1, v: function(d, e) { return signedExpr(d, e); } }, -]));var intishMemberExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return ensureView(e, Random.index(["Int8Array", "Uint8Array" ])) + "[" + asmIndex(d, e, 0) + "]"; }}, - {w: 1, v: function(d, e) { return ensureView(e, Random.index(["Int16Array", "Uint16Array"])) + "[" + asmIndex(d, e, 1) + "]"; }}, - {w: 1, v: function(d, e) { return ensureView(e, Random.index(["Int32Array", "Uint32Array"])) + "[" + asmIndex(d, e, 2) + "]"; }}, -]), true);var doublishMemberExpr = autoExpr(Random.weighted([ - {w: 1, v: function(d, e) { return ensureView(e, "Float32Array") + "[" + asmIndex(d, e, 2) + "]"; }}, - {w: 1, v: function(d, e) { return ensureView(e, "Float64Array") + "[" + asmIndex(d, e, 3) + "]"; }}, -]), true);function asmIndex(d, e, logSize) -{ - if (rnd(2) || d < 2) - return Random.index(["0", "1", "2", "4096"]); return intishExpr(d - 2, e) + " >> " + logSize; -}function asmFfiCall(d, e) -{ - var argList = ""; - while (rnd(6)) { - if (argList) - argList += ", "; - d -= 1; - argList += externExpr(d, e); - } return "/*FFI*/" + Random.index(e.globalEnv.foreignFunctions) + "(" + argList + ")"; -} -function ensureView(e, t) -{ - var varName = t + "View"; - if (!(varName in e.globalEnv.heapImported)) { - e.globalEnv.heapImports += " var " + varName + " = new stdlib." + t + "(heap);\n"; - e.globalEnv.heapImported[varName] = true; - } - return varName; -}function ensureMathImport(e, f) -{ - return ensureImport(e, f, "Math."); -}function ensureImport(e, f, prefix) -{ - if (!(f in e.globalEnv.stdlibImported)) { - e.globalEnv.stdlibImports += " var " + f + " = stdlib." + (prefix||"") + f + ";\n"; - e.globalEnv.stdlibImported[f] = true; - } - return f; -} -var anyAsmExpr = [intExpr, intishExpr, signedExpr, doublishExpr, doubleExpr, intishMemberExpr, doublishMemberExpr];function autoExpr(funs, avoidSubst) -{ - return function(d, e) { - var f = d < 1 ? funs[0] : - rnd(50) === 0 && !e.globalEnv.sanePlease ? function(_d, _e) { return makeExpr(5, ["x"]); } : - rnd(50) === 0 && !avoidSubst ? Random.index(anyAsmExpr) : - Random.index(funs); - return "(" + f(d, e) + ")"; - }; -}function intVar(e) -{ - var locals = e.locals; - if (!locals.length) - return intLiteralRange(-0x8000000, 0xffffffff); - var local = Random.index(locals); - if (local.charAt(0) == "i") - return local; - return intLiteralRange(-0x8000000, 0xffffffff); -}function doubleVar(e) -{ - var locals = e.locals; - if (!locals.length) - return doubleLiteral(); - var local = Random.index(locals); - if (local.charAt(0) == "d") - return local; - return doubleLiteral(); -} -function doubleLiteral() -{ - return Random.index(["-", ""]) + positiveDoubleLiteral(); -}function positiveDoubleLiteral() -{ - if (rnd(3) === 0) { - Random.index(["0.0", "1.0", "1.2345e60"]); - } - var value = Math.pow(2, rnd(100) - 10); - if (rnd(3)) { - value += 1; - } else if (value > 1 && rnd(2)) { - value -= 1; - } var str = value + ""; - if (str.indexOf(".") == -1) { - return str + ".0"; - } - - return str; -}function fuzzyRange(min, max) -{ - if (rnd(10000) === 0) - return min - 1; - if (rnd(10000) === 0) - return max + 1; - if (rnd(10) === 0) - return min; - if (rnd(10) === 0) - return max; - if (max > min + 0x100000000 && rnd(3) === 0) - return min + 0x100000000 + rnd(max - (min + 0x100000000) + 1); - return min + rnd(max - min + 1); -}function intLiteralRange(min, max) -{ - var val = fuzzyRange(min, max); - var sign = val < 0 ? "-" : ""; - return sign + "0x" + Math.abs(val).toString(16); -} -const NUM_MATH_FUNCTIONS = 6;var binaryMathOps = [ - " * ", /* NODIFF " / " */, " % ", - " + ", " - ", - " ** ", - " << ", " >> ", " >>> ", - " < ", " > ", " <= ", " >= ", - " == ", " != ", - " === ", " !== ", - " & ", " | ", " ^ ", " && ", " || ", - " , ", -];var leftUnaryMathOps = [ - " ! ", " + ", " - ", " ~ ", -];var unaryMathFunctions = [ - "abs", - "acos", - "acosh", - "asin", - "asinh", - "atan", - "atanh", - "cbrt", - "ceil", - "cos", - "cosh", - "exp", - "expm1", - - "fround", - "log", - "log2", - "log10", - "log1p", - - "round", - "sign", - "sin", - "sinh", - "sqrt", - "tan", - "tanh", - "trunc", -]; -var binaryMathFunctions = [ - "atan2", - "hypot", - "imul", - "max", - "min", - "pow", -];function makeMathFunction(d, b, i) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var ivars = ["x", "y"]; - if (rnd(10) == 0) { - - ivars = ivars.concat(b); - } - return "(function(x, y) { " + directivePrologue() + "return " + makeMathExpr(d, ivars, i) + "; })"; -}function makeMathExpr(d, b, i) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - if (d < rnd(5)) { - if (rnd(4)) { - return Random.index(b); - } - return Random.index(numericVals); - } if (rnd(500) == 0 && d > 0) - return makeExpr(d - 1, b); function r() { return makeMathExpr(d - 1, b, i); } - - var commonCoercion = rnd(10); - function mc(expr) { - switch(rnd(3) ? commonCoercion : rnd(10)) { - case 0: return "(" + " + " + expr + ")"; - case 1: return "Math.fround(" + expr + ")"; - case 2: return "(" + expr + " | 0)"; - case 3: return "(" + expr + " >>> 0)"; - default: return expr; - } - } if (i > 0 && rnd(10) == 0) { - - return mc("mathy" + rnd(i) + "(" + mc(r()) + ", " + mc(r()) + ")"); - } if (rnd(20) == 0) { - return mc("(" + mc(r()) + " ? " + mc(r()) + " : " + mc(r()) + ")"); - } switch(rnd(4)) { - case 0: return mc("(" + mc(r()) + Random.index(binaryMathOps) + mc(r()) + ")"); - case 1: return mc("(" + Random.index(leftUnaryMathOps) + mc(r()) + ")"); - case 2: return mc("Math." + Random.index(unaryMathFunctions) + "(" + mc(r()) + ")"); - default: return mc("Math." + Random.index(binaryMathFunctions) + "(" + mc(r()) + ", " + mc(r()) + ")"); - } -}/**************************** - * GRAMMAR-BASED GENERATION * - ****************************/ -function makeScript(d, ignoredB) -{ - return directivePrologue() + makeScriptBody(d, ignoredB); -}function makeScriptBody(d, ignoredB) -{ - if (rnd(3) == 0) { - return makeMathyFunAndTest(d, ["x"]); - } - return makeStatement(d, ["x"]); -}function makeScriptForEval(d, b) -{ - switch (rnd(4)) { - case 0: return makeExpr(d - 1, b); - case 1: return makeStatement(d - 1, b); - case 2: return makeUseRegressionTest(d, b); - default: return makeScript(d - 3, b); - } -}function makeStatement(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(2)) - return makeBuilderStatement(d, b); if (d < 6 && rnd(3) === 0) - return makePrintStatement(d, b); if (d < rnd(8)) - return makeLittleStatement(d, b); d = rnd(d); return (Random.index(statementMakers))(d, b); -}var varBinder = ["var ", "let ", "const ", ""]; -var varBinderFor = ["var ", "let ", ""]; -function forLoopHead(d, b, v, reps) -{ - var sInit = Random.index(varBinderFor) + v + " = 0"; - var sCond = v + " < " + reps; - var sNext = "++" + v; while (rnd(10) === 0) - sInit += ", " + makeLetHeadItem(d - 2, b); - while (rnd(10) === 0) - sInit += ", " + makeExpr(d - 2, b); while (rnd(20) === 0) - sCond = sCond + " && (" + makeExpr(d - 2, b) + ")"; - while (rnd(20) === 0) - sCond = "(" + makeExpr(d - 2, b) + ") && " + sCond; while (rnd(20) === 0) - sNext = sNext + ", " + makeExpr(d - 2, b); - while (rnd(20) === 0) - sNext = makeExpr(d - 2, b) + ", " + sNext; return "for (" + sInit + "; " + sCond + "; " + sNext + ")"; -}function makeOpaqueIdiomaticLoop(d, b) -{ - var reps = loopCount(); - var vHidden = uniqueVarName(); - return "/*oLoop*/" + forLoopHead(d, b, vHidden, reps) + " { " + - makeStatement(d - 2, b) + - " } "; -}function makeTransparentIdiomaticLoop(d, b) -{ - var reps = loopCount(); - var vHidden = uniqueVarName(); - var vVisible = makeNewId(d, b); - return "/*vLoop*/" + forLoopHead(d, b, vHidden, reps) + - " { " + - Random.index(varBinder) + vVisible + " = " + vHidden + "; " + - makeStatement(d - 2, b.concat([vVisible])) + - " } "; -}function makeBranchUnstableLoop(d, b) -{ - var reps = loopCount(); - var v = uniqueVarName(); - var mod = loopModulo(); - var target = rnd(mod); - return "/*bLoop*/" + forLoopHead(d, b, v, reps) + " { " + - "if (" + v + " % " + mod + " == " + target + ") { " + makeStatement(d - 2, b) + " } " + - "else { " + makeStatement(d - 2, b) + " } " + - " } "; -}function makeTypeUnstableLoop(d, b) { - var a = makeMixedTypeArray(d, b); - var v = makeNewId(d, b); - var bv = b.concat([v]); - return "/*tLoop*/for (let " + v + " of " + a + ") { " + makeStatement(d - 2, bv) + " }"; -} -function makeFunOnCallChain(d, b) { - var s = "arguments.callee"; - while (rnd(2)) - s += ".caller"; - return s; -} -var statementMakers = Random.weighted([ - { w: 15, v: function(d, b) { return cat([makeStatement(d - 1, b), makeStatement(d - 1, b) ]); } }, - { w: 15, v: function(d, b) { return cat([makeStatement(d - 1, b), "\n", makeStatement(d - 1, b), "\n"]); } }, - { w: 1, v: function(d, b) { return cat([stripSemicolon(makeStatement(d, b)), "\n", makeStatement(d, b)]); } }, - { w: 1, v: function(d, b) { return cat([stripSemicolon(makeStatement(d, b)), "\n" ]); } }, - { w: 1, v: function(d, b) { return stripSemicolon(makeStatement(d, b)); } }, - { w: 4, v: function(d, b) { var v = makeNewId(d, b); return cat([Random.index(varBinder), v, " = ", makeExpr(d, b), ";", makeStatement(d - 1, b.concat([v]))]); } }, - { w: 4, v: function(d, b) { var v = makeNewId(d, b); return cat([makeStatement(d - 1, b.concat([v])), Random.index(varBinder), v, " = ", makeExpr(d, b), ";"]); } }, - { w: 10, v: function(d, b) { return cat([Random.index(varBinder), makeLetHead(d, b), ";", makeStatement(d - 1, b)]); } }, - { w: 2, v: function(d, b) { return cat(["{", makeStatement(d, b), " }"]); } }, - { w: 2, v: function(d, b) { return cat(["{", makeStatement(d - 1, b), makeStatement(d - 1, b), " }"]); } }, - { w: 2, v: function(d, b) { return cat([maybeLabel(), "with", "(", makeExpr(d, b), ")", makeStatementOrBlock(d, b)]); } }, - { w: 2, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "with", "(", "{", v, ": ", makeExpr(d, b), "}", ")", makeStatementOrBlock(d, b.concat([v]))]); } }, - - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", makeExpr(d, b), "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " = ", makeExpr(d, b), "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeDestructuringLValue(d, b), " = ", makeExpr(d, b), "; ", makeExpr(d, b), "; ", makeExpr(d, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 6, v: makeTransparentIdiomaticLoop }, - { w: 6, v: makeOpaqueIdiomaticLoop }, - { w: 6, v: makeBranchUnstableLoop }, - { w: 8, v: makeTypeUnstableLoop }, - - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeForInLHS(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeForInLHS(d, b), " in ", "(", "(", makeFunction(d, b), ")", "(", makeExpr(d, b), ")", ")", ")", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " in ", "(", "(", makeFunction(d, b), ")", "(", makeExpr(d, b), ")", ")", ")", makeStatementOrBlock(d, b.concat([v]))]); } }, - - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), " for ", " each", "(", Random.index(varBinderFor), makeLValue(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), " for ", " each", "(", Random.index(varBinderFor), v, " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), " for ", "(", Random.index(varBinderFor), makeLValue(d, b), " of ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), " for ", "(", Random.index(varBinderFor), v, " of ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - - - - - - { w: 1, v: function(d, b) { return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), makeId(d, b), " = ", makeExpr(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), v, " = ", makeExpr(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v]))]); } }, - { w: 1, v: function(d, b) { var v = makeNewId(d, b), w = makeNewId(d, b); return cat([maybeLabel(), "for", "(", Random.index(varBinderFor), "[", v, ", ", w, "]", " = ", makeExpr(d, b), " in ", makeExpr(d - 2, b), ") ", makeStatementOrBlock(d, b.concat([v, w]))]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "while((", makeExpr(d, b), ") && 0)" /*don't split this, it's needed to avoid marking as infloop*/, makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "while", "(", makeExpr(d, b), ")", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "do ", makeStatementOrBlock(d, b), " while((", makeExpr(d, b), ") && 0)" /*don't split this, it's needed to avoid marking as infloop*/, ";"]); } }, - { w: 1, v: function(d, b) { return "/*infloop*/" + cat([maybeLabel(), "do ", makeStatementOrBlock(d, b), " while", "(", makeExpr(d, b), ");"]); } }, - { w: 3, v: function(d, b) { return cat([maybeLabel(), "switch", "(", makeExpr(d, b), ")", " { ", makeSwitchBody(d, b), " }"]); } }, - { w: 2, v: function(d, b) { var v = makeNewId(d, b); return cat(["let ", "(", v, ")", " { ", makeStatement(d, b.concat([v])), " }"]); } }, - { w: 2, v: function(d, b) { return cat(["let ", "(", makeLetHead(d, b), ")", " { ", makeStatement(d, b), " }"]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", makeStatementOrBlock(d - 1, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b)]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", makeStatementOrBlock(d - 1, b)]); } }, - - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", "{", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b), " else ", makeStatementOrBlock(d - 1, b), "}"]); } }, - { w: 1, v: function(d, b) { return cat([maybeLabel(), "if(", makeBoolean(d, b), ") ", "{", " if ", "(", makeExpr(d, b), ") ", makeStatementOrBlock(d - 1, b), "}", " else ", makeStatementOrBlock(d - 1, b)]); } }, - { w: 5, v: function(d, b) { return cat([makeExpr(d, b), ";"]); } }, - { w: 5, v: function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); } }, - { w: 6, v: function(d, b) { return makeExceptionyStatement(d - 1, b) + makeExceptionyStatement(d - 1, b); } }, - { w: 7, v: function(d, b) { return makeExceptionyStatement(d, b); } }, - { w: 1, v: function(d, b) { return cat(["L", ": ", makeStatementOrBlock(d, b)]); } }, - { w: 10, v: function(d, b) { return cat([makeStatement(d-2, b), "function ", makeId(d, b), "(", makeFormalArgList(d, b), ")", makeFunctionBody(d - 1, b), makeStatement(d-2, b)]); } }, - { w: 8, v: makeNamedFunctionAndUse }, - - - { w: 1, v: function(d, b) { if (rnd(200)==0) return "/*DUPTRY" + rnd(10000) + "*/" + makeStatement(d - 1, b); return ";"; } }, { w: 1, v: function(d, b) { return makeShapeyConstructorLoop(d, b); } }, - { w: 1, v: function(d, b) { var x = makeId(d, b); return x + " = linkedList(" + x + ", " + (rnd(100) * rnd(100)) + ");"; } }, - { w: 1, v: function(d, b) { return directivePrologue() + makeStatement(d - 1, b); } }, - { w: 3, v: function(d, b) { return makeTestingFunctionCall(d, b); } }, - { w: 3, v: function(d, b) { return makeTestingFunctionCall(d - 1, b) + " " + makeStatement(d - 1, b); } }, - { w: 8, v: makeTypedArrayStatements }, - { w: 8, v: makePrintStatement }, { w: 20, v: makeRegexUseBlock }, { w: 1, v: makeRegisterStompBody }, { w: 20, v: makeUseRegressionTest }, - - -]);if (typeof oomTest == "function" && engine != ENGINE_SPIDERMONKEY_MOZILLA45) { - statementMakers = statementMakers.concat([ - function(d, b) { return "oomTest(" + makeFunction(d, b-1) + ")"; }, - ]); -} -function makeUseRegressionTest(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (typeof regressionTestList != "object") { - return "/* no regression tests found */"; - } var maintest = regressionTestsRoot + Random.index(regressionTestList); - var files = regressionTestDependencies(maintest); var s = ""; if (rnd(5) == 0) { - - - s += "assertEq = function(x, y) { if (x != y) { print(0); } }; "; - } for (var i = 0; i < files.length; ++i) { - var file = files[i]; if (regressionTestIsEvil(read(file))) { - continue; - } switch (rnd(2)) { - case 0: - - s += "/* regression-test-inline */ " + inlineRegressionTest(file); - break; - default: - - s += "/* regression-test-load */ " + "load(" + simpleSource(file) + ");"; - break; - - } - } - return s; -}function regressionTestIsEvil(contents) -{ - if (contents.indexOf("SIMD") != -1) { - - return true; - } - if (contents.indexOf("print = ") != -1) { - - return true; - } - return false; -}function inlineRegressionTest(filename) -{ - const s = "/* " + filename + " */ " + read(filename) + "\n"; const noDiffTestingFunctions = [ - - "gcparam", - "startgc", - "setJitCompilerOption", - "disableSingleStepProfiling", - "enableSingleStepProfiling", - - "isAsmJSCompilationAvailable", - "isSimdAvailable", - "hasChild", - "PerfMeasurement", - ]; for (var f of noDiffTestingFunctions) { - if (s.indexOf(f) != -1) { - return "/*NODIFF*/ " + s; - } - } return s; -} -function regressionTestDependencies(maintest) -{ - var files = []; if (rnd(3)) { - - for (var i = regressionTestsRoot.length; i < maintest.length; ++i) { - if (maintest.charAt(i) == "/" || maintest.charAt(i) == "\\") { - var shelljs = maintest.substr(0, i + 1) + "shell.js"; - if (regressionTestList.indexOf(shelljs) != -1) { - files.push(shelljs); - } - } - } - if (maintest.indexOf("jit-test") != -1) { - files.push(libdir + "prologue.js"); - } - } files.push(maintest); - return files; -} -function linkedList(x, n) -{ - for (var i = 0; i < n; ++i) - x = {a: x}; - return x; -}function makeNamedFunctionAndUse(d, b) { - - var funcName = uniqueVarName(); - var formalArgList = makeFormalArgList(d, b); - var bv = formalArgList.length == 1 ? b.concat(formalArgList) : b; - var declStatement = cat(["/*hhh*/function ", funcName, "(", formalArgList, ")", "{", makeStatement(d - 1, bv), "}"]); - var useStatement; - if (rnd(2)) { - - useStatement = cat([funcName, "(", makeActualArgList(d, b), ")", ";"]); - } else { - - useStatement = "/*iii*/" + makeStatement(d - 1, b.concat([funcName])); - } - if (rnd(2)) { - return declStatement + useStatement; - } else { - return useStatement + declStatement; - } -}function makePrintStatement(d, b) -{ - if (rnd(2) && b.length) - return "print(" + Random.index(b) + ");"; - else - return "print(" + makeExpr(d, b) + ");"; -} -function maybeLabel() -{ - if (rnd(4) === 1) - return cat([Random.index(["L", "M"]), ":"]); - else - return ""; -} -function uniqueVarName() -{ - - var i, s = ""; - for (i = 0; i < 6; ++i) - s += String.fromCharCode(97 + rnd(26)); - return s; -}function makeSwitchBody(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var haveSomething = false; - var haveDefault = false; - var output = ""; do { if (!haveSomething || rnd(2)) { - if (!haveDefault && rnd(2)) { - output += "default: "; - haveDefault = true; - } - else { - - - output += "case " + (rnd(2) ? rnd(10) : makeExpr(d, b)) + ": "; - } haveSomething = true; - } - if (rnd(2)) - output += makeStatement(d, b); - if (rnd(2)) - output += "break; "; if (rnd(2)) - --d; } while (d && rnd(5)); return output; -}function makeLittleStatement(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if (rnd(4) === 1) - return makeStatement(d, b); return (Random.index(littleStatementMakers))(d, b); -}var littleStatementMakers = -[ - - function(d, b) { return cat([";"]); }, - function(d, b) { return cat(["{", "}"]); }, - function(d, b) { return cat([""]); }, - function(d, b) { return cat(["throw ", makeExpr(d, b), ";"]); }, - function(d, b) { return cat([Random.index(["continue", "break"]), " ", Random.index(["L", "M", "", ""]), ";"]); }, - - function(d, b) { return makeFunction(d, b); }, - function(d, b) { return cat(["return ", makeExpr(d, b), ";"]); }, - function(d, b) { return "return;"; }, - function(d, b) { return cat(["yield ", makeExpr(d, b), ";"]); }, - function(d, b) { return "yield;"; }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat([makeExpr(d, b), ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", ";"]); }, -]; -function makeStatementOrBlock(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return (Random.index(statementBlockMakers))(d - 1, b); -}var statementBlockMakers = [ - function(d, b) { return makeStatement(d, b); }, - function(d, b) { return makeStatement(d, b); }, - function(d, b) { return cat(["{", makeStatement(d, b), " }"]); }, - function(d, b) { return cat(["{", makeStatement(d - 1, b), makeStatement(d - 1, b), " }"]); }, -]; -function makeExceptionyStatement(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; - if (d < 1) - return makeLittleStatement(d, b); return (Random.index(exceptionyStatementMakers))(d, b); -}var exceptionProperties = ["constructor", "message", "name", "fileName", "lineNumber", "stack"];var exceptionyStatementMakers = [ - function(d, b) { return makeTryBlock(d, b); }, function(d, b) { return makeStatement(d, b); }, - function(d, b) { return makeLittleStatement(d, b); }, function(d, b) { return "return;"; }, - function(d, b) { return cat(["return ", makeExpr(d, b), ";"]); }, - function(d, b) { return cat(["yield ", makeExpr(d, b), ";"]); }, - function(d, b) { return cat(["throw ", makeId(d, b), ";"]); }, - function(d, b) { return "throw StopIteration;"; }, - function(d, b) { return "this.zzz.zzz;"; }, - function(d, b) { return b[b.length - 1] + "." + Random.index(exceptionProperties) + ";"; }, - function(d, b) { return makeId(d, b) + "." + Random.index(exceptionProperties) + ";"; }, - function(d, b) { return cat([makeId(d, b), " = ", makeId(d, b), ";"]); }, - function(d, b) { return cat([makeLValue(d, b), " = ", makeId(d, b), ";"]); }, - - function(d, b) { var v = makeNewId(d, b); return "for(let " + v + " in []);"; }, - function(d, b) { var v = makeNewId(d, b); return "for(let " + v + " in " + makeIterable(d, b) + ") " + makeExceptionyStatement(d, b.concat([v])); }, - function(d, b) { var v = makeNewId(d, b); return "for(let " + v + " of " + makeIterable(d, b) + ") " + makeExceptionyStatement(d, b.concat([v])); }, - - function(d, b) { return "with({}) " + makeExceptionyStatement(d, b); }, - function(d, b) { return "with({}) { " + makeExceptionyStatement(d, b) + " } "; }, - function(d, b) { var v = makeNewId(d, b); return "let(" + v + ") { " + makeExceptionyStatement(d, b.concat([v])) + "}"; }, - function(d, b) { var v = makeNewId(d, b); return "let(" + v + ") ((function(){" + makeExceptionyStatement(d, b.concat([v])) + "})());"; }, - function(d, b) { return "let(" + makeLetHead(d, b) + ") { " + makeExceptionyStatement(d, b) + "}"; }, - function(d, b) { return "let(" + makeLetHead(d, b) + ") ((function(){" + makeExceptionyStatement(d, b) + "})());"; }, -/* - - function(d, b) { return "(function () { try { yield " + makeExpr(d, b) + " } finally { " + makeStatement(d, b) + " } })().next()"; }, function(d, b) { return "(function () { try { yield " + makeExpr(d, b) + " } finally { " + makeStatement(d, b) + " } })()"; }, - function(d, b) { return "(function () { try { yield " + makeExpr(d, b) + " } finally { " + makeStatement(d, b) + " } })"; }, - function(d, b) { - return "function gen() { try { yield 1; } finally { " + makeStatement(d, b) + " } } var i = gen(); i.next(); i = null;"; - }*/ -];function makeTryBlock(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - - - d = d - rnd(3); - var s = cat(["try", " { ", makeExceptionyStatement(d, b), " } "]); var numCatches = 0; while(rnd(3) === 0) { - - ++numCatches; - var catchId = makeId(d, b); - var catchBlock = makeExceptionyStatement(d, b.concat([catchId])); - if (rnd(2)) - s += cat(["catch", "(", catchId, " if ", makeExpr(d, b), ")", " { ", catchBlock, " } "]); - else - s += cat(["catch", "(", catchId, " if ", "(function(){", makeExceptionyStatement(d, b), "})())", " { ", catchBlock, " } "]); - } if (rnd(2)) { - - ++numCatches; - var catchId = makeId(d, b); - var catchBlock = makeExceptionyStatement(d, b.concat([catchId])); - s += cat(["catch", "(", catchId, ")", " { ", catchBlock, " } "]); - } if (numCatches == 0 || rnd(2) === 1) { - - s += cat(["finally", " { ", makeExceptionyStatement(d, b), " } "]); - } return s; -} -function makeExpr(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d <= 0 || (rnd(7) === 1)) - return makeTerm(d - 1, b); if (rnd(6) === 1 && b.length) - return Random.index(b); if (rnd(10) === 1) - return makeImmediateRecursiveCall(d, b); d = rnd(d); var expr = (Random.index(exprMakers))(d, b); if (rnd(4) === 1) - return "(" + expr + ")"; - else - return expr; -}var binaryOps = [ - - " * ", " / ", " % ", " + ", " - ", " << ", " >> ", " >>> ", " < ", " > ", " <= ", " >= ", " instanceof ", " in ", " == ", " != ", " === ", " !== ", - " & ", " | ", " ^ ", " && ", " || ", " = ", " *= ", " /= ", " %= ", " += ", " -= ", " <<= ", " >>= ", " >>>= ", " &= ", " ^= ", " |= ", " , ", " ** ", " **= " -];var leftUnaryOps = [ - "!", "+", "-", "~", - "void ", "typeof ", "delete ", - "new ", - "yield " -];var incDecOps = [ - "++", "--", -]; -var specialProperties = [ - "__iterator__", "__count__", - "__parent__", "__proto__", "constructor", "prototype", - "wrappedJSObject", - "arguments", "caller", "callee", - "toString", "toSource", "valueOf", - "call", "apply", - "length", - "0", "1", -]; -/* -function addPropertyName(p) -{ - p = "" + p; - if ( - p != "floor" && - p != "random" && - p != "parent" && - true) { - print("Adding: " + p); - allPropertyNames.push(p); - } -} -*/var exprMakers = -[ - - function(d, b) { return cat([makeLValue(d, b), Random.index(incDecOps)]); }, - function(d, b) { return cat([Random.index(incDecOps), makeLValue(d, b)]); }, - function(d, b) { return cat([Random.index(leftUnaryOps), makeExpr(d, b)]); }, - function(d, b) { var id = makeId(d, b); return cat(["/*UUV1*/", "(", id, ".", Random.index(allMethodNames), " = ", makeFunction(d, b), ")"]); }, - function(d, b) { var id = makeId(d, b); return cat(["/*UUV2*/", "(", id, ".", Random.index(allMethodNames), " = ", id, ".", Random.index(allMethodNames), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", Random.index(allMethodNames), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "valueOf", "(", uneval("number"), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), Random.index(binaryOps), makeExpr(d, b)]); }, - function(d, b) { return cat([makeId(d, b), Random.index(binaryOps), makeId(d, b)]); }, - function(d, b) { return cat([makeId(d, b), Random.index(binaryOps), makeId(d, b)]); }, - function(d, b) { return cat([makeId(d, b), Random.index(binaryOps), makeId(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), " ? ", makeExpr(d, b), " : ", makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), " ? ", makeExpr(d, b), " : ", makeExpr(d, b)]); }, - function(d, b) { return cat(["yield ", makeExpr(d, b)]); }, - function(d, b) { return cat(["(", "yield ", makeExpr(d, b), ")"]); }, - - - - function(d, b) { return cat([makeArrayLiteral(d, b), ".", Random.index(["map", "filter", "some", "sort"]) ]); }, - function(d, b) { return cat([makeArrayLiteral(d, b), ".", Random.index(["map", "filter", "some", "sort"]), "(", makeFunction(d, b), ", ", makeExpr(d, b), ")"]); }, - function(d, b) { return cat([makeArrayLiteral(d, b), ".", Random.index(["map", "filter", "some", "sort"]), "(", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["'fafafa'", ".", "replace", "(", "/", "a", "/", "g", ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["[", makeExpr(d, b), "]"]); }, - function(d, b) { return cat(["(", "{", makeId(d, b), ": ", makeExpr(d, b), "}", ")"]); }, - function(d, b) { return makeFunction(d, b); }, - function(d, b) { return makeFunction(d, b) + ".prototype"; }, - function(d, b) { return cat(["(", makeFunction(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat([ makeExpr(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat([ makeFunction(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["(", makeFunction(d, b), ")", ".", "call", "(", makeExpr(d, b), ", ", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["new ", makeExpr(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["new ", "(", makeExpr(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, function(d, b) { return cat(["new ", makeFunction(d, b), "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return cat(["new ", "(", makeFunction(d, b), ")", "(", makeActualArgList(d, b), ")"]); }, - function(d, b) { return stripSemicolon(makeLittleStatement(d, b)); }, - function(d, b) { return ""; }, - function(d, b) { var v = makeNewId(d, b); return cat(["let ", "(", v, ") ", makeExpr(d - 1, b.concat([v]))]); }, - function(d, b) { var v = makeNewId(d, b); return cat(["let ", "(", v, " = ", makeExpr(d - 1, b), ") ", makeExpr(d - 1, b.concat([v]))]); }, - function(d, b) { return cat(["let ", "(", makeLetHead(d, b), ") ", makeExpr(d, b)]); }, - function(d, b) { return cat([" /* Comment */", makeExpr(d, b)]); }, - function(d, b) { return cat(["\n", makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), "\n"]); }, - function(d, b) { return cat([makeLValue(d, b)]); }, - function(d, b) { return cat([ makeLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([ makeLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat(["(", makeLValue(d, b), " = ", makeExpr(d, b), ")"]); }, - function(d, b) { return cat(["(", makeLValue(d, b), ")", " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([ makeDestructuringLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([ makeDestructuringLValue(d, b), " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat(["(", makeDestructuringLValue(d, b), " = ", makeExpr(d, b), ")"]); }, - function(d, b) { return cat(["(", makeDestructuringLValue(d, b), ")", " = ", makeExpr(d, b) ]); }, - function(d, b) { return cat([makeDestructuringLValue(d, b), " = ", makeDestructuringLValue(d, b)]); }, - function(d, b) { return cat([makeLValue(d, b), Random.index(["|=", "%=", "+=", "-="]), makeExpr(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "watch", "(", makePropertyName(d, b), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "unwatch", "(", makePropertyName(d, b), ")"]); }, - function(d, b) { return cat(["Object.defineProperty", "(", makeId(d, b), ", ", makePropertyName(d, b), ", ", makePropertyDescriptor(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "__defineGetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "__defineSetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["this", ".", "__defineGetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["this", ".", "__defineSetter__", "(", uneval(makeId(d, b)), ", ", makeFunction(d, b), ")"]); }, - function(d, b) { return cat(["(", "{", makeObjLiteralPart(d, b), " }", ")"]); }, - function(d, b) { return cat(["(", "{", makeObjLiteralPart(d, b), ", ", makeObjLiteralPart(d, b), " }", ")"]); }, - function(d, b) { return "(p={}, (p.z = " + makeExpr(d, b) + ")())"; }, - - - function(d, b) { return cat([makeExpr(d, b), ".", "throw", "(", makeExpr(d, b), ")"]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "yoyo", "(", makeExpr(d, b), ")"]); }, - - function(d, b) { return makeExpr(d, b) + ".eval(" + uneval(makeScriptForEval(d, b)) + ")"; }, - function(d, b) { return "eval(" + uneval(makeScriptForEval(d, b)) + ")"; }, - function(d, b) { return "eval(" + uneval(makeScriptForEval(d, b)) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return "(uneval(" + makeExpr(d, b) + "))"; }, - function(d, b) { return "new " + Random.index(constructors) + "(" + makeActualArgList(d, b) + ")"; }, - function(d, b) { return Random.index(constructors) + "(" + makeActualArgList(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(unaryMathFunctions) + "(" + makeExpr(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(unaryMathFunctions) + "(" + makeNumber(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeExpr(d, b) + ", " + makeExpr(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeExpr(d, b) + ", " + makeNumber(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeNumber(d, b) + ", " + makeExpr(d, b) + ")"; }, - function (d, b) { return "Math." + Random.index(binaryMathFunctions) + "(" + makeNumber(d, b) + ", " + makeNumber(d, b) + ")"; }, - function(d, b) { return makeId(d, b) + " = " + "Proxy.create(" + makeProxyHandler(d, b) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return makeId(d, b) + " = " + "Proxy.createFunction(" + makeProxyHandler(d, b) + ", " + makeFunction(d, b) + ")"; }, - function(d, b) { return makeId(d, b) + " = " + "Proxy.createFunction(" + makeProxyHandler(d, b) + ", " + makeFunction(d, b) + ", " + makeFunction(d, b) + ")"; }, function(d, b) { return cat(["delete", " ", makeId(d, b), ".", makeId(d, b)]); }, - function(d, b) { return "(void options('strict_mode'))"; }, - function(d, b) { return "(void options('strict'))"; }, - function(d, b) { return "(void version(" + Random.index([170, 180, 185]) + "))"; }, - - - function(d, b) { return "(void shapeOf(" + makeExpr(d, b) + "))"; }, - function(d, b) { return "intern(" + makeExpr(d, b) + ")"; }, - function(d, b) { return "allocationMarker()"; }, - function(d, b) { return "timeout(1800)"; }, - function(d, b) { return "(makeFinalizeObserver('tenured'))"; }, - function(d, b) { return "(makeFinalizeObserver('nursery'))"; }, makeRegexUseExpr, - makeShapeyValue, - makeIterable, - function(d, b) { return makeMathExpr(d + rnd(3), b); }, -]; -var fuzzTestingFunctions = fuzzTestingFunctionsCtor(!jsshell, fuzzTestingFunctionArg, fuzzTestingFunctionArg); -function fuzzTestingFunctionArg(d, b) { return "this"; }function makeTestingFunctionCall(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var callStatement = Random.index(fuzzTestingFunctions.testingFunctions)(d, b); - - var callBlock = "{ void 0; " + callStatement + " }"; if (jsshell && rnd(5) === 0) { - - - - - - - - - - - - - var cond = (rnd(2) ? "!" : "") + "isAsmJSCompilationAvailable()"; - return "{ if (" + cond + ") " + callBlock + " void 0; }"; - } return callBlock; -} -if (typeof evalcx == "function") { - exprMakers = exprMakers.concat([ - function(d, b) { return makeGlobal(d, b); }, - function(d, b) { return "evalcx(" + uneval(makeScriptForEval(d, b)) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return "evalcx(" + uneval(makeScriptForEval(d, b)) + ", " + makeGlobal(d, b) + ")"; }, - ]); -} -if (typeof XPCNativeWrapper == "function") { - exprMakers = exprMakers.extend([ - function(d, b) { return "new XPCNativeWrapper(" + makeExpr(d, b) + ")"; }, - function(d, b) { return "new XPCSafeJSObjectWrapper(" + makeExpr(d, b) + ")"; }, - ]); -}function makeNewGlobalArg(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - var propStrs = []; - if (rnd(2)) - propStrs.push("sameZoneAs: " + makeExpr(d - 1, b)); - if (rnd(2)) - propStrs.push("cloneSingletons: " + makeBoolean(d - 1, b)); - if (rnd(2)) - propStrs.push("disableLazyParsing: " + makeBoolean(d - 1, b)); - return "{ " + propStrs.join(", ") + " }"; -}function makeGlobal(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(10)) - return "this"; var gs; - switch(rnd(4)) { - case 0: gs = "evalcx('')"; break; - case 1: gs = "evalcx('lazy')"; break; - default: gs = "newGlobal(" + makeNewGlobalArg(d - 1, b) + ")"; break; - } if (rnd(2)) - gs = "fillShellSandbox(" + gs + ")"; return gs; -}if (xpcshell) { - exprMakers = exprMakers.concat([ - function(d, b) { var n = rnd(4); return "newGeckoSandbox(" + n + ")"; }, - function(d, b) { var n = rnd(4); return "s" + n + " = newGeckoSandbox(" + n + ")"; }, - - function(d, b) { var n = rnd(4); return "evalInSandbox(" + uneval(makeStatement(d, b)) + ", newGeckoSandbox(" + n + "))"; }, - function(d, b) { var n = rnd(4); return "evalInSandbox(" + uneval(makeStatement(d, b)) + ", s" + n + ")"; }, - function(d, b) { return "evalInSandbox(" + uneval(makeStatement(d, b)) + ", " + makeExpr(d, b) + ")"; }, - function(d, b) { return "(Components.classes ? quit() : gc()); }"; }, - ]); -} -function makeShapeyConstructor(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - var argName = uniqueVarName(); - var t = rnd(4) ? "this" : argName; - var funText = "function shapeyConstructor(" + argName + "){" + directivePrologue(); - var bp = b.concat([argName]); var nPropNames = rnd(6) + 1; - var propNames = []; - for (var i = 0; i < nPropNames; ++i) { - propNames[i] = makePropertyName(d, b); - } var nStatements = rnd(11); - for (var i = 0; i < nStatements; ++i) { - var propName = Random.index(propNames); - var tprop = t + "[" + propName + "]"; - if (rnd(5) === 0) { - funText += "if (" + (rnd(2) ? argName : makeExpr(d, bp)) + ") "; - } - switch(rnd(8)) { - case 0: funText += "delete " + tprop + ";"; break; - case 1: funText += "Object.defineProperty(" + t + ", " + (rnd(2) ? propName : makePropertyName(d, b)) + ", " + makePropertyDescriptor(d, bp) + ");"; break; - case 2: funText += "{ " + makeStatement(d, bp) + " } "; break; - case 3: funText += tprop + " = " + makeExpr(d, bp) + ";"; break; - case 4: funText += tprop + " = " + makeFunction(d, bp) + ";"; break; - case 5: funText += "for (var ytq" + uniqueVarName() + " in " + t + ") { }"; break; - case 6: funText += "Object." + Random.index(["preventExtensions","seal","freeze"]) + "(" + t + ");"; break; - default: funText += tprop + " = " + makeShapeyValue(d, bp) + ";"; break; - } - } - funText += "return " + t + "; }"; - return funText; -} -var propertyNameMakers = Random.weighted([ - { w: 1, v: function(d, b) { return makeExpr(d - 1, b); } }, - { w: 1, v: function(d, b) { return maybeNeg() + rnd(20); } }, - { w: 1, v: function(d, b) { return '"' + maybeNeg() + rnd(20) + '"'; } }, - { w: 1, v: function(d, b) { return "new String(" + '"' + maybeNeg() + rnd(20) + '"' + ")"; } }, - { w: 5, v: function(d, b) { return simpleSource(Random.index(specialProperties)); } }, - { w: 1, v: function(d, b) { return simpleSource(makeId(d - 1, b)); } }, - { w: 5, v: function(d, b) { return simpleSource(Random.index(allMethodNames)); } }, -]);function maybeNeg() { return rnd(5) ? "" : "-"; }function makePropertyName(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return (Random.index(propertyNameMakers))(d, b); -}function makeShapeyConstructorLoop(d, b) -{ - var a = makeIterable(d, b); - var v = makeNewId(d, b); - var v2 = uniqueVarName(d, b); - var bvv = b.concat([v, v2]); - return makeShapeyConstructor(d - 1, b) + - "/*tLoopC*/for (let " + v + " of " + a + ") { " + - "try{" + - "let " + v2 + " = " + Random.index(["new ", ""]) + "shapeyConstructor(" + v + "); print('EETT'); " + - - makeStatement(d - 2, bvv) + - "}catch(e){print('TTEE ' + e); }" + - " }"; -} -function makePropertyDescriptor(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var s = "({"; switch(rnd(3)) { - case 0: - - if (rnd(2)) s += "value: " + makeExpr(d, b) + ", "; - if (rnd(2)) s += "writable: " + makeBoolean(d, b) + ", "; - break; - case 1: - - if (rnd(2)) s += "get: " + makeFunction(d, b) + ", "; - if (rnd(2)) s += "set: " + makeFunction(d, b) + ", "; - break; - default: - } if (rnd(2)) s += "configurable: " + makeBoolean(d, b) + ", "; - if (rnd(2)) s += "enumerable: " + makeBoolean(d, b) + ", "; - if (s.length > 2) - s = s.substr(0, s.length - 2); s += "})"; - return s; -}function makeBoolean(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - switch(rnd(4)) { - case 0: return "true"; - case 1: return "false"; - case 2: return makeExpr(d - 2, b); - default: var m = loopModulo(); return "(" + Random.index(b) + " % " + m + Random.index([" == ", " != "]) + rnd(m) + ")"; - } -} -function makeObjLiteralPart(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(8)) - { - - - - case 2: return cat([" get ", makeObjLiteralName(d, b), maybeName(d, b), "(", makeFormalArgList(d - 1, b), ")", makeFunctionBody(d, b)]); - case 3: return cat([" set ", makeObjLiteralName(d, b), maybeName(d, b), "(", makeFormalArgList(d - 1, b), ")", makeFunctionBody(d, b)]); case 4: return "/*toXFun*/" + cat([Random.index(["toString", "toSource", "valueOf"]), ": ", makeToXFunction(d - 1, b)]); default: return cat([makeObjLiteralName(d, b), ": ", makeExpr(d, b)]); - } -}function makeToXFunction(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(4)) { - case 0: return "function() { return " + makeExpr(d, b) + "; }"; - case 1: return "function() { return this; }"; - case 2: return makeEvilCallback(d, b); - default: return makeFunction(d, b); - } -} -function makeObjLiteralName(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(6)) - { - case 0: return simpleSource(makeNumber(d, b)); - case 1: return makeNumber(d, b); - case 2: return Random.index(allPropertyNames); - case 3: return Random.index(specialProperties); - default: return makeId(d, b); - } -} -function makeFunction(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if(rnd(5) === 1) - return makeExpr(d, b); if (rnd(4) === 1) - return Random.index(builtinFunctions); return (Random.index(functionMakers))(d, b); -} -function maybeName(d, b) -{ - if (rnd(2) === 0) - return " " + makeId(d, b) + " "; - else - return ""; -}function directivePrologue() -{ - var s = ""; - if (rnd(3) === 0) - s += '"use strict"; '; - if (rnd(30) === 0) - s += '"use asm"; '; - return s; -}function makeFunctionBody(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch(rnd(5)) { - case 0: return cat([" { ", directivePrologue(), makeStatement(d - 1, b), " } "]); - case 1: return cat([" { ", directivePrologue(), "return ", makeExpr(d, b), " } "]); - case 2: return cat([" { ", directivePrologue(), "yield ", makeExpr(d, b), " } "]); - case 3: return '"use asm"; ' + asmJSInterior([]); - default: return makeExpr(d, b); - } -} -var functionMakers = [ - makeFunOnCallChain, - makeMathFunction, - makeMathyFunRef, - function(d, b) { var v = makeNewId(d, b); return cat(["function", " ", maybeName(d, b), "(", v, ")", makeFunctionBody(d, b.concat([v]))]); }, - function(d, b) { return cat(["function", " ", maybeName(d, b), "(", makeFormalArgList(d, b), ")", makeFunctionBody(d, b)]); }, - function(d, b) { var v = makeNewId(d, b); return cat([ v, " => ", makeFunctionBody(d, b.concat([v]))]); }, - function(d, b) { return cat(["(", makeFormalArgList(d, b), ")", " => ", makeFunctionBody(d, b)]); }, - function(d, b) { return "function(q) { " + directivePrologue() + "return q; }"; }, - function(d, b) { return "q => q"; }, - function(d, b) { return "function(y) { " + directivePrologue() + makeStatement(d, b.concat(["y"])) + " }"; }, - function(d, b) { return "function(y) { " + directivePrologue() + "return " + makeExpr(d, b.concat(["y"])) + " }"; }, - function(d, b) { return "function(y) { " + directivePrologue() + "yield y; " + makeStatement(d, b.concat(["y"])) + "; yield y; }"; }, - function(d, b) { return "(1 for (x in []))"; }, - function(d, b) { return "/*wrap1*/(function(){ " + directivePrologue() + makeStatement(d, b) + "return " + makeFunction(d, b) + "})()"; }, - function(d, b) { var v1 = uniqueVarName(); var v2 = uniqueVarName(); return "/*wrap2*/(function(){ " + directivePrologue() + "var " + v1 + " = " + makeExpr(d, b) + "; var " + v2 + " = " + makeFunction(d, b.concat([v1])) + "; return " + v2 + ";})()"; }, - function(d, b) { var v1 = uniqueVarName(); var v2 = uniqueVarName(); return "/*wrap3*/(function(){ " + directivePrologue() + "var " + v1 + " = " + makeExpr(d, b) + "; (" + makeFunction(d, b.concat([v1])) + ")(); })"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").apply"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").call"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").bind"; }, - function(d, b) { return "(" + makeFunction(d-1, b) + ").bind(" + makeActualArgList(d, b) + ")"; }, - function(d, b) { return cat([makeExpr(d, b), ".", Random.index(allMethodNames)]); }, - function(d, b) { return "eval"; }, - function(d, b) { return "(let (e=eval) e)"; }, - function(d, b) { return "new Function"; }, - function(d, b) { return "(new Function(" + uneval(makeStatement(d, b)) + "))"; }, - function(d, b) { return "Function"; }, - function(d, b) { return "decodeURI"; }, - function(d, b) { return "decodeURIComponent"; }, - function(d, b) { return "encodeURI"; }, - function(d, b) { return "encodeURIComponent"; }, - function(d, b) { return "neuter"; }, - function(d, b) { return "objectEmulatingUndefined"; }, - function(d, b) { return makeProxyHandlerFactory(d, b); }, - function(d, b) { return makeShapeyConstructor(d, b); }, - function(d, b) { return Random.index(typedArrayConstructors); }, - function(d, b) { return Random.index(constructors); }, -];if (typeof XPCNativeWrapper == "function") { - functionMakers = functionMakers.concat([ - function(d, b) { return "XPCNativeWrapper"; }, - function(d, b) { return "XPCSafeJSObjectWrapper"; }, - ]); -}if (typeof oomTest == "function" && engine != ENGINE_SPIDERMONKEY_MOZILLA45) { - functionMakers = functionMakers.concat([ - function(d, b) { return "oomTest"; } - ]); -}var typedArrayConstructors = [ - "Int8Array", - "Uint8Array", - "Int16Array", - "Uint16Array", - "Int32Array", - "Uint32Array", - "Float32Array", - "Float64Array", - "Uint8ClampedArray" -];function makeTypedArrayStatements(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 0) return ""; var numViews = rnd(d) + 1; - var numExtraStatements = rnd(d) + 1; - var buffer = uniqueVarName(); - var bufferSize = (1 + rnd(2)) * (1 + rnd(2)) * (1 + rnd(2)) * rnd(5); - var statements = "var " + buffer + " = new " + arrayBufferType() + "(" + bufferSize + "); "; - var bv = b.concat([buffer]); - for (var j = 0; j < numViews; ++j) { - var view = buffer + "_" + j; - var type = Random.index(typedArrayConstructors); - statements += "var " + view + " = new " + type + "(" + buffer + "); "; - bv.push(view); - var view_0 = view + "[0]"; - bv.push(view_0); - if (rnd(3) === 0) - statements += "print(" + view_0 + "); "; - if (rnd(3)) - statements += view_0 + " = " + makeNumber(d - 2, b) + "; "; - bv.push(view + "[" + rnd(11) + "]"); - } - for (var j = 0; j < numExtraStatements; ++j) { - statements += makeStatement(d - numExtraStatements, bv); - } - return statements; -}function makeNumber(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var signStr = rnd(2) ? "-" : ""; switch(rnd(70)) { - case 0: return makeExpr(d - 2, b); - case 1: return signStr + "0"; - case 2: return signStr + (rnd(1000) / 1000); - case 3: return signStr + (rnd(0xffffffff) / 2); - case 4: return signStr + rnd(0xffffffff); - case 5: return Random.index(["0.1", ".2", "3", "1.3", "4.", "5.0000000000000000000000", "1.2e3", "1e81", "1e+81", "1e-81", "1e4", "0", "-0", "(-0)", "-1", "(-1)", "0x99", "033", "3.141592653589793", "3/0", "-3/0", "0/0", "0x2D413CCC", "0x5a827999", "0xB504F332", "(0x50505050 >> 1)", "0x80000000"]); - case 6: return signStr + (Math.pow(2, rnd(66)) + (rnd(3) - 1)); - default: return signStr + rnd(30); - } -} -function makeLetHead(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var items = (d > 0 || rnd(2) === 0) ? rnd(10) + 1 : 1; - var result = ""; for (var i = 0; i < items; ++i) { - if (i > 0) - result += ", "; - result += makeLetHeadItem(d - i, b); - } return result; -}function makeLetHeadItem(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if (d < 0 || rnd(2) === 0) - return rnd(2) ? uniqueVarName() : makeId(d, b); - else if (rnd(5) === 0) - return makeDestructuringLValue(d, b) + " = " + makeExpr(d, b); - else - return makeId(d, b) + " = " + makeExpr(d, b); -} -function makeActualArgList(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var nArgs = rnd(3); if (nArgs == 0) - return ""; var argList = makeExpr(d, b); for (var i = 1; i < nArgs; ++i) - argList += ", " + makeExpr(d - i, b); return argList; -}function makeFormalArgList(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var argList = []; var nArgs = rnd(5) ? rnd(3) : rnd(100); - for (var i = 0; i < nArgs; ++i) { - argList.push(makeFormalArg(d - i, b)); - } if (rnd(5) === 0) { - - argList.push("..." + makeId(d, b)); - } return argList.join(", "); -}function makeFormalArg(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(8) === 1) - return makeDestructuringLValue(d, b); return makeId(d, b) + (rnd(5) ? "" : " = " + makeExpr(d, b)); -} -function makeNewId(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return Random.index(["a", "b", "c", "d", "e", "w", "x", "y", "z"]); -}function makeId(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(3) === 1 && b.length) - return Random.index(b); switch(rnd(200)) - { - case 0: - return makeTerm(d, b); - case 1: - return makeExpr(d, b); - case 2: case 3: case 4: case 5: - return makeLValue(d, b); - case 6: case 7: - return makeDestructuringLValue(d, b); - case 8: case 9: case 10: - - - return Random.index(["get", "set", "getter", "setter", "delete", "let", "yield", "of"]); - case 11: case 12: case 13: - return "this." + makeId(d, b); - case 14: case 15: case 16: - return makeObjLiteralName(d - 1, b); - case 17: case 18: - return makeId(d - 1, b); - case 19: - return " "; - case 20: - return "this"; - } return Random.index(["a", "b", "c", "d", "e", "w", "x", "y", "z", - "window", "eval", "\u3056", "NaN", ]); - -} -function makeComprehension(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 0) - return ""; switch(rnd(7)) { - case 0: - return ""; - case 1: - return cat([" for ", "(", makeForInLHS(d, b), " in ", makeExpr(d - 2, b), ")"]) + makeComprehension(d - 1, b); - - case 2: - return cat([" for ", "each ", "(", makeId(d, b), " in ", makeExpr(d - 2, b), ")"]) + makeComprehension(d - 1, b); - case 3: - return cat([" for ", "each ", "(", makeId(d, b), " in ", makeIterable(d - 2, b), ")"]) + makeComprehension(d - 1, b); - case 4: - return cat([" for ", "(", makeId(d, b), " of ", makeExpr(d - 2, b), ")"]) + makeComprehension(d - 1, b); - case 5: - return cat([" for ", "(", makeId(d, b), " of ", makeIterable(d - 2, b), ")"]) + makeComprehension(d - 1, b); - default: - return cat([" if ", "(", makeExpr(d - 2, b), ")"]); - } -}function makeForInLHS(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - return makeLValue(d, b); -} -function makeLValue(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d <= 0 || (rnd(2) === 1)) - return makeId(d - 1, b); d = rnd(d); return (Random.index(lvalueMakers))(d, b); -} -var lvalueMakers = [ - - function(d, b) { return cat([makeId(d, b)]); }, - function(d, b) { return cat(["(", makeLValue(d, b), ")"]); }, - function(d, b) { return makeDestructuringLValue(d, b); }, - function(d, b) { return "(" + makeDestructuringLValue(d, b) + ")"; }, - function(d, b) { return cat([makeId(d, b), "(", makeExpr(d, b), ")"]); }, - function(d, b) { return cat(["(", makeExpr(d, b), ")", "(", makeExpr(d, b), ")"]); }, - function(d, b) { return Random.index(builtinProperties); }, - function(d, b) { return Random.index(builtinObjectNames); }, - function(d, b) { return "arguments"; }, - function(d, b) { return cat(["arguments", "[", makePropertyName(d, b), "]"]); }, - function(d, b) { return makeFunOnCallChain(d, b) + ".arguments"; }, - function(d, b) { return cat([makeExpr(d, b), ".", makeId(d, b)]); }, - function(d, b) { return cat([makeExpr(d, b), ".", "__proto__"]); }, - function(d, b) { return cat([makeExpr(d, b), "[", makePropertyName(d, b), "]"]); }, - function(d, b) { return "this.zzz.zzz"; }, - function(d, b) { return makeExpr(d, b); }, -]; -function makeDestructuringLValue(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); d = d - 1; if (d < 0 || rnd(4) === 1) - return makeId(d, b); if (rnd(6) === 1) - return makeLValue(d, b); return (Random.index(destructuringLValueMakers))(d, b); -}var destructuringLValueMakers = [ - - function(d, b) - { - var len = rnd(d, b); - if (len == 0) - return "[]"; var Ti = []; - Ti.push("["); - Ti.push(maybeMakeDestructuringLValue(d, b)); - for (var i = 1; i < len; ++i) { - Ti.push(", "); - Ti.push(maybeMakeDestructuringLValue(d, b)); - } Ti.push("]"); return cat(Ti); - }, - function(d, b) - { - var len = rnd(d, b); - if (len == 0) - return "{}"; - var Ti = []; - Ti.push("{"); - for (var i = 0; i < len; ++i) { - if (i > 0) - Ti.push(", "); - Ti.push(makeId(d, b)); - if (rnd(3)) { - Ti.push(": "); - Ti.push(makeDestructuringLValue(d, b)); - } - } - Ti.push("}"); return cat(Ti); - } -]; -function maybeMakeDestructuringLValue(d, b) -{ - if (rnd(2) === 0) - return ""; return makeDestructuringLValue(d, b); -}function makeTerm(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return (Random.index(termMakers))(d, b); -}var termMakers = [ - - function(d, b) { return makeId(d, b); }, - function(d, b) { return Random.index([ - - "[]", "[1]", "[[]]", "[[1]]", "[,]", "[,,]", "[1,,]", - - "{}", "({})", "({a1:1})", - - "[z1]", "[z1,,]", "[,,z1]", - - "({a2:z2})", - "function(id) { return id }", - "function ([y]) { }", - "(function ([y]) { })()", "arguments", - "Math", - "this", - "length", '"\u03A0"', - ]); - }, - makeNumber, - function(d, b) { return Random.index([ "true", "false", "undefined", "null"]); }, - function(d, b) { return Random.index([ "this", "window" ]); }, - function(d, b) { return Random.index([" \"\" ", " '' "]); }, - randomUnitStringLiteral, - function(d, b) { return Random.index([" /x/ ", " /x/g "]); }, - makeRegex, -];function randomUnitStringLiteral() -{ - var s = "\"\\u"; - for (var i = 0; i < 4; ++i) { - s += "0123456789ABCDEF".charAt(rnd(16)); - } - s += "\""; - return s; -} -function maybeMakeTerm(d, b) -{ - if (rnd(2)) - return makeTerm(d - 1, b); - else - return ""; -} -function makeCrazyToken() -{ - if (rnd(3) === 0) { - return String.fromCharCode(32 + rnd(128 - 32)); - } - if (rnd(6) === 0) { - return String.fromCharCode(rnd(65536)); - } return Random.index([ - "//", UNTERMINATED_COMMENT, (UNTERMINATED_COMMENT + "\n"), "/*\n*/", - "[", "]", - "{", "}", - "(", ")", - "!", "@", "%", "^", "*", "**", "|", ":", "?", "'", "\"", ",", ".", "/", - "~", "_", "+", "=", "-", "++", "--", "+=", "%=", "|=", "-=", - "...", "=>", - " in ", " instanceof ", " let ", " new ", " get ", " for ", " if ", " else ", " else if ", " try ", " catch ", " finally ", " export ", " import ", " void ", " with ", - " default ", " goto ", " case ", " switch ", " do ", " /*infloop*/while ", " return ", " yield ", " break ", " continue ", " typeof ", " var ", " const ", - " package ", - " enum ", - " debugger ", - " super ", " this ", - " null ", - " undefined ", - "\n", - "\r", - "\u2028", - "\u2029", - "<" + "!" + "--", - "--" + ">", - "", - "\0", - ]); -} -function makeShapeyValue(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(10) === 0) - return makeExpr(d, b); var a = [ - - [ - "0", "1", "2", "3", "0.1", ".2", "1.3", "4.", "5.0000000000000000000000", - "1.2e3", "1e81", "1e+81", "1e-81", "1e4", "-0", "(-0)", - "-1", "(-1)", "0x99", "033", "3/0", "-3/0", "0/0", - "Math.PI", - "0x2D413CCC", "0x5a827999", "0xB504F332", "-0x2D413CCC", "-0x5a827999", "-0xB504F332", "0x50505050", "(0x50505050 >> 1)", - - "0x10000000", "0x20000000", "0x3FFFFFFE", "0x3FFFFFFF", "0x40000000", "0x40000001", "0x80000000", "-0x80000000", - ], - [ "(1/0)", "(-1/0)", "(0/0)" ], - [" \"\" ", " '' ", " 'A' ", " '\\0' ", ' "use strict" '], - [ " /x/ ", " /x/g "], - [ "true", "false" ], - [ "(void 0)", "null" ], - [ "[]", "[1]", "[(void 0)]", "{}", "{x:3}", "({})", "({x:3})" ], - [ "NaN", "Infinity", "-Infinity", "undefined"], - [ "new Boolean(true)", "new Boolean(false)" ], - [ "new Number(1)", "new Number(1.5)" ], - [ "new String('')", "new String('q')" ], - [ "function(){}" ], - [ "{}", "[]", "[1]", "['z']", "[undefined]", "this", "eval", "arguments", "arguments.caller", "arguments.callee" ], - [ "objectEmulatingUndefined()" ], - [ b.length ? Random.index(b) : "x" ] - ]; return Random.index(Random.index(a)); -}function mixedTypeArrayElem(d, b) -{ - while (true) { - var s = makeShapeyValue(d - 3, b); - if (s.length < 60) - return s; - } -}function makeMixedTypeArray(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); - var q = rnd(4) + 2; - var picks = []; - for (var j = 0; j < q; ++j) { - picks.push(mixedTypeArrayElem(d, b)); - } - var c = []; - var count = loopCount(); - for (var j = 0; j < count; ++j) { - var elem = Random.index(picks); - - - var repeat = count === 0 ? rnd(4)===0 : rnd(50)===0; - var repeats = repeat ? rnd(30) : 1; - for (var k = 0; k < repeats; ++k) { - c.push(elem); - } - } return "/*MARR*/" + "[" + c.join(", ") + "]"; -}function makeArrayLiteral(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (rnd(2) === 0) - return makeMixedTypeArray(d, b); var elems = []; - while (rnd(5)) elems.push(makeArrayLiteralElem(d, b)); - return "/*FARR*/" + "[" + elems.join(", ") + "]"; -}function makeArrayLiteralElem(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); switch (rnd(5)) { - case 0: return "..." + makeIterable(d - 1, b); - case 1: return ""; - default: return makeExpr(d - 1, b); - } -}function makeIterable(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 1) - return "[]"; return (Random.index(iterableExprMakers))(d, b); -}var iterableExprMakers = Random.weighted([ - - { w: 1, v: function(d, b) { return "new Array(" + makeNumber(d, b) + ")"; } }, - { w: 8, v: makeArrayLiteral }, - { w: 1, v: function(d, b) { return cat(["[", makeExpr(d, b), makeComprehension(d, b), "]"]); } }, - { w: 1, v: function(d, b) { return cat([ makeExpr(d, b), makeComprehension(d, b) ]); } }, - { w: 1, v: function(d, b) { return cat(["(", makeExpr(d, b), makeComprehension(d, b), ")"]); } }, - { w: 1, v: function(d, b) { return "(function() { " + directivePrologue() + "yield " + makeExpr(d - 1, b) + "; } })()"; } }, - - { w: 1, v: function(d, b) { return "/*PTHR*/(function() { " + directivePrologue() + "for (var i of " + makeIterable(d - 1, b) + ") { yield i; } })()"; } }, { w: 1, v: makeFunction }, - { w: 1, v: makeExpr }, -]);function strTimes(s, n) -{ - if (n == 0) return ""; - if (n == 1) return s; - var s2 = s + s; - var r = n % 2; - var d = (n - r) / 2; - var m = strTimes(s2, d); - return r ? m + s : m; -} -function makeAsmJSModule(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var interior = asmJSInterior([]); - return '(function(stdlib, foreign, heap){ "use asm"; ' + interior + ' })'; -}function makeAsmJSFunction(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var interior = asmJSInterior(["ff"]); - return '(function(stdlib, foreign, heap){ "use asm"; ' + interior + ' })(this, {ff: ' + makeFunction(d - 2, b) + '}, new ' + arrayBufferType() + '(4096))'; -}var proxyHandlerProperties = { - getOwnPropertyDescriptor: { - empty: "function(){}", - forward: "function(name) { var desc = Object.getOwnPropertyDescriptor(x); desc.configurable = true; return desc; }", - throwing: "function(name) { return {get: function() { throw 4; }, set: function() { throw 5; }}; }", - }, - getPropertyDescriptor: { - empty: "function(){}", - forward: "function(name) { var desc = Object.getPropertyDescriptor(x); desc.configurable = true; return desc; }", - throwing: "function(name) { return {get: function() { throw 4; }, set: function() { throw 5; }}; }", - }, - defineProperty: { - empty: "function(){}", - forward: "function(name, desc) { Object.defineProperty(x, name, desc); }" - }, - getOwnPropertyNames: { - empty: "function() { return []; }", - forward: "function() { return Object.getOwnPropertyNames(x); }" - }, - delete: { - empty: "function() { return true; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(name) { return delete x[name]; }" - }, - fix: { - empty: "function() { return []; }", - yes: "function() { return []; }", - no: "function() { }", - forward: "function() { if (Object.isFrozen(x)) { return Object.getOwnProperties(x); } }" - }, - has: { - empty: "function() { return false; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(name) { return name in x; }" - }, - hasOwn: { - empty: "function() { return false; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(name) { return Object.prototype.hasOwnProperty.call(x, name); }" - }, - get: { - empty: "function() { return undefined }", - forward: "function(receiver, name) { return x[name]; }", - bind: "function(receiver, name) { var prop = x[name]; return (typeof prop) === 'function' ? prop.bind(x) : prop; }" - }, - set: { - empty: "function() { return true; }", - yes: "function() { return true; }", - no: "function() { return false; }", - forward: "function(receiver, name, val) { x[name] = val; return true; }" - }, - iterate: { - empty: "function() { return (function() { throw StopIteration; }); }", - forward: "function() { return (function() { for (var name in x) { yield name; } })(); }" - }, - enumerate: { - empty: "function() { return []; }", - forward: "function() { var result = []; for (var name in x) { result.push(name); }; return result; }" - }, - keys: { - empty: "function() { return []; }", - forward: "function() { return Object.keys(x); }" - } -};function makeProxyHandlerFactory(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); if (d < 1) - return "({/*TOODEEP*/})"; try { - var preferred = Random.index(["empty", "forward", "yes", "no", "bind", "throwing"]); - var fallback = Random.index(["empty", "forward"]); - var fidelity = rnd(10); var handlerFactoryText = "(function handlerFactory(x) {"; - handlerFactoryText += "return {"; if (rnd(2)) { - - bp = b.concat(['x']); - } else { - - handlerFactoryText = handlerFactoryText.replace(/x/, ""); - bp = b; - } for (var p in proxyHandlerProperties) { - var funText; - if (proxyHandlerProperties[p][preferred] && rnd(10) <= fidelity) { - funText = proxyMunge(proxyHandlerProperties[p][preferred], p); - } else { - switch(rnd(7)) { - case 0: funText = makeFunction(d - 3, bp); break; - case 1: funText = "undefined"; break; - case 2: funText = "function() { throw 3; }"; break; - default: funText = proxyMunge(proxyHandlerProperties[p][fallback], p); - } - } - handlerFactoryText += p + ": " + funText + ", "; - } handlerFactoryText += "}; })"; return handlerFactoryText; - } catch(e) { - return "({/* :( */})"; - } -}function proxyMunge(funText, p) -{ - - return funText; -}function makeProxyHandler(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return makeProxyHandlerFactory(d, b) + "(" + makeExpr(d - 3, b) + ")"; -} -/* -David Anderson suggested creating the following recursive structures: - - recurse down an array of mixed types, car cdr kinda thing - - multiple recursive calls in a function, like binary search left/right, sometimes calls neither and sometimes calls both the recursion support in spidermonkey only works with self-recursion. - that is, two functions that call each other recursively will not be traced. two trees are formed, going down and going up. - type instability matters on both sides. - so the values returned from the function calls matter. so far, what i've thought of means recursing from the top of a function and if..else. - but i'd probably also want to recurse from other points, e.g. loops. special code for tail recursion likely coming soon, but possibly as a separate patch, because it requires changes to the interpreter. -*/ -var recursiveFunctions = [ - { - - text: "(function too_much_recursion(depth) { @; if (depth > 0) { @; too_much_recursion(depth - 1); @ } else { @ } @ })", - vars: ["depth"], - args: function(d, b) { return singleRecursionDepth(d, b); }, - test: function(f) { try { f(5000); } catch(e) { } return true; } - }, - { - text: "(function factorial(N) { @; if (N == 0) { @; return 1; } @; return N * factorial(N - 1); @ })", - vars: ["N"], - args: function(d, b) { return singleRecursionDepth(d, b); }, - test: function(f) { return f(10) == 3628800; } - }, - { - text: "(function factorial_tail(N, Acc) { @; if (N == 0) { @; return Acc; } @; return factorial_tail(N - 1, Acc * N); @ })", - vars: ["N", "Acc"], - args: function(d, b) { return singleRecursionDepth(d, b) + ", 1"; }, - test: function(f) { return f(10, 1) == 3628800; } - }, - { - - text: "(function fibonacci(N) { @; if (N <= 1) { @; return 1; } @; return fibonacci(N - 1) + fibonacci(N - 2); @ })", - vars: ["N"], - args: function(d, b) { return "" + rnd(8); }, - test: function(f) { return f(6) == 13; } - }, - { - - text: "(function a_indexing(array, start) { @; if (array.length == start) { @; return EXPR1; } var thisitem = array[start]; var recval = a_indexing(array, start + 1); STATEMENT1 })", - vars: ["array", "start", "thisitem", "recval"], - args: function(d, b) { return makeMixedTypeArray(d-1, b) + ", 0"; }, - testSub: function(text) { return text.replace(/EXPR1/, "0").replace(/STATEMENT1/, "return thisitem + recval;"); }, - randSub: function(text, varMap, d, b) { - var expr1 = makeExpr(d, b.concat([varMap["array"], varMap["start"]])); - var statement1 = rnd(2) ? - makeStatement(d, b.concat([varMap["thisitem"], varMap["recval"]])) : - "return " + makeExpr(d, b.concat([varMap["thisitem"], varMap["recval"]])) + ";"; return (text.replace(/EXPR1/, expr1) - .replace(/STATEMENT1/, statement1) - ); }, - test: function(f) { return f([1,2,3,"4",5,6,7], 0) == "123418"; } - }, - { - - text: "(function sum_indexing(array, start) { @; return array.length == start ? 0 : array[start] + sum_indexing(array, start + 1); })", - vars: ["array", "start"], - args: function(d, b) { return makeMixedTypeArray(d-1, b) + ", 0"; }, - test: function(f) { return f([1,2,3,"4",5,6,7], 0) == "123418"; } - }, - { - text: "(function sum_slicing(array) { @; return array.length == 0 ? 0 : array[0] + sum_slicing(array.slice(1)); })", - vars: ["array"], - args: function(d, b) { return makeMixedTypeArray(d-1, b); }, - test: function(f) { return f([1,2,3,"4",5,6,7]) == "123418"; } - } -];function singleRecursionDepth(d, b) -{ - if (rnd(2) === 0) { - return "" + rnd(4); - } - if (rnd(10) === 0) { - return makeExpr(d - 2, b); - } - return "" + rnd(100000); -}(function testAllRecursiveFunctions() { - for (var i = 0; i < recursiveFunctions.length; ++i) { - var a = recursiveFunctions[i]; - var text = a.text; - if (a.testSub) text = a.testSub(text); - var f = eval(text.replace(/@/g, "")); - if (!a.test(f)) - throw "Failed test of: " + a.text; - } -})();function makeImmediateRecursiveCall(d, b, cheat1, cheat2) -{ - if (rnd(10) !== 0) - return "(4277)"; var a = (cheat1 == null) ? Random.index(recursiveFunctions) : recursiveFunctions[cheat1]; - var s = a.text; - var varMap = {}; - for (var i = 0; i < a.vars.length; ++i) { - var prettyName = a.vars[i]; - varMap[prettyName] = uniqueVarName(); - s = s.replace(new RegExp(prettyName, "g"), varMap[prettyName]); - } - var actualArgs = cheat2 == null ? a.args(d, b) : cheat2; - s = s + "(" + actualArgs + ")"; - s = s.replace(/@/g, function() { if (rnd(4) === 0) return makeStatement(d-2, b); return ""; }); - if (a.randSub) s = a.randSub(s, varMap, d, b); - s = "(" + s + ")"; - return s; -}/********************************* - * GENERATING REGEXPS AND INPUTS * - *********************************/var POTENTIAL_MATCHES = 10; -var backrefHack = []; -for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - backrefHack[i] = ""; -}function regexNumberOfMatches() -{ - if (rnd(10)) - return rnd(5); - return Math.pow(2, rnd(40)) + rnd(3) - 1; -}function regexPattern(depth, parentWasQuantifier) -{ - if (depth == 0 || (rnd(depth) == 0)) - return regexTerm(); var dr = depth - 1; var index = rnd(regexMakers.length); - if (parentWasQuantifier && rnd(30)) index = rnd(regexMakers.length - 1) + 1; - return (Random.index(regexMakers[index]))(dr); -}var regexMakers = -[ - [ - - function(dr) { return regexQuantified(dr, "+", 1, rnd(10)); }, - function(dr) { return regexQuantified(dr, "*", 0, rnd(10)); }, - function(dr) { return regexQuantified(dr, "?", 0, 1); }, - function(dr) { return regexQuantified(dr, "+?", 1, 1); }, - function(dr) { return regexQuantified(dr, "*?", 0, 1); }, - function(dr) { var x = regexNumberOfMatches(); return regexQuantified(dr, "{" + x + "}", x, x); }, - function(dr) { var x = regexNumberOfMatches(); return regexQuantified(dr, "{" + x + ",}", x, x + rnd(10)); }, - function(dr) { var min = regexNumberOfMatches(); var max = min + regexNumberOfMatches(); return regexQuantified(dr, "{" + min + "," + max + "}", min, max); } - ], - [ - - function(dr) { return regexConcatenation(dr); }, - function(dr) { return regexDisjunction(dr); } - ], - [ - - function(dr) { return ["\\" + (rnd(3) + 1), backrefHack.slice(0)]; }, - function(dr) { return regexGrouped("(", dr, ")"); }, - function(dr) { return regexGrouped("(?:", dr, ")"); }, - function(dr) { return regexGrouped("(?=", dr, ")"); }, - function(dr) { return regexGrouped("(?!", dr, ")"); } - ] -]; -function quantifierHelper(pm, min, max, pms) -{ - var repeats = Math.min(min + rnd(max - min + 5) - 2, 10); - var returnValue = ""; - for (var i = 0; i < repeats; i++) - { - if (rnd(100) < 80) - returnValue = returnValue + pm; - else - returnValue = returnValue + Random.index(pms); - } - return returnValue; -}function regexQuantified(dr, operator, min, max) -{ - var [re, pms] = regexPattern(dr, true); - var newpms = []; - for (var i = 0; i < POTENTIAL_MATCHES; i++) - newpms[i] = quantifierHelper(pms[i], min, max, pms); - return [re + operator, newpms]; -} -function regexConcatenation(dr) -{ - var [re1, strings1] = regexPattern(dr, false); - var [re2, strings2] = regexPattern(dr, false); - var newStrings = []; for (var i = 0; i < POTENTIAL_MATCHES; i++) - { - var chance = rnd(100); - if (chance < 10) - newStrings[i] = ""; - else if (chance < 20) - newStrings[i] = strings1[i]; - else if (chance < 30) - newStrings[i] = strings2[i]; - else if (chance < 65) - newStrings[i] = strings1[i] + strings2[i]; - else - newStrings[i] = Random.index(strings1) + Random.index(strings2); - } return [re1 + re2, newStrings]; -}function regexDisjunction(dr) -{ - var [re1, strings1] = regexPattern(dr, false); - var [re2, strings2] = regexPattern(dr, false); - var newStrings = []; for (var i = 0; i < POTENTIAL_MATCHES; i++) - { - var chance = rnd(100); - if (chance < 10) - newStrings[i] = ""; - else if (chance < 20) - newStrings[i] = Random.index(strings1) + Random.index(strings2); - else if (chance < 60) - newStrings[i] = strings1[i]; - else - newStrings[i] = strings2[i]; - } - return [re1 + "|" + re2, newStrings]; -}function regexGrouped(prefix, dr, postfix) -{ - var [re, strings] = regexPattern(dr, false); - var newStrings = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - newStrings[i] = rnd(5) ? strings[i] : ""; - if (prefix == "(" && strings[i].length < 40 && rnd(3) === 0) { - backrefHack[i] = strings[i]; - } - } - return [prefix + re + postfix, newStrings]; -} -var letters = -["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", - "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];var hexDigits = [ - "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", - "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", - "a", "b", "c", "d", "e", "f", - "A", "B", "C", "D", "E", "F" -];function regexTerm() -{ - var [re, oneString] = regexTermPair(); - var strings = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - strings[i] = rnd(5) ? oneString : regexTermPair()[1]; - } - return [re, strings]; -}function regexCharCode() -{ - return rnd(2) ? rnd(256) : rnd(65536); -} -var regexCharacterMakers = Random.weighted([ - - { w:20, v: function() { var cc = regexCharCode(); return [ String.fromCharCode(cc), cc]; } }, - { w: 4, v: function() { var cc = regexCharCode(); return ["\\" + String.fromCharCode(cc), cc]; } }, - { w: 1, v: function() { return ["\\0", 0]; } }, - { w: 1, v: function() { return ["\\B", 66]; } }, - { w: 1, v: function() { return ["\\b", 8]; } }, - { w: 1, v: function() { return ["\\t", 9]; } }, - { w: 1, v: function() { return ["\\n", 10]; } }, - { w: 1, v: function() { return ["\\v", 11]; } }, - { w: 1, v: function() { return ["\\f", 12]; } }, - { w: 1, v: function() { return ["\\r", 13]; } }, - { w: 5, v: function() { var controlCharacterCode = rnd(26) + 1; return ["\\c" + String.fromCharCode(64 + controlCharacterCode), controlCharacterCode]; } }, - - { w: 5, v: function() { var twoHex = Random.index(hexDigits) + Random.index(hexDigits); return ["\\x" + twoHex, parseInt(twoHex, 16)]; } }, - { w: 5, v: function() { var twoHex = Random.index(hexDigits) + Random.index(hexDigits); return ["\\u00" + twoHex, parseInt(twoHex, 16)]; } }, - { w: 5, v: function() { var fourHex = Random.index(hexDigits) + Random.index(hexDigits) + Random.index(hexDigits) + Random.index(hexDigits); return ["\\u" + fourHex, parseInt(fourHex, 16)]; } }, -]);function regexCharacter() -{ - var [matcher, charcode] = Random.index(regexCharacterMakers)(); - switch(rnd(10)) { - case 0: return [matcher, charcode + 32]; - case 1: return [matcher, charcode - 32]; - case 2: return [matcher, regexCharCode()]; - default: return [matcher, charcode]; - } -} -var regexBuiltInCharClasses = [ - "\\d", "\\D", - "\\s", "\\S", - "\\w", "\\W", -]; -function regexOneCharStringsWith(frequentChars) { - var matches = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - matches.push(rnd(8) ? Random.index(frequentChars) : String.fromCharCode(regexCharCode())); - } - return matches; -} -function regexShortStringsWith(frequentChars) { - var matches = []; - for (var i = 0; i < POTENTIAL_MATCHES; ++i) { - var s = ""; - while (rnd(3)) { - s += rnd(4) ? Random.index(frequentChars) : String.fromCharCode(regexCharCode()); - } - matches.push(s); - } - return matches; -}var regexTermMakers = - [ - function() { return regexCharacterClass(); }, - function() { var [re, cc] = regexCharacter(); return [re, regexOneCharStringsWith([String.fromCharCode(cc)])]; }, - function() { return [Random.index(regexBuiltInCharClasses), regexOneCharStringsWith(["0", "a", "_"])]; }, - function() { return ["[^]", regexOneCharStringsWith(["\n"])]; }, - function() { return [".", regexOneCharStringsWith(["\n"])]; }, - function() { return [Random.index(["^", "$"]), regexShortStringsWith(["\n"])]; }, - function() { return [Random.index(["\\b", "\\B"]), regexShortStringsWith([" ", "\n", "a", "1"])]; }, - ];function regexTerm() -{ - return Random.index(regexTermMakers)(); -}function regexCharacterClass() -{ - var ranges = rnd(5); - var inRange = rnd(2); - var charBucket = [String.fromCharCode(regexCharCode())]; var re = "["; - if (!inRange) { - re += "^"; - } var lo, hi; for (var i = 0; i < ranges; ++i) { - if (rnd(100) == 0) { - - re += "-"; - if (rnd(2)) { - re += String.fromCharCode(regexCharCode()); - } - } if (rnd(3) == 1) { - - re += Random.index(regexBuiltInCharClasses); - charBucket.push("a"); - charBucket.push("0"); - charBucket.push("_"); - } else if (rnd(2)) { - - var a = regexCharacter(); - var b = regexCharacter(); - if ((a[1] <= b[1]) == !!rnd(10)) { - [lo, hi] = [a, b]; - } else { - [lo, hi] = [b, a]; - } re += lo[0] + "-" + hi[0]; - charBucket.push(String.fromCharCode(lo[1] + rnd(3) - 1)); - charBucket.push(String.fromCharCode(hi[1] + rnd(3) - 1)); - charBucket.push(String.fromCharCode(lo[1] + rnd(Math.max(hi[1] - lo[1], 1)))); - } else { - - var a = regexCharacter(); - re += a[0]; - charBucket.push(String.fromCharCode(a[1])); - } - } re += "]"; - return [re, pickN(charBucket, POTENTIAL_MATCHES)]; -}function pickN(bucket, picks) -{ - var picked = []; - for (var i = 0; i < picks; ++i) { - picked.push(Random.index(bucket)); - } - return picked; -}function makeRegisterStompFunction(d, b, pure) -{ - var args = []; - var nArgs = (rnd(10) ? rnd(20) : rnd(100)) + 1; - for (var i = 0; i < nArgs; ++i) { - args.push("a" + i); - } var bv = b.concat(args); return ( - "(function(" + args.join(", ") + ") { " + - makeRegisterStompBody(d, bv, pure) + - "return " + Random.index(bv) + "; " + - "})" - ); -}function makeRegisterStompBody(d, b, pure) -{ - var bv = b.slice(0); - var lastRVar = 0; - var s = ""; function value() - { - return rnd(3) && bv.length ? Random.index(bv) : "" + rnd(10); - } function expr() - { - return value() + Random.index([" + ", " - ", " / ", " * ", " % ", " | ", " & ", " ^ "]) + value(); - } while (rnd(100)) { - if (bv.length == 0 || rnd(4)) { - var newVar = "r" + lastRVar; - ++lastRVar; - s += "var " + newVar + " = " + expr() + "; "; - bv.push(newVar); - } else if (rnd(5) === 0 && !pure) { - s += "print(" + Random.index(bv) + "); "; - } else { - s += Random.index(bv) + " = " + expr() + "; "; - } - } return s; -} -/*********************** - * TEST BUILT-IN TYPES * - ***********************/var makeBuilderStatement; -var makeEvilCallback;(function setUpBuilderStuff() { - var ARRAY_SIZE = 20; - var OBJECTS_PER_TYPE = 3; - var smallPowersOfTwo = [1, 2, 4, 8]; - function bufsize() { return rnd(ARRAY_SIZE) * Random.index(smallPowersOfTwo); } - function arrayIndex(d, b) { - switch(rnd(8)) { - case 0: return m("v"); - case 1: return makeExpr(d - 1, b); - case 2: return "({valueOf: function() { " + makeStatement(d, b) + "return " + rnd(ARRAY_SIZE) + "; }})"; - default: return "" + rnd(ARRAY_SIZE); - } - } - function m(t) - { - if (!t) - t = "aosmevbtihgfp"; - t = t.charAt(rnd(t.length)); - var name = t + rnd(OBJECTS_PER_TYPE); - switch(rnd(16)) { - case 0: return m("o") + "." + name; - case 1: return m("g") + "." + name; - case 2: return "this." + name; - default: return name; - } - } function val(d, b) - { - if (rnd(10)) - return m(); - return makeExpr(d, b); - } - function assign(d, b, t, rhs) - { - switch(rnd(18)) { - - case 0: return ( - "Object.defineProperty(" + - (rnd(8)?"this":m("og")) + ", " + - simpleSource(m(t)) + ", " + - "{ " + propertyDescriptorPrefix(d-1, b) + " get: function() { " + (rnd(8)?"":makeBuilderStatement(d-1,b)) + " return " + rhs + "; } }" + - ");" - ); - case 1: return Random.index(varBinder) + m(t) + " = " + rhs + ";"; - default: return m(t) + " = " + rhs + ";"; - } - } function makeCounterClosure(d, b) - { - - var v = uniqueVarName(); - var infrequently = infrequentCondition(v, 10); - return ( - "(function mcc_() { " + - "var " + v + " = 0; " + - "return function() { " + - "++" + v + "; " + - (rnd(3) ? - "if (" + infrequently + ") { dumpln('hit!'); " + makeBuilderStatements(d, b) + " } " + - "else { dumpln('miss!'); " + makeBuilderStatements(d, b) + " } " - : m("f") + "(" + infrequently + ");" - ) + - "};" + - "})()"); - } function fdecl(d, b) - { - var argName = m(); - var bv = b.concat([argName]); - return "function " + m("f") + "(" + argName + ") " + makeFunctionBody(d, bv); - } function makeBuilderStatements(d, b) - { - var s = ""; - var extras = rnd(4); - for (var i = 0; i < extras; ++i) { - s += "try { " + makeBuilderStatement(d - 2, b) + " } catch(e" + i + ") { } "; - } - s += makeBuilderStatement(d - 1, b); - return s; - } var builderFunctionMakers = Random.weighted([ - { w: 9, v: function(d, b) { return "(function() { " + makeBuilderStatements(d, b) + " return " + m() + "; })"; } }, - { w: 1, v: function(d, b) { return "(function() { " + makeBuilderStatements(d, b) + " throw " + m() + "; })"; } }, - { w: 1, v: function(d, b) { return "(function(j) { " + m("f") + "(j); })"; } }, - - { w: 4, v: function(d, b) { return "(function(j) { if (j) { " + makeBuilderStatements(d, b) + " } else { " + makeBuilderStatements(d, b) + " } })"; } }, - { w: 4, v: function(d, b) { return "(function() { for (var j=0;j<" + loopCount() + ";++j) { " + m("f") + "(j%"+(2+rnd(4))+"=="+rnd(2)+"); } })"; } }, - { w: 1, v: function(d, b) { return Random.index(builtinFunctions) + ".bind(" + m() + ")"; } }, - { w: 5, v: function(d, b) { return m("f"); } }, - { w: 3, v: makeCounterClosure }, - { w: 2, v: makeFunction }, - { w: 1, v: makeAsmJSModule }, - { w: 1, v: makeAsmJSFunction }, - { w: 1, v: makeRegisterStompFunction }, - ]); - makeEvilCallback = function(d, b) { - return (Random.index(builderFunctionMakers))(d - 1, b); - }; var handlerTraps = ["getOwnPropertyDescriptor", "getPropertyDescriptor", "defineProperty", "getOwnPropertyNames", "delete", "fix", "has", "hasOwn", "get", "set", "iterate", "enumerate", "keys"]; function forwardingHandler(d, b) { - return ( - "({"+ - "getOwnPropertyDescriptor: function(name) { Z; var desc = Object.getOwnPropertyDescriptor(X); desc.configurable = true; return desc; }, " + - "getPropertyDescriptor: function(name) { Z; var desc = Object.getPropertyDescriptor(X); desc.configurable = true; return desc; }, " + - "defineProperty: function(name, desc) { Z; Object.defineProperty(X, name, desc); }, " + - "getOwnPropertyNames: function() { Z; return Object.getOwnPropertyNames(X); }, " + - "delete: function(name) { Z; return delete X[name]; }, " + - "fix: function() { Z; if (Object.isFrozen(X)) { return Object.getOwnProperties(X); } }, " + - "has: function(name) { Z; return name in X; }, " + - "hasOwn: function(name) { Z; return Object.prototype.hasOwnProperty.call(X, name); }, " + - "get: function(receiver, name) { Z; return X[name]; }, " + - "set: function(receiver, name, val) { Z; X[name] = val; return true; }, " + - "iterate: function() { Z; return (function() { for (var name in X) { yield name; } })(); }, " + - "enumerate: function() { Z; var result = []; for (var name in X) { result.push(name); }; return result; }, " + - "keys: function() { Z; return Object.keys(X); } " + - "})" - ) - .replace(/X/g, m()) - .replace(/Z/g, function() { - switch(rnd(20)){ - case 0: return "return " + m(); - case 1: return "throw " + m(); - default: return makeBuilderStatement(d - 2, b); - } - }); - } function propertyDescriptorPrefix(d, b) - { - return "configurable: " + makeBoolean(d, b) + ", " + "enumerable: " + makeBoolean(d, b) + ", "; - } function strToEval(d, b) - { - switch(rnd(5)) { - case 0: return simpleSource(fdecl(d, b)); - case 1: return simpleSource(makeBuilderStatement(d, b)); - default: return simpleSource(makeScriptForEval(d, b)); - } - } function evaluateFlags(d, b) - { - - return ("({ global: " + m("g") + - ", fileName: " + Random.index(["'evaluate.js'", "null"]) + - ", lineNumber: 42, newContext: " + makeBoolean(d, b) + - ", isRunOnce: " + makeBoolean(d, b) + - ", noScriptRval: " + makeBoolean(d, b) + - ", catchTermination: " + makeBoolean(d, b) + - ", saveFrameChain: " + ("bug 881999" && rnd(10000) ? "false" : makeBoolean(d, b)) + - ((rnd(5) == 0) ? ( - ((rnd(2) == 0) ? (", element: " + m("o")) : "") + - ((rnd(2) == 0) ? (", elementProperty: " + m("s")) : "") + - ((rnd(2) == 0) ? (", sourceMapURL: " + m("s")) : "") + - ((rnd(2) == 0) ? (", sourcePolicy: " + Random.index(["'NO_SOURCE'", "'LAZY_SOURCE'", "'SAVE_SOURCE'"])) : "") - ) : "" - ) + - " })"); - } var initializedEverything = false; - function initializeEverything(d, b) - { - if (initializedEverything) - return ";"; - initializedEverything = true; var s = ""; - for (var i = 0; i < OBJECTS_PER_TYPE; ++i) { - s += "a" + i + " = []; "; - s += "o" + i + " = {}; "; - s += "s" + i + " = ''; "; - s += "r" + i + " = /x/; "; - s += "g" + i + " = " + makeGlobal(d, b) + "; "; - s += "f" + i + " = function(){}; "; - s += "m" + i + " = new WeakMap; "; - s += "e" + i + " = new Set; "; - s += "v" + i + " = null; "; - s += "b" + i + " = new ArrayBuffer(64); "; - s += "t" + i + " = new Uint8ClampedArray; "; - - } - return s; - } - - - - function method(d, b, clazz, obj, meth, arglist) - { - - if (rnd(10) == 0) - arglist = []; - while (rnd(2)) - arglist.push(val(d, b)); - switch (rnd(4)) { - case 0: return clazz + ".prototype." + meth + ".apply(" + obj + ", [" + arglist.join(", ") + "])"; - case 1: return clazz + ".prototype." + meth + ".call(" + [obj].concat(arglist).join(", ") + ")"; - default: return obj + "." + meth + "(" + arglist.join(", ") + ")"; - } - } function severalargs(f) - { - var arglist = []; - arglist.push(f()); - while (rnd(2)) { - arglist.push(f()); - } - return arglist; - } var builderStatementMakers = Random.weighted([ - - { w: 1, v: function(d, b) { return assign(d, b, "a", "[]"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", "new Array"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", makeIterable(d, b)); } }, - { w: 1, v: function(d, b) { return m("a") + ".length = " + arrayIndex(d, b) + ";"; } }, - { w: 8, v: function(d, b) { return assign(d, b, "v", m("at") + ".length"); } }, - { w: 4, v: function(d, b) { return m("at") + "[" + arrayIndex(d, b) + "]" + " = " + val(d, b) + ";"; } }, - { w: 4, v: function(d, b) { return val(d, b) + " = " + m("at") + "[" + arrayIndex(d, b) + "]" + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", makeFunOnCallChain(d, b) + ".arguments"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", "arguments"); } }, - { w: 3, v: function(d, b) { return m("at") + "[" + arrayIndex(d, b) + "]" + ";"; } }, - { w: 3, v: function(d, b) { return m("at") + "[" + arrayIndex(d, b) + "] = " + makeExpr(d, b) + ";"; } }, - { w: 1, v: function(d, b) { return "/*ADP-1*/Object.defineProperty(" + m("a") + ", " + arrayIndex(d, b) + ", " + makePropertyDescriptor(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "/*ADP-2*/Object.defineProperty(" + m("a") + ", " + arrayIndex(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "get: " + makeEvilCallback(d,b) + ", set: " + makeEvilCallback(d, b) + " });"; } }, - { w: 1, v: function(d, b) { return "/*ADP-3*/Object.defineProperty(" + m("a") + ", " + arrayIndex(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "writable: " + makeBoolean(d,b) + ", value: " + val(d, b) + " });"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "push", severalargs(() => val(d, b))) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "pop", []) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "unshift", severalargs(() => val(d, b))) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "shift", []) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "reverse", []) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "sort", [makeEvilCallback(d, b)]) + ";"; } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "splice", [arrayIndex(d, b) - arrayIndex(d, b), arrayIndex(d, b)]) + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", method(d, b, "Array", m("a"), "join", [m("s")])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "concat", severalargs(() => m("at")))); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "slice", [arrayIndex(d, b) - arrayIndex(d, b), arrayIndex(d, b) - arrayIndex(d, b)])); } }, - { w: 5, v: function(d, b) { return method(d, b, "Array", m("a"), "forEach", [makeEvilCallback(d, b)]) + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "map", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", method(d, b, "Array", m("a"), "filter", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), "some", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), "every", [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), Random.index(["reduce, reduceRight"]), [makeEvilCallback(d, b)])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", method(d, b, "Array", m("a"), Random.index(["reduce, reduceRight"]), [makeEvilCallback(d, b), val(d, b)])); } }, - - - - - { w: 1, v: function(d, b) { return assign(d, b, "o", "{}"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "o", "new Object"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "o", "Object.create(" + val(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return "selectforgc(" + m("o") + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", "''"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", "new String"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", "new String(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "s", m("s") + ".charAt(" + arrayIndex(d, b) + ")"); } }, - { w: 5, v: function(d, b) { return m("s") + " += 'x';"; } }, - { w: 5, v: function(d, b) { return m("s") + " += " + m("s") + ";"; } }, - - { w: 1, v: function(d, b) { return assign(d, b, "m", "new Map"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "m", "new Map(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "m", "new WeakMap"); } }, - { w: 5, v: function(d, b) { return m("m") + ".has(" + val(d, b) + ");"; } }, - { w: 4, v: function(d, b) { return m("m") + ".get(" + val(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, null, m("m") + ".get(" + val(d, b) + ")"); } }, - { w: 5, v: function(d, b) { return m("m") + ".set(" + val(d, b) + ", " + val(d, b) + ");"; } }, - { w: 3, v: function(d, b) { return m("m") + ".delete(" + val(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "e", "new Set"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "e", "new Set(" + m() + ")"); } }, - { w: 5, v: function(d, b) { return m("e") + ".has(" + val(d, b) + ");"; } }, - { w: 5, v: function(d, b) { return m("e") + ".add(" + val(d, b) + ");"; } }, - { w: 3, v: function(d, b) { return m("e") + ".delete(" + val(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "b", "new " + arrayBufferType() + "(" + bufsize() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "b", m("t") + ".buffer"); } }, - { w: 1, v: function(d, b) { return "neuter(" + m("b") + ", " + (rnd(2) ? '"same-data"' : '"change-data"') + ");"; } }, - - { w: 1, v: function(d, b) { return assign(d, b, "t", "new " + Random.index(typedArrayConstructors) + "(" + arrayIndex(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return assign(d, b, "t", "new " + Random.index(typedArrayConstructors) + "(" + m("abt") + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "t", "new " + Random.index(typedArrayConstructors) + "(" + m("b") + ", " + bufsize() + ", " + arrayIndex(d, b) + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "t", m("t") + ".subarray(" + arrayIndex(d, b) + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "t", m("t") + ".subarray(" + arrayIndex(d, b) + ", " + arrayIndex(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return m("t") + ".set(" + m("at") + ", " + arrayIndex(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m("tb") + ".byteLength"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m("t") + ".byteOffset"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m("t") + ".BYTES_PER_ELEMENT"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "h", "{}"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "h", forwardingHandler(d, b)); } }, - { w: 1, v: function(d, b) { return "delete " + m("h") + "." + Random.index(handlerTraps) + ";"; } }, - { w: 4, v: function(d, b) { return m("h") + "." + Random.index(handlerTraps) + " = " + makeEvilCallback(d, b) + ";"; } }, - { w: 4, v: function(d, b) { return m("h") + "." + Random.index(handlerTraps) + " = " + m("f") + ";"; } }, - { w: 1, v: function(d, b) { return assign(d, b, null, "Proxy.create(" + m("h") + ", " + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "f", "Proxy.createFunction(" + m("h") + ", " + m("f") + ", " + m("f") + ")"); } }, - - - { w: 1, v: function(d, b) { return assign(d, b, "r", makeRegex(d, b)); } }, - { w: 1, v: function(d, b) { return assign(d, b, "a", m("r") + ".exec(" + m("s") + ")"); } }, - { w: 3, v: function(d, b) { return makeRegexUseBlock(d, b, m("r")); } }, - { w: 3, v: function(d, b) { return makeRegexUseBlock(d, b, m("r"), m("s")); } }, - { w: 3, v: function(d, b) { return assign(d, b, "v", m("r") + "." + Random.index(builtinObjects["RegExp.prototype"])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "g", makeGlobal(d, b)); } }, - { w: 5, v: function(d, b) { return assign(d, b, "v", m("g") + ".eval(" + strToEval(d, b) + ")"); } }, - { w: 5, v: function(d, b) { return assign(d, b, "v", "evalcx(" + strToEval(d, b) + ", " + m("g") + ")"); } }, - { w: 5, v: function(d, b) { return assign(d, b, "v", "evaluate(" + strToEval(d, b) + ", " + evaluateFlags(d, b) + ")"); } }, - { w: 3, v: function(d, b) { return "(void schedulegc(" + m("g") + "));"; } }, - { w: 3, v: function(d, b) { return "/*MXX1*/" + assign(d, b, "o", m("g") + "." + Random.index(builtinProperties)); } }, - { w: 3, v: function(d, b) { return "/*MXX2*/" + m("g") + "." + Random.index(builtinProperties) + " = " + m() + ";"; } }, - { w: 3, v: function(d, b) { var prop = Random.index(builtinProperties); return "/*MXX3*/" + m("g") + "." + prop + " = " + m("g") + "." + prop + ";"; } }, - - { w: 1, v: function(d, b) { return assign(d, b, "f", makeEvilCallback(d, b)); } }, - { w: 1, v: fdecl }, - { w: 2, v: function(d, b) { return m("f") + "(" + m() + ");"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "i", "new Iterator(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "i", "new Iterator(" + m() + ", true)"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "i", m("ema") + "." + Random.index(["entries", "keys", "values", "iterator"])); } }, - { w: 3, v: function(d, b) { return m("i") + ".next();"; } }, - { w: 3, v: function(d, b) { return m("i") + ".send(" + m() + ");"; } }, - - { w: 2, v: function(d, b) { return assign(d, b, "v", Random.index(["4", "4.2", "NaN", "0", "-0", "Infinity", "-Infinity"])); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", "new Number(" + Random.index(["4", "4.2", "NaN", "0", "-0", "Infinity", "-Infinity"]) + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", "new Number(" + m() + ")"); } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", makeBoolean(d, b)); } }, - { w: 2, v: function(d, b) { return assign(d, b, "v", Random.index(["undefined", "null", "true", "false"])); } }, - { w: 1, v: function(d, b) { return "/*ODP-1*/Object.defineProperty(" + m() + ", " + makePropertyName(d, b) + ", " + makePropertyDescriptor(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "/*ODP-2*/Object.defineProperty(" + m() + ", " + makePropertyName(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "get: " + makeEvilCallback(d,b) + ", set: " + makeEvilCallback(d, b) + " });"; } }, - { w: 1, v: function(d, b) { return "/*ODP-3*/Object.defineProperty(" + m() + ", " + makePropertyName(d, b) + ", { " + propertyDescriptorPrefix(d, b) + "writable: " + makeBoolean(d,b) + ", value: " + val(d, b) + " });"; } }, - { w: 1, v: function(d, b) { return "Object.prototype.watch.call(" + m() + ", " + makePropertyName(d, b) + ", " + makeEvilCallback(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "Object.prototype.unwatch.call(" + m() + ", " + makePropertyName(d, b) + ");"; } }, - { w: 1, v: function(d, b) { return "delete " + m() + "[" + makePropertyName(d, b) + "];"; } }, - { w: 1, v: function(d, b) { return assign(d, b, "v", m() + "[" + makePropertyName(d, b) + "]"); } }, - { w: 1, v: function(d, b) { return m() + "[" + makePropertyName(d, b) + "] = " + val(d, b) + ";"; } }, - { w: 5, v: function(d, b) { return "print(" + m() + ");"; } }, - { w: 5, v: function(d, b) { return "print(uneval(" + m() + "));"; } }, - { w: 5, v: function(d, b) { return m() + ".toString = " + makeEvilCallback(d, b) + ";"; } }, - { w: 5, v: function(d, b) { return m() + ".toSource = " + makeEvilCallback(d, b) + ";"; } }, - { w: 5, v: function(d, b) { return m() + ".valueOf = " + makeEvilCallback(d, b) + ";"; } }, - { w: 2, v: function(d, b) { return m() + ".__iterator__ = " + makeEvilCallback(d, b) + ";"; } }, - { w: 1, v: function(d, b) { return m() + " = " + m() + ";"; } }, - { w: 1, v: function(d, b) { return m() + " = " + m("g") + ".objectEmulatingUndefined();"; } }, - { w: 1, v: function(d, b) { return m("o") + " = " + m() + ".__proto__;"; } }, - { w: 5, v: function(d, b) { return m() + ".__proto__ = " + m() + ";"; } }, - { w: 10, v: function(d, b) { return "for (var p in " + m() + ") { " + makeBuilderStatements(d, b) + " }"; } }, - { w: 10, v: function(d, b) { return "for (var v of " + m() + ") { " + makeBuilderStatements(d, b) + " }"; } }, - { w: 10, v: function(d, b) { return m() + " + " + m() + ";"; } }, - { w: 10, v: function(d, b) { return m() + " + '';"; } }, - { w: 10, v: function(d, b) { return m("v") + " = (" + m() + " instanceof " + m() + ");"; } }, - { w: 10, v: function(d, b) { return m("v") + " = Object.prototype.isPrototypeOf.call(" + m() + ", " + m() + ");"; } }, - { w: 2, v: function(d, b) { return "Object." + Random.index(["preventExtensions", "seal", "freeze"]) + "(" + m() + ");"; } }, - { w: 1, v: function(d, b) { return m() + " = x;"; } }, - { w: 1, v: function(d, b) { return "x = " + m() + ";"; } }, - { w: 5, v: makeStatement }, { w: 5, v: initializeEverything }, - ]); - makeBuilderStatement = function(d, b) { - return (Random.index(builderStatementMakers))(d - 1, b); - }; -})(); -function infrequentCondition(v, n) -{ - switch (rnd(20)) { - case 0: return true; - case 1: return false; - case 2: return v + " > " + rnd(n); - default: var mod = rnd(n) + 2; var target = rnd(mod); return "/*ICCD*/" + v + " % " + mod + (rnd(8) ? " == " : " != ") + target; - } -}var arrayBufferType = "SharedArrayBuffer" in this ? - function() { return rnd(2) ? "SharedArrayBuffer" : "ArrayBuffer"; } : - function() { return "ArrayBuffer"; };/*************************** - * TEST ASM.JS CORRECTNESS * - ***************************/ -var compareAsm = (function() { function isSameNumber(a, b) - { - if (!(typeof a == "number" && typeof b == "number")) - return false; - if (a === 0 && b === 0) - return 1/a === 1/b; - return a === b || (a !== a && b !== b); - } var asmvals = [ - 1, Math.PI, 42, - - 0, -0, 0/0, 1/0, -1/0, - - 0x07fffffff, 0x080000000, 0x080000001, - -0x07fffffff, -0x080000000, -0x080000001, - 0x0ffffffff, 0x100000000, 0x100000001, - -0x0ffffffff, -0x100000000, 0x100000001, - - Number.MIN_VALUE, -Number.MIN_VALUE, - Number.MAX_VALUE, -Number.MAX_VALUE, - ]; - var asmvalsLen = asmvals.length; function compareUnaryFunctions(f, g) - { - for (var i = 0; i < asmvalsLen; ++i) { - var x = asmvals[i]; - var fr = f(x); - var gr = g(x); - if (!isSameNumber(fr, gr)) { - foundABug("asm mismatch", "(" + uneval(x) + ") -> " + uneval(fr) + " vs " + uneval(gr)); - } - } - } function compareBinaryFunctions(f, g) - { - for (var i = 0; i < asmvalsLen; ++i) { - var x = asmvals[i]; - for (var j = 0; j < asmvalsLen; ++j) { - var y = asmvals[j]; - var fr = f(x, y); - var gr = g(x, y); - if (!isSameNumber(fr, gr)) { - foundABug("asm mismatch", "(" + uneval(x) + ", " + uneval(y) + ") -> " + uneval(fr) + " vs " + uneval(gr)); - } - } - } - } return {compareUnaryFunctions: compareUnaryFunctions, compareBinaryFunctions: compareBinaryFunctions}; -})();function nanBitsMayBeVisible(s) -{ - - return (s.indexOf("Uint") != -1 || s.indexOf("Int") != -1) + (s.indexOf("Float32Array") != -1) + (s.indexOf("Float64Array") != -1) > 1; -}var pureForeign = { - identity: function(x) { return x; }, - quadruple: function(x) { return x * 4; }, - half: function(x) { return x / 2; }, - - asString: function(x) { return uneval(x); }, - asValueOf: function(x) { return { valueOf: function() { return x; } }; }, - - sum: function() { var s = 0; for (var i = 0; i < arguments.length; ++i) s += arguments[i]; return s; }, - - stomp: function() { }, -};for (var f in unaryMathFunctions) { - pureForeign["Math_" + unaryMathFunctions[f]] = Math[unaryMathFunctions[f]]; -}for (var f in binaryMathFunctions) { - pureForeign["Math_" + binaryMathFunctions[f]] = Math[binaryMathFunctions[f]]; -}var pureMathNames = Object.keys(pureForeign);function generateAsmDifferential() -{ - var foreignFunctions = rnd(10) ? [] : pureMathNames; - return asmJSInterior(foreignFunctions, true); -}function testAsmDifferential(stdlib, interior) -{ - if (nanBitsMayBeVisible(interior)) { - dumpln("Skipping correctness test for asm module that could expose low bits of NaN"); - return; - } var asmJs = "(function(stdlib, foreign, heap) { 'use asm'; " + interior + " })"; - var asmModule = eval(asmJs); if (isAsmJSModule(asmModule)) { - var asmHeap = new ArrayBuffer(4096); - (new Int32Array(asmHeap))[0] = 0x12345678; - var asmFun = asmModule(stdlib, pureForeign, asmHeap); var normalHeap = new ArrayBuffer(4096); - (new Int32Array(normalHeap))[0] = 0x12345678; - var normalJs = "(function(stdlib, foreign, heap) { " + interior + " })"; - var normalModule = eval(normalJs); - var normalFun = normalModule(stdlib, pureForeign, normalHeap); compareAsm.compareBinaryFunctions(asmFun, normalFun); - } -} -function startAsmDifferential() -{ - var asmFuzzSeed = 223617089; //Math.floor(Math.random() * Math.pow(2,28)); - // dumpln("asmFuzzSeed: " + asmFuzzSeed); - Random.init(asmFuzzSeed); while (true) { var stompStr = makeRegisterStompFunction(8, [], true); - print(stompStr); - pureForeign.stomp = eval(stompStr); for (var i = 0; i < 100; ++i) { - var interior = generateAsmDifferential(); - print(interior); - testAsmDifferential(this, interior); - } - gc(); - } -}var numericVals = [ - "1", "Math.PI", "42", - - "0", "-0", "0/0", "1/0", "-1/0", - - "0x07fffffff", "0x080000000", "0x080000001", - "-0x07fffffff", "-0x080000000", "-0x080000001", - "0x0ffffffff", "0x100000000", "0x100000001", - "-0x0ffffffff", "-0x100000000", "0x100000001", - - "Number.MIN_VALUE", "-Number.MIN_VALUE", - "Number.MAX_VALUE", "-Number.MAX_VALUE", -];var confusableVals = [ - "0", - "0.1", - "-0", - "''", - "'0'", - "'\\0'", - "[]", - "[0]", - "/0/", - "'/0/'", - "1", - "({toString:function(){return '0';}})", - "({valueOf:function(){return 0;}})", - "({valueOf:function(){return '0';}})", - "false", - "true", - "undefined", - "null", - "(function(){return 0;})", - "NaN", - "(new Boolean(false))", - "(new Boolean(true))", - "(new String(''))", - "(new Number(0))", - "(new Number(-0))", - "objectEmulatingUndefined()", -];function hashStr(s) -{ - var hash = 0; - var L = s.length; - for (var i = 0; i < L; i++) { - var c = s.charCodeAt(i); - hash = (Math.imul(hash, 31) + c) | 0; - } - return hash; -}function testMathyFunction(f, inputs) -{ - var results = []; - if (f) { - for (var j = 0; j < inputs.length; ++j) { - for (var k = 0; k < inputs.length; ++k) { - try { - results.push(f(inputs[j], inputs[k])); - } catch(e) { - results.push(errorToString(e)); - } - } - } - } - /* Use uneval to distinguish -0, 0, "0", etc. */ - /* Use hashStr to shorten the output and keep compareJIT files small. */ - print(hashStr(uneval(results))); -}function mathInitFCM() -{ - - var cookie = "/*F" + "CM*/"; print(cookie + hashStr.toString().replace(/\n/g, " ")); - print(cookie + testMathyFunction.toString().replace(/\n/g, " ")); -}function makeMathyFunAndTest(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); var i = rnd(NUM_MATH_FUNCTIONS); - var s = ""; if (rnd(5)) { - if (rnd(8)) { - s += "mathy" + i + " = " + makeMathFunction(6, b, i) + "; "; - } else { - s += "mathy" + i + " = " + makeAsmJSFunction(6, b) + "; "; - } - } if (rnd(5)) { - var inputsStr; - switch(rnd(8)) { - case 0: inputsStr = makeMixedTypeArray(d - 1, b); break; - case 1: inputsStr = "[" + Random.shuffled(confusableVals).join(", ") + "]"; break; - default: inputsStr = "[" + Random.shuffled(numericVals).join(", ") + "]"; break; - } s += "testMathyFunction(mathy" + i + ", " + inputsStr + "); "; - } return s; -}function makeMathyFunRef(d, b) -{ - if (rnd(TOTALLY_RANDOM) == 2) return totallyRandom(d, b); return "mathy" + rnd(NUM_MATH_FUNCTIONS); -}/******************************* - * EXECUTION CONSISTENCY TESTS * - *******************************/function sandboxResult(code, zone) -{ - - var result; - var resultStr = ""; - try { - - - var sandbox = newGlobal({sameZoneAs: zone}); result = evalcx(code, sandbox); - if (typeof result != "object") { - - resultStr = "" + result; - } - } catch(e) { - result = "Error: " + errorToString(e); - } - - return resultStr; -}function nestingConsistencyTest(code) -{ - - - function nestExpr(e) { return "(function() { return " + code + "; })()"; } - var codeNestedOnce = nestExpr(code); - var codeNestedDeep = code; - var depth = (count % 7) + 14; - for (var i = 0; i < depth; ++i) { - codeNestedDeep = nestExpr(codeNestedDeep); - } - var resultO = sandboxResult(codeNestedOnce, null); var resultD = sandboxResult(codeNestedDeep, null); - if (resultO != resultD) { - foundABug("NestTest mismatch", - "resultO: " + resultO + "\n" + - "resultD: " + resultD); - } -} -function optionalTests(f, code, wtt) -{ - if (count % 100 == 1) { - tryHalves(code); - } if (count % 100 == 2 && engine == ENGINE_SPIDERMONKEY_TRUNK) { - try { - Reflect.parse(code); - } catch(e) { - } - } if (count % 100 == 3 && f && typeof disassemble == "function") { - - - disassemble("-r", f); - } if (0 && f && wtt.allowExec && engine == ENGINE_SPIDERMONKEY_TRUNK) { - simpleDVGTest(code); - tryEnsureSanity(); - } if (count % 100 == 6 && f && wtt.allowExec && wtt.expectConsistentOutput && wtt.expectConsistentOutputAcrossIter - && engine == ENGINE_SPIDERMONKEY_TRUNK && getBuildConfiguration()['more-deterministic']) { - nestingConsistencyTest(code); - } -} -function simpleDVGTest(code) -{ - var fullCode = "(function() { try { \n" + code + "\n; throw 1; } catch(exx) { this.nnn.nnn } })()"; try { - eval(fullCode); - } catch(e) { - if (e.message != "this.nnn is undefined" && e.message.indexOf("redeclaration of") == -1) { - - foundABug("Wrong error " + "message", e); - } - } -} -function tryHalves(code) -{ - var f, firstHalf, secondHalf; try { firstHalf = code.substr(0, code.length / 2); - if (verbose) - dumpln("First half: " + firstHalf); - f = new Function(firstHalf); - void ("" + f); - } - catch(e) { - if (verbose) - dumpln("First half compilation error: " + e); - } try { - secondHalf = code.substr(code.length / 2, code.length); - if (verbose) - dumpln("Second half: " + secondHalf); - f = new Function(secondHalf); - void ("" + f); - } - catch(e) { - if (verbose) - dumpln("Second half compilation error: " + e); - } -}/***************** - * USING REGEXPS * - *****************/function randomRegexFlags() { - var s = ""; - if (rnd(2)) - s += "g"; - if (rnd(2)) - s += "y"; - if (rnd(2)) - s += "i"; - if (rnd(2)) - s += "m"; - return s; -}function toRegexSource(rexpat) -{ - return (rnd(2) === 0 && rexpat.charAt(0) != "*") ? - "/" + rexpat + "/" + randomRegexFlags() : - "new RegExp(" + simpleSource(rexpat) + ", " + simpleSource(randomRegexFlags()) + ")"; -}function makeRegexUseBlock(d, b, rexExpr, strExpr) -{ - var rexpair = regexPattern(10, false); - var rexpat = rexpair[0]; - var str = rexpair[1][rnd(POTENTIAL_MATCHES)]; if (!rexExpr) rexExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : toRegexSource(rexpat); - if (!strExpr) strExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : simpleSource(str); var bv = b.concat(["s", "r"]); return ("/*RXUB*/var r = " + rexExpr + "; " + - "var s = " + strExpr + "; " + - "print(" + - Random.index([ - "r.exec(s)", - "uneval(r.exec(s))", - "r.test(s)", - "s.match(r)", - "uneval(s.match(r))", - "s.search(r)", - "s.replace(r, " + makeReplacement(d, bv) + (rnd(3) ? "" : ", " + simpleSource(randomRegexFlags())) + ")", - "s.split(r)" - ]) + - "); " + - (rnd(3) ? "" : "print(r.lastIndex); ") - ); -}function makeRegexUseExpr(d, b) -{ - var rexpair = regexPattern(8, false); - var rexpat = rexpair[0]; - var str = rexpair[1][rnd(POTENTIAL_MATCHES)]; var rexExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : toRegexSource(rexpat); - var strExpr = rnd(10) === 0 ? makeExpr(d - 1, b) : simpleSource(str); return "/*RXUE*/" + rexExpr + ".exec(" + strExpr + ")"; -}function makeRegex(d, b) -{ - var rexpair = regexPattern(8, false); - var rexpat = rexpair[0]; - var rexExpr = toRegexSource(rexpat); - return rexExpr; -}function makeReplacement(d, b) -{ - switch(rnd(3)) { - case 0: return Random.index(["''", "'x'", "'\\u0341'"]); - case 1: return makeExpr(d, b); - default: return makeFunction(d, b); - } -}function start(glob) -{ - var fuzzSeed = 223617089;//Math.floor(Math.random() * Math.pow(2,28)); - dumpln("fuzzSeed: " + fuzzSeed); - Random.init(fuzzSeed); - - - var cookie = "/*F"; - cookie += "RC*/"; - var dumpEachSeed = false; if (dumpEachSeed) { - dumpln(cookie + "Random.init(0);"); - } mathInitFCM(); count = 0; if (jsshell) { - - var MAX_TOTAL_TIME = (glob.maxRunTime) || (Infinity); - var startTime = new Date(); - var lastTime; do { - testOne(); - var elapsed1 = new Date() - lastTime; - if (elapsed1 > 1000) { - print("That took " + elapsed1 + "ms!"); - } - lastTime = new Date(); - } while(lastTime - startTime < MAX_TOTAL_TIME); - } else { - setTimeout(testStuffForAWhile, 200); - } function testStuffForAWhile() - { - for (var j = 0; j < 100; ++j) - testOne(); if (count % 10000 < 100) - printImportant("Iterations: " + count); setTimeout(testStuffForAWhile, 30); - } function testOne() - { - ++count; - - var depth = 14; if (dumpEachSeed) { - - var MTA = uneval(Random.twister.export_mta()); - var MTI = Random.twister.export_mti(); - if (MTA != Random.lastDumpedMTA) { - dumpln(cookie + "Random.twister.import_mta(" + MTA + ");"); - Random.lastDumpedMTA = MTA; - } - dumpln(cookie + "Random.twister.import_mti(" + MTI + "); void (makeScript(" + depth + "));"); - } var code = makeScript(depth); if (count == 1 && engine == ENGINE_SPIDERMONKEY_TRUNK && rnd(5)) { - code = "tryRunning = useSpidermonkeyShellSandbox(" + rnd(4) + ");"; - - } - - - - - dumpln(cookie + "count=" + count + "; tryItOut(" + uneval(code) + ");"); tryItOut(code); - } -} -function failsToCompileInTry(code) { - - try { - var codeInTry = "try { " + code + " } catch(e) { }"; - void new Function(codeInTry); - return false; - } catch(e) { - return true; - } -}/********************* - * SANDBOXED RUNNING * - *********************/var tryRunning = xpcshell ? useGeckoSandbox() : tryRunningDirectly; -function fillShellSandbox(sandbox) -{ - var safeFuns = [ - "print", - "schedulegc", "selectforgc", "gczeal", "gc", "gcslice", - "verifyprebarriers", "gcPreserveCode", - "minorgc", "abortgc", - "evalcx", "newGlobal", "evaluate", - "dumpln", "fillShellSandbox", - "testMathyFunction", "hashStr", - "isAsmJSCompilationAvailable", - ]; for (var i = 0; i < safeFuns.length; ++i) { - var fn = safeFuns[i]; - if (sandbox[fn]) { - - } else if (this[fn]) { - sandbox[fn] = this[fn].bind(this); - } else { - - } - } return sandbox; -}function useSpidermonkeyShellSandbox(sandboxType) -{ - var primarySandbox; switch (sandboxType) { - case 0: primarySandbox = evalcx(''); - case 1: primarySandbox = evalcx('lazy'); - case 2: primarySandbox = newGlobal({sameZoneAs: {}}); - default: primarySandbox = newGlobal(); - } fillShellSandbox(primarySandbox); return function(f, code, wtt) { - try { - evalcx(code, primarySandbox); - } catch(e) { - dumpln("Running in sandbox threw " + errorToString(e)); - } - }; -} -function newGeckoSandbox(n) -{ - var t = (typeof n == "number") ? n : 1; - var s = Components.utils.Sandbox("http://x" + t + ".example.com/"); - s.newGeckoSandbox = newGeckoSandbox; - s.evalInSandbox = function(str, sbx) { - return Components.utils.evalInSandbox(str, sbx); - }; - s.print = function(str) { print(str); }; return s; -}function useGeckoSandbox() { - var primarySandbox = newGeckoSandbox(0); return function(f, code, wtt) { - try { - Components.utils.evalInSandbox(code, primarySandbox); - } catch(e) { - - } - }; -} -/*********************** - * UNSANDBOXED RUNNING * - ***********************/function directEvalC(s) { var c; /* evil closureizer */ return eval(s); } function newFun(s) { return new Function(s); }function tryRunningDirectly(f, code, wtt) -{ - if (count % 23 == 3) { - dumpln("Plain eval!"); - try { eval(code); } catch(e) { } - tryEnsureSanity(); - return; - } if (count % 23 == 4) { - dumpln("About to recompile, using eval hack."); - f = directEvalC("(function(){" + code + "});"); - } try { - if (verbose) - dumpln("About to run it!"); - var rv = f(); - if (verbose) - dumpln("It ran!"); - if (wtt.allowIter && rv && typeof rv == "object") { - tryIteration(rv); - } - } catch(runError) { - if(verbose) - dumpln("Running threw! About to toString to error."); - var err = errorToString(runError); - dumpln("Running threw: " + err); - } tryEnsureSanity(); -}var realEval = eval; -var realMath = Math; -var realFunction = Function; -var realGC = gc; -var realUneval = uneval; -var realToString = toString; -var realToSource = this.toSource; -function tryEnsureSanity() -{ - - - try { - if (typeof resetOOMFailure == "function") - resetOOMFailure(); - } catch(e) { } try { - - - if (typeof gczeal == "function") - gczeal(0); - } catch(e) { } - try { eval(""); } catch(e) { dumpln("That really shouldn't have thrown: " + errorToString(e)); } if (!this) { - - return; - } try { - - delete this.unwatch; - if ('unwatch' in this) { - this.unwatch("eval"); - this.unwatch("Function"); - this.unwatch("gc"); - this.unwatch("uneval"); - this.unwatch("toSource"); - this.unwatch("toString"); - } if ('__defineSetter__' in this) { - - if (!jsStrictMode) - delete this.eval; - delete this.Math; - delete this.Function; - delete this.gc; - delete this.uneval; - delete this.toSource; - delete this.toString; - } this.Math = realMath; - this.eval = realEval; - this.Function = realFunction; - this.gc = realGC; - this.uneval = realUneval; - this.toSource = realToSource; - this.toString = realToString; - } catch(e) { - confused("tryEnsureSanity failed: " + errorToString(e)); - } - if (this.eval != realEval) - confused("Fuzz script replaced |eval|"); - if (Function != realFunction) - confused("Fuzz script replaced |Function|"); -}function tryIteration(rv) -{ - try { - if (Iterator(rv) !== rv) - return; - } - catch(e) { - - dumpln("Error while trying to determine whether it's an iterator!"); - dumpln("The error was: " + e); - return; - } dumpln("It's an iterator!"); - try { - var iterCount = 0; - for (var iterValue of rv) - ++iterCount; - dumpln("Iterating succeeded, iterCount == " + iterCount); - } catch (iterError) { - dumpln("Iterating threw!"); - dumpln("Iterating threw: " + errorToString(iterError)); - } -}function tryItOut(code) -{ - - if (typeof gczeal == "function") - gczeal(0); - if (count % 1000 == 0) { - dumpln("Paranoid GC (count=" + count + ")!"); - realGC(); - } var wtt = whatToTest(code); if (!wtt.allowParse) - return; code = code.replace(/\/\*DUPTRY\d+\*\//, function(k) { var n = parseInt(k.substr(8), 10); dumpln(n); return strTimes("try{}catch(e){}", n); }); - - if (jsStrictMode) - code = "'use strict'; " + code; var f; - try { - f = new Function(code); - } catch(compileError) { - dumpln("Compiling threw: " + errorToString(compileError)); - } if (f && wtt.allowExec && wtt.expectConsistentOutput && wtt.expectConsistentOutputAcrossJITs) { - if (code.indexOf("\n") == -1 && code.indexOf("\r") == -1 && code.indexOf("\f") == -1 && code.indexOf("\0") == -1 && - code.indexOf("\u2028") == -1 && code.indexOf("\u2029") == -1 && - code.indexOf("<--") == -1 && code.indexOf("-->") == -1 && code.indexOf("//") == -1) { - - var cookie1 = "/*F"; - var cookie2 = "CM*/"; - var nCode = code; - - - - - if (nCode.indexOf("return") != -1 || nCode.indexOf("yield") != -1 || nCode.indexOf("const") != -1 || failsToCompileInTry(nCode)) - nCode = "(function(){" + nCode + "})()"; - dumpln(cookie1 + cookie2 + " try { " + nCode + " } catch(e) { }"); - } - } if (tryRunning != tryRunningDirectly) { - optionalTests(f, code, wtt); - } if (wtt.allowExec && f) { - tryRunning(f, code, wtt); - } if (verbose) - dumpln("Done trying out that function!"); dumpln(""); -} -var count = 0; -var verbose = false; - -/*FRC*/Random.init(0); -/*FCM*/function hashStr(s) { var hash = 0; var L = s.length; for (var i = 0; i < L; i++) { var c = s.charCodeAt(i); hash = (Math.imul(hash, 31) + c) | 0; } return hash; } -/*FCM*/function testMathyFunction(f, inputs) { var results = []; if (f) { for (var j = 0; j < inputs.length; ++j) { for (var k = 0; k < inputs.length; ++k) { try { results.push(f(inputs[j], inputs[k])); } catch(e) { results.push(errorToString(e)); } } } } /* Use uneval to distinguish -0, 0, "0", etc. */ /* Use hashStr to shorten the output and keep compareJIT files small. */ print(hashStr(uneval(results))); } -/*FRC*/Random.twister.import_mta(223617089,-1791327578,-226799946,716696172,1073170592,248334117,1074978463,518414941,1746113465,869187489,1048953743,-313086346,667054389,851379958,953247004,226287643,-1427120713,976967034,-2005073100,-1635505567,831042595,1682623716,-814980241,518784435,772803255,1091643724,2012905595,1609300541,1218958792,538896746,1359073520,1361012788,94075401,-1931151698,1829461502,1086491838,390905471,213000000,801084518,1942626917,-69003876,-1836933404,349947624,679453107,935892683,509813060,-1564113918,-2020535249,-1455158543,39410960,192890754,1930020989,1787458848,1094049594,-1923832451,695157330,1268845714,1648992568,-1562174281,-219533148,-218132193,1799371849,-1231925082,-1185049357,-180896683,18961455,1769758157,-858313281,-2004703376,1933972031,-1575329604,-547366595,-2067471426,1236366709,822766350,-1043809583,-1813375194,1941529985,-1510569010,1302942667,-1003804414,150976182,748977184,-2009982733,-441200535,1163916327,1838000468,-2049618976,1576067714,1859549448,-1667067417,1702501556,-2021838651,-1125138976,1617026184,962614124,127514108,-1947424563,-866230003,-1299265303,2118649883,-1888019289,-1126851969,-983705416,-400583377,528377541,-46073565,-2856437,-507241068,-1990820864,-1282801864,563985489,-12999323,420206511,-236863619,-1577256151,1298537323,-1512404153,1319362479,1058889245,1824433897,1591869953,1883032186,1035253250,-541007546,-997601866,1164379623,-1256756675,1976672859,336410627,-934955855,1511099581,375464624,45277173,1176467759,981888429,58055369,924050134,-619248392,-929281390,-7863103,-1803308265,-731978537,1135721523,271843914,-2117828157,1413380791,-817115039,1713088830,1261796720,1716713259,1059520041,126171077,-456495534,-920789105,-2109792553,-566614107,-374113509,-1101567722,792996227,-2035254193,2017542146,1628757201,1091989171,-839586082,427918038,989275412,-102410869,150505296,-39374023,1811366028,703786316,451496872,1763688949,-1241572878,1209445471,-238923834,-1464015254,-693334086,84784560,-1938563292,-1909694285,672653195,1490654606,-372602589,-534103463,-1705430980,431175473,982843409,105455730,-1739272264,-1565098207,436135055,1036629036,-818699746,199981876,121794632,-582691539,1585428972,-1268830136,-1536448518,-1289421407,751389977,224185512,1740285716,1033971990,-148112260,-1980525078,-1045738152,-1770506056,-1193284556,54204449,2065772249,-1106177011,14807489,1271638780,1321655209,1637454369,799655802,-1777205763,1543482743,-1511156117,85559627,312036982,1320360814,2053192364,-411190237,1126717827,1633674030,-978204304,706217541,-1095211232,400548690,188322371,-2133749671,1332455378,-1928453589,1912237082,1415846549,130265427,-1486921297,-1147003086,-470352158,50329784,-1742759540,143037435,1378268669,1787668835,-751352158,-1006499970,1530518091,598391341,-2093446723,1597935704,-1923246821,2053453020,558047537,-1600761258,2108256294,-974184602,-2031652643,1053810688,652435718,902528613,816835553,-1177912882,212089478,29806057,83881721,-2069132726,1285953398,-128519678,-1948842891,-1871088892,-1415407504,-36100083,1568558234,-166712004,-1924034063,-370237194,-1040474431,1602844067,-795010044,439144158,-1636537166,183046797,113035199,-1181153670,-350370184,55845544,693474666,-375411211,701647154,562078687,-1634992351,918185206,-498369482,1857249042,1210756777,-152645261,-382365092,-1039099992,-1151116635,138880018,-354623926,-1139292930,-1599105890,1007754943,1198414223,-1755818949,1417329843,1145419121,1940489832,1403992486,-779280611,-1272556015,-172678725,1804191445,143582946,-2111960471,-698720137,-2106449147,1962381829,1357693143,779393970,355577983,1535613537,1723681063,-589483194,110635138,-79458668,-485027362,-1447800195,1237550184,-1495371845,-107276724,1766397307,-1263942541,741472999,2135858550,-829829049,-1632661463,-1533549235,-758267774,-155648707,1798576335,-1032451936,-475683670,1108830473,-643188347,1323886908,-480203920,-1526124353,417358066,-1559903524,1654698233,1591905084,915379574,1004281588,857000875,-35660065,-543512011,1821773496,-1742483096,-1558619586,-1309755623,1491644949,-374933677,208233472,135820657,714526727,654627638,-2006369342,-994159563,-1885200188,-605362795,128179110,-1111785481,237410851,950832202,-1054018386,-228057410,-290306289,-1783663301,881050109,1152839506,-1853564863,-1359335694,1952642612,-129990290,-55482745,527832987,-1518975825,1864675018,-426730847,-331631243,-437993702,-483211414,-1885413637,-741328180,-263652293,1632467881,475443930,1877031829,-1110788360,-709100489,-1030859238,-722838924,404775307,667345008,-2103280182,1340320131,-719948826,-584824842,-41582009,-1203844493,-2144118475,-1283349676,-236423024,692272802,1383754126,1135750672,2120894299,-1416408535,-347770977,-664566219,361814776,-1541595773,-1899123055,865569964,-574190198,1809000892,1808834113,-2118209295,-1751982959,1895871154,1540181331,-878811889,-320517262,-403882420,2132467171,-276464157,-517502182,1471759256,645107225,1901163162,-776721435,1658677629,-1322124372,-232101017,1576068150,1806465654,1440154039,-1044900717,1083256470,626471514,-1110505142,1335767857,-1189157958,1796559203,967085942,-2098413221,810543851,1689023366,512611603,-863945392,-1978425711,1402944722,-484119533,-1806322651,-1001786311,712402617,-121730603,667543879,359729629,1961569036,-1540558083,213866360,1905572918,-1041714542,374672917,-1834300118,-1052419414,612382608,1229061556,-2084440242,-1678623006,1649979463,-1656945786,2022705405,881224022,-792684839,-2069090322,1560819209,-211838186,1212771896,-528220307,-1681414569,-1239736709,1028704432,689266532,1899440233,708483838,1795364397,172576084,-694585315,-1129942064,1147475413,492573344,-575997155,2057970388,1100397832,-2099157107,1816290412,-118819325,-1403449341,-2068128919,-2129537476,2070066812,990242392,-570361152,1005210616,-1176522014,1880847467,-754472482,1022905150,619437956,-1740057309,-827211499,1007678911,-1995952787,-2104273442,-2045272608,872234559,1358055409,-811215929,622621292,-1905724747,810333005,2102523004,-1198039955,792191208,-1900026458,2065063891,-1076284934,-365530887,415653572,911624567,-744706793,-2130968823,1547011197,-194534637,412542840,1773177985,89649322,2015555389,-227311400,1636043668,1348358391,759404861,-178774975,-1867482565,-359154769,1929386255,64250554,1454800791,-1520329116,-636348811,476185798,1352915543,-1059640280,-1800113614,-1684226260,-378991261,742041886,527943957,-529427319,-1659668813,1309249303,418528241,-918773415,951768263,587559881,-1298382444,702097526,-1668407593,-2040190637,1983686720,566242545,259372642,1824090360,153267596,-127768948,-912392260,-1418977363,812001630,-1912364438,1244708189,1477768098,1679514790,535949115,-2112424032,-1157404860,-175753479,-1439335170,-2115949111,-1545226635,-913854894,252191061,224306666,780644788,-980520345,2099685336,855792642,-1086758608,-419095263,92910290,1539567939,-2127002764,-1713371655,-1502432909,-1840481022,303190894,-1612526891); -/*FRC*/Random.twister.import_mti(624); void (makeScript(14)); -/*FRC*/count=1; tryItOut("mathy4 = (function(x, y) { return ( + Math.max((Math.hypot(( + ( - ( + ((( + ( ! ( + -0x07fffffff))) ? (( ! (x === y)) | 0) : (( ! x) >>> 0)) | 0)))), ( + Math.atan2(( ~ (y >>> 0)), Math.hypot((0/0 % x), Math.fround(( + ((Math.PI | 0) / (Math.atan2(x, y) | 0)))))))) | 0), ( + (Math.trunc(Math.expm1(( + mathy1(Math.fround(Math.atan2(y, ( + ((x >>> 0) ^ x)))), (y | 0))))) >>> 0)))); }); testMathyFunction(mathy4, [0x100000001, -Number.MIN_VALUE, -Number.MAX_VALUE, 0x0ffffffff, 0x080000000, 1, 0x080000001, 1/0, -0, 0, Number.MIN_VALUE, 0x100000001, -0x07fffffff, 0x07fffffff, Number.MAX_VALUE, -0x080000001, 0/0, 42, 0x100000000, -1/0, Math.PI, -0x080000000, -0x100000000, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mta(-374372807,-157058656,-2037657606,-273459093,-14456604,-1520997046,-107300252,281792507,1431573304,1153697538,-499053233,-758519346,1050239755,-1630875836,-799708847,1500065250,-2143687349,-105184291,1853124508,1107276795,-2119908058,1331100152,-12743516,-595928054,1664793270,-593512519,493756392,-820607621,-932384128,1024471680,-1936545383,352887626,904263675,-1421663371,1269985251,-109153887,-2014855343,-2142431582,-772992161,1715259293,-2099303811,-1500993530,1792695882,-34199975,-525013695,-263894757,-1921418928,-338084930,813554706,-737441756,-1034863204,-2072723140,-760183558,-1034811817,1058790239,1879541758,-258161649,-924315630,1545742856,1572368666,-1556701750,-1571304471,-1363989563,-633871997,1534385043,-1644596014,-607169146,1523353259,740983952,-1692487985,-1523031917,-1589207604,1770372672,-590560834,-1818588402,-1320451514,-954340520,126503994,-1959316938,-2043058564,1220578339,1741062694,1559825972,-41658626,1762494438,-142373376,644518496,666471669,-1263875126,212584142,283491869,126561083,652727821,1152812818,-865026193,-2023688944,-1040788816,209197903,-2012824941,112151487,91527387,1903780763,1610491116,-1005443796,-1484739628,-1919789392,-1914596361,2058044318,-1842199011,-446526388,-1918665950,-1144491827,136814613,-615363147,-2006945725,2103106279,-408448752,112437515,719261650,736966850,929589219,1132254017,635419993,-236942749,1504619811,1113882830,-208113238,820496428,-1342806048,-1715358461,1816699810,-981381043,-1537332582,856629541,114873303,514179163,678743892,2105132429,-1410599282,-1009729325,1562483681,-1016368647,-2055103814,-1332912824,-1227026218,2108188706,-977598660,-858462875,-810758591,-1293445746,-1328707908,1230407210,-1298216928,-1582048411,745577639,-293387147,-2073984557,1518093345,-1232581853,1747127840,497331093,-102986176,-1799348549,-744330450,-596591792,-135517915,-688258283,1202200850,-244492588,-795197918,-823435053,286695698,-47936910,-634871599,1773638850,-1552049969,-1120436650,1198321347,1576080333,-431457509,1124988469,-2096443379,882831670,1691440407,-777553612,1848241111,1733126867,-1382344543,-1616212242,-1974514033,-1100011761,-197661079,294743156,1260435959,1289162774,-71082328,2117543413,-1001143461,709472634,-600411753,-1968540846,-1753684495,1656044274,741129393,-1664720085,-2137613958,-1317012468,-891233710,-891473515,-7716753,286429853,-1416624410,-1956733133,-134219381,-529815783,-1018332461,-1698290227,-1460829555,1963283200,-243346250,-801273175,1522333454,-1867734334,-2127872828,-1350770604,-1197195872,1736333003,-654280786,-730096360,1250917383,-252744709,-1261659827,969086132,1627046551,2004753426,-891571470,1010381071,1367060698,1210089912,-1270979837,-1021591331,-1582426592,404148670,-1942609523,619772671,-563116611,-307112043,-1472240009,760740423,195678558,1420243395,-72462665,-1291780203,-2100795974,-1306255595,1103483591,760945579,-230289014,939470073,-274792630,-198913163,1489231712,2056486476,112786046,-1666700731,-1749086692,-2682442,430468574,-1528992477,210327025,-1042456744,1012391844,-1199968103,-660064920,205332327,1589836383,-284975430,502351291,-259813049,726006597,882773081,391468381,1024581777,-5836202,345254283,-965412600,1098183207,-692551946,-469902659,-1172709008,2012252070,262012682,338793954,1300372169,26326224,487537291,-330890938,405112600,54347178,488601454,-1111192982,1461950083,-177729457,-227310467,1501670981,-614401927,1094277628,-226553797,-178120476,-1345527630,1185823897,1356416210,-564915501,-1750815439,-459139294,1467542472,-530082437,346213740,-1618174256,-725461271,-1668864433,788776626,907945380,-691232919,-1612155985,1020118908,-1392943117,723124600,842364890,1650451366,-1248219709,1783771701,-378301308,126227701,107399352,2141092991,1715396266,1119041166,-2073084298,-1234437911,218969470,1126380090,339491494,99835729,-366930509,199494530,1514138263,-815045704,-157237412,1118554567,-1068441637,-1843231325,236236983,-501575484,-658562929,-2138627458,-2105114696,1906748632,1157858631,62485802,-976567072,1888736395,313796847,2046321227,-1132056866,1586962267,1846217637,454371809,1584397214,163725926,-1559284525,-1293316809,-2030046489,-2106976418,942221168,-1937955950,892508842,1859550066,1426112527,-1844923785,-662186950,-1038020609,1029459511,1193857522,2015835016,658675676,1063131481,1737871503,-973287689,1938824487,85053500,1472408024,-2139193792,2092629658,-1463989385,-2086729383,-1593614953,271368049,2029960308,470303920,864464346,1738329519,226866650,-1546509014,-1262903289,1018575040,-1942137311,-1776978385,-1863737291,902811603,-1708642039,-80985913,12306476,-2138629329,1754058055,1186697899,-745562331,-962913465,-1600753352,950818995,1794748159,-353729692,1996638051,-1835195675,829075614,1619123206,1462783881,1422136517,-827120729,1280736311,1506093167,807836884,423719389,1673405083,-1302297845,2117281763,1129169463,1734358820,-664364608,1843085597,1496709029,-1862770028,-1466836193,284643870,-1874510912,-992479699,421056727,-928680065,-1163824542,-27995943,-1258487297,480235600,24151862,121028992,-877924733,-895739459,-1270295232,-329246170,1481539875,621892367,-125562139,-1236182600,-124941519,-1435014311,2000367218,-1809711569,-571343510,1803617803,1921809645,-482698371,1074110990,-2119758134,344179137,2114053028,-1840581647,-1505152026,1307998946,1819111384,-614852610,1629669440,-1952644305,-762924480,327534863,167503217,-207164883,2047226760,129636278,-88452426,-1115460671,1624263399,-1211104819,-553763406,1613997511,-965157827,2106383042,227811914,-664652283,64512186,1660926972,-1393336533,2033914243,421548568,-229916266,-366528496,-1347073686,-1362057041,-796933776,976225545,-1601660916,1078260219,-546460462,-1930679662,-1336554690,-469157383,429671976,950536150,-91157906,172088472,304024614,993126530,276250421,494824865,-66441119,-976955991,1180279431,289974888,-2009879264,1133828671,-1876108157,1759819302,-1288032622,445276341,462870457,-263664933,1285900551,-1477697070,837822775,-2021599776,1852948204,1528237114,-1069589179,-469899791,-1275366146,-7664250,-122599985,-739266126,1457635981,742506523,-160003607,-1056155835,1979186751,-744292333,-1860357661,-1370314842,-1912355271,185382838,312338028,79574375,-436515212,1255615099,-690579145,-366631504,-1625898969,1742008311,-253707878,-1763708604,1114260236,1128019741,-226857010,878161074,1336501832,-1477490139,-430424596,203603480,1507342317,1603323335,-1792359871,1046259855,122890372,-1283305276,659507832,1345661364,-1714879820,-697635965,-420932756,-1623613135,2024218890,1277321799,1999179706,619224211,2104046733,-2135482984,978968709,-1565150036,1126579534,1500392107,-170742761,-1895478014,-2132532380,269464997,-2090767218,1705546962,1874233393,1613243605,-1221698231,-1644516374,-154442402,101413967,-997303030,706713325,-51947490,112484452,1053014493,549628353,-1927287104,-2026367074,-948349607,93163910,-2110022661,1246729766,899465243,-508271936,359062764,1289498196); -/*FRC*/Random.twister.import_mti(311); void (makeScript(14)); -/*FRC*/count=2; tryItOut("mathy3 = (function(x, y) { \"use asm\"; return Math.fround(Math.abs(Math.tan(Math.fround((Math.fround(y) == Math.fround(( + Math.fround(Math.atan2(-0x0ffffffff, Math.fround(Number.MAX_VALUE)))))))))); }); testMathyFunction(mathy3, /*MARR*/[x, new Number(1), x, '\\0' , '\\0' , new String(''), new String(''), x, '\\0' , new String(''), '\\0' , new Number(1), false, x, new String(''), false, new String(''), new Number(1), false, false, new String(''), false, new String(''), new Number(1), '\\0' , new Number(1), '\\0' , false, new Number(1), new Number(1), '\\0' , new Number(1), x, new Number(1), x, new String(''), x, new String(''), new Number(1), false, new Number(1), false, x, '\\0' , new String(''), new Number(1), false, false, new Number(1), new String(''), x, new Number(1), '\\0' , false, false, '\\0' , false, false, false, x, false, false, new String(''), x]); "); -/*FRC*/Random.twister.import_mti(548); void (makeScript(14)); -/*FRC*/count=3; tryItOut("mathy0 = (function(x, y) { return Math.fround(Math.hypot(Math.fround(( + ( - y))), Math.fround(Math.exp(( + Math.fround(( ! Math.fround(-0x0ffffffff)))))))); }); testMathyFunction(mathy0, /*MARR*/[timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), timeout(1800), timeout(1800), timeout(1800), timeout(1800), timeout(1800), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), timeout(1800), objectEmulatingUndefined(), timeout(1800), objectEmulatingUndefined(), timeout(1800), timeout(1800), objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mta(1803355041,1002134409,-220637094,1276582312,892828426,1900603624,1925149192,-1642878565,517225281,605380697,-9338168,1454219631,984262769,1795831166,-1751591370,-1716548010,1699883550,532085385,-11732087,-748814922,-1590663237,-1626818710,1452357302,459600804,1571678311,968181911,740216967,1432144350,1040827718,-932074598,507528544,1296656517,-1057006254,-1525371071,-1785654053,-1011212630,597207498,1134475899,-1809451790,-617945130,874799911,-1391741211,-903290130,-1335414310,1909618374,-299014217,1696321473,-931408439,-288214465,2016431641,-1969285151,-738643937,108356397,1920490639,614208431,-1607051794,1665321353,-1514472569,-465559248,-1512858715,608390925,-1776311266,-788393199,204918771,-1196563503,-1788206606,1578735827,1630432314,10885527,375750140,992102637,105817037,-849544286,164161417,-654127127,1997354093,1036305849,-1747883286,-447381288,-1331786708,1603153611,-182021916,1608573759,-14958372,-381192896,1085308991,-2094033964,-369913912,1012125935,-1765771161,1618442228,939012120,1116408174,148958885,-1655814342,13159583,424436037,-528009388,-674547894,1137756855,-1569955416,1291889034,-1896198723,721110121,1609136448,766752946,-1754097185,1067768507,-597561719,-1766949663,-19100240,2106849497,-186292226,39134252,1800009534,-2088369226,1045978531,217301441,761174967,2016250176,-1292433945,-1711775147,-1698095764,-441919109,1011625414,-976877388,-1648938561,1369608567,-996097994,-31982351,-128138554,-1039939122,-1469344149,694089638,-1932513209,262975507,1476171970,1498460736,1594683748,-966241256,1061019075,749826993,55681694,-1689135826,-1658203680,-1859717280,15323115,107975216,-1969456267,243728851,1223328526,-281416199,148703784,-1161363277,2112492278,1243955669,1516516713,206525303,2132619430,-2058943623,944796231,915665398,587603948,-1192311649,148570621,1835233650,67174270,-933883152,-23925163,-1139326022,196568980,-857199881,-1068807163,997370921,794375837,-1195146553,-157517402,-299364652,-172210027,1839499652,-1496223658,1562136607,417483408,261945058,-1104581504,862390018,1504696076,-1455664101,1125562025,-1097334190,-1355733588,1071757696,-1737461577,1526905990,-1118391604,-599080288,429188574,369288691,-293756225,-1333291586,1571917605,-239157731,-1626252510,336260548,635689071,923366967,89672188,1263039836,2067217154,659201231,331577148,405381708,-924263689,366623565,-31822382,-358081564,-306390952,-140687552,-1081639483,913252562,1758718465,-1972516198,182061124,1646440497,-1108968432,-3061930,1616647555,21024045,-940288683,1403411832,-1887836719,1775694160,-667076228,1224768513,-1149341470,-641723623,212383796,-614350316,-709222351,-1037043520,1004355182,-611074327,112995919,-1373444162,-1450604408,278700188,508231250,1855138375,-1696833595,-439738744,-1078238176,-1658509454,2026994250,-335253550,-1397321630,-1314064308,-246242465,-591961149,2055608096,602244151,-915062543,-1462195203,-1058643051,-1262220233,138493301,-338789335,-1744907975,-1086167703,1917299906,-356102846,-296952312,-186237355,-2105967357,-1173491539,2115115065,-648807070,-1346348005,735473565,525565282,-2060266018,-522565890,-1558424776,-1612370747,-1342149229,-2038397181,502458620,-1903188770,-860548468,-887925594,-1426435902,200814710,-1296750304,715365449,1590772411,-157204064,914725172,1517796976,985459256,146872442,-742474089,-78537705,2059302673,-1757657460,-938696124,594126345,-2050413530,279557358,624894649,-1564417859,-1514189396,-680041803,1600507126,-1838520712,-243361723,-2108687828,-1788302707,-594469167,1873885340,-997086285,-1782568298,1600196092,-2042538520,-1297730572,-810489779,-1092496150,1488922732,375245323,-1149838779,2083477593,222178179,-958730836,1800450818,-143130089,-1807614589,-1721543589,-276921892,-1208490074,-51703157,-1079069582,-1302069951,600096049,1633151597,410459329,-1841272923,1224852480,-1723212253,1603811484,-911779255,1638217321,602522206,900803445,-498154174,-188006186,1759514919,299958344,-2048655382,-2033931619,1138077882,-1008766117,-1970342885,-937448132,478319855,-1437060631,1237290925,-1357673166,-251542423,1391095863,269099020,676352642,-1948350424,1529717610,1197381708,-803996465,1560108115,5309433,-804964832,971783274,-77442090,2134180893,1688133685,1121925011,-1169390286,1773218092,1719119021,535697561,-105214763,797268961,-2086230557,-699183174,563017714,-1827712909,149176029,322833983,-1990792678,277948035,924577857,1829350621,935868846,-1024718673,-645391640,-1850443231,698084464,-1456828334,902306170,-1334635852,1789547354,-1079606708,2007830675,-1628240087,-1929452853,-352164258,-25917290,-1439942070,-1260322448,325660049,-203830812,1155350318,-8774352,-88136442,872683287,1853357364,1608458658,1275912973,1092730257,641862640,1559049636,65875715,-471814615,245182681,721125322,203006894,-1337208738,-1612785755,-2057258842,-1386654094,-1013355834,351962973,1072708572,-137580003,2105184762,497420807,861548674,-1563184405,-442612296,217975945,1778623857,-1959449678,897798960,1817121321,-911460252,745363481,-1117896821,-62249066,-595504611,-49909460,-1647296523,630607979,2052461983,-497620984,2104983761,304664797,1580205477,368252522,1999974157,1215925724,-1153245564,786942746,-1684819769,1929790344,1723793224,-1359912741,2059458743,798773582,-1905838219,1035449268,-64527692,-738416284,-1844023329,-306953390,-468235518,-2058930446,2088551482,744077867,1367959190,-1582007801,2036014331,515419500,247219662,1102593617,1107743660,-608496914,-514826423,1375380200,-382157736,-1182239668,-948041953,-1423278817,-550304778,2073501983,1743537437,-1231169119,1194850546,-1405066902,-132450130,-441021675,2003607002,1092773765,-258077960,1513528090,-1336673620,-160007974,-559258980,-151075617,-1035892790,-790556313,-161754735,-270877042,49788517,-1355948703,-1148144884,-916011852,1370286415,-848346305,-1605115924,840482572,215535338,729572183,1783579273,248261634,-1902030395,474030785,-1213563638,619051412,-269246286,919155280,1664107769,-1501616292,-1605386813,1928219371,729643013,428399202,-609075117,-357749682,968953065,105308229,921303594,451443268,-44893737,2144325269,1364556852,2137643163,1869085892,261520319,-933979704,-17792610,1969335151,-1771470353,-198751594,-1758226720,1159462483,-514642085,1340114071,94127864,-1886930069,-1216026071,-560228876,183850512,452561622,997997620,1067692005,415199848,976083702,-547847889,-360934475,2137491573,-231151722,-439408954,907591479,-74453728,-1486035478,1090160125,486899986,2011052788,-173006037,-1790848771,-1081285666,899118567,-208983327,-1744934279,233053040,1239679329,1798819247,-530899393,863596176,-1514830458,-1951288234,-866373975,459256536,-1773014463,-777827704,774444602,-1367148738,2031719573,-1150049775,-1247869405,72398514,-1097602355,1620580630,1984691867,1472365859,623746207,-1719176024,1892903146,688565377,-1069896148,753358281,1665679153,186264913,1841558990,-1862738195,-1181951110,1512196341,292939627,-1044406830); -/*FRC*/Random.twister.import_mti(66); void (makeScript(14)); -/*FRC*/count=4; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(75); void (makeScript(14)); -/*FRC*/count=5; tryItOut("print(uneval(t0));"); -/*FRC*/Random.twister.import_mti(84); void (makeScript(14)); -/*FRC*/count=6; tryItOut("\"use strict\"; \"use asm\"; /*ADP-3*/Object.defineProperty(a1, 0, { configurable: false, enumerable: false, writable: false, value: g2.o1 });"); -/*FRC*/Random.twister.import_mti(113); void (makeScript(14)); -/*FRC*/count=7; tryItOut("t0 = t0.subarray(o0.v0);"); -/*FRC*/Random.twister.import_mti(133); void (makeScript(14)); -/*FRC*/count=8; tryItOut("\"use strict\"; t1 + '';"); -/*FRC*/Random.twister.import_mti(142); void (makeScript(14)); -/*FRC*/count=9; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return Math.fround(Math.asinh(( + ( - (( ! (y | 0)) | 0))))); }); testMathyFunction(mathy0, [0x100000000, -0x07fffffff, 1/0, -0x0ffffffff, -Number.MAX_VALUE, -1/0, 0/0, 0x100000001, -Number.MIN_VALUE, 0x080000000, -0x100000000, 0x080000001, 42, -0x080000001, -0, 0x0ffffffff, Math.PI, 0x100000001, 0x07fffffff, 1, Number.MAX_VALUE, Number.MIN_VALUE, -0x080000000, 0]); "); -/*FRC*/Random.twister.import_mti(213); void (makeScript(14)); -/*FRC*/count=10; tryItOut("\"use strict\"; for (var v of o0) { try { for (var v of t2) { o2.m1.has(i2); } } catch(e0) { } v1 = a1.length; }"); -/*FRC*/Random.twister.import_mti(247); void (makeScript(14)); -/*FRC*/count=11; tryItOut("\"use strict\"; v0 = t1.length;"); -/*FRC*/Random.twister.import_mti(260); void (makeScript(14)); -/*FRC*/count=12; tryItOut(" /x/ ;function eval(x, x, ...c)\"use asm\"; function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var i2 = 0;\n var d3 = -1048577.0;\n return +((d3));\n }\n return f;print(window);"); -/*FRC*/Random.twister.import_mti(374); void (makeScript(14)); -/*FRC*/count=13; tryItOut("mathy4 = (function(x, y) { return Math.fround(Math.hypot(( ~ (Math.max((Math.atan2(0x080000000, ( ~ 1)) >>> 0), ((Math.abs((Math.fround((y & Math.min(x, 1/0))) >>> 0)) >>> 0) >>> 0)) >>> 0)), ( + Math.abs(( + mathy0(0x080000000, ( + Math.acos(x)))))))); }); testMathyFunction(mathy4, [42, 0x100000001, 1/0, 0x080000001, 0/0, -0x080000001, 0x0ffffffff, 0x080000000, -Number.MAX_VALUE, -0x0ffffffff, -1/0, Math.PI, -0x07fffffff, 0, 1, -0, -0x100000000, 0x100000000, -0x080000000, -Number.MIN_VALUE, 0x100000001, Number.MIN_VALUE, Number.MAX_VALUE, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(568); void (makeScript(14)); -/*FRC*/count=14; tryItOut("\"use strict\"; f0.valueOf = (function(j) { if (j) { try { Array.prototype.unshift.call(a2, i2); } catch(e0) { } try { a2.forEach((function(j) { if (j) { v2 = (a2 instanceof this.s2); } else { try { t2.set(g0.a1, ({valueOf: function() { print(x);return 7; }})); } catch(e0) { } t1 = t0.subarray(({valueOf: function() { i2 = a0[13];return 10; }}), 9); } })); } catch(e1) { } try { a2 = this.a1.filter(f2); } catch(e2) { } v0 = Array.prototype.reduce, reduceRight.call(a2, (function() { try { v0 = g2.eval(\"/* no regression tests found */\"); } catch(e0) { } a2.reverse(); throw e1; }), i1, (x > (4277) in null += intern(-23))); } else { try { v2 = g1.eval(\"a0.shift();\"); } catch(e0) { } t1.valueOf = (function() { try { Array.prototype.forEach.call(a0, (function(j) { if (j) { try { i1.toSource = (function() { try { s1.valueOf = new RegExp(\"(?=(?=$){1,})[\\u00dcS-\\u2865\\\\r-\\ufccd\\\\d]{1,5}*?(?![^]|\\\\x98.*?){1,}|(?![^])*|\\\\cO*?|.{2,}\", \"y\"); } catch(e0) { } try { a2 = m2.get(p2); } catch(e1) { } try { for (var v of g0) { g2.a1.splice(-2, ({valueOf: function() { a0 = []; o0 = {}; s0 = ''; r0 = /x/; g0 = this; f0 = function(){}; m0 = new WeakMap; e0 = new Set; v0 = null; b0 = new ArrayBuffer(64); t0 = new Uint8ClampedArray; a1 = []; o1 = {}; s1 = ''; r1 = /x/; g1 = this; f1 = function(){}; m1 = new WeakMap; e1 = new Set; v1 = null; b1 = new ArrayBuffer(64); t1 = new Uint8ClampedArray; a2 = []; o2 = {}; s2 = ''; r2 = /x/; g2 = this; f2 = function(){}; m2 = new WeakMap; e2 = new Set; v2 = null; b2 = new ArrayBuffer(64); t2 = new Uint8ClampedArray; return 19; }}), e0); } } catch(e2) { } /*ODP-3*/Object.defineProperty(e2, new String(\"12\"), { configurable: [,,z1], enumerable: \u3056, writable: (x % 6 != 2), value: g1 }); return h0; }); } catch(e0) { } try { this.a0.shift(); } catch(e1) { } m1 = new Map(m0); } else { try { /*ADP-2*/Object.defineProperty(a1, ({valueOf: function() { for (var p in o1.t2) { try { t1.__proto__ = v0; } catch(e0) { } try { print(uneval(b0)); } catch(e1) { } try { a1.shift(o2.g0.t1, g0.o2.f0); } catch(e2) { } b0.__proto__ = i1; }return 18; }}), { configurable: false, enumerable: (x % 4 != 3), get: (function() { try { e2.has(a0); } catch(e0) { } try { this.h1.iterate = f0; } catch(e1) { } this.v2 = evaluate(\"function f2(v0) { yield /x/ } \", ({ global: g1, fileName: null, lineNumber: 42, newContext: false, isRunOnce: (x % 14 != 2), noScriptRval: true, catchTermination: (x % 72 == 5), saveFrameChain: false, elementProperty: s2, sourcePolicy: 'NO_SOURCE' })); return g0; }), set: (function(j) { f0(j); }) }); } catch(e0) { } try { o2.e2.has(Math.log1p([1])); } catch(e1) { } h0.toString = (function() { ; return b1; }); } })); } catch(e0) { } try { this.o2.toString = (function() { g2.g1.h0.keys = f2; return t0; }); } catch(e1) { } o1.t0 = new Int8Array(t1); return m1; }); } });"); -/*FRC*/Random.twister.import_mta(-1609623406,-1816006741,1525127882,-435062879,112673345,-1425326761,-1216899178,632794832,1324997219,402394703,-301867953,1048226808,23769868,252081618,1624915572,-503095224,-102233389,106197084,-1916687040,1611175375,-1525594154,1559383167,1376949213,1183754743,-1539188959,-1146559207,-196163314,-1851141322,-2091221404,-1994873972,128783934,1892984941,-105241525,-1860939296,-599969506,-1546618349,2061927116,1349950285,763750951,-1762816206,668133249,235721309,1229463752,-914652237,1164592865,-791881967,-1959550581,-1065090612,143797799,-1494764924,-107209883,-125509722,656381457,1822713044,663418716,-1190588146,-1523100586,-340431433,76662717,1489433741,-1866159092,-255328138,201644273,1045441348,-1155097340,-1716969851,26177030,25109791,1712411190,-693285480,263189361,-1510065286,-1275052128,858587050,-1411960753,-431377560,513519391,403869800,1904681466,381997809,-914715584,-1654368954,527412193,549839645,-982444305,629459340,-1147304051,-2112144990,-1758593258,-483921516,-636240112,-492885850,890929427,-1013078999,-152237284,113465819,779156379,265832819,-319696413,1530521531,-596029382,745223579,-432694815,-1805966924,-2109963180,9969874,-688615268,-1017637736,-468368061,310762686,1476068120,-1642859521,425803189,-1202538698,-2040228544,837334272,-372791791,-1615119344,1956906283,-983942678,1515803570,-882579050,-1315345545,-300400607,695785728,720613127,609677725,1077097581,-1306414641,-1170506586,2027618258,1828731597,-865941706,870825489,1853356989,-1451972654,-287737737,1237071396,2147020990,1168830986,-674382153,-878179739,-647013810,-294773349,-1120704178,-1809256595,2082286321,1949466415,1791482698,-1169075239,-373208236,-446786193,1065666859,357122098,254082950,899963769,-1396473907,359298597,1886343369,1416035287,-252291956,1200061251,-797531510,1191089296,1139979873,1253190952,1123121286,-932603063,243462760,-971900457,-703311867,1119750381,-1261455233,1515091584,-1429387605,-779722909,-214685218,2036700246,1628914138,-1925141871,230351515,-518728597,-726415251,-1181286769,1007173231,1112322634,-350570633,2070011571,-1591920814,-977052021,-580832585,-1589666764,1154059855,388527339,1092037151,-1522108745,-227928134,306007024,876752108,-1491332118,2011649035,196672513,-1106755932,-988269608,1228325972,1538269330,127473025,-585084780,1859488190,1441446861,1943339879,325086982,-640037958,851339922,-1035699304,1880363915,1133499954,-1666116425,588473597,-1176064182,-889525249,1819667654,-119958005,1210709569,-1819615354,1938201750,-1253291134,627340129,580117294,1888184837,957828375,304450706,559248753,-1307534794,-95430796,-1917023777,1145993985,-507861244,1432321703,664084745,781614737,894936960,2102725491,96129643,1821575059,-897243596,874767439,1259124569,679341354,-1529597873,-2087912850,-1210590175,1841110632,-1092874696,-1980022894,750277448,-113179168,-1692464451,1104986004,-711308001,95608693,578364459,-531474419,-281834740,-627814694,1259102606,-1342173691,551438753,-895442989,1048836676,1605235033,168780467,682859728,352147419,-2044882853,-192888704,592246884,-281051846,234909794,-146681286,823245083,-1885480698,-1711442537,510509199,1206089299,-1963625836,-10308703,964589748,-932308274,1470473386,1598581234,-683302587,314060570,2130855543,-1991936618,1403465385,-1939957784,-2108024853,-1331843116,-542581404,1594795987,1774219696,-1264619898,1297053084,-905067923,1143825479,-1953821057,711832152,684806120,1020763783,58079250,1961361500,1690953773,-392388660,843576175,-197709011,-928037556,1543517588,1796041917,-1093597793,2013906045,814618256,-501558489,-1442495342,400806830,-2025243324,229101980,-1016767925,-486362142,419998423,-862320747,-374756613,626442629,-734367271,1160845160,-809923619,1137743310,-1048168590,1990192846,-1736068062,402660600,-412121991,-1857689312,1883671351,1575387362,-2069105295,888325275,346233748,1781781772,-451779106,-274098117,771084627,1373483521,-1499923182,2716233,1560177346,1745136542,119369447,1971207567,-929244420,1339275068,-1275333139,511312098,1341132894,-1612474033,1182122218,-489853935,-1065625800,-1558370198,-1116966999,-1282657618,1647984947,647552100,1025415163,-43641694,877699300,1566944593,-1556474227,1502064646,980350460,1127824016,-69296704,817796807,-847267907,-1636790427,1062380388,-965233055,-256213007,-949403132,-1097618977,-509118739,-1096038209,1802160638,-1350802722,-1869143334,451608193,-960031023,1907197612,1641792791,1983213186,1045695538,1360030751,1127944038,774569616,1635715774,-1714702561,1850067219,-937928411,-1257861697,-1500633895,-73285523,756256206,-944276787,272242523,1521505950,1688229841,-1773270299,-1585523402,-1042605786,1001313015,-1003252678,-2009763070,-742357552,1378520421,-1454889297,-1792474283,-40976423,-963616575,-773547523,-1115793490,1274776110,-1855726379,791856470,-1116280109,-242372463,1684069938,965369832,-443737125,881825183,-43887899,-647741572,-807698801,-77759177,1274227950,-177416187,40614857,571293071,820031064,577017851,-861009918,2013707134,-338960485,-103534037,-1214166683,-1378985093,-528867991,-103813255,-1721161617,615448452,952628876,1327803763,668153827,-317684381,273344680,-1097824289,-334427155,-2113077692,1602183896,1761202961,-1810440641,-1749677472,-1071050623,309053351,1849160906,1560787359,613027469,-33445786,-18291577,1303632682,-1400798375,19551557,683023314,1266182490,977354195,-1530620877,-1559860160,-608065095,-1783011661,125728983,-1157224706,-235416125,1125512410,562014071,-2136977989,1756323451,-2093099683,-2027461734,867471160,-945096289,860202354,-389394963,421032394,1153961160,481328383,-42540235,-1100251418,327056859,-1105672586,-1969993560,1223397391,808087637,-170782671,422349512,-518400605,1253215668,627604995,-657638199,1377381637,-1200782742,769021278,316144171,-1351036699,-1611281340,1498673414,1398319030,48546060,49210713,1979368286,661010247,1948753304,1214964924,-1326557883,521938166,-110669836,-570464998,-295013687,1405104456,-446270674,676861204,-2145913480,-1048626784,2001453979,1878795986,-2038837928,-1823723323,933456765,-1293475283,496712265,1326444373,1652259843,-107437630,-366914051,-1548428727,1630256945,-331028145,1170016359,1368295411,1548594278,508839897,157797141,-822840337,-978918437,-303812383,-1832083707,-473406686,451458317,-1613947984,-746983668,910529468,-1149776567,581102288,-1836497537,1968529095,-913774109,851124878,344213712,-1950728966,884783274,-1458952071,1621500001,-1182388121,2037847263,-2051138020,1412213180,1408078324,-1246791857,-401730742,1286503130,1021573522,1753269904,556057753,1001768098,-1186229878,1263367275,-1158496182,-1635213352,-1487440346,-1509507497,1167745581,1950721268,-1456670895,-50329719,1461251797,175392982,-1577039376,-1501611462,-816119023,-968500495,1894860403,-954718966,-408934494,588103936,237243204,198191293,2061844679,1919691208,-488738828,495355010,5240619,-276673526,-1802668246,-1921339989,973625449,-1765762408); -/*FRC*/Random.twister.import_mti(102); void (makeScript(14)); -/*FRC*/count=15; tryItOut("e2.has(b1);"); -/*FRC*/Random.twister.import_mti(115); void (makeScript(14)); -/*FRC*/count=16; tryItOut("(new XPCSafeJSObjectWrapper(allocationMarker()));"); -/*FRC*/Random.twister.import_mti(149); void (makeScript(14)); -/*FRC*/count=17; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return ( - Math.pow((Math.fround(y) !== 0x0ffffffff), ((Math.expm1(Math.atan2(( + Math.ceil(1)), 0/0)) | 0) | 0))); }); testMathyFunction(mathy0, [Number.MIN_VALUE, 0x080000000, -0, -0x080000000, 0x07fffffff, 42, -0x100000000, -Number.MAX_VALUE, 0x080000001, Math.PI, -Number.MIN_VALUE, 0/0, -1/0, 0x0ffffffff, 1/0, Number.MAX_VALUE, 0, -0x07fffffff, 1, -0x080000001, 0x100000001, 0x100000001, -0x0ffffffff, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(267); void (makeScript(14)); -/*FRC*/count=18; tryItOut("Object.prototype.unwatch.call(g2, \"\\u3056\");"); -/*FRC*/Random.twister.import_mti(282); void (makeScript(14)); -/*FRC*/count=19; tryItOut("m1.delete(e0);"); -/*FRC*/Random.twister.import_mti(295); void (makeScript(14)); -/*FRC*/count=20; tryItOut("mathy3 = (function(x, y) { return mathy1(( ! Math.hypot(Math.imul(( ! x), Math.fround(( ~ Math.fround((Math.fround(x) & Math.fround(Math.pow(x, x))))))), (( + ( ! Math.tan(x))) | 0))), (mathy2(((Math.fround(Math.min(Math.fround(Math.fround(( ! Math.fround(x)))), (Math.PI >>> 0))) ** ( - mathy0(Math.imul(y, y), y))) | 0), ( - ((x <= -0x100000000) * ( + x)))) | 0)); }); "); -/*FRC*/Random.twister.import_mti(581); void (makeScript(14)); -/*FRC*/count=21; tryItOut("v0 = o2.t0.BYTES_PER_ELEMENT;"); -/*FRC*/Random.twister.import_mti(597); void (makeScript(14)); -/*FRC*/count=22; tryItOut("e1 + g2;"); -/*FRC*/Random.twister.import_mti(609); void (makeScript(14)); -/*FRC*/count=23; tryItOut("\"use strict\"; v0 = Array.prototype.some.apply(g1.a0, [(function() { try { t1 = this.t0.subarray(({valueOf: function() { e0 + '';return 13; }})); } catch(e0) { } try { g1.g0 = x; } catch(e1) { } o2.toString = (function() { try { t0 = this.t1; } catch(e0) { } (void schedulegc(g2)); return o0.s2; }); return h1; }), v2, e2]);"); -/*FRC*/Random.twister.import_mta(-1589263962,212338802,-600480371,-469295667,-576896405,411092141,2096179704,-552904880,188547303,-1068656661,-1759179559,-1246505927,-1592975824,-875765929,470957546,575393659,1393569653,1548779582,-1918063127,-2067355378,1443840982,1910169623,-2115946797,1327222645,1290383697,-1444421289,452879614,-387638883,-777694573,-1101515578,1743946792,1949383431,-168525986,635769505,1501778179,1380025392,205854634,2118645085,1863719339,-211051273,2072232490,271287803,1087841251,584690899,2125833688,667688237,733031432,674070473,286810763,-942964510,1285734795,-387716052,-84133272,1807990992,-145795300,-1420847104,1534283617,1989019770,1427232752,-240273025,-519231404,-73129181,670032686,1387783153,-233895810,-1378405792,-1979856136,-1919406396,-951603935,1557378851,1300266853,855231681,-847207958,458564248,-1290942155,-1003577097,1648278782,1707354466,-1226778838,-625152442,-1336226268,-1693663739,636207624,-1164284179,2054455060,-809625021,2068619522,-279811144,-761949046,-1228376527,-453578016,-990148479,62932021,-1971236787,-1719867160,-1353749915,507828701,-941685163,2007602783,-1457796217,-58088150,1840809392,2036872616,-1445720121,1498702243,1873953926,2099017395,376762699,-148270919,948173911,672763734,1596745389,1422052244,1930967797,-1389999439,-1261967073,-1362867285,-1444397058,130376438,-1243507440,2007718350,2041153294,-1009597039,1181456043,587839417,349570133,-532489233,-750727282,1610186591,2122554032,-630034713,22500572,-1260588465,-430331459,-1537997140,-243783662,-1648798490,-503112379,-859894836,-517054772,431670979,1156560947,1848134506,-1612280569,-1537800974,-1996881035,627589648,-1506812576,-1283231154,-972585081,-163790815,-1983562977,1759501338,-32842239,1778108574,752735600,-1298778884,1299968500,-158939821,1777708469,-1501126376,913249948,1779990877,1980078080,-520096433,-862155614,804315774,-1534518762,-1595344583,1842316141,724458405,-1255473316,-699337207,-1362298534,1665325585,214911528,-1254480952,36733539,-1960006329,1416625512,-1656856000,1515945104,-1520046087,2123014031,1481723386,691795320,-1332414918,1130564189,1313237205,532036302,473019584,-946893206,-98808774,-1733828279,-1340190938,-1065444777,39047571,-1596729796,-1928948179,1168927996,986869896,1520336255,382319896,-843606661,-791144512,-841165622,618946716,-714437329,360896259,1874408061,-805966478,1545446318,-1639509949,-964552082,-1039173606,803463261,-1669328327,-1302052250,1855946349,514566868,1807512289,-1523872527,312346613,-1656219415,-189144096,548306344,1568281591,-1341378511,-1377497681,1505129433,-317334652,1413433356,25725366,30851650,14525280,-267219528,-258947991,1686242133,1064432738,793678247,-781775721,-1146091380,-1180821871,-61793181,2031227684,1320546065,944259709,1110553923,-88586001,-1071166492,-1913089606,976698981,-1232476597,1577319223,-1095159751,-318386077,1792999751,119331810,-940266153,774217787,-1378799509,-257765926,634929590,1628385479,465683866,-299979146,973867256,-941933284,1332377817,-167154800,-1093227179,1793878960,-1262877153,-1313385222,1382883209,1086201529,-262914433,195230138,-750582479,998004282,1812802643,582573320,2104608920,-511032169,1945415984,-1280819457,-1391295195,-986045133,-1871253130,139188183,-534936692,-1152180237,190751108,-1923125197,2101545295,-1050089771,-2064249847,365865103,1563271795,990855900,800397888,-1455260042,-1568073159,-567218921,-1629869154,707649738,-1886767254,-1540199984,477086105,609279489,-2131857725,-786940963,-68135515,-1150818198,1279345393,-1228786132,-657953541,1215886433,1117502097,-422832428,-1832494331,830026148,-95565780,1437937674,-998532873,830111377,295818877,-1928790821,-1204527100,-970094915,1141402213,-1829260866,-592982859,528809223,-1465875334,-1765680546,406906862,1398175793,1399766204,415417832,-643348458,-444285407,1441537115,-2143876134,850752921,-994791324,-1078978342,1119007560,1260434913,755939667,-1986408739,-1829773722,127564508,962515476,-46138641,1811622544,-469394148,2043003135,622410146,-751490607,1722606484,-345438499,-696246211,188754078,-2126906064,1691421979,-2129414832,1211388662,-2091827400,938365501,2012421441,-1222939968,259913815,467355713,-66613998,70849593,1318206494,-1694558174,-1796062751,1229144402,-1008365343,-1465109726,-1821720975,1688650641,315793478,1286975164,-2002771310,-986578918,-265391444,-2084336908,-1336357760,-1790275152,-618480179,1740337939,1895093641,444842638,353976379,-2100622863,-1909438435,-914690032,525107082,1121934754,467285344,-2054838633,-1747064525,1694955793,-378838747,1588958272,-1877680605,1102954256,671308136,-494780349,-131183094,-1647518347,-398749334,-597041800,1326010453,2094807123,55597006,-670726617,-591570744,-637661746,811822138,-1879084517,1934616393,1791588638,-1074992061,-886534999,69293736,1932818447,1544473550,-2025753237,1248792956,-987101173,-1487216074,155711735,-998830257,213555042,-73123325,-218820611,946279926,648640094,1243248170,1061080804,1784229725,-426684299,115080696,-477722173,-2088990480,1855806026,832915451,291195434,-495556155,-1835692395,1496944218,1208634060,-1945479375,-1086151610,1214034762,-1089310768,-1959270036,-1352838898,-1204291092,1993357145,-1954400644,2121763648,1089544395,2081641920,682874700,-230354015,88941820,-1456521176,2041451892,-1883034003,-914619686,-977756964,643533176,-350127057,-1249947882,1863613494,1247344350,-1694169964,1764621909,-508167295,1453321666,857524564,-34495555,2003221727,-316547419,-1003807864,8768170,-1837717762,2001090676,-682420454,1598908269,217696532,-1345115124,67854661,860797193,433557558,-46437345,1879644653,-672231399,1474821946,1419200201,66358019,611333377,692520967,-540793392,-60014483,1114373200,1063449684,439117041,-934558721,1317448429,622387149,-128978550,-64273735,-306694820,-1690440626,65775774,851046253,-1379852714,-1386586158,347916297,-984457216,32646003,-1525763780,-1823362886,-2034472857,1599043434,-783009307,379471664,-512391705,1242554475,1972361533,384034710,-725457847,-787234463,-1689269899,1506457976,2076135832,-1241591680,140952646,-1969098496,-1025467560,822688559,742988912,-1723056262,-964585267,-1179833813,212419852,-655945258,-1098182139,1994311735,167482146,-401911666,-768935594,256697579,1658144157,-463520715,1197092053,1185883395,1772410495,-2027253144,1552429412,1904095854,-2105179704,1631053914,79522099,276502970,-786994651,2037937226,-420640355,1223726880,1325247388,2001790214,68446782,2075426441,-2108566992,-588388188,-2034207,32341582,-839690778,-98907257,1360932871,-1251863364,2027757405,-550935147,1595601582,379243215,-1650706955,-1736505359,-1670720139,124787994,-788888533,-35275319,-1942578040,-1925596998,-2099039456,-61605030,243485351,16986194,1603410150,-910129857,1784115382,-1284956939,580223751,-1960828505,-524636768,891298577,364946916,-799733187,752497198,-66841346,-1052687018,-855586635,695699402,-1567901771,-1855715752,-1207003879,-1258796702,300126146,1169924328); -/*FRC*/Random.twister.import_mti(66); void (makeScript(14)); -/*FRC*/count=24; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return (mathy0(Math.fround(( ~ Math.fround((x ? Number.MIN_VALUE : -Number.MAX_VALUE)))), ((0x0ffffffff | 0) >>> (Math.imul(x, -0) | 0))) || Math.fround(Math.imul(( + (( + Math.fround((( + ( + Math.tan(( + x)))) % (mathy1(Math.tanh(x), x) | 0)))) <= Math.pow(Math.log10(-0), ( + (( + x) - ( + 1/0)))))), Math.fround((Math.hypot((((0x100000001 >>> 0) != (y >>> 0)) >>> 0), ( ! x)) >> x))))); }); "); -/*FRC*/Random.twister.import_mti(354); void (makeScript(14)); -/*FRC*/count=25; tryItOut("mathy3 = (function(x, y) { return mathy0(Math.atan(( + (Math.fround((Math.fround((x >>> 0)) >>> 0)) << x))), Math.max((Math.abs(( + Math.imul(Math.fround(x), y))) ** Math.atan2(Math.atan2((y && 0x080000000), (x >>> 0)), ( + Math.exp(( + (((Math.log2(-0) | 0) % (x | 0)) | 0)))))), ( ! (Math.ceil((-0x07fffffff >>> 0)) >>> 0)))); }); "); -/*FRC*/Random.twister.import_mti(582); void (makeScript(14)); -/*FRC*/count=26; tryItOut("mathy3 = (function(x, y) { return Math.atan2(( ~ ((mathy2((x >>> 0), (( - mathy1(0x080000001, x)) >>> 0)) >>> 0) != (( ~ Math.min(0, y)) | 0))), (( + (Math.atan2((Math.fround(0x080000001) > Math.fround(y)), (y | 0)) ? (y || x) : (Math.acosh(Math.fround(( ! Math.fround(Math.max(y, -0x100000000))))) | 0))) | 0)); }); testMathyFunction(mathy3, [0x100000001, Number.MAX_VALUE, 0, -0x07fffffff, Math.PI, 1, 0x100000000, 1/0, -0, 0x07fffffff, -0x0ffffffff, 0x080000001, 0x0ffffffff, 0x080000000, -0x080000001, -Number.MIN_VALUE, -Number.MAX_VALUE, -0x080000000, -0x100000000, -1/0, Number.MIN_VALUE, 42, 0x100000001, 0/0]); "); -/*FRC*/Random.twister.import_mta(-996209208,958548484,577883689,-393580960,-1751675093,631415196,-1442837185,1263262111,-601324997,1005672342,-1654337917,-1064152773,-1118609308,1711949725,1789859617,1219422575,-1276863126,2011526977,-1643476481,604959166,-583403385,-1700234120,645976386,1673605311,1409633722,2099011141,579161610,-2104099105,904225661,-870994345,1748541941,1054566663,-1194442368,-372780144,-1369327757,1280154281,1661026938,165240380,-1443199405,-1179193766,-1649941184,1120344877,2056350027,121489178,-1404581865,1606606894,-1306476065,-69357881,-982216700,-108909086,-671645739,-33385020,461158946,167963765,1157400106,382172842,-1445819736,1941005730,-371972436,-57883877,1536689416,464208605,255930103,-1305449133,-105461698,-53928816,807149627,1898532915,-1994989554,-12996698,-60357761,242452409,-1074822419,-2050789191,1378918540,145836811,-1121895716,-770938545,-1461261313,2121723498,1068471282,-410341870,-346948705,929220948,634567018,344698580,-702755235,1070933895,-244301165,-1886725427,-1944860608,902384736,1482883953,1278983902,1557766931,-1586699195,1840522479,-1114563427,-2122540024,-778568039,1926701981,268084189,-1808455926,144305169,1204829102,1885871007,-975882432,-167035318,-960641545,813494954,-1613132914,-173719526,1558769096,-839882281,-66473980,-733548037,-1665147904,224664470,1072174405,-2087035539,-1056997058,1431955275,1627428804,-1956133987,-1579524712,82363262,-990234603,-498546823,-99373736,-1245469473,-442164398,272070978,1821903974,224752700,-1444401684,1480781123,159169434,743466381,85522011,-1019857880,1874659471,-435690284,229916457,199310081,-1496653571,-414518904,460401398,-748664793,954984516,-752882720,-240963296,-316419721,1619805970,-850342300,449294260,-1045689432,-667489537,-728425919,-469109465,-79167486,-1994558952,-1555557222,1507297693,1294497357,554986116,290935868,2078301044,1314283051,-1285079027,-35541149,-1743716762,-1827200127,1406866846,-120404883,-680472783,1675978158,1056798835,-730959524,617239848,2043663398,1765397622,-267503190,1679568168,-255504807,-344125603,430376275,894066711,1144082226,1589980512,-1149579556,1528485992,-1574485112,-1975405867,1318448476,1688979457,1079926759,-1945944469,-654580013,-1305693611,-527661683,946934504,-2040699338,1026574658,-1807748934,1751982274,1399914524,-332403026,436821601,-998024873,-1802245556,1285247696,487266649,-2080661353,1411882780,-616962795,1193128958,1978143517,306387735,-837513156,1641431322,-1561661075,1925973136,113818355,-1034787607,-458262602,-1504299290,-994768849,191183808,-856571081,352003051,-2104112538,-1756115984,625590461,-1435575153,1933745987,1030246608,-793188637,-2099497806,1312663863,216553200,1003635675,-1352094538,-1349593215,-814902024,-910741482,455481374,-1675715648,2037214255,-88352374,1618778527,-1479401646,-699855296,-1961553151,-1529780535,1830790705,-645770495,-811875418,-758495359,-255784507,925788522,-1852394115,-57829464,-440225259,1860280503,1054214407,-184778193,-1705283372,1662675443,2042867429,-1124954306,1917579970,789740487,119097939,1109327556,1116344644,1683374052,-1135390401,1734233490,-1547911463,-1267557164,459162353,2051301990,-1089803202,-802631120,-210908670,643159265,119103837,329481651,-964290071,1062203185,1989235317,-1139173124,1668158550,-675998653,-929721466,1382373077,752241470,1274634905,334767831,-1472917555,-1855828094,-1703109297,-22966945,-229888237,-2028299990,-1356599222,745527938,-393165855,1823109581,1915649057,-957979547,-1054727321,1228430049,691331066,615791761,68994097,1925058594,878093783,112150282,-2012701140,344401420,1644119813,-877233088,-696166325,2082771722,279234537,1310404651,785191839,-169553828,1866048231,31601870,-1333039829,-1499277885,-779782787,-1117007003,-1969375744,-2132836755,-1234250288,-104586514,1882933699,641369624,267849462,-732072938,1559090707,792609700,1613764904,-490535735,2087152401,-623506627,-54214539,-1039127378,-501784330,407349876,1668117949,-1749724623,-938384426,1344926847,-148273277,-1599775371,533626284,-1579595891,1537248557,501414156,165692674,-953134113,93400307,-1490281133,1846908691,620264725,-1354432170,275549793,2021436425,1940907383,628288639,141849316,530773579,-564107279,584229135,-1987939874,-663339075,-1727604747,-897957805,720886463,-782255396,-221262561,-530979730,-1714356209,-250983602,-492187168,33288157,126697109,-712145731,-75342486,-627932817,1125629804,551768271,1703713604,1174432439,-139830391,477964891,-641897796,-627190399,-131135942,-333759435,1072020747,-1988668059,378871302,-130348104,-1865357790,1880981916,1485627047,-1754650536,-834020554,1096263842,705012110,-1605814891,471622186,1521677199,388837444,-467722575,577432507,1016757788,-559327691,1823243536,-308323748,886207659,470840070,2053224892,651160302,322383013,244841168,224045180,-387140410,-1081958475,-945679675,2142268975,-758210051,-398328050,-42389896,-540530068,1198728243,-30089728,1484969100,-640928660,-1207761934,-1921421632,-920799964,-480987883,92449205,-2028820015,-889208324,1285354379,1981038963,-1473655038,794828454,1409046640,1264218568,-423914557,-1998914536,1624388619,-37719032,794387381,-553059421,-713425443,-35131118,-145913459,853670928,797681789,256021945,-316127745,-604359444,-1251984724,-2050015241,-123692371,464593473,-1449779914,-857434281,-43140903,-1581043621,-1371969426,-1454119805,-2138969660,1884298782,-1529596601,-884726997,1462855876,-711620646,1041165040,-1634198932,-1518315712,1742402504,1165301053,-548075102,1828025277,1701219705,1848260835,1744801603,-219930983,603567068,-1601418109,-1559051539,-260707945,262520953,252723844,-5457716,680268934,970565640,884756505,-1652886897,-566291946,-812013542,1735608485,-1686600255,-112032524,-1742232950,-90054356,-665649486,5064923,-242782501,580632601,1474384682,-562750291,80247100,-8347675,1766871705,-905607247,-1162717357,-657811489,1076500899,-1861863702,1139704638,-866796878,110199398,-798975384,1264557984,1742438918,-1052246310,929510410,361592578,635242077,350975798,1045124305,1076864530,2012145826,1428613243,-953980350,-1641279468,404830641,-1682490436,241719690,-1865024819,1347886049,-689308108,-1401101073,707844622,-1042188261,103603788,-548604316,417955642,226884358,723571656,120910139,658992608,-2092288167,-668283550,-1048888359,1903790375,1453421109,-1801385296,-597624629,-311503906,1401059713,-900829895,-2034544807,1528413919,-511804994,-19991190,1724031797,-482375186,1982946854,-2053783662,-683414250,-286734043,-1272176285,112078687,-1173072085,-89636131,390415768,875426938,-1884869452,-1641615577,302473464,-760416618,-460057634,-547330599,-1023274194,-379695342,1458590268,957167001,226891994,-79955469,150334157,812382776,1669895601,1475942740,155078523,271863521,94271481,-1171843453,-378569752,-608180178,1139669214,-1238041223,-1479341456,-1851069979,488703333,1430268984,-1883220592,-1656780911,1049470777,-2131843618,199653517,37650619,1203969440); -/*FRC*/Random.twister.import_mti(224); void (makeScript(14)); -/*FRC*/count=27; tryItOut("/*ADP-1*/Object.defineProperty(a0, v1, ({set: URIError.prototype.toString, enumerable: false}));"); -/*FRC*/Random.twister.import_mti(249); void (makeScript(14)); -/*FRC*/count=28; tryItOut("mathy3 = (function(x, y) { return ( + Math.acos(( + (Math.sinh(((( ~ ( - x)) ? (x >>> 0) : ((Math.min((x >>> 0), y) >>> 0) | 0)) >>> 0)) >>> 0)))); }); testMathyFunction(mathy3, [0x100000001, -Number.MIN_VALUE, -Number.MAX_VALUE, 1, -0x080000001, 0x0ffffffff, -0, -0x100000000, 1/0, 0/0, 42, Number.MAX_VALUE, -0x0ffffffff, Number.MIN_VALUE, Math.PI, 0, 0x080000001, 0x100000000, -0x07fffffff, 0x100000001, 0x07fffffff, -1/0, 0x080000000, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(372); void (makeScript(14)); -/*FRC*/count=29; tryItOut("\"use strict\"; Array.prototype.unshift.apply(g2.a2, [x, a1]);"); -/*FRC*/Random.twister.import_mti(398); void (makeScript(14)); -/*FRC*/count=30; tryItOut("\"use strict\"; (void schedulegc(g2));"); -/*FRC*/Random.twister.import_mti(407); void (makeScript(14)); -/*FRC*/count=31; tryItOut("for(let w of /*PTHR*/(function() { for (var i of w => { throw this; } ) { yield i; } })()) let(e, w, tcuxgb, e, e, fwtyhu, w, weiysc) ((function(){let(eval = undefined, urnzgz, w) { (this);}})());"); -/*FRC*/Random.twister.import_mti(587); void (makeScript(14)); -/*FRC*/count=32; tryItOut("\"use asm\"; g1.i0.next();"); -/*FRC*/Random.twister.import_mti(599); void (makeScript(14)); -/*FRC*/count=33; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(608); void (makeScript(14)); -/*FRC*/count=34; tryItOut("\"use strict\"; a0[18] = (b) = eval = /x/ ;"); -/*FRC*/Random.twister.import_mta(445730741,2140802114,674766187,192814582,-2008251057,1948758138,280387621,-1996927799,-728760658,-2127574632,24810490,-830908912,-1710222707,-187439640,708176944,-675572349,-1548901411,-1140304466,-229749430,-1417138506,401001907,1148016869,1291269681,141053286,-1692605983,-806620880,-185716064,778394429,-1949297825,-251358429,-66798112,984140334,1741997421,-1062235722,-227224073,-647227909,-1150406485,1247273267,594221314,-1675799715,271237703,1496918530,-598291999,-933728025,-1848267241,-660994884,1026184144,-625390608,-239568847,1005500945,-1672085513,1211954340,454782772,-394165527,1207913694,1660748839,-772702765,462032368,-1263367902,647394124,1919320690,376626108,-524111235,-2128932841,1363013117,504257377,1961223451,-110329579,-1999544738,-707080848,-239412354,-1984044016,918637948,-1293785942,674246646,-1688231271,145628885,-691345567,-693278205,-751608146,-827789360,1298365771,-175633212,-1145391050,-1966850386,-1034499601,1647711835,1794421437,-1979927171,-1818467334,1693076672,731982603,-2086827985,-792816994,-859056192,814197514,-348828372,634962813,-1612089488,-2019774894,1813118888,702750809,2110261844,-2131042502,1363760263,760175577,1947590049,100330216,1890741715,909471183,1315893268,-217152405,1640994338,-1315082216,-1806139257,-718836799,-1075803841,517675255,1650753349,-1204994515,-202830943,-1056496327,-1105161976,118259174,-1677624046,-1078077975,397167750,341410869,166520065,-933176582,-1865340034,1986404240,-1749775116,1461360072,964459724,36691883,1598036081,-790932398,1178638354,798083650,73713248,-899688375,-1188746494,-1635338345,1307454485,228012905,-950633362,156441689,-290676814,-419592060,-138911275,-336521163,683687608,-575263465,1887510069,603601812,1597954320,-1052995518,-1136297958,1117939520,-1897333719,-318108885,-1306955521,1001055882,262101797,448217178,1030334611,1485954491,646143159,1030878740,-2044570838,-45318017,2030119458,534643865,577817430,1278763487,-1400080393,159159371,-577137747,-900587695,1590018016,-1859018886,-681883179,1763936483,43573088,1833257457,-1774942470,701282799,-1482084283,-1759170839,106357852,-402285105,-387065318,897301496,-1423900716,1302714748,299978856,528387116,709681463,-1251555738,1440669991,1737822520,127524999,-1894946414,558721731,108793199,-1216050594,-324008672,1131919965,1987700617,-1844229238,584218135,-2088979354,1865132667,543367457,365446184,939144996,-1230986757,1841964520,-583146415,-156870696,122907191,-2035538542,-222749179,1489855486,-110316429,40992832,-1511973135,-1393611416,695400536,1087895566,1138808270,-132616478,-266363045,-1773312863,1708866816,-1069427775,-9635906,-938640024,519144383,-479743053,-453363921,-1341300737,-948552746,-241477215,-62848854,1312172158,716906870,-1386502923,1595816344,1665976902,1201592510,76280459,459886951,-1683176862,-333581684,23658556,493652445,1631583899,-166252788,-1092003230,429734946,924087679,1024296183,-383708933,1850122600,1956173691,-1245469206,1195404701,-1519177600,1188691419,189905889,-107643938,477059954,-393063422,1989763185,1212259544,344133700,302365390,-809697645,-710691878,1484405441,183070015,-1471702830,-777496737,775326035,-1236304566,-936559015,-790782725,1115859864,-1625826199,545974230,-1394843233,279915736,156670624,-1631945791,1764674787,1632139466,78631721,2121296573,1725209298,-832022138,2071004623,1260606016,-2124734652,-2137356478,2121502593,569731049,-310578300,1341361705,1109596506,2001773313,-691231214,-379275060,-235773830,-1331446420,280986062,1740500805,799368221,-908190935,2034860483,-384767520,-1026574352,-1792605015,-1266544554,569139130,166893378,1457756038,-948485643,2100891699,28825968,-1693413703,-595242568,-1280801588,1085551080,-1445633478,1828849447,848093539,303796309,1926419758,-1234765981,-1099548020,576270359,-1468028691,784536675,-905097730,1595292538,1200275168,644740572,-550992033,1980222877,-803035096,386129896,-2055318207,1884370398,-118444063,1794943460,1502295323,964763974,508600301,-1547541631,931987530,115342634,-439320255,186348276,-857856412,-1047285484,-1894758347,-570599198,1746656493,1001410892,-315527567,-2044267127,-1016314596,-1618290781,1486101653,782002396,-210151110,516077364,-45357667,562281953,-1124973643,190179066,-1085173952,-1324326283,1772439746,975651559,-4451111,889146394,685203306,-2006674421,1918793104,-285822926,1558345509,-773274365,340070677,-2022083696,620744241,712680845,1440718716,-342335866,1583827019,-1556263142,1786124717,-1798336986,-1764549458,-162555251,380488945,-381722700,1645581913,1654037711,1706832635,233741728,-2093590979,-1595894790,-374931120,594864113,230718590,1124246088,550510360,724993270,494724113,1005840372,657390918,-601946458,608491700,-2007622984,1186534480,-150587467,13770223,-1985987156,356200608,-1061817750,1297953763,174097128,-216507780,39393294,-324019018,1295409953,2043516576,1345439099,1277315943,959340062,1811658461,-266594661,155516794,899616260,762295261,-1647145472,-472660628,234870559,-87034984,-310881294,1438748435,-1944112439,-1992157812,-2094562970,79332866,-1434353900,-956803866,1052483166,549562799,-1771080911,-1095619768,499286951,-1854045344,-1875056802,2110671280,1265018127,-571456119,-1647958400,712275589,421133603,-1696200319,1047539693,1377918849,-1197451989,-1431969100,276982921,-919949291,1529456005,-477835923,1736399088,-37510794,1995718079,1274363254,-1458546060,-1314564268,1264392066,1157172379,-2034254154,-963931094,-2127255447,-551345896,467536196,-306767133,84512531,388310069,-2111885953,823437943,-44228762,910689505,1896956211,2006433982,1086659079,250179274,1290430016,1108769346,929412042,1831188786,1123454047,1159505248,1386203945,-94589937,-1250046257,-1124801630,-1683177686,1054661595,-389040379,-2027108342,-1499655599,1261610558,947029228,-2071046800,-582874163,-1057077153,-1960996467,-1614207268,-957660429,445006928,1829343001,-1038885257,-1465202058,467419217,303605482,-841020183,339743788,1223008987,-55144208,-591848055,1867096699,-773475469,-1957377731,-1557904084,1143757412,1622371351,482752302,1955732509,-1373321947,1403910729,1677998470,-1611206836,-287662830,1558903365,-283403436,-2074005805,1386179329,1304651501,-1647152326,-921356196,691686542,1394050840,829999433,18309526,-885404592,-206576615,-1064641301,-1137282501,1229911606,1424906744,1488332018,-1829989856,274225805,-1416473398,1999995455,1493864297,893478426,1201146218,-1422260421,365494305,-287333430,-1641160301,1005457295,-1331491180,-578179503,-572673801,1441938721,-1177249348,811505168,-792446362,-1395445443,575474111,-1097584757,925578023,-292470366,-1454211221,56882675,-1103201441,-336436708,582203823,505282725,-2017514817,-262609262,90236022,1861144152,-1882185573,1720479422,-1516730753,-934937023,1720324845,-559451345,855813142,978111994,-335903030,673457844,509565446,792163746,1609819932,-1274013997,-293477667,-2145780804,1241462145,933535685,322528405); -/*FRC*/Random.twister.import_mti(48); void (makeScript(14)); -/*FRC*/count=35; tryItOut("a1 = Array.prototype.filter.apply(a2, [g2.f0, this.e0, s2]);"); -/*FRC*/Random.twister.import_mti(81); void (makeScript(14)); -/*FRC*/count=36; tryItOut("testMathyFunction(mathy5, /*MARR*/[ /x/g , 033, 033, 033, 033, /x/g , '\\0' , '\\0' , '\\0' , 033, /x/g , '\\0' , /x/g , this, /x/g , 033, this, this, '\\0' , 033, /x/g , objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mti(162); void (makeScript(14)); -/*FRC*/count=37; tryItOut("mathy1 = (function(x, y) { return mathy0((mathy0((((Math.hypot(( + (( + mathy0(x, y)) | (0x100000001 >>> 0))), (0 << ( + ( - ( + x))))) | 0) ? (Math.atan(((Math.atan2(((x ^ (Math.log10((x | 0)) >>> 0)) | 0), (Math.round(Math.ceil(0x100000001)) >>> 0)) | 0) | 0)) | 0) : Math.fround(( + (( + ( - (x >>> 0))) >> ( + 0x07fffffff))))) | 0), (( - (( - (Math.fround(((y | 0) > (0x080000000 | 0))) >>> 0)) >>> 0)) >>> 0)) >>> 0), ( ! (Math.log10((x >>> 0)) >>> 0))); }); testMathyFunction(mathy1, [-1/0, 0x080000000, 0x100000000, 0, 0x07fffffff, 1, -0x080000000, 0x100000001, Number.MIN_VALUE, 42, -0, -0x080000001, 0/0, 1/0, -0x0ffffffff, Math.PI, 0x100000001, -Number.MAX_VALUE, 0x0ffffffff, 0x080000001, -0x07fffffff, -0x100000000, -Number.MIN_VALUE, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(482); void (makeScript(14)); -/*FRC*/count=38; tryItOut("\"use strict\"; /*RXUB*/var r = /(?:\\3{3,}(?!\\B)+{1}){1}/y; var s = \"\"; print(r.exec(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mta(456312848,-1485956121,1348505991,1991683326,611618934,846122967,-150860010,-24612495,-700123038,-1225600144,831612921,1027597869,410805421,931949271,-680965915,-986645359,-583893782,-641223329,-1134356981,-242273801,-1224843053,-59668081,618936747,-1078967079,2055806089,1099234980,-384507897,1090502614,-976346630,-162249656,468545863,1575282140,545641780,1771235208,-528119166,67787488,-1317112923,466947689,1679704845,-750466574,-1070380617,-99240178,-2065097204,-2116836689,544164153,1740339190,1185354533,298359388,-843378003,-1564655328,1232193935,-1872807526,1318827207,1845522800,1387905364,1552440772,402950635,-1773767080,-636933078,-1173045153,260303836,65574645,528313394,-819079041,-1228000064,890581347,453827357,1504324744,-74390056,-387872031,957397944,268829617,-998148132,-908185221,-1093462250,-1002028394,680250094,-869389773,1001976022,-537648445,1427958990,709257963,-1795691506,508279506,463935813,-1888689406,1370573047,-352135202,37424267,-614106092,1031631374,-744791222,749094356,-522562218,-1631043153,-1263661313,348647545,338342652,-1367781942,1929474247,-1696856890,-1124390827,829015530,217122298,-1176036910,-770498756,1969927626,-510354383,-1929680654,1809653322,-493254488,1199732955,1978335550,-1848476477,-1232625569,-1805172887,741970091,491209138,971689067,2068875813,-950535784,-1210056831,-995428615,-1466061608,-1914373099,1940169391,397027253,1086114194,-456252126,-1015741390,-453367532,-852425591,1896550068,1907863935,1510769021,503477905,867297912,1899555555,-635967032,376600348,-188547552,-1608252047,183695005,-1867119442,1311152664,-1459620086,2122677215,1937380797,332245077,-32327909,-1738399528,-96150919,-461480931,-2058615229,-1911819642,-1052380774,2088022628,-1321654439,-449831565,-857496118,-1571892313,1574337434,-1799337191,-1208135229,1582049077,-1228624417,-1269350508,1097913044,-317251821,-1013189250,1536721627,902718247,-1039537301,1234059609,771232272,-1625894487,1982115376,-1057883338,-1523896290,1512290794,1325450967,1503597326,-128945009,-275526534,830993844,821316850,2102256316,1465222828,256350044,383340303,350152580,1143503645,-1971722342,-1186771241,1151329537,-1234925633,949253425,1656717798,-1277092776,-259770945,-1913326653,1899373184,624233830,-676330213,495557847,-342187075,1933108966,-1772248151,769942400,1871039355,1845038507,-906255246,-2011728113,1469993824,971410946,565302888,1772250856,1589720128,-1446438671,1415863886,-2058165544,-1220148198,248896768,-327202237,-331227289,1989959653,-1732158670,1296391844,-203986997,1879797120,1464256025,410560263,-748048219,623644057,-1939476495,1869390173,-918247249,1436014925,-347105491,-1329132117,-587611745,375871429,-1500782214,1022845157,-1478019830,-612892108,-455958196,962265718,-1812032189,356670600,-1669388154,-507226861,-717691192,-457014986,921781904,-2055560732,1642770553,-1300611371,1726968410,2146531333,626817433,1644626146,-2088490940,484854535,1828085469,-950364049,-911926521,983289766,-391368882,2123190334,494129024,480638166,697096783,1928214820,-208889157,-375661375,-1459828478,1081283816,780793356,608857386,-1690968881,-825899244,1219203501,-371715429,1481998894,-1053912433,1191899052,-18508418,1655292729,-1979829543,-1620530284,967357648,2101520143,531076685,-805330505,370094966,-666519932,-1571822861,-1237940688,-135578955,-286646856,1516447022,-505943114,673596748,-1939641966,-578189367,1443242472,1671599372,-726196960,-1243193181,-1125426291,817973836,-69288092,692615370,-1286403736,1248119916,1907571561,-1280872225,1853677057,-922077718,-732814938,-5268905,1731542132,1317468242,1155308833,-1434450325,1483782916,544150755,1534005395,833759570,-1737362823,-677007090,-1949868710,355511614,-176280276,1668471742,-342630876,1922887773,2129334860,-137311664,-823565947,2124646539,424696768,-498030011,943843149,1449251286,1486214485,-731839626,21171441,648126696,-2138244916,-966454303,-401393456,1870839130,-439603523,-1850707504,1991781984,-130369097,1527905184,-102592597,712061274,1499693032,-1243445522,1983664898,1465383377,-1159843518,-923606055,-1707322799,1294031832,388685371,1059455817,-1807921149,-917908092,-1471635247,-2043106520,75734075,-944891002,-687637694,1575589992,766980658,37590854,-878640645,-554879430,-1108069503,-974421192,1630211295,1781866361,-130976342,1237177391,167424451,-825070837,1765244716,1102915218,95153610,-1839535487,-290740517,149725881,-676503358,522300569,-138034136,-1078635101,1013364125,1931832736,2084792611,-1952942751,1191464327,-2005012659,2074044685,-1315084035,1343457847,1145398744,930134884,-1469589709,759016257,595985924,-940223365,272199984,895465120,1413510289,-1612536351,787844096,1499862779,-1510737636,379319906,815656380,-1211494140,-1814511721,796874950,-1470653272,568660912,-1657954997,1037264354,339511955,1980278674,-1345220969,1825107847,1506944288,-1838510876,-182620382,956769645,-393755124,628203789,-1924874791,-928719494,442715133,-1291411469,-606390401,-1950636584,-961550676,-786266544,-786910321,-1694632290,-2055984973,130445961,165958754,-1304123528,844508801,1107720595,2063895924,-1942716534,-1404802671,509273782,808826105,514677155,1562974461,-1554914174,-836753037,1614947271,-1583888930,-395775430,-255464584,845380420,1325643307,585238117,-1992090263,379981577,1074834898,1295429149,1549385158,564430037,1275615071,1162799848,-1147440801,-2087182727,-1753178002,1919377248,656659375,1089663576,-646760848,-2133068001,2141421842,-1251689930,-1463088925,-2075517019,-1790381560,857757720,-334007557,-2055935520,-584642254,388126204,-1329427573,1376553725,-766493538,295105758,1191682957,150783276,88166411,-2138634966,-128509043,-254253219,-883539925,-401418395,1695052887,-2068006892,-1600133969,796892332,1335422955,839368905,2050937045,-1224433928,2050934098,-741940287,340269518,803996605,1530426883,1789984297,-1206933029,345443358,387974918,1314626789,-1876485464,-667546455,158275390,1594520221,-599415897,-1634265290,144441617,-2102389771,-946506665,359849606,-1733160532,1878121769,469167866,329586267,452359691,1612694934,1783335739,1514730475,259119020,1429676215,1098747892,867292072,1576913814,1878881966,-78171307,-1423436340,-1906627845,-1768371228,-1288753888,-547718371,1018916530,1959459159,1677290357,-837863412,-1841057138,-2019111706,818103186,-1437721954,1423221879,889932217,-349772971,-379225388,1135147955,-1173904235,1642918941,467910652,91071581,202984334,361308974,-545461963,-1180893876,557029797,-1981679974,-2123085417,266129683,-1461692945,-452410507,1918794322,1895916251,2055450287,-1106090238,-787128629,2017662990,-4570360,1469963579,-1785196034,-1858251957,1256141383,1550597131,1598973193,849315153,-32188319,1177808384,-254182230,1239669712,783265591,-1502363182,-15214407,569161810,1756774258,-462068342,-657594939,1423331258,1042746403,-148973399,1579577086,637747789,1305661629,-2021704035,28433228,-128137259,276829628,2118100046,91604657); -/*FRC*/Random.twister.import_mti(236); void (makeScript(14)); -/*FRC*/count=39; tryItOut("\"use strict\"; /*infloop*/for(let window in ((ArrayBuffer(((((d) => { g1.v1 = evalcx(\"g1 + '';\", g0); } ).bind(this)).call(new (this)(\"\\u717A\"), x|= \"\" ))))(x ? (--this.zzz.zzz) : \"\\u47DB\"))){i1.send(t1);Object.defineProperty(o0, \"v2\", { configurable: false, enumerable: false, get: function() { return Array.prototype.some.call(a1, new Function, o1.m0); } }); }"); -/*FRC*/Random.twister.import_mti(585); void (makeScript(14)); -/*FRC*/count=40; tryItOut("\"use strict\"; s2 = a1.join(o1.s0);"); -/*FRC*/Random.twister.import_mti(607); void (makeScript(14)); -/*FRC*/count=41; tryItOut("let ljoebw;this.t1 = new Int8Array(a1);"); -/*FRC*/Random.twister.import_mta(1561517550,-300329851,-862023081,-1383129704,-1134992727,1218734635,-1710235324,-524678832,477963327,1237183598,-66573628,615246452,-757264509,-151424651,-857704973,-956372666,-657014479,-457228834,641367135,-766578298,-764427592,-1623533413,422721362,-893799781,2040818089,141638080,1994664329,310050113,-857722080,1193719787,26028584,-1206553038,355229812,-1385211894,2144749714,-1786051682,-1561685895,81141710,1164610430,-1597820636,-278898845,-1217798108,-521779995,565760591,380377846,924812436,-1069510572,-1514769804,-497533085,644572007,-2087438059,954895376,-433930520,-129739995,-1262888836,276749465,216353189,1692451447,1984329608,1972886383,-621116874,1958361965,850010986,-148671503,-572993832,-1531221592,846745575,1625385489,1311346989,-1834453841,-246836544,-2083029456,361716312,-1347657485,1346394639,457593692,-1644321885,-727751422,-1605062985,715054005,-1055052873,1445088193,1853970876,-657233118,1123588969,1246455291,-1239845482,1335203572,1607852394,2040359592,1765753853,-1893722982,-1330192972,-1446047462,1983581590,2074099712,-1906358565,-2106305299,-743944028,-512135016,1107414293,-2053901369,291165953,-1406072990,990184803,-1461361029,-1202451943,24778740,2098350601,873305183,2051967384,-1029530862,1631185379,152903899,992606222,-1441002275,-1977673523,627192389,-1948292767,1815286567,-253718570,-2124211338,-481671020,-1513878649,857473609,-2037007669,263350132,1767859346,185236528,-898450095,-351846779,1873117276,-276237179,606726857,1312786238,280486402,-23152845,-246524093,-710005576,855473665,1269473682,467976134,489282769,-6202208,2072913580,-37952566,-1290752934,-1978133762,-971100476,645569367,-1100861944,-465155715,-1902537911,108558007,1393765221,600281764,-295086627,281513267,-849754327,1182069751,-126618071,541571187,497836835,-896152073,-157278361,970126527,-1363717786,1036029400,-429181351,-1006128608,698457042,-321330915,-926623286,-35984803,2145821407,951757995,-1702930162,863595538,1995596553,-1142589463,550945289,-1331058250,-1464529144,-513865834,961134556,-1220081724,-1428256063,142547645,981746359,-278417225,-918358269,1950191894,-1087719141,1163208029,1395633611,-1123970487,-823819269,1315787543,1959967742,1322228341,843326215,1324792504,-308357285,-447480859,1389443424,1068473715,1660886433,521267728,-2140800427,159905752,-605418880,-51399926,58267330,-125427061,-938144015,1611103438,289904131,2062738446,873742809,615133985,376558256,-1072312291,-1366896974,393517241,-221869423,1918831063,1675061731,-34480428,-1776491963,2117419396,951844548,216336932,-2093294536,87402083,235202849,-1579695945,-1166102505,1353142669,-440345474,631857043,616720968,-542800562,26077675,-886744140,-1996276540,1414737145,-1897697091,1117272262,-711199009,386769681,592652493,322443981,2047899995,765233857,281521587,622713795,-955049890,1929024261,518355695,-1635062681,-1670588293,2115263664,1123063490,228134856,-1099701466,-1196378590,-40970505,-617201468,-936425413,-295722203,803874852,-1688025330,241735686,1619946966,1215507659,-1239000094,1179838739,-1798258157,718256773,1924194384,-1624854353,1239720053,-1113955061,1624213682,-578864145,365101150,1256526288,849793909,-380792098,2099148448,-1409865319,2054237568,845156945,-1936773149,736555946,1644907119,1518810377,-1437412904,1630163893,1660572804,-1029836188,1621864404,1330999802,-1681123478,592647737,-883442109,458199347,-347691737,-1780888753,-1443085147,-2135699964,2132264155,519002526,-1347358430,715649218,-33240063,-112827880,-2029413342,-1415246225,-627061401,1326476526,94475180,1558395945,892975252,238872327,-1081078490,1749436982,-155257469,-1656035474,-2073387294,-941367323,2129046478,-495111964,-2098520945,1891858987,1222354203,-733258578,1161494718,-112525766,-1622808066,-280734655,931255790,37546272,1329028020,240310958,1050489620,1174639260,692697457,-1842099454,-485739278,1610494632,1192599073,-246094746,-1537425163,562519162,1884711680,1869042005,-2037398699,-899909802,-1162843096,144201021,1422836809,1806289795,1279130372,-333361182,685763979,-420747274,758779006,-1988534268,-1682805334,1823949950,522898542,814744445,-267585074,1364290620,-439803129,1308305142,-795418052,-224538524,-1886955286,-1163901291,1013297272,-466273349,-1935895487,-111494269,1632368714,2053916962,94743777,-1112387507,-1546787207,-1106349471,-696349650,990315098,1049793785,-744624534,991287258,-271515071,-12976831,-684063991,236372932,987824204,1182012431,-1617712923,112972641,-906757618,-339467152,1596093360,-1592736088,1101585522,-1969766940,-85501404,-1267538790,2026988219,-1155692093,-1299382177,1922628143,-171414553,2053799316,-490441927,-397377765,-252797185,1104564549,-162764424,-693406427,1434999701,-1539943190,426784278,644869459,503591776,2046863649,-1145419500,-1043870474,78368442,-333485515,-260231924,-1400051515,11710890,-1587233519,962892131,926610884,859194066,1472192706,72684147,-981564638,-92726488,-1057920327,1635246541,1965433318,-1467706571,1593976746,1510630390,695479831,-1464565684,1730495442,-455897752,1446987226,-968962670,87668862,184497633,1276139567,1243141432,-1894349950,931781817,232950966,1091544012,467171352,-863961425,873040039,-1416496045,2045713495,-1844124138,931813134,-601186540,323636950,-1866231907,-174874570,-1466022720,226489902,-1696405384,-987962837,255590325,-1811765821,-36084704,-1932310423,197737653,-1803803673,-1091332789,-1328200893,-1485760544,1025594955,388715219,1931401096,1671235887,-1221939213,-2103022392,1730953625,-1394223147,1098490045,-789320208,-1895731940,-1870620553,1633366660,-18013811,-52852726,-1867603835,-1318608289,1928553157,2047184310,-1467997436,1094317505,-1915857953,921940251,396188756,-2086513832,1696144675,1468618228,-48945637,266400044,1643340540,1333752056,1013247708,1640169293,-319423634,-300695849,100802067,-467323001,682742411,-921832985,-561065607,1195834542,1860149729,1743035814,2111453138,-1402605505,-1542639940,1218411288,833420672,2054276336,900639640,313938248,1094758249,660375487,1860106227,1832249794,-1224311063,126384941,1857225805,1219004216,-1238191320,2086534099,752963904,549585612,-2006010255,-857382077,-1557463195,1131397836,-819528944,-1636546187,-2008865121,-1138718787,562483451,-667451570,1876703517,-1653963287,115893965,-1590992909,-1973230415,472299173,-1274232339,-1364776875,998631134,-158459992,-1164553855,-1342351283,616064655,160279027,-452947659,1429906239,-240952732,-1382376768,1842199800,628598583,-1444610284,-1316910845,200759677,567322163,-1012969215,-1458547569,-259546175,1956706306,-1111497538,-1878998043,386059279,338540980,670434433,1492089214,1742029910,-611718492,-1450881483,-1328058102,1443767585,843619132,-576348846,688573214,1590265208,-509333363,1761870953,-363455812,138325953,-703624834,2045957756,-1825465250,-414134652,-655649367,1790352286,935018932,472661752,616127984,-1767480952,-1641950865,1993514535,-327009203,-1599634339,-1051169610); -/*FRC*/Random.twister.import_mti(26); void (makeScript(14)); -/*FRC*/count=42; tryItOut("mathy2 = (function(x, y) { return (Math.trunc(((Math.hypot((Math.sin(Math.log1p(x)) >= (Math.fround(Math.tanh(Math.fround(x))) | 0)), Math.fround((Math.fround(mathy1(Math.min((mathy1(x, (y >>> 0)) >>> 0), y), (( ~ (y >>> 0)) >>> 0))) ? Math.fround(( ! Math.fround(Math.log1p(y)))) : Math.fround((( + ( ! ( + x))) >> (mathy0((-0 >>> 0), (( + Math.ceil(0x080000001)) | 0)) >>> 0)))))) || y) | 0)) | 0); }); testMathyFunction(mathy2, [[0], '0', /0/, (new Boolean(false)), '/0/', (new Boolean(true)), NaN, -0, '', ({valueOf:function(){return '0';}}), ({valueOf:function(){return 0;}}), (new Number(0)), [], true, 0, null, '\\0', (new String('')), undefined, 1, ({toString:function(){return '0';}}), false, (new Number(-0)), objectEmulatingUndefined(), 0.1, (function(){return 0;})]); "); -/*FRC*/Random.twister.import_mti(308); void (makeScript(14)); -/*FRC*/count=43; tryItOut("mathy0 = (function(x, y) { return ( + (Math.asin((Math.expm1(((Math.log(Math.pow(Math.fround(x), 0x080000001)) >> (Math.log10((Math.sign((-1/0 >>> 0)) >>> 0)) % ((Math.fround(x) === Math.fround(-0x07fffffff)) , (y >>> 0)))) >>> 0)) >>> 0)) >>> 0)); }); testMathyFunction(mathy0, [-Number.MAX_VALUE, 0x080000000, 42, Number.MAX_VALUE, Number.MIN_VALUE, -1/0, -0x07fffffff, 0, 0/0, -Number.MIN_VALUE, 0x0ffffffff, 0x080000001, 1/0, -0x080000001, -0x0ffffffff, 0x100000000, 1, 0x100000001, -0x100000000, 0x07fffffff, -0x080000000, 0x100000001, -0, Math.PI]); "); -/*FRC*/Random.twister.import_mti(482); void (makeScript(14)); -/*FRC*/count=44; tryItOut("mathy4 = (function(stdlib, foreign, heap){ \"use asm\"; var NaN = stdlib.NaN;\n var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n d1 = (NaN);\n return +((((Float64ArrayView[4096])) - ((Infinity))));\n }\n return f; })(this, {ff: Math.log1p}, new ArrayBuffer(4096)); testMathyFunction(mathy4, [(new Boolean(false)), undefined, ({valueOf:function(){return 0;}}), ({valueOf:function(){return '0';}}), (new Number(0)), -0, [0], (new String('')), null, '/0/', 0.1, (function(){return 0;}), /0/, '', ({toString:function(){return '0';}}), '0', objectEmulatingUndefined(), 1, (new Number(-0)), [], 0, true, false, NaN, '\\0', (new Boolean(true))]); "); -/*FRC*/Random.twister.import_mti(573); void (makeScript(14)); -/*FRC*/count=45; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return Math.sin(Math.fround((/* no regression tests found */ >>> 0))); }); testMathyFunction(mathy0, [0x100000000, -Number.MAX_VALUE, Number.MAX_VALUE, 0x080000001, -Number.MIN_VALUE, 42, 1, 0x080000000, 1/0, 0x07fffffff, 0x100000001, -0x080000001, 0x100000001, Number.MIN_VALUE, -0x0ffffffff, -0x080000000, 0/0, 0x0ffffffff, -0, -0x07fffffff, Math.PI, -1/0, 0, -0x100000000]); "); -/*FRC*/Random.twister.import_mta(1363011548,679344893,1490111752,-37420601,-1154575931,-1835771833,1994840009,516282574,-820325817,1629906642,-213568622,-238097556,1759753601,94359554,-686976967,-1917668612,-918415572,2023263919,1539277548,-1660974405,-1392533242,-1369610096,1409554057,355736308,1173278117,1412877667,1184807770,1945649669,1588445120,431399682,979719754,1418855258,1823933732,-1001296547,-889041607,-858376615,-1368103470,-758617933,-1125289897,-301323580,-87012093,-803273778,-17945540,945835945,1278222984,611670617,-1750746600,308130886,181169109,-105558632,693331950,-1684681663,-1171734809,5672904,-129765244,936285249,-866282954,-537872724,-168027982,-347894647,-429124329,329917524,-292990712,620016212,-582273194,-138589291,-1533376159,-15475835,-1954221424,-1272694833,1977759679,-514436737,-147743503,1664908238,975797920,1272774170,2030435415,1507944473,970226995,286810564,-10067183,-1381874522,-378185798,-145816866,674211809,-422191381,-350649581,606325760,-1464691021,325354602,-1220196082,-13993670,1774640838,1815532568,1322186632,-38135139,1863857498,-344832870,395377109,1424851328,-625415807,22427311,-1726353747,1409985049,-333368986,1003459678,-1134263312,925840734,845797551,1339303433,1532280895,1091856170,-591407757,-1873104936,-1158346838,-879075091,1209793189,-100787892,-1197970248,-983211536,1330740375,274089654,-2070559260,-52273369,-75459849,-1423128364,-625210210,59187211,1477761520,-1002767082,-1092668983,1883380708,-1940211435,1237344894,1874816167,-610411372,1305111361,-824559392,-1997966137,343518537,2005113619,-1573718737,761724696,1015528511,428013146,928424414,674881725,-737580661,-843217319,1904350025,-1551690919,1752615507,-1503039401,-1671400403,824298398,642952256,495850757,479112238,-1185084440,1779937499,1465853331,530425809,6476185,-1008832617,500610510,2022150574,-1014316283,-1395307202,-1020754205,-558749352,-1287489804,-798053112,1229122980,-578943122,1943793954,-1213596410,-163451324,-2033588268,-1921539368,744702190,1299085284,-1510351392,-583722741,828990230,1054090453,1703086763,1823913090,-1883387655,-1888760137,1043765855,-754017276,1981435795,-1895638413,220234372,394836510,-377963219,-367812384,496982398,-427817829,-402660086,-51202056,105026887,1534475303,1063696785,-1265113766,1976738653,646069782,-940324723,-1519924383,1156645161,-1809726663,1233265824,1933846756,-2064588325,-483253703,1996207450,-443357266,-374076499,-1125717765,387241888,-1648687839,-1041955119,1284713964,-692491344,212142201,138707059,-6257700,-2093275615,1466391103,1150071402,-71858987,-1162608679,1225145257,-387181690,-1759082422,187513491,-1870823733,-1046127187,974320762,2055372965,709694117,247714835,-1474289882,-1916565170,-1950767092,-976844179,-38562088,523954870,2094205383,-593153488,-2053068979,-504479273,-605013796,-671752868,-125952197,2099524591,-104637857,-1407231006,-1025522250,-1148593722,-1151646971,-361101736,-904220227,-1320315839,-1903152222,1528998899,-2087646554,131029441,1043882627,-1457833938,902900782,184839819,338848946,714382498,156146103,-252858493,1792384078,-449049997,-1563575191,749950575,-39030995,2139517662,1202278424,2078981918,-1794034045,-795963302,1796756972,-758457224,1831149316,1652192539,1506550932,1567854241,1760718011,-244715340,1461636717,1070586059,-1592959197,-1669353798,-802456771,-696293949,325692452,495175261,1178269103,-1314601068,-448657433,-310704779,-1112308856,746731113,1616172587,-1456688968,298602604,660081454,-250763654,-1102414990,-2111235361,-737040449,1356876411,2074050278,191704918,240052401,1860574670,-105391805,-416889129,-250677754,-189119991,1672731854,-155563106,-1809999306,1130592734,1675669888,729415678,-585127660,-474830138,1561169466,-1974839540,407664376,759801430,1743896354,246846421,840257420,-879082193,-1142197446,-335426249,1328715762,-424640314,-1684429322,1221135767,1179162902,1641045199,-345318224,1180705000,-1020600124,1611274353,-1971346781,1001133451,-156253819,1584770147,-604960158,756690416,1360929620,-89149307,-1016907335,-41737962,2077936816,62750458,-1147369668,1122282358,1933519633,-269761542,1530748199,856873480,-1732098245,256957753,1083266723,2145732823,-1421863646,1506370135,-624034965,800417318,1647436738,-1034769391,-1707874660,-116107585,-131336165,1814777867,-2073350279,-238168460,-795951766,-680270798,-965912458,-1461638784,1079325923,-20550899,-364628944,-245389613,1841870620,942040871,1104660399,-1754936086,1412590978,1733082550,-451242609,1845273705,-759688381,-215222804,-488203520,1022043066,767171037,-1598946542,-1605979111,1800409435,-608950953,-519733611,-1392999310,1878590769,747064219,1124312213,2070156615,-1690648383,1853695443,-188540167,749637282,455456608,434060789,260338443,-1439162480,1841341308,-202330552,-1572179704,1185618093,1602576362,-155057657,-623532392,1589422224,146607152,-448883788,-850661506,1369127767,1377787458,1793001869,-1355869766,2014321631,1413805259,-1733400006,281284142,1431677122,763873107,284294244,-1369172732,1637227543,1527499876,419383391,2077630874,-842447512,-400259892,1954036982,101740117,1740680954,95642385,1812615477,-278441401,1441453769,232553672,-1325748435,-867606111,-2057683982,-1181813719,-1500685229,-348329241,-1591055315,-704208183,-1515395194,-1939624698,1826283977,1710439085,681323431,-1709520601,-1999514767,443056157,90535897,1157381986,-2037207765,-1572526332,623867098,1059715790,78561228,2062272696,-387725067,769793442,1485285387,-2000486523,643172330,-641774379,-1027457854,-313407022,-1321059914,1353668783,497605334,1283774469,-981823402,1513686496,-1355761234,-1904120954,-1148551981,612854659,1119665620,296849588,-370377041,-2045626143,-666449624,-1180969140,-1629513559,-782255626,-2137232478,-116492670,-895009578,629804429,1765119466,2060203741,1992301525,1484799949,1633956826,-774981761,2063917301,929400230,494609063,1810968047,-450464697,2116073482,-396520064,-2108257977,-609281010,1648446901,-273345322,1221430245,2021828843,-1810607424,186320288,771957642,1218789649,887916658,743363065,-494185634,-764688944,-1588333649,-1522786897,706390829,1979663450,512857205,-245993865,-512755872,1770367470,-1664492112,1042777331,-173376688,1693451350,-1244518939,-162472850,436689429,712602212,1897279901,1689058141,-1879997229,-147511825,-294871036,-762359470,-452025343,1217697030,1974491087,-1312604584,1953864742,586356953,1433385231,-2086826481,-611910352,-900160374,419380720,2125565402,-1779978844,384615949,30196199,794716673,929543643,-2105102334,1376905636,-1780664913,-1667319348,467980730,-1187822152,-480455863,-1429070435,-785078238,-1316332570,-938010135,1598592942,-603889199,1996073077,-19345971,-1062600770,-44073098,1505041213,1362593406,-3837779,1991090411,1930908658,-1036004147,1461382812,524634926,-1321983453,-2048049791,-239913420,528693065,1897289074,-2070504517,-883745360,-647627954,-734923122,-1548609212,-1773310837,480744641,1158519497,939840546,224690503,1354273993); -/*FRC*/Random.twister.import_mti(9); void (makeScript(14)); -/*FRC*/count=46; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return ( + ( ! (Math.max(((0x07fffffff || (( - ((Math.log((x >>> 0)) >>> 0) | 0)) | 0)) >>> 0), (Math.atan2((0x100000001 >>> 0), x) | 0)) ^ (( + Math.imul(( + Math.tanh(-0x080000001)), ( + Number.MAX_VALUE))) < (Math.pow(Math.fround(Math.atanh(Math.fround((( + y) ? ( + x) : (x | 0))))), (Math.ceil(y) >>> 0)) ? ( + ( + -1/0)) : Math.atan2(Math.fround(Math.max(Math.fround(x), Math.fround(y))), y)))))); }); testMathyFunction(mathy0, [-Number.MIN_VALUE, 1/0, 0x07fffffff, -0x07fffffff, Number.MIN_VALUE, -0x080000001, 0x0ffffffff, 42, 1, Math.PI, 0, 0x080000000, -Number.MAX_VALUE, 0x080000001, 0x100000001, 0/0, -0x100000000, Number.MAX_VALUE, -1/0, -0x0ffffffff, -0x080000000, 0x100000001, 0x100000000, -0]); "); -/*FRC*/Random.twister.import_mti(290); void (makeScript(14)); -/*FRC*/count=47; tryItOut("mathy0 = (function(x, y) { return (Math.log2(( ! (( + Math.log(( + Math.fround(( + (Math.atan2(x, (Math.pow(x, Math.fround(y)) >>> 0)) >>> 0)))))) >>> 0))) | 0); }); "); -/*FRC*/Random.twister.import_mti(375); void (makeScript(14)); -/*FRC*/count=48; tryItOut("\"use strict\"; b1 = new ArrayBuffer(28);let b = /*UUV1*/(x.setSeconds = -10);\nf2 = this.t1[11];\n"); -/*FRC*/Random.twister.import_mti(483); void (makeScript(14)); -/*FRC*/count=49; tryItOut("var jeepbl = new ArrayBuffer(6); var jeepbl_0 = new Int8Array(jeepbl); print(jeepbl_0[0]); jeepbl_0[0] = -29; print(jeepbl);"); -/*FRC*/Random.twister.import_mti(517); void (makeScript(14)); -/*FRC*/count=50; tryItOut("var b = \"\\uE67F\";s0 += 'x';function b(d, b) { \"use strict\"; return new XPCSafeJSObjectWrapper(x) } /*RXUB*/var r = o0.r1; var s = \"\"; print(r.exec(s)); "); -/*FRC*/Random.twister.import_mta(-857634290,-1156748690,-203924034,-1546435189,894962035,-1886945454,-572850396,1303260176,-1837782935,88717939,1432185963,1305176333,-1568056296,-639735400,-1653769175,-2052819709,1237087226,1109836871,-1141883367,360477718,743088399,1748007770,1692870825,1329384692,-1614980916,946531021,-1188320216,550677739,-1495052783,1894910041,-642142235,-1810762854,-41214244,-1559443031,161589748,-1913678735,-1362088938,-809302844,-1841592618,690714912,966048432,761808988,-1343775098,-1992883970,-215874004,1603676615,-780095463,-1934980325,1770982926,2033087652,-2076988773,1786313384,566057971,1730819110,-636439904,1576593537,-1573839298,-1831171947,-1731114387,-332475391,773176528,855100309,1047529503,-1044198932,-1220754468,-963016537,1450963504,-1987372823,1178636490,1517772585,254723123,162305088,-793488950,-888005223,-2143119221,703194098,-652024550,-535710485,537926469,1017202800,-570363614,1859267520,2126706358,-1981588403,753988225,1321293394,2000589530,-1300758200,1293745657,1632201791,-1753811864,1493267137,1855767047,-1348107199,-2122073477,-1372367240,-142926193,1066468839,-1691027082,-453272400,-1005883042,-654270580,913798533,1814666579,-220761215,-1867306370,-534911364,-1531234549,-60940785,-1525464972,-916042438,826630791,-1871995196,-454994791,1645877248,744158331,-1134336252,-1522384674,-1474982866,-618003687,1629402801,2022102063,-1850112871,-1136081303,888297392,-1131368144,-1546665937,460319070,1063672876,-1382677036,-1660454475,-519744417,-1933728577,746688459,-161353148,-1649620790,-925366106,-1783529127,-1414082928,920465302,-2096443416,2024823814,-806473775,942535519,937787670,1872696287,1634189770,1585807452,1156949204,-1563192738,-1731423828,-1800561535,644801726,-1174465873,2058158030,184969197,811651812,-385548636,-1997312796,125110259,1620492121,-2093055482,-1835076240,1073572730,1492071306,926700942,-1587575952,384848810,-1110030850,-1129341061,547603330,286335261,-1619247633,228091063,958916186,776949293,-1057391131,-1656935332,-1670839043,1044907522,1817010986,1651872254,1314420614,-2018614446,-2070454389,20770714,475063457,-1934836192,1406060639,-1256589362,-102676820,666540126,-1513319925,-1592377198,2088781419,-998012010,-2032618154,-184539844,-1342270636,142668681,619788209,1947881842,2078577505,1140779408,-1294571761,-326864986,-866323342,-1196685667,961537158,-1006452769,2072271230,-2003421615,513670579,421697527,1694428644,1138697893,1766076082,204003602,-1829793634,1139066049,1514679027,-268109187,939204889,-1705529814,-1523702588,850706601,-2010269946,1046124494,-1723124901,1460350731,1736575672,-925653896,-1141803375,-1773552895,-1859124858,54765523,-57432966,139728470,-377316992,782722453,1203188558,-1988267078,-1018842716,207661052,-1177734738,-987105931,1524695373,-1960078029,1180885570,-1086338096,-1497146176,-230341470,1401947235,1545343850,-951581245,51008481,654157224,-1193915074,-908779655,959319937,-701379963,-173784587,1279389326,-375900729,995811810,-1812790395,-205232865,-1082115282,971363403,-183564143,364742500,-113561483,1255958422,1278168093,768928773,484818985,-759643838,1281213552,-1523982016,-2040275782,417926473,-104588628,1611511566,833697184,-90324808,-312647525,-984892867,1485255506,-1698545209,311827029,1987296867,441271646,-30576387,-1526979111,258229331,-808546428,340297844,-30160526,-73689474,-1728018472,1557876328,978801283,825983032,847992374,262440590,2127157889,-202841189,1998727912,2051306396,908385920,-1706075686,343286204,300182507,-1356681366,1098408520,-1134270437,1552339788,-1832885309,-953239994,1508887776,175560767,1796762063,-692834949,338595668,1313401728,-1603674951,-1359654485,-1514484303,-386873524,600541818,1118194137,-2096224542,-30020253,-449262086,-392360841,-352662236,-1762943003,1463137295,676316481,749603980,-1189810940,-1928180156,1271119746,-1891948697,-393309659,1434040890,-133279854,-922867703,1295235703,-225864467,-1646414325,-570430633,547868862,1729198645,-1187989181,-917226814,-2140241691,-880119987,-913685003,685952034,-734485560,-2002754865,-532566382,-922306597,-2004892985,-893084885,-1773532479,-1258344939,-1943649718,-697875755,-1388027875,-381329579,-690026415,-945957506,1260751565,-1323719392,381542196,-820632897,-1514836640,-1638989207,-186195487,-1624349618,-300209345,-545404354,1916393927,-267024418,1865570630,187649344,-536334787,-957455952,-958447148,-24856877,1109282710,1090052294,1611925540,953009842,88919155,722544119,2064127964,-1394973900,-1508008273,-690944847,-1642334381,-1184069869,-330407460,-1038314208,-1315063245,2081710755,-1419871443,-1560752140,863813926,1830637598,1463856547,-224078106,65514290,-347624758,295914930,1836357139,-913524120,111521704,-146733117,1897045467,1365550515,403848204,-535024908,-652295446,829990061,1976831797,-1907921413,1411792020,-510175156,-541281213,-2082849810,-939363734,-1976348857,1609175865,902271659,1384904287,619774536,151680366,-64869689,-673962146,1334318008,556149157,646057331,488948712,1268529907,1299849329,432489641,444516139,253803226,-1731906551,340812317,-62917280,1147570613,55293102,1693153398,-61666321,1742617661,357199725,1706320058,-1747042334,-2110373734,62891125,1257835439,743265099,-454460573,-1423837470,1088484723,827215903,1589040191,-202963,709637454,-250598204,107819071,-764987890,1650430647,1929358353,1778339729,1911430098,-966920928,-1771399615,1369303436,963205327,-1165946152,-190776539,-1806214364,-2134850476,1089414447,-785899117,-1162660302,-1903298729,-225305116,-2056486410,-417257483,-927283005,-69507590,-1426629703,-611944354,666953062,1538724042,1788107206,-668447073,435405916,1828952730,-1376704230,731730738,-1024941594,-1779990984,1019239592,-405386965,-1842209725,-1391241910,-1177779844,1037348153,1360000990,638374048,-769845806,-1205471125,1264967620,-1806812108,-1098141901,725896993,268061351,1770449150,1466675286,849022244,600511085,242849859,-384273340,1599920177,-410218357,1226002666,243701430,-764686782,1884183292,1940479056,-1924216801,-1456721429,194129874,537753417,1883098087,-716076301,-1792566716,1498865099,187388687,1662021325,-1674140966,-893653461,-1509697845,1626102691,1076626776,1718791711,-1809814525,-675098726,1796302177,1491330125,-1767025652,-1775067184,1605780850,1315307659,1986887361,141094668,-505557017,1047665830,-1010817122,1222919695,449082940,-1779183256,838431121,122297300,1530003069,-843067934,-1781714678,-1378715060,21767311,-841920000,-1758568231,260126862,-1186398062,-373882902,999019377,-937991485,-379161545,1483490629,-2017126125,1695589631,-928972524,1611054004,740298883,-1583553590,-793055436,935831296,-101826282,66530850,1850877615,1879282924,-854548542,-1746214674,588068112,-284813759,-305167804,1397212554,792098509,1996584966,-835184082,-1846695938,1970552879,1154501201,-1765625819,162849093,1253241726,1800829660,177985438,1738387687,-1978608262,-1757975278,351356750,702532716,-107990483,1559923415,-5310376,-1986446327,591137140); -/*FRC*/Random.twister.import_mti(104); void (makeScript(14)); -/*FRC*/count=51; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return Math.imul(Math.tan((Math.fround(Math.fround((( ~ Math.fround(( + (y * Number.MIN_VALUE)))) - x))) >>> 0)), (((((Math.fround(mathy0(Math.fround(((Math.fround(Math.sqrt(x)) && (0x0ffffffff | 0)) | 0)), Math.fround(Math.expm1(0)))) >> Math.hypot((x ? Math.fround(( - Math.fround(Math.atan2(Math.fround(y), y)))) : (x >>> 0)), (x ? (y >>> 0) : ( + y)))) >>> 0) > ((Math.log((( ~ y) | 0)) | 0) >>> 0)) >>> 0) >>> 0)); }); testMathyFunction(mathy1, [Math.PI, 42, -0x0ffffffff, Number.MIN_VALUE, -0x080000000, -0x07fffffff, 0x100000001, -1/0, 1, 0x080000000, -0x100000000, -Number.MIN_VALUE, -0x080000001, Number.MAX_VALUE, 0x100000000, -0, 0, 0x0ffffffff, 0/0, 0x080000001, 0x100000001, 0x07fffffff, 1/0, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(414); void (makeScript(14)); -/*FRC*/count=52; tryItOut("{o0.v1 = (p0 instanceof p1); }"); -/*FRC*/Random.twister.import_mti(447); void (makeScript(14)); -/*FRC*/count=53; tryItOut("var b = ((uneval(new Int16Array(undefined, 9))));yield '' ;"); -/*FRC*/Random.twister.import_mti(536); void (makeScript(14)); -/*FRC*/count=54; tryItOut("v0 = Object.prototype.isPrototypeOf.call(h1, o1);"); -/*FRC*/Random.twister.import_mti(551); void (makeScript(14)); -/*FRC*/count=55; tryItOut("mathy3 = (function(x, y) { return (Math.min((Math.fround((Math.fround((( ! (Math.max(1/0, x) | 0)) | 0)) , ( - (x | 0)))) | 0), (( ~ ( + mathy0(( ~ Math.hypot(( + y), 0x100000000)), ((Math.hypot((x >>> 0), (Math.sqrt(y) | 0)) >>> 0) - (y >>> 0))))) | 0)) | 0); }); testMathyFunction(mathy3, /*MARR*/[(1/0), (1/0), (1/0), new Boolean(false), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), new Boolean(false), (1/0), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), new Boolean(true), new Boolean(true), new Boolean(true), (1/0), new Boolean(true), new Boolean(false), (1/0), new Boolean(false), new Boolean(true), (1/0), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), new Boolean(false), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), new Boolean(false), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), (1/0), (/*RXUE*//(?!(?!(?:[\\D\\D]^?)\\b|.s{3,}*))/gi.exec(\"\")), new Boolean(true), new Boolean(false), (1/0), (1/0)]); "); -/*FRC*/Random.twister.import_mta(784003549,657847885,-1880119002,-1053784078,-496478595,1201686731,1245848974,389578270,129705211,1024053606,-289997024,517642539,139036289,1595450847,-1871574883,1127893298,876661777,1423195247,-1696656680,-622548576,399077281,-1205374637,2068080377,-45997533,-1129201163,1343950590,1599760572,-1112011474,1895329021,125793234,-931172148,-1906326693,1620716453,-107833163,1764822605,110722690,1475253302,32265229,2069158834,-411723434,2059844774,701723831,1066650250,11158953,867767365,811243308,-270219189,1889658241,2137175308,1501951518,-1324317636,736678377,-499136112,-1398846939,-294068349,1018539295,-1884686152,230548482,-1679003283,-825528793,46703261,1167196916,253089129,-1442731106,-783574387,-1340668815,-1366744289,1948849472,990789207,-1347991665,1834603165,1882025284,423246317,-1523886866,-204781795,1627493869,-6604339,1970636931,-203360356,1240395074,117769350,-753150673,-1655722494,-1587049005,909095013,663725215,1040986833,-1763128581,1891690640,-1921775358,297694333,-133779389,361902376,-1715317401,1652892413,-1997196049,-1459069722,-1191481433,948409620,823071040,-1741212443,334991250,-2006525462,-1933746070,-46619872,759499958,-986684747,1133936024,2020709443,-599594099,1523583341,-1283221881,1696002514,377881816,834159887,-1482611880,-324015005,1259316912,-597266428,-985691887,-487708051,823827173,1329696349,1340876388,709471340,763970226,1253497367,-648022392,-1762154329,-681098176,1813446779,-734925483,1107333193,-1583249468,-1036033493,-601105470,1545817334,-1945404667,1297016944,1175719448,-983478491,1115659514,-1453185074,1468724695,57415812,619639892,515492123,-2023505280,-1536346392,1936064572,1064162840,1765631693,-1114379526,-205146287,798962036,1861493048,1882706027,-1621725622,-2047217640,-381673603,-554387464,1915248790,1435084641,-1423475618,-150035700,-1850650056,734084823,-1379775052,2057697059,1526370382,-1693895395,387205154,-84505363,-1740807195,-959446534,-19256749,-2140522893,2120029089,195434564,-633687211,-1285619802,1752381439,1686805921,1050335567,-2147022319,-608932455,564816928,-473802860,-1155084935,-1129692078,-1128014778,674693980,-481233282,-934681277,-1016804918,-1001557561,-1700480860,11080555,962077237,-987184400,1562404063,2086829124,-2044903163,-1529445147,-910208782,-356803411,1722732133,3579245,-1471542497,1462127176,957231456,2020499107,1220778251,-976392588,1760035188,1547238527,1770322278,-1689556146,-434337949,-1431665142,2083082766,-748607336,300996582,596523706,-402915298,699374390,-1629286061,-813248978,1288227956,906978691,1388932970,-217766734,1278312487,-2128599471,-573809732,615776002,110478459,-1802103622,-1321985861,2021113241,883565718,-358257843,-249677941,168127315,2115300403,-1680410354,1589834800,-1334451461,-2130034038,2073747971,-1623861403,-1924236036,1710537394,1177434810,1899523991,-443339091,-9918528,-1829643767,-1727816230,-623110861,1940632731,-863830658,-1497985503,-1492518287,-1389465042,3289728,2124410316,847265896,-209952967,796969488,-1147261662,320266904,144054841,1416861131,-1377920557,-46408833,-1780215805,-1736384555,-861170537,-1386561794,973893490,-525278102,-1388876524,-1325812001,104949210,758505065,-84965052,1511929873,-682131439,-811912117,382417574,427665290,-1871511195,-1449778917,1560547677,1505335513,531811502,1061461408,1643923928,-1041460817,-1126056054,-1140379279,-135780442,1377001852,1125130513,-393770955,-860086910,566438211,-477920820,1707870445,-1323314702,149310415,-1628200729,-2045104614,1447538693,1996667015,-2045001114,-1986408989,-1712949355,1919770332,1965660348,1335693334,-1162782750,29585119,464080944,293736637,-1325393293,-65048742,-1833125668,-1253090120,2010781182,-1872376178,1924489287,-90389667,-1944308159,-5821657,41722448,521327331,1326595588,-1808306167,1794965608,660842461,-1531965641,1947600805,1204098578,-2062008326,-1050912658,1060659866,-976905792,1403102993,2007247262,1323050362,241691529,-1695447284,1276700511,-635868277,-861861604,1857572370,-1843936232,-946704189,1410606792,860720433,85176481,1640916694,-1332885695,-1930701161,-2069996197,782089294,-1679532260,457196362,29628103,-1720522737,-560344222,-1235151012,-1343358883,899630586,-1531476583,-2118864888,1232793979,1301139732,1939625494,660676685,-676874671,-51921481,-62172360,-1956137,-1235270118,-1057891040,-1699514277,1470373405,1951528295,1918614712,-1662606552,1975439447,-1571124551,817837526,-1735258544,-778235280,-1677640013,-836083246,-642731388,1197615465,-1470078538,1418889106,1904883333,-590079594,1449890109,381615394,1508056875,-1077966591,440694806,1782406993,-858418490,1866092104,268879197,2030502809,2055208074,-392259941,1194754726,-1325780617,820097504,1715275971,-570600770,1609534213,-1594448598,353412706,1757096579,-391555099,1702791867,332156457,-907620139,-1593109583,-242780739,1208178662,2069617447,1601428376,1778515766,1913105936,-1287153374,550722311,1443705404,65004976,-2041361896,431551944,626364064,826475413,-89994728,-626033301,1945912429,1551044305,1440771643,-1103884669,1782235261,1990463614,-1366778081,883256537,1670696601,300872857,571342476,-614500372,-205060745,-1571061837,1501642367,2057231835,-1157039721,-317041588,888529842,533686711,-883169795,-1991665591,-941919843,1217410910,-1212152136,393598204,601543523,1897165543,-1263051347,942740488,-1389970243,-536001570,725422815,-1083833486,1045964875,-1344559701,-1385519611,-1368395186,1545976449,-1587754818,-1634372834,700341048,726274895,-1178614609,-686785793,-1713409271,-1657219833,-1763554583,-797252542,-1336751057,-1134796632,-1275645566,-177568893,383587478,-47520907,-873395065,50290735,-1571141297,-951708130,-2085659377,-83290714,1421701728,2112199989,600753245,555070099,58729231,189503157,-937560225,764998428,-656876433,-732424832,-1825458222,1372903527,995352454,-127454025,594877253,1644106196,-313310865,1444939666,-9614849,1368431009,879159712,349658408,-270754319,2121446611,1979546621,468669330,-590594233,-75433449,1519105784,-1415576313,1996787209,1742473218,-207541142,1242630029,-1019574866,-587823234,637773866,733516493,-54069062,372927610,-654428743,-1139757298,-243847992,-729835987,-1639472984,1535321414,1448925841,-1377141218,576209385,-500860051,-447562826,-2027267722,1466258958,-1897552971,1438274229,1684881537,-181236984,1617560968,-1351307252,1886045178,618771575,650686404,-143369683,-149754217,-370616227,-1315275027,-2124551581,-1247186783,-659106145,-1993563319,-1763221794,339172040,-1350421526,1969246534,-1710073237,433549611,-2045137648,2046901924,-1506944117,324069894,-402300913,1909630262,192437151,-189033689,1359273948,-1721652706,-936178731,361770794,2135537811,-1927187036,1604129989,-1285519194,421705603,1621481526,-102713752,-2111959240,1491349161,2032865502,603583464,-662773355,-1521472200,1793216220,83372914,-1868905394,852269820,1647434851,-836992614,1610503290,550475877,-1934337578,-832902098,-1674864283,-988983319,1728058131,1455933025); -/*FRC*/Random.twister.import_mti(462); void (makeScript(14)); -/*FRC*/count=56; tryItOut("for (var v of b0) { try { h1.keys = f0; } catch(e0) { } try { g2.a0.pop(x); } catch(e1) { } try { v1 = g0.t0.length; } catch(e2) { } h1 = {}; }\nf2 = m1.get(f1);\n"); -/*FRC*/Random.twister.import_mti(557); void (makeScript(14)); -/*FRC*/count=57; tryItOut("mathy4 = (function(x, y) { return ((Math.fround(Math.log2(-1/0)) || Math.fround(Math.log(-0x080000001))) >= (( + ( + x)) ? Math.fround(( + Math.min(( ! ((Math.pow(( + x), ( + y)) >>> 0) >>> 0)), ( + (0/0 <= (Math.sqrt(-1/0) >>> 0)))))) : (Math.fround(y) > ( + (( + ( + (y ? ( + Math.fround(Math.fround(Math.fround(0x080000000)))) : Math.fround(y)))) < ( + (Math.fround(y) !== y))))))); }); testMathyFunction(mathy4, [Number.MIN_VALUE, 42, 0x080000001, Number.MAX_VALUE, -0x100000000, -0x080000001, -0x07fffffff, -Number.MIN_VALUE, 0/0, 0x080000000, 1, 0x100000000, Math.PI, -0x0ffffffff, -Number.MAX_VALUE, 0x07fffffff, 0, 1/0, -0, 0x100000001, -1/0, 0x100000001, -0x080000000, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mta(1527732617,-1678317024,-1364057557,831269221,-1111835181,-1925090447,1594800285,-346090457,-1034882779,1630596781,-1059389080,-993039180,154889009,-1955214201,195066824,1341998097,-598155104,493440049,343234377,-1466696827,1837473517,-1550057211,391352505,-139337275,238063548,-229611808,1093897618,1099047819,380575627,1283756773,915277463,-1942278218,-1240616276,611772204,-1572360976,-630177882,-771896001,1190246142,1825118003,392339813,-1661804,-1399948185,-1181824756,-690419519,468889126,682204898,-119490601,451204134,495057050,-500529146,374580544,1122214053,-1825301732,-1143688923,2036754643,1844329505,813359743,980817782,-892835051,-1141362936,858256867,-1131436825,-832593373,40532206,1666731348,-1748164817,9066363,1065834083,1673611092,-615400925,668589845,1590577620,-1680068034,657875660,-1592242825,285551233,-188243870,439003309,367199302,-1221206034,-2001449408,-478057540,699807208,-383616462,900293090,-1202290180,1034383369,-720711091,-1462372657,-1913507744,72818752,-732140662,-1135099564,-1023397138,617475591,-2087431028,1554674693,-1048895603,-1905933751,1164562159,-106361882,-1200681891,-173440585,-1946758637,1082102477,1186620144,-1439026613,-1479599407,359894102,858169975,57026195,-1987941041,1610510348,-63893651,807294449,-833948547,1711796311,628666039,864715528,-974694667,425533890,1794138737,-1261984544,1156582993,764903135,1144318307,266002433,-1282640552,-2032082097,-1188874384,1283264394,-1449631398,615918146,-322937630,-2117505008,274928296,-353339744,2101880746,-3786677,1077472602,1001683077,-1089399072,-2050407363,1718223936,-506046912,-599436321,-1064606482,-1900012534,1605412916,873363905,1364261635,150182151,940859086,-337692748,-972211116,1970065095,-1846765683,427810122,-1141611024,-1030740510,1531736482,1374230530,-255785575,-55768848,532545298,1108184065,1130067055,-2143876145,-665861329,-186241063,-453077987,-736545453,-235424422,1168158521,286392283,774849905,265216338,-1270254897,893911830,-335147150,898104767,576806214,279085734,-1925419233,1532016121,632645462,-1410109023,-582179000,-666071239,610324615,-231319003,586715449,355017329,274776531,-262777949,-1175859339,-2007439690,482675675,-358126931,-502747750,1098417841,388457977,-1795234200,-675340065,-176699126,-1963323429,1626556417,255048296,863439757,1705773166,-2033816474,1696046543,-2018076158,513166950,-1276320366,-1537689347,1063858011,-2009649395,-1689664865,569048445,159321129,-1001639387,-543297165,-1344956054,-1847950734,-243717275,822387062,1030438835,435808318,-2015980130,135183164,1118489887,349819014,837326147,-1190728794,1477616583,1803281648,21609962,570163879,326007162,657443326,-366489390,-1812512409,2052728422,276967606,2064919889,698464807,755023784,1197064411,-2118005804,-1323900997,2093667045,-783844419,-525923706,-364706814,1763396715,-1661677762,2047854714,2019399152,1456527422,37198227,1746164543,284979777,-2023033816,115912638,1401348565,237142353,1599093719,-78767761,-1539186787,-1621984883,-2035215387,-1684478760,1996966881,-42890938,-830783420,929191731,-384901164,340721626,-835572571,-1953709296,805166681,-1399171183,1935298706,-1243330403,-138432585,1342145503,-2122021580,1112182301,-2059780240,248818475,-227967687,1510915965,-150933750,-1974261040,1813520643,-990645005,388496377,-416239140,-978522629,-532854101,-622043484,2014091839,1279721525,-1218323352,1941768839,2128411536,-1183478106,141549333,825875729,878309130,-1546124978,-77883663,-812902188,2005090001,-1411901444,1345742414,-777213099,-1385511708,-2034037494,-456213787,966084086,1518162748,1367268381,1353885452,267222959,996571458,-1325967480,-490167807,-1908110520,-2084293292,-1607626191,-486755455,1966905780,1091846045,1414389118,-1515750439,619657617,445736340,713093176,1988652124,-1152458059,759777136,1172667230,670347594,1394913087,-1703188552,1002433826,-1708654298,-1894404049,1671306476,-1280558140,1229728485,-253877391,126382146,-525310015,-830533511,1165421958,1398401508,1320958246,1819159205,440932511,545530307,1807623647,-1573553090,612476473,393622397,910579467,-223267003,472121217,-203702120,-1902460943,-2022320015,242559007,-737165577,-723264985,1960059333,-1394265247,775254413,31094213,1634146125,1960204195,-1843945277,-272024047,-7962882,-522467587,-1561801870,-1893892784,-1556895789,1407274997,-981412180,298757766,-1579526923,-880901652,-664235740,-737754105,-1675057439,871807899,-1291057734,-1657803752,-1088877742,86101760,1147537080,-1375515953,-1708950012,-948602025,-413568541,-2139176203,-1531565799,1568718509,556429416,2100984986,1378369650,989373392,2026346075,-445419140,-1993921771,-1850926218,-1551025827,1297742465,-1166609043,-559351044,1326889512,-1742490589,1447909610,1207062323,1330951863,-1429245133,-2016808398,688209629,506599896,347915019,-285498328,-1000991411,545937316,108524566,1555029862,-1620729609,-1401519981,-1397751012,528071870,-1329250146,-393952743,767813643,161357336,-1508333677,-709496041,-376856896,1937573266,1818588849,700919540,2110739091,-903142566,-1085776346,-30328576,-1321517139,371810061,419972218,1862629097,-197991710,-103966139,1288619078,-61506059,-269014812,2009372620,2072441726,-2055111298,-1685419041,931900457,1762806134,504511945,190985194,816760623,-1589353655,-1937623548,-1005920558,-572964400,1049440570,214725386,500253197,-15463617,744988920,-402772383,1397304547,758657373,-1891108753,1182710881,1300045852,1019967139,-1672361159,45983392,-194502114,-2040403826,-642360563,-1926648196,-1821152434,1700792661,-1048819239,-548762844,2015696326,1013563818,1525434403,848000728,-283813893,1630227372,2012083413,384643837,-167228989,1168336745,190851540,-71990685,1013326091,1870073583,-749537190,1015205444,344389523,811524504,1694015979,-1141791024,-1410571375,-358022967,795344980,-1532355458,-200508391,-1199117423,-1944014315,1662187995,301840036,-1059116428,1919366315,-492700142,1364211422,-800389210,1932218969,236659162,-324595007,1551631981,-1199481514,1095956117,-927624464,-161706271,-1954345528,-1975167701,1045243377,-2102558912,566115677,-1197444777,-1345090344,-1931284491,74777787,700795513,-1551508283,1087287291,1453845473,47286815,-197288690,1180703587,735983677,-763047958,-1586913478,512635571,-546414952,-1483193093,244935494,511081493,1789159248,1027254334,247270817,808880209,1043140754,-413669737,-982157602,-1093110834,1539237905,-501634868,1509165481,2051435455,-1107231337,-119565141,56067969,-417383804,2100844769,1957820971,463214643,1182415630,777615030,-995990468,633757606,-1220405177,1483567960,-150292273,23070066,1275316695,466019954,-883465666,-1200021296,-1164995817,-179602870,2019329356,-1631216606,-605240575,-463645972,-401374957,903554649,1503630570,312539618,270961713,-732899496,645808447,-412710995,-306893912,-137683751,-1178760317,184063388,-1475134051,-859009554,-628215016,-1009059257,1994643601,1992763544,821073607,853551218,1718458344,682081018); -/*FRC*/Random.twister.import_mti(213); void (makeScript(14)); -/*FRC*/count=58; tryItOut("\"use asm\"; h1 + b0;"); -/*FRC*/Random.twister.import_mti(225); void (makeScript(14)); -/*FRC*/count=59; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return (Math.tan(Math.asin(Math.fround(( + (Math.atanh((x | 0)) | 0))))) > Math.pow(mathy1(0x100000000, Math.fround(y)), Math.max(x, (y == y)))); }); testMathyFunction(mathy3, [-Number.MIN_VALUE, 0x07fffffff, 0/0, Math.PI, 0x080000001, -0, -0x100000000, 0x080000000, -0x07fffffff, 0x100000001, Number.MIN_VALUE, 0, 1/0, 0x100000001, 42, -Number.MAX_VALUE, 1, 0x100000000, -1/0, Number.MAX_VALUE, -0x080000001, -0x080000000, -0x0ffffffff, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(398); void (makeScript(14)); -/*FRC*/count=60; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return Math.fround(Math.abs(Math.fround(mathy0((x / ( + Math.max(y, (( + x) << y)))), (((Math.hypot(( + ( ~ x)), y) === 0x100000000) | 0) <= Math.log(( - ( + x)))))))); }); "); -/*FRC*/Random.twister.import_mti(581); void (makeScript(14)); -/*FRC*/count=61; tryItOut("\"use strict\"; \"use asm\"; mathy5 = (function(x, y) { \"use strict\"; return ((( + ( ! (( ! (Math.fround(x) >> Math.fround(y))) === (((y | 0) | x) | 0)))) + ((( ~ Math.fround(Math.max(Math.fround(Math.cos((( + (( + Math.sin(( + mathy4(y, x)))) >>> 0)) >>> 0))), Math.fround(((y >= Math.log10(-1/0)) | 0))))) >>> 0) | 0)) | 0); }); testMathyFunction(mathy5, [(new Boolean(true)), '', true, (new String('')), false, NaN, 0, (new Boolean(false)), [0], (function(){return 0;}), '\\0', /0/, '/0/', undefined, (new Number(-0)), -0, 1, ({valueOf:function(){return 0;}}), (new Number(0)), null, ({valueOf:function(){return '0';}}), 0.1, objectEmulatingUndefined(), ({toString:function(){return '0';}}), '0', []]); "); -/*FRC*/Random.twister.import_mta(1041092235,2103288944,1558268021,952952164,-628504985,-1293293015,44331011,1644410441,786808030,-952831657,-501648209,2032348254,-1053628367,1694125452,-1010012595,2080649250,-314264297,-336229088,1748122721,1726829756,426486571,1898725854,-276186436,-43076941,-410990196,797932769,568988985,-1005426704,-122112354,-853867229,-1395464984,-590402716,2067680587,252825504,2038750424,521007720,-1490104782,-1880724254,-1798433669,1667009836,1344941595,-256777195,1590966179,1384180653,-1533964305,1308371245,1622245912,123658837,-1760697456,-1633934921,1374748237,2061961244,-1467506948,-864245182,-768541604,1260315322,-1569499747,1113439317,-322492375,-692972253,-1639504170,-1860036825,-1257775467,-933118737,-568263922,622388887,1765552906,1176777830,-819552592,1332027947,-1259491531,979744054,982087696,-1751733331,-622324107,181212958,1968801728,-2039237593,-544198363,-1719441680,1330480356,1477929470,692092692,-1514095666,810344454,539305658,-523963110,-530941211,-910237601,72690753,1733498329,1658885641,-36580786,-908861060,-173930408,1899782739,1610834964,1393819527,1758412006,1505004710,71532328,1016527648,-1529426928,-983648237,2041674075,-1096884446,637168204,731024775,-143256271,-1906929301,1807863739,710696815,-1401938243,984750148,-2108953622,-2055453157,1491476446,625446848,-1350702026,2096132473,-930602996,-1584237408,1352455270,1701449593,-1803893702,978312353,-305510731,1660824297,-793695827,86801950,87131657,-1836826795,1141316314,-1572518374,425836426,-449626890,227492236,-1460630240,-1933876116,-659649808,-1492527578,-1698765740,-1149202224,-961043007,2091455736,-369039524,2033003508,-311088294,-1565413022,151043081,849539204,-1863794542,832216929,1254347859,1077611385,-785361694,437781828,522959079,-1787457537,734405554,53130300,1944911353,-549512382,1364249914,1734355015,524111379,-1752539522,-346477219,-1981824925,-699575569,-38197289,1221415676,-973735983,1993845157,1265263801,-1187052697,-661462615,-1195529913,1878461968,-1181932097,-1355787468,-259074568,-1665072943,331337895,1877142346,-129961436,1966754711,-1286288307,-446583254,1689385457,-307058715,618543520,-917134482,1445536193,-996388329,137345676,-861088960,1728866231,-914524643,1127964816,1741715561,1914959480,1813167250,-1588123772,942204382,23238092,843250541,-651386381,544669141,323336706,1070836064,631573566,-1473404770,-196912799,1022357624,2130816241,-1746160955,2092919821,87114639,1194919379,2029278090,-2145021705,556655661,2015221758,-749466337,1055901523,-1357212164,854669972,2125917887,417732075,-2137967820,-790286812,857018455,505873872,-1761454219,458772134,-946851934,1810875683,1888751843,-760935218,1374266853,322928161,19473169,-452612788,1333209943,-437628499,1886194536,-1546650727,1909236788,772433342,436431646,1445708941,1608317346,1422628664,697790746,-155004671,-1340284642,-1862521328,-140032133,-483577507,-1575791904,-386771673,481855612,-463824403,1059957975,181920780,-704897000,-192572813,999930628,-2005550150,-1999580544,-379716221,-1351140350,1577666235,1617117815,1437890774,-1441051043,467108256,-990466415,-314441868,42661297,1567975243,850643699,562675980,-1601512623,305158425,-697280583,1718276359,-1816196961,1801796575,1750971052,707728495,513315090,739616354,-1457482696,1951912982,-1644269816,-2022311973,-1044679916,-744526438,-85949185,1072098229,-1243207717,1860790772,1722122683,-520205075,-2059820637,-1837966415,-645711959,862750865,-1272136855,-722887775,1206069968,34462381,-172592869,-1582967944,-1249130188,837187499,562106508,381566947,-1793506425,-660823610,-1064584062,1213872018,-840044401,1971060807,1104095074,-332423433,2075442820,-449521990,205570516,-1849192380,-1006595080,-1669806755,28599096,2091718658,1160363388,1720286577,1058809715,-1758189421,-1105339967,-722515886,-1483801676,1260144507,-1780651904,-1572839446,556763112,-979623777,2131762280,559143440,2092700315,1775526295,-1691845178,-1374781804,-877745706,780538190,1737951453,748516091,-1243995194,-348602537,912915082,-1876222028,1239719622,479592339,1673064163,503893261,1518670250,123338075,1302833995,-2106756964,418532070,-1508161505,875742092,-903723952,504133270,1104351583,-2038786714,-55510883,151866031,-1742625768,-375369891,-801608761,1071414069,1708866107,-162600122,-1006507450,1816698138,-876882166,-2095781156,-33591276,431463033,-293227806,2055343845,-71428372,408092545,1589846988,381599741,-465623798,106603760,-1703316872,877088293,1767466981,926291679,-1786552661,1108321331,-2058156482,1622864922,1684272999,122042993,-1940637467,757264106,1190579059,-449010740,-799985563,-2115144461,955943807,744977482,628919188,-612731841,1298557191,964517055,-1558769917,-1657352126,-1484095691,-570560271,2011143577,-816551466,607420784,-1079387703,1661710462,838989534,257243082,-96391243,1644679359,-636003336,237048422,-2046829914,-253732362,1945963952,-409895231,-333317842,-777707093,-1326913493,-1826308663,-155480293,-152892709,872270515,21680451,790600560,902722391,-537735576,-163472206,1632364608,-805172868,-211544675,-1398083098,341981142,773535903,-352559275,-688165462,2017486835,807426384,1822677716,-1133353916,1445772444,1918152284,107543038,-1826307282,666262170,-1758950102,-525028167,-836175841,1816187094,908857450,-1043688208,522192092,1900870947,476402331,-1043606188,-111260446,49825604,-2090805515,107935663,1065896303,240607992,227584404,-980180653,629037422,2144469092,1575377708,-563181342,2082298000,-16484011,-1821837530,-1120131116,-803139727,834875273,-411724014,-1789954208,-1320952617,-361246091,2032597275,-80321548,-628167797,-1188443371,1451788080,1330473802,-111937830,1489335201,-1771980003,-424517290,238677241,999892276,-2010042213,-182380015,-1953466285,-1072571403,1973772740,-422472328,-221994583,2074191432,-1149920761,-1755751739,1488300575,1483546126,691715878,-614353208,-628158011,-539115201,-2068391726,104952475,1317012072,6509854,-2110508722,1026155022,783647808,791422522,1301115132,-256683303,-1513759361,1204575305,698116945,1737224543,-1260554604,-130950694,-1529243400,1096284559,1247839394,61772612,1298245985,-1064277713,880940973,-953727640,-642821454,-701411216,-2121530390,1775467131,620930593,-1049403431,307182206,-1278219759,-881790566,1004645793,-753257559,1406881497,562131820,157425308,1057893686,-872824805,221100064,698809364,-894348953,1452776253,270750606,812553364,-616851096,-1487203324,-1713674223,-1317596536,-1465393020,1234887227,1761535004,-1170166392,1151997274,1001507232,-1752493608,-1176792956,-1262467466,-65165800,-345410946,1545993514,-592332073,334216756,2133762229,1533373747,-1981230561,-121057863,1692141632,-1451653618,-1060367661,-1207112410,-217250112,-2110377300,-1430954221,-169835412,-1743340440,-1307979852,597155613,2055444686,1225191137,-2026503032,865640024,-2122473336,-515263733,-1377988099,-296488112,85638632,-70334738,-706337106,-67963559,-489815339,727987317,1251016369,-1867454361); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=62; tryItOut("mathy5 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n i1 = (i1);\n return (((i0)-(i0)))|0;\n i0 = (i0);\n return ((((((!(i0))+(i0)) & ((i1)+((((0xffe6e0ca)) & ((-0xad98fe))) > (((0xd1487576) % (0xffffffff))|0))+(i1))) < (/*RXUE*/new RegExp(\"(?!(\\\\r|(?:[^]))(?:(?=[^\\\\S]){1,1})|\\\\B{3})\", \"yim\").exec(\"\\uffedKK\")))))|0;\n }\n return f; })(this, {ff: XPCSafeJSObjectWrapper}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mta(-627968206,-1323126763,-2044788534,-2146755127,-1457184210,-278094335,1032467792,1434286684,1069665866,-2000748910,418537800,-1093140810,-30859741,-1781765869,955568994,1251363224,-1515456779,1828510236,193732897,-1176891136,501918587,-323049119,-1428586367,1253914745,1842872748,348875265,-2054992691,-1583240258,-2007322665,-1724048478,1246958786,1530810291,1686329262,247699634,13881086,-371832660,636806862,158916890,2140099824,887258484,1370495779,-2053134658,1473887176,1734446598,777225698,-2135938777,159611964,-46301485,547728095,-1039334070,1010390349,995906574,1408247414,-1226133434,-1815155217,-377818543,673474441,1544499542,1593527208,1531028669,-8223789,695664832,734200578,391125620,-73098556,1480442705,-1621066121,1908405188,-1930522730,-2062115141,-837412427,988997266,99313699,348655452,-1957792880,1458311990,-1407354202,923417789,1407301540,384450385,812574308,-714347810,-339865339,1524512583,-1821227608,906792226,-693254974,-209673720,-692940949,1865587552,-1928944971,1094379843,957328274,-1530950450,-1651779226,-821703841,602519610,-1990477401,-50640606,870486045,-113317246,-2027679384,1256468481,262659591,1718195850,-1446291758,1448025495,463106386,-2002026662,-1549452216,1970629042,-671757280,-885475521,-409496413,-712016085,1474964187,-1701644421,-492835830,1826680880,-464139277,627858324,-1902117045,1501107914,1906099285,2136654984,951372096,-1329459276,-381863417,1806467113,1089586451,1254473392,-1109504942,-1785431073,1257352542,2082053139,1185215960,-1773373474,2071220280,1122156856,2091437353,13763286,-1384965455,1603714880,966317621,479992063,454911141,-2107120839,-1452736149,2035381795,1476821453,1108665579,-1033147349,-251071593,2038783052,471481820,-1976875062,1328692766,1166223184,-730918349,1749426277,-2047055870,-286469512,2061982947,427249389,1575413324,807699102,1069422040,-1908662729,-743478588,-290046552,1533576264,1879804716,-280044499,-1793360233,1327915019,-1546233034,-713738254,1200952220,1593162600,-255640162,-509869331,1713316415,2020653064,2120980382,1423875342,1507145884,-1006058589,1224810165,2094751231,369783721,-424715610,-659064913,427119169,-412916482,-1733924975,901633940,-1784667215,-422353182,-394960297,1378369874,1573778300,-1619994553,-798523119,-468148279,-205763546,35651525,522960693,1020480089,-1850449559,-1377821948,826628354,1855277185,-1439698290,-649986892,-1794049793,327207221,102675922,911048933,1422377318,962630701,1658109514,477652071,-939778394,1382855813,-316971261,1562227791,-909609683,2093101234,609815103,-2041079472,-394687781,1772559066,-528540439,-1358713291,416374031,470407579,1682025692,-1179592218,-1752860463,265649166,89876188,-1586957771,2014617406,1528353665,-956218859,1941611669,825580563,1695349089,-71590978,-1479002866,-123704608,1110867325,1051632029,-1857489856,63468513,-799744168,-784134998,-1467480160,-1281333310,898301662,-474873090,1318030016,1123267717,-479559558,202576668,1433486588,-676854638,209503905,-2119861405,330420872,-1966620648,2045254627,1992047269,-1598394920,-672709960,-1398751954,-1880701542,-2025147686,1308404660,-1950487439,22590268,329234505,-104983849,-1586906370,-1944081147,-322187093,-1317241631,1867888451,-976409104,535681620,-1689313124,-186068403,1312231520,-1947192213,194255311,-2112767982,1604638089,-1362386881,1396527199,-510420349,-768357799,146133154,563652556,105319076,-1635931628,-2005542998,-958668202,-978858641,366288457,1755380846,-1448981944,-259796800,-1375547221,1971211408,-1554887756,-1938330639,-1362554774,-1647957261,-747813267,-1433683314,-923673555,-36829401,-1423388522,-1676152670,1793919323,-602088813,-1661079623,-2065386048,-1245808075,214192363,121902629,74047350,2130674851,378874891,634191187,-1438670364,166277679,-202126636,1164404918,222227200,-1914687350,-2042101007,-1418937927,-1870904517,-1279278081,1014444996,1603496803,1524913568,-1640623549,-30429352,-595704767,1926167147,1874064906,-720020641,-1099025760,-1049643880,-810038095,1344843603,1363845926,-828340582,1122247300,418108272,-773408050,1050194032,-310868383,1872775661,-435387557,-1089902676,-1404722433,334469683,-1281506587,1183152441,1040991885,-849225614,277362971,2053913744,-1084863140,-1617235613,-830751193,483419366,-2003707536,-620973927,567175688,1947552701,662950515,-1572119362,1302055904,-998892180,-1877775758,-1355538176,775264156,-1179692575,234588648,-358622521,-1587703855,1106806245,-592859347,407230000,2100769296,744868832,952073658,-843719749,807355580,762991924,1161597059,782811493,1543141106,2067246858,-113406318,786550653,-1005042952,1715522792,-1460334479,502712581,-1938494507,1793648602,78919267,1377488998,655160307,-1664922431,1876972448,-700641360,-9414447,1649830678,70523121,-807446852,3277290,-619598009,-285933448,-915965314,-474872788,1469344547,-367745211,840962761,2076427114,-1823765446,-711968769,1220272090,-1001044162,-599847399,681303230,1416379445,-1021696242,-464797056,-734743209,-1808689952,-1597158317,1968927730,-1617433325,-402294382,692878044,-1648454877,1964814577,695390012,714557505,1852314068,139638208,1141839278,47885327,89628623,-1223458147,780185701,36760505,257421970,-2137354552,-1800338386,105323929,1451248529,-1426279264,-1857653315,-1526456495,-1323226498,1756146848,298849899,714930959,1511347696,820128924,-666533814,1050237708,2144502335,166735845,-638076695,1452821296,-697778730,-1371516054,140576692,1731580521,-598015284,1618782038,1841623284,-1654379470,-1432772759,482688879,-1992943752,-43716154,1078746232,537598209,-1067418712,-1203681961,-1701878976,1159831946,-360942782,1492088884,1249546447,-334565054,1784290833,-1223420132,-198002125,-2119707368,-1964563844,2138963037,-1848426593,1910241337,1390690614,-1282065483,1020096725,1698654902,-1473779168,344076870,870826820,256002487,-651164558,2000936386,1938971278,-1168703572,2123205435,366781118,617978393,1257159883,-72307106,554109840,-1639186277,-1989161203,-1739648175,-755167409,37948756,1315324944,150164475,996773536,1424772688,-122107417,161416132,-1776693061,-757990265,-810883441,718146165,-1883506465,-920218225,1115054920,308827358,1600015275,1233038319,-1328843830,-135968895,-1004358603,1482651607,-2024951004,-1091237610,1296974409,-32456332,1932350662,-516646052,448399599,-116644452,-483167390,1104570360,314178971,823418968,-1059135775,-1077950541,741104471,1107082942,879139331,1201938729,2004457748,-845440959,734702479,-2067411707,647825961,-1837746232,-513136303,-1554095004,-1556431307,-764467103,1542268863,229075812,-1799314015,1022030216,1834969679,-1074510757,-1983324732,-1534240389,-918574744,1387693341,586530428,1227453692,1635884563,-1491009054,-1075068785,1644834846,-1259906286,1368596557,-1237441594,-978972822,-745427113,-1753261571,-736937033,-1244654313,1735882550,576022604,769197201,658309687,1273443812,-2105691199,-1285561148,-761383802,-1831648649,1153860811,1566481298,-443271075,639987746,488456278,-794279671,-1310632780); -/*FRC*/Random.twister.import_mti(98); void (makeScript(14)); -/*FRC*/count=63; tryItOut("\"use strict\"; print(m0);"); -/*FRC*/Random.twister.import_mti(107); void (makeScript(14)); -/*FRC*/count=64; tryItOut("mathy3 = (function(x, y) { return ( + mathy0(( + (Math.hypot((Math.pow(x, (Math.imul((( ! -0) | 0), ( + Math.PI)) >>> 0)) >>> 0), (y * y)) !== ( + Math.atan2(( + ( + Math.atanh(y))), ( + ( ! ( + (y >= ( ~ Math.fround(x)))))))))), ( + ( + mathy0(( + Math.fround((Math.fround(((Math.min((( - 0x0ffffffff) | 0), (Math.min(mathy1(y, (x >>> 0)), y) >>> 0)) | 0) ^ (Math.min((Math.imul(Math.imul((-0 | 0), x), x) >>> 0), Number.MIN_VALUE) >>> 0))) == Math.fround(mathy0(y, ( ~ ( ~ 1/0))))))), (Math.tanh((Math.ceil(x) >>> 0)) >>> 0)))))); }); testMathyFunction(mathy3, /*MARR*/[new String('q'), new String('q'), x, x, new String('q'), x, 0x10000000, new String('q'), 0x10000000, new Number(1.5), new String('q'), new String('q'), new String('q'), x, new Number(1.5), new Number(1.5), x, 0x10000000, new String('q'), new String('q'), new String('q'), new String('q'), new Number(1.5), 0x10000000, 0x10000000, new Number(1.5), new Number(1.5), 0x10000000, new String('q'), new String('q'), new String('q'), new String('q'), new Number(1.5), new String('q'), 0x10000000, new String('q'), 0x10000000, new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), x, new Number(1.5), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), 0x10000000, new String('q'), new String('q'), new String('q')]); "); -/*FRC*/Random.twister.import_mta(-639877403,1043903093,-177670693,1814949037,587932772,1859804692,130344986,1524397990,720879148,394479190,1683771473,522301788,-49329365,-1738396855,1124853796,589847508,1804117003,280644506,1980100442,-750136575,-45272055,-345472148,1620402210,1493980022,1162873455,1689865832,847691465,-653131835,-2092835987,1696304011,1871067201,-592139345,-838420953,-472128685,1669287797,-1192307678,916218436,1141139730,-1992641920,1681951409,1249119365,-1346790694,-275789542,1068637775,-851666823,-2015651568,1138609462,493801703,-1254681019,1742296618,1760909813,-1234174424,-210755151,-106709772,1879792340,-1207553046,125130647,99282325,-624921771,-1365555978,280270286,389754254,251630325,-1967009793,-610868974,-1803000739,2005404528,-2031236861,1328741292,-129719908,200882392,822194286,-1692241389,-1599920487,-631823387,2124550643,-748832534,57417949,-932644217,685072302,-219122395,-766581935,-1951061693,4787505,-2098069896,2110695761,-1347883822,1544659968,2146978308,-121752596,634308274,2096853663,2140878483,-744374143,1410583065,1295115122,345209716,-2095491753,-2135579479,479489088,-2081262820,1144778120,72629404,1981115087,-23472085,-1430239712,1203218534,-396669201,998801461,-844192827,-540517341,2100510296,1612994802,-1934429417,1663998509,-442879141,598456115,-974830675,-1745934861,931743612,912303450,2017376547,-1843326543,820980723,-982884142,1864555032,-1643874478,1451757415,-939665043,817790438,976927792,-1725156869,-1631029007,-2046593722,-1122076041,-2109082398,-436913331,-208900141,-1524638945,1309623675,-2025689476,1419956480,-785869419,1878947143,-1659305655,237146616,527289581,705359169,-1614415284,934886005,1897632581,-1543853476,1856699128,1364415813,1282082826,-682464059,-719006679,1998425587,-1250633926,-2051832027,-914137046,-1456120601,1805899485,1574840288,-114894317,90505731,1729796696,-1964718592,915241260,2131607487,152151502,1852899368,1815791655,-759702643,1343722277,1591476730,611231975,1476609184,-168163698,-1039394266,1858268357,447043117,-1388053497,-888838186,-1883965398,406220603,803674084,-58181217,-1616190865,-1483273998,-910558592,-1192397904,-1941572060,1553161939,-28069199,1525090415,568276588,-808992888,540890197,1332176813,831642910,1322299608,-1995518171,-851870463,-1986760848,547572867,1120344729,1111699260,-1047571329,-1934518474,462553480,1918930545,1324717590,-27670479,-134883726,1223192333,5489516,-1724119945,1462160975,-1548149422,-739113433,2124453057,363516608,-1985973380,-358929746,1833225024,-813675283,1391987493,1024687837,408715369,419324352,-1975772465,-1605158447,-760940990,-841995340,416770114,190524069,-1231659802,1489702747,-6096827,299819660,1057073083,-1750302005,-788482594,-261117681,-141037172,2026315630,-1064240682,-1199269397,482694482,-1591747305,-1022367106,1813853256,-362137626,-247754647,-337617608,828344411,911608736,-2039360320,-2115752,-2070141389,-619829784,-1990487009,1888873418,1857866604,-1561415479,-1149871810,-743570965,-429821026,-353621738,-632380575,1869231604,-1752780804,674131050,1262390896,-222006136,612110151,235605039,716814543,-1277396945,1768214543,-706944160,-390926699,-663604790,-360205025,460783098,1077489544,844235574,1489879204,56099515,1773999622,-1131583198,142134967,-1421166776,-2015030006,-1175969353,1982447964,-76603352,-1732194832,1798514656,-453390648,-895782909,2105644193,-597463584,1196870408,-1425732692,-754054714,554846942,-434201242,-1620833177,2013848913,1291331314,124882713,-1107179256,-2094882521,681361969,794138186,-714025637,700362712,-2098501542,877556685,25666130,54139683,-118665466,874481857,1472455594,1592145568,1076231897,-1689160414,-1627486383,1948353908,1492036261,948068602,-866556400,-45834723,-428561923,-195606865,-1115953032,2074889176,1725186231,1453212336,-1349487058,883728921,-478353901,-1679893937,556671133,452685228,-1603068764,120155791,1695974222,-796858855,-223110185,-593442968,-1053069822,910153003,959352810,-1046308208,312470947,-1099140426,-4560461,-1971938050,-1779620080,-586830630,1245825186,492108794,252783213,294385325,1214779356,-2074235706,1374602296,-1783334652,454529744,680689089,-836673345,389870345,-2140218142,-511905253,-1892746103,-309159889,1793201728,-1524253226,478952718,1951431108,1609403855,1714955180,-742837558,-1484224109,-2121607917,-22066073,1018764563,-671006769,-1076158745,-1457365057,-1363350161,1930441773,-2117001627,858739879,931806406,2017715672,1885697786,1835370127,135803259,1214327648,-1611116423,-698379059,-670614025,-6828637,1381772172,-723713716,-1890591365,-1205534302,46579917,-809125018,-1328164143,-1979954574,83380609,-1902485311,1127691174,797205775,-71966732,2005784843,417541638,734805476,-1160934709,-400026410,1612993696,-68747055,1189829922,711134695,-120074957,1073477711,630623245,-524552904,2133261100,1273424161,844103519,-387155749,968401431,-2055751262,448297033,1298622196,-696728075,986549837,-213833448,-752562681,-1639393095,-652958549,1160855665,178399240,1091366830,511150642,152945161,2046667998,1136875538,1707869135,960111677,979045054,-2137290984,295658999,584206400,485236399,1438707383,528257291,186019265,-53551375,-2099236536,1307209042,77641948,-290837062,1546010044,-1987043103,-2076573857,1719093862,-192818634,-308653266,-1594519643,820483447,-28086127,1710103486,-236088475,1603885901,-1703430671,-1059847213,1719640558,1919322234,753110315,-772655554,-190679656,-303276654,-2014739962,-1127115615,-1177099260,-1502233739,-977002019,-1282920489,1869369281,-891546430,526823701,573408340,-183075015,487609803,659108458,1324452912,310081510,-500255752,825471809,1355650537,699873923,-1867550114,235184228,1234378458,191035868,839179617,-1057291635,-180614269,1783789055,390854571,603721509,-1518434176,-1764664653,-2016234127,-62587925,-2145317648,1795341962,488723818,-1842438993,-531539405,1485185138,-146594004,755110249,1246616946,-1695966127,2116694747,595082942,1614007412,-1053966482,34936133,1706828289,1720582618,-1574610123,-87144214,287766949,-654537555,-779594286,421486782,-1217666200,2138083906,1433748073,145983549,-1247965655,1163569710,746205476,-1254494027,-1509958555,-1258097171,-1728598864,-1048312870,-1953622897,1743178271,1091881625,-54318146,688990901,-621626573,-2050031842,-577709180,-336067126,2120118427,-268853985,1766270248,-72204435,-1014843060,417671057,-1678475050,558342438,532045915,-876311657,-25373421,449237970,-74940365,891118367,-1869325264,-22398226,-921588987,895269264,340547601,756322489,-1580265097,634493190,320845282,-1713257928,-2129668928,2043359054,-12396484,15804819,1828500898,764793616,1115571401,1397303708,1779600095,853659720,1071661126,203678442,-490874025,297571695,1570365608,512996651,-1459442668,-694286771,229017896,-72070317,-713311221,1137424734,1267686389,-30966799,-389689520,785276291,-942477399,-156339706,337228310,-97458258,-1607316156,-1035164554,-652102593,-959841526); -/*FRC*/Random.twister.import_mti(4); void (makeScript(14)); -/*FRC*/count=65; tryItOut("mathy2 = (function(x, y) { return ( ~ ( + Math.hypot((((mathy1(x, y) >>> 0) >> (Math.log2(( + mathy0(( + x), ( + x)))) >>> 0)) >>> 0), Math.fround(Math.max((((0x100000000 | 0) ? (y | 0) : (-Number.MIN_VALUE | 0)) | 0), ( + y)))))); }); testMathyFunction(mathy2, [Math.PI, 0/0, -1/0, -0x080000000, Number.MAX_VALUE, 1/0, 0, 0x100000001, 0x100000001, Number.MIN_VALUE, -Number.MAX_VALUE, -0x07fffffff, 42, 1, -Number.MIN_VALUE, 0x080000000, 0x0ffffffff, -0x0ffffffff, 0x080000001, -0x080000001, -0, 0x100000000, -0x100000000, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(158); void (makeScript(14)); -/*FRC*/count=66; tryItOut("/*RXUB*/var r = r2; var s = \"\\n\"; print(uneval(r.exec(s))); \n/* no regression tests found */\n"); -/*FRC*/Random.twister.import_mti(251); void (makeScript(14)); -/*FRC*/count=67; tryItOut("\"use strict\"; print(x);"); -/*FRC*/Random.twister.import_mti(264); void (makeScript(14)); -/*FRC*/count=68; tryItOut("{new RegExp(\"[\\\\xD5-\\\\uc07B\\\\d](\\\\B)|\\\\d{3,}(?:$\\\\b+)+?\\\\2[^]{1}\", \"yim\");print(t1); }g2.__proto__ = this.s1;"); -/*FRC*/Random.twister.import_mta(-241248989,-604033046,-1619316621,2095060157,1064640113,1266900845,-1298764886,-1021031461,-741957924,1420907860,1573712674,1934758918,1517713408,-643762768,324201767,1661557180,-1198983396,-1291928097,-1269559074,1765034522,914584080,1607390494,-684460465,-869438237,717195570,-1417162145,256755190,813713855,-1952374342,1428991022,-239486934,-731322837,271748165,-682823894,971105820,-1141521382,1562693541,1333506145,-647558440,1423887942,778334074,-223322833,-597047375,-219047401,-1785394819,1529047254,1694429620,1354233338,-307989588,1952888974,1577500517,-367884273,1037906388,1718757208,354343932,-1555056694,-666984953,-777745734,1853326918,1912684633,-1962536481,-1880613806,-1095098528,1898409510,-2037617594,1689818291,-1855440481,-1688755417,-1094557306,135721278,471884011,2050204780,-1786831313,2108883404,1650476921,1339659795,742355591,1353096882,-190898062,-1869144262,243053030,-1187233856,683779362,1591846001,2107134342,-687835718,142046190,1301982584,280794333,-2095753881,1406630920,1261008388,926012057,1339081074,-1622272579,-1405352241,1564490665,1792691548,556169697,-886756020,2105231313,537369114,1460959873,-1152120575,1915294074,757749763,-1084334002,652362557,-1897115012,-1507783897,1462674863,-1598202329,-1856673488,-1592990957,-1599647570,-86395353,2063668100,667101605,831968833,209429766,-2031361173,895922311,1471053717,-1519942376,-1948936473,-1893517479,-1722938906,-1479079677,-898522532,-45349845,-854030256,556772235,1845734346,-1916120938,-607295968,-1780998238,-1011435128,-1414229724,1059237132,28582523,267209345,-686621745,1288884553,1833597073,1446490457,1313004036,1569035181,385719704,1975504525,-554308801,1149769543,2145842497,71078996,1668230699,-1629767783,1185098366,1199155779,-1346855312,1126621181,-1522158641,1176242723,-1958768210,1878776169,1499002472,-223667349,-377489889,-2135122914,-2032769262,1299606218,2060886652,-658432757,-967642652,1273062004,847364097,931866476,281764986,222692214,625697564,-1430092156,269816750,-1902327781,1948372719,1352650996,-682745819,733593004,-555605769,-1844439680,-1030645255,2128549056,-988550089,2040996062,1430081264,1856036238,657374535,-1917838426,-273857782,655554135,-1511346345,-1825648615,1521920582,1948348912,-140681838,-847913449,2066380798,-981797772,1524033220,815596273,-464061880,1489731248,-456414000,1990652330,719077923,1569726356,-1367255246,-1095287289,1269217859,1806813461,442374312,1058198314,925064293,284592313,516742006,-18817520,-713041901,-1259421226,1743331990,918376007,1981799058,1322901249,-1828454253,-520705787,-162254266,584131660,-729907600,-1890582534,1331936081,1341815591,-1465793456,-712255237,312019270,1596495538,-2121524067,193528659,1505203012,-919255783,-935878807,1232877297,-204894662,296517559,1588897819,-1381328420,1555108630,-1632450132,-287785699,1164994339,1241929032,1309125118,-226405814,-1417200249,-881578109,-1161036322,-465265460,-1010880001,1786423827,-956016422,-2065947065,-1543405972,1565841077,-2017048156,675686110,-2059108115,-1638506877,255090403,1096922764,1775620030,647152848,-362049978,-766323747,1794376903,-798496500,1285314280,-129033111,-814305489,880145495,-1675627449,1315639682,1797800386,-1486818931,390901200,-1973119901,1868683959,1538833346,1897778967,-761613542,1588265763,-975797976,899768618,1346373139,262813596,-1492911797,-2114582254,-2052571658,1642602723,1335105283,1159994212,-1659362159,-1071760811,1031012181,1871087916,-842176683,2023601928,-416799019,-939486914,-789671006,-2133033793,118906872,816156437,117976036,1247593001,-199337056,1326649435,131836147,-1874157236,-1639493866,1094433929,240476849,1916756735,1892941120,-160405139,755284027,237759628,1852317959,185002763,1492426655,-858740964,1842299380,-123928805,720928835,182439587,-1172682648,-1228613628,1677308285,1383036401,-1343828356,-295925452,1022058647,474098516,1551361267,133034272,-421086138,1161230380,-444205741,-272727976,1532580780,-1153413386,-358551788,755712549,-769216245,-939905139,725149109,-952319202,-1253068723,-252118029,-853752715,892646605,-1360009595,629155221,230923490,-1075471917,1174990283,549564921,-613007514,-262481276,-1894556938,382399465,-1677129889,6956452,-1421218929,177733217,380521151,757674156,-1527542917,-262316986,1952824213,-2040264939,-1981142037,2089314713,-1606214449,1282125816,-621545903,-1614951996,1060275307,657010807,1614558935,523655423,-1914081210,1628683295,-455020569,-27243879,-463793684,-1350211485,331068124,-2042626919,-10389041,-801092296,1275187338,2033911400,-1527625539,-1433497459,210587685,254144668,207314975,528513344,-689033031,434441702,-526740353,-1534560796,-143809914,1760010506,-1938914860,727657028,-1739193004,1807955632,1392966716,-705133305,936763566,969082071,-132626468,1392380884,192975599,-253132505,-181989656,625318738,-1939421506,1685697848,-172625406,555699460,1948069243,-24588584,2065935598,481658135,2061060606,1913007823,-1691672887,-864893909,-896519776,-860664702,363306173,1045081249,-237298935,1224313288,-2012211271,1174965919,-1655439489,-209029037,1408522846,-1823882465,825338657,-415426970,-1246782524,1737931252,435750816,-740278930,-392846208,-372122380,-1283527086,281629992,1753055343,-274791869,-1773558788,-2103190476,-1173430230,-227051918,1068572518,985397559,-791214637,-124411764,-547515389,-45127045,1752618197,2062276410,-1139616235,960071103,1999957443,2113414144,-2088884584,-1322969777,-868363497,-1481613873,81742704,915527697,221656511,2134279798,1691212120,-1276493430,-1566030907,-16920949,-1806548281,1037423040,-659241767,1388654521,1319963046,800030499,-612575302,331594402,-610631956,1572127890,1154215879,-1085453221,-339795902,834963641,471149096,-149020645,-2000751396,1262582701,-2048792870,43131694,2111741687,-1982290364,-1409538704,900759088,515605851,-1336418707,993119135,-1067452261,-427152806,-884938382,-1168663932,1243710877,1154403930,-605525516,-1556499754,-1935393842,-267920273,501555426,-1216040111,1713096330,1272625125,1865563024,-1251494581,24469423,900368950,1876063505,2083143498,482204240,904170248,1202473547,-767400806,-2078417096,-219679653,-2005248124,-1028656116,-979223460,-1313429290,1017654040,-1766692736,-238353757,-456115876,-672467820,895975124,-1787512294,2023836250,791166587,-1772842279,1594131110,-319273423,351155768,-1033418096,-953672172,867051863,2057104747,-475608737,1816702980,-1970164826,-526577177,-505730186,-1417292369,-503707414,637793283,-403395008,604786395,1186999211,-1341213732,-1104814350,1571047816,1310005225,2043685174,-827123217,-1178644143,-1333849709,-1309060142,177592531,2006958739,335445828,453604714,131205992,1873574149,-1933556663,-1039739070,-274007385,-1996313725,-1097027939,1306524983,782685680,1023967685,504801387,-454428346,1811575864,2170381,65548956,360736570,984291888,804333260,149589553,1848410833,-158701325,-1583034542,-709816113,36370364,1999640277,18506988,-357682625,-292713021,-2133563823); -/*FRC*/Random.twister.import_mti(360); void (makeScript(14)); -/*FRC*/count=69; tryItOut("/*tLoop*/for (let z of /*MARR*/[x, Infinity, new Boolean(false)]) { o2.__proto__ = v1;\nv2 = (this.s2 instanceof o1);\n }"); -/*FRC*/Random.twister.import_mti(449); void (makeScript(14)); -/*FRC*/count=70; tryItOut("function shapeyConstructor(dzsrwk){delete this[\"toTimeString\"];Object.seal(this);Object.seal(this);return this; }/*tLoopC*/for (let c of []) { try{let enukze = new shapeyConstructor(c); print('EETT'); Array.prototype.splice.call(this.a2, NaN, 2);}catch(e){print('TTEE ' + e); } }"); -/*FRC*/Random.twister.import_mti(532); void (makeScript(14)); -/*FRC*/count=71; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return Math.ceil(( + ( - ( + Math.log1p(y))))); }); testMathyFunction(mathy5, [undefined, (new String('')), ({valueOf:function(){return 0;}}), '', (function(){return 0;}), (new Boolean(false)), 0, true, [0], /0/, 1, -0, 0.1, '\\0', null, (new Number(-0)), '0', NaN, [], false, (new Boolean(true)), objectEmulatingUndefined(), '/0/', (new Number(0)), ({valueOf:function(){return '0';}}), ({toString:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mti(607); void (makeScript(14)); -/*FRC*/count=72; tryItOut("mathy5 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Int16ArrayView = new stdlib.Int16Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n d1 = (-((+(0.0/0.0))));\n (Int16ArrayView[((0xcd471a43) / ((((-2251799813685249.0) > (-8589934593.0))-((4277) - /*UUV2*/(y.setUint16 = y.bold)))>>>((0xf9c6e270)-(0x4de7be6e)))) >> 1]) = (-0xfffff*(i0));\n i0 = (0x49e6b04);\n return ((((((i0)) ^ ((((0x35da02ab)) | ((0xfbeb17c0))) % (((0xf9cb7227)) >> ((0xffc00ad7))))) >= ((((0xa9e7b1b1) == (((-0x8000000))>>>((-0x8000000))))) << ((-0x8000000)*0x46e3d)))-(!(0xfeaca2ba))-((0xb4b8c2d2) > (0x3cf6ebd5))))|0;\n }\n return f; })(this, {ff: /*wrap2*/(function(){ var nubfin = x; var ykxoqh = XPCNativeWrapper; return ykxoqh;})()}, new ArrayBuffer(4096)); testMathyFunction(mathy5, /*MARR*/[eval, NaN, '\\0' , eval, '\\0' , '\\0' , 'A' , 'A' , eval, NaN]); "); -/*FRC*/Random.twister.import_mta(-1994426350,685073023,52669293,691492740,-1351438923,-1619736244,133950717,-1180499370,643398176,1474134009,-1654963522,-2018136947,542976765,-544983344,1038077121,63177422,379182729,1137640841,-1811893902,-1077293844,-661993463,-629740814,1936754554,2113990365,345857188,744870987,-766613444,-802679334,1564718777,18864322,186942486,-2081424087,539420026,-1407618519,-388109083,-757117857,852733521,1221210196,-1613064927,908950201,-733105357,162831839,-1689005766,-814239370,390659477,1081693717,-1284447180,-90112515,-1331466777,2058920943,-1180276635,1621374027,-1025374043,1115087926,-1716007844,-1289785021,-176047582,-2068726928,-201569619,264403759,1992664328,-1201661482,-851694377,1691389911,-223478490,1113362814,1010222540,-1229919177,-143288627,-2016291454,1432638041,2083011979,-393207014,714821463,82484220,2103476206,400707647,16017678,-1734571442,-1079248769,-1010594845,-1456490262,-569461198,1143472121,-1751978808,2097298504,1375320959,-324084047,469515508,-657544373,-374773739,622855260,590818249,-1606524400,-1038055929,-2002900099,1369505782,980536741,-2026187421,424205756,-2075029558,-1890100129,1544974470,735160068,-1053780616,805326596,285558523,347444124,293751712,-1356126566,-845287413,-135792445,573694228,1637294318,-126795292,-1969313319,39309521,-897408942,-2082720679,-1729142204,-1100646805,990325073,-1185945604,-380500580,-1071469016,-51324258,-237830207,-1519965771,19175568,-1379095206,1942552478,2099269752,1110173201,-1240540444,-371868409,-310417654,-1512205059,1114928740,777392819,-119155947,-111445283,-1873550357,449460700,-1285146660,311158580,-669512680,2002055558,-1083535927,-2087268792,-1126108873,1958325989,-2046585582,1515770769,505363607,-1577164493,2132171170,-1502943250,-1003228103,488112568,198031213,-514854517,958376191,432735712,891914096,-1793719926,1870033012,-717250224,968865731,-778889457,-1585051550,-1588710814,-1562857682,-1276741240,1633255133,-339510430,1793831359,-1741415896,-168013147,-1445879135,901972349,48389954,239869049,1432030861,1909493773,-256275697,-116999908,1181065937,583779304,-174829267,84130137,-466764137,-1896923242,987824111,-1222550015,2101573974,-1122104985,-1744594896,-879317575,1787387467,1438433789,-1223759232,1035241622,-1841315496,-1413492295,-738730497,-862335856,479045844,1366113949,745766403,-1615167085,-409147914,787026375,346593541,-741127962,-965675058,-2094959975,96830053,1906699076,1947432478,819411921,-623411852,1029347508,-2071508477,1533871111,-1722113164,1826331199,-1143239912,930817869,-1201679639,-363835600,1377652391,-31834221,-1253312908,1079776000,1192914721,-1733494932,1133354449,1855331868,-822532050,264855972,1179289665,-518783561,790612844,-1425290022,-1092846878,1773542101,-2043868175,156518157,1814302240,1705364372,274229078,465844338,-1040106982,704572274,-181715074,2051039814,945779175,-940594678,2136824375,2101549973,-566543281,269141189,1055566217,290554428,-1817406552,-841340393,-1047551684,-676423711,1570213552,16327059,424947432,-908434885,1623821651,-2019949589,-370565227,-2053723452,-1969653026,1440013017,1217904845,-1532222511,-413541667,1728326420,1882012599,1653010654,-477875279,-966235572,-2055556298,1029960672,609936184,595882323,1225577014,1395370610,1796327667,-898894718,-1805931357,-1381685672,922314324,1387350423,-157191695,-1469372525,1750028716,-317310126,-1012742992,896556429,-1754215527,1637558203,2015016714,-201273483,381795231,-1572835914,-289711028,-208493481,360019353,-2002831873,-1356467891,-1700377695,-615858503,1435482590,523184524,-575270085,987432630,-905587039,-943878922,-1472884371,-1538012126,657315011,555819804,643894179,1088270493,1526957760,-2048063656,1572556834,-2056081388,929895797,1649554278,-1262189326,1667225188,1375381381,-353706761,2035518742,-1989982065,1213090755,-1653747993,1970902091,234856646,-1912790541,802955490,-1114403077,141850482,-606823446,1117278186,-1208095228,-1856212152,-328017734,-801677761,-827750051,500647168,-1992468345,-1313566083,1639286686,1973531165,144797729,318354927,1716485700,-871680519,-442584922,-33284764,2141259499,1784620497,-1818078721,-1629673361,1789299318,-1617845917,-1522976595,677822137,-1012671334,810333231,-1459953398,341573778,1288457159,-1787934219,-640626928,-1674824521,1011897531,432951571,-95124053,-2098951723,-2022037897,-1922112760,1444274434,-206015078,529148270,-966730816,1135361520,1061883872,940734943,184471374,1198958577,-789239848,2100067686,679782323,1909732849,-1940669049,-267109196,-1812153632,-1790172779,-1095592452,-827480101,-788396876,1388967619,-285896483,-8800337,1266225567,177677346,-1953613560,-1479513121,2125817882,-1872859630,-1999077508,1867475661,-1156948821,144892430,-1801619591,737634924,-1870897682,-278893313,1773199891,-562958486,-1585680066,860074260,-785623347,-2125131690,-894783537,1857122888,1807206300,2096945281,1018996721,-656899430,1400424368,-2080707759,-289412071,1719357558,398216482,-84651857,351138708,306892895,-485735088,1559927803,-1665161745,-520384793,-965886204,1666602212,-75836065,1528170478,1585515106,687047609,734014079,1636025748,-1530006927,-964646258,1285591248,1860858262,-320461524,929395627,925460789,-2036497734,-1560342196,-393365057,-1439224759,1850615158,-166937393,-941112869,913216870,41437109,-1204325061,275701350,-1828474550,-134782284,-151526713,-9121401,-1359007577,817843582,-657283976,111371239,-967788218,-1094229937,-2108341567,350986871,1382375805,-1129646754,-1899878340,-1405628269,-4405573,-663059975,535955164,-1142826710,-740773841,1203684872,2089332872,-1868322224,-1597208776,1731629275,-1473724135,-1015502961,2014963119,642622084,532767981,1643629615,316390197,-1312305356,1821140426,1090753379,-2110320606,2043854399,1066598541,1695806127,-2073850121,1306558740,114669770,835319787,1547601648,360248138,1765110600,-1881265466,569662650,-1828649656,-180294959,-1806228547,-814654337,-296292278,1693222118,-786246018,-2138015405,921184123,1992959490,1707890906,514164379,-652066428,1881787949,-859346287,-1840615196,29653786,-1531751420,-720088175,1333656666,-1510884234,-191422090,2027284778,712940627,-2088720588,-916296853,-964505076,2146861224,2138388112,758661091,-1590656749,694917742,-300385006,118026056,-1882657511,1262334040,-322003836,652639553,215848759,-24234942,-1600272405,1482696798,-352893051,-2003701833,959121549,-576569285,2078013636,-2001341408,-962979634,-847373504,-994169478,-1423335521,-2003761868,-2079868636,1515382010,1444576688,-936376367,-1849989596,1929732548,926901164,-1923315994,-538657866,-1334400406,-912897993,1241848838,-1173544206,1858888815,-329150716,-209672239,2085094239,-998135412,214614788,-2210866,-2072295430,1108886653,1669324604,-679350019,-722422174,-1212136430,1056507360,640220209,959541723,209090092,-668674466,-1762916566,554031523,238469749,1730769516,754612322,624403153,-574847839,-1513760326,-1297281468,-1122331941,-957486666,-269249488,-788170274,-512689624,1316057927); -/*FRC*/Random.twister.import_mti(387); void (makeScript(14)); -/*FRC*/count=73; tryItOut("Object.defineProperty(this, \"v2\", { configurable: (/*FARR*/[.../*FARR*/[...(function() { \"use strict\"; yield '' ; } })(), /*FARR*/[].sort, (p={}, (p.z = \"\\u2CCC\")()), .../*FARR*/[ /x/ ], Math.atan2(-6, 20), (y = e), ], (/*RXUE*//\\1{4,}(?=[\\\u708a-\\u7B00\\xBF-\u0098\\D]|\\B{1,4}|\\ueB01{4,7}){0,0}/.exec(\"\\uffed\\uffed\\uffed1a1\\u0340_\\n\\uffed\\uffed\\uffed\\uffed\\uffed\")), (void shapeOf(x %= y)), .../*MARR*/[ /x/ , function(){}, 0xB504F332, function(){}, /x/ , 0xB504F332, function(){}, 0xB504F332, \"use strict\" , /x/ , function(){}, function(){}, \"use strict\" , \"use strict\" , 0xB504F332, function(){}, /x/ , \"use strict\" , /x/ , \"use strict\" , 0xB504F332, 0xB504F332, 0xB504F332, /x/ , 0xB504F332, 0xB504F332, function(){}, \"use strict\" , /x/ , /x/ , 0xB504F332, /x/ , function(){}, \"use strict\" , 0xB504F332, /x/ , \"use strict\" , function(){}, function(){}, function(){}, function(){}, function(){}, /x/ , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , function(){}, 0xB504F332, function(){}, /x/ , /x/ , function(){}, 0xB504F332, /x/ , function(){}, \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , /x/ , 0xB504F332, 0xB504F332, function(){}, /x/ , \"use strict\" , 0xB504F332, \"use strict\" , function(){}, \"use strict\" , \"use strict\" , /x/ , \"use strict\" , function(){}, \"use strict\" , 0xB504F332, 0xB504F332, 0xB504F332, 0xB504F332, function(){}, \"use strict\" , 0xB504F332, /x/ , 0xB504F332, \"use strict\" , /x/ , \"use strict\" , \"use strict\" , 0xB504F332, function(){}, 0xB504F332, function(){}, 0xB504F332, function(){}, function(){}, function(){}, /x/ , /x/ , \"use strict\" , function(){}, function(){}, \"use strict\" , \"use strict\" , /x/ , /x/ , \"use strict\" , \"use strict\" , function(){}, 0xB504F332, function(){}, /x/ , function(){}, function(){}, /x/ , \"use strict\" ], .../*MARR*/[(1/0), -Infinity, (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), {x:3}, {x:3}, (1/0), {x:3}, (1/0), false, (1/0), (1/0), false, (1/0), false, {x:3}, false, -Infinity, -Infinity, false, false, {x:3}, (1/0), {x:3}, {x:3}, {x:3}, -Infinity, {x:3}, {x:3}, -Infinity, (1/0), false, -Infinity, {x:3}], (4277)].map(/*wrap1*/(function(){ ((\"\\u29FF\" > this));return \"\\u0052\" == \"\\uBED6\"})(), new RegExp(\"(?!.)\", \"m\"))), enumerable: false, get: function() { return t0.length; } });"); -/*FRC*/Random.twister.import_mta(1860113017,-1691416942,1323255009,-1885417511,601129803,1406110078,217767883,-2132423295,-653689493,507065261,-349955624,1615037193,1095305123,783792260,614057037,-1359073727,-1100473165,-1156609826,-176443353,-1687167423,1389733024,-2015210472,-1917168400,-1020153052,-1109898740,224589493,-1382071092,1229675082,-325654409,-2110086722,1342508548,334369644,1635028983,-339801500,1224021393,-930812387,-1811667333,1238350880,-378914684,605453368,500566657,-508725631,257651852,-2018566287,-1703742741,401069134,1954811606,1830054218,-2026185921,-66899331,691284103,-809201961,876488829,-1021492811,-636954039,-575581832,632793637,1615280414,1626672235,245462914,1073462778,293327351,-215270096,-2118064,-1014248139,-565431325,1862645422,-872443670,-15372831,-1800909223,1136603263,-1892230972,-1920856426,1799783532,1696665700,-1155591662,-915030572,-400967157,-1077517412,841531442,305001363,35467959,-1398698516,1177972780,34550270,-1536174162,690649632,-1163964840,-1189049309,1662687024,1879498911,-1086293447,1047490760,-1263975975,-271116507,1161141829,805820591,227773597,1606016022,-944067610,1878757168,1020744724,-2071090356,-548343206,-1615156981,-159389441,-1856663834,-1709107007,-1870949320,437847826,-776456987,-2086532742,-1360715688,112144791,677033545,2131709857,-77011795,161833074,-259204794,-232057275,305152645,-1726944024,-406841855,-1071360615,716297952,1658648972,-2124629361,2142405643,-155676182,-916156726,1207238060,-721081651,1373021329,1927663420,-515400047,-1708927846,-806105150,-1161998428,1661647106,463638551,591735360,-1856645954,-792519947,1902180127,-81215859,1699946868,1705716073,1783648445,-2054717939,693113494,1774869563,1504519363,512033034,-391243950,-546599128,1129657284,1015956138,-1224461054,1809182630,-444708818,-1459903251,818253455,1733417059,-1009325073,2146789970,1654419300,152195718,-568824590,-1909345933,-1391734577,-2124231068,-1491036165,2052611176,1817348725,1049529554,-696668187,979399335,900576821,-299359794,-1305264770,-418705931,-363435246,-1371018618,-885539004,992994439,-2084699745,-1713670791,-1613106042,1379527597,-1405449261,912950753,-273829661,-1643523494,-350426020,-333045285,417156323,1811855229,1690827350,-531173309,-1250441363,-1428998637,74121638,1827975006,-306956019,138682118,577780205,1143386545,2056313825,-2116331046,-1593441893,-52739500,-1544866113,58189041,-1529917421,862668060,-1177721698,-562225976,-191803790,911360612,-2083081663,64368325,-1038430160,737745868,-518142695,-2068291092,1299416350,1777323586,-378171342,-1745361402,247935921,619948592,949025304,2028966934,716825064,1985959198,61591650,-558880296,1573708260,1137741731,16827280,2050855227,-607313754,-663405595,-934874447,-1977953127,-564746261,668786851,-1442547462,2120166316,-739695728,158667015,-914697885,1910081834,-1595553941,2083462675,1383391782,187059987,996544847,-1882199904,-824189370,152062949,163877122,-385482810,207051431,1725775598,-1748196792,301375937,-1492369981,-1780947762,1335895403,1169568068,-1877854750,-146336676,1060888251,884813638,-845130440,-1200455007,-1477394318,595488430,681840173,-2105869958,1534907014,477878287,-769732708,974426795,-1628160975,-1603888340,-1891900548,-859800712,-585441139,2004166728,828842799,877456076,1856075390,502517149,378999659,-498286184,706625302,-1541368402,-319063846,654690902,-1883608732,709816797,-1481919397,1145990741,1119869635,-744220411,-1890777906,2072259318,391311144,-772215721,2017443938,1322524029,-1613212698,-2061632765,1653567873,-555467360,1184112157,514124128,-1039171552,1693886658,1541457774,-619923864,402332585,1048125344,845020532,1318044429,-378398150,1057597739,1791076697,413119788,-1573593756,-1971694842,-469184539,588399971,-1199377491,-1800857385,-837979521,351280200,-1205303205,1137844713,-1383981151,-1959665596,-953605759,920668556,1263014086,-1803298520,-789253830,-1962506880,-198670990,1224455830,365379317,-1586544174,1472804881,-2093200282,-1105078997,-51480582,-584637632,1732862054,-1024105100,-266733558,-579911431,-1370730577,333978870,2087712997,770106690,-1866976892,-326680594,1238650538,1592117512,753203619,-1318175062,-216877889,-1425005777,2072223680,-1000839902,833422179,1498428423,-1011246370,-776767609,1185746337,1402112793,-1835503335,-2041735953,1558088442,116217710,-739607499,25221806,646284473,543689334,-537653440,-1876294907,-792501689,1815417619,1031802387,-687089577,-453308112,-694634364,-910006810,-947894431,1745974553,14450533,960000291,335028170,-1063113448,-1003796408,337957223,1575280555,-2135533221,-1497703562,1983692348,206220870,-1334980667,803044044,-1960944694,-178541849,746896899,1204438194,279793301,-1636358667,-1776680468,-689186098,-1033155666,-844608864,-259221836,627368036,-1918183200,-1062106627,-1026854246,-596698342,309653780,1051947664,-492155628,-697210306,1631923297,731531315,-1260578945,-1793214994,-884849542,-2097196783,327128695,-432326585,-1763549541,-638256033,-2109895699,163549045,-1099095462,-1119033778,-1431809468,579071024,-1401476562,1429983002,-2051449018,-1312409151,682311817,-1018169353,-765407027,1731614117,284993407,-780294716,398677632,-1581725436,22007702,-963189796,-1013195381,1457829129,-1102568447,-869498618,899592977,-746355112,1257965877,773681539,-1208863482,1719458055,-820119507,-1172337483,-1132202962,-1335304406,-622600630,-129657547,-1146360366,1684527836,604665593,-1592843838,-1524845052,2052105118,-1604239592,1033701356,1799724958,-284343722,-412135494,-1436683026,-1902724813,-1276724563,631537381,-1874671869,276388014,-2088241691,-1304308955,581838871,-1425877472,290330822,-172426693,-1248830756,-1152870132,-1690491469,-452710912,-1888701832,2015589348,-1049236017,-63774990,1387777790,-1164106504,1533137734,1919354408,1644425650,1805050845,-14054459,-1803260791,1109049326,1967712892,1358998148,1314966032,-1872228597,-345775493,2142238875,-220593690,-1982101343,-988642942,912201554,-438961169,-1993872454,2071747267,-1303157029,419482202,1414898390,86447831,-2138357192,1721609671,488012215,537308961,441889292,1408713706,-210876174,-735340515,410890412,947163059,-196515820,-787753584,882191046,268073093,307151161,1483967361,-2089626675,-1666590348,-1101399153,-1521512290,1227760044,-311048931,-313765922,761329926,-711842461,1456515575,1052388999,1051233837,210972715,-1069218854,-43443452,1941339688,33141136,-112879195,-1593092450,-1009557610,1510747588,880704781,-80433755,-960366520,1874353272,1060587916,-446951224,-449682682,1131666554,-76068607,1396383660,-385522786,1611673736,1865903859,-1720960798,1993107186,-1391159826,-1796494333,332500704,278716858,1250097780,7838337,397079698,1758821332,-731246928,-1544074942,-448809477,-1986022354,-559353498,-1439088779,-1252604630,721573922,447789384,-1853586366,1411229255,-72441553,-1789629463,1698962993,624040901,-149622878,664633782,1484939868,477023518,1150493882,728047965,1141477214,-808091188,827223052,-520066996,1496870983,1251748051); -/*FRC*/Random.twister.import_mti(352); void (makeScript(14)); -/*FRC*/count=74; tryItOut("e1.has(a2);"); -/*FRC*/Random.twister.import_mti(365); void (makeScript(14)); -/*FRC*/count=75; tryItOut("\"use strict\"; testMathyFunction(mathy4, ['/0/', undefined, [0], (new Boolean(true)), '\\0', objectEmulatingUndefined(), ({toString:function(){return '0';}}), ({valueOf:function(){return '0';}}), (new Number(0)), 1, '0', /0/, '', (new Number(-0)), (new String('')), 0, true, NaN, ({valueOf:function(){return 0;}}), (function(){return 0;}), null, [], -0, false, (new Boolean(false)), 0.1]); "); -/*FRC*/Random.twister.import_mti(399); void (makeScript(14)); -/*FRC*/count=76; tryItOut("const x = x;/*RXUB*/var r = g2.r0; var s = (4277); print(s.replace(r, '\\u0341')); "); -/*FRC*/Random.twister.import_mta(-619758643,933590857,1497862226,-1594653597,691780570,-1504858599,-1971172907,892216178,306143553,565632395,-1261588752,958032469,-1310652620,-42406715,-2109929031,1985048899,1918549667,1756050182,568653080,1173253203,1144745662,1450206445,-1049497,-923392790,156373323,-727389752,-1458706555,1607422544,1685696699,-441950238,-918126517,1803126206,-374301144,-284767485,-2080787135,832630518,-1298746322,1441804323,2039576111,591307488,1019461233,-1930428868,404778614,-951164963,-1379347872,-1398777360,-276903686,413685421,-290019692,1945077446,61215226,1774188197,-1710883787,1484519381,1004758950,1315584651,-2115656370,-2116454813,-1004581834,-845345232,-159183487,694761959,-1366134036,-284294971,1469472810,1993151681,-479646807,622451620,-2051529990,1184828641,-877138588,1935651930,-1507802002,2020311303,865269898,-750195732,-1955023651,-1862350365,-485757780,748535096,678360750,-860677956,-1688294109,-1163102931,1984966923,1889487849,-1136621842,1619280074,199092230,23789448,-1154119121,879896570,1817268837,160199927,1372556051,262006203,740805692,175673582,-1281387792,1736744758,-1645453329,-1341716861,1292259642,2111255162,-210150298,-1122878136,1636329059,-210414832,-701389254,1422951597,-826427707,793895880,455787995,1897346313,-197600783,505538161,531850111,1243703947,-2111911345,-1148816832,-207487567,2121062230,-1157618179,537919756,1617876546,-674879608,1991900625,-801133938,454934526,-1860141264,978431256,888234773,254669004,1283359864,-1003093513,478526754,-284311287,1753585371,-1064543742,344294391,-2011060121,-1745579934,-55659801,-2070265672,1761551030,-131438719,1599000691,1340118980,1289075175,-1785130639,1100434090,-565619435,12722543,1615838993,1944344795,1177856724,-1729050292,-381473113,-1931026536,1748693559,-2008787404,1205180915,1437567734,1385843759,-455339311,1381597364,297146622,-524753333,-1021417325,-2131467032,938598438,244994076,-1361558411,-436019252,322908595,132896282,-640530943,57306602,-1574096102,743231085,445868529,1746189519,-2134388886,564994458,-609981334,781337442,483911151,420554391,-284834370,-1391813412,934432844,969445343,-660937792,2079329329,-961046450,-1133835557,2028013407,-1454091649,-736516101,-1531686910,-1772122525,-1785913619,1257052578,-843203667,1452825935,287496050,286660613,737146063,-751105702,-269933208,-1663005241,589161352,507212607,1022475455,970238346,-1742052922,1574250127,61555566,-2071124767,-1670348025,174606661,301269688,1716769695,1930583290,-2017875261,1842321254,2116477130,-1863006002,-372351410,1262372170,-1128531601,357331409,-1290707219,-1314004134,888916803,1030190509,1330687353,204298750,966396829,368541558,-794919786,1997481108,-1954891580,-1369480144,-1635200980,-352176746,1357664302,991230824,2139419941,576570427,1967389828,1908331998,1574877858,1309857875,1995776835,-119396371,1628694426,-828279781,202795677,875563781,-337345662,-1216656734,-293342342,-2114442407,1578524935,-1469934064,-1448080162,1982843926,1916230742,989558484,-817412820,-697608114,1781859954,-182427815,1048083505,730289947,538437375,1377380013,-454737556,-1690795896,902143638,-1395246210,1734696261,1172790468,397138084,-1809055328,-1979646066,-1864159171,-554894978,-718739768,1857364365,1303385420,1100853246,1956150712,-1218780466,-1264696778,328209258,-643323981,86116407,-173924027,2142680501,-4378437,1502970142,1884762920,682202205,1406226673,1799044959,1437393877,-954568920,715811799,-961309412,-936210582,2138268186,1741081520,-1999943467,615511766,-81248167,-1268253025,360048618,506070532,612112192,2085212199,-580331344,857424876,324431444,231785385,1396544043,1533033381,477061872,1095338924,1825397960,-1237027355,1444866661,-1458965491,1983683097,91069070,-1428255411,-2067416863,-1437788358,-473209360,-18970106,-1314903597,-457324946,1153648569,1871012584,-2007030053,-738456867,-1239236751,75011567,-545390922,-1275384151,1893299883,623512415,1999100898,371716292,1701479427,-4985200,1240800555,361484719,1998654665,-1144941349,169383679,1433514841,1211272612,2121720954,-925875520,1657150464,-322203854,-1199147802,1943305961,-1674747923,-2004957130,883607241,579805075,1842128213,-1928623991,540654509,1615562693,798514697,-90433696,-795981246,-476000120,-1675964292,-157316047,-365591280,1008423261,687513440,34481335,1474403528,2052427094,-2088239758,364188461,-1119110686,-1770082520,1379252927,-1318854645,-340248406,1393611477,-195902605,1138249254,2137280673,-1767130627,236444159,-108834675,1635764686,1899490166,-1682566809,-2084506237,994693492,-69627788,663254713,1520057175,2038234628,425248778,-88849605,542059104,-1896890747,-1494464551,-1342460422,-1818762442,277209430,-1484636775,-625004661,10963973,-68804019,-758330485,1575232547,-147179730,-71658656,64446760,-756808987,1741519813,2048549485,-121880854,-1490395127,1348284986,-1519911009,-113135622,-76874785,-829683493,-1763405757,-340969960,1842917174,-2050796634,-562285557,-1682721332,-1026101216,1597792359,1085600928,1885881992,428850039,-2056977056,-1406911655,-1283723183,677086186,435586807,-1582440633,768416271,1039311667,-118426195,-1586395176,1952197768,506201155,-1214909597,-27806811,-1078548158,1944141813,324638145,1590618040,1997507713,542731310,-2056140113,20244938,-295035673,-15495699,566562610,2053745582,405935009,-1802195045,740427,1008809277,-34035488,-395987188,865975448,-1282857516,472315153,1795066099,-565818291,-2130842743,-1657514841,-724119250,-2141876927,1754889113,1651147635,-419029176,973860865,-1573896967,258940001,506789018,2142530914,-1115204806,-1649626637,1901034101,2108926585,-2037447509,-1771612564,-594617932,1238640484,358907206,427569724,750566331,182799064,-107157501,-1288471398,-1578972956,1915697231,1941214197,-1107319018,750602939,2067389120,1545087226,-1872066618,631436652,-14069112,1064889121,1011812548,675763658,490730868,-1533887726,-227029962,885311221,-870381085,-739224765,666589810,2139501246,1551979676,720358091,754316064,1605436270,-159873707,1793954486,-1590630112,488166063,137706632,-128375095,-1874390804,604942862,1291451784,637748548,1134384173,-1556835409,-1503192245,-1788798320,493452945,-1656457539,1321773759,635345786,-1015083367,-1058909686,11441894,449336931,-2074313155,-2093466350,746748548,461672491,-1972398377,-1652561806,-2029669102,-1319309029,1092074083,340192502,242011427,-447139783,1355515012,313547132,1729653195,-1465790326,-1402959249,1115127503,1471363804,379467231,-1298864997,217517013,-885956769,972883311,-1156000247,2073497784,-1062754398,479386632,-2045979257,31083220,1983419559,-309248006,-67804769,-417401477,-1930639092,1507948977,-841548980,1676255764,1885674718,1306224416,-1579644368,-677320164,1975031740,1830017889,660216872,161117340,1951509002,805459363,2008051643,2098082060,-775949631,1876267398,79408718,205079096,1973948053,-152064729,-1585235235,845140939,-437481500,-1493263602,-1482608061,220546237,1597445523); -/*FRC*/Random.twister.import_mti(489); void (makeScript(14)); -/*FRC*/count=77; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return Math.acosh(Math.imul(Math.pow(Math.fround(Math.imul(Math.pow((( ~ (y | 0)) | 0), ((((-Number.MAX_VALUE == y) >>> 0) & ((y ? x : y) >>> 0)) >>> 0)), (Math.fround(mathy4(-0x080000000, Math.fround(((y | 0) == 0x07fffffff)))) >>> 0))), ( + Math.atan(( + y)))), mathy0(Math.fround(((dlivgj % y) ? ((( + x) / Math.PI) >>> 0) : (Math.log2(x) >>> 0))), ( + x)))); }); "); -/*FRC*/Random.twister.import_mta(-1848976978,-655291558,-894878520,737774924,478535214,-765571638,-1558953676,-244790863,-119261844,-2117024225,1178955894,599347950,476927689,-6405446,-1195756759,-648474230,755847561,-364496457,-1682920298,-1393423910,350012784,151315222,-135466685,-853255892,-1915729539,389115030,1866523949,1355958991,-535239558,-1605380903,-2105084431,-815604620,-312691594,168847514,1058868414,1666267258,189568548,48917441,1103258442,571379832,-13217564,-1216688924,1948489706,-1073677965,-1107485984,443009867,1352648751,-383293631,-498829649,-1023018787,-219468822,-725697947,-2057499203,75368612,995666170,-1395201538,1788869567,1247028721,2134376943,1139075416,-529451485,716937797,377439504,-893732915,-701360585,-1232068280,-451338575,-57957672,1173463021,1446693191,1794527212,1306428815,-1842152227,965742699,-1395277991,-578813061,1058916553,-1902740549,2005651886,1851707641,1047240703,1077103061,-1001011710,-570319513,1556069835,-163187589,1138728189,-1234710057,479431381,-294847173,-2072027216,803074660,16440835,1698276472,513003331,2123013511,1733741316,-20326864,1237958554,902734801,-832294913,2025313287,1096807519,-2076443383,-1020940457,-1736181349,1141441521,-308815946,1694999781,1658368521,511497856,-2114343052,-1191241625,-1884788836,-587396801,1867376995,254507264,971316508,803996015,-1821581838,-1026962243,-1472862054,724687430,1815036891,-1148611582,-940131493,-684292145,1928738014,887043932,1970242374,-1638927327,-1560001676,-733442550,-1881704751,-2107779214,2105410328,-890166848,1606426559,-1882511944,-1208504793,1729084177,-1192301886,-1271552759,512885741,70085183,-340325815,801470314,1195068133,58927243,1153767259,-86644771,-9771732,-357418118,63835933,-2055385567,-1726382538,-255829731,-617145999,-1545772165,570208352,966619839,-365586575,-1326776274,-1313935404,-311378329,-1948044947,-2049525378,-486337347,-904551261,-964224927,-2142724836,1060660222,840357253,-992885520,228140590,1354277862,293515889,61260017,-1472807390,1021367469,23225559,1108646266,124103185,994837482,-438450902,-1684780547,1588690123,243263408,-308438937,541997214,1162563730,819965416,1660707648,578914035,-1325031147,149490826,1985476735,337286745,-558440179,-1949954465,504939749,111095493,-810323497,-1080034984,-1454775927,1176721089,-112730876,1150181324,1353617052,-555580768,635395022,-1508418333,-255852229,1642358217,-576011742,-1741180386,91099129,-1753784169,-1567031351,718485850,-1451639935,-1736537381,-597319271,1009450672,-783877648,842413272,1464693236,-449972599,-1116853761,1308389536,-128514693,-1677344377,-1970750361,1616974922,1993589688,1178915599,-2017039648,-1014971033,692251989,874670210,-2078682896,-1123586229,-1904827502,1648966047,-1614339204,-205093759,-1317505938,-1307177155,-2128432684,-850587903,-168086589,-1556147156,-1456426912,-852310957,-173282842,-1869539401,504880651,1569026144,1282566441,-659622473,1370344907,1214051587,-1163551479,-45148552,383459529,354051365,1494840947,-970064177,-1442351218,1400911228,-1422568108,-924345895,-1174449096,-1767160088,1709997075,1799828751,1929501524,-1063679140,-1725760991,-541080842,303371547,-773671289,-1910159460,1632245741,1078076705,976780840,-1835155047,-1895347556,1076881697,-131242743,-329073301,-151207480,-1931731052,-21729322,-1497070653,205100632,-471750079,-1318061272,-301521422,1960908504,-1622787863,-1071677482,-441738513,-1304317384,1047946012,-618725666,-578809396,501655659,-1938895647,-418640756,-1172776238,587599046,-978939485,-558725048,-466605380,-1206969818,760722091,-825906107,550039910,314889635,-1038746444,807904027,654785649,1862138926,1630078779,-111163824,-2122969380,-1068261753,1477644753,2000247355,101807908,824339130,353350466,-1507852766,-283043087,-379563364,-1179459930,1264213277,-266592884,-946840220,1316012970,-1364989432,-1809515936,954845300,-1530773842,-551897890,1366635157,436024981,-2020927551,-339411507,-1924446127,806625650,-60467542,-601522259,-649345536,184991764,-2002928372,226667561,27030991,1352725688,1406373233,837664257,1499940298,-171289603,2074623711,-22533192,-2121111106,994869602,1477207401,590068256,1521313782,-948913788,1677210975,-2144627425,-659145090,-896055934,-303537050,1947301894,-1037767012,-2097865125,1914595161,-881842657,2069760241,-2049270891,473039104,-1214239541,-1175252252,309181659,-685813286,-1322713449,1652348573,-204119402,-1059297543,1975833854,1656378471,-1077298954,906478036,594103418,1590969581,-1800647414,1452058833,-744850930,-177095809,1640060566,993867082,1021642318,-469229901,1556515949,2146980160,-844553838,-1895190882,-647775704,-1757925896,-85725815,1582854784,1944254458,-365909075,313951855,2031377523,717132779,-1471665952,1163036175,-776857001,-760456826,-462142653,692863939,-1336207928,1673891157,1198825041,2143928442,1433531493,223109216,2055031220,869948895,748734161,-619331188,-1572711075,-1050503426,1482287185,582678981,338886341,-1421437511,-1697244211,-212294365,-626083215,-1007450151,-599410250,-1994145327,-1605719649,1235930365,1050180608,509367427,-226264017,56668161,1893598509,883979907,-2112729736,2141643837,963971982,-634355829,441385486,-523407034,-997811615,1642398701,-1671720506,-910507408,-1534717251,-1417764052,529013204,-1638263419,-101094377,-547530855,1576745517,1475936839,-487290716,-1139383293,1482470926,1723454673,2050097878,774412833,-204566493,-2120666528,-916469253,131288289,-1969309129,-536502897,1854235470,-1998878512,-1613860977,-791743074,611147783,-73454118,-1121479613,1788508631,35698192,571988269,-1925248109,-1540412647,-146952344,-1489175131,1098231502,-2075954698,-862564116,-380704290,-1951784854,-144337157,-1152003772,413608888,-581128295,24357534,1681437313,-444276225,1671544933,-1033067029,1863870052,-520286204,-422398334,590653673,-882889560,-1563423767,-159306699,-199886475,866991900,626355982,-1354203318,-98267369,2055138402,-1928370848,-1188783667,650201418,222725654,-830014878,-2000464921,-498923373,866517541,1153371,-243862244,-1782555803,-2127364429,-1328523016,-836043560,867496756,-1139440542,-2005692144,-2031737805,1926211681,884484967,-787194346,-1998472750,-1349139079,-1530478252,731482739,786680263,383550813,1044347655,1258052716,-812749400,1717591585,1903501769,-2124207956,1027174883,-1363344264,-1088327714,762848876,-681236823,-1096554059,-2079160339,-1881797640,1461749734,-1643672549,-1495851462,258348653,-1216383332,1479351851,-1283870033,-1814298748,620496933,1970817001,466467868,1847786650,1550302527,104395573,-1214849180,1298894692,-1996064782,2086141331,1894983529,496690037,-1411161059,428499104,1474210161,1298178338,442117032,1796580316,2101011940,-1376491154,96520070,727299836,-12437525,1159038671,-1865953273,-1285141648,-1337258404,1114192137,1740404242,-957754158,-1193424034,-216531625,1772134685,1171853431,873321002,1809369539,-1241646100,-1074809864,-1313797298,1969239958,2028065574,-1571057753,-1054661276,-1818023042,-1088619264,-1121958170,156926688,1055042819); -/*FRC*/Random.twister.import_mti(143); void (makeScript(14)); -/*FRC*/count=78; tryItOut("\"use strict\"; var sbhqed = new ArrayBuffer(8); var sbhqed_0 = new Uint16Array(sbhqed); sbhqed_0[0] = 14; var sbhqed_1 = new Uint32Array(sbhqed); sbhqed_1[0] = -0; var sbhqed_2 = new Uint8ClampedArray(sbhqed); print(sbhqed_2[0]); sbhqed_2[0] = 22; var sbhqed_3 = new Int8Array(sbhqed); print(sbhqed_3[0]); sbhqed_3[0] = 18; var sbhqed_4 = new Uint16Array(sbhqed); print(sbhqed_4[0]); sbhqed_4[0] = 10; m0.delete(g2);e2.__proto__ = o2.h2;i2.next();"); -/*FRC*/Random.twister.import_mti(231); void (makeScript(14)); -/*FRC*/count=79; tryItOut("f0 + s0;"); -/*FRC*/Random.twister.import_mti(243); void (makeScript(14)); -/*FRC*/count=80; tryItOut("\"use strict\"; testMathyFunction(mathy2, [0x080000000, 42, Number.MAX_VALUE, 0x100000001, -0x0ffffffff, Number.MIN_VALUE, 0, 0x080000001, Math.PI, -0x07fffffff, 1/0, -Number.MAX_VALUE, -0x100000000, -Number.MIN_VALUE, 1, -0x080000001, -0, 0x0ffffffff, 0x100000001, 0/0, -1/0, 0x07fffffff, -0x080000000, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(275); void (makeScript(14)); -/*FRC*/count=81; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return (( ! ((1/0 >>> 0) != y)) / Math.round(Math.fround((Math.fround(y) == (y | 0))))); }); testMathyFunction(mathy2, /*MARR*/[0x10000000, /x/ , /x/ , null, /x/ , 0x10000000, /x/ , /x/ , /x/ , /x/ , 0x10000000, 0x10000000, 0x10000000, null, /x/ , null, null, null, 0x10000000, null, /x/ , 0x10000000, 0x10000000, 0x10000000, 0x10000000, null, /x/ , /x/ , null, null, null, /x/ , 0x10000000, /x/ , null, 0x10000000, /x/ , /x/ , /x/ , /x/ , 0x10000000, /x/ , 0x10000000, null, /x/ , null, /x/ , /x/ , /x/ , /x/ , /x/ , 0x10000000, 0x10000000, null, null, null, /x/ , 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, null, /x/ , 0x10000000, /x/ , null, null, 0x10000000, null, null, /x/ , 0x10000000, null, /x/ , /x/ , null, 0x10000000, null, /x/ , 0x10000000]); "); -/*FRC*/Random.twister.import_mti(541); void (makeScript(14)); -/*FRC*/count=82; tryItOut("mathy4 = (function(x, y) { return ( + Math.imul(( + Math.fround(mathy3(Math.fround(Math.pow(Math.fround((((x >>> 0) !== ((Math.imul((x >>> 0), y) >>> 0) >>> 0)) >>> 0)), Math.fround(Math.max(( + (Math.fround(( ! Math.asinh(x))) ^ x)), (x >>> 0))))), Math.fround(mathy0(Math.fround(Math.acosh(Math.min(Math.min(x, x), (( + x) || (y >= y))))), ((y ? Math.acos((Math.fround(Math.cbrt(Math.fround(x))) >>> 0)) : Math.tanh(((( - (x >>> 0)) >>> 0) >>> 0))) | 0)))))), ( + Math.max(Math.fround(( - x)), Math.fround(( ~ Math.min((mathy1((x >>> 0), x) | 0), ( - x)))))))); }); testMathyFunction(mathy4, [({valueOf:function(){return 0;}}), true, 0.1, (new Boolean(false)), '\\0', (new Boolean(true)), (new Number(0)), NaN, (function(){return 0;}), '/0/', (new Number(-0)), [0], ({toString:function(){return '0';}}), [], 1, 0, objectEmulatingUndefined(), /0/, '', false, null, undefined, (new String('')), '0', -0, ({valueOf:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mta(1326565847,998300297,-1051685972,1489913798,-88777493,-1527014427,-2139258223,1196371964,-452602466,-2027247992,1293559066,-389657861,-228196145,1247545301,-1244712211,1488336355,1455964557,327165131,630977303,-1604400875,372570084,-605383667,1278001021,2007547009,248131652,2132465694,1674431550,-730320514,-530376336,1745936367,74769263,836420714,985789495,1258254906,1021639773,2145059494,-1415063328,205649780,-904754768,-1646691025,-1696599924,575153060,-1682819677,1254912949,2138947779,730943237,1589880412,847524345,997837672,-1523569597,2054433852,2079104926,194365615,590620797,137830524,516174127,-1086189018,-699747067,356647471,723674806,-1275881024,843753734,1717933234,-396445238,-1148886558,788702694,530633345,1739321071,2075072012,-1845676725,345592116,-1885743259,1536863599,1989870436,680912635,-1686278506,-910520507,-1724817293,305249440,-564016850,-542588700,1478025687,-668933043,77200921,598964354,834189146,-2048387883,1574948738,1312510925,750439574,-550145566,112963665,-497932382,-1305725063,1574097862,-1903365695,1442747087,1724148189,-1577568230,856009907,1098674629,1318774168,1009366014,-1175467590,1359625700,932864459,-544931323,1612792519,1593933600,-1268008444,408681474,405508981,1185388880,-1823570239,187344273,1681161445,-560059547,-504965620,-380928259,515825667,1999527076,-1627864693,231676635,-347740620,249959431,-1052849116,1546548577,-1255676700,-1064087884,-330193235,-594721574,-754917688,-131972355,1281912239,-1338377234,-1380203769,346797971,876843257,-1025311081,469342283,-1984483836,1109433576,1720838609,1429535000,-1620588849,-336117801,853968061,506396841,-911895789,-1864734634,-1365169024,-38230929,2004513320,1064359579,1729443176,-812952170,-498091718,-153519515,436339804,1246258216,-898489018,687907294,-642490554,-762733041,1917070353,-37080223,-974054163,728187943,1156109658,-1003042461,-800441849,-685548037,-1133547933,-535065299,658130846,650682235,-1057567092,-1486688834,1419977997,-1119516015,1416760148,-2122851893,1938095471,1854496682,-755341548,1103548894,1247050940,650119966,745595356,1381404448,99956097,-1700964931,-1849552122,-699086556,152315751,-1200003256,-133146577,-882301507,1897914014,-742124245,-1323396799,1100169183,450525795,1567330332,1233080527,-1930895138,539891439,1340813660,-375876222,-365795655,2031412217,-2000154273,-1406954932,450409275,667095244,1849838799,761049964,2046149749,537504571,-178930119,2003597845,907625847,-843688922,-1749057032,-465871734,586955290,-1786976616,-2001834505,1568596697,1685305806,-1882974246,653898247,-724889152,-1156291763,-43649372,-421076754,2145547492,-2135694481,-220758342,-261429065,-1915289425,-218864860,-1332078093,1496043571,-211036588,2099759392,1616739924,1453698830,608478034,-1344694717,641152663,1515350132,-2138371352,421017805,87558778,912279210,1188194271,-1153079516,-2071654802,-887119347,-136726428,-1195474426,24938906,2042820699,-1614514887,2140570198,667366039,-807646389,1267218714,-1909940471,-1212739706,595749599,1623518321,-1254283126,-1641079903,49882818,-2055411219,-1343364621,338919141,-610798851,-1832008735,1327858610,-144078330,107720809,-883521007,-2063314372,1822540792,1257037199,-1756058787,-1990427944,-1826563794,-34902488,1347981837,-708172865,565650883,-749243405,-917845793,1671087053,-169255927,-852426300,378846351,-1018651821,-1034045558,-1769881909,-1262608612,2096215110,161099204,1083643467,731834257,-2060678876,1427830906,-1737981812,1591866238,-135265909,30950033,-2120730041,-1831818645,-1890514607,-1764660641,-1017587208,1933006379,-681968351,-1175318570,-60644979,1516997365,-515686540,-903556305,-1266857486,-334563238,1059129452,-1585513241,1536025669,613785306,824000418,345074569,64491635,1221469269,542503620,2078522823,564131973,-2078313531,1094244513,943757535,-855690190,-1905554333,418994024,-1958163562,-303863909,1913786290,-765325780,-1286605171,819248978,908378925,814454369,-257653522,-992112590,865615974,1162596066,-78601068,1220752538,-845806992,-1668654837,240540198,-260630493,186090789,-2111059384,1180686586,1018801263,1404387832,1271355946,1988928986,2006150335,1927955847,1589484418,2070192744,-1085169376,-355281835,-1884070962,634035101,-1753353893,-2084539061,-2085453361,1416538243,-1403602502,1946279135,1190890798,-1703540070,-503476821,-392401334,830637271,-345821372,-1960661070,-2027398882,1839498753,881039452,535508400,-712872098,1713940654,-579503234,1310821076,-908677078,-997577986,1445475376,-580365271,-1190105447,-5268853,1244560504,1804477428,-1482471166,872426016,37257918,-1721339416,-1514170427,628639228,523333859,-2141190955,-2113569592,-1602770073,382381207,-2048522378,771046140,-1195009389,-785429621,321046865,113751171,1764906106,992895838,195849910,2121785314,-1452658546,1540202540,1950479381,202211054,-1351170728,1650577818,565252083,-1971114554,-1942968562,10345826,1060265457,-1770829512,-207573515,-1897484671,-654090613,-2130397370,1311471584,684518926,-1102995963,-876309546,-755340762,26811238,1148342850,-96152891,874206417,201254505,1551352933,-2102887665,-1820421603,-1830208227,-1712549689,-1955406866,103680843,253546951,1909439495,-462519721,966575931,-1512720095,-1038939067,1691474233,1433280295,-1349661920,77527965,-808191780,1361525254,-1851380272,1214969941,93179124,456013820,-733047365,543486502,1507107325,-123773352,-327069691,-627733989,1380915516,-205013047,-814586267,557203324,-791021367,-901609146,1141730998,1482624967,-1814884766,651651487,1205802754,-736162804,1161280090,-869672910,-384523054,8272662,-1222864783,-127650857,1985892909,-1062602280,1297586769,1234802247,-1748736223,627778802,261904125,1551721369,-1381928887,596564732,1027256342,455995594,2056410509,-465702884,1104060019,-1232023686,898358019,-1307527992,919105498,2019670605,-1040333708,-554764422,-2021641063,-1999230408,-877218956,-754040650,-1876410378,-989924223,-1312635910,1775699504,-1797750576,-918447095,-644388295,321232159,1455690825,-1937033220,-1073697552,972328210,-1372948463,533889184,-979242289,1219168429,1866362302,361090867,-338495757,927435458,429633346,-342790276,816239723,-736960823,1931857157,1278467699,-1862047804,-875966834,-719743069,13425884,1530687507,-486435084,641973662,1258413158,1432617797,-93059106,-435374399,-1595781394,1718943097,-275828682,-684478861,1797986242,306483163,-1781254355,-303601502,201105950,-1542547367,-1184580737,1909890311,-1096210301,130400543,-2128630419,-1432395996,-344986788,-1570220160,924547999,-1570209548,1512146943,-553191937,1097793697,-800102053,-1129202111,-691582798,104501489,-1214178394,2026023432,709073112,290791995,1584103764,-802877712,-1945035001,-478077605,118406714,591471942,1198361979,-653463716,-1396199001,2040823346,2013183791,1847104794,945207595,1315455382,11693444,1862213929,420238546,-1028747459,-1689414048,-722696231,-1180175397,-1947025930,-1024247283,-660199522,859088242,1882118444,-1718430738,1795308394); -/*FRC*/Random.twister.import_mti(319); void (makeScript(14)); -/*FRC*/count=83; tryItOut("print((4277));"); -/*FRC*/Random.twister.import_mti(333); void (makeScript(14)); -/*FRC*/count=84; tryItOut("\"use strict\"; /*vLoop*/for (zmgrvg = 0, (function ([y]) { } |= \"\\u5ECC\"); zmgrvg < 3; ++zmgrvg) { let y = zmgrvg; a2 = []; } function x(x) { return (function d (eval)\"use asm\"; var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var Int32ArrayView = new stdlib.Int32Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n {\n d1 = (((d1)) / ((+abs(((d1))))));\n }\n (Int32ArrayView[0]) = (-(1));\n d1 = (+(((0xb40674c1))|0));\n d1 = (+(1.0/0.0));\n i0 = (i0);\n return (((((imul((0xf972d07d), (i0))|0)) ? (i0) : (0xbb3d49b7))+(i0)-(0x51b2a9be)))|0;\n }\n return f;)((p={}, (p.z = (yield (\"\\uFDDB\" ? -16 : -0)))())) } this.g2.m2.get(e2);"); -/*FRC*/Random.twister.import_mta(-488606411,-35832152,575056183,1837411968,268392403,-1893841497,-1093680169,-1953332138,-1136997937,748908277,-958024106,1201207738,-936994539,-2116572393,1815468998,399706076,-1246697658,-1795933769,155701376,-920713414,344609214,-371964938,658172393,714089182,-2025261412,-523653740,958321134,1995847739,-2077062318,-1608736202,323030147,-98593498,-1944745581,-591958307,1269593414,434016926,-380223774,1198036290,-162201157,-940780160,-585845028,-1806928020,-1017326348,818223494,2137045672,-1584955985,1498019496,-1665641742,-977546978,1442248720,-2085105206,1460062046,1516818119,92441432,-770115062,-437920810,-969490804,-665364575,1239873342,-1689143313,-899955042,-1579419836,-1379677150,-693081313,1370446264,-1715206056,-619512913,-642184879,-1469387455,-275181125,1557616424,-1877721263,1847828117,584026242,153111766,839258017,-2068366624,-658574464,1733958850,1784261766,-299173944,1633048386,-81740299,1208819132,-532478475,2004740784,-1267044902,-329646075,-442836606,-521609580,-77375605,-504304872,173810213,719587157,-971913224,1613035482,-1933709906,1461914383,345336458,-58641817,-345724162,-150962899,478797771,-543584637,2057417709,-1064016912,699525220,1658267073,1403800389,-605447904,-1334420073,751802965,-858615770,1899795038,-2003020719,-1954736773,1809750988,-1757455828,845820098,2052698145,551821152,-362486095,-2018359342,-390867706,1493097567,920800795,-998439672,-406219837,1744193969,-1510993639,-1165086766,1966190167,1002599049,-1445052915,-1509795988,1199958982,1248388266,1643029933,-942546459,1377796939,-308577912,1782638791,326037918,949037993,-215896172,98173006,-558614490,-756804376,1575549720,-1132306253,-795645910,1646696022,1830925550,53235423,-203983870,33690008,-1369975906,-603822614,-286393190,-266304256,1414302771,2011586480,323873068,-966190263,-320047863,-1366016532,919541010,-998712212,468818560,-1755754331,487992852,269265309,-2110889589,1104784404,532203599,-845410332,1481495745,1465367040,1053740776,468687021,656045241,-418443401,-1235549512,-2082313042,-1953725517,-2025690658,612072976,-1269764070,1930084463,1156898784,-718726496,-1733402408,-677651757,189131742,436609877,1386317678,-2072082423,1389131671,-1581279119,-1611892437,702816704,410292969,-852175531,-1162238334,624252201,-1905117485,-17205262,-1744045210,-1783235151,-1837335028,-210490006,1850175501,-1710446380,324265442,-1059670127,262278500,1734139352,306311970,2001659930,1528397326,167161746,-467136482,-1820727454,1093208887,558941217,-1825791838,-1235370674,358069382,-807083441,631546586,-1477392548,630906675,1268565214,-1065535355,-119409631,-1010043971,-1242419299,-1081210613,-1499120322,398829981,-122840443,-1385142304,-498180326,-1945826196,-362291929,963211178,-498216771,111673367,1731213320,-316030339,129570532,-2029161496,894239021,998429907,1841699694,1045629026,-1111617116,1359186868,110687487,-134654559,-2132267042,185741707,-1137222036,2143073441,950260841,2092836911,2030715130,-1194284463,173049911,-1735961801,-133391306,-703955889,-1155929622,-1890137177,-574307949,1577915703,-1693927370,1353113191,-473592065,-1979277336,1645234817,-374587639,1071166269,2056604507,-1697284417,1068897986,657418743,1492722671,-445265368,-464281419,-1471816693,-1601462175,707373400,314694033,1763311735,1439119857,123519106,-13940237,-158548045,-1134465011,-1704757772,1745786643,-531734501,-555207314,-1496962653,1670842912,-753232004,1659712735,1673532368,-1850883640,1144610298,-1892418486,-712156502,1839135821,1973333497,905591912,1044966115,688083579,-2141419548,-355517969,-1740617446,-1696022509,-2028136509,2021693451,1736610997,-393235518,-1497393506,-1654401325,-1466894053,-1791094425,727174270,1760263296,-669320159,-1158550145,-97280729,-289150544,-876388286,344929195,-1526147384,1473616155,-2002235695,229943521,-1392341150,-1243353822,-616304232,936269065,-1784630477,1508710585,-1017781849,1193086027,-1327920465,-622588650,-1213254156,-64010369,-2052629542,1044015490,-2024409496,-2027520616,290468890,487158705,2123604567,-517375361,-424225016,-1762945305,1627078793,-1526854248,-716446301,-1002317452,1336100306,673751923,-1706021591,1398553992,713346447,-486119150,-850606984,-1316412947,-77869740,461280571,-258941404,-1245102444,-604127513,15241372,338251077,1298107694,-8412291,-472450601,433517322,537049878,-1238389500,654081678,-2080879472,-1351067258,1095683635,747559228,-879933772,825273647,-464714510,866948011,1998351607,-1497024098,597473643,1957483095,2048955695,-1647488174,-1316436070,1541009620,774408535,885772344,-1123083673,-1220066329,-1890495398,1079769230,-704754912,-1293191490,761807535,839417355,-1916290420,121961524,-1705155741,-2124331091,-1909483960,-342280625,-2110237927,504750743,1716870570,-1138185762,-1707454864,383766065,214010542,-1596848829,428993623,590604894,-1714858881,-1882611905,299617344,-1863029934,-731632245,-1287994405,-388567510,-1858794424,-208993337,514674702,-97840386,668894843,1968457938,1663606557,-583990829,1813309049,-1923799795,-743085359,1662001686,-2055594596,1344911893,715816613,-1570445717,1471704855,-183280885,2005723405,-261871729,237349161,442666495,1718037533,1646566753,516808297,2051594825,759648625,-272326816,332252870,516937900,-175588726,1463992701,-846323383,1375400617,-358693291,-74068766,1710677618,-524363389,-1265177370,-683734277,-2135957236,130907135,-2104622157,-904823376,-728130246,-236395377,-131500270,-1486730721,831284069,1848866088,-567154377,-895777891,826954584,-1227019201,1525009275,-1830867881,1758156058,-1097613522,-1937322401,-1774886460,966725901,1785488019,1071863898,2119821787,1688978881,-312302181,1898909104,-659354223,-53030624,1587166746,-1342129210,726804005,-2075646284,841019047,-2089880594,1793580001,479868366,-14956792,1804108117,-1182533115,1900912309,-1208372120,1239736909,984629836,-577476079,-1153409809,-1822956023,-706326442,-763926001,-1820762740,-1196490266,-1442597258,-1398117941,-1640008453,651793087,-1300804977,-777344725,-1746380234,607718274,-741754173,1536218749,578272285,-834214847,-928577311,165141564,-1161231043,750603330,-1318257522,-1802658117,-1356826707,1179045161,-880719952,-2028420376,1470032932,-1371658884,-125357676,1528070677,-715620599,-1614723928,1500231674,-1959058706,-1619983540,1233726554,-738596257,567118845,1157502172,1329207467,1611792640,2050566455,2015437568,1026062416,637617771,-1380956727,1915749382,514805696,-1671957031,582361083,-1052694315,1781783295,1130589055,-488596890,-1986481455,-728535014,-54565742,-1771981294,1933446840,-1478754758,-457817282,-809720283,645469568,-1915391151,1291742784,2066468186,-660645732,-1066784305,1441003702,1620477304,3810315,1162875509,-1147927558,1761841810,-223937615,2012394010,-1659939261,875603288,1739368994,1382494572,-2100988903,1591628461,668774487,342915975,-483873435,-201750252,1535708822,1416640570,-746829787,1945429046,1661280373,2072600905,-1020573111,416586890,345617834,-951832765,1152495770,1278578359); -/*FRC*/Random.twister.import_mti(154); void (makeScript(14)); -/*FRC*/count=85; tryItOut("this.o0.__proto__ = g1;"); -/*FRC*/Random.twister.import_mti(166); void (makeScript(14)); -/*FRC*/count=86; tryItOut("\"use strict\"; s2 = '';"); -/*FRC*/Random.twister.import_mti(176); void (makeScript(14)); -/*FRC*/count=87; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return ( + Math.sin(( + ((Math.min(( + ( - (y + x))), (mathy1(Math.sin(x), y) >>> 0)) | 0) || Math.max(y, Math.fround(mathy1(Math.fround(Math.asinh(y)), Math.fround(Math.tan((Math.max((Math.fround(mathy1(Math.fround(y), Math.fround(y))) >>> 0), (-Number.MAX_VALUE >>> 0)) >>> 0)))))))))); }); testMathyFunction(mathy2, [-Number.MAX_VALUE, Number.MIN_VALUE, 0x0ffffffff, 0x100000000, -0x0ffffffff, Math.PI, 0, -0x07fffffff, Number.MAX_VALUE, 1/0, 0x080000001, -Number.MIN_VALUE, -0x080000000, -0x080000001, 0x100000001, -0x100000000, 42, 0/0, 0x080000000, 0x07fffffff, 0x100000001, -0, -1/0, 1]); "); -/*FRC*/Random.twister.import_mti(389); void (makeScript(14)); -/*FRC*/count=88; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"[^]\", \"gym\"); var s = \"\\n\"; print(s.split(r)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(440); void (makeScript(14)); -/*FRC*/count=89; tryItOut("\"use strict\"; mathy0 = (function(x, y) { \"use strict\"; return (Math.hypot((Math.log((Math.hypot(x, y) | 0)) ** (( + (Math.fround(Math.pow(Math.fround(Math.fround(Math.imul(Math.fround((( ~ (y | 0)) >>> 0)), Math.fround(x)))), Math.fround(Math.fround(Math.atan2(Math.fround(x), Math.fround(-Number.MAX_VALUE)))))) ** x)) >>> 0)), (( - ( + (Math.sqrt(( + Math.fround(Math.asin(Math.fround(Math.max((Math.trunc(0x100000001) | 0), Math.fround(y))))))) | 0))) >>> 0)) , (Math.pow(( - Math.fround(Math.atanh(Math.fround(( ~ Math.fround(y)))))), ( + Math.fround(Math.imul((y >>> 0), Math.fround((((( + Math.sign(( + -Number.MIN_VALUE))) | 0) << (y | 0)) | 0)))))) | 0)); }); testMathyFunction(mathy0, [-Number.MAX_VALUE, 0x080000001, 0x100000000, -0x0ffffffff, 42, -0x07fffffff, -0x100000000, 1/0, 0/0, 0x100000001, 0x0ffffffff, -Number.MIN_VALUE, -1/0, Number.MIN_VALUE, Math.PI, 0x07fffffff, 0x100000001, 1, 0x080000000, -0x080000000, 0, -0, Number.MAX_VALUE, -0x080000001]); "); -/*FRC*/Random.twister.import_mta(1296174335,-1086879565,-1878561058,-1117019555,-366264229,-1135623141,-670822023,1990005666,-1803487375,224023164,1460120805,1369650,1856251571,-112477767,1269988192,-819578749,1637472954,1774955247,378011030,-947744173,867098063,1355327304,-1809230142,-1920209658,-1677860731,-558416914,-1134145963,1682708483,-332990267,1251113198,735052962,-742129992,1468072690,2085082868,802988817,-1386067186,-327297634,-1275462590,-217972334,-1158777115,-115541907,-1988590512,-917012341,-868524397,-1754898938,-1768953430,696430338,394895453,164881173,-588584650,127370710,963244721,-780914819,1243373331,-142020489,858973523,-544643670,-963142156,-1021836225,-1874937788,660673199,-1501183586,-59429767,1924473123,1787111473,-1767550871,-350623202,-1217061834,-1014797965,-2119224076,-2100336207,-254367943,-454066485,1406330646,1300600390,1403088857,-2034122859,-2009546109,1356466225,-676617625,-1002584249,1940382942,-458657838,-1360770598,-114231573,-802403491,1002188263,-2094692274,-2007164840,1138446597,1098127081,-1307192091,1380670018,-376217503,1096296629,-1333536024,-1468203485,-1735026414,-813466378,-886969775,1846427670,1098465022,-1889835373,-1909191750,531196322,713104873,-859248642,1572614374,1557905696,427856773,867806421,2029221385,-929107223,-1240154926,1493048534,1204790081,-1997447432,869450624,-1195483903,-278280008,-944618798,-94709268,85226550,1116629656,-878873185,412008648,930616111,1370736872,413621850,-2002696257,837225979,395367447,893955647,-117269056,-815227864,-1156905298,-1893306186,144116386,565041233,-1591351566,-938356930,-629226996,-556731530,468151255,-1934891930,-402844430,1621481032,-734168911,-1410020156,-651868005,-442575472,-1716474406,-556246375,-227869263,-971388380,1085605355,-1069607031,-1879978023,587514005,645302735,-1540199568,1355629420,822550421,1880066327,516108972,-2002886442,66184651,151443868,-576847834,781784586,-348664538,-532765926,1573170778,-1328180589,-1954659781,-2028052807,889492160,-2093968723,-1236704398,1271177814,-1061360229,407824931,-1559122895,1431716823,-1758313227,-1367155814,-1941320161,-1816928688,-2053008950,-836579730,-2081712567,-725858250,-931690818,-654979275,1383796461,1135127623,805610203,-600538031,-1234695886,1422406891,-798823458,67557775,878658003,959767034,-373089876,-495718982,2016762091,-1266752475,458821226,-75537748,-1326097804,718988349,1574537590,1514882674,-1272410202,1747411066,1565573547,-388285400,1584945969,1744730044,1235052870,-1969767944,-515331634,-1657182363,-825065710,530542141,111039732,-205992697,-303703586,-2080436880,1991146779,-807067084,91875462,1031560118,-1905239389,1467043936,-879368666,72692346,-755072477,-872785106,-1342993847,982865133,-1994080587,-1918728970,897523002,-1096178409,501097095,3588555,-11209047,-671752784,-1911728910,1481887948,1518264664,-1970977822,2070256690,-218501097,571718964,-1315647998,1899488439,401937693,-1597604114,835128359,1270129025,1764003701,346970250,-813227537,1066308370,624692393,473144596,-1252929904,1043779691,-890590477,1210858662,-563577068,-511206887,72859406,766588634,-1350700426,2087370053,963951330,-406654904,829167926,-1754206175,1273719338,-1723033963,1233584155,625645932,366737339,1302634779,828338851,-1141358132,1066531997,114101374,1184652026,77475857,-1070790350,657596626,1619101367,938389472,-1445018575,-1092805568,-458615148,1020622190,1286216603,-101496941,2035762063,1070958807,-170013009,2071004218,-2034908881,-1451378689,-1812571202,1072399780,-1736717372,-1713858950,242343414,-833468185,1096439067,1585117389,510361295,1039118519,-1679944821,1439376946,45417638,-1395506957,-1663256647,479769063,-1555133372,-1829861742,-621772628,-1170098694,-1431525523,-286172279,685349298,719176766,960131329,-892355953,557696945,-1978594725,1438803294,1774606461,1316969319,490624464,-447699404,-247637541,728151111,446166075,2131755742,14479126,-2073034306,805071891,-1874137243,-7220312,1974189762,246348841,453879150,-885884557,2035226614,-2145592048,-1828073525,1352568864,-1137444948,1769372930,1716740141,451415150,-771712417,-1023079864,-1346343465,1466049386,1257264445,1917416723,14758526,-696377221,100906100,368138392,-698799506,227717849,-573130110,-1017892208,707671349,-1306610177,1426447449,1713030012,1720219368,1729233901,1877981456,913822788,-1088045582,62094379,821770717,666084820,-412293782,-1629942712,641156753,-929677356,-273120673,-297275648,1236355970,-212058155,-1795014096,327895911,795261043,-1980172528,1841361165,-287544633,945133318,1369524810,1194578039,-622462193,-457636324,897302416,-1110613659,-134782779,1140154263,331305354,-2092807028,-1920946060,399349543,218389311,-1889514086,875685069,-1972398146,-1783960109,53349390,-1038036802,-76206582,-2035326164,-704500087,-1922601999,-509671641,682431701,2083455820,1017090810,819510987,-1140534900,-396122000,1005237150,-996266655,1648386585,-1122715574,354283125,-1992489255,-1564437608,1744496066,1078444921,-370644217,-1996704673,-700495073,2051390543,-1866417979,-1618712149,1070469831,-1815944784,-1901816034,23874131,1315226756,1630652713,-678109693,301942399,-1858068826,-1756922521,644523212,-1054929013,1874410461,-1946277347,-451097197,-2112047027,-1600887265,5310888,2072866516,846013581,-997534543,317617890,1611973878,1926082290,1443048119,-1916884029,2090492240,402923594,-2137985928,315290340,510468842,-1732952438,-1007714388,-847219317,-1148292761,-700738448,-1746942854,-2015934365,-1208889200,830580441,-1765245366,1006466189,-1343638042,1364829732,58344067,1780095328,1965842569,254644906,-468533968,-1046883527,1201921579,-1358238415,-2113350456,-672500562,-918844590,1193267826,-2003833019,694961365,1540445164,1238333808,1498698009,1211136492,-919485373,462875996,1915306655,-577535274,1043401745,-566263016,489805386,-1150903549,432410935,2012187877,-476397958,-1339898516,1562216395,1508753897,-144592250,-1191340441,1775545941,-2080923743,803491121,-1288488433,-1075405489,67119845,814033185,-727104274,428988993,1731625055,-1210520715,642779451,1686348501,1251619816,1245608614,386200378,1187808906,-853212851,-210289730,1643496896,1879803370,1094280658,-954386719,-1950112505,1624975661,1473019281,558500297,-1794104584,-688624121,-1355729382,-1588995537,1276972959,-1708555826,-254540768,-391073567,-1616348357,-1172829477,-237616870,1440139773,1357604687,-1758050758,1786786831,-2010817576,607196071,-1917534712,-1220297220,-1183528029,1751211038,-1757058701,-1589992874,576010783,534906575,1894862432,1346207335,-1297252817,1789061355,-230163313,1843342342,60955360,600964827,252267042,1539737216,916955168,725433959,-1443564013,-1618268309,-831028816,-246354728,1870886126,1952512823,1982197116,2113596793,-2105654426,-1941866302,1044703176,-186310092,1530804291,-599151428,955800843,-969584315,-830069487,527741538,181830822,1171760397,-2034155383,-958410775,-1422304050,-1808320090,-1624330193,-1425626321,-1802119523,-1667374609,-1429280871,1353381339,1374575008); -/*FRC*/Random.twister.import_mti(130); void (makeScript(14)); -/*FRC*/count=90; tryItOut("\"use strict\"; print(x);function x(x = [,], y = \"\\uF092\", a, e, x, x = /x/ , eval, x, x, c, e, w, d, y, x, w, x, NaN, e, NaN, x) { \"use strict\"; print(\u3056); } print(new RegExp(\"\\\\d+?\", \"y\"));"); -/*FRC*/Random.twister.import_mti(422); void (makeScript(14)); -/*FRC*/count=91; tryItOut("v0 = (b2 instanceof e1);"); -/*FRC*/Random.twister.import_mti(437); void (makeScript(14)); -/*FRC*/count=92; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return ((Math.log1p(( + (Math.fround(y) , ( + x)))) | 0) ? Math.fround(Math.fround((((Math.ceil((x >>> (x >>> 0))) ? y : Math.min(( + x), ( - Math.hypot(0, y)))) | 0) <= ( + mathy2(( + ( + Math.fround(mathy2(( - -0x080000001), 0x0ffffffff)))), ( + y)))))) : ((( - 0) << (( ! (y >>> 0)) | 0)) | 0)); }); testMathyFunction(mathy3, [0, '/0/', (new Number(-0)), null, objectEmulatingUndefined(), [], /0/, ({valueOf:function(){return '0';}}), (new Boolean(true)), [0], ({valueOf:function(){return 0;}}), undefined, (new Boolean(false)), ({toString:function(){return '0';}}), '', true, (new Number(0)), (function(){return 0;}), -0, '\\0', (new String('')), false, 0.1, NaN, '0', 1]); "); -/*FRC*/Random.twister.import_mta(-819839228,-1151366982,1388258241,-6923371,-397808991,2096254835,378435804,2106892704,2130230840,-483775257,1194959726,1958697097,1091856927,1352827424,56020475,-2026140264,-300402113,419213121,965457274,1298099788,1068090499,118550622,-911885543,-523787184,-449574327,1385265702,-402607920,1832590339,-1640230275,-1824038531,-1846827,-425203064,-541266851,-1504971390,1788749515,1252096053,1763983594,-981085883,740041693,-563314825,-2145226935,-1612508541,1107404764,1588511094,-1032130036,-167656423,-180976333,-576290260,-946004068,-885557580,1401094808,-872998098,1824925587,1028170063,-10497871,-1140436123,-303080988,-102172525,108763302,-1417023327,-992592180,-154312548,1897021160,990730656,-1271874521,-1265370492,872658374,1932996219,-1513400343,1517534282,1106740572,-349305326,308551007,347074478,1951585154,-2004477449,-1124067992,-2086135243,-455193765,1990785215,88707903,709924771,-673003371,-145082034,-277629029,1550031014,-1031947381,-1985021529,1131112762,1871261659,400400087,-286071486,439406719,-937098660,-1903586498,-154420413,-475825809,915937375,-1964172,488454507,1435566070,-1853320900,-1559709459,-1907529752,-873734144,-1989239090,-321467205,-108555202,1559458383,-942951225,771679390,-1809085058,14355845,632321819,-474271642,1279841936,-1864850045,-1631489277,94217923,-1102404673,1125933287,-1665812221,1014424326,127963411,1434546515,-178571859,-884778482,-1133417919,-1069181749,-1743325237,1705076818,995193255,1431691445,-465317451,1919012454,-190840236,-72542178,-1914800622,538434136,-1331584143,1957608263,140442084,1663299137,537262856,394078380,986241228,-114788831,1123980632,-1286172136,-1075156091,-1079022253,-1752082349,-1875489811,573931712,1045365963,852794908,-1104445922,-1622758140,-1418068495,-2029447360,-1097674831,783943951,4632187,1132238537,-1637437019,673465882,-332145617,-1318618328,-313228834,-1001543799,633968752,1040789602,374620076,-1237867059,1386398811,2125683399,354699137,-328790971,-594109816,-784885236,1114287293,700105873,-772363477,-1921805206,665854893,-1894700617,-76246777,678567950,-1789486152,-1256040451,1778138875,1206533508,-92594841,-1410092759,-1904523556,-1439178795,518391012,-994104334,1025190682,-647915209,-1266112266,-146281727,1790942593,1226531247,-213404229,1767072872,-1116527355,-1186355967,1719765269,-2077032058,-190996534,-388393474,-475822552,90240433,2126853275,-227052281,-1297293667,820728494,-1731827952,-1325822715,-1704629037,-610074680,1124193776,-67838362,2081022040,1407573921,-247820292,-1177496597,-90173950,-1327452781,-664483185,-1426776350,1649173160,-2000755374,371984784,1530023211,-1593788966,-145861984,289568030,-1880809500,-1797220215,-1630788994,-1041575965,-1264077662,-1633628907,-294906650,-733168010,-1727328504,1827282566,-1901915808,-1930539978,-938771739,1473502167,-1783464247,-850438953,-818557721,-1953692036,510694225,1951781081,-807414998,1738589006,-699611436,-415527088,1668508847,2068771181,1943759444,1442499068,-1908694589,-2058619445,-2079162570,-489478960,-1502811041,-650773613,486406368,-1618125397,-783973135,-594964593,-1262555931,-682801569,1596415927,1711189460,1844385918,-638327184,2017567345,69453889,350147600,946650019,2064440990,2003462418,1827544590,-36890831,-1219085800,-1747068935,-1354490607,1394715362,-162379904,-214183986,1510003372,1724503253,1292538751,1727718628,708340021,937141477,418449022,1711999789,1648115695,-716263625,2029064482,-1341995029,441754549,-1096739695,-1333365431,1348369732,-1903038282,-829024420,-45417066,-1775454839,-1578610066,2026892026,-1647331077,1556265798,-462684121,-141477616,1824713161,-503385252,682028888,213548873,484949183,-51326614,-30907888,1108575361,630979867,-587050473,-105369948,2081561697,-526639145,241035200,-1308700308,-20267055,-1389325980,-1685624201,-316401010,2128643466,1900984753,1383766527,-1847661567,-2117950768,1131550572,-1634879012,-226466352,-1769122178,709466247,-1886459188,1427936453,-1309165322,2094274733,-458130384,1705969370,-337828195,1025157285,-94754205,115011815,1585513117,-153543127,1037470690,1100308348,2118722885,522169074,-1272028251,-1022368745,544563767,-1521842098,2043216630,-204416403,1775370351,1821866923,-1862191420,-570067941,1536094742,271688141,-775954893,222455157,26256744,346738487,-1464766068,-1337845805,-1734620743,1715716475,-1345379010,329219217,1892344956,-787859583,-499690099,-931609659,1605602008,-1703446946,-1600847288,-2056308923,1955074426,-963040576,948717867,1449050067,-1856269666,-1153252803,-1337079866,-196722771,1806090984,-166665755,1541818271,-1957989149,178099207,-985455856,2011379363,-223659582,701695560,-745094270,1741434033,-159996997,1079647049,963338206,-1362855178,1571193066,-341780014,1073114299,-1190806281,2118949516,728252076,1798548945,511760461,-1478383820,1997332489,-318210874,-399012910,-1552855613,-847744711,997511386,1064609769,481631769,-162280997,807780813,-1728657918,799374679,-2121660442,193433598,-1659381774,1169198560,1122932821,2119107115,1254757237,-1781837318,1025206234,1978175616,347575342,679746058,-1629310551,1395677769,35811917,160684399,-1571483215,-1327010620,-611600588,-1347731830,-1243193318,1039601675,482903222,-918251033,1185389620,-725083043,-1559587564,1104473466,267021861,-673712540,-563710307,-315987697,721562252,-214041672,-252829240,-2131993581,-935129895,515285669,-1702563908,-1055536238,-1362988239,1950714982,-625009859,524819169,-2077216489,-1119627360,-1917571428,653520099,1746359178,-1078395916,1680847015,1029053166,378417245,-1337525893,663551917,-448402043,-1805274425,552706768,-433805526,285252588,-1874727275,-1216563752,-803002036,-1262309530,-1033365302,-1472184479,1074246024,-48997688,-840746462,540800183,-1454471442,1973931277,-619655410,1503897721,-1426183975,-757934403,-103886531,325462695,2058331477,-237052849,-945874755,-1423266440,-1383685738,-751336194,1991920188,-1551065336,-941977920,-1356276758,-703885255,-426105099,-1530412649,239471258,-105171603,-1705613924,-812319158,338879585,845328428,-1702967034,634949891,-337965400,-665468731,-1649488876,-2104618709,-950674813,-462150364,741890470,-597048622,-686978055,-700136858,1024954624,-1044133103,-1101729442,-1790310268,-159858666,207283660,361439116,-331898669,570713351,-189993405,74980977,231536504,-662607230,1979344094,-2044616868,1590904133,721053967,-423675501,-1834471598,1968968797,-1721065229,-1761299707,-631014354,-2034187678,-356706349,1613390262,-972028075,-496257705,427252084,1835283445,14792474,-58058907,149469338,-981186494,-1657622370,1019979221,1924818385,22959606,1935819229,-309670343,-1321163762,-865626966,-1467743697,2015652394,-863627831,-1261543840,-2092060813,-1638367504,-566442859,-219153442,804437006,867502159,-1418483746,714266853,1974084680,-716882025,1806550606,-217463006,1311439961,297897316,324146133,707397448,1660722834,870280988,-439043603,-989817767,-1136590540,38300688,896603557,68616406,-1360117526,-1300211058,-2029773366); -/*FRC*/Random.twister.import_mti(97); void (makeScript(14)); -/*FRC*/count=93; tryItOut("\"use strict\"; "); -/*FRC*/Random.twister.import_mti(104); void (makeScript(14)); -/*FRC*/count=94; tryItOut("\"use strict\"; testMathyFunction(mathy2, [({valueOf:function(){return 0;}}), [0], '\\0', null, ({valueOf:function(){return '0';}}), (new Boolean(false)), (new Number(-0)), (function(){return 0;}), '', '0', undefined, true, (new Number(0)), 0, (new String('')), (new Boolean(true)), NaN, ({toString:function(){return '0';}}), [], objectEmulatingUndefined(), -0, false, 0.1, '/0/', /0/, 1]); "); -/*FRC*/Random.twister.import_mti(138); void (makeScript(14)); -/*FRC*/count=95; tryItOut("g1.toSource = DataView.prototype.getUint8.bind(s0);"); -/*FRC*/Random.twister.import_mti(152); void (makeScript(14)); -/*FRC*/count=96; tryItOut("testMathyFunction(mathy3, [-0x100000000, 1, -Number.MIN_VALUE, 0/0, -1/0, 0x100000000, 0, Number.MIN_VALUE, -0x080000001, 0x0ffffffff, 0x080000001, 0x100000001, -0, Number.MAX_VALUE, -Number.MAX_VALUE, -0x0ffffffff, 0x07fffffff, -0x080000000, 1/0, 0x080000000, Math.PI, 42, 0x100000001, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=97; tryItOut("\"use strict\"; v0 = Infinity;"); -/*FRC*/Random.twister.import_mti(195); void (makeScript(14)); -/*FRC*/count=98; tryItOut("\"use strict\"; ;"); -/*FRC*/Random.twister.import_mti(204); void (makeScript(14)); -/*FRC*/count=99; tryItOut("mathy4 = (function(x, y) { return ((Math.pow(((Math.sqrt((Math.cbrt((y ? -Number.MAX_VALUE : (((Math.imul((y >>> 0), (-Number.MIN_VALUE >>> 0)) >>> 0) >>> 0) == -0x080000000))) | 0)) | 0) | 0), (( + ( + x)) | 0)) | 0) , (( + Math.fround(Math.abs((y >>> 0)))) , (( - Math.imul(0x080000000, y)) >>> 0))); }); "); -/*FRC*/Random.twister.import_mti(400); void (makeScript(14)); -/*FRC*/count=100; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var imul = stdlib.Math.imul;\n var Infinity = stdlib.Infinity;\n var abs = stdlib.Math.abs;\n var NaN = stdlib.NaN;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Int8ArrayView = new stdlib.Int8Array(heap);\n var Int32ArrayView = new stdlib.Int32Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = 281474976710657.0;\n var d3 = -68719476737.0;\n (Float64ArrayView[4096]) = ((d2));\n d1 = (d1);\n d1 = (d1);\n {\n i0 = ((0x6feb0a2b) < (((0x8c67ddda)-(i0)) ^ ((0x446a260b)-(0x666bdbc5)-((((0xdbe431f7)-(-0x54e2f4)) & ((0xf9422eaa)))))));\n }\n d3 = ((((0x6c86808b))) % ((+/*FFI*/ff(((imul((-0x8000000), (i0))|0)), ((~((Int8ArrayView[(((0xaa2849d) >= (0xce320c9e))-(0xbb38443f)) >> 0])))), ((d2)), ((((+(((0xffffffff)) >> ((0x9c73a48b))))) * ((d1))))))));\n return (((!((+((Infinity))) != (+abs(((+/*FFI*/ff(((abs((((0xfac5b5a4) / (0x918e0c76)) >> (0xfffff*((0x422c3430)))))|0)), ((d3)))))))))))|0;\n return ((-0x745b9*(0xfded4be3)))|0;\n return ((((((i0)-(i0))>>>(((0x624ecfd) > (0xe71dcaea))+((((-65537.0)) - ((2.0))) == ((0x1040f1a8) ? (9.0) : (274877906944.0)))+((abs((((-0x8000000)) << ((0x5af2b22))))|0)))))-(i0)))|0;\n (Int8ArrayView[((0x18e955a9)-(!(0xd8c34671))) >> 0]) = ((-0x8000000));\n d2 = (+(((0xf960cf32)+(i0))>>>((Int32ArrayView[((i0)+(0x15d7467c)) >> 2]))));\n d2 = (+(0.0/0.0));\n; {\n {\n switch ((((!(0xfffbdbbb))*0x9b2ef) | ((0x1340f942)-(0x53d71945)-(0xfe0afcba)))) {\n case 1:\n d2 = (d3);\n break;\n case 1:\n d3 = (NaN);\n break;\n }\n }\n }\n return ((true.search(x)))|0;\n }\n return f; })(this, {ff: /x/ }, new ArrayBuffer(4096)); testMathyFunction(mathy0, [0x0ffffffff, -0x080000001, 0x100000000, Math.PI, 0x080000001, -0x080000000, Number.MAX_VALUE, -Number.MAX_VALUE, 0, 0x100000001, -0x07fffffff, 0x100000001, Number.MIN_VALUE, 42, 0/0, 0x07fffffff, -0x0ffffffff, -1/0, 1, 1/0, -0, -0x100000000, 0x080000000, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(-658443496,-2065747899,1616558037,-710931292,-1322309451,-1709396240,-2054647059,-1892575014,1557895425,138023775,1430781310,-496713137,-1558563341,-1841413595,-958470692,-1712874653,668851901,890690805,-180783964,-519012817,-167847020,-41912806,1225297398,1163317005,888028665,-543129158,-798797211,789775638,-1360553235,-846109031,408967317,-397009220,-188457483,-1689566285,1364226051,-593122393,414913982,41865224,-1924505666,-429055854,-900978809,-1756161483,527606134,-1177829628,-844288124,1645868448,1700056808,-19310532,539702970,724506905,1538559932,-1516130205,308785538,-1682161827,-1293743635,1648376028,-847718756,-572555782,-537128250,1615424811,1928685857,-623112507,-1386102764,1486576120,-169688120,-270025991,-1654376471,-1759141987,-1535293502,1717329562,-513859756,1932536676,1266883245,901973988,1251756608,-2132378583,905368778,-1067073538,291583800,1799510152,214738717,2059065420,1696316930,1949664430,-1356593215,385097259,-1449508758,-1156927584,-1316733485,383143587,-1975868159,1503983228,48328141,794008085,1574278794,-1929986865,-15555042,696202215,1740690705,222593110,-310270693,1558797934,1742147876,-2083432662,1438110859,2132949015,-876642361,659693748,238011866,-1802016123,-1571423778,-1721596011,1992610202,-63004143,1176477695,942302448,-1546664877,14068912,-544323207,1383639157,1166064355,-1477074754,-1983982863,-915952349,1383855686,-1572948550,1813686407,1420614444,104091588,74120725,657233668,1954074181,67208175,-1355057398,-590731297,-653177448,1219047827,-1448028095,453903611,751506230,270375059,-1694763053,-1971571582,778437973,-155229490,2110343946,-53377352,-1692051417,27811742,581641042,-17283760,226121723,-2045293671,1349251292,612228622,-556370914,-235427876,1509836451,-1241756746,-904187189,-606164012,1964787505,-1699569988,1654064718,1349139836,-1562531408,-2144151786,55583793,2098199623,204966269,905900350,-308992443,280710507,-2063219025,1060879695,77471770,1968720595,-393507034,-2111382827,-1743288521,1271256514,1402490909,1607373633,-1481338116,-1637772514,406384441,1557244061,-819001954,1588276159,-784528777,1364163347,-1519686758,-1080874602,-1430819497,2102655803,-2095802664,-1965320234,648675239,2034133389,-292943333,1642523180,1913585903,1673118877,1380225500,1532694074,-1274795502,1860158849,-1059410768,2008261771,-1358172046,532745393,-2099772362,-1785579938,-1213487114,-1285482103,-361441063,982071237,1069309076,614518704,289051375,-779059504,1674086120,143358614,2048127226,504635365,-1977803408,1122288864,-1517226983,1168627283,-1788845491,-2133163051,-1073145375,-1639719847,-828467675,1000345232,1281082348,1939683855,501663729,-443134531,1885522280,-581414118,1059271410,-1011597006,-242939672,1109448326,-1625347169,-1382680149,-2087988009,-86901078,260025325,-1201945952,-972070707,1282477569,801917137,-780053574,-350152237,463577070,-1153302490,-809896151,-2028716974,-1335025447,583907243,873770287,-1139483177,999515426,-1481163968,2021146796,299986365,-715512402,1847276318,1945467380,943678098,744950224,-207957790,259205787,-681098846,-394731596,-1457873844,1396354919,546891624,-1387547806,-1642399019,-2023204549,1449230947,-676325390,1522728904,1573847652,1228955048,-324337214,177208147,53495028,654612715,558695598,-185277800,-1408451491,-572481499,190592972,1261651425,-859975164,2029938911,-1177058399,-931583763,-1935737066,-1610882685,1752371414,-1563504516,389730329,-1916439497,-1365755575,-482114411,-1250029867,-955565725,297592432,-825144380,-978333333,1671092168,1176659860,-161656708,-833905954,1820340334,-2073220391,639437314,1671395572,-806494288,2100053067,-124429718,-1707086122,-738603602,603811686,-1613339717,135534968,-499233441,66989893,750698792,-1911251072,1224816186,-1939340749,1144526569,-805646553,-1576020866,-1968394410,963632442,-1719301897,335165555,-1859032465,-1620109295,868328387,1254516237,-558525866,-1023903282,88854975,1438417696,1371033351,1960932604,-1278318683,879555036,1992129912,-1949649771,-1275254072,-1608243711,1969143718,1786910286,2071294547,373453922,-1988462593,-1121835386,591709775,-1828578914,1651815687,1129198918,1019429234,-1973689419,-584476957,288372304,879121709,153666812,-727635584,-1824572325,-1670760510,935335007,-1883082055,615877818,1300996954,-441508070,-1730675307,1622745013,540172969,-868665013,-1512355418,-1562907518,-753226415,-1200019611,1609136269,-269806982,241934110,759528803,-678911488,1337653635,-824593627,-705308383,924985753,932606976,-1070075429,763275568,195043375,-134890591,974604058,-1086437678,-818586957,-2088179299,-2062220428,2090383504,560821208,137898937,-421239713,-1270510280,1930357621,-1469397400,-1176583051,-1460595475,-1000067806,1216583634,1172770906,257030514,1502589665,1821013723,1109093420,-139577643,1644155765,-2127100858,1690349503,792775635,2092186668,-1855238718,-1654602531,-251574368,945409953,-1109370749,1136808975,-1712761505,2037492098,-1281090950,-1346953434,872602684,1566841444,-1663093947,-1223318747,1845348277,1764568597,1443285371,1088927930,340776434,-1637937035,-727896853,1426090466,-574726230,144784933,150518738,-1736790141,-209319997,-1723135648,1632845469,-1951859914,2113501268,-1605616675,-2033876057,-1022462055,-1931667056,1607025743,1565116159,-630262822,-1273275113,1887612871,-132846355,-1173018357,-2102989234,-704563909,1165161491,274497856,1093892575,1330031896,535354109,-1862017056,-1342790993,1844362633,1420386173,-642394238,-155764841,-390270715,2032874,-1547132883,-796127826,-1189333449,-365434787,-1865768481,529853095,-978225917,-1597042616,1749529594,527784517,-1155883756,-1638175474,-1931928754,-2140583150,-209990657,839820034,-307214329,-850891866,-1601120335,-510016470,-1619736345,-1021881211,-1189500527,1883727331,-1130809013,1625073009,-85057326,-421552971,-138461849,-2062391589,1427324000,1456177372,-2005535079,1570727687,581470110,-1209993446,1765287771,-633682751,-1611840232,2123597781,1975403046,-1558691646,-437398223,-1292895632,-1058126087,-917354900,810698362,-1404086589,-902537760,-631759314,-79901552,814580182,760066498,-1636966434,218041826,-1133410228,983309501,-1436955728,-728531167,146610631,-1855580368,-993717988,-1480645947,-795153772,-1463439963,1708137856,-1793856387,-1492682290,708103939,-1600067397,-141918513,-1997347780,1698792315,-157994916,1193859399,966516058,779767846,553354048,1882966675,2049126918,-2042111787,1136362290,-228678138,1889649394,-1500488389,-1365204339,2029570747,-310985781,419901338,-33364446,1955704689,344186056,1880665489,1417632089,-984355622,1955612925,7447606,1978766685,-902068609,-726096496,1323443813,-280379990,1885902670,1599533914,743023525,940808759,-1679797728,1945075210,2085433632,-1537316084,1187604567,-1263246891,479270675,417396013,-1444270465,801118422,1108801400,-1236889304,-626507191,1164666344,1963894319,-1916600783,1372016892,970839335,1742460258,1582543701,-50893800,-1841390759,1003036008,1575155942,-123981297,1462481497,1858564998,-1142367348); -/*FRC*/Random.twister.import_mti(601); void (makeScript(14)); -/*FRC*/count=101; tryItOut("L:with(new encodeURI())this;"); -/*FRC*/Random.twister.import_mta(-1797402242,670849040,-14295181,-155382500,2056790904,469436530,1793484125,-54174608,1793065681,280279461,386176810,129036437,1402959952,-428183142,-1453079042,-343200679,-1950616292,-596058611,1573192432,166823615,-693437083,-581270898,324191156,1192985345,1733547791,-1260516937,1490582521,-671822008,-1823836856,-1759252295,-1014679157,-2104144560,1436161344,-1788860575,-1743081761,820623091,-1873533498,-1681528062,-2110269463,-998806339,1866556742,209388724,-2062775587,531054144,-1029119830,-1659013038,191787042,225542457,272633622,-1697651461,-433737893,538900180,-1026529782,-2137092973,1701824924,-1193051333,-1166896618,989749377,882006496,-1462551958,-1130492817,-825602167,-1614042305,-1548064636,-1884794050,1544704029,-1352464571,-227370948,-169104150,-207488973,-180024286,-486508090,1202210061,-14625030,761320412,712623522,-668585198,-224021865,-1224228342,1232066154,2016385077,584146497,2066332552,-1042538969,-845519561,-2050031659,-227281537,-1406921793,-2033530637,1168127453,-1704637271,1891956540,-1900119745,-1927124120,1342169878,-963287752,662749553,975338376,423013004,1786320721,-826556545,1538014056,513667536,1221183374,952287706,806229106,-742368440,-194238190,-1588746593,-1130711832,418486451,-604848260,1183720957,1702082503,-553490691,838269799,808203195,173452584,-1863827052,1093062012,-182104854,711517376,2024341653,1009698627,1205131777,1735397893,2009664145,565354620,752695503,2058251481,2030965564,82129968,1762540624,-2100043498,-812587506,414317863,1061103247,341963867,-549990409,-1588315412,943332853,-1895151711,342076507,-1067221513,1315513427,321221278,1257751314,1277895213,-1390143003,98582037,1978421394,1318087218,1619583401,-2091321289,-340907245,-549129941,627931418,-1304721282,-1714080710,-117655145,1149364873,661487709,-773100644,-541106063,-1717817116,626583792,775262875,-525887557,-1500993221,881141945,-1892048707,-1586569991,-508993138,1087551149,1106547519,1375351728,1155794273,2123071630,2074333641,488251482,1571955482,-1343695131,-304566436,1000433406,-1047061621,-948385536,1944640406,856607194,-989430503,-237065888,1732518032,-1779297612,418096100,-1455199449,-289147194,889543845,-1794458538,-1981929540,-1772212251,-351066314,-740274526,-728144975,-1921244190,1801776970,-1363774244,-218741492,948806517,1262177509,944103663,-1795243521,-1221946573,-1872668314,515814931,-1246324172,1643127426,-1786020927,637795181,1972089530,-809088259,-734047376,-472197075,1066180643,1626013851,1855884578,1378172129,263524854,807932255,1862699656,-1270556183,641740358,263270707,-1397654133,-440601665,926310933,-622281338,-903467255,-2024838526,-1127808725,2139198497,2100515293,-1175721757,-2001083033,-1823889363,-357851553,1258289949,-1845014790,-784540661,-1413348816,65922983,259990244,-1122729032,-1738284848,976264448,1880674852,996995966,-560284993,-1971130198,1028747968,-1054911623,-1801177613,1561218155,454576279,-1209308985,-845310121,-2011269470,-32770113,1435462332,1173125009,2071371067,-1124714969,62426889,-728013758,-1529868253,-706783824,650256872,1685872844,-834491683,380651575,810714464,-730480709,1453015334,-1076668962,1255869141,-1851090449,1470046053,443930834,-1938615106,-1966371698,310706943,-1638692539,691049518,-1626418839,1718100305,1617815988,92961009,-1337608436,1328605724,-753146592,108526966,-1035258878,34927187,1798286423,-57899588,-1407206535,-473769303,1704073945,-695870290,-1234488242,-898093868,-1197601731,995177033,-2059135473,-1566156233,162311445,-571901861,-1512309959,2123275747,-46104122,109375243,360733836,-567480727,2117099372,-513570080,-1071754357,107534013,1411997159,59109766,-1622865716,-850412950,1519910252,-522300930,-533371225,642872550,-724953976,-1863536113,1047598937,1200492355,-1509666817,-1963633341,64516694,969169242,1254625881,-519874687,-1581500845,-588672513,1342185642,-45265243,-629176895,1259657255,-1559996267,384861907,-167752355,1560324219,-148469348,2072303762,394495603,-431782324,552633944,-838887441,329343875,-1215108559,1797451768,328255254,-1567969873,1257301784,396172303,-1462421981,-804718679,-1364370174,167906530,1548106994,-1175101443,1539140022,-909354661,1220493395,-2022404827,-713617177,1004096371,-1938239294,-27170774,-788382102,-848561474,-309100890,-267503857,1534048123,281327025,1206425069,376196698,1980134940,560893419,445334300,1868577917,313352653,1761631508,1863162325,-1924335557,-900668249,828230128,1385988278,590398877,1528401069,-119022835,121988904,-667114071,-595989119,648573508,42271539,-1558167908,1998852852,-1353568538,1173174966,-786324889,1517054979,-644720282,1764495174,629782652,-437532076,-1566313867,1484924957,2061088117,-855465778,-869237013,850239516,549836281,647212046,-1219257869,1238142083,974591943,-738008686,1712637154,-439600516,-1863554358,-96214035,-281710140,867954485,-43927584,319184225,1338182123,94192406,1644585682,-1402693879,908832017,-813034017,145880671,-487810105,222571440,1003028597,1313144824,-1920502719,1083759814,1689872347,-1006500860,-51169444,1520969134,1104782685,1763505700,574387119,-1702570451,1283116725,-1457948913,-560509564,-549666787,-1260743901,241289139,1722642471,-2029117646,996007189,1325922843,1058387655,-1098985024,699301899,-1414128607,923109459,356448337,-359566057,-236597787,-187766734,-1254440168,569568480,496225164,-421261435,871177358,275340087,1702698673,-1911722591,-305809224,1995906791,-1336376266,1528285922,1057458190,-1512337024,1301863782,303608654,-2065528180,-1825656291,-1062824091,-325992957,2006669044,1110014399,-1185063255,-1695358153,1622060111,608748869,788004861,1337399734,-1618865732,-1294890392,-1612998111,-820004917,-1670783367,1764328306,-1843692686,-77669636,188168388,1672310505,804393622,1949628352,-874005950,1150243547,216121185,1258826202,-1732758686,1199748176,1583655379,-924082515,-337420796,1985930941,1306677471,-1922113694,-967596881,-1114399976,138182894,1021700065,804933389,-759031944,-1840181271,934352771,1581980857,-395831016,-549962625,1374318078,-883973958,-1427303210,955325202,-478657056,-1027452534,11319636,762175782,-1553570992,-372211336,-1568875771,-859834624,1013196973,-823158901,-307427828,1590623371,152322443,751601312,1768792613,-996344994,-1867290986,2068104045,87789431,-1122839745,-1161191086,-1647805104,329626614,-1731130164,2010745690,2066221876,-1067321398,-439958788,676381139,1997394151,338125912,-1369436763,213366191,1517490462,-922665396,-1103048932,-43554824,-629129595,-1531667968,-991268831,-1011870983,-842578444,-1336862222,193436113,25083184,-303471365,-1792117894,851750079,943089058,670652206,1426688621,-1554156526,1945482215,1650500706,-1411749253,-1580110526,1251924334,-1610646779,302794604,1485485831,1815693080,-1384928386,-448651074,626962321,-1344386998,1310498158,1877473480,864820997,-1792872451,1946517340,-1605556433,1216200720,-243699560,1198509480,1100038158,-1209284587,-1684196121,1483612182,-1866951171,-2143417320); -/*FRC*/Random.twister.import_mti(57); void (makeScript(14)); -/*FRC*/count=102; tryItOut("v0 = (f1 instanceof h2);\n/*hhh*/function gliibk(a, x = x, d, x = ++eval, d, NaN, x = /(\\S?)/m, x, x, w = /[^]+?[^].(?=.)**?b|\\3?(?:(?=\\1)){3}/yim, x, e, x, e, y, x, NaN, NaN, let, x, e, c, d, \u3056 = new RegExp(\"(\\\\D?\\\\1(.)\\\\\\uf18d|\\\\v?){137438953473,137438953475}\", \"im\"), b = \"\\uE264\", x, NaN, getter, d, w, x, b = true, x = \"\\u09D5\", x, x, b, x = window, x, x = /(?:(\u4591))/m, y, x, a, x, d, z = '' , x, eval, \"\\uFAF7\" = /x/ , c, x, x, eval, x, x, e, z, x){(x);}gliibk();\n"); -/*FRC*/Random.twister.import_mta(1109655004,2057468122,-1125128093,-429556663,1108257475,-870636384,-411240284,1633680058,2082769053,-1240567625,-2140662617,1065043291,1354776003,-339052220,-606951614,2144479480,-1440983952,1992533354,1963869869,766319046,631906406,-918461262,890293275,-1543744997,317998204,1733167195,1204083106,929708510,-1431178876,2057357282,-1539170251,2108725986,-1092490945,1031526099,999940141,1757146134,1360968928,226636847,-589524272,616634581,-106837723,509635596,-580560767,-1588590782,462569197,-906286486,-1814555365,345052127,1466915345,1905988068,136152123,-1001419817,-100696861,691772649,-1474249545,-1432920803,-90579164,1924482966,-2071653497,545263623,-1032642133,1981942805,-749748068,1772235237,307155468,-2000581369,1780359945,-279663963,488850746,-1201996757,1752064982,729834812,-659235446,1095174745,-2117331624,2042765804,-157399684,-1079790213,-1659644408,65944278,1968727324,247257993,-2144893681,-495543129,-1452548582,1191638437,-2103905366,641617355,-1098843506,2115161256,-1419341960,-1339711734,-1487355296,-142743974,-1312217102,572365533,-652882314,1650448535,1179298523,-2081815437,-1596315383,956262602,2011858879,1366008619,-872236296,-2096024008,659866123,1766091544,895817221,-1536285412,-1379383243,-389641875,-228854928,216104170,371536197,970541572,-1541139611,-2064989239,-1997063059,-2033831830,-2073422619,-2121395964,-835941708,549841723,-872097856,1210224357,1874968520,-1231336507,-1162921392,1490370119,-910032891,426833076,2130540005,925199208,429439085,-141758978,1370334530,808698934,1654908968,-1231346461,-350780064,2093336941,1385752185,-1067825349,338736223,1993657500,44607046,-427499577,200526879,1160040450,814915431,305253608,1471686808,949618924,-587589650,-120191471,-501503788,1313988735,-998183437,1895898422,1006328497,-1981666135,1101721244,-1394001776,1193311644,799883575,-2004020241,-1761772161,-1560368034,-689060250,-2102505060,1608116250,-277896024,-1390503268,-2022918242,778384217,838156104,-1138807769,-415381822,-940031328,680806819,1918928701,-1038328956,1117890532,1890994121,-380233416,-1637032967,-1945101385,1356908656,1082594638,-1980729574,-764399729,-796430561,1635240426,719151438,1844359358,-1280114204,1952208933,-744432916,-393700226,-797710322,215098915,970322970,1174846318,1308594157,768343418,-1137990609,1168266318,341109741,-454708209,54359783,28386964,782862087,-1281159530,-870227843,-986794297,2132236594,-394389117,1700642682,1550395984,645613644,2065278139,1051492327,1612849322,-274344470,-110937603,1292036421,-2001196678,-2131362385,1902481721,-1459407021,1993873541,-376566263,410596813,460418878,454210795,-644729132,1709047566,-356852538,-271794162,73578933,992764707,381340943,1953656846,1379151865,-315788062,668295641,-1209467677,-433445303,1624885732,869474547,-1273080139,738913706,1803379767,-30974573,74337703,466457572,-762806081,-441855346,-1396224621,1422742587,2102273296,1540862876,399262575,-1564473617,1786253413,-881913101,739866447,-1108846201,399721184,-122498119,1811643750,-1412734690,-6208754,-568793775,-811199697,1923773173,133369880,1678671465,-1123227618,-1363398065,1763954007,-1667559373,-775098938,1326659377,-1802890745,2060560460,-2077733265,1611401400,-1800823132,-777362073,1466202190,-1098183038,673390051,-277628456,689574384,529289429,-1022325690,-562107322,1753000669,18961486,1925995483,923043787,1124032883,967008743,-664678048,-1227493553,-1061153231,-404830837,409644764,726829895,-1079466597,-792489765,-1923479160,-954234041,1237249558,925552849,-1935230198,1323897597,1624135009,-1739836641,942303796,-1695376282,1447658002,-838909408,-235851642,613941142,700753446,-1218669859,2770836,-576479754,1189935989,-2117159058,-565652866,1422136643,61908706,1246689843,245296778,-44317287,-1010978848,-1462166859,1341021505,1164525884,-439829410,696632004,-708858456,-135349731,701389655,876736015,-404898930,-1693618998,980583835,295519287,-596938770,1373468370,787963016,-101820817,-1118117841,-1568306022,-267351349,-998273757,-644900470,1113155096,719723008,-822613951,-92313183,609977511,221710706,1490345852,-561873230,-673476180,-737923050,-763238059,964731270,180915297,-308003075,52956717,169841856,-2017208973,1135831326,-2013464513,-619411374,-1452238214,-99806241,1324586276,1631407282,-1498330298,-958391666,1332588909,-507464127,-1338875130,-2114182796,1926146867,-15149306,1587838991,1362724678,-1426223236,-2057263782,79635200,1477655966,-363712828,1299861402,-1462523687,-651653833,-531842496,-20800652,1232999323,-440482252,852752289,-1199421949,-1121420970,1215474293,614670416,-351044685,-1879121536,-1942136704,2057080675,1682916502,-1324304537,1193303065,1971058932,1999753627,-1932932838,-1317754537,-120987535,-593261271,-1256556888,105665580,-426240752,-368791561,1196439355,-996446137,-425312558,-1745204721,-1410525687,1490001156,171791748,-1099919550,-1253637156,1076412648,-52077933,-853764913,796470150,320146073,1647412730,-1559599501,-900429501,-1155270676,786555488,980382658,-372504108,-773993913,1732713652,-24512262,1177074008,-1450203679,1518187390,-1599637019,900430242,1851325463,-2033318909,239326009,688622843,1858422692,993233746,1614734258,327223325,-1537880780,-46309585,-1598863552,-883331573,-1509887026,590234503,-1000832497,-1047450955,-468724620,493647651,-1533501192,-1631473875,-1833042009,1331353344,-71723326,2092843612,30517708,-1787052061,-1464988880,288140120,-1414364145,854525005,-1026200688,-862969620,213554828,1838929639,-1050389060,-1912471862,1669773745,-1049928063,2055977048,1907023439,-1118512874,1330040058,-895482736,-1651888989,1987810699,615114401,1983219183,-2034448002,-609418297,1264741556,924398366,-1001494117,1350076839,165847181,-227269507,-545383333,-36482470,-286766011,-1089032563,-645633883,401027328,1543409181,-196486978,-627750367,-1029559382,-1066061111,1954326884,48749197,2086124317,-290917474,-1027231480,1814811700,1641139720,-912043050,-1292463716,338720915,-861735913,-633502903,-650327081,1142551994,-857887404,824903232,-1861567536,-1503728650,-676665323,-1957846739,578181020,-1350477132,-854997500,215677315,1362257693,1669344493,1029727514,1025633112,-1193417922,-300195580,1942767970,-130218106,-1723585245,1898369922,676130387,1788770745,713328568,-1025519986,-2095302072,271160343,-286078370,1453662585,304840231,-1623851928,11074235,-2102101122,-710021217,-838933125,416471987,-339500575,1310352796,-596851417,257284348,-212005314,-351376908,116169032,304955261,1607456350,732229434,2094986918,-1373767056,1050860201,551250489,-438594452,-675701058,-2035774219,-1597693662,-496147965,1732561208,-613502474,-1118482262,1424630920,824618164,-1080053029,-458753299,1714141085,-64869783,1358798297,-680490494,-1865767017,-1360359492,-2058941867,-1844076696,-956044836,1639573856,853539739,860929960,-1072169897,52325682,665126551,-1204166717,-926544320,882844197,759392458,-1061258771,422567456,-151847303,-1705618144,-873696878); -/*FRC*/Random.twister.import_mti(442); void (makeScript(14)); -/*FRC*/count=103; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return Math.trunc((Math.fround(( + Math.fround(y))) >>> ( + (Math.ceil(((((Math.abs(( + x)) >>> 0) === (y >>> 0)) >>> 0) >>> 0)) >>> 0)))); }); testMathyFunction(mathy1, [1/0, -0x0ffffffff, 42, -Number.MAX_VALUE, 0/0, Number.MAX_VALUE, 0, 0x100000000, 0x07fffffff, -0x080000000, Number.MIN_VALUE, 0x100000001, -0, -1/0, 1, Math.PI, -0x07fffffff, 0x080000000, -Number.MIN_VALUE, 0x0ffffffff, -0x100000000, 0x080000001, -0x080000001, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(566); void (makeScript(14)); -/*FRC*/count=104; tryItOut("mathy3 = (function(x, y) { return (Math.fround(( + ( + Math.sinh(( ! ( + Math.fround((Math.fround(0/0) ? Math.fround(y) : Math.fround(x))))))))) > (Math.exp(Math.atan2(( + Math.trunc(x)), ( + ( ~ (x | 0))))) | 0)); }); testMathyFunction(mathy3, [-0x0ffffffff, -Number.MIN_VALUE, 0x100000001, Math.PI, Number.MIN_VALUE, -1/0, -0, 0x0ffffffff, 42, -0x080000000, 0x100000000, -0x100000000, 0/0, 1/0, -0x07fffffff, -Number.MAX_VALUE, 0x080000001, Number.MAX_VALUE, 0x07fffffff, 0x100000001, -0x080000001, 0x080000000, 1, 0]); "); -/*FRC*/Random.twister.import_mta(-1204709065,-2084542482,-1305922715,308136826,1803017674,-613559157,-1450741654,1196838609,2093814768,-1874679529,587977798,-2084873825,-1922598239,-792646921,932953609,833423976,-1871533818,745632265,-1695820701,1749655376,1089468111,1922064821,-808008245,1006754506,-576821911,-1356094005,-1430145608,-309258061,-1577849128,1043584621,2022971741,1625313616,766637121,-1013680142,-255424948,-836149086,137617607,-2054987935,-1817730639,-1343946295,-247416508,50143043,276874057,673510714,-371129862,-6450732,-1068158039,-795961299,-1681396095,1465056129,819928,-887690034,-134607511,1691674448,496948246,436990758,-2016191695,-580747196,1623661885,-498297996,1119801136,470587884,-2088675270,-1880527611,-1825856155,-989057632,-1066950103,1973561807,-451203720,1739995638,-1315569750,-781766166,1494774451,-876649305,-622730440,409035065,42068077,-1894202959,-1510422241,666912173,986611171,131784053,2056126763,468662285,20077775,2113026953,-876199946,-1975795036,-676893340,77589732,-207598710,1631806845,-1184130883,-1804291307,-994251971,1091645916,692259112,875305848,-75822249,135199450,653528125,-749261489,216643676,1766297990,-1960271988,1462304121,1121558535,-1491870340,1677891425,1230003643,919009198,844076300,1902742891,1448362470,1284779173,-2097669664,688518470,34419378,-1095742865,903214824,-3037681,-1097716225,-561155006,2113725949,156249875,-311061051,1088896663,-1658671135,-2128705896,-1089574320,821018951,1222572467,-648608580,-101762851,1511504119,-1586134665,-1427147897,627149959,1323816633,-1347010055,1045864382,-195217831,1979203094,-499389264,-1436492386,-1492469547,2111846185,1472002045,14958493,784377304,-1005510544,654765519,1300194155,1308436250,-670837043,1277968178,1191027678,1431545634,189581305,2093488641,79530920,301180108,1043886619,151930743,-1537566724,1603401638,1365914664,1096204856,-2054936211,401738167,2110229034,-1467863492,1445443573,-1056825167,462931692,-721126689,-1613365889,-1738718592,770065612,288248105,-1351799875,-766303236,-1973503482,-1480652173,646329313,-1980691587,-190557634,346985118,-1906413353,979034404,-789852895,345019196,-1493009845,-1815724974,-1775076995,-72031503,-2073930251,-222372736,-921624939,1020514447,-297332870,-1552594730,-945510566,-639844172,-356002604,-673120495,-1247698907,65561278,93381988,1573978617,-1832055774,1231002240,2020109867,-842531974,-925936620,-1080274738,-1372991188,1426839850,-1777513749,-604263834,-1877262169,-1424103450,-256939592,788346069,323736152,1709150557,-810523345,1631835967,1652170669,1067456531,-264669209,-960992751,240778930,-1539323915,-740842373,1342441626,-492022128,374782501,-195217000,1449039524,1415556025,-1513199535,194261615,543165989,451397752,1342821456,-357215746,-1426959052,50103623,1329063277,-1090109105,-1952771140,60663567,215657390,917409471,-1407899862,-1904269587,172027930,-1349826746,-555749757,-46963334,-584228990,1556607434,-2141498513,1773660044,790140951,1625361073,1992041816,1226096179,-1244587446,1574521737,-66801291,-2142425005,911339998,777331045,2073716516,1420522381,-1425863373,-711943999,967615633,-1991397084,-1965298480,1928168901,2035445878,1311717784,498059547,2035287196,850971500,374888126,1918687830,-463777502,-1938939356,135598990,-136413499,556736823,1943385549,1178501077,-559249015,1011995739,1502140564,1808923029,1483411458,-1609146017,-2024216511,-1557649151,1738182247,-559350166,-802574343,1273989659,-164629417,-1657546209,-262462339,996097869,826362506,-287001169,1429910995,46969185,232550955,-936575214,742732269,-933132785,-909794034,708178133,264022072,1288995643,-1456409444,485272009,-1538067060,-1824387451,574125735,-1824957213,-1949318085,940348486,-1313662343,-1496609267,-668116313,1310665470,-1855740483,1402028796,-1139953426,-1465131111,1847626811,-1340323889,2110460964,684909670,1548724158,-130389092,2096751063,-1921191880,-1827945945,-1177741329,-1734984233,-1019207118,671712766,-1973878363,618732912,2024516248,1638729482,-1445065719,576746226,-1792478184,993725435,-1274639241,345782136,-1051293560,-2050841547,-1456618176,305983488,-618919680,504755904,-2009467717,1512610283,-70588394,-510869050,-127510436,-663189420,735014840,1593342486,1189042496,-678842453,544695091,-1933861904,-1474165246,562325836,1707934075,403989082,532158278,-100408383,-1206169805,1713456024,1240487885,1144353466,1612553253,-1489976080,1774846363,-1862603053,1430412058,1066933162,-2071219981,1661902999,-1480652932,-1762221473,546868379,-269246369,-415494342,-799932962,603009587,1863082162,1461366818,-724924755,1519316886,886547401,628098683,-1285872898,1387282142,1779992505,142426991,1365976653,-301462033,-1648392655,827745344,-1873371664,973473413,1628312850,99068619,-1818483263,2146826905,-586480142,1333768178,1023675416,1654245448,-1718301763,85289673,2036308990,1871686716,9326502,1122584152,-932278836,692845300,-552438851,843121090,-1619803689,790521181,-1624173615,-578397492,1781513877,-2039852656,-949243497,-1238737401,-1001820846,-551853783,1625840642,1520135456,-1398523517,-326322928,256165394,-1225059266,-1427322058,1755096261,-1808380820,2048302774,1583010521,1734781768,-13266119,642370556,1687489865,1148481598,-1278626575,-174601231,-147835467,1935701954,-763864732,-349362808,326464635,-654983410,-717091319,1568388369,1768826374,1540185264,1680919695,822501583,1223798673,-1392643124,499796419,1578628482,-417525014,1376656475,1028413315,-62395830,982507964,-972679127,-965559264,262845129,669119956,-1636316833,-257318484,-929773978,-66808719,-491856386,-403810770,318894998,-107444245,-1716576962,-537448446,152141595,-691078018,-848128595,-318994562,-1856539297,-910032425,-2006547334,-740894463,-1113756678,-1880638866,1280401985,-131809213,-1260438065,294770095,-945964380,-1125981089,-839216486,-714263304,310681624,-1089710482,-1533747909,-1540716094,-22301243,1552253018,956942470,-704410811,-1213198523,-2013691670,1054983849,230191868,1869636909,-1074136224,62464355,-12640062,-701107497,1674230893,969152354,-1110720428,-1478004474,-563949272,1558665701,-538160568,1254216431,386157073,2018780767,-2097326468,286038709,1380218519,-1252129533,1809914187,-575352515,-1352889018,-141373207,-341166814,115409869,-1807017915,-1527686747,-2019268278,-1717352573,-1627172822,-1508196206,-1580506465,739295010,-1489952339,-1216593479,-1320781200,-1911205068,-685431292,-1993442632,1423117235,469029657,977412724,-727634343,-2140958480,-317650643,-2143916394,-1206408545,-1514214774,825453293,1187303883,1990457906,1871171970,-1425705167,-1480245714,1357366436,1851423442,1157539817,694716758,-161431383,-2070241861,1284921429,-1318511804,109486234,251567369,-1317809086,299336455,1184195629,152053359,-205468331,-90010452,160251336,-1653314379,-1635557345,1140234205,-60330176,675629840,942421656,-590458993,1503352003,-1788730158,2132262143,-596097005,-1520016811,1599202216,-43843949,747270965,88148755,618736395,-183708134,-1873664162); -/*FRC*/Random.twister.import_mti(100); void (makeScript(14)); -/*FRC*/count=105; tryItOut("this.h0.iterate = f1;"); -/*FRC*/Random.twister.import_mti(114); void (makeScript(14)); -/*FRC*/count=106; tryItOut("testMathyFunction(mathy2, ['/0/', (new String('')), 0.1, [], (new Boolean(true)), objectEmulatingUndefined(), ({toString:function(){return '0';}}), -0, undefined, '', (new Number(0)), [0], 0, ({valueOf:function(){return 0;}}), null, (new Boolean(false)), (new Number(-0)), '\\0', '0', (function(){return 0;}), true, NaN, false, 1, ({valueOf:function(){return '0';}}), /0/]); "); -/*FRC*/Random.twister.import_mti(148); void (makeScript(14)); -/*FRC*/count=107; tryItOut("p2.toSource = (function() { try { s2 = m2.get(i2); } catch(e0) { } try { t0 = t2.subarray(13); } catch(e1) { } try { for (var p in b2) { try { Object.defineProperty(this, \"v0\", { configurable: (Array.from)(window), enumerable: false, get: function() { return g0.eval(\"o0 = e0.__proto__;\"); } }); } catch(e0) { } try { h2.delete = f0; } catch(e1) { } try { m0.get(o0.h2); } catch(e2) { } m2.delete(f0); } } catch(e2) { } g0.g0.a1 = Array.prototype.slice.call(a2, 5, NaN); return g1; });"); -/*FRC*/Random.twister.import_mti(398); void (makeScript(14)); -/*FRC*/count=108; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return ( + (( + Math.log(( + ( + Math.atanh(Math.min(y, (Math.hypot(x, 1/0) | 0))))))) | 0)); }); testMathyFunction(mathy5, [0x100000000, 0x0ffffffff, 0/0, -0x100000000, -0, 0x080000000, 0x080000001, -Number.MIN_VALUE, -0x080000001, 0x100000001, 1/0, -0x07fffffff, Number.MAX_VALUE, 0x100000001, -0x080000000, -Number.MAX_VALUE, -0x0ffffffff, 42, Number.MIN_VALUE, Math.PI, 1, -1/0, 0x07fffffff, 0]); "); -/*FRC*/Random.twister.import_mti(502); void (makeScript(14)); -/*FRC*/count=109; tryItOut("Object.defineProperty(this, \"v1\", { configurable: false, enumerable: false, get: function() { /*RXUB*/var r = r0; var s = \"\\u4591\"; print(s.search(r)); return t2.byteOffset; } });"); -/*FRC*/Random.twister.import_mta(2121803869,1150785950,706757930,-1845171815,575207621,1952134318,357578728,-648378686,1098389898,1920260112,-136741726,-2002666067,631415561,-1739882419,738273021,759780088,2087398181,-959618000,507267089,-1325266729,-248797624,1357635541,-1010865324,-2037258709,1590427594,1869012057,-1899091564,1428053415,1435336232,-625522968,-310694566,-1062214387,483276769,452627310,-25134100,-670815627,-493452143,-1084961733,-831225955,977869562,270054066,-1207751793,-889190112,112296255,-524482243,-700691370,1853812504,158145875,-1735494774,-2039738116,-488585232,1423960172,-1239212294,-774632670,1844290961,-1065717657,-1038779999,99060561,1046646696,-677088346,-1528133696,1767639256,1254771249,-1433666341,1021101065,-1638020477,485242625,348413248,390992306,1555992555,-612750332,1262199,1273444153,504399454,121657639,1936023905,-1913543556,318860126,531274752,-652985537,-208930717,-8196870,-254812074,-1466433929,-285212022,-1994462153,1490528401,902054704,-1521294184,1809725854,-723167774,2046465739,-373487383,1028709736,-1493556018,453719645,1039661160,985857067,-1263608639,1122398375,1286058505,-1529216560,-749887763,378911824,184830344,566984162,-864100676,-501709708,1802396284,-703467910,-170177032,820708149,-488103644,925115127,-760556047,-384200359,-1897848009,-905840727,-1563542729,306142743,-674204785,-1462042491,1528047230,1348089292,2061455045,-335573108,680898881,-467952009,-72499990,1070917049,-505263012,362957528,872196084,1135829985,239857806,-224473163,-973077408,-787792210,824863555,1553100476,1545145137,-1396052516,1389840949,1827961261,2001087713,1075829325,1823742473,-979503372,-930348892,1758020311,-577795031,-941414603,-1543256591,-1543126772,877816078,-1776233236,1095289562,1092223518,137375897,-171174595,-481040572,-2131391969,163875617,-1227091365,-395537767,-1323934313,-1079496394,1037067515,1933235867,317946423,-1284491597,1164389020,147839735,-1008816062,1689234356,1607218392,419277555,1292366207,-1411532225,1511983960,-381026034,-1472310226,1256282992,1918632880,944693227,1264665586,210999428,-393973114,850043152,444080510,-309495888,-630306466,666461435,-1762710648,-843429647,760830604,-37358597,-1323931712,1980253148,832907047,1598306658,-761165841,2100945757,871796295,-68622024,806923672,-1151943181,189091706,714366102,-1746541042,660167325,1499195530,245806765,1548459154,-2097125400,244300885,-1587129,-317085355,-1316643552,1952674521,182390875,-2060105137,-486778496,216326719,-1895410822,1272730706,2046524446,-699558060,-1035000504,-1959506426,1750101070,1701054364,-11769973,-441232118,-1319599473,1882075842,-1604897315,-839393170,-477169921,-1769617910,329516218,-255619307,-1536039627,1897451289,-288780776,728162542,-461692339,693982260,-294085188,1161100076,-1017352203,-2045928302,1762363790,210886164,1125436978,-1950720639,-1617477915,-88174855,919118483,1649902940,1953244335,-1864137975,1092694813,-1773308073,835727599,1728858650,18286678,-1382392460,-1561614678,1021582395,-1581553318,965943755,-1928022855,-530788491,882912961,735279763,182789818,287325007,-1862202629,-1299855768,-1799750326,-1919690836,-53262244,-452795027,-1841766653,46829030,-822602224,-1345934177,1349674483,2028462752,-323162679,2027310542,1018840382,-713877691,-1272563847,-1386635641,-354190352,475690742,752299581,-418940116,841289311,-1908156073,-1446926946,1164771363,-104555342,822010677,671636508,259296689,1570612750,660520326,1236458646,732376563,-1849800334,-156417383,-967726842,1027345655,-197611436,-252499349,-1227833630,1418033969,1504841711,1793617019,483746369,-2104162006,777684581,1674590458,1355745889,-1676802668,1825475164,1138327619,-897913198,1459749803,-1608892415,101951845,386308600,207746819,1202228347,-1676415866,787340098,800423479,-650324939,1403799241,-1745085621,-1702342396,-467262346,-1630335239,-179626461,-781317229,2018922825,-1627775658,-2061919240,461332444,-1074049677,-1263435444,-1234497329,-940021338,251815484,1812331143,1150448545,963173880,-2027530557,-1925183894,-1194273783,-424984540,182639723,1706854883,361502396,1905725361,-473753924,-809303881,-1729591929,1252219114,819575470,277296679,-1449020706,-1653885064,1203077084,-18866039,1966030911,1831912631,-1571287820,1615030799,-958209974,-358155592,1292907315,132922170,1371886594,643231746,-203084845,-1271656424,-1798919418,1097526356,-1567735825,1380286756,-1398430899,429652758,222263266,675110421,-1377252856,454056265,296571314,-1377084122,-247639000,1801694574,623841168,1663931385,1838758657,-1027122913,458467239,665201851,-247504245,-1275171831,1389154957,1707837419,1149272453,-1348685704,-1413152121,1132577176,230242969,2131908315,-1631296144,162659180,501108741,1715377729,567330303,-1862660529,522233310,956034715,-870088221,1282738041,-1506518202,543878275,213344359,-1936626707,184707241,199294906,-1278041880,1945937895,-270900853,1468413516,-889533274,1300751769,-1742764702,-1859853023,17221312,-1297041944,-1898046771,-926773369,-418251546,343497163,2089864254,-1572084246,-997787572,264054422,-1846545315,-650989737,-566088803,-2062119181,1870602666,-2109265712,1402375353,-2098473173,-692302975,-210513885,1723192853,-1045115168,376024237,-261664355,307438864,-574497068,1478812587,-1688265508,-69932532,-939393590,-621485073,432928747,1904470063,-289750611,756894218,-394262218,-1310607101,1433024468,1549257151,-1331903452,-919599220,-960029599,-436658622,1246744970,-844860457,-81096746,-176936633,-284305068,1962717424,-1759224794,-707883614,-962476647,-605100324,-789837915,1248070364,-996913806,1167604831,2021105758,1143530130,-681235992,977749360,1857089778,-990149161,1159395130,1887070104,-1193276831,367081778,-856265986,1161384145,836245487,182221921,-1827320885,-1457014616,-814600037,-1079013570,1514605683,-1077572295,-43751563,-1293961808,564241842,1313813015,-896908288,-1991918847,782363164,1011526698,1796281059,110215254,1069338425,908253771,-2034704811,277377025,-2058779040,415313383,-1147103966,-1018510566,-1923333437,-397892941,-1784540795,1376609379,54766713,-553319601,1253631818,-972034330,-57627617,1805043525,-849633340,851411646,-1375914949,-1893202816,-417476064,-878689481,-1911598345,906795730,268623787,-1003536554,1802132492,1170316736,-1025537306,1138777878,346418226,1442770198,2028307667,-1524277698,462046262,185564145,-789138735,-249904634,-1599006422,1840397311,1639565168,-867231063,-888244550,-557066962,1788456881,1533307031,2063083747,-428936183,2012878182,2106765724,877894437,1539707462,-937920282,1787445999,-279595887,-1167246589,61290274,-232848241,-1462104864,-1090947103,-355497399,1763934739,-1602205967,1370816236,-2142146650,-1690293834,-1969506201,-1928882737,155804843,-533008082,57925944,1767024140,-1553579793,-1782366330,-1670661292,878825351,-621479162,1573481888,-1193989747,224209235,-1220134238,-1855822636,945728038,-610475572,863986832,-1910020847,958794425,-650271618,-1776039872,1370679481,-351546605); -/*FRC*/Random.twister.import_mti(566); void (makeScript(14)); -/*FRC*/count=110; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"(?!(?!\\\\b))\", \"gym\"); var s = \"\"; print(r.test(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mta(175543002,-1191647075,-1961190054,-645817073,-1748580495,-74100772,1204743695,1167262549,1511522289,1450542416,530528022,-796244228,-1299489726,1043808554,-1520777867,-168691776,1185756659,-1835657902,773129420,-749678173,-1292067155,744918835,-1521347311,-241067371,-1492507233,448349391,-1783035827,186022635,-1113477829,1771910003,-1046172478,457976524,1091060430,-1720424784,-715110042,-453733648,1244904751,-181344328,1455715015,-1143014991,-151682305,-1973787365,-1915337204,1672280295,647611314,-283053330,211475287,222428933,-242827882,-5342923,-1565688911,-67079269,2090032218,-1821462999,461270278,1015346243,-733588511,-1898007671,-220162428,-1942525827,-239564129,-753748883,235562594,-1796186526,349012661,29548766,-116261245,1829953228,1994602954,1003797167,694567033,-1364717997,-758538757,-1030979609,1004870835,-47433678,-2122233755,-719213073,-1404085589,-1857116991,-1854162992,1434106401,633554642,-966674362,-1997672176,-1456165592,-1434524228,-610699840,-1289224018,-812927821,-1346754000,1618102140,-1518149278,-435602656,998306469,1778863300,323850988,1452364573,1054493973,1689620231,-1031731379,-1161136779,-1881238694,1075452059,1754406575,1645710796,-1503040558,1341158478,1169688527,-1105845461,-2073573761,1091467018,2054859717,-1514347755,561123981,-1690209899,-841982748,-1028402907,1124226079,466039216,35061766,-769287167,1919555221,463641220,-929324877,2141052367,-1968907690,865725538,208176643,-1179345617,1685114736,632618960,-742386740,28588049,-1610934212,1428347003,-297975550,-787090049,-1426017986,-1346037600,-1379638324,858379999,573492938,1256391708,749030524,-44049992,562910979,-1153236195,-1479215362,1908447277,107581274,-1600154270,-1621524670,1754707513,-1494393267,-276012563,-946810065,1454435236,769779894,1202022768,-915363205,432392729,-385030658,-1459657645,56366322,473188237,-750424432,-177523068,-392918761,630584760,2033832312,-1772083627,-249959696,-2092099620,-1890122938,-121348519,-567111920,1084847977,-1509821674,-361835095,1049003430,1041548591,1138108731,1665215267,1380627615,2077982174,1155686,43205326,-987469735,1548548407,-2107469762,1891187105,147890918,231378984,-25779802,420691651,-1304118871,304587773,559572413,2115428957,805903502,2094295239,174608283,-1326194349,1363489383,1687756552,1188120197,2081982535,-1466649624,1600594455,-1329180911,-1439030258,-187615921,1548312148,1721386872,-1415152209,1489133271,-912217532,-613964907,1207687486,-1460833944,-10925615,-430126215,-557937213,-204610967,1833916086,-1070786375,1800470654,-43855970,-13456515,-348938559,828916843,-1991449255,-2039865449,1032067636,-751512128,814642535,-145687370,-1681349127,-78029281,-1621215617,1852475184,343220371,1909060351,-953850587,-2061490891,-2013365319,-2050961293,1325200037,502567476,-1297656612,-745545384,485600197,-1271697580,-1748769548,1801618070,-1916091184,63458644,711452770,-499720122,135075819,754475063,1994037636,-1949100665,-961101131,1448081132,-1391208693,-1484762710,1293999065,-1660161375,-1502750499,-1189402319,101066123,-809337624,-2120158573,-185323829,1849087053,858082835,-1522364241,919577343,-710457857,1696057640,-687000022,72518847,-809765510,-711156340,1121750765,8980665,-278837955,-1587765159,-392464251,177250346,-1301029981,973755872,-1565089456,59933746,1979285972,-1509595208,-1658080315,315861515,1554326419,1862651516,110233852,-1117583812,341208234,-1203014491,268194502,-1078631209,1188422882,18491545,1253744224,-2144152151,1265286331,-917098177,470795108,-1993058172,788173145,-187534015,-1825027525,273897034,1249230274,-1394412710,1800259665,-580361983,1736003424,-1883932422,1790086605,-1259978141,36570507,-1427905517,-1298945647,-510161296,-1206457951,-1377163474,-792183024,-10161875,-1340091032,-753849378,-807634738,-806588160,1432514734,-1283149833,-704292585,-1077719329,349365894,-1599116335,-361200474,-415983491,-581397846,820435817,1444754794,1315878613,633675113,1218044654,1348851889,1273607453,381604019,-550418817,956338476,1230735474,1192508196,1520157415,645363817,843358184,2059600209,-1580811680,235286439,-1675237230,-842996133,-145605418,800237673,885625131,1813312116,895323756,-168372063,-1005696752,-675792714,-436822118,252659686,-1904903880,-2118143007,-2053362072,-1696654159,940604009,1430713913,84099767,1418596721,1770688333,1138737685,-1552961411,-934669703,-1961640998,1964410655,1545539561,-1180251377,-301255962,-1467749779,1875752060,1122023982,-103857623,-1783056049,-137778862,-1921677074,-861599528,-399045046,163962441,1376111097,-366483798,-1261476947,-499046239,-1548309000,-1574671098,-801763596,-1151774085,358423282,164518341,1032591867,498515373,-700931565,129142878,1225944478,1771125115,-1291532996,1000631177,-2091772923,1858746194,-77355569,-1894749024,-2082055260,426926648,2043553741,-837406069,-69658079,-1705459186,2045310874,-1317149796,-1080966853,505663243,-1040629976,-777235684,-1551754169,1788184009,2050801632,406928823,-788991824,83893804,-1164825054,-614101221,745362923,-669733530,-811892938,-1852924337,714196477,1372738120,-1631525110,189491855,615603419,-1668542956,810274819,2039419866,504841437,-808284373,864390414,-623104334,-678782010,1240777584,1516389902,-696802057,1082812506,-512761447,2087091345,-1160835037,-517940272,1938602641,1345231705,-281692563,-1281277379,-467013159,-405805629,-586561637,-561613634,551596276,1932320900,-380451050,-106728517,1486579523,-2028926845,-1210605857,1366108124,-1788330504,-61474515,-1127703859,1574820095,-940273190,1574437817,551004343,1819623852,-1017127501,-1689186424,-37581957,-201741113,-1548450854,-549012929,857044725,75314794,506978971,1413667170,-308644301,-529564473,-1644320077,573159872,875556301,1417160356,-558235646,-1878319741,-1141728919,1609369803,-1219707110,-21260596,882486752,-575613307,-69633144,1396856555,-875124736,-2092939848,1082252954,1166237445,1115714950,-1014630446,98232535,1001771391,-1773162160,572500816,-558835175,-1122916377,-1816280370,483025416,723517421,1603552279,-1505338051,445614370,-335429238,295517799,-1737449439,-1852963100,-1338000056,-149704550,-1497993537,-1974518600,840042766,1386105795,552422688,-63204886,-1771430775,1793678279,1495812322,1005206297,-1870383558,-1809670026,-1695144127,-1937382819,-1321725797,-181008588,-1696554013,1986746728,-582035503,-2111220965,-907182711,49759808,-1366804460,-275004854,-83670106,-1871476631,1431812397,-2102156512,-1304594371,-593314706,-492326402,-367390085,-1879386190,862251101,1856798847,-926365616,996006288,-79857140,-716373884,-403053851,-2094393734,457726326,-2039461135,1714002328,-1128854914,1302974363,-476094863,359496501,-1524983507,-142963963,1645395122,-393413177,-1281390516,-386822938,-974413770,-2051556980,-485397584,1833766706,1173280805,-1069505390,1116202237,-1461300245,-197416351,-1116578192,-1964977585,513826790,473899803,900061790,1846653683,-87031243,1448153134,1317539417,1502106912,386853833,1215762316,1116105648,-306666752); -/*FRC*/Random.twister.import_mti(48); void (makeScript(14)); -/*FRC*/count=111; tryItOut("mathy5 = (function(x, y) { return mathy2(Math.trunc(Math.pow(x, (((Math.imul((x >>> 0), (((-0 >>> 0) < (y >>> 0)) >>> 0)) >>> 0) === (( + (y / Math.fround(Math.cosh(Math.fround(y))))) >>> 0)) >>> 0))), Math.fround(Math.log2(Math.fround(Math.atan2(( ! ((0x080000000 | y) | 0)), Math.atanh(( + Math.imul((x % (-0x080000000 + x)), Math.fround(Math.min(x, x)))))))))); }); testMathyFunction(mathy5, [0x100000001, -0x080000001, Number.MIN_VALUE, -1/0, -0x0ffffffff, 1/0, 0, Math.PI, 0x080000000, -Number.MIN_VALUE, 0x080000001, -0x07fffffff, 0x100000001, 0x100000000, 0x0ffffffff, -0x080000000, -0, 1, -0x100000000, 0/0, 42, -Number.MAX_VALUE, Number.MAX_VALUE, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(331); void (makeScript(14)); -/*FRC*/count=112; tryItOut("s0 += s1;var rvobde = new ArrayBuffer(4); var rvobde_0 = new Uint16Array(rvobde); var rvobde_1 = new Uint8Array(rvobde); rvobde_1[0] = -14; undefined;print(throw ({a1:1}));function(q) { return q; }this.v1.__proto__ = g0;"); -/*FRC*/Random.twister.import_mti(455); void (makeScript(14)); -/*FRC*/count=113; tryItOut("s2 += 'x';"); -/*FRC*/Random.twister.import_mti(464); void (makeScript(14)); -/*FRC*/count=114; tryItOut("const y, d = (4277);M:if((x % 63 == 20)) print(window); else {(window);return; }"); -/*FRC*/Random.twister.import_mti(602); void (makeScript(14)); -/*FRC*/count=115; tryItOut("mathy3 = (function(x, y) { return mathy2((Math.fround(((((Math.hypot((Math.ceil(x) >>> 0), y) != Math.imul(Math.PI, (Math.round((1/0 | 0)) | 0))) | 0) === (( + Math.min(((( + Math.atan2(x, y)) | 0) ^ y), ( + ((x >>> 0) + 0x100000001)))) | 0)) * ( + ( + ( + Math.atan2(Math.trunc(Math.fround(x)), ( + Math.fround((Math.fround(y) < Math.fround(x)))))))))) | 0), (( + Math.fround((( - (y >>> 0)) >>> 0))) >>> 0)); }); testMathyFunction(mathy3, [Number.MIN_VALUE, -Number.MIN_VALUE, 0x07fffffff, 0x080000001, 0x100000000, 0x100000001, -0x080000001, 0/0, Math.PI, -1/0, -Number.MAX_VALUE, 0x100000001, -0, 42, Number.MAX_VALUE, -0x07fffffff, 0, 0x080000000, 0x0ffffffff, -0x080000000, -0x100000000, 1/0, 1, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mta(-356945683,124646531,201800817,1196649000,-1979511108,2006601526,2003057069,1546928493,587144417,1573540466,-1033714220,-309670516,-1118140364,672366493,-656632090,711468242,-1307420462,1113036948,-1183940149,-33888654,-762492181,1570314308,-429199925,-2086678642,-1111151677,550564293,-416815581,76182087,-2096357836,-609094738,-1028228666,-1553827133,365449568,327025534,-1133741069,130577513,-1597984302,-1954382298,899297179,1575202971,-1039774375,-2028856274,963813296,-1328611938,1560673470,-1518771564,-2014743830,-398741893,-471887255,1925980965,1013777929,1378155462,1219185325,-2111551051,381965489,-1715839790,-1883915437,-407851960,-732402066,-983193269,1812849917,2001658674,1945582827,-847694504,-818675900,-1778007408,-1403698732,-319092957,-854184200,-673589523,1479217921,-1327098248,421621429,-1197719017,-2074538950,954781501,-2146116423,-1627289901,1050301650,-82011691,396106774,-181516630,-29811784,-1695511498,1954211424,638816858,-2069987850,-1606978580,-1504309819,-791929445,-940655263,1135368045,-429088664,949825696,-1983169361,1417351561,1974765707,-608332308,-1954160661,-734170411,120739798,-591509979,80164841,1589121871,-1832958660,-864940074,1424837842,-1079409326,-1741405231,-1887860094,-1927459402,1146788346,371944422,-342359975,-1601706536,848300246,652957775,1753384787,-1240399439,1592166600,123126213,512109913,961077410,1626715651,488580528,1443904448,-1843765711,477935206,-984407854,935016637,1348078190,-362414540,-603438080,877157729,1708551602,352390097,791842937,-393085064,-1000386914,1244156910,-343694243,1317217138,-2093490381,215822108,-760337066,-665639623,484020592,-1033601637,1373061505,-198740169,-1225153522,-974945511,-548281651,-656387014,-836514551,117131426,-47027877,2082058140,2063268954,-2040865029,1164862441,-1599810935,1468081591,-852760540,640320386,-594235268,-531285855,-1691767492,-1887163123,-1095386201,1540742780,2054927160,-282151942,-1473231895,510252117,-9777183,-1408519610,-1850516821,1577230902,-2082341187,1688560566,1392096825,659747580,-2092367155,1396784784,-926934685,974420215,1084751615,576965824,-423056646,1652439669,522192901,-2137718043,1494403403,1765156288,-847043696,864304976,-1664550604,51992796,-276953790,-982501362,1957718741,854509626,425436426,-140038222,1071098385,1142267724,2030524102,-1286211087,1093350341,396031738,1267104147,-1709243061,-1908441652,104553543,-339099566,955217465,-1054950581,233594476,-291063167,-1326119911,-1532044486,-1344298210,-136271326,1053861079,-73902285,-1743772865,-737667294,-503574046,-527023154,-2031093566,397266127,-1381502942,698758327,1974348685,-474966387,1717709865,378415095,154063452,1811751892,1596341253,1273935472,-1954255502,143153823,-1714472239,1670974664,638729876,754680678,1399017822,-13023323,-363315422,1790267134,986269295,-1396304807,1899705100,-2048295844,-1705650940,-679113225,-1837561120,-926520758,-1677032518,-2029963471,-1691791755,1519607895,-526023344,-1172605759,237213774,1033801834,278877601,-213073151,1967905241,-2029101404,-2103943968,1580317564,189336001,231491728,-229231373,-1211826559,-1874093466,-76523379,-256922335,1027788708,1117497938,-1469562386,-1921064306,742300103,1546231240,-1028262212,-1092090943,-1632489354,-2010028723,1325572682,-889132960,-1123151492,-1389214406,-135598574,-992254671,-1883866564,1619489698,-1367650397,-1893817047,-2028992444,643386403,-901780756,439127134,2036628913,2110692193,1962339943,1823203897,-614181752,65099325,-2000221982,-1682949606,-895902652,-1532141650,1747187126,1940756452,393881763,193330248,-1017741687,787237133,1701144664,-473460266,101199675,-597218927,1741957586,1464263483,-550640180,1355220211,-997829634,779342967,1471971635,-1702421439,1015632730,1494437147,-1069831835,-420405395,-353144367,598516090,2090488753,1800595325,1385036172,-193388698,1820470028,-505576860,-1020443678,-1267436503,1778026640,-537006030,306608663,-557163082,-1762321445,1918683831,589300406,-1602167753,1459943508,-2127877283,215630584,-825738739,-8234606,-2146628403,-270180007,203637797,-1956929522,-126705080,441772434,1144694695,342583215,891960601,1306934232,-1884203178,-458992532,-1023548913,-1087746561,-1604101869,973823450,-2032387846,-243398659,-1025949819,109480930,-1708244210,440726414,-1006910135,1318691480,-409944552,-910867395,731326850,-41340356,672905832,-1431528364,-2002635319,-978751278,1804830551,1703865849,-332647345,1120757988,-917282407,2057667435,-543907085,1023041410,-741042368,1490227234,-1724363891,-670026397,1280902480,-301402603,-1225650712,-1479908673,-1160670538,1988731904,-765774770,995768810,207880321,1891300750,-582458686,-1515360030,1897612531,-798303325,1559838762,-1541655510,-187505367,1890862942,156870283,-1423604339,-340925795,-1482671388,-1460260078,-2071783972,940137417,-1761514749,-1487401840,323162749,1929104150,954328193,1639556872,1972742579,-1758305121,929458542,592465949,1389804471,1652363255,992281527,2128735830,278072929,-2086751139,279267709,438095315,2144017971,-2002481783,-938337147,640636378,-225380618,-747536873,-1754246982,145035962,1789661008,-288340796,1203937308,728384802,1000661651,-1756904451,745336074,-824278572,229073354,1920222799,606073179,-640794256,1063454760,-497944989,1824515045,-1930993071,-379627719,-2091392673,-1760705561,-2106988401,-1816444769,337973142,12025116,-1657201172,1435139120,-55161821,1219314510,-1321197609,2139937798,583044745,150552190,170202618,-189001644,-1917507123,2081096252,-1644192274,390322672,-1713292244,-104388275,-1258425106,648410487,1273732359,954424861,1625795526,1651259996,267123345,-35462143,-850509003,-261574714,567787283,-1167395113,1421202251,428909469,-357258718,328169138,729221079,-1488784932,56859078,-1926978602,105122519,1209415547,-2062258181,-143872469,357463226,2094019581,-1058886472,1570496144,-771638766,-2055518227,-269052559,-615617281,-1891928736,-1361289536,1559612656,-1567943613,-1055378876,1260607990,-818634654,-1169229747,1026035456,583979837,1474501537,-1255947031,49059491,-688390517,-57049983,1969975362,-49080967,996840598,1332082183,1879843845,151386377,1808521041,1013738719,1400898792,377391531,-495263388,-1242982583,-1153761785,-205930051,-734352992,-859551517,1684177996,-2083577268,1171086768,-48370744,596135553,339953739,-1648053287,1566354150,-72304600,-2124128854,707347549,1170859398,-2085290429,285445855,820835983,814624683,-1255299655,-1444117423,-1314083323,1662362344,852485204,-787976190,-1293545914,-1921060266,-2065385441,178918556,-1128950181,1719452346,607943584,-1105767761,-844554122,1976956158,2134345961,-1795152591,128906586,-1298925963,-1752913182,-1611752474,-677394364,1022322049,587176298,-1117024182,-1232788356,-572547612,-491223595,1266935810,-260391069,1250024240,-486969908,-20068029,391502372,-112093599,-1656558991,-1830716576,-1463774741,1587701103,826655917,1401510810,-1938093139,-1048308669,921600570,-378709438,-115588500,1102408255,-848363113,1947285860,621242672); -/*FRC*/Random.twister.import_mti(296); void (makeScript(14)); -/*FRC*/count=116; tryItOut("h2 = a2[6];"); -/*FRC*/Random.twister.import_mti(311); void (makeScript(14)); -/*FRC*/count=117; tryItOut("\"use strict\"; lexlcp((4277), -24);/*hhh*/function lexlcp(w, ...x){Object.defineProperty(o1, \"v2\", { configurable: (x % 5 == 0), enumerable: (x % 33 != 30), get: function() { return a1.length; } });}"); -/*FRC*/Random.twister.import_mti(424); void (makeScript(14)); -/*FRC*/count=118; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return (Math.tan(( + ( ~ ( + (( + 0x080000000) * x))))) >>> 0); }); "); -/*FRC*/Random.twister.import_mti(485); void (makeScript(14)); -/*FRC*/count=119; tryItOut(" for each(e\u000c in ) e;"); -/*FRC*/Random.twister.import_mti(548); void (makeScript(14)); -/*FRC*/count=120; tryItOut("let (x = (void options('strict_mode')), x, 6 = (String.prototype.fixed).call((new w.unwatch(\"__parent__\")((void shapeOf(({})\n)))), timeout(1800)), x = (d = Proxy.createFunction((function handlerFactory() {return {getOwnPropertyDescriptor: '' , getPropertyDescriptor: function() { throw 3; }, defineProperty: undefined, getOwnPropertyNames: function() { return []; }, delete: function() { return true; }, fix: undefined, has: undefined, hasOwn: function() { return false; }, get: function(y) { yield y; (-24);; yield y; }, set: undefined, iterate: function() { return (function() { throw StopIteration; }); }, enumerate: undefined, keys: function() { return []; }, }; })(/(?=\\B)(?!\\d{2,5}[^]|(.)*){2,5}/ym), String.prototype.lastIndexOf)), x, c) { /* no regression tests found */ }"); -/*FRC*/Random.twister.import_mta(-1046889875,596272881,1277471943,1674704696,503629691,-1542844829,-1177577541,144175369,969691377,707108944,-1376965222,2099854891,-445273447,1464653045,-1409277286,-29524451,120660454,-1858392679,796861448,558283099,1311733686,360220271,-1455206900,1545855760,1948435829,-2030621405,-651963915,1904671676,1233511499,2047590233,-1529018233,969655383,-1179144086,309526423,-178029399,-765392654,-316946551,-1847647394,-563527913,231507434,-2050821666,-127030365,1947507559,1101675833,634822055,-1386750627,1706632701,-62876459,-122204416,-847796034,-484452932,1804038416,1926359777,1488170848,1187163242,-654462154,-484587035,-315034823,-564446084,-1728110876,343069171,1720943358,-980045103,-379817801,1206620179,493805632,1992902552,1977806940,839150390,1093304402,1745262360,688870864,809452201,1070124812,-55391486,-1558370998,1636218113,475804139,-1396759865,347925769,2045518214,-2113138855,297264686,-1736851010,1894808587,-1352665782,-2021780972,2108768795,-218562124,903665162,-1552579861,856998747,-1741945777,-1377815064,932212968,-745379715,529765708,86755699,662956976,733995122,-70911056,872398897,379739090,-885100906,-1045689835,-972385507,-330708525,-466977636,1795614507,424278126,912704169,1349182736,1907804896,398181683,-1465886771,-374973323,-125020697,-845102456,1352215410,304421280,1074128269,1448562077,-2127240980,-1580237079,-33531642,-745982477,-481018406,-281961382,1961022636,770174967,-1170083474,1587112286,-13115111,-1671472070,-1495400369,-889831909,1418175753,1056947118,1090239443,715282921,-1902046015,1967905961,1541461124,-564532263,-70998477,-597947241,-2087295029,1479405755,-225038402,1255081539,-789014711,983928017,1178301446,-1684757157,135626004,404641383,-1605219389,1942818983,2098780504,-945027630,-855197365,1557800732,1241406670,1293440802,-532026159,1902929840,1210555988,1229097307,806482249,225765870,-793700900,2075558478,222891293,-623523110,400082799,-859867375,-2050825252,-609392802,971006221,2079716294,1439416301,65781495,658795306,1555668013,-992198816,-592723233,-1444699621,-1523018142,-534535148,1793938980,-928994073,2104661041,507838966,-513827279,1053610834,-67295349,1221667951,-752301428,349727445,1071722667,1915699917,-412988860,-251449134,-267385626,-1299828954,1462785618,714542819,-1919898274,1432446454,746768761,-280609014,2055063613,1480477961,889501198,-2002675601,1192694910,1791248205,923846387,-1646204972,1310852488,2116242040,1173618588,1973343165,757891612,-2005866387,1816748064,-1448904871,16473163,-1802445483,1310789524,2033651948,623403515,1533820597,-810485880,-2064286427,990525154,-1713297884,-986968519,1000389837,1369180228,580573800,-2012153306,621462779,1403825064,740233998,1693150333,1791837900,-1089499673,487022673,-898466376,-604562038,1651927726,461723399,1950664958,-1423482949,-1925257090,2022224336,-1348850775,-2002853576,1573410253,-974944015,1728480755,-1260911505,1194324484,-1822317091,530240164,1058585425,-362735981,904615897,866710554,-322419808,-1780946890,-1648168061,1400295682,-734743138,1314645780,1526812432,1387521839,-1440467288,-1096085895,926132667,168375713,1358870533,752489954,-1296457250,387052094,-2047627591,-283485963,110608349,-1908800404,-2010428274,1691485395,-565974893,21779589,-98233127,-1635190415,-208933393,1962468460,1924144621,916370078,1288373335,-1558729129,-1521164683,-993975378,-1925340714,1274802464,1577214668,505937084,-502718548,1355004831,-750286327,1540459404,1219993734,269468668,496101332,449191654,-1476109223,-1603929638,-1660816226,-1048836118,-2027249304,1200604946,-1576858709,-1955202555,916969395,879872437,349183945,-148754631,2130390225,-1784955095,369012931,1679465650,840736348,1403608104,1995557436,-852793049,-713779361,353665474,1503651712,-1048084799,899741745,-686841967,-1578658628,1399695528,-1081393566,624711349,-1405005473,-168980019,724891361,-818192059,-1433012845,-1748350143,-225454850,-264601277,909778434,-1655190298,-433170135,97591469,-607844405,-1313643666,-1618582724,-2066070516,1793140142,496061258,9975629,888145663,-1688922953,166710810,1055604222,137294986,995054314,1480405788,-110587906,727675758,806447397,846844790,-1477643757,1295487965,1674972008,-846129214,-680677636,-1417171728,-1167467046,1624354228,-416296679,2043113779,1111389564,-1087496582,-623766001,797988350,-1533979368,303435133,-675041104,-531139859,-1871981793,1954255030,-2070452478,-2036278271,1209110570,-2115333153,37724249,505243932,350214787,683334732,-491023130,-1925343093,337399968,154751571,1113091099,-1560976640,266520154,648969920,-1995524462,572972177,123648128,-1817365194,810273915,-135511228,161045341,849710025,-1086710347,1294540464,1483398304,1309161746,-1996152006,1523782497,1034989657,-261256554,1252557507,-1437488836,1737209597,502672740,690140560,-949008460,274923185,-1691347347,-468377897,1490299738,-1707030213,2114545477,-47823451,1424426001,1326839277,-773961740,1812193009,-823301249,852724054,534958288,1829642580,718285381,-123078591,1680638094,702649822,-1686465521,-634541220,310038262,-537490096,1639749619,-832970956,1444513278,-1434961970,-1292461660,701831437,1873151081,-73482810,1391590433,-245002386,-1175468868,2058687166,300303203,1801486814,-126089969,1130432068,1227632915,-1305574260,357914920,-1374877321,1765899292,1737166354,1842662703,-638087569,-1754432414,-726061223,-1589821415,1063058726,618971202,257299113,1836072728,1796483853,-139329906,-345798526,975307197,710865651,685875416,-608416016,601461908,-1255816887,1496396718,-1281324109,1738771693,-2090443392,424808443,-599328597,-1888924316,-1699284735,-1200639673,-1317769034,-447167981,1083913712,-1859317951,1523425099,2004445971,-212965722,-964768939,1504940642,399307035,969842464,1675924728,399719229,705173476,-79586877,-1053767401,-596302118,998064898,197675584,45630048,117584277,1005474419,-1930115181,148718568,-347918906,-1488754872,-1007345401,-1987858058,-1181216802,1523062483,2106104809,-1052744077,-1705325669,1259182469,230047738,-1973200927,-308009894,-61655109,1958220825,-60105153,-609007849,-117426990,1049332461,-1962094556,-1486546898,1734422173,-824085649,1588677146,-999247385,1256677666,374444865,-95602182,-554995481,2070177805,-1512225874,920107226,-2057732787,128308836,-1892195044,-278111049,-1177812130,466789068,-1067127787,-1457964615,-1205107102,359088982,-1351687466,-339551599,952143159,1524937864,209603635,343821735,1146574156,-30129253,-2114012931,-325541469,-1804249891,619245855,-1186955862,-1258581604,1531587833,371087024,1980948915,840250258,-844124124,-1038736951,-32985611,524659704,873866513,-1526953428,-843939767,-201809210,-860667574,1904133458,1753099540,1219954444,-2143921806,1383161136,-472924810,1601239640,-840697554,1766389623,1823286220,1051339378,-612463881,-1441756868,-1326301343,1363029897,-1310464972,-1469499571,-894584191,1935624121,-593433039,783548346,891539469,1073959703,-1382290556,2102594283); -/*FRC*/Random.twister.import_mti(5); void (makeScript(14)); -/*FRC*/count=121; tryItOut("for(var [d, b] = (RangeError((/*FARR*/[.../*PTHR*/(function() { for (var i of new Array(-27)) { yield i; } })()].map(function x (x = ((makeFinalizeObserver('tenured'))), '' ) { ; } )), (void shapeOf( '' )))) in ((c) = /[]/gim)) for (var v of h2) { v2 = t0.byteLength; }"); -/*FRC*/Random.twister.import_mti(255); void (makeScript(14)); -/*FRC*/count=122; tryItOut("if(false) v0 = (h0 instanceof s1); else if (this) {f0 + '';/*hhh*/function fjczxq(){i2.toString = (x = -0);}fjczxq(); } else {const d = x;/*infloop*/while(this){v0 = t1.length;print(\"\\u3D82\"); }/*MXX3*/g1.Date.prototype.toTimeString = g0.Date.prototype.toTimeString; }"); -/*FRC*/Random.twister.import_mti(544); void (makeScript(14)); -/*FRC*/count=123; tryItOut("e1.has(f0);"); -/*FRC*/Random.twister.import_mti(557); void (makeScript(14)); -/*FRC*/count=124; tryItOut("{ void 0; gcslice(8374855); }\nh1.get = (function(stdlib, foreign, heap){ \"use asm\"; var NaN = stdlib.NaN;\n var sin = stdlib.Math.sin;\n var tan = stdlib.Math.tan;\n var imul = stdlib.Math.imul;\n var Uint8ArrayView = new stdlib.Uint8Array(heap);\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Int8ArrayView = new stdlib.Int8Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var i2 = 0;\n var i3 = 0;\n var d4 = -8796093022208.0;\n (Uint8ArrayView[((0xc2a9187)+(0xb73e94f9)-(i1)) >> 0]) = ((~((((-0x63820*((0x6a1a3b10) != (0xa6c94178))) & (0x745a1*(i2))) < ((Float64ArrayView[1])))+(i3))) % (((i1)) & (((0xfb0da467) ? (i1) : (i1))+((0x73224b56)))));\n i1 = (!(((((((0x7343045b) / (0x36fb2e2c))>>>((0x3f2505c1) / (0x5c2ad074))) <= (((0xef4edddf)+(1))>>>((-0x8000000))))) & ((((0xffffffff) / (0x4e76277e)) & (0xfffff*(0x772b9f67))) % (0xacd57f6)))));\n d0 = (-7.555786372591432e+22);\n i3 = (0xe233ab3d);\n i2 = (i1);\n d4 = (NaN);\n i3 = (i3);\n i1 = ((-0xf55f07));\n d4 = (36893488147419103000.0);\n (Int8ArrayView[(((-147573952589676410000.0))) >> 0]) = ((i1));\n i2 = (0x8a9cfd5);\n {\n i1 = (((+sin(((+tan(((-1.0))))))) != (d0)) ? ((imul((i1), (i1))|0)) : (0xf83f9f7c));\n }\n return ((Math.atan2(\n\"\\uAFDA\", (void options('strict')))))|0;\n }\n return f; });\n"); -/*FRC*/Random.twister.import_mta(1315790758,-150243690,-1342019517,-1808436421,-1794056462,-785342079,-168193001,1733626945,-1741731677,48940653,-291144295,-370538104,1348188581,434296599,-1061654255,-896129439,-1280050558,1356933764,436656452,391935904,1683533996,490273883,1555331649,472109008,-681953026,-1376549755,919291084,886006208,-18973678,-1227455291,897636450,1450400502,2053137960,-1003308938,1959176477,-962074997,-1887381989,-429993499,-573156200,-420190664,-1108717996,2034381911,-942356218,1992670121,-616277408,-1530800180,1995881793,274233713,-1470709984,1130128264,1780574296,-848403205,109706741,-607605132,1213356309,-1050164749,1961778508,-1258277534,1577402756,214390134,1391810188,1973139075,-1145107078,1350913816,-1136531068,313637569,1431796807,-493057955,1919204360,-983120670,-1385664940,-73268427,235021541,1429857375,-1443719254,-1431639013,-569730759,1031382320,-972841101,-1829037644,-246428817,793836805,1642606064,948371637,-2134735161,-1761204653,1189958091,102792700,2114628423,-2015075581,-1376588182,-32859659,-1589517190,-1330925322,-1964800676,1704409173,-1283656514,-931284184,906388653,-2000208751,-1715051671,-1192122790,1111276454,2058938453,-480250198,862629021,-42175702,1983724107,-1261744784,860856637,-848449381,2017480832,66608391,-678099854,-1700596234,369163402,-1599165935,838797275,517897675,-2134581959,-775453975,390679371,-471394225,-2076068544,838656817,-1377880009,1290112303,1907957782,-1924987580,438487330,1419962076,711428032,1190325749,556047678,1529923738,817775452,-1761842015,15557352,-695104776,-472866474,585971960,-1213554215,-47588170,-379790276,2101731701,895985504,156073785,1307771846,388545,1791474796,1029325413,496382190,533606998,-479222108,-228149903,1203824209,-1101041002,-84091573,1764844491,-371556549,-1809831308,-99328384,1575502748,217122073,1315015426,-1588940185,-1173609962,238497127,-371840960,-1852536400,1711924203,1606998596,-2072781612,1791972618,-1439676415,-309357768,-2045482690,-46658194,1730039147,-1080876262,-1937563133,1475698905,1231043922,-1550801075,465956883,1502360847,1987361326,-917393504,-1047709042,-434976171,-240145289,2033213768,-1682813867,-1832265331,1725956819,57183005,919719614,-411918172,570729126,1840091632,-1068922908,-1271736029,158779169,826096263,590294053,209022684,1421413279,-1988161651,-801558981,-96409941,-1921080394,-642075241,606630261,1176958495,-912588029,479767576,-742458321,-1089234978,-814205559,-172220483,1369880695,2137470768,941997748,-1475144476,908583687,541253879,-1541008367,-584220205,-1877216932,-1936072651,531231513,565080439,-152511931,780900954,986715952,-1797268559,-109809234,712872736,-1054601814,1092015249,501918212,188064691,-482315339,-1514376443,-73651099,794851874,-1848442484,-1277972389,939639431,827323524,1830353543,1133519778,-1747853062,-1169138738,1917851135,-2103827206,940777934,1909434622,-1583365937,-1046932849,783895120,-140370955,-1523572855,523809834,-1449936713,1532148207,1254907310,2115458407,1620463194,-240064298,1009373106,212702078,-847593651,1559029646,2004191995,-2049566552,-217243456,2134078220,187912984,-1005020681,1204061307,-114969144,-687158526,1840418211,-24589187,-973855225,-498939437,-2001323587,1921430709,-5592259,-1142620754,174632210,-887152548,-246593804,886064186,-1834354144,-1088768300,221827197,-521315718,-1318119919,-574979157,1649428559,-926253620,-1735112238,1485069728,-385700331,-1645680662,-1068809031,-566652907,-784115669,1433388403,-1533454716,-1627273299,1210425889,188969615,-218090060,-673800210,-479063003,-1632331264,-489376562,-747875457,48934998,-1188727416,1898426296,1263398701,-1519985770,710843346,2142455262,724879633,-1848945896,1219864076,-95307388,448660105,-972777932,-912245241,1199158784,2043011548,-509459621,-1047830721,-1071607360,1696234341,-900644952,2142644446,-1083493088,-93741986,-1846123077,1664787712,492128582,-1445180618,799363673,1454121023,1220217166,1288357961,402162222,2131936869,1734121743,-1044190805,-532097562,1925068407,154262635,1665777464,775969357,1047979769,263768024,-2086809272,1110683772,-1490598309,1033414151,-1279403108,-527534653,-985512526,1106355850,1623727831,-2008188044,1422912125,-1963252713,-1789606563,212944849,996064015,1954080040,-1230212900,-1353557092,933769355,348138181,521655565,1210997109,-162697210,1614909868,-1378061185,1335945488,-588074120,1702908762,1214888910,1798404934,1946871100,-341992511,1271682927,33631230,-969596044,1550105639,1707204996,962008479,-103613154,-1219910835,581857780,756049211,570899180,883401937,1183830361,244407935,-1329096659,524462938,-1852314728,1977345646,-1064880837,10513516,-572199945,745255174,-110488461,489157200,-195209515,1255500931,611096468,844324643,320051659,-1512813995,1436243131,1008039514,-1592128067,-474239872,1069952053,935229165,801295622,-2055158760,502248548,993726863,-1775570170,425097204,1068938986,-2085362824,-1252145976,1998145834,880250850,1018667912,23958206,-1777209054,-95586347,1730259165,-217607475,-1652952501,-637184861,584526312,-1258874321,-919551553,-1810831704,-1075791884,1699683091,948247683,1252176776,-472596062,2012272264,-147707031,973367642,-994365619,-636625425,-107558371,501298895,1622156123,-1697762595,-688901286,9093469,-1708347577,-1828793740,-2000403510,-109503281,-1240467741,1173310090,1591573902,-328010262,572692242,-236526081,-2130431348,1259090985,1740463965,1673382111,1060927812,-148828925,-2110001399,-864361294,-796795960,-618593237,632582417,1327655299,1729264342,805019437,-485745119,-1658294015,-1125041484,-428546601,-859205235,-1991421780,-1067563407,-1033716198,660532383,-1173611664,1401514819,800868385,663297667,1757119159,593802360,-821655307,-953155794,1069806450,-1902444318,442036719,1851915045,-833035967,688247023,527214304,1874287714,148738720,1525339991,-820552799,-1157721100,207941965,2053436015,898666487,1120424125,641657275,-43259089,-885654922,-1602847236,-1379699026,-1054547963,875036431,2046127422,1760287693,-2125852575,1477913241,-1713711024,-736315122,2106679458,337714870,880944445,1146080229,1785039188,-1638617433,354494166,124573764,-359138913,-1684043735,-181017019,-901874021,-1855032322,448853327,-1189826450,-1393700891,-1094144352,518733149,139502430,-1653650855,1376006270,78339378,2120110930,253550047,-1653776752,-1916157786,-601834064,131404715,597945327,-170355573,-304157387,2099230764,-1504554172,807867138,921427440,-1131232171,1955039897,-290875300,-1791154968,-121871840,-1407132460,-1407168161,-580724866,-1170924248,-2045538092,37680947,-1052213442,927646596,413220587,-138713117,1704015725,227632512,606397452,803660561,1282157415,-1720572768,-1558452969,961463331,1425475677,-1407780622,1423230660,-473724273,-1531765786,1661549309,498026392,-1714147764,-2131041990,-1341698395,-2095069905,1103654491,-563709342,-1178993042,-289635812,-1384269099,1367480800,-1358431725,1806333119,853126279,-873405673,-768056814,1657213182,205303403,1828387004); -/*FRC*/Random.twister.import_mti(555); void (makeScript(14)); -/*FRC*/count=125; tryItOut("for(let [c, b] = false in null) {; }"); -/*FRC*/Random.twister.import_mta(964989109,121415562,-1888045723,793349885,-926419584,438732746,1575720370,-1213110918,-177359150,-1940048641,1079156757,-1213547180,-1687648981,160632954,-486471499,-934406439,497775404,-846964327,185489340,-272059487,-1140883468,1312332172,322311608,-537900374,-2061230562,2131310066,674557891,746366914,1740093672,257636490,388815649,-1674953047,-1046286149,-592590748,-1914358409,-250997036,1873222709,1929682472,1212228243,-924855252,-50340608,475845225,1641647731,-1728058888,628728524,-704355939,-1382862865,356961582,-138428186,-815938567,-660723073,692837608,-1331845775,656722166,-1687389746,-830458743,-743384306,-82688406,-1182589617,1278586965,-1690274019,1467823413,-1953077714,1775247946,660752086,-1985517658,1828576188,-1556118549,-618289044,1263862245,-2073456098,1153929328,1701081514,343116424,1450273173,1693658679,-696741550,1131439017,-9274823,-1539301406,-1870810157,-595139822,-1486248041,1754207811,1401917818,-1317917677,1689084323,-978309725,-1513687014,-1579648458,1681265452,-1663428977,-1999371341,-1638873467,-831037980,1453069276,53258050,-303030876,2120691894,1220800618,-527832679,-2023049212,1755141496,-1193104391,14917856,-52656241,-985087643,-1603682872,-1826223358,-1878908749,1537816259,-263250709,145634881,-2108165618,-1943043733,-1231284571,1332491216,-1941995563,-150264474,1068732650,-72759915,-1214801384,764905154,-919907353,-720503917,812461545,-2111699969,180712431,930453246,532806809,1476105053,-1672532066,-302406224,-424829381,-1205248942,1068888097,-2125311631,527383155,136134037,966608817,60289106,646169794,-311118258,867629419,1730327314,-1987112459,310093022,-582644262,1594251106,435240778,468336289,143376751,-618648883,2074370638,266151346,-720255024,1964551556,-145689483,351354668,-419570977,-1010662944,1881087123,-1759473395,-1168142376,-609625710,1504529465,-1605536450,1006094847,-710469048,1740997004,-205205358,99417537,1455702378,2043150420,-1692851031,1041599667,-657566221,-627014296,690113661,1675355531,-2039117270,-904296715,503170961,743844598,435058316,-1759900600,-104202066,-621576081,1813136673,-471756329,-1110421606,-1550101135,-926063886,499373653,-47332804,385450719,396211294,2128917058,2059068319,-1185487022,1611282777,-453175444,-715053631,613015103,1391358378,1352122271,956574975,-1843585729,-108559342,-546603113,1966017326,2065417920,956567295,-66232571,-1876284306,158216358,-1321907725,1405685966,-1303075103,1591482103,1410985767,785085405,-537302683,270738254,-336670630,-2027481924,-1687910262,1904830491,-663165105,1504377910,-1500117351,1790650493,1298352871,1082367530,618018941,-1982362107,-647758481,1623238336,1311336387,-1784819671,-1795067524,1269399984,60333956,-110242367,-1707842424,65525626,791272275,2130128488,1453286350,-1129129948,-29860997,-1899172253,572594197,-938191389,758232511,1002317839,935128309,-1628730471,1710098225,-1761716845,2121561409,1182108268,-1097446207,-496602959,-2019200512,1831275588,1859964480,-860554707,612673026,1070426538,-1633083321,-1697886795,-1200483750,253844045,397263226,-1908846458,-1329300865,-586710029,-1840308020,1249335187,464917010,-253158321,559006343,1979452911,14738870,1370147193,-1855579052,2064358808,-241119116,-698083079,753169603,49141496,-251542308,915798433,-1435795717,-2069302522,-1799235324,-1273020637,-2055689305,-1833860960,-61661584,1913935731,683215582,-1170555006,-285637508,-1316615732,1567427937,1718209286,758120408,1423373809,2059648257,-2063089037,1281904092,-133928901,-63948935,-835864595,1231667451,728522284,-307213080,2020252371,-551182674,-756685024,772785152,-1081942005,-12357521,726170975,1998213765,1813724622,-1886449272,214402686,-2050328773,-726396549,-539046763,948989625,-1009424696,-1346044948,970699201,-1570494077,-1872800757,-483673300,-1484821030,-202074876,-1456894923,844692991,1573715415,-2036959258,823735369,-280502258,2035123179,-1614207486,-310978752,1784688488,999386366,614715410,-1604087881,-1902357772,1877317226,-1213450055,31420788,-597853652,1753547714,1041932273,946443213,-2137212459,2121720397,-2105135513,-27679635,440999324,-808694020,-1881828201,1397631534,-833745754,-1918260145,-518725313,1093709582,-1935375085,-962515843,-1622289415,850899963,-1066003805,739069824,-855536344,1182360173,-476317731,1246717968,802653999,-1763896823,1277430528,399468571,-1185298255,-929061259,-6486923,1815474586,-1706555488,-1758350144,692683040,1724191859,-790740696,-220851443,1680126376,-60081596,-1477420506,-54923830,-1986433783,1428162346,941740299,-528447684,1010487897,1415158037,-1667843240,1677164379,287671104,-302514305,1082206956,-1700546983,-605519867,-1244378796,409859452,-318198695,1810594119,-509488949,-283407882,-1764188783,-2028156828,-184145993,-1988101859,-1487119233,-376467624,-1793015508,327844612,-1503767146,1158616873,1381490067,2012477133,378021159,-225247855,-1816116115,1794396251,2059548540,1672146075,-2021524592,-1978537057,389407074,-1316781908,1489102943,1450880468,-1270582714,-191719778,-109102553,737375211,1095284666,1755180434,2058863804,-781386786,779695073,869784089,-589249880,-2084085923,1532053676,916136355,-502121663,2043940048,847423868,762159943,-2063371503,-1714336645,1020096859,24041677,550606877,-623554571,1836266173,-750056014,1199961759,-895621653,-1124571706,879281803,-1814272285,-939449970,-539122198,-2082809291,-2003415899,-776003724,-1855441026,-1620395963,-2122991813,-948555409,1324028616,407439128,775251848,1242463755,699726054,960296478,1588474159,-534138615,1681540578,-216519075,1639314672,1956373107,1704998316,-53167604,-167327318,1989975671,1151243798,-1379764281,768312973,479835139,-1061459955,-1226611818,-514111885,-1613089246,376173176,1593908239,1457998088,1162007676,-718024491,1334054923,468598865,592586675,892762313,-177271412,-2098715947,350774260,-640173316,1274745213,270923467,112745603,719132705,1984223858,-710340037,1294202853,-369000068,-1206370517,1209846033,-1636416967,1519615385,-2142067999,-847557346,-1883203438,-1981108645,644223323,-2033395606,-165627870,1298404780,-230255146,509516422,2073209700,855247288,-594283892,2124852016,-87510837,1544594422,55902205,1677673632,-1552770819,1888577017,1089554085,1403244846,1404524874,-795066156,1214372198,1368553094,-1048524719,-1863593403,-1487048719,-1395489077,-692341672,-1925454348,2107462864,2066599980,181237423,-574669894,591602113,-1782620604,1762311624,-198045962,-32747234,2088915857,-635298962,553565468,1204772334,1924382328,1870337991,-533907125,855578878,-190451501,-641156558,-50772557,857760256,-1421692837,-1698918173,1801228988,2025738381,-1869325215,1889690938,-1518880528,-1015718740,1196480195,-1763575584,2101164119,-1683828682,-1954643363,-371598698,-553842464,774701532,-1852149707,1046324445,-2146737602,-318351347,361160544,-1080695393,-861353236,378771239,1485424161,1500217276,618989552,-1723587123,1434731057,1224458473,1131267361,86622355,-349466657,136794922,523566462,-485495562); -/*FRC*/Random.twister.import_mti(2); void (makeScript(14)); -/*FRC*/count=126; tryItOut("\"use asm\"; t0 + '';"); -/*FRC*/Random.twister.import_mti(11); void (makeScript(14)); -/*FRC*/count=127; tryItOut("\"use strict\"; mathy2 = (function(x, y) { return ( ! ( ~ Math.fround((Math.fround(x) ? Math.fround(Math.fround((Math.fround(x) | Math.fround(Math.tan((Math.min(x, Math.fround(0x100000000)) | 0)))))) : Math.fround(mathy1(( + Math.hypot(-0x100000000, Math.fround(Math.min(Math.fround(x), Math.fround(mathy0(y, 1)))))), mathy0(( + Math.acos(( + 1/0))), Math.fround(x)))))))); }); testMathyFunction(mathy2, /*MARR*/[]); "); -/*FRC*/Random.twister.import_mti(218); void (makeScript(14)); -/*FRC*/count=128; tryItOut("e0 = new Set;"); -/*FRC*/Random.twister.import_mti(228); void (makeScript(14)); -/*FRC*/count=129; tryItOut("t2 = new Uint32Array(b1, 6, 6);"); -/*FRC*/Random.twister.import_mti(246); void (makeScript(14)); -/*FRC*/count=130; tryItOut("\"use strict\"; switch((({x: Object.defineProperty(NaN, \"constructor\", ({get: Math.random, set: neuter, configurable: (x % 3 == 0)}))}))) { default: a1[19]; }"); -/*FRC*/Random.twister.import_mti(373); void (makeScript(14)); -/*FRC*/count=131; tryItOut("g0.v2 = t1.length;"); -/*FRC*/Random.twister.import_mti(389); void (makeScript(14)); -/*FRC*/count=132; tryItOut("\"use strict\"; h0 = t0[9];"); -/*FRC*/Random.twister.import_mti(404); void (makeScript(14)); -/*FRC*/count=133; tryItOut("return;"); -/*FRC*/Random.twister.import_mti(414); void (makeScript(14)); -/*FRC*/count=134; tryItOut("Object.defineProperty(this, \"v2\", { configurable: false, enumerable: new RegExp(\"(?=8{0})|\\\\3+|\\\\d\", \"yim\"), get: function() { return a1.every((function() { for (var j=0;j<26;++j) { o0.f2(j%2==1); } }), b0, p0, (eval || b) << (Uint32Array.length), a0); } });"); -/*FRC*/Random.twister.import_mta(-750775571,1818622304,-1433876983,-670515068,-354215485,-766761197,-1841176652,798415939,-418907221,430008297,670010611,-2132448417,-664849563,-880849954,-334874381,-1558034711,-11815169,-551248505,1963223306,-399771986,2138159546,-460085627,1142119442,-1556881468,-1868623089,466246319,-1860002939,-958530621,-1898814120,901939504,2123505875,1828260270,2111596342,2040823794,1032461379,-1131617450,1316075993,-1415576399,-688056441,-306205971,-1110275664,-752467814,1876236391,-717411594,941321102,-655047094,-81729989,1662912556,-1461912329,1090770854,-1606977302,2017024064,2019628944,1291750237,-1764407543,326084923,-1394222869,-340783719,-859458836,1212697081,1903260952,1587182523,1114845318,-240969686,2097659651,1157383330,-1510288787,-393107673,1702067286,1056553044,1661800693,308519112,-789804367,-549243224,2017077878,1824112182,841835744,441051141,1716046202,1122635733,-1505603577,358729470,1855316427,-1588493288,1343142306,2050373488,616177227,-745092298,-1751511948,1022368606,-1892893568,-212347250,-1674662506,1318016532,1383268336,1597530766,-690896933,453631417,-679881112,-923160349,925810289,300850960,2041405231,-1233708582,-772117137,-1087224197,-34166493,1683522316,-846195579,879182771,399269180,1006955916,-1628319963,-915111406,-1656248446,827412704,-631907511,-1363787162,274585726,-1087237564,2023353023,1677573032,1223824544,1902538691,-707377697,1104022492,-1752098731,194985396,-1873800688,-1742184112,2019773885,-1554661149,-1484945369,-1240125611,2127198180,-776121994,1221160927,-946515060,93630950,-860834505,-1669235981,-1085213316,-424288975,-1252163101,1810857991,72992707,-589016261,1910354231,2003449025,-1509448137,1105109732,-901902711,-2028305940,1543385391,702290965,426971746,30560792,988412527,-360244459,843223518,-1297061924,1107605645,357441162,1011259983,878632594,-2134021926,1672362961,-2046751761,-1520864098,-1260810819,-1503421713,1347416217,908686981,1228609841,-448702649,550552674,73072508,967546903,1458115332,2142803588,640051403,-150409717,1373915285,2118419774,1693848035,-1664599780,-963745770,463757980,1899020806,-1575918978,-68847513,-819723998,1297468182,1439331234,-1429593795,-1688566194,1339046939,19036640,-539087099,-1369605456,-1533054122,-1903879576,1357811702,-1576420728,1486534022,1534570048,-1104461924,-312888772,-924800055,-90380375,-796148883,-1878234944,412875458,-2067931941,1378127732,-652488185,814741467,-1530403745,1864539753,-427817603,-963196456,-174472884,1295536436,-555948046,1270143348,1384560955,46393380,1718931861,11569019,550204826,878568549,1431964783,-233969658,421688149,-1300911202,314488259,1774269577,-1712091187,321074068,-1830843429,-1364489466,-305760463,110894294,-1303280453,-1630046662,-73911172,-682597990,1413351517,-87373161,-1576550032,2103253034,1485254618,-1496792959,1588785541,1107975963,201630717,-1547701213,-1787980908,-24210504,-1678840503,1520351940,-1144419588,1421306833,228786393,-583826797,-510431065,1391290148,-275719503,-859769777,-108447589,22265075,1679975075,107797427,-252311930,1677893743,1773564183,-1232558464,-384767860,-2079702186,1975131801,-310200923,1601509013,-1332142317,-1399477712,1517148666,-998851386,902661941,1235295522,-1398749416,-1928742344,-254413994,1166499181,-2034366291,700964303,-1429872988,789811412,-33646822,-1195772423,1530618008,-1362819703,1061268942,1818668825,1906631159,1162979038,1116400867,-1846083819,1910434390,-1328173077,-1509815079,-889417836,987420158,909811532,-549669966,-1012222680,763928607,1780899030,692466760,-1175151884,376056632,-1279499583,670934404,91561456,-638475692,813217587,-677030967,1979469813,-17551868,820590261,1468881967,-499067795,1160094136,656260090,2054341112,-602138041,867892986,141917370,-1134696531,-957659162,1301360666,-850495032,-1332819824,1356583239,-243949888,1840977277,-1375897195,-774245755,-2003705277,-1657300075,1813588137,1045004032,72775799,-937495648,1402987477,514355025,1288770766,-408757979,452382163,948761863,-1921286667,-750843450,806408306,-67760419,1224457539,-1359303130,1608447072,-474950897,-2120991751,-1150853747,1639092200,-1894594522,-1837463632,-1271666945,-304412797,-1132723012,-293125279,-1926098400,1890189076,-2121413690,1930278663,-786684372,2105472955,-739762692,-1313449645,1693836816,-1274377945,2028020430,1414567006,543122190,-945755126,-402031249,-629102422,1111762527,-1914082550,674685361,-760886401,255020664,-1665749719,1174414262,576563277,136113063,449000482,-1692556894,-48971207,1858796777,-1129070515,1722372250,-1196601481,-1795025762,-113003609,-1189656601,1993753758,-888840573,-58151830,1389822949,-279408063,735766188,-299394880,1416208020,601427294,-460483668,575125337,2024726314,-657137028,-1403281633,-594201167,360231397,-627393252,-301001792,-952083478,1136764221,1501987267,-390468720,-108599815,744988112,1293450283,403192096,384728923,-303390509,953265746,458950410,1488820683,431914949,-1042673071,-974671061,-1879395659,1962977098,-1664528846,589423636,963168358,1838942953,-359526085,1995389738,2050016468,-856178421,-426275770,784393775,-132093205,1509244979,-685822879,1510753657,1707636029,-1422590176,-1660889921,-230146594,1276352815,-733135898,190863202,667678679,1503944724,-382913193,-1678507422,1679637930,1205761622,-1993583751,-1761420345,1781287225,-972598857,313772767,-2140999137,2072729100,913145407,180241572,-625389824,2047713121,1876835324,-1711596836,-1748341051,1300498688,130417958,1080891298,289242070,1802250971,1217337596,552617429,1326742848,-1139143113,1523349885,864265765,1514684325,2104475494,313588066,1179511652,-429917653,2036716825,2119467602,1029654415,785100626,69707331,278400388,-72554961,438146280,1897823614,-422062344,-2040733824,-1217681928,945772527,94902590,1934000109,2133908395,1589815576,1672735797,-2043804710,-739858251,1826938016,585984871,-681747369,-1779996496,-1935830004,-1811946444,1151607113,-2141910636,-1081329484,130379478,-2053118907,703876676,-1061180842,-1927494691,-416861684,-67033282,-598024313,-1195710151,1262136009,1392842301,1718188299,-2076324026,253177828,-1644848249,1487859740,-1592134326,-1208355921,-1462077422,-430247527,-45239468,531901479,-1986452168,2120004792,-879003448,1835762130,1127044937,1388051131,1708445360,-490232057,-1026327651,1933317143,-1380540982,185385696,-1283402848,-1927798650,-860497201,-542506211,-1525533374,-1490889033,-1520653215,-1299651272,-500059366,-1957645890,324563639,1411983097,-335979177,1791376617,-1340255123,-439404364,-1092790950,-1179875995,1416144926,1779396595,-1968228154,-1128712064,799078003,1029043229,195901119,-828609905,-1679695470,-1825577087,-622988325,-1693297578,-2073938858,1978444612,-1176334620,829224562,-930027017,-2114337007,-635137330,-512985135,1202432375,1929905688,1050131189,935172107,1428840428,-673039323,-1229677220,21420776,1414831376,1176639398,-1242185417,879394253,1434201540,1648294629,-640125239,561257530,1814382628,-583027264,1052030979,1813910656); -/*FRC*/Random.twister.import_mti(68); void (makeScript(14)); -/*FRC*/count=135; tryItOut("\"use strict\"; a2.forEach((function() { try { v0 = new Number(s1); } catch(e0) { } try { Array.prototype.pop.call(a0, ); } catch(e1) { } o2.toString = (function(stdlib, foreign, heap){ \"use asm\"; function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n {\n {\n i2 = (i2);\n }\n }\n i2 = (-0x8000000);\n return (((i2)-((i2) ? (0x85b7ca80) : (1))))|0;\n }\n return f; }); return g2.m2; }), g2);"); -/*FRC*/Random.twister.import_mti(204); void (makeScript(14)); -/*FRC*/count=136; tryItOut("testMathyFunction(mathy5, [-1/0, 1, Number.MAX_VALUE, -0x080000000, 0x07fffffff, 1/0, 0x100000001, -Number.MIN_VALUE, 42, Number.MIN_VALUE, 0/0, -0, 0x0ffffffff, 0x100000000, -0x100000000, 0x100000001, Math.PI, -0x07fffffff, 0x080000001, -Number.MAX_VALUE, -0x0ffffffff, 0x080000000, -0x080000001, 0]); "); -/*FRC*/Random.twister.import_mti(236); void (makeScript(14)); -/*FRC*/count=137; tryItOut("print(uneval(m2));"); -/*FRC*/Random.twister.import_mti(245); void (makeScript(14)); -/*FRC*/count=138; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return Math.fround(( - Math.fround(Math.asin(( + ( ~ (y ? mathy1(Math.fround(y), ( + Math.round(y))) : ( + Math.atan2((((y >>> 0) , -0x080000000) >>> 0), Math.hypot(0x080000001, -0x080000000)))))))))); }); testMathyFunction(mathy3, [-0x07fffffff, 0x080000000, Number.MAX_VALUE, 0x07fffffff, -Number.MAX_VALUE, 0x100000000, 0x080000001, 1/0, 0x0ffffffff, Number.MIN_VALUE, -0, -0x100000000, Math.PI, 0x100000001, -0x0ffffffff, -1/0, 0, -0x080000000, 0/0, 0x100000001, -Number.MIN_VALUE, -0x080000001, 1, 42]); "); -/*FRC*/Random.twister.import_mti(412); void (makeScript(14)); -/*FRC*/count=139; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"[^](?=\\ufe5b|.?|(^|[^\\\\cD-\\u32aa\\\\w][^])\\u0097+?)\", \"gyi\"); var s = \"\\n\"; print(uneval(s.match(r))); "); -/*FRC*/Random.twister.import_mta(808640262,-1374585962,1679330277,-155580388,1798505204,-1271648797,-1610014185,372804935,-1284418639,844249553,209195502,207919818,-592911864,-1713641416,60607784,438683594,-1538392583,-1780832572,533667323,-1851833315,-14090999,1104192343,-183206834,-218067455,-1404878174,1229791073,1446892065,-1677981923,1335488893,2094734762,-663513321,-106010511,2131991236,-565493955,-151020997,129403338,-1598083241,-1083291849,-136356727,1208433539,-2072412002,-701263170,835031665,78654476,902044896,625136019,-1268205763,43809809,360795289,-1932332473,1597851700,89670574,-756285544,2028995168,-1504682136,-179660674,539457304,-2131405520,-739479028,-1063727001,-273625807,-165235678,1658702188,-2109531549,-1991582351,385158486,520642194,1051338500,-885921844,-1544654905,788146099,-388328045,-2037600765,-404154535,1380049585,1590215718,486545316,-1540964486,-766378484,1278134635,1476602272,773894693,1797493760,1584014062,933584668,1374482682,1405549306,605240774,-947710093,-1873006459,875553351,1238455277,657112232,939787310,1156586396,-84969522,-193193002,1688770164,1097754265,-1739352422,997517741,-6938387,1716794251,-481984758,-2133034874,28057189,189371551,-1047250737,-26978679,623739340,438685829,-2031592759,-1625905370,1421756201,699847950,1391823747,-788005197,-12236345,667311821,-521380674,1119396409,1531564539,-8835546,-800031227,-423033292,1093047360,690700922,717578863,-1689686785,1893629617,71287970,1497993464,-2035939780,-13618586,-1756196849,-89560602,-1504359037,1799231159,2146385938,1515507323,-1198569294,374569337,536653737,1413847525,-803276297,-461402241,-2020667057,645948921,-2061743072,-48575755,-457619577,-493570628,1125014503,624740039,-354191192,-39544232,-1681366577,634525805,662568023,-758953178,-1788777141,1233803276,-711981245,2147197433,-492760214,705484458,-382459585,-15063163,-932662047,2042211848,2084005909,1319752018,1648312154,247082558,-146099066,-1485712417,928356844,-918209896,-1265829124,-1723599347,-156901085,436455874,1441037942,460254275,-341105606,-577085103,-193022933,1827719453,2064113356,1851077674,-617924591,1225397240,397462988,-2017421570,-2093930072,1694584640,-1816208527,1815762054,-868423410,-701657603,850273904,-778712801,543697718,-1528974540,-1404956623,-986641152,-1748980017,-1160557492,-1756445421,-807741540,2143005803,426222221,1286890135,-542713114,-1262255308,-1793337822,-850832042,1533820636,-1641885780,909592872,418519619,-1086038445,236613571,167715998,1836341634,1070943249,-970142571,-1453183900,-1099644581,-415315704,1159708404,1379268343,1638769814,-1187776552,-965777543,513374506,-1482469656,1172932644,-1677463560,-1946343541,1982882687,1087554371,-1710901944,-349813020,-401163014,1952918838,1653141740,1531259037,282280943,-1950683045,-549250580,640651837,-1088628868,-298824333,83289660,-951141453,913167456,-1489707317,760327690,308070310,-1011877309,95198988,-1737508487,388914881,1454329787,-1633030373,-423107068,2064730726,872398380,-396034857,-1347834494,-1342520858,490328784,1600214997,-1353714619,247799769,-128285183,490236319,-426902467,2099385749,-1908262411,655646782,-1560261274,1292999653,-1563554989,268566857,-465019146,-102715715,-1331533506,448213191,2038957066,320694776,-618769554,174764480,1763962734,-171004863,1723475428,1130862591,1722853256,-651396892,1221783562,-207936875,2086672201,-1521626870,903180335,-1430353113,-850612671,-1844797677,1264514543,911146751,1165454664,406521541,809085550,-1677059542,285217709,-752874153,-1935245825,2132473819,-922234286,1960078954,985565910,1745406646,1004248200,1185284845,-2023882415,2115269019,1496300831,-1984235675,1472133636,80143191,-255089929,-1109059462,-1230330983,1385491426,-978418030,2034374016,1180181055,2095925384,-1605409235,-950942866,-1512366251,286005870,-1121930782,1592914598,245432410,-91873485,931078571,-1380153678,1148022395,1683661506,-195098667,370034433,-679865545,256100381,-2145599966,1329248969,-175065875,-1685403001,819336219,-558993915,1539540439,1781005937,-304857355,-910542925,-1007759377,-1506939599,-1628450718,-933884090,299507050,1455549553,-1756046779,1073466089,-1170109151,1774452768,1612279017,-45567062,-35901674,70724827,-904223062,-1531342619,214485049,724624606,-1881249456,415602051,1503824138,223721080,-1024656735,-1229907122,-1534699932,-1194306794,-2016345591,-464148753,-417392979,1500410975,-1199341383,1597723306,448380883,-200209172,-743500706,1868473675,53804783,281568581,1226579316,-1341863659,-1173253419,835906968,-742196158,319588399,-545203474,781147193,-1478167587,-1779469809,771313788,1524256212,958249547,1276383916,73530208,-892879170,2068634158,-543447361,-1147668117,-1352968042,-1440468976,1694298486,-1081164629,-512641152,-1591081955,1359874949,696101726,-1784423672,-1870575876,1233768978,-1828535320,675553285,-1227403044,87116385,1613182762,601062210,348791048,-102621523,1248941531,220609219,1860222824,331136211,569142649,-1874433867,1739045666,71728752,277015544,-1571039359,1921562891,1349270504,-2136597429,-1251538250,1728769964,460080369,315414990,-140994533,-1506057068,-901697833,-1398175672,300400121,1740466117,1487024800,1875842519,-642530231,17853631,1524781941,-313726665,-671107975,-1725376463,-872839215,-369511339,-1342100016,-1218724642,-1428661269,1542170091,1182453820,1542076731,1025693884,-345018591,699023804,591447260,25348510,-1412869211,-4445769,1956561702,-1068697392,630854877,-1863252846,-1148126349,1927857093,400129326,-1051862876,-65733214,-946785715,1756208922,461701775,-1857216939,341945953,2085069415,90749327,-343980662,-948910296,-1700824441,-236442732,-432441749,-2045886665,-2083871754,-301037806,1973331290,-1851400145,1395420809,-1073902582,1019721109,-1300863583,-1172520978,-552019712,1014775156,1942951339,159232045,-1713894421,-2084781551,-289136504,-238974709,742593488,-1620921630,19726864,146899694,2085262211,-91501232,1983366980,830065114,-1716090525,-1303033288,-1797774114,1172137977,997719767,-283190823,-177443283,1621098385,-1584781204,2031878413,-1900504484,949051433,1593159502,411244132,707948659,-1426291778,1874239617,-1400648962,-101132037,-1463363753,1575169923,-158028487,1920157280,1920148414,1213577612,229660152,-2076130111,-83916610,1037011843,-1714114732,1350790362,963324408,-1181806595,-2116168915,1518945005,-405689537,-274093245,-1805113054,-989337931,-1547539025,1181218854,-401285523,-1798707201,-683245215,1487608225,-93984342,1450969566,2107921479,-546171761,-1964750684,-1616584478,931515809,897681528,-2131561915,-1793372623,-310004576,1896486261,2013049387,-1910620378,1991421486,1787402576,-2048973459,1407911745,741849555,-1952080585,1733145040,117524741,-1339010185,218834318,351680669,117525362,1035153367,1280953103,644869183,643688399,-1714861549,-729536514,1483143415,1938343810,776256939,1092528869,1972147575,-1908916090,281517755,842369458,-1259362062,-787631425,2012327615,2127653991,1765038314,44093520); -/*FRC*/Random.twister.import_mti(268); void (makeScript(14)); -/*FRC*/count=140; tryItOut("\"use strict\"; testMathyFunction(mathy5, [0x100000001, 1, 0x080000000, 0, -0x080000001, -0x080000000, -0, -Number.MAX_VALUE, -Number.MIN_VALUE, Number.MAX_VALUE, 42, 0x100000000, Number.MIN_VALUE, 0/0, Math.PI, 0x0ffffffff, -0x100000000, 0x07fffffff, 0x080000001, 0x100000001, -0x07fffffff, -1/0, 1/0, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(300); void (makeScript(14)); -/*FRC*/count=141; tryItOut("g1.i0.send(a0);let y = x;"); -/*FRC*/Random.twister.import_mti(343); void (makeScript(14)); -/*FRC*/count=142; tryItOut("a2 = arguments;const a = this;"); -/*FRC*/Random.twister.import_mti(381); void (makeScript(14)); -/*FRC*/count=143; tryItOut("/*MXX2*/g1.EvalError.name = v1;"); -/*FRC*/Random.twister.import_mti(394); void (makeScript(14)); -/*FRC*/count=144; tryItOut("L:with((let (z) [1,,] << x))v0.toSource = (function() { g2[\"__iterator__\"] = o0.g2; return g1.m1; });"); -/*FRC*/Random.twister.import_mti(521); void (makeScript(14)); -/*FRC*/count=145; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return ( ! (mathy3((( - y) >>> 0), (Math.expm1((Math.pow(y, ( + -0x100000000)) | 0)) | 0)) | 0)); }); "); -/*FRC*/Random.twister.import_mti(609); void (makeScript(14)); -/*FRC*/count=146; tryItOut("\"use strict\"; a2.__iterator__ = (function mcc_() { var wlzses = 0; return function() { ++wlzses; if (/*ICCD*/wlzses % 5 == 0) { dumpln('hit!'); try { v1 = g1.eval(\" '' \"); } catch(e0) { } try { m2.set(({}), window); } catch(e1) { } Object.defineProperty(this, \"g2.v0\", { configurable: true, enumerable: false, get: function() { return evaluate(\";\", ({ global: g2, fileName: null, lineNumber: 42, newContext: false, isRunOnce: (x % 27 == 18), noScriptRval: false, catchTermination: '' , saveFrameChain: false })); } }); } else { dumpln('miss!'); try { p2 = b0; } catch(e0) { } try { t1.set(a2, this); } catch(e1) { } v2 + ''; } };})();o2.i2 = new Iterator(g0.h2, true);"); -/*FRC*/Random.twister.import_mta(-484855513,950788467,1409524037,1991081877,-1814379669,-2146419552,1645231977,983665618,-235716177,-704711499,356435274,-237720598,1650632741,-433416887,-1728212502,-1495851425,272047798,-269319063,-573374339,-486722245,858218442,1103553545,1058230624,-306816966,1391814649,405957087,-267763161,1095431370,-551798443,337346377,-1261334686,1458857532,596571209,1928739646,173184759,441836700,-285494463,1412451911,-130390145,1645999973,1221243421,-719300369,-71694165,1351834539,-2037390635,-304327639,-872795644,-1306231830,254255433,137961272,116023207,972493876,-568076623,1637914303,717846487,-793401401,-1256349650,251451050,-500655075,-65269879,-1936997878,-682262494,1382552377,1896109615,1520253778,1748584588,1207378210,1247274545,290210677,-815411271,-142104221,922881769,1023643402,1761647030,-459414078,-411451513,-1575849363,-562871336,1439141761,2011836731,-933086735,1853616955,303548875,-255999825,22821313,178502049,327899005,285239491,781877546,-1216249126,2108482041,906971785,-1930230139,-1712785731,1335851042,1843884229,-1290169442,1168866865,-877070080,-1407231213,-1119444442,2070918991,633541092,1009360420,-592050590,2010332954,2125622160,2091245852,-1551963278,1914908406,477274764,-868093851,492377177,1631965149,567776561,-492363505,1498912822,-164877780,-2113909762,1112038957,1806991650,62958183,-2098226570,2048471863,-112508469,-1758895316,1655578976,1701679019,-853238697,-1652731725,764004972,194150896,64129712,673854856,191067063,-77865020,1965109991,-1918703055,553317180,1503314848,-380177740,2045263570,1178997248,-778554443,1253924620,-1546438283,1156585599,975128121,-1183810837,-204012168,1534601901,1383276178,-467635395,-1712163158,-2027252265,2083149679,-1778216086,2082661325,1527964659,-1580522044,747672970,-1099897210,1656071394,-877723381,1758060758,877006612,-1241067577,-1000881321,-984360711,651089912,2111679044,-691129198,-386614180,-1345490079,263700357,-127360679,1657103722,-1303207149,1096854566,891076911,363527488,-795355503,-1027354848,1215415898,683119864,1775477358,1892955315,168174279,44765805,879746706,-241285171,-430058938,1927962122,912533247,-56715130,-429558967,479507219,-1547611670,-1577750176,1969269483,979880295,930718795,359633055,2132405168,1871946510,-971055323,1516825940,-283312767,733257921,-1061516587,-1276737962,647744391,-78165363,34027885,956640403,1222645504,749254027,2057171617,-719068142,-2051660987,-1264642492,1793732556,-705552144,1095467646,-130843984,-752185729,1444005474,623599957,1261733367,915177023,-960547791,-1559490272,-1668692148,-1741734902,1978480455,-501029157,-1224068953,457126582,757238000,-2140001979,1598768183,-1778431154,-750502611,1681670347,-1782508814,-325617653,1448546730,-1572450590,-585945861,1353899414,665395707,1299909703,-165478471,-1301204679,-68871732,-2077568155,-1635147533,-495363993,1608123887,-1689142857,807433400,-1620182380,-926254301,1554293827,-1033107179,-1957063555,529748566,1362455819,2015008347,-1402020246,124664664,-938275907,1533300508,1163229433,1817068761,-1442688362,-542270680,-1398533786,-563171807,1074428564,841655968,994660708,792058602,1030886744,-537565487,-804474010,434432008,-723847531,50768030,1856770364,2022367955,1997673189,755765356,1936119445,-373817138,1645302151,2011083929,-991954265,462697115,1500182287,-909789149,61169337,-169912574,1643149989,1378137748,-1435932546,-1477980563,885388249,-330023781,816611183,1705571090,423685366,78034100,-1039929740,-1583817033,-239005942,1359235560,1496254672,1281719740,-1850981394,-1377004570,1383249510,-675495572,700326889,-1549142493,2116523856,835358846,-694558940,-536578501,-2068942784,1658524185,518776689,513362667,1550133465,322524,425347762,1280674482,-1789025979,-1343680046,-692311252,700695274,1061670336,-1914709924,1577523227,1382520170,1085762548,1419124084,-1869969728,837679878,566798659,-1474912152,1275000975,1233139709,1654685297,-1678220784,1860466430,1236305199,-320180034,-1110637011,-147064700,-2077132177,-1534993390,109999298,-1914772017,1203547254,1871518477,1035060227,-1581515775,-880773067,-723202051,393045534,-829085373,-684639899,-302768428,79372268,-945918624,683942858,2121628152,-1725471169,994879486,-1939209019,-2134531713,-1455411855,-1160521745,2055747825,-479449476,-90986397,2127806136,-501690611,-1202350791,546136739,-2108761249,-1040611868,860864324,-1412797950,1359460303,482759054,336207979,946460392,1885762548,1050800412,725201215,2036495628,-1497031457,-356788769,1753338375,-443402777,980062263,517523538,1211696657,-1685139582,2118859974,1153336452,-179152567,738995089,10219485,285999565,-1942476070,1352184262,-1238822304,1640598196,-1450409842,-1810166798,-1705288295,-747009494,1751696305,-2064703498,785980616,1034439119,1563374561,467468985,1712505594,187990008,1090733370,881649774,463944532,-783075468,-1182558510,-2090699762,124211391,-1650682669,242578215,-667485770,-1521077272,-340363740,-1494206077,-2020270979,-1126276168,-489720621,901696682,1769840522,1634255946,-1986458844,630501812,-1315572750,1112729872,-1807187219,-1784510853,1596208788,-891485336,1238651433,-549768070,-831258741,434440851,-1360109491,-190706064,873181216,-253394829,1728586157,114876906,-1731709956,2016770055,-1265111325,234540997,1847776200,703483601,1938797960,-1823175239,1407868953,1520302326,-425455129,-364545118,-2064926806,308656638,78642275,630547580,-1149778465,-68825591,-1760200483,202028613,-1126664834,-914311294,-1409320913,1637428359,-1409989390,206330326,950333426,-1765800787,455830610,-61919504,-555117343,1509025308,-910544638,199923380,-732953428,880453067,-1710893616,1943009115,1280185069,1442482247,-1398254192,795599178,-806193821,-561020387,1424585882,1577645929,18906556,649395305,-671274769,-1329956699,-427662401,829346073,359875011,-1774796605,-1828818097,337996778,435975687,-844793516,-1534548057,-929386070,451647751,1251496569,1069194256,-20092047,2125062582,397557688,-1273024293,-886100191,-83989697,-303957085,-758711742,1142845166,-157466076,-1807464157,1985339255,1076164238,498977544,-1198337479,-1130277127,-1040374765,-867500213,1858219351,-1981894578,-1819773379,-1348436972,-650254364,-1601917818,1677932773,-2050804274,1676054196,-1685430841,216972406,1897659615,1356865102,278042212,1980713115,586168965,-2094815318,-778327874,-940847923,-1517528162,-1701964958,595892199,-107691363,1139197408,-1018819735,-728394420,-1792781123,549518432,-296047359,-737032983,-561363390,557188751,-1954884832,-164973438,616353744,616492867,-218914753,1158440567,-1535599352,-1965950372,1021705057,1523177381,-1504254358,1363595134,1150489603,1212068281,1691074294,1411202334,1445044225,-1418621933,-1748454531,-1004615463,-1357576962,-1051644768,320348415,-1318394682,428216595,-360205696,1551622613,-2095598546,-190654725,1525402577,1499288071,2043649787,863219855,-1588637216,989509338,1942008543,587850340,-1792034392,-1622129033,1347936231,-1270728254); -/*FRC*/Random.twister.import_mti(128); void (makeScript(14)); -/*FRC*/count=147; tryItOut("for (var p in e0) { try { t2 = new Float64Array(a2); } catch(e0) { } try { i1 + b0; } catch(e1) { } a2 = []; }"); -/*FRC*/Random.twister.import_mti(159); void (makeScript(14)); -/*FRC*/count=148; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return Math.hypot(Math.max(( + (( + (1 + ( ~ x))) != ( + ((((x | 0) && (0x100000001 | 0)) | 0) == x)))), Math.fround(Math.fround(Math.imul(Math.fround(-0x0ffffffff), Math.fround(x))))), (Math.min(( + Math.min(y, (( - (x >>> 0)) >>> 0))), (( + (( ! y) | 0)) !== x)) >>> 0)); }); testMathyFunction(mathy1, [Number.MIN_VALUE, -1/0, -0x100000000, -0x07fffffff, 0x080000001, 0x07fffffff, -0x080000000, 0x100000001, 1, 0/0, Number.MAX_VALUE, 42, Math.PI, 0x100000000, -Number.MIN_VALUE, 0x0ffffffff, 0, -Number.MAX_VALUE, -0x0ffffffff, 0x080000000, -0x080000001, -0, 0x100000001, 1/0]); "); -/*FRC*/Random.twister.import_mti(402); void (makeScript(14)); -/*FRC*/count=149; tryItOut("\"use strict\"; mathy2 = (function(x, y) { \"use strict\"; return ((( ! Math.atanh(( - ( + 1/0)))) == (( + ((Math.min(-0x07fffffff, 0x07fffffff) >>> 0) === -Number.MIN_VALUE)) + ( + ( + 0x080000000)))) ? (Math.fround(( + Math.hypot(( - (Math.ceil((Math.pow(( + -1/0), y) | 0)) | 0)), (Math.pow(((y % x) | 0), ( ~ x)) | 0)))) | Math.fround(( - (Math.log(mathy1((mathy1(42, y) >>> 0), x)) >>> 0)))) : ((((( ! ( + Math.fround(y))) >> y) * (Math.pow(let (y = __iterator__) arguments, (( + y) >>> 0)) | 0)) | 0) | 0)); }); "); -/*FRC*/Random.twister.import_mta(-782802931,-1956596075,-768049951,-1371266954,1798418287,-1855792537,-1147807434,1263191511,-1686759294,-1358080190,41993666,-153015137,-500892566,-672135305,-1272446154,212143071,1537452962,-605217936,-387070561,1218424360,903079937,1326520694,-2131607939,-1849980521,1016923326,890673726,-84006916,1711220319,-1150432054,-1635264441,1168322518,-1251507404,1683238526,-2013464291,1798844596,-1522461049,-1307323706,-1852216562,-207458247,1816059557,169544314,1740095620,-165261899,131323238,-510400020,-1110712140,-62648803,892147295,-1561545185,501777265,-1608128094,1423322964,-597280982,-451832642,-801462410,-753411277,1659558625,428412195,-1521197557,-770874392,-33012118,-1357344809,1800902816,1687867264,-349728708,-309825766,-1513731756,1061220648,1243109747,-692005810,845952984,2039080488,844672305,-1434009315,-1837033701,2090231562,1656974889,-1647729449,-1961630061,-826926673,2103559419,-1008126941,-70539138,1057144280,1981552557,338078923,-2081604288,333626614,1045800209,1554580988,2045434770,140790592,-638157372,-619198097,1719385919,-1301040672,-1706810560,-1909901198,-1018477440,1711783649,1920954325,164291744,-497294878,-256731184,572029329,-152894262,901277242,-974163691,1298870960,-1807973226,-857227338,-1679153122,-61808778,625684439,-2026847982,-1554400904,-442919157,367612261,-1507563360,888814893,-1101260411,-695540268,1421758945,1127183237,2063229071,1680101747,1032370121,761564603,-1013746836,1329107761,-932431444,-1520311553,-594564242,-2041409533,2000010651,-601705028,1628745398,785684520,998202984,-2135668351,-1210372024,-639802817,1545949862,-1214753340,-855686517,233701060,272849632,-203074851,969897010,-385257855,-1851040400,398057400,-1929109690,383190399,-1981827521,-2099250693,1955706628,455195954,-908561146,-154343869,2067483558,-191240257,-549863698,-269570644,382581756,-217043997,-1413263558,-348927289,627581799,471789479,-1471889949,-1511917936,151373218,2069836931,1068692241,1390814546,2041914315,592876531,1086380833,-566170644,610733866,1101077488,-1973268948,-1068888427,-362571915,-2141934583,393310876,1853328747,1049305241,-2055635846,-2116204260,1014581618,641875624,-1264667105,-689966566,-1920254221,-1212789089,29128654,-1490292311,-872028715,-427828212,-945666674,1772967385,-1665639020,768568368,-1456816525,26462945,226741279,-1437739702,-392583187,-742177777,1311024921,-2072982084,110990008,-791487109,-709418549,-48555128,1398697202,-392162830,-83830078,1334812988,1496949415,1135354715,-1456077584,1875751319,996097238,1071593911,1841664553,154024277,1752127014,-4052762,628444361,-579517342,1483469386,-481098139,1509666830,-493695463,336691642,1875937506,344583854,-586177840,1149414783,-407659675,1363354331,883824554,-2084156086,1505528153,-1034760541,659060669,170794591,772718443,-1635464259,-182013315,-2029212902,-1092419790,1830923372,1991492779,-1287217666,566751024,1011094562,-2008415145,-1772765702,1377563769,170747539,1295847919,-1133782766,-575874817,-1356926584,1904258993,-1248767975,-1160585113,-1943941534,107605015,1399561390,539770644,-851805301,1270516674,1444548205,886247966,-982293382,-122340340,-945796605,-844181089,-736569002,1905218704,-374986225,1634248829,-1081404891,-1739684023,-837134058,-971278803,-39741430,1295234191,-1860548301,-683611852,-385895456,1839700418,-424763830,-868995728,-1884110337,1918688926,-1469137766,-1788417401,1272001891,-1996680984,1105768826,232542364,-767333783,45595467,-920661513,866306979,1951354359,891771889,1244259012,1795308403,1456964069,1883144596,1608017228,11692727,-1895812041,-1305570724,1302716297,2141458635,311978126,-247794726,-609350465,1296781683,-1686772713,1268636800,171890737,1724896439,-1269011397,1104748665,901387220,-918399924,1799485417,127591659,-1693239457,-256623224,-1464779261,988334391,-2116080324,1431471530,-861250114,900916383,-1938856422,1019182669,-425008122,1600520618,1085604309,-1076314339,-952972370,-864231788,812943041,1511438020,2118353188,2035133294,260180581,-553902403,127903366,-736985590,879921146,1137014660,46856333,-2145737359,-1129378634,157353822,1259584653,715633950,395567529,165310906,1047490278,2065166766,1377752342,-802528147,1840080343,-701246851,70278832,1243581511,305769979,-809671393,1148653656,1186898643,-1864557661,714582540,765006312,-1985660641,-750805761,834379260,376946528,2009166044,1982953742,-1430784959,-1104774597,448307711,722144160,-1894559923,-1267706217,-1647128726,374684972,-137667389,50579863,-661906462,-1780450821,-836842961,-352227059,444404520,722168579,-55236569,-2019218963,-1083207434,-935537353,603271282,-662710389,-147666342,-1358589792,-2090505961,-376368641,661504066,1453784050,-1604782504,-1663928349,1504583904,-569734262,-327113015,-1520665006,-1687589967,1638090804,1883073697,-45390758,-1347339031,676680652,-1985274642,466992854,5263797,-2098966800,-1269273468,-1837990392,-1801470055,330708746,-659579916,-53894752,-2028193729,-2000674662,-1724989204,845295379,-1519391970,-1478448246,65455346,1997728926,-1719507243,1795240965,1771398156,655736910,216852129,-1711093508,-1145657916,-1873792084,1822077,546823593,2012637303,492980607,-1946057320,1827491552,1849722498,903172338,-1242325432,931332825,1206836618,-338197861,-1269748217,-1209184252,1546885751,1856889021,1336760596,512732537,-1702041508,-554483784,-1278593082,1601964625,-231860533,-57203481,605253779,-303265211,-1584648256,-1519076096,-658619399,1523058918,1230525959,1282920134,1861041490,-2117460697,1437597582,-933856634,-382149277,1842534472,670687888,-146319794,-1308206822,-267020616,1066626976,82913173,-1999687471,1636993428,-1792021417,970062070,630992648,1201309093,1951776511,-604308649,-2085803533,-813768962,535387102,186389040,159897934,-1730233961,1145608189,1961710213,1022628999,-1485163121,1353027936,1156708618,2062312286,-1110437702,-1396954177,1505928876,-1453294251,-1190117998,-870063025,1092327131,-141185920,-1759486240,-410602467,1921556551,-644188747,-2119134215,897644216,-673886493,-1682505479,1547970256,673633715,1347197537,-2047011413,-1843601680,2143952395,241995571,172092916,1970702847,-1269564065,-2138447951,-51261702,-170546179,191006590,446394233,-135587867,467634883,-516426596,1680756304,-978375839,-720060859,1942834671,1757879036,1127348430,265531353,958145485,2026147861,-1457459754,1378164072,2065857413,127182949,-2115152881,-42459213,699250571,1565269181,1577144685,892128012,-1825596588,-273104595,1763126769,1065126975,1597089248,-1819998884,2080303284,39383343,1574727053,1437325763,-1477523898,798817774,642697598,112036522,-978274846,880213628,-1350271101,1640128737,-263027117,-1750049507,636894930,601157429,-1938354631,-140015752,-2131608457,724414686,975693736,-1231338451,-726335984,1386937892,-940436051,-83968929,-1287499667,1194686660,1938079745,-555024581,-1740699596,743065277,1401877607,555496716,1259004941,-685139604,1739950140,-1608505195,1753672159,-342098221,824842049,2125483924); -/*FRC*/Random.twister.import_mti(210); void (makeScript(14)); -/*FRC*/count=150; tryItOut("\"use strict\"; /*hhh*/function rkerhw(){return;}/*iii*/print(x);"); -/*FRC*/Random.twister.import_mti(262); void (makeScript(14)); -/*FRC*/count=151; tryItOut("let(x = (4277), x, w, c = new (Function.prototype.call)(((function factorial(inhfyo) { ; if (inhfyo == 0) { ; return 1; } ; return inhfyo * factorial(inhfyo - 1); })(26940)), (Object.defineProperty(x, new String(\"17\"), ({set: x, configurable: (x % 25 == 8), enumerable: (x % 3 != 1)})))), y = (void version(185)), x = ((undefined.yoyo(( /* Comment */\"\\uA843\"))) ? new XPCSafeJSObjectWrapper({}\n.valueOf(\"number\")) : 'fafafa'.replace(/a/g, function(y) { yield y; print(-28);; yield y; })), jblgre) ((function(){let(y) { let(c) ((function(){(4277);})());}})());"); -/*FRC*/Random.twister.import_mta(1757986050,1841709509,1098329367,458963883,-1833298821,-2058946695,1766697935,-1012545938,-1131947348,1530753481,-1988932205,-1918413294,1968544393,-444886675,392617991,237299107,-175547853,441227338,-884324428,8662472,-837182140,-1105432669,-2022469658,-32082937,-2040972548,1691431710,905816186,-248102740,1930896046,-105317286,2064681390,35093406,1740482571,-634575693,-1543673776,-794626675,1394150225,-527836810,1844679037,-1319769671,-1582719414,914631068,1348459961,-395940094,-1574153734,1614188526,1264458602,290466620,-442573196,-1250091057,-846480352,768991079,93988545,-241224338,-1685952189,-2115454557,-1294338560,-2024900229,-217810680,-994933007,1591002264,1974468909,316324457,1113956457,1806073586,-555572942,860698228,-767288604,515193557,-322599516,189264333,-943047731,1738298058,1679365461,-911842431,-195387972,-113147383,-1825826174,-522448527,2100607742,1712264566,-835722247,16602301,1344843202,1871495773,635825715,-1541548994,665734551,-1960820738,-464835024,1593453894,1705208037,-1191929170,-2066197998,-1728854569,411954734,-1891440961,-2002944221,-2015774745,-2016483931,-207477730,-2094290453,-2008228528,-141040713,1065395696,-770505780,-630357567,-207981297,869251773,1139798227,175083946,176017732,274193507,-2143991430,-1630404030,-198369148,-656405923,446033182,1537939422,-1032967200,531112047,-811365208,535116946,-187690504,-269786772,-48199579,845866680,-1921674743,-1487511573,-1923718781,1923644466,-1570491912,-1690669563,352830098,-1187969986,-1760763066,1709370451,-1004152191,417466342,1852665500,573787939,-173692502,1200098354,-682507223,381314307,-1914914597,853985089,590193682,-1545566036,1117012812,1051354659,-1294863620,1391128017,1628874042,766699487,1898601724,386642400,-754504346,-105821891,-1666559665,-949351088,-1439435754,-1562122093,950767633,-934821934,382754643,-482149787,-224361823,-272410855,604636152,14018080,1067489620,-1556905221,121412952,-737473254,-1937795407,-705698405,-412513246,437042938,-1055122239,-815248171,1814432487,-967754838,-1291264379,1252516743,809914874,-1402239163,-611234530,1461151742,-419405112,1906334039,896521770,-2048237190,-1361097489,-340012582,1834477587,555506438,2060439128,1757028136,1456066772,1074122226,1638470666,-100947534,-703231377,-1498390728,-471420409,693244669,-1047391051,-1074881267,924518261,82075404,-1317390669,75215256,-1025171869,758767361,-424507920,1172664516,1742666910,1553750125,751645843,1656617184,-546625202,-1262802195,-2039971381,-164339528,-1211286715,-782616993,-178843273,1509026518,2123774308,-790024944,-1140804022,-378335652,-1041459166,-1353179543,348523903,288731412,-1097135646,-2015125179,1540508641,506623757,-1112040086,-7486447,-270642714,464502511,1050457031,-1197082042,78976581,570675283,159146124,1750900998,1707266845,660039315,1787615203,-2019125606,-783912924,-535055707,737377846,473264527,-91219201,-1861748146,1408770739,1287452187,-326159495,-21219841,-1708306979,-421883523,1080129869,-1253822129,-1807868587,-1367963597,2014320430,1233338809,1531446496,-1362778586,-2143052907,125347878,-673041105,258764122,2042673351,189243568,1683861843,-337324792,-903979960,714464419,448306665,1115668284,-1946470429,314387878,-387993184,1018522732,-1808329622,1332163956,1491944174,-1506032876,1751578164,-544028031,1834870645,421260269,514997637,1882082072,438150685,146454482,-46200195,-203931073,-432916161,-853688555,-1101236212,1940437981,-1071349325,-217596954,-333979782,15802193,143948120,-1781711430,-1287684300,-878240618,-945051454,-81018335,-505162880,2063731977,1042906477,297917033,-1210081454,2084751779,2020913025,326936433,-1771255202,524055852,572753876,1957782901,-966490861,-926021082,-20141081,523386404,-1458931689,-680600669,1916112750,-953287014,-735377369,-2133139484,-193249129,-763883941,456247501,480402963,-1661200345,-247768605,1880826042,1995553949,-1727933501,-1756793809,-1982525914,1007844314,526499290,-1303096677,-1678734756,329241710,-992033869,-508828997,-1322036992,1329496431,-1730953220,258027487,-51966412,-1703781158,1548911689,-756285435,929076652,1734666657,1130706159,-932809894,724671956,-1529621936,-2080684632,-856447450,301060429,9202708,-2102587169,583374046,-331550847,53292310,-1746598295,-531865102,1111516390,-976509550,1684759917,1815949295,-1615346770,-1593300058,-1727835907,62074006,1142224173,-791948655,924195397,-417003663,1900167264,-415590292,1312588181,1955203010,31366213,-541734580,-129171221,1602689683,736637011,199328891,1462908782,1301354911,1748658201,-1224986930,-1712917551,1310590145,459111358,-2056189216,-671948184,-1944877746,-1884462166,180378344,571914614,507292627,-1782179242,2042546113,-2022915670,1112714710,-833308483,677507441,-1140450769,639136974,-518796419,1594664487,925599513,-2109791351,-1570385585,-1374917268,-1334670600,-1059048499,-440226993,2116171889,-677171169,-123654858,674004066,-1132343629,-138447935,-1563257411,158470322,-1478009912,1311485410,2134729046,592353945,-454926591,561162584,1793108758,-1023487298,-1538794654,1311045072,-128551671,69908532,918429874,166493041,893642817,1266715320,1448414274,-1453794139,1655745039,638972501,-1536056933,-1659212191,-1726252462,1036327368,290778360,1018029005,-1272383004,-323042549,-1866271930,-1619831092,-1829081050,793093245,1711669072,834255589,-1821088022,-2025267927,-1915751089,1286053388,2126022105,-1327651515,2034835638,-379395924,-1745609076,748904850,1975764432,2076862642,1969392949,-1804875208,-1106874210,189681427,914888041,-1497841657,-1348618638,-143285058,1760370,374011497,-1070061579,866815633,-259334305,-1796739374,-1962227372,497187550,-1023063350,-1469722864,-794264537,859500846,-1381944521,1700884812,523670769,1186747291,513596407,-376318329,1268885565,-1144531216,511884914,657849796,2056633963,-1689390405,1989082729,281309057,29144099,-1801230952,1111106380,-1892218400,-476521041,863003026,-1230035699,420718830,108976579,2027435280,1737261359,694730881,1925617181,668240709,-2110403566,-1913993897,-1178958665,238749616,-97447860,759866188,1502961540,-32820005,1112549280,-131906695,-412802454,1874410772,1413347955,972261916,-332289822,-1316905892,1116454880,799510370,1345626364,-814858214,904293102,673192974,-894490983,1051378243,938155812,1390967450,-681609285,-742553487,-1120303469,608391929,1857660026,1267078275,-58361909,-780389111,726836902,1194541450,1787643196,2137420087,2010448778,2060079624,258210022,327854378,379797364,-810867007,64242196,-1535552905,1996726157,-228818536,-419614729,1545201104,-1685751127,767128878,-1495502582,347657156,-1246034714,1942877171,-441447427,899675848,-880282710,1465205913,1357012584,2107800756,-697459257,-773827086,-1816870012,1792414492,-336039987,-1741410601,139133297,-1014712833,-192955893,1082569005,-197284956,-1982586488,-1421412628,-588061437,-1892034264,495315327,-1298686901,1885989000,-854830664,1031804577,-1680648717,649640974,1310353322,-748763411); -/*FRC*/Random.twister.import_mti(3); void (makeScript(14)); -/*FRC*/count=152; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n return +((Infinity));\n {\n (Float64ArrayView[0]) = ((Float64ArrayView[((0x8b4f8e8e)-(0xa65faf60)) >> 3]));\n }\n return +((((d1)) / (((-1.25) + (d1)))));\n }\n return f; })(this, {ff: String.prototype.charCodeAt}, new ArrayBuffer(4096)); testMathyFunction(mathy1, [1/0, 0/0, 0x07fffffff, -0x080000000, -0x0ffffffff, 0x100000001, -0, 0, -0x07fffffff, 0x080000000, Math.PI, -Number.MIN_VALUE, 0x100000001, 0x0ffffffff, 1, 42, -0x080000001, Number.MAX_VALUE, 0x100000000, -0x100000000, -1/0, Number.MIN_VALUE, -Number.MAX_VALUE, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(149); void (makeScript(14)); -/*FRC*/count=153; tryItOut("a0.sort((function() { try { t1.__proto__ = f1; } catch(e0) { } try { Array.prototype.reverse.call(a2, o0.g1.e2, b2, a1); } catch(e1) { } try { a0 = arguments.callee.caller.caller.arguments; } catch(e2) { } selectforgc(o1); return o0; }), g1.o1);"); -/*FRC*/Random.twister.import_mti(221); void (makeScript(14)); -/*FRC*/count=154; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return Math.log2(( + ( - ((( + (( + Math.min(( + y), 0x100000001)) | ( + y))) < Math.fround(((Math.pow(Math.hypot(( + y), ( + Math.max(-0x080000000, y))), (0x0ffffffff >>> 0)) | 0) * Math.fround(Math.pow(y, Math.abs(mathy2(x, 0x0ffffffff))))))) >>> 0)))); }); testMathyFunction(mathy4, [1, 0/0, 0x100000001, -0x100000000, -Number.MIN_VALUE, 0, -0x0ffffffff, Number.MIN_VALUE, 42, -Number.MAX_VALUE, 0x07fffffff, -0, Math.PI, -0x07fffffff, 1/0, 0x0ffffffff, Number.MAX_VALUE, -0x080000000, -1/0, 0x100000000, 0x100000001, -0x080000001, 0x080000001, 0x080000000]); "); -/*FRC*/Random.twister.import_mti(436); void (makeScript(14)); -/*FRC*/count=155; tryItOut("h1.keys = f1;"); -/*FRC*/Random.twister.import_mti(449); void (makeScript(14)); -/*FRC*/count=156; tryItOut("{ void 0; verifyprebarriers(); } print(w = Proxy.create(({/*TOODEEP*/})( \"\" ), ({})));"); -/*FRC*/Random.twister.import_mti(485); void (makeScript(14)); -/*FRC*/count=157; tryItOut("/*MXX3*/g0.g1.Int16Array.BYTES_PER_ELEMENT = g2.Int16Array.BYTES_PER_ELEMENT;"); -/*FRC*/Random.twister.import_mti(501); void (makeScript(14)); -/*FRC*/count=158; tryItOut("\"use strict\"; testMathyFunction(mathy2, [0x080000001, 1/0, 0x100000001, 0x080000000, 0, Number.MIN_VALUE, 0x100000001, -Number.MIN_VALUE, 0x07fffffff, -0, Number.MAX_VALUE, -Number.MAX_VALUE, -1/0, 0x100000000, -0x080000001, -0x100000000, Math.PI, -0x0ffffffff, 0x0ffffffff, 1, -0x07fffffff, 42, -0x080000000, 0/0]); "); -/*FRC*/Random.twister.import_mti(533); void (makeScript(14)); -/*FRC*/count=159; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return Math.max(( - ((Math.log2((Math.log1p((y | 0)) | 0)) * x) || ((Math.fround(Math.fround(Math.pow(((( + x) >>> x) >>> 0), (y >>> 0)))) >>> 0) === (( + (Math.fround((x > y)) >> 0x100000001)) >>> 0)))), (Math.max(( + Math.imul(Math.fround((0x0ffffffff <= Math.fround(y))), x)), (Math.pow(0x080000000, Math.atan(( + mathy3(mathy2(y, 0/0), x)))) | 0)) | 0)); }); testMathyFunction(mathy4, [Number.MIN_VALUE, 1, -0x080000001, -Number.MAX_VALUE, -0x0ffffffff, 0x07fffffff, 0, 0x100000001, Math.PI, 0/0, -0, 0x080000000, Number.MAX_VALUE, 1/0, -0x07fffffff, 0x0ffffffff, -Number.MIN_VALUE, -0x080000000, 0x080000001, 0x100000000, -1/0, -0x100000000, 42, 0x100000001]); "); -/*FRC*/Random.twister.import_mta(-505998936,-851893866,-1787055793,1340109742,602327944,-1305903189,171627364,1436707117,-1549516971,-803205239,787071760,1432245077,844336056,-1666857955,-2058896976,649926438,-1697337779,-1447647596,-806390450,768382026,-468697480,1569025056,1942327434,982670015,-184264667,1487698411,-154167061,1374314534,-2133171198,1536176153,-535267662,-170212611,-2093636193,-742287455,1396448086,1585993755,-2143918525,789662636,1684074316,787937108,-1931402031,1233548085,471813091,-308812210,-2019281866,-2021812216,31065388,-1792527118,-1919053094,435732294,-324221451,2133327038,431829999,-1104597144,453131952,-47505310,-1802798670,-2116793971,-8696941,1507083006,-1438856392,-1524234838,-205854125,1669739323,-2044097476,991310133,255328039,1914932270,-1418154829,1169175147,-2027375375,1654310301,-1750476360,166951163,-1768714795,1969914525,-689611891,2073872449,1373632770,1426224619,-1884881978,1241676907,-1352889400,587277502,-950150710,1823895494,2046964561,2094612297,-1689815116,-125237201,-2022021825,1773766791,967197115,-1609310463,-668123857,548385566,-704102307,-328434107,2086076938,-699620227,803782804,1144828634,-192301203,-1611107059,446893943,78950240,1948411018,1273341141,-1520618904,-969768417,-1386534990,1099637449,857757075,-490196458,527950094,-363978496,200713492,860442648,-928595081,-1652750123,-1676275548,1366302779,492696888,224399069,2094335574,800820533,-1888086438,-887149815,1258349958,997072213,-1643835108,923622002,2046001371,-1439193326,1385552205,-309911755,-1010669425,738034396,509507535,-86539949,486956944,-504247797,1061853084,1810826985,-1847727358,977978163,1021079877,1214585810,-1623124611,-1005738898,-515130873,387507293,1597140873,-605275837,23503970,-407605230,-1744696593,-1487164511,-117827814,864134740,-1703429615,-39899528,-310549287,-292750992,-322282187,-1623010615,-1297052907,968256744,-2118612595,-1118603901,999497299,-433531432,135813679,-696192698,239816334,-659692364,881297307,663427649,-958345336,-1989569217,-1781405788,743138611,-754551113,-352813464,-678949316,-1930874519,-911084296,478686322,-1042501380,119911299,1185812165,-1720694252,-471964794,-754869785,-82077934,-1523242651,1319769311,-772995991,519773858,-343599789,1736560284,1814006449,-1885337252,-2060078501,958118958,1578465829,-753423975,755470740,1521556914,171519735,1110515321,-1237163321,-117666109,1000994043,-1165139088,-910930290,-283272372,947865025,-1830042647,-2083954629,1608285231,240743441,-407050597,-523672145,-464088717,-1077949350,821952137,-1926241085,-227394268,-1123080249,299903115,1465863334,-757124166,-996250481,-2033590451,-1421940769,-814904456,-200236179,-1581267334,-1539178271,-2105668952,1669983079,1364344789,1309393381,804278184,-742553491,-157372489,1813603982,1497062502,1206632457,-1854176274,2141674419,-186473787,-182660186,961108020,1776225679,241798914,1997176490,1369079645,-877242184,590689831,-328544124,-238587528,1717619811,-82879075,-1912269011,-674301139,256609449,-1701720768,-768819419,-1851789863,980231221,-1428579720,381212223,1275152871,-836647223,-1425992434,-1424297128,-623964158,471786423,353322782,787502132,-1742467514,1489577788,360757158,-565930995,-987665968,-480092693,-1857430150,-1377805211,1771944206,-509995386,392204354,472522413,101775156,498694444,-1441369842,313389528,-187995264,-1346438092,-1644881110,-1831938500,-755124356,906086989,-1853004799,-1369860521,170674669,1870272247,-216494995,-690006469,1426770691,506324669,1761366890,1894034828,625377491,-23791105,-1688413106,1676096752,424173895,-584058912,638570856,1237672132,994081975,824284243,1230936410,-320741011,-579157678,1618409986,1429041456,1473885448,633505627,2126776932,-489010612,1002142616,-966252543,1474490214,-1087879768,-1899112193,-1298786811,1934441057,33366658,-280799492,1054766521,-1666237758,-1539314476,691265369,-445605752,1046904373,-990349051,-806223888,1233816014,584858555,537613272,257200072,-2031653337,47124401,-2146841517,2010665118,1872032498,-2023460685,-1503758100,-1943142787,-738944977,-1896134942,-589533145,-1373583598,-1587033211,-1212376161,1498144931,460959281,1048037379,-2085354966,2075615719,1520804438,-1718271061,-1626922121,1548983518,-1339461528,-1207033022,514128130,1226181288,1900057755,-2037104031,-1159210970,1281796552,1475096626,1012549507,-889999422,672544473,-1398476142,1435382585,1571226786,1572958004,405452914,1092046040,-1306147397,1128629654,30809522,2144283429,667074185,867090924,-125799656,1414614082,-1468009095,202506742,2032202648,612110828,-1901072189,-105862140,755090440,-413744201,-718238900,-418365347,-1883752865,1532927399,-2068013688,372174648,-793187341,-1819064513,101298361,-793249486,-1707949575,454542820,-2087560008,1457961377,1308042437,1107574834,-1861276336,-293406238,397879367,1292888611,1847429784,103563097,711917728,-957451028,-1129795243,-1193277913,1046579426,-497787658,2142558533,-645988924,1928108401,-1928509737,-51497304,1600820016,-1384811710,191274408,-190454928,1591746749,-758336752,-1045033744,-1233814334,-659704142,-1780583214,-818235175,-382915203,552708768,-1840681868,1923025402,-101337701,1228583426,1855535765,557624874,1147005802,596976770,-315458733,-90141691,-1965785900,-455628194,1262895911,-1587801921,1737569803,-1677450485,-1075603548,-1565326225,1782162382,-968905308,-1732136805,-1525971464,722331837,-1823531872,-1625445881,-390500366,1926045529,1136332540,442527771,-1645746063,433378511,-779098915,1384023869,1817520511,-1542691374,1386905723,1434599750,-2061542283,-849406343,-1449759366,-778927136,-1472139298,332216669,-698015320,-313747817,-2074988128,-293310044,-439628233,-78793369,1210844223,-464270894,2003643555,402401026,712613786,-2095887103,1678904607,1399305460,1319241335,1838266811,-1341933795,652011063,-234821532,-1289551960,-2004592849,-463521569,-1932263885,868260800,419185428,-1781106138,-1473939260,1966196002,-881400075,1352832293,2055740986,196786239,-1841984289,-1595754075,-490289560,1400076220,1547543366,1410346250,-1043319607,-1389780498,939077204,408815861,-1473140647,-1214876788,-974512574,2019586711,2016863875,1438466141,1041890894,-2007617199,769151325,2135313707,-1272893629,-1136714078,2007317939,2100765006,1886295301,2133963308,1792279651,1585801695,-35214746,-576870509,2123813419,227495594,2115742744,1963091347,-1201396798,916582591,1401482338,-1718321533,1830391961,-241778809,178945948,-801752554,-1730283919,-15533888,-225126668,1312519613,723087150,727370850,-1316377481,-955429075,-1980033451,1652601674,1324748882,-2048731690,-379026853,848590183,-621722390,-1063608150,-995676416,-972950956,1322159668,179797668,-311205637,2089294198,-371475294,369551159,-1117438864,-913760293,844466351,-800120215,-362009863,-257483801,1698420700,1696797477,-1502735582,-1440651406,-2012513070,-1131767885,-32651038,432394942,-1600261524,2076617495,490335138,-1470805981,-728758570,1929911269,-1703952595,-920619758,1266083445,1713012493,42079762,867044674); -/*FRC*/Random.twister.import_mti(226); void (makeScript(14)); -/*FRC*/count=160; tryItOut("for (var p in o1.g1) { try { Object.seal(v1); } catch(e0) { } try { h1.get = this.f1; } catch(e1) { } e2.add(f1); }"); -/*FRC*/Random.twister.import_mti(260); void (makeScript(14)); -/*FRC*/count=161; tryItOut("\"use strict\"; Object.prototype.watch.call(i1, \"toExponential\", f0);"); -/*FRC*/Random.twister.import_mti(276); void (makeScript(14)); -/*FRC*/count=162; tryItOut("\"use strict\"; o2.i0.next();"); -/*FRC*/Random.twister.import_mti(288); void (makeScript(14)); -/*FRC*/count=163; tryItOut("mathy3 = (function(x, y) { return ( - Math.fround((Math.fround(Math.cbrt((Math.fround(( + -0x100000000)) * Math.fround(Math.hypot(1, x))))) , ((((Math.acosh(x) <= (( + Math.min(( + y), x)) >>> 0)) | 0) ? x : y) / Math.fround(((( - Math.fround(mathy2(x, (y | 0)))) >>> 0) <= (Math.atan2(x, Math.fround(Math.atanh(x))) >>> 0))))))); }); "); -/*FRC*/Random.twister.import_mti(533); void (makeScript(14)); -/*FRC*/count=164; tryItOut("testMathyFunction(mathy5, [0x080000000, -0x100000000, Number.MIN_VALUE, -0x07fffffff, Number.MAX_VALUE, -0x080000001, 42, 1/0, -0x080000000, -0x0ffffffff, 0x100000000, 0x0ffffffff, -1/0, -0, -Number.MAX_VALUE, 0/0, 0, -Number.MIN_VALUE, 0x07fffffff, 1, 0x080000001, 0x100000001, Math.PI, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(565); void (makeScript(14)); -/*FRC*/count=165; tryItOut("for (var p in e2) { t1 = new Float64Array(a0); }"); -/*FRC*/Random.twister.import_mti(584); void (makeScript(14)); -/*FRC*/count=166; tryItOut("v1 = Object.prototype.isPrototypeOf.call(g2, e1);"); -/*FRC*/Random.twister.import_mti(599); void (makeScript(14)); -/*FRC*/count=167; tryItOut(""); -/*FRC*/Random.twister.import_mti(606); void (makeScript(14)); -/*FRC*/count=168; tryItOut("h0 = ({getOwnPropertyDescriptor: function(name) { selectforgc(o2);; var desc = Object.getOwnPropertyDescriptor(h1); desc.configurable = true; return desc; }, getPropertyDescriptor: function(name) { /*MXX1*/o0 = this.o0.g1.Set.prototype.keys;; var desc = Object.getPropertyDescriptor(h1); desc.configurable = true; return desc; }, defineProperty: function(name, desc) { v0.toString = (function() { try { /*ODP-3*/Object.defineProperty(i0, \"valueOf\", { configurable: (x % 28 == 6), enumerable: false, writable: true, value: o1 }); } catch(e0) { } try { a2.sort(f1); } catch(e1) { } this.o1.v0 = Object.prototype.isPrototypeOf.call(o2, f1); return e2; });; Object.defineProperty(h1, name, desc); }, getOwnPropertyNames: function() { m1.set(p2, i2);; return Object.getOwnPropertyNames(h1); }, delete: function(name) { i1 = new Iterator(i0, true);; return delete h1[name]; }, fix: function() { a2[v2] = \"\" ;; if (Object.isFrozen(h1)) { return Object.getOwnProperties(h1); } }, has: function(name) { /*MXX1*/o0.o2.o0.o2.o2.o2.o2 = g1.DataView.prototype.setUint8;; return name in h1; }, hasOwn: function(name) { e1.has(this.o1.b0);; return Object.prototype.hasOwnProperty.call(h1, name); }, get: function(receiver, name) { v1 = b1.byteLength;; return h1[name]; }, set: function(receiver, name, val) { ;; h1[name] = val; return true; }, iterate: function() { v0 = Object.prototype.isPrototypeOf.call(f2, h2);; return (function() { for (var name in h1) { yield name; } })(); }, enumerate: function() { for (var v of s0) { for (var p in m0) { o2.h2.keys = this.f2; } }; var result = []; for (var name in h1) { result.push(name); }; return result; }, keys: function() { return a2; return Object.keys(h1); } });"); -/*FRC*/Random.twister.import_mta(1732939129,-1401273507,1077053278,576562216,2023521298,290203120,463892784,-2067222909,-2009578365,1929965668,1023961526,-526816808,-1168402727,-1510662289,-2039611169,1936893860,-614243051,1017718528,-765798483,606531588,-1099276829,-1435398278,-2109199047,1933403647,1869368787,-1183270578,-345543509,1451985824,-1187541994,1913158507,1928002801,907058162,-413183160,613541768,-665774518,-1623212889,2112333174,-186776758,-1412183297,664282256,-1012268633,1968392664,1233070690,-1699944481,827479413,-840940479,-159765295,430201437,-511103775,-1539813491,-1959387857,-885651051,-841472860,-1942547544,-1998525197,-1830286741,1279058123,697281999,-2050552830,904908604,-1059426655,-1840591860,289283289,1244558364,-1441099056,-1078992538,2102144381,-1356742140,383963833,1614571170,1653714629,-284998014,-1766371451,857564810,-2077440102,780025362,1529168731,-1973618450,-642766364,-1041444793,1690844785,-1297760228,2056092386,-1327370171,-381248028,1286653573,-710332382,1310242086,-13876013,1196583473,-201285549,1414821087,-612378526,-1723136201,-195314595,-525987702,-1162031429,-80421520,2138174616,-27128528,-208872819,185369783,-986074364,37492428,-283721433,-1102904347,1383994129,-144353533,22824119,511809510,496953449,-134891851,647511561,1707241245,-1238082175,568942485,1254300920,-201730285,-1171813106,-32981169,-680769803,-55700744,748308505,-1225862140,1787448986,-1956055778,-817381733,2105291223,292144211,-1490554806,783771675,1854379591,1169770156,-1966456253,-1536063622,1792804935,-182683445,1960922448,-149944374,314477710,-35620656,-1636466937,30839365,1058528213,-596387405,794239012,-1817903515,1396843555,442933408,-1852077217,-2026274132,-2004321963,1017683247,1835729772,1285322018,1630051051,1989835693,198719038,620229220,-463603502,33432848,-2057173296,700650855,311112739,187989544,-1094310018,1364490462,-405841919,-1297911923,2091195444,95787603,-1903398486,-1294727648,708589534,-574599715,-907998066,1526401001,-1146252875,581862016,-1199823578,-2129233925,-1684872022,1579610966,-632444055,410085190,-316412887,751084915,1847085100,1601748168,1396127206,1043091565,-1424067287,806542470,-1188371319,227792441,-1332530044,-1152824241,-1576079446,-800972032,-1709483028,-1191079248,-1162528546,303789609,1859671736,1716334500,1525632746,-1507536083,1214470405,-113822591,511585473,671672014,1836944236,2018958609,-481592998,2099246585,-686604342,-1091454680,-1924875639,1891191009,578193438,-315879118,817462463,541882138,-1605034477,969251104,-1007396471,-1406054404,510890987,1811243105,-1849023548,166855291,1374938575,-368336024,-1043714487,1214213555,-275873473,-1878519539,1842842251,733010295,-77294707,1295604227,936357866,-847251575,-862240063,-1937812503,807219369,1378501443,-1830292528,277667745,-1963594546,-1780057863,-870994834,-1007234915,-1211907919,-76759624,-1107080297,1233994814,-1020300416,332117934,801994884,312774602,-1598902538,1963420233,-647447705,718551043,1497106358,-113946085,-823990521,-2058508651,-1732744111,1586677018,608081993,531931009,1232222461,-1480848922,-1274435994,-239782367,-430861010,473024657,-950040789,-1689306702,-2064454704,-24339979,1190968088,-1616554218,-413681430,-581545706,-2004975588,1571967713,1710276702,2061729631,-508896527,682778351,2118407911,-1577222510,65661502,694853198,1492392709,-1193527144,-665992688,2054819220,-313385948,-327783445,-890551932,1148748570,95337933,1868131299,-1001600872,1086512094,-1996443716,654291908,-583486383,1958907971,1577238676,-396723962,-1300092172,916582473,1638670383,2059636527,-2005389098,-1112950955,1894986457,1631480444,-1642888682,1414307097,298619953,-1906741199,-652582379,551575091,1322270838,1029575678,-562306047,-476135895,-398280754,-1668013904,516449891,-1058026682,-572697676,391879514,644263752,1382270051,1884542850,801030900,417131154,1047038048,-2002796214,942878858,1813564072,-1688802048,1214188798,1049131270,2056251254,-1933397254,1430042967,-1525479728,-2006609243,-590620667,427626850,-197321023,378960602,1439960482,1417903026,765569846,41611271,603008729,1051415255,-798461538,139278430,180426944,-2014984549,1053678272,950065567,33943823,107409263,-2050423481,1951362767,-1987103893,-616656115,-942012972,404985979,-859571714,-690035507,1012627192,279523145,539897383,-1546493574,-1054593229,-855798109,-1825538151,-636699612,1012446834,634702258,-1294763193,1910496946,1742014979,-754864826,2085491437,-1554333922,73768497,-1425840426,377228882,-1209472004,1154893549,485623570,-2025985927,814778998,639856024,-36822535,-854456658,-192601518,-1328156977,-219023433,871843801,-664577153,1816528616,342870868,-496766784,-286440659,1897012650,407445535,1832596650,1075328203,-1319494952,1228054592,503172375,-247463143,-1835217596,-834605503,1751522338,-1382796313,1507234804,-61636393,1339608762,-2058098341,-1891651216,1011844941,1095690416,421710005,-1951443183,1424598003,53839165,-493754803,-1453054818,-784011088,-1677851864,889849397,405043622,458535347,434054455,1083666786,-76570510,1435714169,-1994693664,1386521423,-202525302,999142705,-1729194498,1891468934,-201224227,-1902708119,1871578076,1489058470,-845122422,-2117958836,-1035597827,-806867030,-1106334233,1062375212,-882622810,1155092233,643524891,460714675,1877801851,-1703186005,-402972105,865274227,1604158556,-949765627,10217711,-900636979,1631954285,-1892677055,1584231652,1750123328,1461189458,-2077166775,-97541572,-1553216133,1350917559,-635089367,-881948274,-628504351,1945970453,1655852286,826662116,-779710424,-261018207,179483381,-187648968,881200981,-1495481495,-443215562,-1018454348,441999845,50331458,-516982191,-176790590,2045845308,-1894975407,-340765128,-562188985,1956962630,-823893360,1661985522,666823710,-591709776,-1349123174,1138953069,-1204050651,-168245849,-1788642729,2124165460,1510582238,622116804,1377773078,-322009862,-1563090815,-959853007,470541929,-785226506,1446948164,-731187798,-858304064,507119831,-1376423098,1859914365,-1559709383,-1625351809,-1951636314,792594281,-886737871,1699356149,-381086926,1414856552,-2070632005,-539997007,1001267239,-1566226318,-305096018,-1361382899,951587932,-682313113,1339235168,1820548663,-410914126,-2116049810,1900583264,-1858297584,1748099121,-579998950,528798936,2060974458,403685686,-1958582,2119487906,191466171,-465639480,2074587730,-443459556,-1069893017,-1189149298,2067642286,-1601905599,-313164947,328316616,-501447046,-1236662529,721735313,1864532295,219075614,-1347244514,2028354853,-114963712,-72298452,462191497,427945779,-690687818,2024583127,885926887,1341275318,1635387693,1150708163,1005645189,2144956732,1980314853,1043121809,1441662431,545211640,-982718803,-1037597305,-1219899772,1777836260,-1793829917,-82651003,1890036288,-722662331,1295199170,-2000271465,294854603,1130205833,1548469782,811652881,1194951726,-809968926,1105173101,-109544206,981467401,-1469589189,1095037755,1314961570,-606449173,1720975626,-891900953,-689707890); -/*FRC*/Random.twister.import_mti(195); void (makeScript(14)); -/*FRC*/count=169; tryItOut("mathy0 = (function(x, y) { return ((Math.trunc(( - (x >>> 0))) >>> ( + (Math.fround(x) | (( ~ (y | 0)) | 0)))) + (Math.max((((Math.fround(Math.fround(Math.round(y))) ? Math.fround(( ! Math.fround(Math.imul(( ~ x), ( + ( ~ (( ~ x) | 0))))))) : (x >>> 0)) | 0) | 0), (((-Number.MIN_VALUE ** (( + (Math.log10(x) | 0)) >>> 0)) && (Math.hypot(Math.PI, Math.pow(x, Math.hypot(Math.fround(x), (((y | 0) >= (x >>> 0)) | 0)))) | 0)) | 0)) | 0)); }); testMathyFunction(mathy0, [42, 0x100000001, 0, Number.MAX_VALUE, -1/0, -0x080000001, Number.MIN_VALUE, 1/0, -0x080000000, 0x080000001, -0, 0x080000000, -0x07fffffff, 0x0ffffffff, -Number.MAX_VALUE, -0x0ffffffff, -0x100000000, -Number.MIN_VALUE, 1, 0/0, Math.PI, 0x100000000, 0x100000001, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(529); void (makeScript(14)); -/*FRC*/count=170; tryItOut("v2 = new Number(-0);"); -/*FRC*/Random.twister.import_mti(540); void (makeScript(14)); -/*FRC*/count=171; tryItOut("v2 = g2.eval(\"((({/*toXFun*/valueOf: (function() { try { t0[3] = h2; } catch(e0) { } try { t1 = t2.subarray(16); } catch(e1) { } try { i0.next(); } catch(e2) { } v2 = t1.BYTES_PER_ELEMENT; return s2; }), set x(x, ...e) { \\\"use strict\\\"; return ((function too_much_recursion(gpvirz) { ; if (gpvirz > 0) { ; too_much_recursion(gpvirz - 1); ; } else { } })(54457)) } })))((4277), x)\");"); -/*FRC*/Random.twister.import_mta(745483887,1685904798,-1171409726,707932251,-1085343484,1225096821,-2019630964,1512667879,1226109508,950491459,-847080171,154631453,1064770874,1793744511,-1958173595,-2024913524,-2043164417,-597434911,1182577494,1683386094,-1143634800,-1455506455,-119594433,-1014652260,1554278508,1575033938,578250128,23464732,290229875,853607395,-716659784,1539945862,-2310109,1979586769,717549147,824908801,-1086527234,1138681040,1870894341,-107784004,1670081625,-1357856224,-1061723965,-1030480040,1567192242,1263632937,77491521,842147207,-31551188,-994588690,-406387290,2134062949,109902006,639067860,-2047871085,1980605274,-546585225,-250727541,1635406511,562762353,966320256,630600046,-1417559961,2055424692,118934037,705614571,-1772985778,272621182,-647941,374262362,148057197,423045563,492305484,609028822,1279978938,-612963831,-1621815844,-1960626491,-898772593,-1259263045,-567191029,2111657374,1260983856,367455135,1885395420,1958341877,257726931,-242652700,2123462286,1495745226,1346979787,2100998534,260603245,676063103,-1428504412,-1213468521,522723910,1325213352,-289958224,281014328,-700694415,-699634246,1972896819,140448549,599531547,863774691,-1193116997,-614896186,-294669918,1655809833,-620530503,1162368906,1079628137,1550791512,-1118241197,-343544596,-1006913116,2058168985,985126600,1562939455,1035207185,2004759030,-292573275,-534356710,2066238427,-1532835764,-1029564432,-1012697888,-10650401,1820730451,1753396685,1054295359,1298134280,67530489,940327254,1867636090,1682615935,-1770164061,662916154,-1644657327,1227691555,1380949339,-1447208356,2081695799,853642727,2039733471,-1526899290,-1985480213,1310013889,2016600433,2146026503,713843942,-1737526341,519450317,2127054797,-308898199,1768899880,-168162432,-1276028921,834112488,-1819434376,-1512514979,1293992404,438234060,1706355397,1889926489,1426915733,-1106389317,1966802081,2146212414,2095155847,-1124377844,-1792761464,251106239,533541353,1425141610,1770718056,1120335752,-31288087,1875480029,1724759236,3274988,-1189039755,-477487683,-679511058,911157606,-860031942,875570669,807040448,1355442271,-198498916,1824998820,-898630099,-1095019794,1558180737,-10683523,786302697,505947493,1931570023,158256263,2099632279,359263590,-179589413,-2073077418,1149241233,521046698,103531736,-717979425,47885050,1496799397,-1099398623,-1263484516,1928867364,-1144222667,468273396,406935738,269629305,-1601466686,-398247683,202770832,1765005243,1365428406,-951941260,-2026332805,-563700463,-1664218087,13802916,-2137182592,1822018684,1742472480,-1681690013,-1974785872,-1326917234,2059003530,-186217817,-1743238627,-683397927,1095911793,-1383234556,-1058864924,1896712586,889188222,2014008371,1493225940,493221226,-161406424,1831180038,1788566431,-1404809842,723824284,-1517325141,-1537756931,-1626845995,1606499148,-949019128,1971989612,326548003,-1666353041,1278151108,-158431290,1705463722,-917509216,-2070417043,1935557664,1866524427,-904819497,132815840,-1205530676,2051294423,-1342307762,1233380259,-876901459,-153080184,390097330,1748432564,533510883,-1214313095,819417393,-980138961,1261134959,1684935484,1671498678,359923414,-793153796,-2103054338,265386532,1706316415,-834045649,393105729,267964183,-748775661,-901294659,-1943779001,-2035491577,1372269409,-347909156,-1556318457,347942945,1964099763,1617623686,316933316,-1552324464,-1107080501,-43430831,285006076,1690948769,-1764274185,-1102039068,2036138560,408342482,-1569586840,-1828118238,1538821311,997303632,-1463255906,-1127661963,-252059134,-199217021,2030479853,-934013416,-918892852,-1706691174,-1197330020,-335094763,-552346513,1888722551,-449154579,524607415,-249279103,1798770124,-1100328454,-881078320,1197308932,-156734749,221638184,-837266431,207556339,-1867597548,1450901550,-262110329,1682364569,-1433952471,-403990107,-590348908,2128792124,1722699405,1797584235,807367825,324122505,-238316762,-580800863,2101940902,1463034936,-802450280,513346925,137371650,540585186,-879457678,1973188690,1739977689,776459040,786207949,-144435802,-323319348,270559511,263681269,-639755906,1280154179,-927609143,-153372868,-112397273,-1427388993,-475522121,1058107354,1787362899,-740683605,-1935337432,470075117,-7006204,-1106342076,-325981068,551943345,2093658386,-529472796,-468501699,1248591681,-826147738,1125985643,-924941233,319593197,150245141,-438966343,139072000,-1100725,-1752367080,-1844134648,1849804209,-1478757056,-1451562905,-568678751,352577089,-458317248,1518922979,-216184949,445559475,-315416027,-937021954,4505491,2054384069,2017654477,66737849,395077853,-2089405434,-1163921586,1040695367,19631520,-1095468778,-1935529143,-102013580,-51223432,130021460,1148387053,-1681544355,-1188540227,-1082092490,980356549,-146404488,152491654,-1700051894,-1717508319,592325090,594305228,-2068853032,1102322784,303821734,578674338,-860976096,581409142,1204592826,-362128283,327995340,1331387067,1893933282,1575827181,1661353223,-464452562,-1732976234,-53152257,1898541063,-84584627,1962511512,-622121759,1821699425,958678881,1146307783,1626244739,528664163,952829266,1409869147,-953165728,1457093593,-768167710,-654767173,795844600,648437412,1803706920,-1622521998,1421842137,-811861979,-231845791,-843933614,-1281673208,1649682978,-2016364862,-1436913671,-2088071264,-1851931839,2093625347,410496836,1990340284,-1051619661,-1470520198,1101155788,956123018,129872148,825809114,1043583396,-1796386386,2102787179,-517950038,-2028859249,-1883847586,-79123800,524842386,-1863956520,-1686871336,1940909035,1944828351,149961944,2089222115,1703600425,160643566,-873973042,-1226771752,-1723310906,-1087408690,936635377,-85925941,377036970,-481978198,-1427431841,-1512579402,2119600989,1986733168,-535501321,1084575884,-150865282,1447818590,699631537,1604142259,-102578771,2094004366,-104264642,-1976310772,584741468,-1116477396,-1710838463,-974567633,-1948230933,-719578007,-681822588,1989636124,-1294180331,-2144471468,1345749509,-237900285,-825101390,-408669381,1570673225,-417167752,-790881419,-1670580985,-689749567,1807418880,46179844,-1109849823,-653872607,-1076722789,1411398723,-453100622,1587819001,-1191554593,-539328077,-688224076,1605045632,-1988099791,1672043844,1400508733,-439535011,144643688,-876374434,20057779,-236365148,1937073698,202558614,1684304842,-1917625682,1452176535,1402106565,-1151067294,-1588517309,-139979581,-1995684892,585903631,17905580,-780401623,1027687601,1945657053,2077128873,1089303351,894450389,571205869,1978157076,-185196039,1583140148,1593180169,-2098522899,-1389857268,153455254,1590796783,1475939826,-1798263030,811322475,2077373395,-900511276,2068479225,-421259968,1123170222,1391507363,-1207108363,1273675688,-116758659,928762934,-185152248,-1350897648,-1727230491,593828944,1028707150,-1740405462,1391415833,1632123315,-946865878,1840747056,925270415,2141262610,211170324,-1640511825,-245479849,-1025131544,-1129346518,-1935330098,737076532,-110801073,-1585520039); -/*FRC*/Random.twister.import_mti(133); void (makeScript(14)); -/*FRC*/count=172; tryItOut("\"use strict\"; mathy4 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var i2 = 0;\n d0 = (-9.44473296573929e+21);\n return +((0.0009765625));\n }\n return f; })(this, {ff: (1 for (x in []))}, new ArrayBuffer(4096)); testMathyFunction(mathy4, [42, -Number.MAX_VALUE, -1/0, 0x080000001, Number.MAX_VALUE, 1/0, -Number.MIN_VALUE, 0x100000000, -0x080000000, -0x080000001, Number.MIN_VALUE, -0x07fffffff, -0x0ffffffff, 0/0, 0x080000000, 1, 0x0ffffffff, Math.PI, 0, 0x07fffffff, -0x100000000, 0x100000001, -0, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(221); void (makeScript(14)); -/*FRC*/count=173; tryItOut("mathy0 = (function(x, y) { return Math.fround(Math.atan2(Math.fround(Math.log2(( - (( ! (( + (x | 0)) | 0)) >>> 0)))), (Math.pow((((Math.sin((Math.max((Number.MAX_VALUE | 0), ( + y)) | 0)) | 0) << Math.fround(( ! y))) | 0), ((Math.tanh((( + x) | 0)) | 0) | 0)) | 0))); }); testMathyFunction(mathy0, [/0/, '', -0, NaN, ({valueOf:function(){return 0;}}), (new Boolean(true)), ({valueOf:function(){return '0';}}), true, [0], 1, 0.1, ({toString:function(){return '0';}}), objectEmulatingUndefined(), 0, (function(){return 0;}), false, '\\0', (new Boolean(false)), (new Number(0)), undefined, null, [], (new String('')), '0', '/0/', (new Number(-0))]); "); -/*FRC*/Random.twister.import_mti(402); void (makeScript(14)); -/*FRC*/count=174; tryItOut("\"use strict\"; testMathyFunction(mathy4, [1, 0x0ffffffff, Number.MIN_VALUE, Math.PI, 0x080000001, -0x080000000, Number.MAX_VALUE, 0x100000001, 0/0, -1/0, 0x07fffffff, 42, 0x100000001, -Number.MIN_VALUE, -0x0ffffffff, 0x100000000, -0x080000001, -0x07fffffff, -0x100000000, 1/0, 0x080000000, -Number.MAX_VALUE, 0, -0]); "); -/*FRC*/Random.twister.import_mti(434); void (makeScript(14)); -/*FRC*/count=175; tryItOut("\"use strict\"; m1.has(o0);"); -/*FRC*/Random.twister.import_mti(447); void (makeScript(14)); -/*FRC*/count=176; tryItOut("\"use strict\"; /*vLoop*/for (cjecnn = 0; cjecnn < 0; ++cjecnn) { let c = cjecnn; for (var p in t1) { this.i1 = new Iterator(g2, true); } } "); -/*FRC*/Random.twister.import_mti(488); void (makeScript(14)); -/*FRC*/count=177; tryItOut("mathy1 = (function(x, y) { return ((Math.atan((Math.fround(x) == Math.atan2(((( + (0x100000000 >>> 0)) | 0) >>> 0), Math.fround(y)))) >> (( ~ Math.log1p(( + x))) ? ((Math.min(( + Math.cosh(( + (x + ( + x))))), x) >>> 0) >>> 0) : (Math.hypot(( + ((( + mathy0(0x07fffffff, (y >>> 0))) >>> 0) == ( + x))), y) >>> 0))) ? ( + (Math.imul((Math.pow((Math.fround(Math.sign(Math.fround(( + ( + ( + Math.exp(x))))))) >>> 0), x) >>> 0), ((( - Math.asinh(y)) | 0) === Math.PI)) >>> 0)) : ( + Math.min(Math.min((mathy0(x, 42) ** ((((Math.cos((( ~ x) >>> 0)) | 0) | 0) >= ( + y)) | 0)), (mathy0((Math.fround(Math.atanh(Math.fround(-0x080000000))) >>> 0), y) >>> 0)), mathy0(Math.fround(-0), ( ~ x))))); }); testMathyFunction(mathy1, /*MARR*/[new Boolean(false), new Boolean(false), (void 0), new Boolean(false), (void 0), (void 0), new Boolean(false), (void 0), new Boolean(false), new Boolean(false), (void 0), new Boolean(false), (void 0), new Boolean(false), new Boolean(false), (void 0), new Boolean(false), (void 0), (void 0), new Boolean(false), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), new Boolean(false), new Boolean(false), (void 0), (void 0), (void 0), new Boolean(false), new Boolean(false), (void 0), (void 0), new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), (void 0), new Boolean(false), new Boolean(false), new Boolean(false), (void 0), (void 0), (void 0), (void 0), (void 0), new Boolean(false), (void 0), (void 0), (void 0), (void 0), (void 0), new Boolean(false), new Boolean(false), (void 0), new Boolean(false), new Boolean(false), (void 0), (void 0), new Boolean(false), (void 0), (void 0), new Boolean(false), new Boolean(false), new Boolean(false)]); "); -/*FRC*/Random.twister.import_mta(-1780114545,-1267977722,302714451,178559683,421834149,1497865381,117525031,1040501649,1751662171,2012207019,-573066814,1707665240,-734041811,-1621707692,1412123163,1499816102,1302767969,1564056044,855685847,-1554072738,1094043234,478954676,-1657752266,1777192034,1786933444,-1963058795,-1181002445,774792144,-1172882197,-572368220,1693584453,1011717252,2052545430,-1356534256,-1561240045,-1691239769,542862856,-1127052805,515142396,610503379,892336230,-1096835068,-1960815671,2100852117,-201643152,-341530979,-570649359,1544123793,-2046105639,-346594491,440786578,1919880284,-369171417,-284768370,-1578238644,-634798331,-659820933,-1377378993,-383533212,55490083,704650725,-658459209,-1167164102,-866472436,1580820808,-741328228,1735422151,-2141855738,547686149,36397467,-1054035237,-1053817341,-536292086,-342364529,120126931,771665100,1531551103,1449408481,1090169506,1737350811,35953356,1038296156,-447091796,-111025571,185459423,-553340422,3797880,2029324883,497777087,-1893743970,-1435498131,-476483070,1812854474,-1837141795,1298894026,-1260602485,943122118,-1480749952,-752117052,-1044808948,416124770,-348877282,-509491538,-312720901,-1994024256,1318172492,-615758789,-293633001,1467946629,-2091196046,-1740311538,-1352828735,-848166650,760205737,-803919680,531322767,-1842019869,-45150573,-147216308,1892895657,1844768165,-2013470532,797862462,494817439,1855888552,-1734867002,-337486212,-998474516,1379420890,927942520,1133139311,-1387290513,1310170058,-883288529,1094688417,435259381,303824602,66528280,1713708148,860866684,1468747081,1228947303,2106044,1352953177,967682999,-996282606,-1235203542,-54359493,415811910,2147148029,-1433095704,-1054919359,848141323,-121068864,389655092,-1418910937,-335049356,-1621421732,-782515003,1785695352,-1734423348,-2091033929,93348750,1611748323,-1603780416,1114073777,-176472672,-276300263,1536310997,717958962,1223940369,419439105,1696031330,935267944,-573512842,-1110850992,59725259,-1492595449,1066431000,237476563,1944101547,-27881268,-1474245322,1592756002,2032958558,1404449289,937853904,1179776980,-275020551,-1191279069,-615787298,-1256536737,25954456,-1600240403,846619243,-29589568,-305229378,1791708344,-420107675,1098795476,1212596509,-245510127,-96776098,-1331557185,-158522840,877538906,1197751736,-300440211,748654952,-1521357409,1728623488,-515927496,-704535332,750558665,-877701769,-55166637,660817646,-1836564557,1251815644,866557357,-638639604,-515573678,1715172424,2057226905,-58633241,-1190395491,-1590659815,-475431503,-2021511018,-2032007235,1333857947,1095811426,605777888,-1535459413,-352297408,-1698522904,-1907473460,-888048704,96036650,-1397117464,-2060893205,-249147171,1977944140,1125405652,1711868152,1167225172,253470286,1461182629,1226707962,385859516,-1563515709,-1139874191,-450984909,-1708336585,1424717286,715444517,1253856844,48597159,118151015,142933059,-1954341952,2041714298,-492922697,-1896633006,13827919,1564557068,946933045,-788174126,-1453285085,1994986183,-1041432420,-2004141004,-1610313148,-370675797,-890791873,80597434,708082434,-1584968614,-1896739148,-607523399,-556383659,-1420557785,-227211141,-1711728252,-368156579,1123100292,-1117603221,-121666150,1177838307,180979308,812758029,-2128347852,160359616,-1768073816,-1242281496,-399274919,-780318380,1655498333,-251299008,-377825432,-97822009,-1054742423,-901596613,322433281,-49779346,-761676410,950388073,2122980332,835208117,-194974952,-1327140148,-2550689,-1027841198,341691703,-1080482378,1708624062,1812425216,1341910340,-944539378,143692204,-547517936,289051652,1540842846,-826820562,1190982500,2025722605,387163144,-1185474179,-1632696072,-23794093,-1998477805,-359979838,-322096414,-1646873809,1350246088,-2007490269,-1962033672,-210144231,241535453,643423637,-1593528606,988304589,1909238085,-314284803,1460705546,1537434150,-237747906,-44792130,-1088870097,-667546191,1675286988,1157926580,-1332884086,1034315797,-1067160339,1109662891,310706753,960784710,127789404,1496609370,1161620630,2056098930,1873593107,-1023182194,-1658573123,1254756555,-866011774,-354870542,841868537,-443619216,-1663484071,-781117773,-1693099777,439125468,1277637297,1587168594,-1460653228,-1788985878,-1642564893,1153788465,833809479,693957309,-1688907179,117874741,1667653155,-163890442,-1830180334,637091380,1406379806,-1729981221,-873262880,-464696896,-459784117,-1094861396,-1500667747,-1246073646,958846354,-2059002371,-284835442,-1231150691,99114824,698099160,491770186,-675234739,144305354,1535337703,-686983739,-674126186,1535073141,819287733,-870251629,2023188061,251251118,-236072148,1187262724,-255739790,1739006808,-1480694172,-882641053,1112798386,464489284,-1499724006,1000400705,-1307649115,-1359709563,-581521447,99951255,1158898488,612701022,-1415822161,-1592509223,-186989244,1418993770,1315554411,-14071236,180934520,-201187036,1156506589,1291979989,-1614298310,-1843822517,-203504378,1263014650,-1880561486,-1600078428,113721367,-725330035,947071696,1161225003,474460676,-823923658,331584904,1016500978,437348261,1255575087,290186104,-1702394604,-57815831,1657220434,-696294701,-1922963494,510946114,-847948012,-1659016034,-19905836,169624723,1609487963,1005326118,288999474,322716773,450482128,388177385,1182411317,-1019338387,382904181,-1730657659,-242083998,-1359645855,-2023755473,1556018101,-838858742,876237568,920285920,1231195846,444196042,403914677,49435796,1814123818,1226984623,941563951,-920072323,2104928795,316999109,805449433,-1665180738,1237312521,-703299897,-980082960,801174298,197743119,-315722916,-283933352,1606265046,1720735073,-32442691,1276332947,2142319235,-1779772928,-1695101326,1040725899,-887949601,204313900,2042934460,341866575,-1729286692,2108989404,1642888387,-1113536758,937815986,-1401473335,-386225681,-1995386889,-1389724065,-2146406278,2081755723,621714751,310821920,651413357,849827458,-1578327687,1752975631,2104421819,-1836104020,-910805836,-546677710,1453374060,515523162,1193446199,-867674269,869981751,-1016920213,1306539401,269093822,1835481346,-937436917,842567873,-831430466,742728942,591759837,-1383215747,1271013406,-1340538014,331568823,2026250952,614443322,-277109158,1310807570,588221410,-1362841610,-919799347,1145504937,1754248090,-236809678,-1929061453,-1052029444,146547850,-736733439,298133343,660232572,-1200846149,261676611,328644856,-1814182402,-245572888,1289892981,2024881064,2026017280,-952806073,-59078672,858611775,-1247073092,-91207449,-514343800,2108384475,-1892165219,-1612655627,262162780,28191197,-856820646,1146111466,-915722997,1543600215,-299124227,-381152920,242521169,23064153,-2064125017,749327447,1417664534,-18872533,-1079966019,394974378,1692476374,-11711652,1087425479,-810877749,1517093782,1033055954,-651957394,855244371,616651936,364746555,1956694766,-1388764261,598877246,-977210218,2034566959,-1434333932,-1172665131,-1563764180,-347418826,53983205,2081271073,-354637686); -/*FRC*/Random.twister.import_mti(527); void (makeScript(14)); -/*FRC*/count=178; tryItOut("\"use strict\"; let lntqwn, x = ({ get anchor(window, x, ...x)\"use asm\"; var NaN = stdlib.NaN;\n var Int8ArrayView = new stdlib.Int8Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var i2 = 0;\n var d3 = 17179869185.0;\n var i4 = 0;\n var i5 = 0;\n i5 = (((((((i5)+((0x0) <= (0xffffffff)))>>>(((0x6951beb5) <= (0x65a9f590))*0x5632d)))) ^ (-0x6571c*(i5))) > (((i4)+(0x2cfe10eb)+(((NaN)))) << (((((0xffffffff))>>>((0xffffffff))) > (timeout(1800)))+(i1)+((~~((0xfcd68839) ? (-32769.0) : (-274877906944.0))) == (((0xde8e173c)) << ((0xf9c6f58e)))))));\n {\n (Int8ArrayView[2]) = ((0xf8a23311));\n }\n return ((((((+((-0xfffff*((void version(170)))) >> (((((0xfbf33c5a))>>>((-0x8000000))))+(0xcbd28a91)+(-0x6b96677)))))))-(i1)))|0;\n }\n return f; }), x = this.__defineSetter__(\"a\", a => \u3056 instanceof y), x, d = /x/g , w, get, wbpwvf;for (var v of h2) { try { Array.prototype.push.call(a1, (4277), f1); } catch(e0) { } s2 += s0; }"); -/*FRC*/Random.twister.import_mta(-546306818,1057551992,717544483,-1871529659,-1674093739,-2016951162,1372219738,-1515896008,-109297683,-102322908,-1523198662,-395813060,2138967199,1060902465,1411765774,-1323160127,-546234406,-968041296,-512825891,121487465,-1443347394,-973361672,916787843,787395366,988527375,-26870521,-451286451,720852015,-1280867701,-293301142,1530243450,430882453,-1139919961,1768170255,541763784,79271790,-922210231,-1334611134,-2114870578,-292168425,1537291231,-1852140050,2018724143,-1411115533,520365719,-1128339363,2028266149,984448663,-362528406,-1712932668,21277950,-389996057,1808060867,-1642786160,-404751659,-909388528,-706037283,1044861341,-907802442,378485561,1239754477,1072698319,-1336789547,-495103106,933000716,667279272,-1657299811,931819913,-1845410687,-428851223,-1032012552,1631429303,-64515,-1069219354,31214479,-220834731,1896122946,917500452,840310039,-260023804,-1341857457,-1242364679,-1190743484,311314874,465046525,1992723292,-334447824,-1918572342,530374394,-826089219,502131755,1059370954,-1473763170,-1348663016,-32487679,1325299366,601680025,-181758244,694376847,-1703757450,-267429377,1594888269,-462437843,-1447248324,-2007277826,-351061484,-2002311243,212323616,1304312618,865290372,1531764415,-61878543,-240685184,-484941121,-621769164,-371817326,-204517415,-479069702,-1663726889,-836846898,-1101088940,1612896941,1002483289,-541726789,-2057516012,-656715423,-500281844,352925478,1051278979,-1437901240,-1451448443,1437375335,491330225,-1846856064,-392257890,-1685931583,-934435144,-327626232,1325882962,-1401465823,-91610021,-866630083,-2105518012,1186816623,1873723904,1262104235,-1978741568,-2072265304,-1798483872,-616875958,-708702575,-485755129,-1846961123,6223108,1017586222,1707118605,929802854,-717554809,-1706270618,1114517620,-72771994,-334717391,1613553891,1416832201,-1867205091,-882963230,1674548320,898294345,500806419,1768360790,-2075294080,366078029,-1548546673,561033208,1299339728,1259528132,2077232308,321523065,-425048546,-667257974,-132244191,-1469390485,1549444014,-1992486253,1245962556,-89850528,1585684273,569551678,1519853627,1644536627,-1037304915,-1943277546,-854075581,156806369,1662994359,-1731399390,-1674725580,-1543048772,1642121907,970728438,-1928360832,694317113,1069134251,-991455319,1303233415,1196637450,1364076853,379519859,1141553883,703158870,218949582,-1306314496,-38862744,-1742846268,-219268275,655452569,1031113885,1190968400,1159400095,1437767209,-635195075,-922274063,109907903,1275254298,-960952332,-1247991950,33597069,-1666114379,-445561479,-737350735,-1327834636,-1908740955,217197452,608847482,-389804212,-1101324789,-1670507324,-404134225,-30111288,-1528685131,-559444240,785863208,-1868037077,-327836762,-460987366,-421316870,-1245806364,-1921561149,-830180826,-1093996483,-371101503,-781432375,712712387,-1888726850,-1498575774,-1762022995,1996415206,-1044876778,-2065403797,-1177567673,364718130,-2012392372,1136673223,275382065,-1630278460,79795339,-971544450,-1776692335,1944497234,1487260001,-274625559,1325821877,1363521367,-2069914011,2026608202,-8487701,-1994055959,1178446756,472737764,-1649983434,1387766620,133025335,-2059970094,971323692,1598014175,1314776412,1792080372,-1275615421,982831353,828530444,-487805468,1935344748,747337084,-942819223,-627374214,-88088533,237960216,-84016808,360761603,467803713,970802445,-34232755,574954506,1333837045,1608723687,-145993860,-809150478,837316682,-1883016843,-512488670,-194350262,2061908564,-1511989992,-203675157,-11588459,698313722,-381741473,1043615916,2070740764,-2021200490,-419413222,-738462290,1772464817,1084395819,1350381429,585796491,533824791,-1084695165,-1185753157,957850107,-587649955,-29505649,1022415708,-526735151,-1853657746,137946582,-752401833,-2055820658,1986760932,-517654287,660928518,2065590857,1182533171,-1740176548,-828356375,-1539331512,-1330316911,2027590428,-1791923030,1244512959,-46685983,-1659229487,520148404,1528088741,-317486676,-1360851076,-1226216725,-1431153877,2033623626,1071082746,-1397883719,1178619848,-1174207354,534184249,269839026,1765246099,-652486312,982804216,-23121403,1441036087,-1223861783,-1154687328,103574597,890627399,-1422483711,-2135602742,-1852561729,63342399,409072320,272128737,-1913111419,-1476052005,-1085574968,-1613744728,-299407620,-751258257,278048622,-767539735,2037736579,97872019,643137577,2079336167,-1811819980,-1451100943,1868026912,1095424474,-221465225,-204511673,-678016932,-515431893,901692692,1138078069,-101043907,1067252433,-1478291499,1411664931,-1278041919,212402244,688454382,-482176328,1820201314,1295975915,-1034808074,1038190515,429029127,692367767,1910149121,1049800899,-318633393,-1061154079,437694316,-1480096568,415444015,1381972649,1403328143,-1173165273,458592874,-1622342353,-1515920719,-163897576,-1098189557,669504434,-110137376,1859816491,1408985295,2114693705,-761881753,-1299885701,-1111435107,766210194,-504290233,-1756745168,551886272,1831195215,-1667781500,-160329338,160105281,1638953079,-953880589,570227108,98770142,-655208819,563946623,-1100787387,-1810567927,-399341581,860011802,-1044820131,1007545619,1245894753,1802531803,-830561082,-254433212,-486132306,1005581369,1221284410,-1189864922,-700749079,-1102987067,-1648041021,2129438093,1588609503,1584699027,1742693249,403954782,-1236436585,1891170642,860240009,641433804,226174150,-713983682,-1111444206,-1303843122,2076316291,1421434131,-2053285343,-1881205550,-1473986886,218788996,-27486554,-136701213,246013689,-2050477256,-934754911,1808699722,-1042013202,980370969,-1203637660,-739608979,1741854457,-216638263,387269153,1430185604,791008616,-1187201358,-1157804422,-1756223178,533513317,-1042193107,968266338,2146694074,1675466881,-580556380,1722183450,-852629331,-1821745593,800210057,-1189193155,-60280873,-1040281260,441282381,352749706,-1162356714,-382941726,1903296280,482585363,-1853666008,546238028,1946895918,-814512046,-398492937,1453625265,-1818798810,-1603241493,1522019708,-2137108392,1542323814,1262938148,-1174149744,492433010,203719664,-146134710,523040635,1412975109,-31414253,1549029187,-777748511,1873426219,1547019215,205830846,1487802522,-2137770767,512334575,228479370,-1998254418,-566068046,680551434,-879002714,61017014,-941891113,-723685092,-1452137353,-676185904,-1283267415,-1054295861,-983036997,818879361,885642424,-31416373,-1732716083,-1853071584,-951145962,-594426052,1338856308,1149374152,-1454365270,-255862589,-2096438503,1568942609,97862634,-1084990455,-1648863256,1228803534,679098106,2085259790,1055295204,-1509373749,-1965357420,610823485,129901276,-388035123,-1106770285,496208935,120136623,-1556930293,1709996809,-1699205693,-1657621022,492072426,-1057726524,2127597330,-1723461910,-1089213340,1760883587,-1122285179,1968665355,250727816,-1586902734,1752265773,-1389633896,201740010,-730397813,1554814077,1095482737,-257933406,-1663084597,278236697,-498043236,714427377,-509299281,1897045980,-933645713,1948552607,-1653295352); -/*FRC*/Random.twister.import_mti(487); void (makeScript(14)); -/*FRC*/count=179; tryItOut("testMathyFunction(mathy3, /*MARR*/[[1], [1], function(){}, new Number(1.5), new Number(1.5), false, new Number(1.5), function(){}, false, function(){}, new Number(1.5), function(){}, new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), false, false, new Number(1.5), [1], false, false, new Number(1.5), [1], new Number(1.5), [1], new Number(1.5), false, new Number(1.5), new Number(1.5), false, new Number(1.5), new Number(1.5), new Number(1.5), [1], function(){}, new Number(1.5), function(){}, function(){}, false, function(){}, function(){}, [1], [1], new Number(1.5), function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, [1], [1], new Number(1.5), new Number(1.5), new Number(1.5), [1], [1], [1], false, [1], false, function(){}, new Number(1.5), function(){}, [1], false, [1], false, new Number(1.5), [1], new Number(1.5), false, [1], function(){}, false, function(){}, function(){}, [1], new Number(1.5), function(){}, false, false, function(){}, false, false, new Number(1.5), false, new Number(1.5), new Number(1.5), new Number(1.5), [1], new Number(1.5), function(){}, function(){}, function(){}, [1], [1], function(){}, false, new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), function(){}, [1], false, false, false, false, false, false, false, [1], new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), function(){}, [1], new Number(1.5), new Number(1.5), [1], false, function(){}, [1], false, new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), new Number(1.5), [1], function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, false, function(){}, new Number(1.5), [1], new Number(1.5), function(){}, [1], function(){}, false, new Number(1.5), [1], function(){}, new Number(1.5), function(){}, new Number(1.5), function(){}, new Number(1.5), function(){}, [1], new Number(1.5), [1], false, new Number(1.5), false, function(){}, new Number(1.5)]); "); -/*FRC*/Random.twister.import_mta(-1404363397,1543280274,1886834262,-491937695,3560246,-1860237936,760109901,1112908028,685185713,-515356068,2023567322,-809546626,1708403015,1181547109,-861494316,-1377133797,1590159851,-265439946,-204283524,1697034782,1550804543,794309585,-675853454,-1637105100,33409684,-213423658,-1641275295,-746690795,-850353902,1993295575,177400506,581651389,461487680,-1364221585,633018373,1155778331,920860042,319011240,-1874201571,642691671,-1169679476,1491193045,-1588475212,930842579,270399169,-979379123,-377758245,-1448768463,-1165832732,1227445566,-858238885,734934989,787902700,-284929685,-1139301371,-765409202,2018003284,-1327044270,981314224,-1900503373,1196029541,-1121171674,998011358,817776861,-576959726,1732695765,567000501,-1410865498,-1560543983,-668318630,1068305261,414642660,-35232976,-1492504427,-19670230,653710258,2089327251,-1743756790,-1911729003,-1313720022,-256439766,2058934766,1144782875,1101384735,-2036076356,-2076134570,1024485094,460796526,1005886080,1478578712,-1212750497,421421259,-1450044886,299534780,1775691178,221181867,-220361009,-1502114478,-857899179,-614442439,1321290397,2027235236,856476135,-1220807754,1654447915,-2006596223,1769354232,-1612471513,-1556813256,603780790,-1193045054,-1187851539,-785247262,311145632,389470920,1032486551,387879911,441425177,-194706656,1889363747,1342670772,2021705764,1999426134,1491274055,-530345755,-878641392,-1549246863,-147992442,166069303,1547021877,-749726944,-475563095,-947514606,-1670367816,-2106760306,-139360646,-699658001,1027310165,263015063,-1080009580,-1268614171,-79443534,-418386022,1005839088,1272942272,439062811,369464529,-1270480861,835310438,575522934,-2027455369,-1916150498,1282129980,1191018893,729599016,87838684,-1106535274,-977060195,-1082825592,356822841,613778529,-356660456,1961542508,1167039181,-857890298,-1504316704,810493266,1456263581,-237269488,854186177,-416706495,1995549139,-939487695,-1221233720,-490224140,-512114330,-548346601,2010590663,-984802193,364406412,1312236403,866745286,-1740408196,-629822313,-1595266728,-1082690935,948134757,-938890548,-1762859102,504726978,-858849633,-605342141,-635779981,1079516873,-1301381630,1401247677,1428839281,1254880397,2030201586,-1673532541,1351302433,-1686108704,2072978639,-2129732082,-1158705041,247220257,-88882459,102147127,1638129184,142065263,-1200073294,380040217,-517669382,-327556205,519505816,-618732820,1647698777,1260718642,789490688,-1534269864,534469947,-254051087,-945430878,1380850726,-1835589162,-1406374394,170166669,1207635736,-1460513899,672899756,1018717932,1179600624,-2093341011,422337771,-2072994010,1725960403,196364756,126315326,80147067,176680511,285692785,1576669470,-607103288,746920934,-2091110837,-1458724594,-1164598240,992829228,-382338288,978273229,1876252175,-842470870,-185515639,-847583664,17433372,-1238380191,1444118492,-773299632,-414964671,1365191257,-1431762103,-581728199,-706770852,965395432,-932461774,-1287503838,-196416704,-1011135067,-306472774,260685727,-907018026,-1581805131,1591255968,-1793190146,252838555,1729688143,708280556,-1026628695,622696406,1202561346,1979319983,-1098118932,-1903012648,-824239900,-1748493316,253089354,239861197,-2096419130,-1516410720,168437548,1226033899,-874909268,-576144834,1283866120,1336977004,-437484771,-447396618,-328868045,-1940959717,2013294953,16274284,-1343138513,-1740751593,-898515905,-1548335692,-370147476,-381288177,1851654735,167959679,1040791998,1020711221,-1806459344,1688606588,-608223117,1337493395,-1771855504,121338446,-1979671855,450696704,-636341337,2015851371,-2079555539,-1267265567,1139517866,772438088,1513950465,1573159975,-1956605537,-1118419066,-2072449258,1361944750,1021621893,555753782,565675343,-603991604,330300364,1632084977,-1009362000,279510602,-2105511967,-1240714917,-1392482034,833224505,-381286580,1213220925,892849975,217067181,1520382433,-2069980764,-792743175,-1889096464,-1344013761,2132945821,-1792959833,-1604561096,-879099491,-1872480385,-1345633787,-62075436,1222139281,-11529636,-1620254259,559068729,-565795402,-1867976509,589342267,-487952408,304435768,146359030,1703015345,1717931424,-1849620419,-1716923545,-1701418098,-199449402,-536121114,-89769162,-1961392873,484262065,-744526175,-1946702657,1960408140,1255429384,-921161752,894948597,-147049665,-1519633134,-1054374145,1902104462,-20401241,-511755935,-958575844,1805498439,1206177602,1986641264,1370842228,-771302595,-1931299729,-1621456871,-1830825797,265755565,1194487221,666832081,1437192738,-2066892023,1168964816,1408034478,1521704452,34091674,-293834035,1709350589,-2117917917,2022637967,-1388124103,1168327384,923344765,-1739297412,1665616743,579047404,-1760455739,1404820653,1728534730,-475891146,-437231383,-825609791,883467207,177330635,-1689125722,-526546324,-1111298411,-755157033,-2041043041,-522600725,1246152285,-1608793652,-773840052,-935483891,2140178723,1081298000,1221910278,-1478690165,1317374328,1954855700,1820210459,807256817,-222061185,224161468,-1522427363,-1608187869,-984330035,-415265857,1532035894,706049659,-651800618,-1427440578,-246215400,-1848658467,-71950150,-93939169,797618079,1041436296,-65385724,392366596,-817167593,602063395,407699304,-124589164,-684784692,-1978609632,1034859729,-1697281066,896456157,65708049,-1231271409,-1190964424,-1855354951,-1159401642,2093520489,-881493943,-565576426,-1818575655,1479439483,1388734719,-448306806,1244561311,-1599361496,88962308,-332648181,-495074454,926561778,-405365685,-896542034,1315869229,-2119326747,-481731502,696552297,329860781,957188927,1263954454,-27575013,1201407793,630026713,1888098555,917102517,-1615838060,1857323853,-1857850449,-872282906,-497597987,-1318343419,1715037307,-1183142098,2085020103,-1311393468,1404481850,1800193595,-1886536979,-1372623393,-1423525626,159825223,1174764109,1391151719,-1854217748,-1645364358,2064431717,-2071009137,675743311,989720699,-2008510202,1965633715,942361400,-1434587353,551514950,-2078664783,1846618723,1744053068,464145836,567747581,-620795639,1655985796,-535145258,-1725543183,628569261,-1591501160,2099383727,-1425565393,886020333,-818605485,-2110857870,-1742731348,-626457843,-129628704,1559373252,1505100656,-465457210,-383879805,-1581952315,284960117,-2046691663,1263442360,-335140949,-1339634268,-748275385,-1730457781,946532018,-775437483,-1729854019,269799009,2018817335,2037371049,-1964944825,639151011,1389454989,783362505,1312236340,1707722010,137524138,2024540455,-1391895606,-109005498,-604130989,-993832481,-542696736,-1371442568,-1330118281,1983912302,230022875,879531037,-1665929053,-1942650880,407508512,1198097935,-1178826957,1786466226,-103030941,-1662131000,723036480,684702549,-1313134625,-423521042,-1774883589,-1416277260,226081272,2099457835,1756662861,463840885,-1020556744,1724360310,1649187584,215446141,2049646322,-1039585772,1318149464,-1657003325,373333445,-1608664995,-807368471,758983750,1862770964,320141225,-88037718,-1787606176,1594834928,489416031); -/*FRC*/Random.twister.import_mti(193); void (makeScript(14)); -/*FRC*/count=180; tryItOut("var xrleeg = new ArrayBuffer(6); var xrleeg_0 = new Int16Array(xrleeg); xrleeg_0[0] = 12; var xrleeg_1 = new Float64Array(xrleeg); var xrleeg_2 = new Uint8ClampedArray(xrleeg); xrleeg_2[0] = -22; var xrleeg_3 = new Int32Array(xrleeg); print(xrleeg_3[0]); /*hhh*/function qktuch(){v2 = evalcx(\"/* no regression tests found */\", g0);}/*iii*//*MXX3*/g2.Math.sin = g2.Math.sin;o0.b1.valueOf = (function() { for (var j=0;j<8;++j) { f1(j%3==1); } });print(xrleeg_2);;yield;"); -/*FRC*/Random.twister.import_mti(336); void (makeScript(14)); -/*FRC*/count=181; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(345); void (makeScript(14)); -/*FRC*/count=182; tryItOut("v1 = t0.length;"); -/*FRC*/Random.twister.import_mti(358); void (makeScript(14)); -/*FRC*/count=183; tryItOut("{ void 0; void gc(this); } function f0(e2) \"use asm\"; function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var i2 = 0;\n var d3 = 18014398509481984.0;\n var d4 = -0.5;\n var i5 = 0;\n return +((-70368744177665.0));\n }\n return f;"); -/*FRC*/Random.twister.import_mti(426); void (makeScript(14)); -/*FRC*/count=184; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return (mathy0(Math.min((Math.max(( + Math.fround(Math.sqrt(Math.fround((( + x) ? ( + (Math.asinh((y | 0)) | 0)) : ( + x)))))), ( + Math.tan(x))) | 0), (Math.log1p((Math.pow(y, x) >>> 0)) | 0)), mathy0((((( + ( ~ ( + ((Math.imul(-0x07fffffff, ( ~ x)) << Math.atan2(Number.MAX_VALUE, 0x100000000)) | 0)))) | 0) >= (0x100000001 | 0)) | 0), Math.fround(Math.tanh(Math.tanh((y | 0)))))) >>> 0); }); testMathyFunction(mathy1, [Number.MAX_VALUE, 1/0, 0x080000000, 42, 0x080000001, -0x0ffffffff, 0x100000000, Number.MIN_VALUE, -0x100000000, -0x07fffffff, -0, 0x100000001, -1/0, 0, 0/0, -Number.MIN_VALUE, -Number.MAX_VALUE, 1, Math.PI, 0x0ffffffff, -0x080000001, 0x07fffffff, 0x100000001, -0x080000000]); "); -/*FRC*/Random.twister.import_mta(-518193370,-1486753998,981577812,1338782262,1337847677,-401567320,1954742876,162432654,1963514366,799174979,2104293435,-370501914,1413660448,1135726423,1312743025,-1897642587,-1789644126,1011495526,1167738482,795569852,-303832496,156772949,-668699937,323303911,1587866657,901569241,357032892,-1469947576,-691556237,265858198,319613351,-312650420,865963773,422054666,1025602765,-72866770,1137121929,825723677,466602680,-719737909,-1964449898,1356572938,-1973310416,920301876,-180168831,-1724783322,-1583070244,1834787843,-1772668960,-1304889778,1773023524,-1218561963,1809762471,540862818,845244177,1446073041,-1051378817,-137090714,1862791838,1801715248,-450886871,-1478974736,-1361233106,282929921,380735665,-1634835455,-625414076,-342389644,1952046405,1045225213,-613123266,-1260133960,-148693948,-440637885,1712700420,-1532600953,-1164674294,1728924077,-911172820,-1027642813,26540702,1885587611,1737731014,-1865726841,437136848,206461836,-386074435,1473524447,-1933899996,-2019641484,967553457,-155923841,2144825644,-750915938,1427116452,-301406827,-761895604,472863527,-583264598,-306097348,90642669,-874987974,-439958336,-1344612229,-1195957306,70320391,-1605320967,-836095608,1061877782,-1926055346,160685391,-1966192596,-131172523,1839335711,1052188858,-289335061,637191959,1770270890,-1979005579,-1483835081,-1838216755,-1867460563,-1124103877,-281279776,926627311,1504083467,-428125383,-1493759839,865898314,32444383,-769196688,-343172977,990980719,2032007935,-777704422,-755905554,1133471300,-254853129,2015628550,-661405567,1551288100,-1451712828,1062053884,-973761610,221983907,-1216524774,570961494,633791516,-1172210412,-1370188279,-1982726948,-467976852,576092085,-820550375,-86498802,1140321167,-1570820895,-1141170814,984912576,720838698,631423225,-59468025,-259922943,-899090776,-485739308,-1958630418,716543834,8858042,297508842,846789954,-228283817,-983809296,586508621,-75321155,1453607696,-1536056103,-867037195,-174514724,789968476,-1239330100,1635300548,-1591154956,229823442,-1953978881,40917060,451812237,-1975146722,-70356314,961207183,-1294331573,-1064189981,1756766789,1964064699,24979745,-1214014194,169941588,-703199957,-983897574,200974806,-631929073,621787557,1433666919,-431555607,1380586515,1975764539,-1456936875,-1491022353,1483039581,-2036938339,-552099615,-1264816987,1390339581,-471649429,894475582,-276406430,-1501357013,-1196513318,29871045,-1302606991,419796651,-1940380959,215305797,2050226618,-208980415,-1016759197,-2095723543,1054237395,1819108915,-211009948,618496802,1827377486,-685224716,1032720130,1991986639,-472498632,1892875540,744604892,-435736103,1973539110,-976640441,1833748440,1675031829,-660158378,234001752,1758257889,416322658,1929232682,-646373416,-847824020,1992714503,899763442,-1110115270,1392617969,1438835250,712849703,-1110569059,657235390,-106542248,486174911,-1077822586,-292978743,1473163491,-1486010918,1743977232,1754704652,1642774296,768392646,-63630389,-1911044582,-1365660581,-16135887,-1708226991,-1816203687,2133193294,-942117381,-2092107882,173487941,992017103,-1802966796,-936674513,1065020692,1965575549,828300963,-1968097663,-1335967165,-248857433,1793485139,-1209092231,-488787610,324824708,892457943,2019937710,-120751355,-43998350,1080655141,116621118,-780762693,73100524,1374382547,-144755214,1800174603,-1291709872,1486238535,-347121200,335197723,605760372,748215227,-1650645890,1869042756,-521112701,-1696429153,1750935150,-1197913238,371723179,1558569575,-819545597,462834371,1959082673,1119183731,-1697875898,1211309655,-1776081269,-1879232192,-980199064,-1472633480,1792468070,1903799084,1540111150,-1981494863,-1924131689,681587686,-1473825955,-1914539137,-1917888993,-2013410194,-1763600079,-1395026026,1103602282,310824707,975232807,992099736,-9736199,-631104691,-656780330,-367564818,360342268,331960600,-1876933345,1642576270,-78848189,566578976,-777875202,-901905529,-1235912539,1513273520,-492428246,-821944830,-1409246310,384763544,79242049,-1348257082,402966489,-36529867,-1831620870,945282101,1230060274,-1853789795,1479173727,45144003,209674540,1411229559,-655921713,-97092643,1476820021,1438866543,-948805489,1926751325,1589111899,1423719139,-22736587,-1250173121,-541980534,1736178811,1643935300,426620098,1744997449,-747875446,1561143102,1511554571,423020654,-1459203290,264919080,-1464611761,293685730,677223296,-1582284117,-318695510,616652420,356194930,-65645500,1091778232,-596410969,-1901769272,1463575214,-1756404812,115574027,-1686569522,1618783625,253652813,-431281069,308380849,-415274916,-1790451890,-392952206,2034388423,895544625,1517356071,-774866923,-97100936,-2050727630,855541060,-2039308267,-506356993,679193876,101059366,-1749352980,-671254180,1430355091,-1835154702,372297949,-2006010109,-1666733679,1426275236,-1221776119,815100667,2072029764,970413231,-1801074035,1991543422,1762000625,1376934274,-708574488,162838137,967374461,-1582385755,-185205713,-1834095750,1161957935,-143141124,-1868264262,-1641826342,1332180865,-1350112254,1805851852,348446911,579032149,1493603199,-1999606626,434482148,579307590,1219913805,-1469596870,-830485440,-459795182,-366915987,1239983340,-1369561183,675590088,-1542905950,-708047427,-833794199,-265223626,-1701445190,779905206,147156187,-1878700857,-1851092244,-1995227127,-756022607,-2084288702,-1596102448,-1709785721,-1888633000,-617409874,-369910708,1583139389,283055068,-1615356292,206809626,227457824,45422151,-1767288123,-130752971,1550324719,838854304,516674963,722983195,-626852806,1007396867,1769495838,-185861507,1721094489,17868947,93263119,-713946186,86106620,-1372948132,-681968347,-1265292512,-615850943,-1777573610,1467286143,-373268475,54342094,457204923,2081676495,-582784844,1621266260,-1515314222,1120368380,1293792926,1221856723,1208328835,905473110,-1626036108,-1665115605,1932098832,1869100168,1352547030,1149474523,1735990940,1133842360,-1088515981,-1030160811,-1368967720,1655861906,1762874018,781553604,419892524,-2003541759,-1011639028,-1755920146,-541625009,-66061109,-129087751,-2116411430,610156976,153383150,-634182307,2074148889,-1179624552,-968853606,1175315934,1129938127,-1236553424,1077334028,1546041074,-1297581983,-847216767,585748597,-709087027,2001100818,1132760651,-252911409,-265489633,-939770622,-350091064,-1644111908,1523857266,1176109745,316585688,1517773943,-1691728185,886227074,-1564170350,1711177819,1578265359,927064773,-1386034595,1053322225,1295802517,903951808,-1249469162,240561766,-685730003,-1992468182,-2021140080,955413064,1579026393,-1309175259,678419746,-1115607181,1013751083,878982899,375166011,1463583587,-2129654695,-708279225,-1417173064,673480063,231527759,327123091,1626032069,-544927068,-898789442,1967783935,-1916354034,-2074242369,1087439211,1517187842,1090052430,2116360814,-7066121,21278135,-737457201,-1528788320,1336434253,-1635417172,-1622633693,-1781293286,1530457170,1205470328,908919003,-577804231); -/*FRC*/Random.twister.import_mti(91); void (makeScript(14)); -/*FRC*/count=185; tryItOut("\"use strict\"; mathy5 = (function(x, y) { \"use strict\"; return mathy3((mathy0((Math.sinh((Math.atan2(Math.fround(Math.abs(Math.fround(x))), ( - x)) >>> 0)) | 0), (( + ( ! ( + (Math.sinh(Math.fround(0x100000000)) | 0)))) | 0)) | 0), ( + Math.acosh(( + mathy0(y, Math.fround(Math.log1p(Math.PI))))))); }); testMathyFunction(mathy5, [0x100000001, 1/0, 0/0, 42, 0, -0x080000000, 0x0ffffffff, 0x100000001, Number.MIN_VALUE, 0x080000001, 0x100000000, 1, 0x07fffffff, -1/0, -Number.MAX_VALUE, -0x080000001, -0, -Number.MIN_VALUE, -0x0ffffffff, -0x100000000, Math.PI, 0x080000000, -0x07fffffff, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(262); void (makeScript(14)); -/*FRC*/count=186; tryItOut("\"use strict\"; s2 + '';"); -/*FRC*/Random.twister.import_mti(271); void (makeScript(14)); -/*FRC*/count=187; tryItOut("h0.get = g2.f0;"); -/*FRC*/Random.twister.import_mti(288); void (makeScript(14)); -/*FRC*/count=188; tryItOut("mathy3 = (function(x, y) { return Math.atan2(mathy1(( + Math.max((( - (-0x080000000 >>> 0)) >>> 0), (mathy1(-Number.MAX_VALUE, ( - (y > y))) >>> 0))), ( ! (Math.hypot(( + ( - -0x100000000)), ( + y)) | 0))), (mathy1(( + ( ~ (x / x))), ( + ((mathy2(( - (0x07fffffff >>> 0)), Math.pow(( + (x >= ( + ((x * x) >>> 0)))), x)) >>> 0) || ((x ? 1 : ( + ( + ( - (y | 0))))) | 0)))) >>> 0)); }); testMathyFunction(mathy3, [true, 0.1, (new Number(-0)), '\\0', [0], 1, [], 0, -0, (new Number(0)), /0/, '0', null, '', (new String('')), (new Boolean(false)), ({valueOf:function(){return 0;}}), (new Boolean(true)), '/0/', objectEmulatingUndefined(), ({toString:function(){return '0';}}), NaN, (function(){return 0;}), undefined, false, ({valueOf:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mta(2003937565,1216070232,-605008545,-3837479,-394578573,-186331930,1407918569,-1379201205,-2009461387,1019621644,1418323706,1698640093,1587247911,-1401529514,2034629201,-538065377,-1229906111,1536126718,584407663,1820390671,208985568,1328337608,1433292062,-2069609589,94666150,-344823007,1011522992,-194157632,-799626329,1198767440,1676662325,1381741907,447010136,267828666,-1586250874,-1377302977,918444120,1030920103,-939208834,2091072356,-53993976,1938054246,845719147,-239369571,-1721962373,1499895703,-703720285,-1434112427,-1377204472,-428149784,-941244710,462422640,-2135230453,505132173,-42504650,371507554,273221759,1665604080,389196621,-224517580,-616808986,1317746291,-203313895,-622456630,1042823653,-1557941150,-1856777432,151326736,-809075891,-2082203074,1916100372,-543649408,1041927747,-1119383189,2070584362,-941867969,-990741313,740106573,1750223161,-782176349,673846427,-516303022,313087454,-304447944,-1674473407,572224473,701610782,-273801250,496210311,-721257509,1038437276,1941443212,605047919,1748835989,950374608,-1853887341,-1955132765,526511605,1747680269,-257104462,-11623641,1323879011,-1482849796,-1464833122,-1115299579,-2010101968,1654263243,-1965590595,62438619,1944790820,-767633101,1368039509,882075665,-1990725301,-115523883,573944657,939469211,-2024950050,-1227075445,226253965,-1309517923,1658410896,895055756,-1886872394,-49315319,-500122688,-7644967,-958730287,88042779,1513751464,-2086320112,-1809965250,-519709829,1336641681,720235087,-556194991,1677185393,-764071077,-671931891,120074544,975814822,1185013458,-1435588390,472299394,-1930924061,-1900846492,-286486843,-446760845,1341711361,1622589406,2066345560,303083096,-987626934,-992195937,1051931266,-836058255,514126350,-351143856,1431126041,-671127983,362447677,751320414,1205709601,-1539691865,853980645,383665638,-256936942,-118407958,-557825117,1259924796,-55642460,-1834601717,-489428432,2039255888,-783874364,1678504418,1310609004,-179413828,2129537341,783167853,668307903,-340024396,-1576760879,201608375,-1583445799,-1331409255,1941018421,311249461,156819792,2127017662,-710814795,-39966501,675395178,868094885,-124673447,-1905315999,1456030718,1403110608,-484511685,1251958868,1719285291,28076691,-670447703,-1373272435,-1629272986,-1435266579,717165525,1345215407,-2083872944,1317028995,1949978782,-400021503,12991901,2000408319,-1267981148,-1547469286,-659556214,1412308648,1902833962,-796065822,1105695825,-1571721218,891204837,-1551703364,-1621601965,-263290515,1924230143,1321711151,437584841,-310016520,-732866653,-1229180174,1454496478,1644183285,-710774335,-1643450597,-1764943553,777588329,-556575967,675092683,76910851,1427545722,-1726706509,467656430,1474766031,464239354,1077705443,1791967318,-1387833708,1337912167,-1706148458,-181659263,-1047324104,-1334005252,1937954001,-2084510344,2074122492,-1264951627,1304127632,-186066333,-48671468,-1295705749,-569279561,49614302,227002411,-555576931,-609156514,-1144783611,-1111475564,-723193300,631533930,1233860488,653553328,1827312257,-350005858,1909107829,1658994256,-845034848,-426963144,-553152895,-1115217172,2094051768,-1972049155,-781264511,-2099579012,-79089861,1885456727,-1437407915,119865649,1886516269,-422250979,-1689897800,-577509925,1752161637,175943567,2121632591,-1043747768,-1010279646,-466154631,-759955303,-1530488765,-1909901994,-226783017,336041837,1041282295,-417950661,-542212708,1603911353,1212767820,-959405874,-1712001777,-2139277836,-267925805,-1632896270,1362489856,-917502919,1986549340,-2051585286,2128490159,-654216293,-98288369,2136672368,-206159833,-546588641,1779081158,1352116635,-582289371,1655994144,-1857523465,-204630001,631980783,1652320357,1475304672,560262140,1487866874,1439987472,319354385,1114967661,-711819495,688027357,803927656,220496812,1314429626,1123326572,-839874656,-1086785529,-1671115043,-1056863398,-965244690,1706807324,-1487285047,18363157,538097485,-1835924351,-141951548,1656644122,205147749,-925709476,256523841,-153860584,-1700701278,-1928587766,-1750010836,-1496019020,-153244126,1178281500,-231361856,-1569121384,1084124740,426298302,-1453477446,1761338066,2075716769,1560645677,1609529579,-1348753680,-689571540,-934329354,-1270180323,110583050,-1425715494,-737772448,-19597229,303179887,1175981739,2096851420,-1183189554,-1583477529,542333289,1398702770,-471923021,-1078467811,1579082007,-461260334,1898032480,-1472149386,427311742,-164398179,-1397941975,-2108001940,-826434212,-1776967648,261472437,1169817526,792145638,1934776282,-946284682,-1185802554,1100383554,1916599126,1067186329,-348297346,-991015520,-1776811767,-1858761614,-1117203556,-819512725,-1464140279,-1082386366,1899951304,-1450183824,292675577,-632096277,1439319661,1484569126,-1998566251,-1187549502,1865733970,-742608350,1161178359,2038358682,-194848332,686667702,-335734153,1844317837,103384536,-572911334,257955233,1168271270,701436252,1574555531,1774112583,639612411,1366299271,-1218686880,943457431,723863082,2052882223,-368891485,2047831816,1564076451,-2003097774,-2053173493,-505697409,-963728166,-1348535639,-370297929,-1734114735,-1476397359,-337486297,1983112040,-1298294815,-330898030,2060783318,1252875295,1358229550,2082426671,378609362,-1493686149,1731894232,1674010613,447489042,1284869793,-581534639,-70953238,-443408414,-1841300548,1782483985,-1261553120,-1845645744,1686069216,875826045,-296129489,257513178,1119652724,1171579262,-80538275,-1154449383,-1274919685,1178812491,-1867967389,-392882194,702425269,-1018236658,766420755,826500806,-105542607,-492235340,2100762887,-2054610095,-2035758350,1923330312,-368732627,1213938571,-1892599202,-241683562,765706444,-405948548,-2005045433,-1049437578,601679969,791836577,-1160267812,-456569899,223591405,696563051,2143111,-201070604,-98201658,-81969516,-720540845,-1216950767,1686748516,-834406286,346081000,-1650215439,-452977955,-1937144536,895504100,-1043914855,902631601,-1198044143,525491150,-2002917520,784369648,2093020957,-778410196,-1787335783,490714539,-1847719851,-721379707,-1478035336,777996931,-1824012801,-983939817,753995383,-577549332,1312104318,-1685899101,-277975573,-1135901742,151809321,-399268061,-965795651,45031206,-1084544114,1938887904,-630993424,-1442828160,-465963943,1523047413,-530187264,-190138456,-233423039,562761964,-1610384515,1711414579,1115745745,-1222561237,1194836438,-154691448,1500320796,-447637434,-1928946412,720796584,1886784950,-418147935,685769016,-948652494,-1618724904,-2006802847,-313871537,630535465,-1096633044,-1941149751,1284100745,-1431470276,749136017,218066887,-1014555971,555526354,836980840,-989753926,1611876354,284158710,-652289865,-360433342,-56728986,-1511953230,-464111911,-843915077,-158176298,-2141638750,-1278001421,736300246,-1297484006,-575593334,1382383280,-114211359,-559380236,755017048,-522540913,-1521381416,175431926,-202487369,-561002864,1545356132,896794621,-178377584,864196414,-949175314,-213934638,529517749,-70769105); -/*FRC*/Random.twister.import_mti(6); void (makeScript(14)); -/*FRC*/count=189; tryItOut("/*RXUB*/var r = /(?:((?!(?!(?:[^\\w])^))|\\t*)+)?/gim; var s = \"\"; print(s.replace(r, Object.defineProperty(d, \"callee\", ({configurable: true})), \"gym\")); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(370); void (makeScript(14)); -/*FRC*/count=190; tryItOut("o1 = new Object;"); -/*FRC*/Random.twister.import_mti(380); void (makeScript(14)); -/*FRC*/count=191; tryItOut("\"use strict\"; \"use asm\"; mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var d2 = 137438953472.0;\n (Float32ArrayView[((((((0x8d3abf7c)) | ((0x92c188e8))) > (((0xfa60441a)) & ((0xffffffff)))) ? (0xfdebd1a9) : (0x7e451207))) >> 2]) = ((d2));\n return (((0x8a1546f)-(0x48c654a1)))|0;\n }\n return f; })(this, {ff: \"\\u2BBD\"}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [-0x07fffffff, 0x100000001, -1/0, 1, 0x080000000, -0x080000001, -0x0ffffffff, -0, 0x080000001, 0x100000001, -0x080000000, 0x0ffffffff, 1/0, -0x100000000, 0x100000000, -Number.MIN_VALUE, Number.MAX_VALUE, -Number.MAX_VALUE, 0/0, Number.MIN_VALUE, 42, Math.PI, 0, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(554); void (makeScript(14)); -/*FRC*/count=192; tryItOut("\"use strict\"; /*RXUB*/var r = this.r1; var s = s1; print(r.test(s)); "); -/*FRC*/Random.twister.import_mta(-770794831,408784729,1689287007,596162362,-328743341,-9903970,-900413236,-232613757,758206300,-304339957,314916471,-137132018,1678235389,-634276498,1573074094,113144543,-69224842,425169306,304093636,-920824677,-1892903059,-1781842227,-362519086,-346174045,-1111467338,-2072529101,1878849421,-1453367510,-346451395,298333447,-552485596,-554772338,1120760362,1774665561,1000237684,1941085082,1816977787,1240230194,2021136490,-474079714,1990343570,-979467188,-2011537203,-2004940951,-1677380525,-1810886795,-1657129614,-509045788,1258388835,1222089031,932478487,1935074681,-1408629359,1669488312,-1014413341,347290603,-797431929,1411336611,-1764627533,-2072793788,1726917047,117936258,-2037295550,-1339076795,-1559474736,-1527837690,1045923550,-196685466,285670705,84271269,962418194,1627250565,-527309902,510792160,-1605727534,-1209794527,307256360,1457832617,1412094188,1596080430,1520592824,-40202033,-1492086452,-1284561121,-63897010,-89017952,948853045,-1786907800,-161649588,-1514033005,-2098427553,1057149459,-346718242,-1929651189,2032292216,-177398469,368490283,-2135709238,152376351,521825661,483770458,1861868025,-774826338,1096977071,918262416,37756951,-734515062,1474680044,-932339708,-1649140598,369121161,188509072,1557238284,-967129132,-417325354,941659086,-412118854,-818601097,-164484110,-2116999018,-2056303556,-527879168,-52858673,847387272,-965831695,-2109431337,874921797,-818429766,-1329679323,-455950635,-964261193,-588639354,1058695950,-1179429559,250834278,-140442711,951045634,-600725975,1062530949,-863074433,-1238924048,134799814,-540191852,1249647019,-524334774,-1071530690,2027948313,1001293768,480924056,-536363840,1195198546,-1189987962,336132219,-485352813,-1223574450,-1486758364,-202908523,-251588619,229386361,-1605048927,-871902369,283530703,1865175509,-1698942504,-351609101,-855831135,-1905352396,-672955934,-980480541,1481991777,-1831123829,-968308941,1005684862,-563864598,728296685,-1033978000,-1214139574,-863379479,-30824993,1844570529,490590434,259932677,1083089244,27618002,739255516,-985313684,787259625,-1998579871,1944717782,427107897,-882815965,1491055858,1129358256,-2074293983,-270764281,-1369101243,1237559914,-1201135052,-1135515491,1085379208,1698752496,283983801,709641536,-2101132664,983766015,1275991703,46965755,705053566,1289840004,-408154939,-8791441,542829552,2084429652,926332682,-1321527422,-922324067,1617162146,-883216094,-154551967,-1511573101,609961986,920241725,574875232,298328984,303066555,-2111083,1168330215,1175235466,782192037,-1752145327,2027335235,-2025903300,1465929531,2039300339,607084497,-10521828,603460576,-1532745928,986035380,-12210525,-256181677,-935214552,1263639976,1227134158,344083687,-1422486422,-59050832,-1718666201,1797061537,-415007975,147026364,-586557526,-599134259,-1892340422,-1463865962,-1769349565,-1836209534,-1177810580,2106721632,1010948256,-1448279245,-845256848,851975541,-209209935,-6975197,362846533,660033603,675423960,-1343423142,-624404360,-1397056339,-1887501557,997062378,-1465147459,4551937,2054185547,1845984279,1154677131,-2049076506,-221670169,501876324,1606124098,-452139020,-1860871111,-1330417951,2011807687,139620145,-1133209104,-1506289077,754163091,-41134823,1422725090,1238389355,-1570676282,1383375902,836905749,1692519732,-766614671,-1867550954,737812300,1499892555,1082126950,1693416264,-1806649716,-60344213,1006495266,-1444532563,2122762398,-554516312,1927436052,-212746779,490361336,-1243329319,1343529013,685588907,-1922480286,-1491462674,1686843095,-1970611455,256889222,-212445133,-638467660,63992299,1626601672,837864920,-1095182126,1849710317,-1921431298,-1911053023,436995894,-380367294,491535584,317871593,-126896777,2098196324,1491168211,629549923,-1514022694,-961159135,1260710200,-1060600318,-1072934005,425385720,-1047014550,161607595,554236995,-514724549,-430667701,-1839932402,1987914356,-351882275,1332705416,302322504,1340260775,-1100418633,799744968,-1061430405,405480776,-411029366,1917503199,-13279668,1160451952,-1530182541,1136728339,-1087621849,105789157,-1649276237,-697781294,79463449,-882668727,1040312514,1147899845,2007746039,-836827725,744707248,2010688782,-2078270149,-2079280253,-94791933,25845526,-1995365213,1366519992,2002811596,1239640863,-813909221,286315166,1771262733,86429492,961090710,-942972333,1550807177,487399079,-21114552,-151095420,-1010571815,-1993134884,-96179344,1569028288,-2023358587,1554990800,-1787900934,-173360024,-528334677,-1606802375,-182389756,-572141980,827908802,2113311299,912277422,-968102449,876337517,1315373580,390200887,1719035600,-699105617,-1921964996,-736040478,-1797308414,541118102,1469536776,1441568258,1543355181,1569243052,1711142777,621851809,-523575300,925628705,1285471969,-344024803,385037325,-1192087982,1859504164,-520606861,-315419550,689078674,1644981513,957658826,-576132676,884826974,-874936242,-1696505738,993820064,2025245185,2077083538,239961014,-480568716,29472475,-2007864308,1272869305,-1781030290,361082929,-908633375,372944117,652483466,-1999935999,-1017043807,1120474022,-1306401292,1808184560,746176143,-104121380,1376529688,-2110393225,-1616507600,-1931583697,-1648188420,-200465974,2060345009,-1143173180,-474316147,1148356295,-1413465240,479533725,-2120720443,-347720746,570623615,190090702,312765612,-1778974590,-1367982019,203921499,110832478,-786074322,-1277956296,-1691977261,-654098671,-120510349,1789170065,934770570,-1550571621,-2016592314,846345638,872931778,-393694443,820221371,171871133,-1415785822,1261019377,347284092,2017039251,-772126919,-1404105016,-2024452271,1772085560,1008656448,-754158976,-1053864103,-1059323624,1057156985,770319131,528799542,-1378306801,-1668961550,-671940072,834565018,1060057943,384986729,-2137091334,692293800,-1168222435,1624421905,540048044,381933356,783396416,1167526230,2066207399,1841225176,64400441,-107688587,-1493089329,286498907,-1278339700,1068701082,-24744619,-638712881,-163581122,-1588506105,617011183,-1931614963,1181528900,65526793,-419802059,499258690,1556055994,-1409607373,-1539080457,1750425145,1738503357,927877022,1576382466,-1115849085,-1662931306,1149761619,790092158,-1831543495,-136368303,926802382,-1135340030,-161974765,-426178356,-933409929,123385008,-1193098068,1967366933,751359419,750542439,-211013873,1112584136,-1550339232,574165692,-1390323356,990454664,1737208521,-1272262417,-563114352,953525249,571288296,-927143740,11363172,-818090841,-1605424929,1974131708,821721438,529881152,-412648237,-220819692,-1122958776,1614961008,-35640591,-196800486,1529917735,-1649609734,1984402148,-1782186040,1676635990,1912510648,-1255359878,1827757723,-1354226570,-2005269131,-1252642728,1817166689,-1220967768,-774792368,-1656469490,-1803483834,1756946510,746665612,1042756802,568338528,-528052345,-1647018761,1412080357,-915618039,1784753276,1464284452,1148857714,1723885249,1154241848,-586445633,-1889420947,353153884,769625876,172726007); -/*FRC*/Random.twister.import_mti(21); void (makeScript(14)); -/*FRC*/count=193; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return (Math.hypot((( + mathy2((Math.asin((( + y) & (0 >>> 0))) | 0), ( + ( ! x)))) | 0), ( + mathy3(( + (((mathy2(Math.trunc(y), x) | 0) ? (x >>> 0) : ((Math.log(((Math.cos((x | 0)) | 0) | 0)) | 0) | 0)) | 0)), ((mathy1(((x < y) >>> 0), ((Math.tanh((Math.hypot(y, Math.sin(Math.asin(x))) | 0)) | 0) >>> 0)) >>> 0) >>> 0)))) | 0); }); testMathyFunction(mathy5, [undefined, [0], false, 1, 0.1, null, NaN, ({valueOf:function(){return '0';}}), ({valueOf:function(){return 0;}}), [], (function(){return 0;}), '0', objectEmulatingUndefined(), (new String('')), 0, (new Number(0)), (new Boolean(false)), true, (new Number(-0)), '', -0, '/0/', (new Boolean(true)), '\\0', /0/, ({toString:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mti(286); void (makeScript(14)); -/*FRC*/count=194; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return ((( + Math.min(mathy4(( + Math.sqrt(( + Math.asinh(x)))), (( + Math.fround(Math.fround(( ~ x)))) >> Math.fround(Math.tanh(Math.cosh(-0x080000000))))), ( ~ (((Math.log(( + 0x100000001)) >>> 0) ^ x) || Math.cbrt(x))))) >= mathy0(( ~ ((1/0 | 0) & x)), (Math.cosh((((( + (x >>> 0)) >>> 0) >>> y) | 0)) ** ( + Math.atan2(( + (x < mathy3(x, Math.fround(( ~ Math.fround(-0x100000000)))))), (Math.atan2(Math.fround(Math.imul(Math.fround(y), Math.fround(x))), x) ^ x)))))) | 0); }); testMathyFunction(mathy5, [0x100000001, -1/0, -0x07fffffff, -0x080000000, -0x100000000, Math.PI, -0x0ffffffff, -0x080000001, -0, 0, 0x0ffffffff, 0/0, 0x100000000, 0x100000001, Number.MIN_VALUE, Number.MAX_VALUE, 0x07fffffff, 0x080000000, -Number.MAX_VALUE, 1, 0x080000001, 42, -Number.MIN_VALUE, 1/0]); "); -/*FRC*/Random.twister.import_mta(-2002579533,741700597,1298865485,978688012,-1977693145,-2052578099,1076091047,-1548201046,1912827070,-516764378,1176458820,-580164593,-346867848,1524253498,-735016004,716055820,719171101,-549162419,821509806,180228747,1194487739,1433599103,-1154413562,185383769,-2133929877,-1283558219,1901222124,-910897824,824604064,413345715,602526374,-1978130424,-1156048002,-1522721944,1460438505,1339484945,-909827845,355372455,1406362118,1111862019,-9983078,-373759001,384744229,1307265664,-398669115,908841144,186224224,-221934120,1580754440,-2096940785,686927471,-992754770,-468284110,-1387683041,445020107,-1492250647,-706539644,447423239,-2124877309,-1464404062,-1314771531,1754144721,-312038926,-1471341260,8104731,-585222376,-1517984381,1565888872,105440113,-391935293,-742915668,-1953202659,-1400665475,1415037870,1765444519,1438463113,870485582,-1051500640,227682024,637910546,-1251896300,-964736988,1858691949,1916737916,2076439438,342550891,-1184033140,-536293387,317413255,548396035,-1406318521,35506277,2095151425,-77850886,-1848898588,-403436920,-388929552,-312365205,-1665462788,-1510591857,-446825262,1012640051,-2122291685,-894988687,879210012,-1387702508,40700750,405286978,-1646887739,321377346,-985516848,292169343,247939313,1813305437,-238486296,-1355652433,694231932,1252484707,2143790876,1413859447,-254146310,-836265968,-484484519,-621981898,-132474216,-707233711,153767453,-2067733605,-1874445038,-1745541028,1839441402,-1508247310,584079796,1449793256,286663815,1675948699,1234570910,525124818,1232076894,-96300929,1623369484,-1556394809,-1168502962,867727532,-2031449430,-121986799,1097385054,-1515310593,-1807703913,197917200,2065066110,-465400964,-176943724,-420110172,-816758396,-1535334714,-828379557,1292532186,2130570590,-935937858,1831832634,1489432102,-339275744,617649361,-131300673,-2780106,515007460,-687348843,-643932792,1661549973,-1199801202,-26249377,218832713,1637720013,438729776,1012624236,1265012676,947121312,-685383666,747881113,1443592473,552219594,-806463026,-1236845903,1460174026,-24864267,-2098339025,-1634568136,1734651095,27858054,204309257,-599229655,1868809301,-1244251525,1402393863,312887249,-1980633390,-1529910329,296112636,-2020816510,-40930920,-1167194410,-1994677199,1896810872,-750749451,794256266,-992822545,-1154155828,1046459387,-1911767642,2091664244,3791720,981169125,-132447162,1616901606,605771060,-322871400,-2012397549,-1665394382,374835571,-459000576,1441637896,-705716877,526466927,-1276385463,-704210632,692962098,115612094,-1091177982,-1475806541,969543058,2024168293,543569003,-885209200,-1676154332,603940174,-211755334,461212702,2076246913,168229518,1056612910,-1315420824,238841707,-1181468495,-891340680,1321878774,-546227129,-1414225228,-2363092,-11488040,629690508,2011338578,-186326488,621661735,469275294,2019598561,1145381637,1562431510,-1808217000,918956600,-1007540016,-1755300980,-283279082,789010613,-956927526,-646939912,1449441391,-393095881,-2065903653,-642038356,-1822655526,-1249234512,-1149849671,-768375745,1458900002,-265066276,946009365,706701084,616544514,-1427927552,-2104204738,671089713,1988890922,347211819,-128496581,477721924,-1232290982,2075226191,-1476435513,1252537249,-1037329723,-1113902351,-869365765,-859883636,-592694211,876086763,1485573028,-1678789081,-563514949,423132935,1952987805,1531786755,1603629007,-723934556,-1666339663,-2140569247,1497815645,-1709640640,-1089576018,-831976128,1017262464,-130456259,-446166610,873137798,-423859132,1097227632,-874316873,811635992,1169825958,-599595641,-1750796768,1227654094,-678562068,-265748196,-230833406,1922274901,-1555392784,996056733,1901963944,-1255513798,-2080272383,-1542048713,141966704,2095774972,-1387252364,371055019,29833263,1058042911,1962431203,782435312,-1793441465,-1117416556,-1879471334,-189176714,-1020548963,-697835170,-1100530547,-1175427331,-1256649430,1335145320,-1118112910,-250080452,1797367901,-1894349287,-753569153,689135728,-606029064,1583594943,1177824066,491452050,889167184,-1703201183,-1693659443,-821517102,-983339137,-559827496,-1854486122,-1147906593,528628156,-447022289,-2004545647,607639694,1186829079,391736838,-1639815304,257433301,-791997682,-1624108256,-1534614281,1760833306,-1907615496,-186549022,428188566,1881735945,92410005,-750980089,-895099100,1904936561,-500437040,486021307,-1285641379,-948803045,-2069188620,-430235177,-1818331653,-1531156432,231440885,583414675,-1875323849,129792692,457753081,-210768710,-179385937,838268358,1451297682,-1886809745,-1956627609,1295738574,-1698204174,217777575,-1854620745,-979356914,-843076963,818900135,-668276186,225761318,1271313543,1544414274,-142354899,1167429460,18896690,2102561489,-1185936206,40961117,-1800797127,-751100493,952837677,1362660809,1746873359,-1788693736,107343210,2050284947,1506732475,-1873020378,322600087,584444062,-1596405384,653456091,634724175,1997259742,-1517995370,-989061063,436057853,-337142205,-1180644055,1163162240,310296437,407092483,1594259263,103151028,-1568529728,1644036588,-982215427,-1272921875,-27509967,-544113711,-1323825079,1277777898,-141413123,478390661,-1573203684,67477696,1814848470,738673138,1436343776,29856612,-295082743,588572108,1498264817,-183657257,-1401674491,496829929,-686892085,-1429068372,1673367892,-93210677,-167607666,796119245,-1177483373,738172634,641751944,862595081,562648957,-1864454349,-1465254079,1901652158,-627256785,-668364011,530749598,-1392828875,1983791718,-587890373,1950127021,-1759657363,1954947110,-1861048694,623322379,-1727665436,278808742,176372986,-2079063205,-1940448427,-2063820736,644711733,60382812,-585060751,-896692596,1142793565,-1476549277,2035186353,-1688804749,-1240098494,2004939848,-296516969,-47294149,898557484,1256684252,-1769319791,968665504,625962028,-593032486,-674373717,593547979,2051510031,1064628139,-390717609,-2116314684,-777327368,-1849350341,-1911288003,-851531678,-1015798148,639764244,-1397134491,-519631393,1991146098,84072040,-1547406375,-1693500257,2106808181,-1635869629,-1470273819,1866047149,1192740849,-79062340,-1466417307,1988488966,-1945905681,1742101455,1346107762,-1101408681,158765044,1696103146,858278067,-642139670,717445711,-1426036165,1713707991,-681922479,-179296236,1061660324,-1323215070,-172705538,-1901338067,-1337529357,-733547077,1334531092,-2066638601,-327607606,-1721161816,-1455557198,1776730406,1434073590,-783221819,2089944098,-1541433250,1808451338,-49528128,1334760880,-1576104723,-171709465,-882356528,651807824,1901835342,654899765,415017574,1835784746,-1828243209,-530989460,1872504449,-1042358993,-1103059443,-733787588,-528384451,-2090133117,85222529,170583229,-1625219670,-117282069,471239483,-126468247,-2049006036,1739641725,-1637271799,-713911933,-790899504,2125771868,-1856011623,-468621102,-1328655222,-1479832147,-157290184,1854023516,-1080735462,1512611043,-1072236183,-1232037116,-1858567743,1895767195,1511179165,-1394771847,-2056146319,949031828,-1869433101); -/*FRC*/Random.twister.import_mti(93); void (makeScript(14)); -/*FRC*/count=195; tryItOut("var whnyeu = new ArrayBuffer(16); var whnyeu_0 = new Float32Array(whnyeu); print(whnyeu_0[0]); o0 = t0.__proto__;;(c);([1,,]);m2.valueOf = () => window;Object.prototype.watch.call(p2, \"defineProperty\", (function() { o1 = v2.__proto__; return o0; }));print(x);"); -/*FRC*/Random.twister.import_mti(262); void (makeScript(14)); -/*FRC*/count=196; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(271); void (makeScript(14)); -/*FRC*/count=197; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return Math.hypot(( + Math.hypot(Math.fround((Math.fround(( + (( + ((x >>> 0) || Math.fround(( + Math.atan2(1, ( + x)))))) >>> (( + ( + ( + ( ~ y)))) | 0)))) + Math.fround((((x >>> 0) > (( + mathy1(x, ( + Math.max(x, (1/0 > -Number.MIN_VALUE))))) | 0)) >>> 0)))), ( + (( + Math.max((( + x) - Number.MAX_VALUE), ((( ~ (( - (x | 0)) | 0)) == Math.max(x, 0/0)) >>> 0))) | ( + mathy0((Math.atan((Math.fround(((Math.max(x, x) >>> 0) != Math.fround(x))) | 0)) | 0), ( + y))))))), ( + (Math.min(((mathy1(( + (( + Math.sinh(( + -Number.MAX_VALUE))) || Math.hypot(x, (-0x080000000 | 0)))), (( + Math.fround((((-1/0 ^ (x | 0)) >>> 0) & x))) >>> 0)) >>> 0) >>> 0), Math.fround((mathy2(Math.min((x >>> 0), (Math.atan2(x, y) >>> 0)), (mathy2(( ~ (y >>> 0)), ( + y)) | 0)) | 0))) | 0))); }); "); -/*FRC*/Random.twister.import_mta(-304858442,797305422,446084786,-2024859851,682839555,207066403,539679763,796966349,-1089406980,-395341755,-91855850,-277942706,1637229626,-1150484887,-1862852216,1104792908,-2040142498,-2142145167,-1859952196,-245943419,-272880990,-367308754,-1726258649,-1739616296,-1109065644,-1040637756,648766189,-868663575,1180843701,692047742,1412734413,898834864,-939770196,-185917631,-992536380,-467351271,1136921642,986959252,-1694528064,-1620370251,-886688777,-139791870,1375626910,143912747,-1642477467,477196749,-763012945,-692257235,-572694824,-552675171,975854804,755839398,-913730332,1992927738,-344869177,-1350233281,1618862513,1744368367,-1949696000,1891741260,-1587091235,-1054777340,1218783007,2064626766,713734988,-1478073912,1118669126,-810541945,-1398872358,-2018155041,-2725347,-1778073328,-1624867584,31576073,-1370804366,-822108948,-1971615108,628392480,-378312510,-323860348,1280079071,1472005882,316674660,463577679,-1604850589,1027595323,2043836438,2027218013,-133712288,1434633939,3131384,-1193634591,-1856694968,1054361492,-1357937537,5513301,2024121607,987473624,1524698898,1468652386,1579191970,-1990800524,-153597155,-567815083,-1695305505,-976609817,712613140,-1803890463,-1800190896,-399731484,-1784674627,966178244,-699619776,-1548575737,2021923018,590374390,1376289145,-1026717003,-2036026680,1921679009,-241590631,-784616365,1211747255,-1599453290,606688092,-16956134,-516993507,2002252066,-1555264647,-150320327,-1029304191,-1062401055,-1524562871,1555892990,1804529646,48824411,-1558247156,-977334800,-762871150,1969456622,726754661,-970835144,609184547,-1660167914,1292404402,260963458,-859279407,677476904,-310525331,1259264825,-1105031087,493640965,591472928,-638486891,1531501719,-1688257256,1437430878,-423145659,249038352,-577262554,1246129348,-491177919,1043387043,-1705421020,-825516743,-1158838004,1008771896,-594950857,1019927470,1404398163,1659802503,871638449,816797841,-1540437078,2009822352,1892253204,-848753259,1459680293,1801374157,-641217703,-310813915,1752824151,1613078890,-1639459454,1830990581,-22573800,1041401938,-843965311,409477157,-227169423,606844348,249621657,-327185565,823986035,773535034,-793002667,737049345,-877121155,114425920,1961712753,-1038737727,612829228,1687228295,1222554572,-764078103,-590266667,-1007465873,324401313,-673347069,14849510,-1857851603,1612997119,-1933322583,-672893090,-460170334,1491241104,1654348236,343314554,305499407,-2067627644,-70364475,-1023384835,-1934955275,740309762,-294453523,1815605773,-1813988820,-223427657,-494327864,1181986939,571771480,-1584864023,701101803,1847666945,2122256234,-2036295519,-1513007542,1584289033,-361917687,2129360173,-1549738787,1323411170,-1004838453,-485852830,-416000246,663965504,-1534237985,-1873685964,-1783428542,-874558879,-1547778959,-2020118208,175601416,727133090,1761730118,-45604888,128952181,1579744225,1861235884,-435868988,-1084554617,-1285957553,716166556,1623143623,1449914600,1757765928,841697009,272688325,-1686679340,407919475,1381431283,1521102694,-329252083,-1174413634,-291157437,417633421,-905876717,678789205,947713702,-2000443909,-1144972483,-801653166,1020569589,-983632013,700729421,-1869849171,-1810782540,730982625,1031653643,-256353630,-1127571991,-711636882,-1044776434,-1242356857,212119213,-2133269752,323620371,166355487,1133530700,1008390289,-1253049385,411641930,-460108354,1562766587,-62328241,483964211,-507628892,332088584,814317658,1286671012,-1095393266,-756815692,1731878776,1250709044,409455333,1157528420,229805151,586340267,267605757,-628658600,1515062899,-2067169527,2017501403,29049990,-627385043,1262765162,-1825692429,1720605686,-1815872535,768619458,354713233,-557273497,-71343207,1020364718,1182567659,223897752,1856773684,919904019,784806972,1170814524,-50309683,1064885575,1500305357,-1433016856,-1442940390,1084202065,-1216676608,-1424680948,-1225658905,1452585486,-668578296,-927909971,1618917065,296568829,601768218,-1900227067,20129081,-507771616,-838307672,-1084306719,-930602735,-1090504617,1701663282,1487277676,-1427122404,-1707284903,-1314840610,1687189947,1837626992,-117089228,-821021359,-144769050,69290881,-1008116627,-154810979,-988263446,77058729,1969877749,1763068552,610739548,-1551775516,394923356,977472579,-832254773,1448183193,1804265858,1012572097,2069076780,902661315,-1097386030,1625871094,-1935750461,1355327800,-320394982,-1898450641,-483939445,-606158011,-201701053,1881807083,-1543272270,-1650901513,-1805344616,674366711,-433485732,-909341619,-1209637727,-1084590018,-535109156,-1223898277,-241742738,-57160699,-1829382300,1070107540,302513473,-1962381166,-1534866759,-596420272,-2031948171,1814702899,-319840006,-1766001980,850604899,143364004,-1196176958,992808827,-1010883703,-981882294,1863399449,775311776,665057586,-322146854,1738200043,-721632314,325502203,37686510,-944640321,-896312236,446779477,1537310736,-1644082206,745199517,828649475,-199624850,-1488744569,1994172730,-2113772950,300675034,1296423301,-1072523225,-1645478507,1558133748,1438647372,-1355865436,1975916395,74370688,588092211,543628174,-2133516039,1992392948,953458277,740555105,1214856833,-1868351400,-1893779270,1586339003,1146196306,794888139,370062970,-311437226,187286422,885803849,1438353968,1929010582,-715937163,878819598,-290305275,91099864,643757927,-764887507,425155276,-1410691207,-523385561,1815083182,-889985014,646221758,-625545884,320426897,-259371320,1009575818,1370551471,-674413435,-1250096671,-96259903,1214797538,415872896,1357673102,349351425,437900192,1609281819,2002956927,1725752267,-1394932125,-757406008,-875707331,-1611831374,1564094944,1942341514,825719123,899167189,-1468570093,-1638646830,1376006761,1051536441,1938701046,1901501431,403600485,1660273461,-535508679,-952959368,-269844637,1193114765,-1004767465,619942992,-1778857703,-1531323029,58557102,1422894829,1688590485,-963928309,-2113136241,1017118661,-1353059899,-1819496354,137692308,1755084849,839445358,-1000635497,1782222494,891483089,-250764922,-2018882151,-151800468,-25352125,806764801,-273254202,1957798270,1166947440,-1330799797,-1395358800,-26936529,1157628796,-401153960,-874983188,-1074595834,-1427683826,525041195,-943059210,-1484679578,-1537164691,-1541623605,608250943,1017565332,-754636463,-1350051054,-973122287,1224908342,-559330664,-1958946648,1942769299,233975060,-563706501,-2092734751,-247508628,-919339247,-1189424093,-1022063006,1746047854,-1075764016,1086243076,-2087193627,1947820181,1890756402,-1240396766,-1950357252,-303935469,-121791043,802547269,-1197146585,1371970504,-594899846,-1634800203,-1060212222,1937041816,1763451840,-1089275100,-241552143,-157953311,714715387,542968484,-1592597270,-2130309253,471145724,1394892977,-148493641,486807709,374083750,-1245686577,-779518835,1340942105,-257000886,-1255459753,554735159,1950371087,-934911633,-1034922169,1854261569,1862518765,-2120225692,949951442,-542202405,928465149,-761300763,1919303725,-1389044194); -/*FRC*/Random.twister.import_mti(186); void (makeScript(14)); -/*FRC*/count=198; tryItOut("\"use strict\"; szpmpv(({x: (4277), get __proto__ a (\u3056, x)--(x) }));/*hhh*/function szpmpv(...NaN){v2 = g0.eval(\"function f1(a2) { \\\"use strict\\\"; const y = a.getOwnPropertyDescriptors(window, /x/ );print(this); } \");}"); -/*FRC*/Random.twister.import_mti(472); void (makeScript(14)); -/*FRC*/count=199; tryItOut("mathy3 = (function(x, y) { return (Math.imul((mathy1((Math.max(Math.imul(y, ( - ( - ( - (y >>> 0))))), (Math.max(x, Math.max(( + 1), (( ! x) >>> 0))) | 0)) >>> 0), Math.fround(( + Math.imul(((x > x) | (( ! (0x080000000 >>> 0)) >>> 0)), x)))) | 0), (mathy0(Math.fround(Math.fround(Math.tan(Math.fround((Math.log2((Math.fround(Math.ceil(Math.fround(x))) | 0)) | 0))))), Math.fround(Math.fround(Math.fround(( + ( + (( + -0x080000000) != ( + -Number.MAX_VALUE)))))))) | 0)) | 0); }); testMathyFunction(mathy3, [0x100000000, 42, 1, 0x100000001, -Number.MAX_VALUE, -1/0, Number.MAX_VALUE, -0x07fffffff, -0x0ffffffff, 0x0ffffffff, 0, -0, 0x080000001, 0x100000001, 1/0, 0x080000000, -0x100000000, Math.PI, -0x080000001, -Number.MIN_VALUE, 0/0, 0x07fffffff, Number.MIN_VALUE, -0x080000000]); "); -/*FRC*/Random.twister.import_mta(-1539785628,2103526322,1051505655,1355295273,189258454,-1590699487,1759602277,-700123213,1524178012,-1038529995,-1750231301,-943204026,1965654917,-1259578175,-233229886,1023047995,-886573274,-1013333940,1159783332,-1414706175,-202422686,-1179702529,-1597479146,-934382866,1380950785,-1026126323,128444009,-1055612674,-685718474,1986745459,1977133249,231231222,-992033203,-1901600328,-1937766472,-1256274477,235872817,255904270,286052410,906556784,1635002708,861844319,54529192,-1167162512,-430688198,1146350566,1427456078,405931606,1955446523,1291764144,1539522902,-455716267,-426825368,-261140408,-1693827828,1176068771,-550314301,25939584,1533887509,-1445142721,-532311813,-1952734300,89343042,963028167,1536822885,-235537157,835683878,146993110,-1635544222,-914193894,1561122546,-1560484138,-758015155,602529008,851723334,935827624,-2014712987,14159215,-1729401017,-96429976,226522138,-619137249,-1919993036,583649687,660249573,1355203749,1871784699,445076622,696205010,319729773,1978643559,1954966830,249354085,1497511525,1818208532,1595495069,1426425230,901328905,2066259775,1002629456,515028506,-1114692534,-2122717046,-1297249413,1463203919,-2014959550,1492655250,-709573222,690781074,-1608682485,1845240753,515793141,1621530831,-501860425,1134297234,-1901994918,-874492045,839172755,-129762326,-1020150618,293708751,975612796,-4236120,352965923,-77408870,-848526463,-296537720,739715080,-504358931,-1399579022,-1644433990,219393520,-330130192,156796978,925221175,-2113719080,1793753708,31439224,1220094361,1224442362,1227592450,-32639329,-7844595,-517075264,-248165587,1091678068,1680276501,1073752367,-2009170883,-1013461881,1729299734,-1116465376,1268052154,-1314071064,-440828204,-1592890685,362409851,-309639930,830515256,-1561773932,265665177,1651532771,-1456465063,-634629508,1641026578,-1927972659,415992150,-1684391738,-103769152,1993782148,198081199,-225226236,535120065,-1518125261,-1155016213,1317234553,1002124764,364707866,1996479249,-2019127773,1389717668,1890324913,-1934354140,-1686075088,1340170686,-384284661,879646307,954134750,1485830362,2109750427,651966644,-17699162,487374620,-1987872984,1905990775,-1081383737,-708277343,-58983676,1390684694,1318481246,2027566317,-1961017928,-2055357172,825504848,-344640695,-1412074151,662988344,-1344115389,1446861397,610882438,949222573,-796623726,-1688452635,-949872250,1298256511,1158537705,-1031984814,1380065567,1826916739,-1947443632,2031578565,-406659721,-1983989670,-1721331884,1032597820,2073435451,1298861850,-713281664,-2024789168,799471323,-653989758,-961834628,255327870,1474224592,1276906300,137475961,874958958,999550880,565891855,-34513612,-744714320,1226584568,1300186506,-1195516765,-1873778708,-831593964,-477780709,-1187593405,1162362640,1746908657,-1954166194,393484421,-679666724,858196298,-5198070,234858323,-1065903780,1117827735,1053481876,41678801,1308867904,-640160394,474607471,624613957,992115354,-1861106787,-1491060787,1825538366,-427938247,-1285306482,-1757702973,1231849827,413926585,-1152428624,-850854705,-930759763,-2117291707,1207777797,2042572919,577180713,-1737191583,1550376489,-37836347,316164666,-1866116983,291870543,1696373648,1744028833,-1278767371,-1036076439,1403781360,994505570,839179751,-292200017,145661522,1311646900,1417610186,2093281748,637091393,1367266937,1873627349,9298585,-1067590134,549790365,-675485911,-1472956907,-1281017108,365212727,-46124467,-1831474381,1270365645,1422373977,1971381183,-89489578,955803964,-1230059486,-1686148249,-350310458,1506138626,-84712317,-1037158082,-1988671066,1606742238,-515875897,1343951420,-340312679,1216726187,-1906574543,-345555541,316892957,79785111,-1277052580,-644945003,-489756104,-753339946,511341704,578784093,2057288111,1012595691,-953285898,614656459,-165487701,-1679085906,-1625329026,-884753308,-469858966,-1766117216,-739121693,1366094459,-743670868,-396755414,307576353,1555206304,-4452091,-1304300587,945894830,-1672864542,-83896850,-877365153,287194279,-808442682,1167288366,-1370475538,2141022690,-708216181,275359350,-1548022280,2145937466,-1030793083,17360762,-1702792909,707616306,-101863011,-2041795068,579603674,1400710582,1613464866,1402478674,-1354267250,1515459784,-93725882,1636845610,523549817,-407265944,-665964089,-1230678265,-1623132926,-1942239193,2101082122,-649825758,1164675010,162807950,-1150882752,-962019042,1929469404,221727421,-1776080902,-355219963,-527264163,-937335067,-273584257,1983277903,2107089751,-967458011,-683244907,693298958,-139723059,-1873035818,141014918,1811369977,-755342718,268772468,2031289972,837447210,-208165539,917918834,-1480983682,-910057998,-930726181,1448265342,1238523462,1977539493,-1546485722,290897091,1152178719,811138867,-1609154163,1874926653,-1731411679,-1290040351,-604902022,-1056222550,2070849531,647749711,355609283,863302783,-265204877,356727973,-544941725,1415682804,1188606296,2003642824,-1885038859,-1189904945,1396903978,605126254,877003341,-1072262903,809472866,-405723744,-1283027598,706453614,-1736595887,1331456090,1576163014,-1755076969,-1228614024,-1570494216,1137274513,-2144423407,-354234801,1145935632,1337862948,-1033326868,431695625,-1358766027,-151648759,-450141285,210292787,-837693199,-1839195717,-1456649945,2110752753,-1179289188,392648222,134166140,-499614051,1001989511,1541387747,1535175871,-632726778,-1985522851,679891798,-1825186173,1878770725,-296828285,977195189,269864581,1745299454,-1364722190,-426971542,-552906203,-182064916,-1421546483,1153022073,1965017574,-1100009890,566688913,-338337661,-1295334013,875193950,-1541042261,879487340,-835059044,694166261,1079890866,-1544284065,464528980,-782508545,-1298877396,-489495599,379287114,681740852,-994089292,-218345908,464904112,1799122474,808812492,-709133300,-930950274,1435757307,1524061306,-572854041,-1624547936,1031417987,-1768530456,-98268436,-706726001,-662479231,119181623,-1369347424,-1636122874,-332467105,518239787,213959040,1181041497,-406279044,-937298694,1816224922,-1352829524,-2116835872,-556905022,2007849085,-1398515964,-1857650823,2063777850,2074941945,-1807451930,1867351278,1027928416,-716493845,905411146,-1269939814,502687660,1492579579,-930989360,1092856878,-805731970,2028425702,312921429,-56786318,1670567329,1236900097,-645361398,505345716,319708839,-2102366558,-1001619875,-254030559,768662732,1203139025,-1277422382,510642749,1396632174,-1300520238,627424204,-866326076,-2012832088,-1969850612,-1078554571,-941276516,-1454803516,2109653456,1941144628,531213295,89537442,-1807420565,-1489802974,1809198611,2015360491,536498403,-1401745849,619165590,-1137545110,-1641168227,550306090,-850620456,-1968180127,983837767,543557375,-934928262,-1844016035,-236552142,-1214170701,1488857089,749674294,-1416095151,77068309,1506243855,-592865651,775513772,2070325151,193910639,1734372990,1651612760,-743265501,-645168112,421792299,-1083465028,2043018465,1995427251,-1824862955,464332210,-1002473016); -/*FRC*/Random.twister.import_mti(167); void (makeScript(14)); -/*FRC*/count=200; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var imul = stdlib.Math.imul;\n var atan = stdlib.Math.atan;\n var NaN = stdlib.NaN;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n var d3 = 2199023255551.0;\n var d4 = -2097153.0;\n return ((((((0x5b582bfa)+(0xb23a768f)) >> ((0xa637a8a2)+(i2))) != (0x64e4748e))-((imul(((0xc230779d) <= (((0x558bdade)+(0xf87f8f79)-(-0x8000000))>>>((-0x8000000)+(0x86306af7)))), (!(-0x8000000)))|0) == (~~(((+(~(((0x5bf96c0c))*-0x956db)))) * ((d0)))))))|0;\n d4 = (+atan((((i2) ? (d0) : (((((0x0)) ? (d4) : (d3))) * (((0xfe20904f) ? (d3) : (+(-1.0/0.0)))))))));\n d1 = (d1);\n (Float64ArrayView[((i2)+(0xfa1433b2)-(0xc65f7f46)) >> 3]) = ((NaN));\n (Float32ArrayView[((0x47f3ceb9)) >> 2]) = ((d1));\n {\n d4 = (((Float64ArrayView[2])) % ((x = /x/g )));\n }\n return (((-0x8000000)-((((-0x8000000))>>>((((void version(170))))+(0x166aeef9)+((0x7fffffff) >= (((0x947ec52d)) << ((-0x8000000)))))) <= (0x70b08d38))))|0;\n }\n return f; })(this, {ff: Int32Array}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [42, -0x080000001, 0x100000001, 1/0, Number.MIN_VALUE, -Number.MIN_VALUE, Math.PI, 0x0ffffffff, Number.MAX_VALUE, -1/0, 0, 0x080000000, 0x100000001, 0x07fffffff, -Number.MAX_VALUE, 0x080000001, -0x100000000, 0/0, -0x07fffffff, -0x080000000, 0x100000000, 1, -0, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mta(-1805424676,1724678009,2035139374,-367885804,-5687680,-1863343942,1954482211,-1171649349,-1856572725,628458863,-206024331,-335821157,-393621178,-1409877405,-680482762,1551957479,1344704012,-1861757809,-1167572307,-565290929,203339858,-1730015920,846593801,-1174585575,-843240324,2030683085,836562108,792508420,-765073963,66233650,1764047686,598414040,-196576451,-1649283418,42762396,-1520335300,557548872,498352862,678465223,-1064607783,-1780165163,-568008905,1230429004,905096517,356834363,-1523697966,-1257603356,-267550840,40771254,430416614,1802832124,1131939798,-1612280444,-33319948,-803233312,787249647,261721882,-380877805,444955095,1609477850,-408291030,23121072,93671597,1579645346,-440411726,391768119,-972433145,385543864,-876371656,-1737462416,-195751696,-51860150,-1612366199,-1962787944,-1295088269,-416038244,1624362996,-2112204446,2061466184,-1527233392,-1891774761,488122489,-1813202773,1357686315,952926672,-2042202380,-1636404028,2068077388,2126588522,-1715357095,710342674,-161350509,453924383,-794608928,1770998708,-542692821,680576214,-534427847,1761525070,-1321831085,1057058484,-1419143994,1922347233,-960918874,-1479107702,1477961509,-455057327,2113281852,-916727448,1275246936,-1914198287,2013274439,446111528,-2095258728,298555495,-732291758,79017762,-824331335,2049769955,-1158410478,757475954,-362491304,453937456,1747091510,-1519803035,-1426888669,-920598108,-1802859606,-1059302703,-1260815311,-1821777545,-290844423,1136055598,754662116,-1619319446,-1722043031,504130199,-1315641965,1645773732,-1017289219,1848622954,-1970408765,-540380468,1614917801,-1102669192,-592013656,363656012,206696888,-2084464986,136616818,-1963035786,176684211,630366100,-1483238271,-59179020,1737099000,724813103,3580135,-638146918,-1614691907,1741226064,-176690027,2142299243,-1938454405,-66004712,98327978,-733639319,1660336980,1751451493,509600554,-49948833,639752606,-1508248694,-2094191109,1301616561,62017747,1507879523,269287301,-1078047742,-1523163754,693642927,-1932756066,-227093331,-1609174461,80601374,-1098819010,1876753499,871257986,-1564568272,-2027229391,-1739874703,626028957,2094943871,-29397497,717098235,-687127911,-1039168024,-144713834,126236549,1747527025,-1893635395,2015032001,2029788375,1693714689,1593083438,-1574653138,962117581,-1431816716,1050392309,785994968,752207452,-1922964190,-1088906674,-780058804,-1058478156,716194758,-1756770770,-854890426,-700152821,1007190573,-1278356401,-72024431,896973643,673830189,939094871,1025024575,-293507576,-674532748,-1474841397,1439676271,-1991816534,-1204631105,-1157574574,1383140797,658139096,-1958372612,951874239,2053998637,-721197055,-2126014818,-814161249,-238089485,-640244887,403619322,-164584059,1386356991,467503409,1857726426,904226679,934746670,1800373124,-435969646,546981736,235191097,-255075470,-228710021,-72725338,1983927948,-1147250193,-750148195,-1319495651,-710883340,787766209,1017821189,-1942744113,-488102402,-1226006714,1070821910,-2020262672,-1681677838,-934520533,-2145751368,-1198941174,1252438108,222761601,-612305205,-481194181,-828235752,-884785891,181697259,155143231,2009613789,1736465650,-1628203135,955662187,671822879,-182453163,1732415119,-109633189,1816350933,1132724243,1706362782,-1189353409,-2107730386,837680354,-503570211,-1508764262,2141273871,1298101929,825961020,307001867,-1830786442,777642765,-771289921,1325980343,588113726,1997712980,680879918,-847614657,1865946770,-477639464,-1694220080,-1156363937,-1039515558,1611874141,-1435095290,-330371654,1186206995,1376845325,2048477824,-1810325965,107819995,1980741399,1084050888,1291217194,-1783304252,789788692,-742768450,2064684951,-369314187,-548841976,1377394335,695243321,-1922295622,852174200,1097640985,-398076592,180513755,1536630844,-774972654,553991826,1547570992,-1680497555,1628727568,-1088229108,829462963,1241795900,-593960048,-1011683442,1864529445,-1207914503,-1959727819,203804798,151552145,-927329923,-822518624,-911829306,1874554247,1059962485,1683933005,1311936243,-2007810915,-426442344,-1377802483,-106940760,1942291800,-1129754144,-698309641,-905346690,1266842250,894902192,465105513,-1617903190,1156248865,636445539,-1277930441,568888155,-1654804047,1739454167,413561399,-681594732,1793724695,1414973516,-568562413,-1033061445,-1772692453,1087673713,425000021,-640297596,486877066,-2001754052,-509366472,1720204581,-1379589241,-43667755,1668584600,-230772489,340012206,-616965581,1221194986,1631496323,-363432251,-1181744738,-1421108234,1151699970,493028283,-316963971,1835793772,541027517,-619977236,-401121159,944005668,-1502319317,-820011478,1756724667,-1318950769,-473292344,1694511555,1316557474,1480024412,1574482698,995577064,111717415,2035372088,1987778768,-1903843428,-2034164816,441432818,-1197504530,352643690,74555476,-1169464052,677508054,-1429661069,706412308,-1618238573,-42960299,-1709237710,-414111656,-1670069534,-365450328,1580342289,-281981442,-18332101,-553396367,1433351666,-2062845322,-338551298,-933467071,1823866354,2099512602,-1563488096,1521915410,-1065859733,1165103584,-210378761,83731219,1907051837,556605544,1467549610,811058741,15037002,-1435382390,-311864860,-186365720,930143194,1792710540,271858265,1338987092,166600555,-711939658,299882146,1316527153,1349395006,1833254116,-1645090586,-211601358,-542578262,1389061906,230615787,-740318648,-1534528807,1657566949,358555243,-663779566,2139717994,1112273408,-2057729054,-1024247539,1571958004,-903372344,-156833863,776135463,1303966629,89954021,-1734169633,1378381669,1689147829,1081588902,-493048027,-1044592810,1467147831,-56756347,787033758,-292763199,1135706605,1191995841,-1197862369,780279755,-1881039419,-708957020,749173361,173311813,-1939743885,714629463,-857139634,1952050995,1767489045,32796193,1255845277,-1355465709,-2046282674,-1368814067,1638382852,1961497083,810365919,-1027374812,-419076716,1214616114,963204701,-1657121988,-1609101241,-176911116,1903349396,-1833994659,-23184639,187231471,-1784185195,-1934951930,-67462225,-1385339205,-2100485188,-1138490236,1038443225,993359118,-154222034,1882945267,-474063804,416238443,-979201475,442953965,1456556519,-615523310,-1704922442,-134521386,461455744,-838830390,-1556414725,-1035826966,389960448,1705886389,-1893770969,1839785116,-1488278006,-1706167209,1523521389,719344867,-1067423523,181821782,554052698,2029675385,1763550413,418376836,1396284501,-1909834122,-442721428,723597681,-45378433,1306727920,1876390192,1571568243,-1234865771,-148857158,1601893358,1829793878,-1408796897,935818204,-1563350747,760510135,1885378870,584143089,-1412174493,1843150189,1790378097,-2046418078,-324024686,-1747111835,-250758836,-1836891703,-1145843305,-1796668464,1562125178,1896642609,-725667964,-1962262998,-345421024,-1008386334,1656011468,-575247730,55212826,2057801219,1587765459,-1511593180,1911315293,-1450895077,-1257236596,-929066432,-1759872670,71950743,-990418141,1028715986,-1330430964,1097541756,-1206975719); -/*FRC*/Random.twister.import_mti(88); void (makeScript(14)); -/*FRC*/count=201; tryItOut("o0.o1.o2.m0.set(m0, o2);\nfor(let [y, a] = /x/ in (\u3056) = window) {(true); }\n"); -/*FRC*/Random.twister.import_mti(249); void (makeScript(14)); -/*FRC*/count=202; tryItOut("mathy5 = (function(x, y) { return (Math.max((( ~ Math.sin(Math.trunc(( - y)))) | 0), (mathy1((mathy0(Math.fround(((Math.fround(mathy4(Math.fround(y), (y >>> 0))) | 0) ^ (( ~ -0x080000000) | 0))), (((( + 1) & x) ? ( + x) : x) >>> 0)) >>> 0), ((Math.atan2(( + Math.fround(( + ( + ( + Math.fround(Math.min(Math.fround(y), Math.fround(y)))))))), ( + (Math.log1p(( - -0x080000001)) && (mathy1(( ~ y), x) | 0)))) >>> 0) >>> 0)) | 0)) | 0); }); testMathyFunction(mathy5, [0x080000001, 0x100000001, 42, 0x0ffffffff, -0x100000000, -0x080000001, -0x07fffffff, Math.PI, Number.MAX_VALUE, -1/0, 0, 0x080000000, 0/0, 0x07fffffff, -0x0ffffffff, -0x080000000, -Number.MIN_VALUE, 0x100000000, 0x100000001, Number.MIN_VALUE, 1/0, -Number.MAX_VALUE, -0, 1]); "); -/*FRC*/Random.twister.import_mti(580); void (makeScript(14)); -/*FRC*/count=203; tryItOut("x = ({\u3056: /(?=\\2)[^]/i}), x, x = true, , x;v0 = t1.byteLength;"); -/*FRC*/Random.twister.import_mta(-30759987,-408994908,2109781472,518665155,-1574852968,1520907600,794176884,-1794751048,-690916909,1305418520,-2120306946,1417380894,402139138,-2085669790,-821253112,-1905841619,1586807986,-1400247246,1196291191,-1513783839,1769027435,-1907663367,-574534129,990258484,-556065327,507959929,1859062842,-968795419,-813894395,-1303149037,194655134,464718511,1541152057,1161289754,-1459902958,2029793650,-1542243556,-1490417496,650558624,780836960,1812317558,-2080750082,528819359,2040362346,1285883768,-1246465396,-2031158785,-1640703958,1505551489,-1330512376,-898753003,-944821629,330576904,355194346,1823579272,1568297375,1842796477,-1858593324,-595425126,925458310,823864165,-1158727455,2020260731,42478316,-767478130,276664790,-1508628808,-788162444,2068376930,284172276,1849715964,-1724547633,1282343591,369056720,1648769004,1041267659,1365445263,271221184,-1886532946,771059590,137121097,-1036678248,-54523615,-809901408,-1481913949,771181703,1761424333,-418442713,-362681191,392203785,660718964,377266909,1977856388,-1092615150,1081983603,2047508812,-459087642,1898170434,422650281,229169215,1897567190,-1607117815,-1044354442,-1839756653,-1569610374,1474656114,1343365376,-903797387,632347969,-654898586,1569895011,600412255,-1905267703,72568904,109737176,1208900820,839365232,-830058119,-778890809,583727626,1550571321,1282615993,2127293830,612982398,1249456256,-889591073,736295121,-1920169908,-215401192,310362432,156818743,700381349,789891887,-1836596855,1974630956,595200352,-256897918,-475842673,1178089760,2084516698,166278955,-481311904,315814692,-1303499897,-325687064,-151880414,1003330053,987086429,-1294168169,1967411016,1073025730,168166561,1331816610,1683656471,622086811,1474203226,57872922,-620753253,-848752255,-1109068062,9025646,613566976,-2012469278,463842873,-839813134,-561868041,-701369440,930596666,1440802552,-1922429037,-1821342702,433756307,-107476360,-2026350466,-238273413,-1390974614,-1036561592,-1846208393,-1224231513,-427451655,-80893520,-1378824327,-1495975730,533383932,-1457136502,432427080,1183701039,2085567182,1989849176,-487977925,1769054516,-1976311465,-696803606,-293149101,425655536,215743385,286845882,1556973695,1102308597,155530724,336097523,938868605,281109960,-1147977529,1276017389,-1264019704,-1041549954,1297044879,-66723508,-711991860,1678002269,-2110117975,1804264636,450100697,201015600,-1371403213,392818558,1538255809,1914496581,1215416504,1942533877,-939914003,1240150378,-1079706458,926408140,1982570360,-739591645,858376567,342905036,2036535477,-604248125,-6173007,-1432943791,1019944600,-1868265274,327678035,-370053167,840411681,349720401,-380835438,1648361924,988761443,-1033866032,-58448209,1557154962,-743735248,-1835520500,-359975921,-1785671442,-395931699,134739453,-1902756251,-2142488774,1454039427,644284039,-1297493162,-915165867,-1889685578,-350263106,-1703304728,803701728,1720269613,-6169169,989954596,-698475945,2108748547,1902319979,1875860238,-837053177,-492062507,965755446,283232637,-790156638,424001632,721163152,-1323527229,-673124860,919023684,466462505,-1910299960,-1211676709,1601286897,-888460672,-1465550633,473249540,2131084911,-578770914,-1800926441,1439047764,-1063253075,810723619,1472492110,1364384449,-18687799,2029205701,675407791,-165138260,-773363849,-2119636783,-599683203,479162091,-1402833227,-1910813365,-1343236341,28078687,-1274765948,968875025,-1214657783,-1247182639,-855380147,-2110012728,1663753683,1290955946,-2114184004,-231471708,-1673094588,-315476897,-1755247955,728762269,-421048766,1692282144,-495802073,1514416040,-1025911693,2079965088,1320730019,611711072,-1785042750,230932460,-1369128590,1649644803,801201337,1364425519,158839740,1939850150,294795241,77500244,1884889725,187629014,-554863808,709646288,-1838672335,948201564,764857078,255241599,-191809703,210144194,1035116798,-1561681548,-71103835,-132540357,208394431,1467292232,-1766375248,-353360356,-1745193349,-55916708,-1882803502,-2103890980,-1861927799,262598424,116980448,-326989255,-1939859498,-1706969821,1483510224,-1912089986,1827534740,-2037449179,142179580,647684716,-480376771,227522413,-1338860693,-1170791271,2065726181,-488495281,-718579338,-1621258907,1691234536,-2010695869,255798973,-505935860,-78774504,153342025,873196518,675690519,744706732,1779489221,-1940130820,1802795429,666753471,1365816299,831230997,1187876214,-168358308,-951576124,669309396,2109629158,1343221478,723243971,-1392231244,-122510191,-1603955383,105654645,411223238,-1875876785,1916448561,-2141897329,1272330285,1139342318,588733120,2118754141,-1411394003,-34161066,125804732,157459461,1313679461,-1507307015,-124008593,-215138265,-2097014212,812864389,707094482,1536121777,47409453,1147332765,138916612,2104986184,318354914,-1497959871,406749958,952412910,-1796846860,-612223847,464874681,-1736421163,397204593,-872397096,512831848,-322813170,1013180367,1212063729,-505367527,823685432,1889098622,1033422407,-1896992758,-1314852332,2004431847,-1362922250,1517065925,-820048622,-1319914797,-1818519981,-821677670,-658635020,-882018313,-736277148,733237396,1018800061,-2053345789,1697861793,-1820111963,1773127628,565511319,2019443809,1168615662,-1492061687,-391634933,-1268003330,-488328619,-73625297,-1539657602,-462176132,-333361929,-2018313448,1633830516,289536975,-1448876514,-1645860816,-838306518,554626236,-448500004,-258380029,-902131266,-1730845671,-677990471,139472215,-625865397,-648396505,410508059,-1033618930,-356130106,-90784194,1040650858,1240736976,430677093,-1197003216,-1338423031,-336329820,-1917167475,-429390708,2041461307,-837336979,-1589435626,191273752,2039412961,-1047933748,-1579926318,1744729392,-2145926023,-532833527,298068074,-1294172112,-1226676462,1829004408,-1449120020,-341732257,-541002729,-1108950290,-1227927780,1485977901,1431668878,1355370055,-1597429693,-1346159177,2025695218,702442820,-2138676011,1726803959,2065052709,-859964722,-1444882464,1373529686,1765099129,1591271640,-999374901,-2015420197,-2092142808,-1063613086,-1406793754,1539087351,-257388840,-1408865350,-899347397,-684171168,-1313785782,1504399590,-1904218367,1891221599,1449021865,59294968,1602770571,-665139198,717456521,1727074000,57856374,1683911993,-91411798,-1745834000,88846824,37183724,-793721440,-2076829420,-2024380552,1742075889,1864853371,-2098528228,-1645090497,-2146391985,54614845,1141197228,194221305,1333587272,1853000979,1550741573,-1628958013,998268967,-525617234,344803493,-1855952575,-129560692,-903676041,13482370,-646278606,426055876,-1073453924,1053341307,1692570270,8475064,1973885770,-197156553,-1929067569,448402653,1416156872,1895800922,-153882025,663703593,1207645829,-558069034,465152094,1367338279,-1486407590,-1600127770,-22081004,362048910,-1493433852,1318720304,1166245842,1293221806,466658779,-705333609,-1517550523,1995135338,241111269,-942223539,-1336395343,-1664164623,264292610,701630995,645405000,1895317263,559282429); -/*FRC*/Random.twister.import_mti(128); void (makeScript(14)); -/*FRC*/count=204; tryItOut("mathy1 = (function(x, y) { return (Math.atan2((Math.pow((Math.sinh(( + (x & ( - x)))) | 0), Math.fround((Math.fround(Math.log1p(y)) ? Math.fround((mathy0((Math.max((Math.PI | 0), ( + ( + ( + 0x080000001)))) >>> 0), (y >>> 0)) >>> 0)) : Math.fround(( + ( + ( + (Math.tanh(y) | 0)))))))) | 0), ((((( - x) | 0) * (Math.fround(( ~ Math.fround((((( + ( + ( + y))) | 0) * (y | 0)) | 0)))) | 0)) | 0) | 0)) | 0); }); testMathyFunction(mathy1, [1, 0x100000001, 0x080000000, 1/0, -0x080000001, 0x080000001, -0x07fffffff, 0x0ffffffff, Number.MIN_VALUE, 0x100000001, -Number.MIN_VALUE, 0, -0x100000000, -0, -0x0ffffffff, Number.MAX_VALUE, -Number.MAX_VALUE, -0x080000000, 42, 0x07fffffff, -1/0, Math.PI, 0x100000000, 0/0]); "); -/*FRC*/Random.twister.import_mti(394); void (makeScript(14)); -/*FRC*/count=205; tryItOut("v0.__proto__ = g1;"); -/*FRC*/Random.twister.import_mti(406); void (makeScript(14)); -/*FRC*/count=206; tryItOut("mathy3 = (function(x, y) { return Math.pow(( ! (Math.min(Math.fround(0x100000001), (Math.fround(Math.hypot(Math.fround(x), Math.fround(( - -0x080000000)))) | 0)) | 0)), Math.hypot(Math.cos((1/0 >>> 0)), Math.fround(( + ( - ( + ((y >>> 0) ? ((( ~ (mathy2(x, x) >>> 0)) >>> 0) >>> 0) : (( + ( + mathy2(( + x), (x >>> 0)))) >>> 0)))))))); }); testMathyFunction(mathy3, [Number.MIN_VALUE, 1/0, -0x07fffffff, 0x100000001, 0x100000000, 0x080000001, 42, 0x080000000, -0, 1, 0x100000001, 0x0ffffffff, 0, Number.MAX_VALUE, -Number.MIN_VALUE, -0x0ffffffff, -1/0, -0x080000001, 0/0, -0x100000000, -0x080000000, -Number.MAX_VALUE, 0x07fffffff, Math.PI]); "); -/*FRC*/Random.twister.import_mti(622); void (makeScript(14)); -/*FRC*/count=207; tryItOut("mathy3 = (function(x, y) { return mathy2((( ~ ( + Math.round(Math.acos(y)))) | 0), (( + Math.asin(( + ( + ( ~ ( + ((Math.log((x | 0)) | 0) >>> y))))))) | 0)); }); testMathyFunction(mathy3, [1, 42, -0x080000001, 1/0, 0/0, 0x100000000, 0, -0x100000000, Number.MIN_VALUE, 0x0ffffffff, 0x080000000, Math.PI, -0x080000000, 0x080000001, -Number.MAX_VALUE, 0x100000001, -0x0ffffffff, Number.MAX_VALUE, 0x07fffffff, -0x07fffffff, 0x100000001, -Number.MIN_VALUE, -0, -1/0]); "); -/*FRC*/Random.twister.import_mta(1412121606,56506390,-965589032,973799567,-1067997668,-283528661,-1427720299,-198434493,2120567114,-1862323408,403139902,-1951848050,1241621020,611233258,-47415543,285474052,-1113907148,123270322,-1936347501,-455962769,-799001018,1371555361,-1525099019,1162378768,1428801503,118805912,-1878164865,-1522953748,-1024320773,28307794,-1667856756,-913230837,811746799,-1295310520,1681955775,718092128,-948744544,-1998492983,217070729,-1367166354,374472334,449471560,576687069,-896483150,649715337,-1841212463,-1359292404,-993086553,1757521018,-1045988974,1949373844,-126162928,2112674066,-1734624590,-304541995,1627182611,-1177568199,-35991010,-1802330535,1497047961,1326603096,824221702,720389602,362364154,-844978456,1983464445,-83785825,336310653,701303661,1333686815,-801790250,1479525253,-497578525,-2058824184,1692680047,1243980983,-1406144354,-474667733,-1159988428,447507811,1081639864,-165064832,-830531762,1463516222,33252278,-1938242171,1338726160,480323984,411199077,-1956280669,1168133640,849474965,-977137854,543953089,628267965,-264942979,-1839986969,1862704693,-1579430230,1903783227,-1866889538,-666428661,1612332191,-1160982247,-431430860,-832498676,-977921954,96968210,-1925667291,-56134922,-245202927,1605798423,-469920522,1689997148,-1542395373,-113360335,-1349537783,1126021132,-410576361,-633782469,378604399,-725327204,-846963928,-1730520402,180030124,-1804864102,1402195112,694014155,-369702685,845669363,-177575041,-1487095796,281883854,473289441,1789603989,-186254193,1094319352,851606214,1462427604,-1020998766,-171352453,-826910391,56871476,-1227769578,-681625225,-1621957078,1959452969,744529070,-1329124449,-926750463,767199941,2115740855,626661461,-79997491,2108757636,36785653,-352263911,669446173,1949433848,649450215,289141878,1616406216,777473385,-1324870647,-217954228,1764727100,-1962203587,-1362728344,418107502,778941944,-1161651219,-1104739040,-563231488,1644037805,1439362952,622780424,-631134179,-1913157820,-2076643152,569943197,1359529376,1760230464,-1353788720,2074336,-578600603,1107907396,-200973808,998302126,1896293616,1843251294,1544889576,1442019598,-1968615064,1278095296,-356362663,-55323414,980072239,-1553246600,1355435066,-470603524,1948368182,804250317,-1019599303,565380991,32367578,831158168,1489510978,-1633874880,-1805058830,-23135873,1055498511,996106606,-773705247,1223253814,-1778838755,-1639874264,290668922,-689071465,711455929,1731863784,179146520,-130333628,269662033,1917445365,493737716,-1073360191,-506876775,1578331232,-1494810477,1921451238,-590129400,202676075,-1317257881,-1565199370,619146677,-745189763,1358714623,-1956382135,-1089512121,992060158,-1609450620,-602127007,-162963828,-739047811,781005994,-975586923,144680375,-1700241871,-1124355816,2014552020,-619982339,353360962,-179759738,439793123,-1133676473,1061387406,1174480521,-384224557,-2068978433,1737589791,411503617,-1030175305,2001598066,1968501588,1865524119,-1387724573,-1721425943,-1470855982,-224982787,2123868870,1541969107,248138712,-555502623,-1148923452,1162365593,53597048,-1698373200,-522225953,-9733772,-1090008544,1848365845,-933454955,-1381573977,-137025605,1532002806,-1168979370,-1972922675,636570482,-2005396209,-338583124,1048249821,2080602967,-801071290,510700322,-1725697419,316216123,-1098550917,166290017,-1358449436,890800713,175201677,-1159649003,-2066022419,1978759534,-105419799,2131535331,-1738000328,-2086341873,161483001,-1889339862,-1079598584,662853091,-1937323045,919688642,1384277170,-149697387,1507701546,-1995375335,30560948,-1213392430,-2007108467,1213237353,1213272219,-274147017,-783126469,-1277087078,2075416922,-698853048,-814384206,-2009381183,874827674,1474948732,-891630126,-59115123,-1811532487,-1887968881,1568887575,-185204998,1891644343,-1227112674,-192416613,-128786883,-269146294,823940713,-530738305,-1580965898,-991924412,132406229,808277777,679487466,1206322734,553748360,-1624222270,652992422,-72852695,-1750881459,1971632794,-1272512879,1993774743,1461601090,524922769,-974994090,-1294600348,-1794009418,1593061934,1344878315,-1252904872,1871090102,-1970608329,271497986,511053271,143675934,507714368,-1327905862,-923266813,415140071,-1571338822,-81986392,209501379,-1203686613,632058444,1297945218,2140648057,916044258,1038288366,-115715284,813988785,-1120196533,1718984502,-1025130140,1004423177,1119789414,-387783703,-1469194106,-1807880890,2068831372,2107627794,-2078430562,-1776225709,1390976062,2004621559,-1332015841,-333145485,5180536,-2118720217,354972232,-1041415206,-936711240,-1811328887,-1900368089,294914944,2075082260,-823261043,-1963049669,2017407472,-323041747,-738988877,-704004917,-1330238874,1782006180,229581534,737365828,-375298301,-1901745624,990532145,-336361301,-405737090,1251637266,647182396,1231679430,1840006908,495957677,1006195426,-1409185583,1246694083,18900039,742401944,417956451,1947728346,-410840986,-1882186738,686746682,934898683,1239382502,-291424472,-1381816507,1615674605,1383986706,445607272,124980522,-2039013560,987910269,27573111,822925167,965768365,-893910039,-1908863038,-1226968646,1506721569,908615270,963802152,-814320326,1130126192,606844185,45205725,438882216,435320457,714175071,826336699,-1401112461,998895496,-901002014,-1748704854,2057717129,1974487189,-14496620,144882926,1252236485,31338317,-1145437794,2100465526,-320205287,232868832,-1488641577,-1945863668,1372579372,-1789762788,-978867595,1992913869,-2098698690,-1603817978,1308868240,-668208768,-466730762,-145289753,-697492843,-347417557,1203438539,-807510141,-1424379341,1683049821,914114783,-420577606,617083225,-1333860524,-1160235784,449316495,1324299635,-1732868612,-564535233,1859548504,-1303970643,-223289757,-1828071723,2122348795,-17160397,-16664870,-761037011,-1964265085,-1900806607,1159138476,1818385980,947115900,266954375,-2138749281,1643027168,1229347248,513698607,598387616,1856256201,-781003869,-538339698,737988115,-259585261,775348460,650934421,878516496,1698792122,1713660535,-322204310,1623348785,-1504405098,-817394695,266241783,1965738971,1783521924,-277510665,-460825346,-697839818,-1459273621,1569669436,-795471289,86878464,1469660507,439430099,-66192166,-1987957126,-1627175463,1789885225,-2128438742,-1092869767,-1793227441,-1490058401,530079645,-1218523834,-1709016944,406895740,-168659819,799185533,922076082,-374060248,-1033947223,1023747413,-480372256,-1445614205,-2028806164,-1090740652,-2094037278,290741343,1283342671,-1219273767,-2020877073,1807377449,904029787,-1734625400,979639029,1998352652,-651869069,-141325287,-1298833480,-1346233581,-35433878,-1885083693,1627884265,1169357522,-1292552422,-1303383306,-726067940,-1301972605,824008235,-49997931,2035242831,185406666,-233260087,-2075429470,1186368004,-1421921751,1122073556,1872538987,1495125422,-1569104944,-1911484806,852812241,1274140420,589041894,-594130865,63008099,-323905874,90097127,1694717503,-1152259038,893993502,-219312083,1468693265); -/*FRC*/Random.twister.import_mti(134); void (makeScript(14)); -/*FRC*/count=208; tryItOut("\"use strict\"; \"use asm\"; v0 = evalcx(\"r1 = new RegExp(\\\"(?=\\\\\\\\B)+?\\\", \\\"gim\\\");\", o2.g0);"); -/*FRC*/Random.twister.import_mti(259); void (makeScript(14)); -/*FRC*/count=209; tryItOut("for(let e in new Array(17)) for(let x in []);return ((void options('strict_mode')));"); -/*FRC*/Random.twister.import_mti(300); void (makeScript(14)); -/*FRC*/count=210; tryItOut("\"use strict\"; this.a1 = (function() { yield (4277); } })();"); -/*FRC*/Random.twister.import_mti(319); void (makeScript(14)); -/*FRC*/count=211; tryItOut("\"use strict\"; g0 = a1[v1];"); -/*FRC*/Random.twister.import_mti(336); void (makeScript(14)); -/*FRC*/count=212; tryItOut("mathy3 = (function(x, y) { return Math.min((Math.tanh((Math.fround(( ~ Math.fround((mathy1(((x ? 0/0 : y) | 0), ((x >= Math.sinh(x)) | 0)) | 0)))) | 0)) | 0), (mathy2(Math.fround(( - Math.fround(mathy1(Math.fround(mathy2(-Number.MIN_VALUE, (x * ( + y)))), (Math.atanh((mathy2(x, x) | 0)) >>> 0))))), (((((Math.fround(Math.imul(Math.fround(y), Math.fround(x))) | 0) <= (0x100000001 | 0)) >>> 0) != y) >>> 0)) | 0)); }); testMathyFunction(mathy3, [-Number.MAX_VALUE, Number.MIN_VALUE, 0/0, -0, 0x080000001, -0x0ffffffff, 0x07fffffff, 1/0, -1/0, -0x080000001, Number.MAX_VALUE, -0x100000000, 0x080000000, 0x100000001, 0x100000001, 0, 42, -0x080000000, 1, -0x07fffffff, Math.PI, 0x0ffffffff, 0x100000000, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mti(614); void (makeScript(14)); -/*FRC*/count=213; tryItOut("mathy4 = (function(x, y) { return Math.fround(Math.max(Math.fround(( + ( ! ( + (Math.pow((y | 0), (Math.min(mathy1(-1/0, y), 0) | 0)) | 0))))), (Math.fround(Math.min(Math.fround(( ~ (x ? Math.fround(mathy0(Math.fround(0x07fffffff), Math.fround(y))) : Math.log(x)))), Math.fround((((y >>> 0) != (( + Math.hypot((Math.sqrt(Math.fround(((Math.fround(x) || (x | 0)) | 0))) | 0), ( + x))) >>> 0)) >>> 0)))) + (Math.atanh((mathy2(( + 0x0ffffffff), (Math.min(y, y) | 0)) >>> 0)) >>> 0)))); }); testMathyFunction(mathy4, [-0, -0x100000000, 0/0, 0x100000001, -0x080000001, Math.PI, 1, 0x100000001, -0x080000000, 0x100000000, -Number.MAX_VALUE, -0x0ffffffff, 0x0ffffffff, -Number.MIN_VALUE, -1/0, Number.MAX_VALUE, -0x07fffffff, Number.MIN_VALUE, 0x080000000, 1/0, 0, 0x080000001, 0x07fffffff, 42]); "); -/*FRC*/Random.twister.import_mta(-2051885419,-1256599105,-1763332954,1465371641,1579115733,543125862,-481186810,-24886910,492301264,-1913719483,-838959233,-251035257,-1668417070,-1240824613,858701974,-802973545,-917354654,-411216282,132067653,-1144785008,669069060,993194051,143883948,-1103924754,679028104,2024762083,-600218914,-1015287917,-1423675390,-375672264,-1218817336,-408245740,1342996322,-2038121476,149499165,406910386,1903791466,-1790991272,375471472,1734924511,361541703,-63927061,-1026854849,1166295957,-1194920691,1623459837,-1297051414,-1698568939,-1921999988,441824807,1849721370,1685651937,188665971,1771251965,-745239637,-2075404876,1340194400,-355366050,1059922682,-1448074642,-1370644039,1287036368,1021624347,530786140,761422875,-405526432,-148447880,-1889534540,-1533065608,837330402,-544332990,-1721527403,-287779977,-789364512,1985064550,-2116871707,-1837865021,685618447,729565946,681508146,1907833605,1726063850,-802701439,2110733997,1943985156,1778704488,-1458195169,424540641,-847931998,-142457832,1174397024,1411937388,1272372865,735466247,-284054671,134824492,178634547,-407180622,936975575,-485091468,-1299169647,651948307,796355168,393559239,1363985113,-2076872043,1713651280,803865753,-997487229,-76417448,-1203978073,-1454878841,-1409005679,-438914930,1473342826,1015002808,-226030893,-733264593,183371889,759268274,-121549213,-332817385,-1025584282,4884986,1717019889,1371156776,-2108735939,762745393,-1579820090,-352592688,1295005481,1808544199,-105488026,2100296502,2090063894,1264595055,-370788752,94605062,123608412,-676264206,-1693311295,664110957,-140291615,-1838843307,-369235325,740969394,435079328,-197005621,-1759009061,547385418,1116552826,1573024707,227564114,592956030,1216742498,-1448777389,-1654458998,539612207,1985979766,-2128620479,-1355843907,-460559038,11411697,-950205089,-511030831,1000513694,1224436393,-81058447,-1928027540,-1675017899,-1428031995,1083472125,-553488325,-1018086164,-791656531,-1992474236,-1515857342,-339094053,1323711869,-1770455932,-1218774846,116602167,208769599,10111924,-426805939,1371067681,1747064460,-1609030160,210435802,1494672248,-203622156,-221829971,-729659304,61571296,-2084915169,1268649115,1890722261,769121487,-2096323740,-933286803,1514558629,183556672,-120820405,-34347400,1636461699,661194219,-44679703,-830534693,-1594800540,1833128561,1598999395,-563804860,1030316597,831349377,-1053700370,2055029100,-108025200,-282633627,-284468677,110602991,-794020724,-731959664,-986770278,-1243150504,-1941759071,453113534,948161825,264865283,-866495540,-1198782686,-2007682925,-542520647,1896155293,673884675,1313232483,-333352848,290961598,191979779,-1399238408,-1937431536,1091311284,1208643536,550677366,-1642799817,1553545843,-627551423,798976087,2040330120,1195065257,-1138874739,-189489201,316518219,-1396932403,1527213602,-1663413804,288117657,1142922126,1812205672,225106116,-985183811,1052797432,1934612004,585796632,-538317698,445879542,-1009057189,860002998,-170949402,-2089068152,1983351433,1122068089,247438370,1023831839,1226573177,-1688662871,-2146243756,-214778473,301285024,1006298353,-450655962,-726280728,474961447,1722414774,575274651,-134680971,-485074621,-79132713,863575009,962481414,-86904278,-1196807640,88222648,-1460896271,1656722589,1597752566,584404506,-334191603,-938608336,1525114478,1927859566,1418421429,-1389076145,-81025710,933716712,-833399007,659052262,-263965590,-1401974874,1632690175,-1879773563,-1224301437,-325777098,829180553,-2141943994,-1144213644,-1583657929,1778551371,85379386,1342109829,-1762618344,-688478228,1378980835,-1495949720,-83609615,-1102416897,1241723002,-935707696,-718634168,-70327636,1969556909,1015139321,1948361776,1661025932,-1255173101,-245807999,860001495,-1056241371,1498704291,-1306161144,1330580739,16215887,539754191,-34001581,1537307571,-2069271852,1755201491,-138731897,2044679476,-127299614,-517123983,281692734,1775210000,47177467,647209846,-5245112,-619215221,1776292679,-1353462595,1078136934,1863976561,1608423837,637084580,32045876,-2036584601,-1262508884,502728048,-1603121623,123723141,1870846700,1636886485,-1775414438,-421763293,877046383,-459640578,555096679,-2046032890,1563299358,-1648635708,-655730039,1598448500,100221759,-297439871,-1293306462,-2087487619,480574905,-1223350159,109768891,-602556122,-973173264,-1001802710,-436054548,1291028730,1871991005,48602122,-2037593289,-1277473051,-1641573350,2029600755,702559970,2109000863,1108609724,1070250571,-920991816,1014372366,-1587680001,1846582416,-227702440,1683415129,-660155781,1153144831,1028510910,1492173268,-1915782301,339578484,256898617,-59000740,-1424323134,-1417155129,-2015591297,-766125769,374482754,778222401,214751631,-1270892526,-2128172987,-253436965,-1391325084,1225771195,776220067,-837136843,1782353393,2088158706,-1470008996,24709207,1474791719,-1227795032,-130079841,1699035022,-307982985,2055302194,1710888092,1139133388,1586691487,-824233724,553548056,103117970,799625702,-571768264,-672749563,-971728066,1906220985,362411717,-1701892650,-1119664216,-1281542360,-1958292435,-471662593,2109399004,-994187894,1841050249,261197982,803765211,1731992099,-1995969521,107284183,963173219,12922336,-1062939466,-952335562,2098617522,-1154401466,393956006,1053016410,-1940915006,1175294402,57303518,4675632,1834170550,251703172,-769276042,-193275407,-634719196,-1685687379,35497608,82043774,130279754,1050422360,-592682815,1916527931,1926847259,-1192742090,914779190,-1312021984,-773739366,133282163,1876329282,-1931297869,-66651801,-1036257820,-702121618,-886402615,-1473367052,1266262823,-351416771,1285104860,-275359895,1532797760,-655452394,-362080537,297978906,-1570623470,396898715,865731318,486542197,-1794328409,1188992619,176749923,1691828790,-619486081,-899155033,1418640259,1124216648,-1138143866,1969141661,-1191529408,2118404790,-458274778,1163800933,57593332,1251638364,1481877935,44400887,-2046598224,-1486928868,637600563,2071876471,-1118556200,488383847,-621752445,-670707378,-1820406899,1164434007,2138881939,-912302215,808581240,-515077471,-457917849,-1111146377,-1615101175,-938328330,1246203405,-52648065,-121168376,1546264294,-349405915,-1089473135,-1544806498,-790706510,1957751077,-1519935761,1722410603,1002845681,-444199994,-626757754,340088299,-33173962,-323057770,-835808594,995172118,-920450873,-1551476552,1126385825,1496396579,978942105,978729666,-1491615544,-1598385408,-1050094386,-688382360,-2140224568,-60883490,326792579,1491993977,1705887875,1802072344,2077042912,-629140329,-1121980594,2092141688,-822000030,-127039918,1785128858,-193171237,-2102709440,505759240,916792215,197946715,1444372292,660240617,-1815309958,20278150,613453826,638118205,520860879,-18836026,1417507650,1043783326,-1421892267,-1026847914,-1546315702,-996413376,-590987890,-1829911565,386201800,1800809950,488016798,-233734275,1034258368,-411397318,1916577484,1480670469,653439998,1092010930,100040591); -/*FRC*/Random.twister.import_mti(280); void (makeScript(14)); -/*FRC*/count=214; tryItOut("\"use asm\"; mathy0 = (function(x, y) { \"use strict\"; return (Math.cosh(Math.acos(Math.atan2(Math.min((( + (y | 0)) | 0), x), x))) | 0); }); "); -/*FRC*/Random.twister.import_mti(356); void (makeScript(14)); -/*FRC*/count=215; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var imul = stdlib.Math.imul;\n var atan2 = stdlib.Math.atan2;\n var log = stdlib.Math.log;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n {\n (Float64ArrayView[(-(/*FFI*/ff(((((/*FFI*/ff(((((0x9cc07477)) ^ ((0x8dcd5065)))), ((-1.9342813113834067e+25)), ((-4.835703278458517e+24)), ((262145.0)), ((1.0)), ((-9223372036854776000.0)), ((-4.835703278458517e+24)), ((32767.0)), ((1.125)), ((-8589934593.0)), ((0.001953125)), ((-3.022314549036573e+23)), ((-36028797018963970.0)), ((-134217729.0)))|0)-(!(0xf7d826f3)))|0)), ((~~(+(imul((0xf95ae075), (0xc48dced7))|0)))), ((d0)), ((d0)))|0)) >> 3]) = ((17592186044417.0));\n }\n {\n i1 = (((((0x2d997940) != (((0x67256ef7)-(0xfb16356d)+(0xfd175ac2)) >> (((-72057594037927940.0) >= (32769.0))-((((0x196a5873)) | ((0xc3a02854)))))))) ^ ((((!(0xffffffff)) ? (+(0x1e190b90)) : (1.00390625)) != (d0))-(((((p={}, (p.z = x = false)())))>>>((0xf9dec822)))))));\n }\n d0 = (+/*FFI*/ff((((i1) ? (-1.015625) : (+(-1.0/0.0)))), ((((Float32ArrayView[2])) / ((+(1.0/0.0))))), ((((i1)+(0xe9da5321)-(0xffffffff)) ^ ((((0x8d4f3*(0xfbe57a6b))>>>((-0x8000000))))))), ((+atan2(((d0)), ((((+atan2(((281474976710657.0)), ((-1.2089258196146292e+24))))) * ((d0))))))), ((+log(((Float64ArrayView[(((-1.0625) <= (4097.0))-(i1)) >> 3]))))), ((+(((i1)) << ((!(-0x8000000)))))), ((((0xfd853198)-(0x6a425921)) | (-0x84e6a*(0xfc087f94)))), ((((0xd74e76e2)) ^ ((-0x8000000)))), ((+atan2(((1.1805916207174113e+21)), ((-1125899906842624.0)))))));\n i1 = (0xb458e11a);\n i1 = (i1);\n d0 = (1.0);\n return ((((~((0x954694c7))))-(0x84322f5d)))|0;\n }\n return f; })(this, {ff: XPCSafeJSObjectWrapper}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mta(-1149409293,1653792945,-1894278724,-200079351,803537656,-122547781,1127495887,-269084393,-235972883,228197944,-2049273787,-1763692910,-2034866867,1692054773,-370557632,-379168558,1736648007,-710353340,-509983852,-118875584,789980473,-2087371991,-850632256,1114551686,-1958887697,584083680,1284177668,-726364092,-2077687097,-155240192,987405745,1178735122,-849865781,-1220498528,1884733227,-1864517655,199678587,483858335,476940568,1811008355,-1034567388,365528503,-2125726425,-527311163,-1433437971,1204467178,448230225,1715877086,-771285154,411635947,1994371607,1265725667,1809170335,-1050907981,1471945759,-41946394,-2010414585,-334780843,-1616984806,768385020,467767604,1137128792,1651351847,-2144857524,469921771,481260703,-827845931,1412081131,1637648786,788675649,354266531,693656146,359660738,-1072042891,-1902479733,-286178716,1093244570,1404286143,388308807,-1584106131,1579412163,-1105477477,902490367,-845826061,-282557424,369367549,-676074841,576268719,2080557894,1550048360,-155690249,-824690012,-29703609,375936593,1921174816,764824934,-499328573,-988444729,1583188216,1285690404,912503089,-713015084,1150572498,2055487610,859585121,946584591,1710259374,-137080126,-1842435003,-1639287860,356646922,627148272,1663669341,-913668441,160950983,-1815005376,-299034307,1232276544,1350457266,-1344214387,-1949614878,-1166275124,-1975337126,-22161116,1809790940,604398151,-1158853030,-1475323485,188327134,457171821,-374302375,1068891463,873300423,1712997796,-1105385441,-1292863352,-443645025,632163741,1353109518,1775603815,-673294834,2016008108,138403003,2122878483,326303630,1938545603,1790384323,-492135478,-1323519356,-973986470,170707273,-1720472032,-642130999,1845791804,1896260361,-1233754931,-1791605714,-805064802,646492014,1836258335,-1567035373,-1376827006,532786335,-1889242532,1712809406,1492323917,2117684705,1389298909,689561155,549899339,929832463,-1915185196,-1467246927,1390857137,129886307,199482882,-692772181,-1003645789,-1406419318,-82317471,454688394,1237870504,-2145130990,1444018087,-491868212,1828654655,1973541499,757862005,1464228188,-479303443,1567935943,385001556,-1898674670,1622698626,-1767812856,1429065966,222850552,530782138,-880671362,-1574954,1399796324,-2110456173,-315268538,-386339560,-1372806616,-2119481578,-516128259,-1365756172,-1143706971,-2003235856,-2079512585,91720339,572201429,-469559497,-1577542344,-1372973381,-106961627,-2049232868,-950669770,-632855237,1468665992,-2048059017,684664160,-2023227382,1802651809,-1000368643,-1692791727,-1655681515,1054139168,1379250474,47144330,-831572375,1974465637,-48258271,-639196881,-1186690382,-1859516826,-1818871751,-794641254,-433033705,1088389917,-108992261,2137294486,-1866004319,1642874683,794642272,-1004248700,-1786574286,76716208,773758712,-1844915460,74141270,1330896881,1122490350,86640983,-1507406080,-1061342924,1013969363,-35060205,-1841813705,-1897447246,1629747495,-1087815210,1185878016,-1540217235,1171047491,1360398608,-2081919520,-136646612,959708868,-405925676,755302333,-95680631,-1911339558,642728308,848752970,1349750715,-232099664,2044769392,26170731,376664447,1692985156,1968422260,719275490,76036651,2066888238,-310861101,122599351,2125450317,1043903539,-1031207024,-1854086708,-185070066,-516558674,1161822950,-828478645,1258602713,2020482708,271334629,-1507656121,1334537229,-217078750,-1256000752,-16216619,1548236,788989298,-140266818,-1216137757,552142598,-146732447,-1143000216,781586827,372136542,-1974092515,-342081685,-1878311236,1592310005,1213175402,-979341144,-1790864975,-428331137,1642594836,-920852927,605114595,-1609293830,2051052816,641160576,1266991207,909801181,-1008991503,1083478626,45917479,-1141586215,-2074841551,930982006,732141576,1810429890,206620686,-607210578,-94727387,1083689247,-1369191247,1728659014,-327570345,-1540054154,-223647698,-753975273,-1207960813,1407325483,-1037591995,-901112276,-206542722,927970300,-2059749890,1553148473,-423551582,-1784760852,-1986981526,-1859105120,-2098561578,1961284726,-1092004475,683073508,-1076801079,1800769317,-644397115,-1284321670,-534824072,-773253991,53048598,-1796338339,-799466906,1103553468,-1556830929,-508782135,-544492149,-886059720,-11447086,-154099814,1112394377,-1070691805,678590936,1857515436,1114409517,1384221561,-54171668,1132054668,-1066944789,-808741993,1824556649,-383928799,-925500145,1501675592,-461924187,-1842736272,1711936590,-978132115,597427582,705315140,-1987996689,-737466805,590384063,1440272901,1595106315,-1289364757,-1793230298,271855506,-1371396248,-1298326392,-1635447731,2053740365,2101453474,652331269,-351366728,319935067,46866365,799354577,-2020458713,-422513648,-973236813,-293500931,164597008,1328680167,-724334331,-19281272,-1660220084,40411988,-582642582,1009871190,19108961,-691826719,-1172563322,1478456290,1405613489,-1242522592,1589857205,-96759753,735564179,2016885898,283513755,-973999407,398021416,-1991930311,-1444882007,-2033612203,-796834107,-189619161,-1519258539,-421047064,-922166685,346835895,1714806346,-1694616023,-1026254907,1107006684,-701682688,753458884,546418511,565813234,1919368234,1944268307,1936727265,617598058,1259353554,371909975,-792712598,-966654900,591512198,-2029271390,1660689205,-612717070,2123212694,695908609,-1490900635,-1808385315,78722216,414646947,-1786215106,762949101,-1402600490,804433404,-773750690,-416801724,-1026768757,1066272118,-492367809,627484552,1861354224,-1052253067,-1554163635,502015515,-1126942851,758911502,-1947835018,-1274860479,1755520298,-566742360,-2032932314,1175962378,114425778,-637248480,-621076424,-1642551669,910106069,1558834139,340714960,771235552,-95532333,738820425,1684186493,-133960208,491076432,-323321013,2130071135,-47625123,-488439261,206771496,1980237168,1833413824,129491728,-1061886198,1532273701,758743130,1467587321,122436559,578525430,1569019434,1312557815,-700278260,235288,1733492081,51785236,2091427708,1034650616,322219143,1044582634,549955597,263185526,1117059372,-963014841,1911480553,1294651517,768352735,116409545,-505322523,787651908,1386971477,816668196,98639215,892834200,-2089307261,-596143874,341154403,-1968579635,-1928623504,1741453586,-1414307416,-1547413969,-1995974001,1369998643,12567574,96382357,1190244299,-1195184664,861024021,-1382944667,-1655842190,490686100,335214605,919212570,350271704,295995960,1989108925,-836477578,-1535894665,62872747,-1567363038,-1590292200,-1282995814,1231080723,1435451360,-370370470,1293895996,-1607856800,-1267235558,628683828,-597325199,180294218,-1721108812,1417682125,-891149820,-933034089,-1732059547,-60789378,1648695916,1292341995,673372852,508264950,-641772837,22828671,-1317212882,1805671816,1225187123,-195065893,-1787826829,-372510507,-824530692,-1588899960,2040067581,217749388,739218666,-2097161633,-1220076664,1993530979,-823332060,1875614966,840058249,-626982980,-1312051607,-324407787,-150027942,-1298042199,-33973418,1090838603); -/*FRC*/Random.twister.import_mti(549); void (makeScript(14)); -/*FRC*/count=216; tryItOut("\"use strict\"; "); -/*FRC*/Random.twister.import_mti(556); void (makeScript(14)); -/*FRC*/count=217; tryItOut("mathy0 = (function(x, y) { return Math.imul(Math.fround(( ~ Math.fround((Math.imul(((((( + x) | 0) && (x | 0)) | 0) | 0), (Math.log10(-0x0ffffffff) | 0)) | 0)))), ( + ( - Math.atan2(y, x)))); }); testMathyFunction(mathy0, [-0x0ffffffff, 0x100000001, -0x080000001, Number.MAX_VALUE, -0x100000000, -0x080000000, -0x07fffffff, -0, Number.MIN_VALUE, 0x07fffffff, -Number.MAX_VALUE, 0/0, 1, Math.PI, 0x100000000, 0x080000001, -Number.MIN_VALUE, 0, -1/0, 0x080000000, 42, 0x0ffffffff, 0x100000001, 1/0]); "); -/*FRC*/Random.twister.import_mta(-874658311,763465114,1786816308,-2080790729,-2040450115,-1387626819,-236922785,1390068034,-741312198,-1949182097,-449695711,1758371569,1977673448,1318930925,166891211,-869733511,-1042612582,1675424657,2126385821,-517567342,525341292,-2139699984,-1530212496,1914169429,1487386976,1769436005,-24526553,633731892,-430665268,-972202669,-26960541,-2087333780,1518584241,937451691,729444781,-2065388032,-995832159,-1144629076,-231530789,-619614043,-130309225,-509971770,-106542042,163511928,1952188893,488015694,-1698446394,-1345714694,97353327,1456852467,432143611,1241857016,1890476005,-428149401,1485449017,1206077429,769258544,238351953,-2134154242,555226718,24262115,-1987575874,1920152844,-1528125127,-466676111,-1701612065,-1207052296,652517790,1581876373,1441030722,938340271,-1917044541,-604480048,88024680,167052964,1240363596,401851365,111936929,-1921794367,-290568419,328062380,-292263603,329541872,1483141108,65748095,1442404808,183035011,26173653,-862519797,-2026751444,161357730,659699081,1902232506,615334027,-1440804402,-2060792272,1885607498,-617748419,1324488504,1543592687,-1407989172,610134243,999546767,1519579599,1606831840,-1394566948,232076468,-1930031834,1533795382,1733893861,-385972181,-2070545480,-642820367,633382988,346923248,44351242,441436287,-719951996,1813759930,1236699993,724960150,677835629,2028015490,-1252295452,-799070759,810493815,-1703344393,1120987552,-1225991777,-262821287,-1997650805,1431104048,856602058,-514532959,1517163088,-1754835348,-160156183,996656256,-1818138618,187204362,1941639072,-545019986,1624602769,2019008302,-303592125,-2120278687,933562668,-1183892825,1275826153,-1900718802,1007978804,-264945580,1110824838,586961624,1581519431,1590605940,-492303358,-565191225,-931314750,603433342,-181144850,1609546783,1444592669,1941206729,-1328571796,-521815580,145612633,-1093242645,620373663,536044970,466816382,-558398582,-961427683,-1908999114,341140793,-992131785,893003768,-228473806,-415491132,-283177113,-2049826100,-1281951085,-1151302113,1691904006,110866330,-288942882,800373381,-1613452876,-1916309347,735534157,29771360,-1643924035,618408332,-1045263744,-1560940576,-1637422951,-206444893,1199839443,854878464,1100301190,-2040967584,-1356471304,1965039859,-429212614,729153027,-1601163502,-1558995807,1368221950,-1383631571,366250968,2063088158,-241317432,-1477202744,2096355958,1289904605,1384143301,876562029,-1387920321,-1679778124,1507282381,1096729560,-441697063,-283251184,465524181,159778952,696004001,-1767606370,-1799900055,77288719,1810303473,1036422364,1706981712,181215218,68892695,242779163,-1689945591,1527937964,-1922863508,-2099373787,-1937270855,-346714801,1983958400,1564729334,673476056,1953648673,1554784863,-1410922101,1561943604,-1753642100,-1378966002,807554942,-435755449,1208260754,1695839571,920034484,-2046162602,20059493,1503178421,1400992552,502292968,-562483993,888066374,-407689728,1337290056,1076398674,-625468845,-622508459,-2083071103,-1123840604,-901692340,-969657991,-797787450,1511990691,-907779204,-1233027745,-1258550931,1874916779,1697752771,-741727854,-492873851,-737245499,1646524803,1384965380,-1231726086,867036486,796885576,-71828134,-1490197734,261297528,1396160196,-329983521,-1638723210,-368472696,-626141557,-1734138652,-1564257242,1775463688,-1494007550,128317247,624253705,1018754169,1399095084,-1352498055,1475873795,288327448,-1230870626,744975667,1140413999,1279024290,1313599812,-1775937554,150737232,-908380263,-433173527,1233846155,988418734,-1558843111,726542326,-184922738,-1688902438,1415135617,395956785,1311430302,1617828279,-1509055819,1575599608,-523531773,772162045,-1665443516,1540986558,-1027337341,-617308845,2009210651,1449910415,-1725447902,1855956951,1634826978,-988163588,1622147829,552338081,-1409679669,1730756563,-1383015938,1213569476,-1404841069,-1667967122,-1958623729,-607143460,-1870819696,499384468,-863811365,-1946616793,852655496,1832395572,1907386225,-64781463,-1264770324,-1065983013,339334363,1232986097,1730724796,238386594,294080087,450249380,-1901799491,-904392901,2066161334,-2109262541,-1642652379,-206909728,276501021,-1929053027,151912233,-562301673,1336037565,698116469,-249692345,1199359737,135992783,-81124792,1992650292,1763681681,-420459075,1390442849,-533893583,-1446926460,-1697856812,199134202,-1333309452,-73607214,-1898563439,-602965432,1272366441,1102632673,-841778484,-1624512522,1312646933,248917468,1132460706,901571815,1185286454,-1481523996,1918650349,-1247774126,-1192265439,-1356461043,-130147117,-593711992,1708969066,1599929702,1517861207,-1931215929,-616539134,-13311113,129603253,52254506,-1323896063,1924021352,1710608315,-896247123,-2058007544,476338508,755473604,-1931672601,151101045,1941977258,1865910707,-666764597,918329623,-951494692,-1151028871,1199196146,276522261,-1175727439,-1478197765,160566761,-650652722,1189323867,1625714906,470017407,925856738,-783804898,-1619491378,-296537192,1544427394,2024897656,-1838741704,841836972,404807991,1011055380,681949936,-1645108413,-786508132,-161890832,-1079958935,1391409773,-492343671,756695845,1552803653,-1439418332,-1532262728,471818798,-1093836576,-921716264,-1526498471,-504423677,-584616198,-388993506,-1640599355,1895729423,1466088979,-104350594,-701118926,2029298746,524403808,36354562,-1492458351,-6936233,-264902740,536727148,1306834300,1161990806,2120538572,1593120734,-238840203,20062444,713646224,1741843970,-62337601,810386898,-925383127,381059925,-548722456,434921642,-142125804,-1843424016,-1993821857,-1522544388,-753253089,1998392243,-1533414560,1619369669,1995126616,-658722663,1863767083,-986304798,1185989171,453179070,-921035806,1854739452,-130562990,-1661461444,-921954888,1546382251,1330926292,1236967404,1748219004,-621342785,-1651973890,-900465139,772748358,-1908415287,276244869,-209862608,-1211200135,694639658,-1692143955,395950463,325432480,96684574,1450384137,796644518,-1468553630,-1124758609,1557716570,-984139653,1234961279,-1217451144,-1296538068,673511218,1504940808,-966500421,-1600487403,183365684,2084006228,1151811067,-2096903224,-811499543,218241789,-694567040,240505288,1966071643,-1045045055,-1504817349,1574993268,-1990006384,-1825370762,525291035,719875861,2006842640,-843315558,592946712,1929302307,-1580147273,1255774481,773255116,1853071851,990654994,2085369566,-1478457966,1082645720,235720978,-1148782123,1081310059,51947350,-2127268223,1298073624,-1790915562,1983916657,404087416,1506701081,390054895,-331971111,-291053471,-1832248895,-1560043204,203577044,1805400294,-42089701,888561493,-403738192,1540163664,-1272432252,168137600,1036799129,-1979289473,-57733605,-1515451473,1419929469,296978878,-1414800429,-232157189,-1967449529,581089569,-1433301428,1870021041,-1416657524,-1828609003,1868754519,-252213304,-896064367,-1148263435,1268807786,-1111835834,2084259201,814145007,-691230708,1329291130,861093277,810657220,-2115969174,-1288718489,1721837324,-220515018); -/*FRC*/Random.twister.import_mti(76); void (makeScript(14)); -/*FRC*/count=218; tryItOut("v0 = a1.length;"); -/*FRC*/Random.twister.import_mti(89); void (makeScript(14)); -/*FRC*/count=219; tryItOut("mathy3 = (function(x, y) { return Math.log((( ! Math.fround(Math.cos(Math.fround((Math.pow(/*FARR*/[].some, ( ! Number.MAX_VALUE)) | 0))))) | 0)); }); testMathyFunction(mathy3, [0x0ffffffff, -0x080000000, Number.MIN_VALUE, -Number.MIN_VALUE, -0x080000001, Math.PI, -0x100000000, 1, 0x080000000, 0x100000001, 0x100000000, Number.MAX_VALUE, -Number.MAX_VALUE, -0x07fffffff, -1/0, -0x0ffffffff, 42, 0x07fffffff, 0/0, 1/0, 0, -0, 0x100000001, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(209); void (makeScript(14)); -/*FRC*/count=220; tryItOut("/*ADP-2*/Object.defineProperty(a0, 17, { configurable: ((1).call(null, ).window = (y)( /x/g , \"\\uDF59\")), enumerable: (x % 6 != 3), get: Promise.prototype.catch.bind(this.i1), set: (function mcc_() { var xgcezs = 0; return function() { ++xgcezs; if (xgcezs > 9) { dumpln('hit!'); try { v0 = this.b1.byteLength; } catch(e0) { } try { Object.preventExtensions(p1); } catch(e1) { } v1 = evaluate(\"\\\"use strict\\\"; mathy4 = (function(x, y) { return (mathy1(Math.log10(( ! (Math.acosh(y) > Math.imul(0x07fffffff, y)))), Math.fround(( - Math.fround(Math.hypot((y >>> 0), Math.fround((Math.fround(x) || Math.fround(y)))))))) ? Math.fround(( ! Math.tanh(1))) : ((x ? mathy0((Math.cos(x) | 0), ( ! ( + ( ~ (((y >>> 0) ? Math.fround(y) : y) >>> 0))))) : Math.abs(x)) <= Math.fround((((Math.atan2((Math.hypot((Math.atan(x) >>> 0), (y >>> 0)) >>> 0), ( ~ x)) >>> 0) >> ( ~ (x | 0))) >>> 0)))); }); testMathyFunction(mathy4, [-0x0ffffffff, -0x100000000, 0/0, -0x080000000, 1, 0x080000001, Number.MAX_VALUE, -0, -Number.MIN_VALUE, 0x07fffffff, 1/0, -0x080000001, 0, 0x080000000, Math.PI, 0x100000001, 0x100000001, -1/0, -Number.MAX_VALUE, -0x07fffffff, Number.MIN_VALUE, 42, 0x100000000, 0x0ffffffff]); \", ({ global: g0, fileName: 'evaluate.js', lineNumber: 42, newContext: (x % 4 == 1), isRunOnce: true, noScriptRval: true, catchTermination: true, saveFrameChain: false })); } else { dumpln('miss!'); try { Array.prototype.sort.call(a1, (function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20, a21, a22, a23, a24, a25, a26, a27, a28, a29, a30, a31, a32, a33, a34, a35, a36, a37, a38, a39, a40, a41, a42, a43, a44, a45, a46, a47, a48, a49, a50, a51, a52, a53, a54, a55, a56, a57, a58, a59, a60, a61, a62, a63, a64) { var r0 = a54 * 8; var r1 = a37 | 2; var r2 = a26 ^ a22; var r3 = a8 + a55; a39 = 0 + a60; var r4 = 2 % 1; var r5 = a25 % a3; var r6 = 1 & a53; var r7 = a45 / a17; var r8 = r6 & 8; var r9 = a53 - a51; var r10 = a4 & 3; var r11 = 9 / a5; print(r1); var r12 = 5 * a28; var r13 = a45 - r8; print(a51); print(a54); var r14 = 9 ^ 3; r10 = a30 ^ a49; var r15 = 5 + r11; var r16 = a40 ^ a4; var r17 = 2 - a57; var r18 = a25 % a1; var r19 = r9 ^ r3; r6 = 1 ^ r0; var r20 = 7 | 2; var r21 = r8 % r3; var r22 = r0 * 2; var r23 = 2 - a37; var r24 = r4 % a35; var r25 = r7 * 0; var r26 = a31 & x; print(a38); var r27 = a33 + r21; var r28 = 5 | a22; var r29 = 9 + a41; r10 = 7 - a8; var r30 = a40 * 7; print(a15); var r31 = 0 % 6; var r32 = a27 & 0; var r33 = a35 ^ a10; var r34 = a38 - 1; var r35 = r25 * a39; var r36 = a6 / r22; r11 = 7 % a25; var r37 = a38 * 6; var r38 = r25 / a28; var r39 = a45 & a22; var r40 = r16 * 8; var r41 = 4 % a30; a50 = 2 ^ r23; var r42 = 0 * a1; r38 = r22 % 8; var r43 = 9 - r6; var r44 = 9 ^ a10; var r45 = a29 / 7; a15 = a55 / 8; var r46 = a1 / a31; var r47 = a38 * r20; print(a2); var r48 = 3 % 6; a27 = 1 ^ 0; var r49 = a22 | 8; var r50 = 3 | r6; var r51 = r40 * 4; var r52 = 8 + 8; a42 = r23 + r33; var r53 = a54 % 9; var r54 = a1 & a46; a50 = a35 % a62; var r55 = r39 & a1; return a2; })); } catch(e0) { } try { i1.send(m1); } catch(e1) { } Array.prototype.pop.apply(a0, [a0]); } };})() });"); -/*FRC*/Random.twister.import_mta(251124250,-1973005267,351231958,1836820868,-979981010,212200102,-188794909,1593214720,-2089605803,-536258958,150681658,886268778,612445606,-1677366598,-920500487,-1885357040,728750252,-1939864917,1211415390,215794904,-727195333,102417784,1107752013,960803369,-556735259,1032389831,-379974843,431060770,-640569717,-1622745808,1360192143,-163149922,-36396168,639680397,1187267434,751563491,2053935751,-971886436,1461105879,2006824173,212755239,519341997,102072372,-1415334484,-1803665434,2051889698,535170674,1761223112,-1886262137,-1528658146,1833078400,298266531,120118927,1096278627,1978625124,-67974681,-122537987,840778753,-702789624,1757581053,-1830956580,-238223774,-467232027,685337913,1806581145,-1359023605,-1761572161,635782957,-2129074279,1112787304,-900251815,1007753413,-1379773430,-1499976132,-2034198883,1800588449,1189237293,-1760632159,93621871,-55588092,1743014264,-1009997931,750244238,-1876236715,923841399,-2052019148,1667790773,-779672094,2002964179,1876792360,-1460235806,1937673151,1601466514,-447346622,1454394098,-1976597458,-1753355765,1932219710,839976572,-2023944073,-1102039748,1910805419,-518339029,1892030754,1742987566,-1106324542,63794678,-1299166320,126066530,73153579,-1776916319,1732176119,-644618171,-1472454727,-1569916734,1794987534,-1970392037,-370050016,-538274149,301880380,-944912677,-1341361693,-1223757504,-1229198633,139770381,-817846578,1302331259,1145375686,384272955,-1066997164,-270459014,-565139101,-1062492843,-270270430,867204570,1301798453,-874971311,-871885982,-2110986082,-1238086827,1021191584,356926069,536491334,-820185191,1042027187,-923344017,-579897360,229312330,-1504199614,1413141826,-426126793,2072615860,357810999,1892674547,2141729707,-1217571944,-1170398089,-776904080,-1099719364,1078578685,-1075679791,1568512251,-837874943,-361940766,1531168354,471558251,-1393487921,1861014386,709345866,1044142173,-1126325653,1910972564,-1987036092,-1539667875,442323776,-1387136876,696283048,682727976,-1905332282,1339470342,1635819857,-163097673,712069250,-1317256593,751363603,-704740670,160614802,1364371830,-148561670,234484240,1432987283,-1519400252,1871927011,-854990728,-647693092,-2143966978,-1529367383,-943708452,597253715,-286033526,1477344180,46084430,1797548344,-1599603166,-1280010878,252719856,-1185781494,265013005,-700752318,-1595780220,1006952721,1443648290,-2043864472,945022977,-1245890948,-768965339,-1967286703,1376435442,-1250665765,-2050277958,-1071969012,480613700,1410717661,-1635185757,311977026,1868061670,156482710,-90364854,1253770260,-624467642,466024394,1489946133,-1261326743,1868636943,-925269370,-1979964224,-725409341,-775918869,-351822802,-1545795217,1268953802,1207270647,1290196376,1614258118,181543112,-1725619945,1883769139,-467919687,-1504614060,1132486127,330185757,-1900787814,-2043941877,-1244831143,-1466562139,-944413017,510376027,924065405,-1887142045,302988110,491290228,1085915509,1321578244,-1699422841,464423691,-58805270,63576344,-1456723569,261332669,2014170476,1732853416,369305072,-1631914633,-1532630868,2062012898,-1717667435,1653556621,-589951780,-1166852578,-2066168698,1181778705,-1027892089,-1556346443,-326132060,-188116183,-1034128739,1607112158,230863443,1878118038,-1536688105,913586772,551867866,484474726,1865378703,975112574,2118131711,1421708696,-1233445150,646705321,1239410110,374613310,80754338,-2025548126,187866661,1604404724,-1216334729,1581398628,1753570499,111812218,604248084,1611652154,-367278956,29618387,1251139529,1838886889,714240142,1146807623,1968664122,-1905395253,-504181815,-590524477,-929319479,-1718507815,-1468487119,890645373,1518625872,-1216410609,-1555309168,-713613762,-554773736,-473915647,654153699,1311524944,1975468404,-586867313,-1171341122,-984034921,-859066300,1064463559,-1779599925,-1383266278,-18334177,-818862482,-251143868,1687769180,1321571048,503796979,1764246974,1591700314,803745219,613394108,-2009886961,262835666,1154183034,-1807192242,-799488922,242979297,-1270134837,144892507,-1635454163,-177884144,-919610488,1914275650,1180049667,732485871,1863388981,-782063580,-1261366374,937116367,-233598870,1996673033,-1045822201,1765536044,-636404995,1016523586,1820369637,-127068320,-832626118,1707805519,-962103559,1221845315,-1494469085,-1949116168,1437242115,1111915661,-934197822,-1581728070,1417357336,434894309,-740216763,612818045,-1989059518,-2051101559,-1947341966,17857620,1480546967,617111326,657473829,1345543965,1353059567,1469321405,666417344,1783038677,-276410047,-185903782,-23934885,-982994685,1865151192,6913647,1217145462,1317716336,250851971,-2009930403,-1228037073,1717768763,-1913776878,-1077755843,1556153273,388342803,1405125520,431739383,-1129588401,1335799880,-1434679665,-974130175,-1613488956,1875888726,-884343439,1906388654,695612098,328686,157268986,1331655502,-987762659,1263022544,2037814181,-1388548150,-255496985,478198435,1904278880,-2090449335,863698820,623457497,360512765,1948358871,-489757632,1681724835,1953334876,-1111026465,494668533,-1249757520,-2130758272,1559258365,1892012742,-1009587960,1957440596,-700395849,670476173,-323203968,-1297448206,-83071013,1823828342,1069486899,-1795766051,-423996069,-1745893326,-1769973465,-323055466,-1870745326,1223091152,-2014701057,727030650,1340394054,-1788945785,1223274671,1971001154,1040944550,515621298,-844510790,-1244589891,-154976970,-1761312246,1345168294,-16100085,1538308779,1991945409,-297613192,-751079898,-1048749488,-588596602,767449277,2036439145,1257726354,1394233809,576722719,2008773522,1045907740,-622809297,-581418178,-673131229,1113375652,-346430114,-120585758,1822932089,1349183075,-837868845,-1939412824,2062853788,-219533905,-590557464,-890162541,160687748,-2050401091,2058103046,-1999553341,-336239134,441192965,-1883145718,-1725611945,956162953,1720821870,2033858337,963095671,-1325224259,1494428738,1433612021,-384091870,1054887012,114342127,-1182496425,-705229974,-1263019995,-341178074,-511812235,419893704,-1911067317,1689605,590048070,561797045,-1733434443,-1631437056,-1287890449,1752110214,1919943481,-399088880,-719700747,-1447551331,-1326422110,1965375104,-1679807593,1385986699,373071519,1164515617,-2063226349,60049086,1521686594,1043084638,757163622,-310095785,-1764017596,334922193,-161471342,-524742250,1339656152,-2129733452,-1326099284,1602770221,952929794,-1840443404,-260648299,300114654,-1788216683,103026577,-2076204756,-1258683171,743764537,521278316,-255946167,-1951676037,-2046095782,-2095139139,-1436525714,-405150469,-1465515493,-857109809,1572804485,-747598340,391479111,1783341494,2070191137,-959254224,-292980862,416486152,-130969819,1333378633,1890130161,-10599383,309896489,947043368,-1191651074,-1287263986,-259046990,-319561775,-93606498,-1401277612,-893052415,1645158605,754059777,-662629825,1275200469,1373473458,1205304446,351380716,15475433,-363771950,-138674182,1465330902,-1501998701,-1036828313,1012194781,-715569652,-346902816,-1982951362,1672720915); -/*FRC*/Random.twister.import_mti(110); void (makeScript(14)); -/*FRC*/count=221; tryItOut("this.zzz.zzz;"); -/*FRC*/Random.twister.import_mti(120); void (makeScript(14)); -/*FRC*/count=222; tryItOut("/*RXUB*/var r = new RegExp(\"\\\\1\", \"gym\"); var s = \"\"; print(uneval(r.exec(s))); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(173); void (makeScript(14)); -/*FRC*/count=223; tryItOut("\"use strict\"; print(x);"); -/*FRC*/Random.twister.import_mti(183); void (makeScript(14)); -/*FRC*/count=224; tryItOut(""); -/*FRC*/Random.twister.import_mti(190); void (makeScript(14)); -/*FRC*/count=225; tryItOut("\"use asm\"; mathy2 = (function(x, y) { return ( + (( + (( + ( + (Math.sign(y) | 0))) | 0)) + ( + (((Math.max(Math.fround((x < (y ^ y))), (y * (Math.fround(((y >>> 0) > Math.fround(x))) >>> 0))) >>> 0) <= (Math.max((Math.atan2(x, Math.hypot(x, 42)) >>> 0), Math.min(( + ( ~ y)), 0x080000001)) >>> 0)) >>> 0)))); }); testMathyFunction(mathy2, [0, [0], (new Boolean(false)), '\\0', (new String('')), '/0/', true, NaN, '', (new Boolean(true)), 0.1, ({valueOf:function(){return 0;}}), undefined, /0/, '0', -0, null, [], objectEmulatingUndefined(), false, ({toString:function(){return '0';}}), (new Number(0)), (new Number(-0)), (function(){return 0;}), ({valueOf:function(){return '0';}}), 1]); "); -/*FRC*/Random.twister.import_mti(444); void (makeScript(14)); -/*FRC*/count=226; tryItOut("\"use strict\"; s0 += s2;"); -/*FRC*/Random.twister.import_mti(456); void (makeScript(14)); -/*FRC*/count=227; tryItOut("mathy1 = (function(x, y) { \"use strict\"; \"use asm\"; return Math.fround((Math.fround(Math.ceil((mathy0(((y >>> 0) ? ((x !== y) | 0) : 1/0), Math.fround(Math.asinh(y))) >>> 0))) - Math.fround((Math.sign((Math.pow(((y / ( + Math.atanh(x))) >>> 0), Math.imul(( ! mathy0(x, Math.fround(x))), (((Math.cos(( + y)) | 0) * (((x & (y >>> 0)) >>> 0) | 0)) | 0))) | 0)) | 0)))); }); testMathyFunction(mathy1, [0/0, 0, 0x100000001, -0, 0x0ffffffff, -1/0, -0x100000000, 1/0, -0x080000001, Math.PI, 0x100000000, 0x080000000, -0x0ffffffff, -0x07fffffff, 0x07fffffff, 0x100000001, 42, -Number.MIN_VALUE, Number.MIN_VALUE, -Number.MAX_VALUE, Number.MAX_VALUE, -0x080000000, 1, 0x080000001]); "); -/*FRC*/Random.twister.import_mta(-1156850708,440725750,1713100845,1969178154,1642745235,-921687557,-2130898239,1817868079,-1902746782,-2129318626,1967276909,304736444,1183751979,-1290579245,1228696715,-578483957,703927717,41504660,-1954515074,211386495,533487877,-1355911446,-697669029,-1344597158,2070408179,-499448523,-425444066,1880069019,-797478308,-1639052338,-261439810,256605970,-479273509,593961563,-2043481516,-345929006,-434706349,-1177822364,-609158900,845409926,1723310062,529169081,1683040182,-916891206,1314673301,718943200,553774105,-354296245,-1329616945,312234723,-444161710,660327239,-1528870117,-1888124798,604955052,-1180577828,-1329348583,-388182772,-1715086347,-550623655,1594939580,128430381,2144240817,1473495496,-490561364,-315103565,1594678164,2134808136,-154784634,715355732,733916203,-2036360425,464188622,1568858734,-940290571,-174238833,131144456,-1825880249,1261236928,1308207386,-1504370009,-1678630531,617403208,876860498,-1780689904,-1198446429,-674641926,-1190564579,1096050389,-96894839,864852774,-288923111,-297681241,1189510596,2088131198,-1740561336,714079054,996709409,-316847242,1635734402,991581733,1960677620,-1350313550,1907176243,-195130177,-1187596519,1978636721,329984466,1428786201,509963303,-1872534984,1194027346,299528683,-1681436942,2095926659,428275311,240424726,2116863825,-1559605252,-1601027657,1322250788,-1029555977,-89610691,-1145879113,1587176518,-962534635,-1826608290,-882353792,1967152095,-1628719457,-926898166,-7480678,-831092410,-1943063161,192186336,1464780369,-2022026044,1477535111,1275459646,1584847573,-1333724509,780225814,640362662,1489274502,240097415,114863998,883261596,-81937103,-1090038188,66864985,-852186504,-427528252,982478513,-197078143,227161939,-2122368059,-304276693,1554876448,-1549840797,-1193954455,-627631420,1401644296,-470964683,2119656160,1634017400,1875453614,951053921,-1808975471,920897629,-655477561,1077878344,-1769664042,996353636,1556990846,-2084501793,1390688325,-1872270280,-1278381250,1270852410,-1227164901,1385532237,-560766662,129867698,1282569579,-2137056753,-1559199694,-2146478432,-142927182,457436813,1624043114,98736677,-2071283176,1574988829,-1436512418,-1366055939,-743409277,-1680761781,-2017615425,1204855860,-1822852621,321338766,232818868,-1465178129,-358636593,-1224255286,-262476972,612826823,-2023252875,-1699466301,-1526341478,133440400,-610820341,-1994176758,1258492300,-1211462093,-928522469,1776909456,1776540256,-1252105945,928688720,-399795407,1899043414,-1441208109,-1676315603,-587300077,-1922609547,1593647158,-564766234,925319253,737715144,-1070557697,-494261640,665323683,-1533947006,681862479,2113880924,1895671988,12684666,-623911724,593479246,165764215,1867449927,-308361496,748422593,-1746702400,1789707064,-1482735876,1290065327,1474752706,1186317450,-1467928425,-1585795799,567608518,736594195,-1965191145,105520814,483177519,1855992272,1179443893,-305470751,-1707904450,-1588582954,2134070478,852040969,-2014018927,-1705642624,-1073919330,-1200168849,596417551,1475721442,-1034368190,-670459663,2022229942,1550976232,2133217886,1492170198,1022841997,-1195426211,1698146564,1592769100,924909086,-325560919,-807010162,1404025170,284837021,-165637862,1086836655,1760051191,-1935998471,620009883,1201777445,-323838177,1135141803,1107517227,-652859032,-593958326,832502053,-504109920,-1569691192,276883025,1609234751,-1000995164,688696386,671201778,300150179,604893170,-525092956,-1526714982,-1980748425,348863829,21902872,1278581926,80803736,2014109905,-1405069990,-93215575,-1064159340,-1380788452,121026338,422554009,-1146939393,-1447675443,1433780623,-385065425,371893769,1873444270,819641674,1369561402,464189816,1198204653,-1143257059,-750212969,-2081876061,-1033525335,1320962445,-1366469619,2013312005,1456661636,-724212888,1193080294,2109464866,460709556,1627724493,2081963832,1498287653,889279834,-1811520664,1637894025,1281269449,-386960029,648164079,424616623,-456829784,-1727783687,-1555809357,-1418386448,499557797,362375672,1774654419,-1262202034,-390539197,1920484417,-311597553,195463276,-158248254,1689562156,69096216,1919281947,394822947,-995954563,-518441766,2060607505,-1294433569,1794045245,1414880412,-2093883932,1691604548,651796224,1558144103,-940691761,2118023247,1214470959,1923269275,1442223538,2021993153,-213708482,-756537499,1332367593,-478982667,681998548,2062535873,-1162688797,708825879,2015875147,557458437,612886482,1384031370,-248643303,668903294,-1985896731,1326552862,803878762,-63987654,-367868267,1435281356,-1341963420,-1051784585,-878082907,-86674431,553189130,-771547915,495900798,1635705594,1781952354,-242479045,-576045492,-1750802583,-1753679629,-1385497648,-936037319,759026470,-916653095,1602652699,1613682324,-933777443,808927519,804599700,1811393241,425431509,-1465276904,-298811854,-1867980435,1272816517,1092806191,584344952,-1943403482,1148184118,-792932834,-480779845,295228657,314469966,1012311168,1527845306,-890175452,1485088832,1581800233,225208702,1874895233,-1501057037,-1327893621,-596971795,730726834,-1257920746,2132038834,-1543483444,-2062575663,-519356207,-160517185,-1142985983,-1020883055,-758421703,-1368171511,-292775955,-1700252986,1261857123,143081624,1426099717,1105069310,188512175,2003008200,2033633404,-1341060381,-116711772,1524848244,1985568270,1222850065,1239950419,-1906977718,1654298024,1521785437,1617283094,-489995836,-1597537036,-400795227,-856303761,1903003273,-2074651150,-91365610,-819627883,-1327183793,-1754177054,-1567673768,718302647,935719374,-2085922394,1017591937,-477274198,-1393235235,720454335,430351972,1776219719,55464623,-1213473995,-1916102813,112205803,587521360,597027074,-1755490282,-2097270051,865478936,392579600,-1961469412,-1955166823,-576200431,487755014,1488304164,588522654,-1841579055,700767748,1893742492,-409537436,1554861964,1561398731,1561816836,1380107013,-1761741479,1341177955,-980806249,1100804816,1140271607,-346888897,1681320240,-843419241,-1406124224,990063584,1358199210,90081526,-1996968675,-647242333,1269950488,-1197835015,-663232743,1514214890,-192346596,1580693945,-891156301,1096260168,-1053718337,1028562137,-1523364843,2065342911,-1382639034,-199223176,1896914453,2096649499,79487959,1375442398,336711913,-1742391883,1394272148,-111823392,1054916934,-916351007,2022168671,245911250,572127521,1534767847,1956472536,-96073951,703900578,-274435411,-2091599566,924747212,1467208153,-1367175606,1138202495,1236831384,-92313971,1514841474,1011007273,-868994738,1235253521,1714328098,-491073507,-498183451,1082086701,1717984306,-576911208,-691881330,-838590825,2095199149,-1158096058,-1046160543,-89506589,-751183940,-1322313752,345379382,-48207154,1722682478,-344295848,313087460,-1155267669,-33289429,854511598,-625761569,-1261419298,1218419472,-881442417,-1217730022,1514932162,1981623181,1929246903,1782427797,-406813556,884453140,-1999053922,-1567465278,-2097226579,2106595538,9662481,227444539,1709009946,-866742780,1341868412); -/*FRC*/Random.twister.import_mti(96); void (makeScript(14)); -/*FRC*/count=228; tryItOut("\"use strict\"; for (var p in g2) { /*RXUB*/var r = r2; var s = s1; print(r.test(s)); }"); -/*FRC*/Random.twister.import_mta(-1140033182,-1914963017,-1290912272,-420740856,-1838509240,626628997,87510493,1388811901,-259402261,585538334,-1027772165,1083870027,-1602623812,798333551,-1438323676,-1400055561,1795868840,-196334716,49172140,21651252,-2131767418,1599569442,-1613185644,-913926656,1632225692,752129172,-2128498810,-529787149,2131772664,1472227531,743576912,-1310437401,1611827178,-316078312,-451402748,-1579260045,499583901,1326193150,-719588507,1999907265,1181827997,-780176800,892631084,-325519397,691780976,-761702551,1720279006,-1714173064,-1911635321,1068448215,-1520044803,769702561,-144493622,-1905418693,928966236,1953298373,192557620,1911165673,1938830370,-1904006001,1823857654,489724294,-389058699,-475383953,1105207183,-2129987033,-1523090974,1884651296,1574370226,-640194353,-610698838,1189678536,1503792127,-1010540967,1406604283,-1159490784,-897694456,332343150,1847583388,-1010170401,1520727083,821885964,1083535476,1787535902,663446858,-886872311,764436468,894915802,-713427438,-577693599,1424416453,554506009,-745015635,-1454748451,-1364221828,2140639248,-1283912959,-1255801827,1276678464,1728627815,-1768283481,1026600550,-126316766,-889651001,-958547460,1414833970,-2078342262,-1255380680,-1254171748,732190750,-188158785,320584439,1047891553,-266839026,517837300,-1940074990,2075734630,211266296,-1846269920,1148444044,711071605,-845660731,-1271847528,-1998862777,-420114727,344004708,950223812,-1310040523,8429257,730895462,-1169360678,648525427,-1662516245,-1360484657,-694601017,-838378507,1496333660,486660095,-423123937,-2078915208,-541586538,-897693200,1741925211,649396325,-618952538,1075041700,1343187035,28627603,303340480,1741541236,-1301037219,-117335202,102470922,-1529410871,874624891,465970482,524704261,-197180683,-1042380100,1018173628,2111070829,819680880,741431012,-907598372,151278097,1279184910,-342231992,-858711517,-1754901603,996490691,2145381939,-1476946925,127028765,2001486109,1932400079,1059926992,244672582,-883074089,-1045275091,-1174734367,-717826544,429156955,-2089601725,1433603222,405289224,640235890,-1727570620,921113980,1880695320,-39869953,-539470444,557464671,-617326280,-1297919348,1244157784,356820379,545021155,-1328446042,562764750,1560644849,-70242668,-336384186,121444192,1227553153,-1022790143,894420119,-1470779125,249629665,-430787437,191204056,2142584533,-201635425,1070436100,-185541557,-1884903451,516493021,-751736388,-1223676072,-747270474,261037445,-93957754,-241902492,-678331688,-84314515,-1167688705,-1557651937,1624270223,2123852183,-1742230957,169789392,-1750526924,1488332742,923889732,-932327515,1815623635,-923336271,579231139,-270885231,288712812,1031927896,-2126861933,-1668575408,1674209992,1627094856,-2128983528,287429074,-30374596,-1424181273,2081266791,311465216,3371083,832785407,-1607475006,491247442,-1555490396,-394351056,1620078627,-1770203947,503942728,755711733,-1115613709,-1702785437,565336360,-2026505718,36102974,-1964681686,-1308104407,-1900036795,-91902447,337124749,429165436,1434443435,-56601315,1494906609,-1247047277,159242270,-1158146522,-671211393,43476871,-319599419,556336176,1353573915,498805612,-1710251867,1257921124,-1963236566,603947947,-202314795,-700291692,1377241656,1291569215,-1187193211,956556653,-1984139946,504957445,-1676593153,-382821729,-1969140402,-1751003585,-278935617,-504406773,122766810,-1360834599,1535574790,30003351,1581660494,-1857416430,-2024484273,-476982663,1077046136,1284598861,635641478,1848485822,1001420121,-781765039,-1255084584,-1958186001,394102100,-1265470710,1464782221,1687806180,1562243172,-770109480,1634003162,-2098150710,1417007077,1339566330,-1689297381,-2020766257,2090703859,978707539,505512690,-1402026951,2051643283,996307937,1345728833,13445724,-559784693,1888862212,11042544,-39668908,-1218991027,-1303326322,-837384789,370606165,-1678304876,-1381282153,-1790580530,1625765803,2120780848,494200783,-728292211,-1056201017,-267784510,-464465971,-680821564,559685786,396870124,1019584468,1908203285,1323054128,2032613663,-1949032509,1652069437,1868268009,-456618605,606863402,1299511768,1898414353,392114486,-1026260814,1535080726,-1402200091,2049295893,2899041,1618833634,1956708596,85245361,1140735206,-536077838,435033985,-1804048663,826109931,-1173585990,-845231510,832711121,-1039302633,-714771384,1686661658,-2008154021,1303836274,-988607675,-383416076,1644975765,-560797238,-1101463080,-1694855792,741391756,976219070,1612350866,1622760104,1295631826,-752033723,1683176352,-748881307,941452233,1160153964,827645135,1239946718,863636454,464806057,681003125,322047683,952755590,1479674458,-1564213901,791375193,-1989334916,-601352548,-1918193493,252026815,-1125932406,626249425,-1654703150,1908577782,913408004,-235476670,1853183649,-5768118,1881483385,-1737082392,1072633628,-1932130465,-1187019849,150211058,-2073737336,591130071,-1760133417,574591800,915585059,-354710005,-1574031560,1001492175,-1082966628,20754963,-708593143,-1587020390,1882011296,821073278,548191601,-1354860876,-1595627404,-593349562,1926251113,-1525149024,1907014372,-400478512,1397625195,-1607610159,-948145401,106746238,-2106143494,-2052908846,-568993331,-342278435,-1564631119,493812263,497820315,-1489358284,1599147766,-503624986,-39860918,2085649128,-988009925,375757872,-1041154415,364543781,1904097951,-2047756786,-1877146423,740456368,-215295010,91763261,-1612567733,2009245518,471999665,1347277182,1125849446,1543199387,1779100121,-697146586,-834247366,-1861767475,-1278065158,1239716314,-884801084,-613754820,-706438404,1504480665,1363648225,-1045041287,930532566,-695196816,1621666060,-964931881,324899590,-413278002,-111235711,157741719,369626724,-1618702933,-1773557641,2099258237,1836500264,-542492729,-943163429,-1040029937,404334397,-2125675189,180920159,-404043120,-1449575361,-1298497411,1493650370,416745277,1766923985,1418886571,-2128534429,-1079877122,37916057,698120094,-1105438589,140388078,-859076894,-1355878758,-515992062,-582578903,-1188285885,1077668490,-345495267,-830264822,-1136149340,-1888194858,2103148524,-1425788462,-734413266,-287393523,-1556734377,-695408975,916254680,2007999993,-119484682,-1242222544,-391335256,1679151,-1351596256,-274873512,-1353724330,2007822648,-1866195255,624555824,-2032531250,-1250071119,127470901,1453723972,-1004525144,988204444,1502150683,-475137636,478828551,-1883449038,1301824179,692470183,-1159067214,1839633326,1144746471,-631271511,1884402958,1405012934,-418267552,231826069,-683178276,2134811669,-915162825,-292496475,267825613,1601330009,633170295,-2027059573,1823323850,2131032478,-1769907066,9773885,1303440372,367227436,996968458,701432913,-1316780411,1858224698,-449268457,-21006561,-433682133,956962581,-1057988284,1602002910,665973102,1556056554,1113285260,-111254264,-1824830734,444216126,1636344575,37907351,-1739171939,-787932793,901864059,1345969874,863959579,1548878738,1995078582,1357045912,-122048824,-643521178,-2063814367); -/*FRC*/Random.twister.import_mti(256); void (makeScript(14)); -/*FRC*/count=229; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return ( + (( + ( + Math.imul(Math.atanh(Math.tanh(((Math.pow(-0x100000000, Math.fround(y)) >>> 0) | 0))), ( + Math.fround(Math.atan2(Math.fround(y), Math.sign((x ** -Number.MIN_VALUE)))))))) - ( + mathy1(( + (( + (mathy1((( - ( + Math.asinh(( - Number.MIN_VALUE)))) | 0), (-0x080000001 | 0)) | 0)) ** (( + (( + Math.hypot((x ** 42), (( ~ (x | 0)) | 0))) === Math.fround((((x >>> 0) ? (Math.max((Math.pow((y | 0), x) | 0), (Math.imul(( + y), (y | 0)) | 0)) >>> 0) : (y >>> 0)) >>> 0)))) | 0))), ((Math.atanh(( ~ x)) << ( ~ Math.acos(( + Math.round(( + y)))))) >>> 0))))); }); testMathyFunction(mathy2, /*MARR*/[undefined, function(){}, function(){}, function(){}, undefined, function(){}, undefined, function(){}, function(){}, undefined, function(){}, function(){}, undefined, undefined, function(){}, function(){}, function(){}, function(){}, function(){}, undefined, function(){}, undefined, function(){}, undefined, undefined, function(){}, function(){}, function(){}, function(){}, undefined, undefined, undefined, function(){}, function(){}, undefined, function(){}, undefined, function(){}, function(){}, function(){}, undefined, undefined, function(){}, undefined, function(){}, undefined, undefined, function(){}, function(){}, undefined, function(){}, undefined, undefined, function(){}, function(){}, undefined, undefined, function(){}, function(){}, undefined, undefined, undefined, function(){}, function(){}, function(){}, function(){}, undefined, function(){}, function(){}, undefined, function(){}, function(){}, function(){}, function(){}, function(){}, undefined, function(){}, function(){}, function(){}, undefined, undefined, undefined, function(){}, undefined, undefined, function(){}, undefined, function(){}, function(){}, undefined, undefined, function(){}, undefined, undefined, undefined, function(){}, undefined, function(){}, function(){}, function(){}, undefined, undefined, function(){}, undefined, undefined, function(){}, undefined, function(){}, function(){}, undefined, function(){}, function(){}, undefined, function(){}, function(){}, undefined, undefined, undefined, function(){}, undefined, function(){}, function(){}, undefined, function(){}, function(){}, function(){}, function(){}, undefined, function(){}, function(){}, function(){}, undefined, function(){}, function(){}, undefined, undefined, undefined, undefined, function(){}, function(){}, undefined, undefined, function(){}, undefined, function(){}, undefined, function(){}, function(){}]); "); -/*FRC*/Random.twister.import_mta(-204083064,1672017222,325879062,697045772,-2036483633,1220540020,-734511039,1913692239,1768826438,-42957874,-938399307,1507124864,-38242802,244717243,-405170991,1723296407,49279044,423963916,-1570319639,794593946,-423192723,-742111146,-378930261,2141289329,-1433802560,633542930,1952546932,239777674,-2070346562,-404757526,-275791475,-1884373057,1186049013,-352703510,-167209862,1530737230,-1632006328,-1150205793,1727521719,-1727267642,-1079392281,2024124206,-1713999087,-1102688077,308950099,1224024352,-1281697760,-550280305,320640573,719173435,-1076503761,188812443,-23936333,-191822438,64643913,-652268196,-751961150,-1664087887,-270295940,-1636056277,1574329768,222484404,799135855,-6001050,469434678,-684153821,-1505794467,-982367484,392076041,1889683186,2128127103,316901140,-407138043,286815172,-521270054,426727532,-1929660020,560622974,2031914145,-505350673,1761625241,-1514467788,-1520904762,1072153877,1337186437,1404050887,-2058780378,1568562247,-337504162,-1556738365,-896196043,-348647150,-1482195096,-2128235752,-1316115150,296983442,1883769643,803789178,1641009960,1227848112,-1954755121,1703987720,-1389121955,-1562692729,1566351183,-727735627,977182096,-1662835943,1183825673,1144071758,702267429,-1890286216,772022371,-789953199,-1872244866,16562766,1799163988,-682613801,-1510893283,1312545898,-1478686464,-615229561,-676475741,228113699,-472272883,-1362419297,-654650361,-1046480762,2090423522,1236533702,1266306949,685691092,-868323807,-606578142,1075266982,1690712128,1531174338,88443978,-1556761410,-1298495262,-602728773,-1428516872,1631197680,-485560743,-598845834,1048275492,-460740998,-1576109006,-404792940,1861211772,-541666312,-1786696652,-1107305885,-1263022437,-184296337,593407469,1270588173,1626790513,-249017474,1216299697,-1222482578,1639209546,-1271428057,-122458393,-1597677367,-2135844971,-117886725,-2078439339,10094486,-1677620646,-746947891,963407437,-1104885674,790848266,1376705371,772601220,105649286,-1804137369,-2117157432,-1329273695,-1517080324,-888151624,-1918355413,29720081,-1001186715,1941768887,-1845480567,-694400343,-1473130003,815690131,-332871801,-1430803945,905715596,437310002,86752916,-1985757805,1440229671,1160183755,-1931018579,338105115,-998633178,761055626,1487239432,1177779392,629791679,-1272414385,512250987,-178424504,1644377090,-93477281,-491882852,-1497849206,810259464,-996028397,-1209756338,735764297,-1008844751,-1196171556,-351378330,1829434897,1270125609,932888318,-1835110305,-1797689928,807735576,818161534,582989109,1724814718,648517294,414715660,1171718383,-1659567635,-176053895,992799607,-815558584,-1591363512,1402305625,-2138333821,1192499884,1680708120,1087623443,-1774411339,1456133427,40031560,1372964325,-1652649865,-472227402,29944193,-628358442,1886974801,-25661871,-1164044127,1801515707,1707412646,2054545554,1842973808,1978218847,-1601501527,2330650,-1048997421,1051876356,-1496205074,1487392587,-542441769,-1107039350,-1493391364,1197249211,1541644336,-1415507657,-1793313105,233901881,-1254969854,-1116689785,810000438,-1685221504,241212718,-668330021,1737938995,-1540351450,-1375321941,1171211848,218625791,1292914129,-1236216080,-1716668124,655682934,1049298462,922185570,1682526888,-1865118545,2050142715,-562936993,-739863928,1882936192,1383229476,-87988583,905109589,-1409223745,-62598124,239374175,1387319593,1855396841,1957485039,353886488,239694297,1907983656,994192407,-2118115974,-979223672,437834559,756435542,2024082266,-681535564,888318673,132524715,927895926,-393687959,-790881360,429377291,-1779724518,-1347728598,-1736365346,1627516927,1898998350,-589656489,1176749909,-578787742,1370668023,-2099857618,689040555,-1379142914,-765244020,817093027,-1098443585,770739046,1189685799,-228018156,1368465447,-1895777792,282425801,306783144,-917526599,-16824252,-1187110751,-626282723,1781304969,77146125,1319510538,-463466081,1075777435,-1092902982,441766833,-691022082,869925694,-1440069916,741819567,1114104112,1427669103,-1995960447,-347048903,2118350450,-587859304,-1930247551,-169431575,-1373013412,-249318229,-1809779698,2106091244,-1586161821,1079007657,-1900981550,1399908699,-631162383,2107050133,-1842297789,-577775122,-177391493,-28717685,-1517870899,1744855420,662916400,882236229,1045991984,762627640,-1590723002,1227242410,583923861,-983150493,-56890696,-756222178,1127373722,-732453709,1757350912,-676314082,-617543495,1307001182,-904276836,-831680750,157363332,-1904712446,163545571,-493872218,1545955412,-1226122901,1366362460,-1554122626,828783129,-2123941357,-760028085,427473056,-1937347852,1422044635,1876555892,-1105643868,1593115855,1722603422,875095469,-2109944631,1969898141,-344563572,73466743,-829757149,-2029248390,758735836,1579040713,-1273132532,-99284844,-72749309,-867766935,1419666940,432338766,-1159042865,1908346443,1525829778,-143665524,-1432980938,1760438763,-1280196864,620318276,-1674648622,-1783183473,1932845814,878920071,440969703,190493447,-1145202005,354184513,1405935254,-1094430567,-2063512827,-995411582,1584663355,-794511723,808696933,505137164,313983430,-401098906,-859219880,1738770609,-1229993530,974621962,-1917707231,1462232177,-1085189144,1222500996,-1867786400,-202165366,1397671945,-107731250,1714909248,2091726829,805173393,653800885,-1461145682,-1204238826,156863899,-774938943,-58673834,1805134362,1030867299,1548771657,-1581168301,-81778422,235432696,932357166,671447205,-520872608,-1975041642,182222045,1939799768,-1198928822,1871219763,-15366911,598661718,2118262994,-971735767,-1147951,-131073750,77189549,77786596,1811727965,-1329226184,2117388712,1646035055,775426480,-1751193023,1268885172,-1737191460,100921805,-606422053,1685893652,2117408837,296718306,-2007585502,-870587312,-1673473552,1171320814,-476290175,35568687,-535562304,-1107329728,-1841850171,-1774009480,-1601055980,27315208,1325750814,-1747145295,224518614,-1229001222,1617093152,-1827570298,1248223918,1474053721,1825921882,-245410181,839503299,-544834879,1292615443,-736514293,-1340013903,1792111747,1079778752,1239625344,-49621888,-1161771865,-135255214,1568157934,1575323821,-1009820366,-1008824868,1296043317,-2044717489,846568961,75766058,1175099495,-182954366,2125859712,-702707102,1124725303,1647256123,-1108733736,-297366175,-1674765214,-650399562,1937847539,-764158770,-1525069541,597679974,503462757,-115268387,1190834471,1459633937,2002356816,1917477338,-172807642,1346856596,943183132,-1761281447,702286977,154130283,410632272,1287496753,-1853478677,-1406714819,-1947506602,1069126386,1619423325,-455277080,-1432149507,-1284456882,-22674518,2003524381,-671366831,-1630450408,1614684905,748299668,-1046926796,-103779377,-119274737,1010184865,-1752367905,1472036630,-34084532,-1697417324,-309250756,-1948720072,1227739194,455901108,2097708604,1936034735,-2068306024,956758866,-603610949,-750664567,109989249,-729348655,1381710540,1830509139,-282945176,1087274060,-336817286,-1209837046,-1768838895,-1275908904); -/*FRC*/Random.twister.import_mti(337); void (makeScript(14)); -/*FRC*/count=230; tryItOut("print(x);var y = -11;"); -/*FRC*/Random.twister.import_mti(377); void (makeScript(14)); -/*FRC*/count=231; tryItOut("/*infloop*/for((/*MARR*/[new String('q'), true, arguments, a, this, this, new String('q'), true, new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), a, arguments, this, a, this, arguments, this, new String('q'), a, a, new String('q'), a, this, this, a, a, arguments, arguments, new String('q'), a, a, true, arguments, a, true, new String('q')].some(new RegExp(\"[^\\\\s\\\\\\u001d\\\\S\\\\v-\\\\u00CA]+?\", \"\")))(new XPCNativeWrapper(window)) in ( '' )) return;"); -/*FRC*/Random.twister.import_mta(-1078331983,14118415,-1698796412,-1812337189,-2033196900,-281937749,1458190739,1707481727,-1645889127,-865722852,-309507757,-328278196,-952564958,643960899,-1097750449,1856897110,-1296326622,-691085980,822252243,-1639768380,-337712926,-1730801769,229535211,287700759,-1670683222,-1120083904,706492441,1548926358,-940409863,349853837,628490243,907446348,1642295305,1656798579,-680201752,2128857583,-1639825406,488413064,-1508668331,-1372423481,-807180137,-1323645165,1510308692,1166765433,1464758886,766389655,-321279745,-606320442,937161193,-1812058103,-1889212412,411402527,-11941432,474921209,1929092501,-1187886220,-413988638,1776944690,-998092660,-2030265934,-899140734,-377760679,-1988231435,2011827601,1059520239,-1657739392,-571968918,-1703272481,-1459948519,1436012906,1514081155,1396792979,784026018,1289367936,1665815719,545646963,-128083695,499003545,-1600043085,1011338322,-295882164,959725817,-74802378,-494846508,286390127,-108729959,-104860668,40085505,-526987493,481705125,-2406113,1494205289,856434516,-531686701,659636730,1580806219,878360299,1319487814,-494681615,1666756073,-1964532690,-1962363300,-859323144,-1671808731,58916797,590055264,-177888964,-730366229,-1249478298,-968558983,-1612788384,-938913501,1789340076,743396779,1045120354,607193032,989203478,132880385,-77774907,1446931310,390002845,-255792479,1071061390,354096537,1549449429,1664555428,-1067569321,2146199161,1809799933,728316588,420383164,162097717,227462961,-216342699,2013625998,2055055544,1853332863,-523924444,1799653810,679952707,409401583,-1534811149,414106946,83255224,526493906,2074607037,-1408374119,-919639955,-2138587028,1923307794,388308663,70779100,9296462,-1362537507,1317531750,-1902051496,-1376271155,2124332504,137316101,1697069367,-1496864953,-1072003845,-2021775977,1954549859,924251764,2035889344,37602371,869021496,-596436509,1437385890,-434022241,17850190,-1364159144,-151688107,1074152915,1954512915,-512141514,-1252756286,-1859279845,1795050850,-226293115,-167731125,-792340292,-1554448963,-1402236491,26116592,1583458742,1190867071,-16901404,-811949247,680419388,-262328773,-1099376809,-63709984,-357419765,606037277,625639970,-12194464,-8315706,-475782489,-1350691062,-726220917,523209921,473997791,-727584658,733705126,-1602368208,-1668239555,803637192,947579764,1215311601,623752248,-935472263,-548770497,-169663447,1692545148,-1894241305,1930002354,990563846,-292962297,1993737516,2137330072,178440848,-1275192330,-1350481483,516342612,-2137758105,-1393934618,210463113,559766572,75226610,1694990591,732904911,1901851063,894748251,1831319402,1428905986,-1912126459,-562555328,2119719796,-1267404730,1291612681,1872718578,56226319,1098458496,1089446408,1202707163,-963057271,2044905184,-1415910884,-714978408,1892920360,-1881250285,388417616,1790868398,1678661513,-1651021050,1701300238,-1885147014,1052401163,1906860292,573548178,-935459237,-1052527161,1315095670,1555396055,-2084328737,1127960787,1654418587,-2047521769,1595030136,-1862363142,1972239756,-518033601,-1662253487,-2100933925,2034101455,-1652759273,-695332459,-1649513748,-2084179111,-847574110,-1575346164,-1417292688,979398793,-607661181,-1652085245,-129197354,2014913233,1835800279,-1042572063,1456846763,-450015680,-187611528,1041374284,1795896556,-627107734,605905289,-1922323997,-1628728855,-493286229,-1072396145,705567231,1718718754,627241485,604561767,1017627375,-1936969848,-315582023,-318652899,-556550023,983678133,989137966,1665421710,432332986,1306139120,1960325501,706222661,1408894180,1691976385,-1408266308,-824637734,1721828716,-2093006561,-1262708173,-867962176,-1836498739,-1953708103,1183379670,-635290233,-177496093,-1026317389,-1520386592,-1549933425,1846237991,-1934482068,931452597,-1738633120,426466584,1669576824,-1847576920,1093984576,-509171897,-827626681,-336236646,1612258076,1903000171,-1140440947,164093363,549115475,-1053176674,2000507818,987371579,-716501979,-1325435663,1257024101,-1729246652,-2071839069,-452337418,1924101128,-580902375,-1485525231,-1719251309,962797649,22865582,559215541,1447260725,-1848327295,1571045368,536243243,-196699190,-1420196619,-1671116504,1008547943,-1477933926,1664740494,-1802563832,-588366322,1882730594,323779798,764087968,1370208638,-1743086524,-1117750290,437100557,-2143220848,-560160295,-662023653,-1452474508,-421066662,-945589531,1128886388,1384191695,-156372800,1430230935,-109055059,848954155,-1567502627,103574991,1936188790,-943890042,773124601,-167617415,-1983786088,-1527084803,1352010184,-213557068,47368319,-1161954277,-695800378,1345395599,-1685623409,511842978,-1475110130,1974295472,2112018669,1468823034,-885788243,-974774659,1698752051,1115560110,-1456200394,1921242355,-1823658727,-448059290,-2104780660,125330937,1347801441,-1090941579,332265318,-1740823193,896976788,113400815,-1681250698,-908356058,-1030151198,564278516,437029331,725272017,468582497,-1496310716,1994011701,-254880688,331203259,-136379848,-393459591,-948981940,-256074305,-1527970619,1761039953,1171041972,517710368,-539513415,-1885765023,-1515078139,947958330,1194979328,-291329675,2119197724,1990523722,-292925576,-942701380,1921982110,826642752,-2041401419,-1484681339,-1896378449,-2000755935,1072155177,-926858789,-1917862248,-888303739,1419507167,464763344,456957851,-938616481,-707088201,-1599185259,-144443322,956229224,-1630610394,388919083,587883253,-2040645359,-395459453,-1076298038,2073689792,-1378947147,467720702,-730144642,797917953,-387926487,224532732,-1125991754,-113647976,-2073828948,-102584190,-2074713487,-1833967352,-646238595,-109207517,-470392187,717273651,1847714839,263921896,-1285635377,-1852560126,1506589536,2040456848,-802916090,228059277,850900856,-538147566,-74785749,-1234374098,452023590,-978675768,433877545,1725713483,-1143803680,616708805,1966308848,994303334,-1706066322,60804230,529354724,-665100030,-104433066,-1339688545,596027196,54698101,-1752931842,308432074,-1660888819,1283488182,1543181318,311218507,1842863907,-71725774,-694876496,1131044718,1026914298,1935635376,-1330584591,1373638636,1028005011,-752617912,-1914167003,-1355399116,-1727417559,422050535,1955522028,-838730155,679787553,-1325339400,970192150,-248710986,233297447,1791787633,-1147816564,1303778016,538826006,-533725897,-682820589,-1318617593,-756070070,843864011,132750277,-458439695,466833163,2082718736,-799429966,1497115633,1270148984,-735710265,366753597,-1305470048,215972353,-358479680,921106451,1780313826,557109339,-2047376220,-585597329,-614533158,1279420423,1086453500,288948792,-20123594,-422228154,-606192384,-1280723239,1849447737,-1084959842,-2019962549,2104011490,-99162861,289155730,1816800634,246024088,1472432108,-1726779332,777017156,-498625130,-1727902702,347003007,517620492,319762878,-250491786,-1706651768,-505215417,-1392000881,1894340875,80951238,1807835180,-1069456878,1231164844,-265142703,590237266,1735876466,-1386455611,-2021657664,-1601804863,-196196052); -/*FRC*/Random.twister.import_mti(58); void (makeScript(14)); -/*FRC*/count=232; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return ( + (( + ( ! x)) == Math.fround(( - ((x ^ mathy1(0, (y >>> 0))) ? (( ! mathy1(0x100000001, ( ! 0))) >>> 0) : x))))); }); testMathyFunction(mathy4, [1, 0x080000001, Number.MIN_VALUE, -Number.MAX_VALUE, 0x100000000, 0x0ffffffff, 0x100000001, -1/0, -0x0ffffffff, Number.MAX_VALUE, -0x080000000, 0/0, -0, 1/0, 0x080000000, Math.PI, 0x100000001, 42, 0x07fffffff, -Number.MIN_VALUE, -0x07fffffff, 0, -0x080000001, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(231); void (makeScript(14)); -/*FRC*/count=233; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return ( + ( + (( + mathy0(Math.fround((y == (Math.hypot(x, x) | 0))), -0x0ffffffff)) & ( + Math.tanh((Math.atan2(y, Math.min(Math.fround(Math.cos(( ~ x))), ( ~ y))) | 0)))))); }); testMathyFunction(mathy5, /*MARR*/[undefined, undefined, x, x, objectEmulatingUndefined(), new Number(1), new Number(1), objectEmulatingUndefined(), undefined, undefined, x, x, x, objectEmulatingUndefined(), new Number(1), x, new Number(1), x, objectEmulatingUndefined(), x, undefined, objectEmulatingUndefined(), new Number(1), new Number(1), x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, new Number(1), x, x, new Number(1), objectEmulatingUndefined(), new Number(1), undefined, x, objectEmulatingUndefined(), undefined, new Number(1), new Number(1), objectEmulatingUndefined(), new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), new Number(1), x, new Number(1), undefined, new Number(1), new Number(1), objectEmulatingUndefined(), undefined, x, new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), undefined, new Number(1), undefined, undefined, x, objectEmulatingUndefined(), undefined, new Number(1), new Number(1), x, objectEmulatingUndefined(), undefined, x, objectEmulatingUndefined(), undefined, x, objectEmulatingUndefined(), x, x, x, x, x, x, x, x, x, new Number(1), new Number(1), x, x, new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), undefined, x, x, objectEmulatingUndefined(), new Number(1), x, objectEmulatingUndefined(), undefined, new Number(1), undefined, new Number(1), objectEmulatingUndefined(), undefined, objectEmulatingUndefined(), new Number(1), undefined, objectEmulatingUndefined(), new Number(1), x, objectEmulatingUndefined(), undefined, x, new Number(1), undefined, x, undefined, new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), x, x, objectEmulatingUndefined(), undefined, undefined, undefined, undefined, undefined, new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), undefined, undefined, x, objectEmulatingUndefined(), x, undefined, undefined, x, new Number(1), x, undefined, undefined, objectEmulatingUndefined(), new Number(1), undefined, objectEmulatingUndefined(), objectEmulatingUndefined(), undefined, new Number(1), new Number(1), objectEmulatingUndefined(), undefined, undefined, new Number(1), objectEmulatingUndefined(), objectEmulatingUndefined(), x, undefined]); "); -/*FRC*/Random.twister.import_mta(2079508741,192109453,-1550605500,-2066050616,-1065042573,75493487,573206136,855696622,916784838,478901442,1961207769,-652116598,482301240,-697204873,-321884764,132106931,-1015745092,-1272667642,1925404559,576913803,508577465,439982167,-186995353,1280027259,-139832042,-1098549216,-1117490222,1606067525,1374553109,-1932798681,1264489799,385910190,-1146808064,-1282974317,-753953860,165903342,-716935758,1138417875,210284126,-547671968,-611755387,1178105979,-1608317438,-1921571465,-117075423,1605021936,2119427800,893012499,2021384354,-2132944050,636939759,-1689657311,-1076315406,-440807263,37914522,-1401017912,-76775048,-2014276029,2080308963,571337153,51901318,-1545196615,-1806086819,1745977552,-916981892,477833131,-445632912,1260873062,-850761936,987806385,941030583,683306744,-290694885,620897300,1112001507,-239236728,-865857213,-1838904163,-1775353994,-487315055,1698483766,-895044131,1237219458,1330550606,-1293636808,1607833847,1583832526,1093538769,1753960519,-579016048,1480703710,40290900,2102779336,2082989052,1593089747,-1907887274,-1682940395,1366331071,1824982919,-57573739,-1043187361,-187956364,241074736,565473058,-228351691,275933869,-1659704387,1433934939,1232341292,-562345038,-1530879186,214790726,1594581772,313674300,548353180,-1030257895,1635229940,315284755,1911447697,1463638873,-1196116058,959955084,676842227,-1813522832,1151922466,-2107344366,2092039565,-1351036633,171561650,-723769892,1679458195,803876568,-2096924599,2134908722,-1430604382,-1135529302,-1386078433,958545263,-693107592,-2018042397,-425902587,-1209077869,-722589332,1289390855,-1712440837,-61786589,1294984984,295956442,1142403098,1102694860,-1879826101,-1351570157,392538648,2120483540,1943968320,32681196,1472979661,740294565,-1840719534,2068290506,-186506107,-1334108059,1490881890,1446865370,481382262,2017046473,-827660401,106316329,-1204212965,-1739306149,1197585506,-202077859,-106870274,-2060954074,1936644708,1770029162,287233305,96178453,1621299596,309931581,-287859973,-2101287778,-29215214,-1524623641,1643352227,-1429778305,1735218831,-467535192,-1299740296,344377058,-1340135942,955788098,-1731419850,932157274,2024715400,2090406952,-2131352274,-128360664,-1783493778,-1381372266,-495991416,-1160422459,-1719474264,2106818523,-858863121,1047441884,889680599,-823062538,143896005,-1544887125,26864546,1275565333,1827342792,35267724,-545859407,-294781913,2102888479,1984169775,1846358734,839456570,-813648227,645868314,2122863241,1670662592,-937651606,969205293,-1573169569,-1530933986,467531163,-1582412355,793895272,1281069899,-1512392597,-1584874102,93536091,472954567,-2105514465,467250425,-1509076944,109391131,688387756,-618669859,-1619295381,-473405572,-1806470398,-937686467,-1742223984,1654728137,267709785,-1637119829,874675311,1766708928,-183100408,-2009379323,-189448610,1596305814,-25677536,1284500858,-782951820,-2089735806,-1567584550,1847074894,-263581230,-1300951159,-192353561,-1805530130,667822294,1943002135,-573935953,-810935490,-2063044982,-2084344601,-164776016,-1456646865,-313401439,-1645369830,392894746,-675719686,-711010985,1731392385,-2096867984,1397725084,-105069584,1062472163,857460573,-1405757123,1579918506,-434908623,207130637,767308786,-1703679014,-71217060,1712555159,-1166466986,2124611344,-536483067,-236537174,-1481926503,-20506925,115896209,-603926388,-1907853373,-1031454439,1205721242,426265841,292908766,-458080683,-1968426443,623827468,-1075899295,-1961428533,-1348588241,1853337648,1384459667,1740840745,-873465818,1366841197,1908194476,-1459438613,1800542742,457924753,765729893,382788358,1491510227,928085983,-1131735234,543141270,-1567211212,1087745384,-303825634,-640348636,-1596719163,-659281867,1931474673,1394675437,-1950428503,-766246014,-394981982,1024241274,1476098136,1915239068,-1988831264,1019905637,344790841,1657163933,-800035461,-801715264,1700784544,-1335747718,147532988,-394690651,-1060287008,835275999,-1111034070,1392915658,105854864,261458514,379490280,1455264988,884726170,-1242367899,2138120756,2045252189,-1379111864,-1333726102,1687752125,374721788,-2008079879,555575641,-288529271,-2139162206,-673424017,995564239,1591453013,1614748061,1313879966,802084555,-135775878,-1495886984,27274568,1454497387,2144588898,1598198043,-2084208108,742357613,1678653793,-1911946728,-1605084353,-1022843832,-1576794929,932827616,-1392937778,1131370409,1027447963,-1545532640,2021431889,269753578,-1652608422,-901284890,-629147331,1261084165,-781761401,761293222,-630513224,1844483569,1493279190,-904332579,1786893353,-377253251,257035018,837488895,783457778,-1093755400,498858839,1138238977,-1723747451,-1474851093,1273272859,-749672316,-1175212703,588613057,-1729630674,-331926917,-229396195,-1189309586,1325828429,478918393,1679537133,-214720394,211076548,656940049,1453806791,864789223,1374337476,-1346527737,1480767423,937693341,-1928578667,-654825990,2139293674,-528511415,-418270567,1052487077,1186466051,-1693805620,230352232,-748689094,83788832,-888393491,1550714323,1828296912,2130703465,-419391550,1777023362,-117468157,943787419,267889112,1350161254,1997139694,-1835032617,-1032880172,2094313492,76709479,413237530,-787358748,2021533496,-606933932,-268655769,1719126255,-643015641,524685409,1729509682,-976890155,212941442,-542148167,-65993251,1463031614,1335066700,892511732,-93228517,1520748879,2084093947,-989717055,323380158,325292575,-1399200492,211742343,-278863323,1143296113,1048903821,521004098,-1304828263,-1978624331,1532151706,838741185,-1589954834,344562393,-866148850,1987463942,328980350,1105122482,557396583,871752910,280398190,1461617730,-1655389226,198487601,-1077205448,2069736223,645891945,638571103,485330388,1224214519,85843389,-1419020126,781048809,-128271815,806714656,-433575892,-1384502998,-2132762962,1661145507,-316517326,-1339466519,-1469235349,-756373934,2047562426,488283292,-544529315,1512874492,1277159525,1348037268,-2030194041,-2098068850,-1487816650,-1251999114,272386863,-1228259502,-992694665,264413063,1277138542,1584178929,1254045953,965234843,-166264262,-2137833265,-1263617445,1288716427,-131566290,-1018450262,1654772005,-1990641622,1908537841,954194922,-25183297,2017710387,840476370,1975254979,-1122425597,-1100013243,1662065786,-96583511,2031099007,334433374,-2130532089,-48089792,-855177883,-646517829,1570095290,47932525,1017234016,-1756301894,-175498553,1663861500,-1229372703,-1451616598,-676585117,-584549435,45515062,80214958,877932504,1375598232,-238307208,1648030143,-373880012,1994223522,1009211526,-1969979266,203130263,336006365,1829767163,1586916905,2066965618,-862874490,-151292792,-2061587697,-1504480832,-1235488993,-796303709,280418617,1381113163,924267071,2138307925,1666183362,616031642,-1447316738,136820119,1849243728,854627238,-1229217049,1280234124,-851220937,1718067842,-1142246898,-2139821514,-1481003362,51751736,1712256713,-1623008393,-859190892,2122474875,1789561119,39567047,-186267465); -/*FRC*/Random.twister.import_mti(97); void (makeScript(14)); -/*FRC*/count=234; tryItOut("e1.delete(this.h2);"); -/*FRC*/Random.twister.import_mti(110); void (makeScript(14)); -/*FRC*/count=235; tryItOut(";"); -/*FRC*/Random.twister.import_mti(116); void (makeScript(14)); -/*FRC*/count=236; tryItOut("\"use strict\"; M:if((x % 3 == 1)) {( '' );t1.set(t2, ({valueOf: function() { for (var v of e0) { v2 = evaluate(\"function f2(i1) { yield new RegExp(\\\"(?:^|\\\\\\\\b)|(?=\\\\\\\\W[^])|(.)\\\\\\\\u0016\\\\\\\\1|(?=(?:[^])[^]|(?!\\\\\\\\v{0,}))|(?!^)\\\", \\\"yim\\\") } \", ({ global: g1, fileName: 'evaluate.js', lineNumber: 42, newContext: true, isRunOnce: (x % 3 != 0), noScriptRval: false, catchTermination: true, saveFrameChain: false, element: o0, elementProperty: o1.s0, sourceMapURL: o0.s1, sourcePolicy: 'NO_SOURCE' })); }return 3; }})); } else if (Math.atan2(/(?!(?:[^]+?))|[\\u0073-\\u00CD\\u0031\\f\\s](?=\\cV)(?=\\s)((?![^])\\D?)/y, 20)) {null; }"); -/*FRC*/Random.twister.import_mta(828438299,7585847,2095724621,680332070,-350605807,-238728848,1817709511,415410120,-1308905427,-1232096388,-1150821180,1687133581,-1268032661,-254345835,-1924410601,-1351337026,1612611943,-186099835,-293145139,1847784449,-2024118551,2146134013,-1960647958,2129003447,-695515114,-651544828,1900696231,-208348135,-1382440582,195822256,2094052450,-1137859972,-2085342492,1447929671,-461782686,-1064692550,-1642206095,-299872321,-2111254939,903939639,3289946,727484016,1551580313,-1927830985,1021956429,-2146558791,-556381775,776844637,-1689991657,1854132241,-1009779417,-1779638668,77331533,1368630844,-1852085624,-1489577784,-725497361,136837009,-1952681861,1389306675,-35671298,-72253263,2128936320,867233080,-1192298830,1691218401,-1361811839,-299694872,1058535921,-472947578,-466930507,1268789275,-226132465,1374646711,1630196967,-1400984896,720109649,-332152248,105904432,48366508,-956208427,2012563766,1663645313,1169027613,-1444897060,1787865045,-791857594,275662500,4286303,-1651626454,653701786,897194278,-1037902594,-1864699692,1353307114,1557151780,879938138,173901290,-741573284,-1618537962,-24424026,1656199726,1159218300,-618810943,990503631,1069275963,1630373796,-318538584,-834061153,201563050,1404946448,1353847802,1413459575,-1229480581,-347607087,-680758054,1837791560,-941281062,1708555344,-974955919,-1649047913,85529622,-2093713949,-1678581126,-199345422,-2085618740,1871354416,150841050,668406817,-287855139,-334628653,1096440502,-893935791,-13916479,-1143075131,-570500853,-1403463426,-1942579092,992019563,1613370893,-131419968,-1034690071,277103393,1939927077,-393048266,-286048228,-798149785,1941182550,6284195,-211582257,1132253087,-1578406396,-145994042,675188753,11437121,-1998587671,565809336,1904877357,-1893952256,-1774631084,-944175027,-1981941374,-623408790,-669482121,-1336035117,794435572,1862560734,-843414881,-1745519758,-1622968866,-712851135,-612259268,-1747559849,-1099756609,712975265,551726991,-829959847,-441633820,2019513605,-268090137,608861588,-2045679668,1617550841,288035504,-1693892554,-1505358017,-1226803194,-1650966279,-934232630,290183303,-1178485956,526786361,1099536081,889817,-25643617,1519357420,-617515307,265369421,945178936,195143755,1298537934,1309619998,-973454612,-137021680,-219069150,-468415311,-1509948067,-1787490780,170163377,-928711201,1067299910,1066344237,1084172254,265338472,797294865,1408255102,-1698142877,1082161179,-1626221539,1042941761,-249823820,-9425175,-875285072,1673644350,-1523909542,-802296353,-1971625104,-1052714522,-1096396706,-1556083682,-1319154757,71966433,1691928561,1551988048,-431203548,1982889812,-603696634,480535362,1887396369,-840341979,-1582915302,-1174161061,1891402379,1329939723,1129666545,1555684027,245621839,-1268884520,-1543474153,-586039041,1081159082,944502510,2135745020,1123200543,1563920654,-290685850,1748286640,-227223386,1806621948,-546975728,-629348492,1375510575,-1515468075,921815745,-1138470323,-1278515313,-1936511081,1470916328,-1022476342,854934540,1844841076,-1008253998,-716636844,-365522439,1300068220,468988991,-968757373,1711251389,-1896815226,-5454597,-493595047,-1080992992,670114449,-582170087,-25032010,-643631979,287073389,-458866099,-1905863272,863431586,1396743677,-1385854456,-51058898,411271374,-866529507,-333879793,874677135,-318644896,-1069673487,388835816,-618219590,228726164,-1998256230,-1109010376,715289992,2058720704,-884657970,-1400620168,929018869,-56026349,-1571434655,-992127932,1787352372,-585003714,-256936991,745623680,896248807,560327509,1063772628,142130861,384530259,628369345,150035889,874152059,1635250738,1960134298,-189876586,609721137,-865429233,1364933017,1085802635,426792955,-1887540226,-811820076,-2136813745,25604347,529956793,-1255691371,-1029440327,-733606056,-2024400178,-20899402,-1981695641,-380045636,-1109040793,780269261,649339587,-1979518083,-1731247546,458614107,-904102025,-1101624787,-1474251604,1486994637,-296603953,1794627853,-1106309870,1537911353,1382345714,-1714778490,-353565735,1292346339,1264812733,116829732,-1099270785,-1853679908,-402958135,-1202950931,-635442452,1158091059,-731932487,-441164982,1004322160,-1443408997,-1108568256,143384813,1122944416,987337948,-956328431,-987761188,934959894,566868192,-189254546,-1768219173,1895338432,976611672,-1128529455,-1962442552,-1367128274,-1488123463,1390063076,1228462326,-1706253527,529814287,79127907,519694481,1209537565,-12855997,484459186,-310344528,-991737071,1323502469,728117192,-608969665,-1492628087,849139200,835537933,961884745,-1589617763,-601923087,1884537586,-44484740,-769566555,2101779347,1012813210,1026627265,-136111978,1108300370,-976227007,789824389,-1629370903,-1278461243,-1247902623,-1167739786,-1264968607,-1620179727,-1216804456,-110130469,821724016,1933679580,1521156721,33497596,409778204,2036793809,497277577,-123848121,-1778133597,-617132350,818936960,1218548754,1027905811,1917710359,1506992174,991384910,185143508,2043176350,-469937560,-1778186791,-1697661337,748762685,-1263961734,-629710687,-1848948820,460585486,1922899309,-1922759631,-132058327,548320444,-1685982748,-823106187,1643695153,-941459631,-1514158380,-2003813710,-1382848559,1408560443,-1049431745,-1439059213,2132197311,1874396461,-454878110,248293882,1826734867,-2069209658,1805636601,1812957166,-2039592041,1828587358,-1398398422,-1969209195,-1249493657,239989801,-1513808494,1082817525,1400068012,1920561733,1731300936,-1939861548,984746157,1502119340,1762992492,33312390,467381733,-458785965,-1331905188,-515649236,-118612345,284813111,-1248406338,-2067527601,186875997,-1284986919,395040728,-253865925,1958100507,-635561990,919129829,-1920946346,-727923088,-535970883,-897871747,-588486578,1481514636,-320815751,910554304,-1749753863,1735325579,-2115577939,31351238,1351183846,1821655890,1470479202,1502146116,243105229,1134645444,1290180412,1894473640,660888008,-408828338,-127340443,668415135,361230900,-1231869982,-1229802514,-276160399,-1555073475,1587037555,718867859,1676659608,-393779495,401477814,1384647405,-993257714,-1322342794,1197032547,1254773099,86012266,956345249,-41070829,-2020688143,-1651614570,-580729905,-1059599396,-317473227,721799373,1935490481,114971987,554340640,-624618226,-1262967903,334354644,821038944,-1030893903,1934300922,-177151495,711717243,-1169002874,596487376,-1536188599,1269889387,1550624662,-1087500187,-34290600,917860100,-1529162080,-404757929,2056349041,63679566,-116707068,-1747941782,1945662510,1022837466,2109396716,1248347882,2047647277,-621294986,-449501605,799444294,-333555884,534227505,1805431101,102387090,111139145,1307174049,-1849791312,-482262463,1747078374,-2113818917,-1333637109,-1347234564,440214658,-1301326663,-1871009254,1610997423,1844542101,-94035952,1660476144,689184967,1941778658,-1760855797,-1054291769,-428342415,906567506,652188716,-411278717,97692800,-1853659176,-1423249134,-2089190942,2037704156,588700672,-1677219619,-83711795,-912203953); -/*FRC*/Random.twister.import_mti(152); void (makeScript(14)); -/*FRC*/count=237; tryItOut("for (var v of o2) { o0.g1.o0.v2 = r0.multiline; }h0.__proto__ = h1;"); -/*FRC*/Random.twister.import_mti(202); void (makeScript(14)); -/*FRC*/count=238; tryItOut("mathy5 = (function(x, y) { return Math.fround(Math.log(mathy4((( ! Math.min(y, Math.fround(( - y)))) >>> 0), ( + (Math.fround(((Math.hypot((y < y), x) | 0) , (y | 0))) ^ Math.round(y)))))); }); testMathyFunction(mathy5, [0x080000000, -0x07fffffff, 0, 0x080000001, 0x0ffffffff, 0/0, -0x080000001, -0x080000000, -Number.MIN_VALUE, Number.MIN_VALUE, Number.MAX_VALUE, -0x0ffffffff, Math.PI, 42, 0x100000001, -0x100000000, 0x100000000, 0x07fffffff, 1, -1/0, 0x100000001, 1/0, -Number.MAX_VALUE, -0]); "); -/*FRC*/Random.twister.import_mti(385); void (makeScript(14)); -/*FRC*/count=239; tryItOut("mathy5 = (function(x, y) { return (( + (( ~ y) ? Math.fround(((((Math.sin((y >>> 0)) >>> 0) >>> 0) << (Math.tan((mathy3(y, ((( ~ ( + x)) >>> 0) >>> 0)) >>> 0)) >>> 0)) >>> 0)) : 0x080000001)) ? Math.log2(( + ( ! (-Number.MAX_VALUE | 0)))) : Math.sinh(mathy2((((( + (x >>> 0)) >>> 0) , Math.fround(((( + x) + (-Number.MIN_VALUE >>> 0)) >>> 0))) >>> 0), ((Math.fround(Math.sinh((y >>> 0))) - Math.fround((((Math.ceil(Math.fround((Math.hypot((y >>> 0), (y >>> 0)) >>> 0))) >>> 0) || (y >>> 0)) >>> 0))) >>> 0)))); }); "); -/*FRC*/Random.twister.import_mta(1711965575,-1147277749,-104464093,1751575750,906080061,-1002267916,-674066469,654124352,1775964094,1820238447,-770028464,578635511,1031581668,-1342268506,-1427952989,992389321,-566624114,-770340957,-752296930,1833343805,-1527623309,-1067547596,-915901823,-1247518238,-547806905,1412636141,447179429,-497627940,-625474135,-1995353175,-411477019,1897961986,-2123368288,1754784448,1639590817,-831848709,-1753245999,-977334940,996542851,-1776628722,-828830214,-2013605357,-685574698,-96943766,-347976044,-1347324887,-180797633,-1616657664,-1753137847,1527913508,-587896093,1099624606,73983267,-1134244802,-1981018939,1654854532,-966217447,-295987825,2097816951,-959501738,-998325189,-453800156,-685239319,2106570600,747388798,735921483,-8275770,1796221942,1645436792,711973818,1457592865,-547573657,-1639576279,1300154062,418643098,-1600162844,-1296843550,683159393,1837008440,1021726242,386180037,70912437,830343492,-1586073079,-502458596,-1918662991,146626727,-899984164,2092852560,877319941,-1763900601,463693522,300285382,21088409,798256788,31639752,-511067738,-1720024078,-1367320537,-2018789804,1638017568,-1759840640,809656432,-810565147,901642907,656217098,-966791569,-1969614709,-1675634129,521546477,-1512462677,1737204116,1650378207,651220810,-1218817501,780870184,-820894444,1152305896,743293470,-1329822689,-1016439386,-1723012120,493886683,379280939,376587908,776840028,168013472,-918394357,-494538483,-1612377314,1204384915,1542633785,519410650,-483359966,-495964562,-524334179,-257294376,722604699,173198820,1653415187,-755479112,-1297786153,1214230036,598169389,636594915,905068130,-923489699,-562166419,-361553709,-40458630,703929507,-2043975568,1251558950,80850537,1074106212,-1878326400,1289617788,747340365,943824411,-66166358,1709469153,-1213279813,1102860997,-758401950,1734148250,-183501986,-862001302,-1098228672,1707756436,1234943737,1313700302,1988887229,-1920873365,-1873049959,911734653,1136630827,1147401974,1107152125,1188425979,682908603,12787624,272068391,-1622864078,2122110005,-153291366,650832623,-1649617335,505725128,190486250,-103416891,-115527163,1439837411,-2032545022,-844604627,1801292644,-1307585796,-1828073512,-1919596500,2140743355,1318142465,-1526319788,-1837141635,-732409996,1665500691,1500357182,1517426795,717183421,-1309936622,1195372064,1026949331,-1344594034,1408410381,-1864161729,1340250256,-813686450,-1570398916,-543747842,1912354898,-1009836033,-1458661118,1301960377,-426548422,143917379,830710317,1830416109,-1103160971,-1459571780,962178472,-365041596,945886241,-1286909079,-1654293478,-368959396,-453729719,1575295722,1205413565,573346766,1932348807,-1652472518,1840250729,1811412948,1270209337,-2054374765,1721244585,1698814497,1299291878,2003416785,1878711207,937350292,-1454316460,-1451124075,-520138311,-331154883,876391970,-721358097,-1365091343,-1339342854,-1834076773,1586655754,-330200294,-1721695736,-362316268,203074372,275058472,89263740,-467194217,-36896902,-283241953,-562008043,-505810708,-607428477,-2115620802,1134726154,-1819835263,189884864,766081623,-1327144155,-611510240,-1487658436,-332759344,-475242066,1125920082,-720517545,-1188449214,461528858,-1400068194,1838463919,-2092060937,-1119290635,1736502728,1799189100,1391873257,1738310956,1084616599,-2079053778,-1593135520,485438730,-1342790906,-1798691693,-1277864204,196070404,478248791,-26370056,-404584922,367191425,1222385247,1789154206,-710685984,-1553582877,-111387093,-1021781973,-1756791418,-1556922322,-371043960,-1671168868,-16580484,-1108307344,-1989217363,-2036889253,-2087127376,-1963758682,-1293651821,-2098776022,-785235777,-1559224129,-1797848212,1284033299,-559950216,1723849363,-1994992406,1512004295,839044964,1087592928,520501527,1397880873,182211884,-1668460552,1568729128,229156408,569755832,1504730001,1789017679,1512528246,149431672,-1964605103,-1507892320,750079358,-1894908795,1307486618,-1586064449,-793203742,1113726162,-619328027,-1541273320,623982162,-41781372,1798895325,1861943658,1461190266,-225729815,482075148,1590255599,-473686897,1989965240,1674811893,-525872801,-1482449990,-1074284338,1227776657,-75967849,1367177864,2015360091,-1207883920,-1778195971,53691844,-888913405,-520459244,-1820170380,-458976610,289696685,339046937,2052691283,1112423858,883050908,831616737,-1088999892,-1181900338,849727094,2097210808,684786743,-162015207,-210509359,600662534,1473111300,687741143,-657526459,-284236665,4020375,1078739173,1996020028,1847767940,602202265,-143736085,-1896914707,414427133,-952375774,-1391037888,-1989442887,-416256256,-412291509,1087393675,113568023,-1050601479,-2088505212,-1716192393,816519841,-1731046676,1123186810,-1689027074,279019817,222754448,-1466271349,-281212729,1347186999,1529543307,606446199,-1423034445,-42240788,-1411400557,1610972819,1673139949,1432092208,-3594148,-1117387738,346839534,-1791577042,1353557938,-138616370,2007132420,390716009,-271790012,-479637159,-1074907237,-636249964,1293421213,-231622965,2064100145,-1711982251,701188347,314621438,-978279774,637291835,-209263502,155618773,-1495031953,254091535,1748389503,-1098142821,1662385791,66516635,1577920830,255523200,59849700,-303197959,-2082501691,607161722,-1581541681,-1921771308,-446568080,-1208142686,570314580,-902198409,1327804421,-1683034126,1509759056,-1377746560,-550508549,-1076720768,1017626924,797529169,-367860503,-941458394,1475335892,-1718447060,848968806,1829418286,-362705680,1563473537,-962380606,948976626,278603883,-1850251183,1333535713,-1518165548,-1614808439,1006620553,816690088,-1056961828,1519158470,-1623458565,322660274,1083474476,-1932598635,1404488951,-159247395,1698231697,-353752709,-1981676906,-1441644461,691584694,-681607067,2007322716,66341373,917914063,295662036,1475817967,-25479487,735199887,2058549786,1373021317,1802973734,-1462739188,1060937817,1027579240,-1987712872,-1396733113,-1603831280,947859235,-105007174,881767784,-316571844,246118000,327501736,-2073431175,487375137,1428334213,1966630973,-219202073,973241909,-389789579,1504633889,-1106905317,-1483451577,1196720286,889416647,-2079870482,101716927,759004400,1747689268,-870312351,646680967,-1015298735,2069261481,-2147311702,2117728383,-52805403,-1718379398,2004734016,-246010261,153466250,125714087,-350244946,1937366609,1060999131,-1849843638,276926843,1882398416,-762370838,-1770851803,1947273917,-1904763499,-199433347,-45755358,1054352942,1709882737,-1448170499,-1600961128,-331533472,160063463,-1561724942,-1168529291,468475172,-659139343,-818542316,1132520529,-1132077688,-1520901046,716491174,-2010498520,1325593806,1972458353,-107690610,1599837136,-1350783518,1465887025,1027556578,1668330789,-1875582382,801545765,-182471375,373160830,1259213001,571350411,1326080385,-1364134020,-1780940826,-1664693487,770435688,-388720375,-1143805682,-560531205,1788213576,-1401364422,322642000,1884067894,1975604820,2101640382,-1209309976,-1882614977,843451398,-1060732491,-864551826,622210621,84088475); -/*FRC*/Random.twister.import_mti(70); void (makeScript(14)); -/*FRC*/count=240; tryItOut("/*ODP-1*/Object.defineProperty(t1, \"toSource\", ({get: Date.prototype.getSeconds, configurable: false}));"); -/*FRC*/Random.twister.import_mti(94); void (makeScript(14)); -/*FRC*/count=241; tryItOut("i0 = Proxy.create(h1, g0);"); -/*FRC*/Random.twister.import_mti(110); void (makeScript(14)); -/*FRC*/count=242; tryItOut("\"use strict\"; /*bLoop*/for (let yczlqi = 0; yczlqi < 15; ++yczlqi) { if (yczlqi % 5 == 2) { Object.defineProperty(o0, \"v2\", { configurable: (x % 6 == 4), enumerable: (x % 12 != 0), get: function() { return o2.t1.length; } }); } else { (/(?=(?=(?:$)*)|(?![^][^]{2,}))/gyi); } } "); -/*FRC*/Random.twister.import_mta(-2063917203,-1515720533,46903135,-332737339,29732323,93271513,-577637811,744366114,1745618890,-2078583704,1096651037,-108119822,-258759784,-1935054331,-1033957972,-293857346,1937867658,-266300040,-553588768,329501322,584923744,1727001697,1249096152,-69019924,1535854498,2070285642,1634146137,-1350678400,-106579076,1100622494,-2048181779,-1419231037,340692979,-898649118,-345624174,763253739,-541490540,-803738128,-1640246743,937501007,759773208,473109487,1784003292,-1704069362,767122322,1551505627,-1782417132,-1613749018,-1615284007,-864702817,-114278118,-1292399947,217242593,407770143,1420674297,1236929569,-412878899,1097743627,742568996,-1828610883,-856527863,-1853274284,2100374831,1212888705,-2082673670,1012000647,-1738177278,-1294588807,822567079,331590400,1003679800,860512059,-784181307,763867417,-629788027,377319028,1459243165,1866619724,-1282251119,1302660806,617037701,605603214,-1506091638,-1693159577,406523809,-1967535528,-1128317374,1287982798,-299405709,2013773196,283182568,-833502687,-1590136991,122756897,-1857680331,2142830386,-381689811,1375168069,2016023715,1081910968,-896700004,44938494,568634582,-789763552,1394214953,921281917,-1879870355,562384405,-1279569864,1628326641,-98053540,37065315,978375955,1442453931,551600456,612195191,1424041147,129601755,-694041793,-1613883374,1735669627,-1392360280,-1013728433,1615728996,-1074360670,977106697,-2137646926,1640997057,-481492280,1519087750,-1936800928,-154698153,85390585,-1676056565,-402889887,1808906308,1223183083,405120979,-43214637,1547980513,850731091,1580050751,1612665660,-765558385,-1526929366,451327670,-1318898953,-651015311,-87235885,-874369743,774424776,224869415,1463841162,109663797,-880917359,490302487,256896595,-82737235,-1025675216,1919490645,-173930430,142653398,541093819,1959837418,-778546687,355904996,1618518523,-480737920,-1387987240,1461035575,1891734891,163226831,-1523287762,1280628468,1288412599,-546033831,-2026999665,-544672301,620508927,-1594701236,2100180012,103340158,1155476791,-2127048008,-780035956,1332252426,-2145097360,1177399076,426217653,1088343447,-648712440,-1958292567,-1327601273,4167363,-527225616,383743036,-373945868,-1315206477,-2088807107,1911795599,1073998387,1173010847,498452199,982198881,-12604381,-1369898614,1476369288,-852557716,306925392,-1960098602,-585495759,2041428681,-601643706,-111744932,1000814550,-1011652539,1808088185,-928798954,558242517,-2105415875,-2069703307,1384850241,-1282445873,1866647068,1247854603,1905686499,1504690255,-1310332081,1621084772,-2107197900,-1567069496,1959050701,-285354974,-1285325000,-1766194269,2031767085,612713076,1335702400,374437785,-983017358,813381446,1502732346,70822581,-668344763,-694658549,2109508695,-1118431354,959598634,1917290059,-2017735603,311807727,-1264416157,561535579,-756031759,1630000551,-1582291839,-1849327476,-358481688,-1656715954,1493044983,-1084486424,-1385470928,625792127,-586119766,2064435812,-522343020,-647587681,-620646195,1826614169,-1632060862,-627118319,1281891735,-860788156,-798306828,269232402,516077972,-1582095729,-1432727548,-991775267,2099571510,2042626742,-417097971,355390976,-1432168384,1462267588,-1014998740,196082457,190751148,-498519632,1219466265,-130506710,-1340954260,-2062835565,-1703964395,-497847479,2138110498,70843011,-390114642,1788933185,-1802128953,-1160790419,-448725639,1703685479,-2063365502,-769334084,-2034217122,1735713718,-327379669,-1044489660,1589510464,-793718364,1235398582,-28777828,-225525748,860131056,-1327552693,-1514638203,-895323750,-1885488775,-465446222,-953444425,-801796064,-1909887054,566182061,463267827,-2023308811,1865633156,551169034,103210635,-706498198,-907260526,1936958681,-1604187863,1062418598,619406467,-1107429436,265174757,-51150528,315586111,-1887418364,-106711469,234057203,537479627,-929377076,1421222155,-2131008128,20993679,25387958,615628200,-1412436290,25108237,192206991,1747743621,-770800741,1594792707,265931129,1844899891,-1492829091,1451892732,1263207935,712341283,1326898681,278889112,-536267058,-1317077085,-1363323634,62886534,-819289660,-90607445,144830072,2002373501,-1191412846,-923830633,-252014571,1706613423,-1968057127,-2111627637,1551532423,-590497490,-1001228199,-1565709245,-363242936,124274905,-1903172100,-459665221,-1642356521,725351790,-886932834,-2048883438,-2107427992,-1805517091,-2139167998,1053843302,-317776561,1446465021,1137392708,-1912357213,-907082298,851888209,-1843060500,-995223961,-294368227,17510384,1384059822,-65730878,1920405471,2102377423,246809516,-325705852,-1111508435,459085548,1748607919,245987144,1442227220,-2022665557,353286595,564654506,-721628681,1511957474,-1233317169,-1921377575,235214924,-403571592,1563149422,981592919,266403387,256775673,-1931180891,-1394559479,-1251967666,270980473,-1059375091,-253099111,497661823,-944481669,2048760969,-1326107599,-1496629325,-352196830,-339358364,300609583,-44524348,-1363500017,-1807644184,1756613804,-976388206,393464648,1229963735,1542159806,-1856553826,-1531686818,1940107826,-1405255210,-740901081,1870646039,-846439036,69980966,1243227432,-331909537,-1040498499,-1258421256,-1754096047,-689686898,-60672183,495285565,-1618736095,-2083367912,1120650238,40860267,1422363935,1681763105,671265494,1886124974,-777479250,801304810,-2066168471,-665679475,1288056441,980324500,-1921410832,-1323376414,181419725,-1384550761,-930570561,-601400705,-1469037770,-1351686808,-1676832119,-249333303,-1274417003,1287881053,-2051380405,-232981122,263312644,536274902,1955148365,-1103577300,-1210536590,-620932299,-2060658275,-266302238,-1889277817,-300847312,66755518,1091475987,1755255231,970320509,-1245605312,-1279276970,-1484151059,-781160338,-807732507,1104398612,56640499,-1179809404,1148983823,-2075261567,-983442137,32590833,-1330628224,-1912095085,616928186,1643066518,16387791,669525970,982731081,1369609865,-2045680208,-1090017331,1394381561,-1034538566,-605665432,503055933,-1325779975,1608873654,1646976645,-20893844,347692641,-456639661,194453587,1954843486,-108652660,-747280636,640774585,-928929427,1436352633,-220240694,-214018003,1865231311,1147410350,-1727393062,-12623496,-2023256544,-1993932444,-2017477465,1257181366,-1369614006,1750067832,937524764,987080357,182251377,-1000391820,996901110,118550208,767293730,718731607,-1496851855,731021214,-286041998,-1103480866,731649453,706005786,-543721833,-1430406936,-1940093289,1962418020,-573475058,-592281567,436216694,-1408755872,-1611092727,-363003484,1749208563,-1791085884,-1186475367,69627353,504455468,778070583,681027486,-1285579777,-591178743,-556583349,-1190984705,-250022207,-776666187,1378458342,12296017,-1179503440,461050325,-2081322200,1282746542,-306748235,876369094,-1787075275,378994292,195456121,-1834513043,265277464,-1213190449,-248806277,-70969000,-223977306,-679071489,320713077,-238890572,-1153254579,-1718189796,1250789277,-648157951,-2017743005,-1959468168,-1649087940,-666761258,360088010); -/*FRC*/Random.twister.import_mti(10); void (makeScript(14)); -/*FRC*/count=243; tryItOut("\"use strict\"; a1.toString = (function mcc_() { var pzcuny = 0; return function() { ++pzcuny; this.f0(/*ICCD*/pzcuny % 4 == 1);};})();"); -/*FRC*/Random.twister.import_mti(34); void (makeScript(14)); -/*FRC*/count=244; tryItOut("mathy1 = (function(x, y) { \"use strict\"; return mathy0(Math.expm1(Math.tanh(Math.exp((( + (1/0 >>> 0)) >>> 0)))), (Math.asinh((Math.asinh(mathy0(Math.pow(x, (Math.tanh(1/0) | 0)), 1)) >>> 0)) >>> 0)); }); "); -/*FRC*/Random.twister.import_mti(165); void (makeScript(14)); -/*FRC*/count=245; tryItOut("mathy0 = (function(x, y) { return (( + ( ! ( + (y | 0)))) || Math.fround(Math.fround(Math.hypot(Math.fround((Math.min(( + (((Number.MAX_VALUE | 0) === (y | 0)) | 0)), ( + ( + ((Math.cbrt(y) >>> 0) >= (( ! (Math.asin(( + x)) >>> 0)) | 0))))) >>> 0)), Math.fround(Math.fround(Math.pow(Math.fround(( - Math.fround(y))), Math.fround(y)))))))); }); "); -/*FRC*/Random.twister.import_mti(339); void (makeScript(14)); -/*FRC*/count=246; tryItOut("let x = Object.defineProperty(e, \"toLowerCase\", ({configurable: (x % 5 == 4)})), jucorz, qoajnj, a, b, kgiizm, e = \"\\u1160\", c = undefined;var jyoojr = new ArrayBuffer(4); var jyoojr_0 = new Int16Array(jyoojr); jyoojr_0[0] = -0; var jyoojr_1 = new Uint32Array(jyoojr); ( /x/g );s0 += 'x';"); -/*FRC*/Random.twister.import_mti(544); void (makeScript(14)); -/*FRC*/count=247; tryItOut("/*iii*//* no regression tests found *//*hhh*/function mvgmpl(a, x, ...c){p1 + this.s0;\nfor (var v of h1) { try { s0 += 'x'; } catch(e0) { } try { s1 += s0; } catch(e1) { } f1(i1); }\n}"); -/*FRC*/Random.twister.import_mta(36982092,-357847263,1027144273,491024457,1975215662,-1228184055,72352703,-938277593,1887086059,-2065054818,846274517,-1797271992,1659092976,2054328378,520595568,2003416717,1843850920,-386866853,1558142086,818506906,2122554136,2133293838,-1953728071,-524306168,867573481,1313523467,1251270702,1179858665,1865280372,-1800193584,1079514139,2144289071,-1873304385,1704316336,258777383,-550059309,1973567879,295764912,-1192903439,-1504597955,836372123,-567592372,-420268317,1194745318,1248665718,-1537501051,-609641573,-1100537825,989796354,1810623429,-1992510382,-2070241135,75007566,401212157,-831126275,109365999,711528829,2036240645,1560552197,-77965827,48137858,195514391,2094426914,-1257212411,1347607885,-623447025,1006736810,-603032143,-1771710047,-1640289276,-1033478980,-1278811818,-1693653684,-804388164,1664878060,-1038192833,-435571192,-1358728323,-502643190,1396287120,1590316222,695467601,1509629852,1678497773,260889569,-215551562,-1360389672,1916558745,-730620432,-1491179620,573424454,951582374,1856622554,-580372584,-93973294,1602993591,-29174023,-1158980264,1421304081,-1686239262,-158435571,-904985250,-1386591091,10827817,220170982,1893754329,-902787989,1490235919,-2129624040,80085843,1842604974,933171712,343677671,-1056960310,1156376449,-223614058,-1716241599,200661188,194713094,1862053603,-740229261,-114284919,-1063833294,-1845691966,-523003679,1638152399,-384471440,374253238,1473704202,1474688825,1685744196,1686400366,-1005021661,681619669,-1374774454,-1602186345,635457743,-128218624,-1795143382,2123567002,-1566098911,-725118259,-1146040245,653983563,-1258992425,1389121184,-744430370,751790299,-1453021634,-1513422674,1820686049,1150096138,-567800725,633176141,682321836,432589270,765948525,-422509377,-1429000893,-1802740373,739226003,-1094059746,12450256,-1156024658,-1899729530,-1839243052,918334464,2065270350,-665544557,128950299,-1236820698,-60201755,-670016348,-1796117591,-1666814871,84475407,1550938846,1193946423,1686207042,-1555665640,-542708706,-1587083982,-1399587268,-147300017,-1914091999,1750137163,-165092010,754756124,-1119765555,851170984,-221531332,-370138238,1783160897,-326450575,-1782805419,-1915222267,819823431,151132660,-1277624834,-1179460969,38787232,-1935064455,129806023,-354267552,-1164188560,1606654210,-1276320509,1605589468,238276114,1696741418,-367936093,-1717437332,-1920929707,-1508474189,1249338459,996941340,927752958,946433025,587921420,1120885625,-1161779486,1502798649,-266679187,923546530,1014456594,1839028014,-1802713934,1920706686,-342297541,1819594549,-30499216,1120242751,-277161579,-704269647,764842734,1647838417,-1557702050,-1605299002,-1234443663,987636819,1455054887,-2079109643,-1032459920,-1616743566,254154671,1114920773,1817199759,-559355678,-437113353,1540238865,1676037350,-100498661,-30041940,-1559250398,-813460362,667888434,-505267804,251156156,-1967589749,-1879465269,857767848,-993887289,-239173626,136586421,567268730,1298022497,1390002308,-558021752,-780703891,313848244,-1207245838,1815450964,-865141121,-1817211118,-1324974891,-1288816230,1051116487,1917148771,-100084470,949520149,-1116505692,-2065600515,332768975,1107109407,1486798227,-2116325802,-17496789,872029786,-151508284,1086995255,-317119821,-1948271141,250186842,-736060207,-1548351328,225514559,-1436252845,775853635,545556842,1600359077,1000787167,-1997364352,-1063277954,-1894005674,-329034542,-1850722351,-66102054,1041588636,1177353969,1906538318,14319670,816360111,-1973317200,-146252128,-212107549,531044205,-1034985647,-51663067,1251415039,-1808485154,-1250754680,-1116560629,-1772311234,1787041247,542150013,590268371,-1961684505,1821747351,-520167957,-911447484,-535536998,-2077868371,793377162,1095601909,1177405933,1610558389,985646067,-1111695250,811546114,-240815855,519116524,-840895557,-689536528,1793563419,193489412,-768373346,1849499448,-1044897369,-321400362,421531243,223225178,1305285116,-777270819,530223918,-2002062635,-131778100,-579872312,255813050,-668377266,1210752365,-1776062730,-1505666554,-1870395152,-464019519,-1358618489,-723550103,1493589880,1189294763,-1869126159,420775210,981779074,1233798979,-1279674763,947140950,-1331744152,1904056740,1392439474,1122216566,-1079205895,376842901,1351691625,-233311457,512703272,-958215441,819225611,-11611148,-1323474908,1862267674,-499542,-746211743,-81328337,-777240011,1037065900,-995116511,1526470764,1180563229,1666720504,1982613969,-176425837,592439112,2059664760,-601621615,741832664,1652289983,-1491527161,-1020389510,-1541575474,-370285604,1722837243,-516065974,1512833095,-1967260283,1118546753,1821908188,-9222622,-1382923496,-2117267828,-1614486835,1808144954,-1241686542,-1417130409,-1505463703,-481434318,-1265252813,-1745168842,762791901,650651674,-852020357,-702972706,-693668700,1401381561,1541821795,-2011172254,155089121,-1145755833,-1891506987,-1353771220,-1617867214,-331146530,1551710365,-1732588335,-2078112125,1900862184,1125483688,445633480,1756569000,-10482867,-1758128067,1362722166,-1572805566,1323166395,711565817,-1652639646,2050724326,1421706940,-1450369624,1232723361,1362990464,-1154442050,-1257908119,78925126,1189382569,-2063487062,1961709599,916169225,-142423939,1539032492,-830116403,930626469,1768131647,-1952241127,924052088,1788877458,1001471226,1171012233,282319342,-1532655118,2127627436,-54636701,-1497700131,2137986459,1077384162,-628894542,385426500,1522562855,-586185665,1492638544,-759598189,130954066,249032823,-1812880945,1489087429,176597731,1562555247,2112973425,-831833861,1230546701,1283259063,-1213511355,-1266763762,1293339534,-972108979,-221023163,-2027340271,-553490845,2146078955,578309685,-458449521,1311575124,2070781688,-1088885838,947345689,425983856,-500973079,-926112894,1842845915,-1150130821,887699348,-1819827941,-790436916,-2042473204,-1824419093,-1811635321,-1181706566,-1434484168,-1856146703,1550530685,-47337498,2020891171,-508251485,-488052766,999679763,281386738,-1812076671,-1777811967,2035050823,-1560844127,-1414124224,-328496551,-1339829217,-880061082,-1696477855,-709419154,2132228920,254648262,1945674138,1956849687,1542249136,-1623152420,-1697012653,354133347,1675840109,1740457825,1371832171,165814476,-137334450,-1114923144,-68885100,4480288,-1288749331,1667371855,462948758,1551326421,744636258,836709402,-1170969627,-1536405794,696826581,-1828853676,438320121,2146303638,-1119133296,-2022878742,-1323570004,-1144771051,-1036031407,-294519132,1078867169,1539906124,123678598,1790186492,1703093491,-222682962,415531099,-735779959,-685641768,-971892567,-2107065031,652617510,1743589931,305574971,1787564455,895175638,-1462473091,804782040,163715718,97361778,-298714441,1215464151,-712826334,-1750647853,-360638453,-490169375,431329160,-566743915,804776336,1368507033,-767456559,327844349,1668134788,-1078854980,-1038103381,801684369,-1979971330,-1437196701,-1288495068,801883504,1317094768,192488795,2018127632,-1971990721,920460167,216446968,1648493662); -/*FRC*/Random.twister.import_mti(44); void (makeScript(14)); -/*FRC*/count=248; tryItOut("/*MXX2*/o1.g1.Date.prototype.getMinutes = h2;"); -/*FRC*/Random.twister.import_mti(60); void (makeScript(14)); -/*FRC*/count=249; tryItOut("mathy4 = (function(x, y) { return ( + (mathy0(( + y), ( ! ( + ( - Math.hypot((y | 0), y))))) / Math.fround(( + Math.ceil(( + ( - ( + mathy2((Math.tan((Math.min(x, x) | 0)) >>> 0), (1/0 | x)))))))))); }); testMathyFunction(mathy4, [Number.MIN_VALUE, -0x100000000, -0x0ffffffff, 42, -0x07fffffff, 0, 0x100000000, 0x100000001, Number.MAX_VALUE, 0x100000001, 0x0ffffffff, Math.PI, -Number.MAX_VALUE, -0x080000001, 0/0, -1/0, 0x07fffffff, 1, -0x080000000, 0x080000001, -0, 1/0, -Number.MIN_VALUE, 0x080000000]); "); -/*FRC*/Random.twister.import_mti(258); void (makeScript(14)); -/*FRC*/count=250; tryItOut("\"use strict\"; print(window(3.throw(/(3)[^]{2,5}(?!(\\0)+?)*/yi)) = \"\\u4C01\");"); -/*FRC*/Random.twister.import_mta(-630116706,854538596,-1260032077,1075727983,1582233674,-149436712,-545602573,1177352237,-1051003211,1680692219,-478018312,398571267,-603701929,1437586559,671192604,1951980565,-1041703762,-1860376479,-1242106539,-1098071296,-1604886710,-150432199,-979205770,1801187836,409575731,-972581595,246738328,-1603525748,657382197,-538144056,1809326899,1194991198,-1536322948,-851868939,-311065387,1808163454,32438585,1053772256,1164017684,1856677054,-1333472492,103952752,1072043630,-1114874646,252181022,-2054117382,-2060540808,1206935497,-1001498475,-67219100,1282472106,319110737,817714659,-252815334,-266111919,289570819,-543397445,-482924575,220759945,135700192,-840528556,-2057590481,914707380,-174746817,-226016399,-620665473,-1008543208,-459145722,-1197515137,982051826,-1754915482,2063485187,23367009,-96655121,-1894486728,430227862,-180865637,885594508,2035223206,-1950306387,-211793061,-800866131,230142964,-509491020,2040851257,-1913202594,-152061353,1895414239,-1904166927,165755635,-824013632,815453375,543419323,-289231962,-1374894655,-1397788352,5709251,-1901958618,-1009501430,-1424544684,695957528,2014240732,1831113925,1268322045,1735805310,1321435823,1917327305,-544594833,-1535041123,345095138,-10283889,-585387528,1542297245,1147545773,19049682,-860794353,-1478939253,-855562111,-1012826251,193636893,-780561393,-204719742,-1742954707,1864575395,2056994387,-1601301313,-222837279,-2120942915,598161842,1851133279,-814769839,-1016028691,753687062,-168842681,-220389881,-616757686,-1345314175,-595027308,101052042,715933038,1490900217,683365027,2052463461,1224295378,-209196495,-60330751,-1334296694,463457497,555557325,-1679219784,2041205557,693902902,1359991978,21894837,1862741638,-395948408,-73118229,-981268814,614395684,1921316718,-461367013,1075487176,-1365047878,603989388,1387772412,120130261,300874821,-2063740788,1626016567,-1085308851,-827017096,-17447418,-917487886,-1464436611,1724362312,-1453987707,193350376,-1987800268,-744727331,-2120054613,285062776,226551122,-439635970,-1253572557,-2002524023,-911322619,1320867157,1401720496,-1904474996,-8928969,-158290696,-892672039,-928988212,-1042267442,-1251433734,-197313878,-1403690361,907772199,-871119086,1156215586,1903029076,-1834719893,-521009902,-890582549,-2057251702,1647729087,1986798438,-652096612,493286789,-40784745,-1634634521,-868071160,-1452390910,1132656718,-542522459,879659758,213913121,-1143774619,190594375,850105857,-1153399757,-1434651726,600585921,-1806794826,1290256,111203745,461361249,1991631964,-572658143,-1947066229,-1200342865,-251976609,85831519,-1984853372,-298300774,-792110182,872798616,566183199,-744090123,1850850715,-827407782,1228628644,998892972,527656870,690909980,450258893,-1848068239,1269234030,65483246,-195975419,-816709458,1735617893,-1753200588,1769285539,-208947691,400541671,-1735345770,-141760343,-1714520092,-33706584,1984958409,-1783970602,-1227046661,285807492,-2123835121,1812815958,1106511226,1094176893,1332234666,602105751,-879323584,-1338493442,-867737485,1151675085,510083844,34965929,1540640394,1903465007,-700330748,772073777,731275067,549525481,-1464556589,1792772013,-472215350,-346376765,1374392781,-157640650,2083914859,-1727958478,695401741,-1242331812,1746508744,-1841701304,991020230,883272713,-190902260,-2027660845,-867746674,-2051056687,-29066961,-279201785,1579754429,-2096521230,-451300677,122201291,-724951197,1233028348,-393053430,232453103,1627204924,2090083297,-162334962,373995001,-1507687754,917481606,-291742274,849458656,981503696,2061145215,695421692,-450718882,1088801648,-1988629598,104708368,1599406886,1146439872,-2146654670,483977982,489601416,-1870487180,819115451,-143788790,-933870624,1769800042,550924475,173001685,-1488154738,2093070767,345316843,-73473617,1783753770,550121309,-1575151479,-468128178,-1262489367,-1302459887,-1491960604,643075688,-1631875712,1237688669,-884577694,-280797912,1877609556,-41523621,1292948822,701087618,-478464266,1047355268,670952813,-1496381628,-1163978113,807303541,1633288733,804252287,1787216182,-1865061148,-912369954,1680937014,1729395236,-181088084,1934852564,-1604488790,-1472747842,1663107083,140663188,-1164380541,-9130986,-76563549,-531631423,-1588764699,541111058,1377803040,986107697,-98275512,2081447734,100339427,-612619954,-1328494041,1245198066,-706825143,207591082,-1133091046,2089873523,1054579677,1363614283,491852922,1828844270,-1353566814,-198066098,531576170,819729828,23109765,-2130544844,-401368951,-2121078086,-179013307,-89312550,1025400823,299179778,689851950,1895730678,-1942421,1896052292,88452924,-828734518,698155150,-2089573915,-801879776,74208312,197839653,-993111965,931096940,-408417892,-106393066,-545795297,-75933120,442586427,-101195975,272172177,2115064709,-2123420229,-1079913200,-222429158,126454057,1254194707,-1302787186,-391054968,997483929,1010536629,-1734669360,-1492144431,367282362,25683909,-1886720847,-1377531842,-533091648,-740541816,-1151565421,-576031933,410132373,246213665,2075991378,824251199,1651731080,543797294,-1553143221,-1511229712,863074484,1195870716,868974223,-323445425,867648330,-1237272509,-2089381378,-1099172061,-803488862,203059031,-461237148,-1487880065,1157272218,478051925,118421936,708188906,1137644953,297137431,-1959189165,1745196992,-1389975084,1899983398,1232006738,-557163444,1554208197,754463450,1073977961,-172649908,1302963390,901191264,197758002,640458947,-463374663,488848545,-611022530,-435945315,-16057121,-1295209741,-1663718893,1229685309,-368612871,-1429469772,-22347852,-33142279,-662067586,-1386361500,-1752601979,1584749249,-2057693399,1283512593,494393493,-1221011958,-1343710210,-278171790,1128523240,898482188,427418756,-125336055,-1015682568,-1179017889,-578620230,725135694,1116841954,-400874022,1752033108,-1583296240,1451380852,997855343,-1154905054,460776673,1183404425,794644556,1204542628,-310673982,-1749096492,113701052,-1395654528,1625390981,1476519247,-1883219761,-1114801871,-1818796611,-1036852330,-856093439,1227109658,-385183139,190702893,-1713788412,1462565159,651370130,826732968,-1822381794,563019339,-1393841537,-289436596,1084512422,-1142645099,1109206338,1625082690,-794783772,-1337091566,534006898,-979744981,-565305377,921136906,312499672,593365667,787979968,-648417186,-220195451,-1102495479,524079126,-1128748991,-1481750853,-332265793,1991552452,1594194195,1366061370,1737762607,1679895675,-924189279,-635874090,-1004327182,-992250356,-1736825436,-1697415527,-1997815526,-999496945,-4127954,-172223273,274801589,-1609722953,-854279663,893538196,-404470057,-953249016,-847291491,1725423503,-922470496,134553880,1502744773,1921408156,1149213284,-1957823196,1152949840,210522134,-1467000610,1253042736,1348962166,1904259012,301361360,1304913534,-1027499589,885555807,2028886857,-908545779,-2098874020,-415946593,1836618826,1231722043,813334818,541339738,-1091121809,950583329,1617303652,812221237); -/*FRC*/Random.twister.import_mti(28); void (makeScript(14)); -/*FRC*/count=251; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"(?:\\\\1(\\\\B(?:^)[\\\\n-\\uc8dc\\\\W\\\\w]|(?=6)\\\\d*?(?![^]){1,})+)\", \"y\"); var s = \"\\u31af\"; print(uneval(r.exec(s))); "); -/*FRC*/Random.twister.import_mta(880176732,740831908,221665190,814238031,190314184,-137006685,2065480701,1370903308,1787622296,-996836551,675633540,-1978338941,-502643230,1025410336,-740666589,-552193476,-1601850709,-961125047,-1847795126,2042015531,1644124710,-1293612645,1908518086,-1628001437,2126850606,1881481120,-140634022,859262803,-259941765,396229382,972839444,-339667449,-273844940,-1851580112,-192144252,643701075,-304503574,624511267,2106862668,-1441046012,-1414930128,612855470,587054784,-552012065,-1513620180,1467161222,-76056322,883257380,-803495796,-2046699883,1129715071,973773757,-438476978,-110422686,-553313025,-847537840,-642633712,-1108371053,610467678,-2053133087,2118718136,1748226414,-460984132,-746557464,405839663,1380331078,-1005566144,1177652766,-482376998,-609700591,-395445495,2100879883,54977751,57713670,1353457310,-1533389918,1884460588,2137559242,-1923280354,1803661345,-1725118647,-335712210,1106220668,-1397478639,-667864989,-1092863951,-846438678,-565481138,676184042,1792598750,-185414432,-2098149072,290321680,711959686,1265927169,45594368,-514509426,-1629429414,-414761767,-932702689,1967975891,1167954756,369635861,-854467829,1081030769,2024086853,462450572,1556171412,339576624,602090929,571277805,-376855804,201552515,-1350972009,1346074282,-1985494030,-905583469,-509482015,608855000,1925288736,-1067482722,142871539,-979266240,-422279148,1632935770,-2009156229,2019695761,122801325,-1789286881,93778005,-473561912,285179010,-1935526480,-1481776264,-2132410649,1499350603,1753398774,-271386683,1974951218,-311951380,43336001,430883932,-1209271212,1660528209,734137182,286796511,1036895470,-2099526380,-1808974888,-1292803998,847057289,432086013,181342875,369977608,-1730638533,174398054,577100799,-374609657,2069847797,-879462640,-1330782464,-1491330865,1305763508,-322855979,1154624106,-1491557897,283030942,-903659545,-1470566855,-1107055518,-1919224186,-622764432,-764453641,-807698587,705430054,-1443814453,1920394334,-1346115678,-2001369680,803929107,1658937042,-99866018,431350800,427453033,956624849,1714421713,-1290454591,-1881816228,585085771,-2071374510,164747236,1949385299,-1057115440,-1751061652,1331483329,684083019,86762308,-344541164,77784606,-239943158,-1738562702,703271500,-1896118090,114290721,1667129636,2140049379,538752472,2134151875,-311456604,-2044228134,396462912,1161907153,738597465,1948108982,1862256424,-410588026,1295626464,1581455136,1734890304,-372218228,475328482,-124507491,711135105,-16837273,-1561322962,-187613045,187920667,-2087704173,-254176706,-939197650,-771920961,-791572040,-217205535,201367216,970129089,814620500,1296197993,-1734417503,1681170321,-983751473,1501770866,-836853259,-793804305,-1273853147,1389749872,3672365,476435356,1611449041,298150598,375958673,1950854414,1963265588,-1651032914,1465086863,-506454913,-53885264,-179093619,1964729830,-1790983981,227394063,-1686748325,921357350,1859817617,1952807090,1396701448,1567502065,327695077,-1944205851,-1401000518,121042400,-2029720544,1525480906,-1406582977,-196814468,-1398340561,-34502711,666054493,1752626173,-201302022,1763622924,1879256649,1381498313,555674201,-396396427,1363833773,-710965401,-1093476102,-1722113966,1689479287,691289829,-914772666,1815892683,1532674402,-1718049501,-982783803,-646968612,20064551,-1907464882,-1494220996,-445880161,-304756518,-1498398817,-1524720549,-1680408658,-1513852304,1043377520,255783519,-1385825588,874035462,1905328354,200706622,-484946972,1827787282,-560128079,-2061720307,520327477,864565294,-374174840,647312336,99897454,419360041,721838521,101466833,-1572083450,-1320525623,-982673223,-932297466,991991980,1258999680,508125871,208679177,2077868788,479083701,1865346873,-710753770,-2012032507,809855606,-983208475,2060164398,-1463504245,-632210558,-648621605,27393897,-1207331916,586589002,-462563825,558411090,-1820997974,131714355,944502065,-1015562971,385167822,-3427503,-542531741,1641653766,-2118288930,875260718,-1125078262,-1710671125,-1614432750,1676336792,1105359490,-251922534,-427952106,-627992738,2111695680,-1985424253,1888340314,707066190,-1921936382,458254011,1005368203,1157888384,-715787212,-2031425058,275378246,-850708887,-691897209,-252816830,-1017049674,1177366657,-1311293269,-1911632607,527952987,-1750874468,-525702821,-433429577,1909263052,-1040186442,-30165937,-1427222400,1525225959,1079535889,-1766078289,2072511005,-1494195196,-2004658923,-1707873193,-1594245545,-1648835006,-675973705,-1279991109,-1452271535,-1619552059,-284519681,1796671949,1388078462,-1519992330,-219765281,221954823,553987218,-1610780357,514737395,-1313345953,-1466400071,1980838668,473445759,1640756084,906455119,1544578973,751793026,350447223,454181765,2046798415,499507524,2032028478,629856328,1034746929,-117497637,687575467,-1619995101,1015974828,114397166,-86982253,-1017340651,-196933277,-226496226,-753727149,-1034669228,541826993,-1097683199,604889973,2119020475,-738953625,145838911,393512480,-2143388728,-655220748,256484323,-11358060,1621218216,-1624337273,1967749579,973784159,-1817906812,2020038596,-1695367082,-2008688667,-210610874,1944107897,-1554751288,1611226980,-1297681494,217653654,1588308207,205079104,442016699,1807892032,79589653,-1294808926,589628624,1364368040,354616408,-1534400113,-237074299,-1924052816,1651140465,1658124772,228243239,-1189065849,2016828841,378078786,-357179427,1280983654,1338092736,-202698100,391530815,-1634564798,-1124848488,-975004910,-1543743939,2130034071,-1218142624,-184159147,1282613315,2065434732,-90471391,722462723,260767504,-746831643,307187039,-1058810096,-1419812485,-176215360,-1639649726,1873142961,-1772741541,-407866660,1238079180,1995089830,-1612001332,820740441,-816224415,-1301409096,1007801225,84515979,-320847723,-1481058533,966789740,2048004755,-1382729778,-1319298193,-912235948,1785921821,184278438,-1149552339,836741680,1469698241,-1323395143,-2030341623,-1385479857,-300220006,2102646062,425128479,1142814161,-2129593474,-277242790,-868710791,870012389,233350105,568928750,-510738560,-1299289916,-282166681,-446800246,-737411172,379445031,6133245,582366518,-809267925,758549734,-971659537,-1522551574,1284815507,1512966669,2070194721,907617629,1414986752,875816141,-1488211969,-1727967223,-1898875501,-2126316311,-1193091080,-769744251,1449616641,1220282518,477965273,-1765230128,-2030756970,1926627382,-840494902,-1623752467,-1748852476,-1144783305,-1390711173,-1823222829,2114712362,2079955877,-1646648280,-1111219099,769963220,1440511565,1885244323,1204709970,-437666948,2081623206,-1294794851,-924054650,259594829,-1126375460,1886061802,508207812,1981794706,-1695639998,245818014,-915209074,-1366172154,45063621,1731998898,-789378394,-457791754,372234317,-653485562,-1282045537,-656567815,-73311660,1322648809,-1758137452,912699683,-602202709,853302247,1565425922,-1487356135,-1688261028,-1262728813,1133399949,-1294790639,1254818250,-970211463,1407653984,1270550063,667686209,-1833409989); -/*FRC*/Random.twister.import_mti(69); void (makeScript(14)); -/*FRC*/count=252; tryItOut("mathy1 = (function(x, y) { return (( ~ (Math.hypot(( + Math.pow(( + Math.tan(x)), Math.fround(Math.fround(Math.imul(Math.fround(-0x07fffffff), (Math.pow(y, y) | 0)))))), ( ~ (false | 0))) >>> 0)) >>> 0); }); "); -/*FRC*/Random.twister.import_mti(185); void (makeScript(14)); -/*FRC*/count=253; tryItOut("for (var p in v0) { o1.f1(i0); }"); -/*FRC*/Random.twister.import_mti(205); void (makeScript(14)); -/*FRC*/count=254; tryItOut("/*vLoop*/for (hkvxud = 0; hkvxud < 47; ++hkvxud) { let y = hkvxud; s1 = Array.prototype.join.call(a1, s2); } "); -/*FRC*/Random.twister.import_mti(247); void (makeScript(14)); -/*FRC*/count=255; tryItOut("/*oLoop*/for (let yjozlf = 0; yjozlf < 39; x, ++yjozlf) { m2.set(p2, null ? (( '' *= new RegExp(\"[^]\", \"gy\")) >>> [[[]]]) : (void options('strict_mode'))); } "); -/*FRC*/Random.twister.import_mti(412); void (makeScript(14)); -/*FRC*/count=256; tryItOut("mathy2 = (function(x, y) { return Math.exp(( - ((((x | 0) ? ((x ? (Math.log10((x | 0)) | 0) : Math.min(y, y)) | 0) : ((x === (( + Math.tanh(( + x))) >>> 0)) | 0)) | 0) ^ (( + ( + Math.cbrt(Math.fround(0/0)))) ** ( + ( ~ x)))))); }); testMathyFunction(mathy2, [0x080000001, 0x07fffffff, 0x0ffffffff, -0x07fffffff, -0x080000000, 0x080000000, Number.MIN_VALUE, -0, 1, -0x080000001, Math.PI, -Number.MAX_VALUE, -1/0, 0x100000001, Number.MAX_VALUE, 42, 0x100000000, 0x100000001, -Number.MIN_VALUE, -0x0ffffffff, -0x100000000, 0/0, 1/0, 0]); "); -/*FRC*/Random.twister.import_mti(615); void (makeScript(14)); -/*FRC*/count=257; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var ff = foreign.ff;\n var Int16ArrayView = new stdlib.Int16Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n var Uint32ArrayView = new stdlib.Uint32Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n i0 = (i0);\n i0 = (i0);\n {\n d1 = (-1125899906842625.0);\n }\n return (((i0)))|0;\n i0 = ((((0xe0bf64a9)) >> (((abs(((((((0x4502dbf1)) << ((0x257c10a7))))) >> (x **= x)))|0) == (((0x5f7101e8) % (0x76a9d24c)) >> ((0xffffffff)-(0xffffffff)-(0x8cd3d3c3)))))) >= (imul((i0), ((((0xfb5b0c17))>>>((Int16ArrayView[((0x374eb0d9)-(0xffc6a0d3)) >> 1])))))|0));\n i0 = (false);\n i0 = (0x337119a9);\n d1 = (d1);\n return (((i0)*0x54b88))|0;\n {\n return ((((((0x9dbae297)+(i0)+((+(((0xffffffff)) ^ ((0x252cf2ef)))) >= ((-262145.0) + (-536870913.0)))) | ((0xb796031e)+(i0)+((((0xae8223e2))>>>((0x93c3ba51))) != (0xcd82534d)))) > (((i0)) ^ ((0xffffffff))))))|0;\n }\n (Float32ArrayView[(((0x271fb9d) == (((Int16ArrayView[0]))>>>((Uint32ArrayView[4096]))))+(0xd6b6aa93)) >> 2]) = (((!(0xffffffff))));\n switch ((abs((((i0)) & ((i0))))|0)) {\n case 1:\n d1 = (-33554431.0);\n case -3:\n i0 = (0xc9f3c6b0);\n break;\n }\n d1 = (((-2251799813685249.0)) / ((d1)));\n return ((((imul((i0), (0xfb59756b))|0))))|0;\n }\n return f; })(this, {ff: arguments.callee.caller}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [Math.PI, -0x100000000, Number.MAX_VALUE, 1/0, 1, 0x0ffffffff, 0x100000001, 0x100000001, 0/0, -Number.MAX_VALUE, -Number.MIN_VALUE, 0x100000000, 0x07fffffff, -0x080000001, 0, 0x080000001, 0x080000000, -0x0ffffffff, -1/0, -0x080000000, -0x07fffffff, Number.MIN_VALUE, -0, 42]); "); -/*FRC*/Random.twister.import_mta(-347561513,1716645192,986048841,916522274,-1419970625,-1302239743,-1702859213,2066778769,167245516,-1407051595,-1568159838,409258213,270364004,1334538205,-1554067674,830417808,-892607936,-1119817587,651851651,952565085,-189123195,-475324327,-1575971409,1584611723,2045747545,1016518877,318810985,609233747,939562270,-1826043687,-2121332115,565875154,-2140112036,-1001397233,-2146990019,602638470,553347243,-1885038772,-1323028648,5829760,-37650834,58534847,1696180787,1202751553,-2033564860,385549691,-1669342038,484940521,-66738203,-693471709,-672247156,564151122,1528404549,1908536099,-1632136527,-660430056,-93796059,1621114770,-1108169539,1845892030,-1554564576,-986145824,561956236,-2865742,-753928887,-948415555,303978714,1896887051,-674090012,1287551811,1672656035,-654474797,-1715048628,-1298089173,1165419102,455256421,529972611,1178597053,253526489,330807456,1498711056,-1130654332,-1460383033,-357046939,679663771,2146170152,-253585260,-2123555021,1306228897,-735731187,-1710177482,-882927949,-1923209102,1484178585,-881536728,-818766523,-1796180947,-1443769039,-513346081,-1003862336,285854535,-1620545573,-599565866,-1923591332,-2119636063,278767713,-794728123,-74715436,-1809333111,2022470943,160180220,927905494,1504772179,-1757843101,1280826380,1361957726,-1066827307,1270701950,-977448435,272171197,-935697558,1563560691,-1539857075,-1697163499,-401079432,-181626944,-1181487697,734549153,794473987,2025263411,-1039455773,-1586285227,207361871,-1290841809,1799374992,1903606990,86191871,1451221643,-527678328,1977752280,-1320112224,195412648,-372376153,-264549824,454412948,-537555279,1023222909,957649141,1337676533,-1772215979,-571295704,-1608274462,-1671853307,-2142637563,1501256931,-1258736879,-1342295732,2124503973,662773901,-695211080,-1511418001,2085276077,-533419077,-192110957,-1268454977,-1586307045,1517877601,1486435854,-1580827722,-1546765329,978002937,194648226,-589538181,204805807,547336309,-30061947,-413662621,-2023173360,1609395680,910197404,-1339516544,427158096,25719017,1278776275,1086891097,1498952856,980896108,331392673,-623303791,-1252989950,81746710,103371638,-1669878818,-1672856784,23221817,815951891,-144875056,1352243373,-1853277747,457606975,708876201,-424349112,-568989472,-1101981803,-1350887885,563550361,2140768905,1430508116,-92149585,-1173902476,-415497208,-1725481119,-536256782,1785796223,1687879138,-1557932699,259218283,-1515956032,181742152,-688056163,-268414400,-297104170,-1429453574,-779663032,1644876653,-1739588754,1063182705,326132993,282117845,-17401199,1313686831,-291001685,-1421354625,579677344,-1782154692,-1726758326,1544672021,-22735511,132039986,-1629063353,-703114492,-1456725188,540566558,1869771125,-1279726007,-46767183,-714607488,64956679,-1685386653,1334810039,1332640371,1355907585,-304584210,846468246,1290332033,-1057716711,189379499,821321598,-2097223379,-548297627,824259446,-2063566628,-1232163595,99614433,-1218077270,880424530,-1293451213,-1248217844,-791475608,630865290,669296890,-635405063,-1400026118,-1076255605,1597073291,1339691902,-1512730457,-210082643,819416509,-787121405,1238089165,-2064899038,-1634813000,1514735449,2126815001,1883738355,92311141,470715301,-629754121,769115793,-1919430199,-776278933,-850001233,1406693036,-123566599,1996123416,590281537,-2123391004,-96616779,1616842196,1877224753,-1945187635,1070392588,1268946458,-1599065435,2143266159,1965340184,1938192932,1012396220,799656514,-1174649693,-326070381,1134000484,-1772774100,-288579383,-1742144197,-764043756,2018249978,-1450258114,498338525,715571017,-2147407558,735457211,592182731,32681329,440189472,1258345775,-1915465666,-1500629719,-1223878217,-199003992,-978541730,-1317900290,755245977,2101110221,1608409465,-1232309468,1146625176,-1526910928,-2121013543,952227417,-2097898811,1414221895,2078567892,1037819559,2114933589,-650466721,505157360,98014873,-283814641,-544957656,473064049,742122836,1817959484,-275364263,-1183811532,1564618918,-1101167913,1779954678,1714162846,1005016358,1985377151,-989727401,1698134411,1128271232,-952962868,1595725472,-434397369,322691966,1757294549,-1719748296,-2122563041,-1989216080,-699692800,1618715350,1574594085,968348020,726584776,-11655814,-2139013614,936721427,1688210303,1488817422,-1005291103,-34577620,-170051697,1349483478,1720022791,316716264,-406939853,-365685149,-640118552,140636230,475648707,-343518621,1442763257,1727692474,-145329908,-1745639678,911576311,-739352333,-506935403,1349169120,-288029176,-1573610983,-559033569,-17616807,1568372007,1426289045,382993761,-1109256274,1787701912,1679849823,1076331579,-225129564,-556389146,633119124,-232864970,793655403,771660226,1904347305,502680950,1442923150,-985333319,-1681104979,-1865927627,885996790,236128099,709726542,-1046980847,1204907101,659754935,-83630416,-1785428089,-46942906,-1694909074,-1339183282,-1883956040,1161516717,-1338244769,2045358892,554341549,1354756958,517732637,2089372551,2050732427,-228330806,900027856,1061423721,969180112,758411472,-995490749,9573574,996321933,1962713373,-775131135,-552481593,-1613380788,-477499507,-1973210664,253846022,-1056542165,316228760,-282310619,-1466583261,1117013877,-2067916399,-1707643606,-1953001966,623611194,-813489322,-1192881535,-819905262,1536339825,1504462057,-1155654112,-1376624631,482282245,-1838227837,-532928110,-1675545554,-833746155,737213998,-1882059654,-1461796787,-15302563,-1353879430,1816130068,1031042306,1355988876,1830965043,661193449,-826491097,1587541659,1995143126,1698335184,653989367,-958172984,-287455108,1187246271,-1171497829,1639469145,1117531306,2026891199,-1627419147,1481400293,1768652790,-176952811,-1722998462,1628744702,1009940557,205241148,125448431,599796979,1843643061,-1605175735,1326892823,-304834183,23201893,-408204023,1618362447,-570418180,207909970,-672375368,264592943,1486298451,1074602514,1184010009,581462626,-106112548,-1177880553,1290670677,-879291363,-889506144,-75344935,437869738,1368289038,1010902307,-101703105,1736989384,-599719259,-1239230011,-1383833636,-517513750,-1288442736,516168572,1559959008,1191346108,959562446,-768365423,1689725384,-1773100038,576823276,260015352,-922522976,-897724197,1153648725,-938549044,1919178515,2142088554,628965071,-1783408342,892109976,-1734785809,-1028942586,-1512237936,469970471,797738841,-370479906,-614684749,1915259230,776861503,-406194705,2012971852,-1603612687,-1145551130,793062164,-576594401,1390797521,-1638548747,963123340,2069605926,-408839096,1640857580,1678203413,944464386,-412113551,90046220,611811175,-731591381,45188686,-755982288,2134856135,-817687904,973397596,-1190590986,1558901350,821884851,-1776174878,2144376787,-1929757986,-161544533,1876584701,1977986459,-1558516035,102417512,-644565024,-1588328926,49923046,-724927097,1638212051,-486826797,1096215322,-148594253,1082584124,-1519196903,193911574,1888131581,-1063440473,-1088914433,-2046356351,280196847,1464036935,-900292978); -/*FRC*/Random.twister.import_mti(66); void (makeScript(14)); -/*FRC*/count=258; tryItOut("g1.valueOf = (function(j) { if (j) { try { s0 = s2.charAt(v0); } catch(e0) { } s1 = a1.join(s2); } else { i0.next(); } });function x(c = /*FARR*/[...[], , \"\u03a0\", [1], ...[]].some, b = ( /x/g .__defineSetter__(\"x\", /x/ )), x = this, x = x, w, x, z, window, x, get) { \"use strict\"; Array.prototype.pop.apply(a0, [m1]); } s2 += s2;"); -/*FRC*/Random.twister.import_mti(347); void (makeScript(14)); -/*FRC*/count=259; tryItOut("Array.prototype.shift.call(a2);\nlet (w = -19, e, ijlwik, b, z = let (b = x) window, NaN, \u3056 = (let (z, x, window, lfrepi, x, x, adbpuo, vepibm, x) window), x = new XPCNativeWrapper(x = \"\\u497E\")) { e2.has(o0); }\n"); -/*FRC*/Random.twister.import_mta(-2072082520,328852345,755306086,1598598131,569427018,-2078136282,172356511,-1496358529,1370779546,-1347366008,-2008964726,1561184039,-1474756016,-1404211139,842121040,1095075967,-2020651870,955334842,1539170967,-2031547511,449045445,-414268829,-607155752,-729978662,-1699376697,-964057115,1315284175,-2016668382,5562502,-318764769,1590579082,712355040,985077193,-1629874020,1990642676,1920393786,-1840853983,-1516133654,-623524050,-1899163527,1459829176,-289459349,183301536,2056032910,-209738033,1585454347,-912227146,-612161366,-2006566331,-1718297716,1702196345,-1950320748,-1741895010,-1150875305,-1459923505,-458309493,1261614404,-217233508,-1496352290,-826650153,-45510980,-1288270517,-1249307903,-5363587,1001581354,1540778229,1319952767,-2088980783,-1111242229,745534239,792796444,-948651596,-445423504,-1388817799,746583788,1508037388,-511318800,-953502502,-1295662480,-2124930559,49463751,1595688767,208628735,1365829820,-239341183,327266916,1449931580,1463536834,1275912580,-498789919,-1869051502,2077974843,-1511953121,1217931175,-637993836,499922414,-1821397796,-1622098458,120564400,-143179637,1348466682,-2130942825,7330065,1676712340,-1325517642,-205248297,84545749,1306845038,-1123887691,1840081928,-288050818,748491188,-209673328,1511626315,615338643,-1102692134,1176404812,-701113492,1900463816,1795946146,440741087,-1972278756,868767324,343556595,-1533652964,-911920550,453035831,-2124368399,-37477099,-134216132,-1893489300,-40972006,2032386452,-865412001,1951747122,1343108029,2026665786,-876318307,1625838022,1227241694,2039727223,1411279923,529924072,-1848907793,13676098,1794276669,1688577359,233239861,-1931232503,839010804,387164493,-300566637,186639692,-1862125722,354716333,1973323594,-383280651,1137396281,-516283129,-1891683523,790836421,-612978159,-1662823684,-431490353,1543674360,-1055373065,-1261051928,-766990115,1832040888,-668070140,708938504,1586262588,72260667,-76553797,-2006981982,225264641,877652676,-811828991,-1600649304,928081876,-1860490441,-886478214,557925315,-2147157377,1475851370,-90556162,-249193373,-798786814,1659047939,-1526724358,105469623,709667464,-1706962765,-620225139,1403594982,1150411055,1040674345,-1412894107,1839396534,-792589971,61247127,-114602862,-1175409466,1112473880,1067203128,-920773274,1598309553,122858037,1528369618,-1442138652,1959733581,1929211039,955926119,1407737634,1784858302,-1612188048,-436826669,99383576,386193800,1938747958,128966550,-1778709030,-673456293,1846201832,479497048,-1847284192,1525030097,354309149,-1242927378,-752149458,-250360199,-312764374,-714817930,10931841,-364478374,-1498138929,166390243,-877739245,-881439653,-1022186542,-119840349,1647152479,-269221862,123439961,-547176003,823007447,1577988053,-1911630293,427931751,1701839934,1696405765,-1403411152,-1615614546,-249993264,1052698353,-587691636,-176544096,-960918589,-589967859,1646759026,-1671813902,-1259786927,-1450594923,-1980497164,-6506045,1521399784,-738080001,1063959692,-1133367890,421437917,-829154259,-1522990286,-1738244207,1060145068,-59891435,58999497,2032228613,-1542036872,977435338,1707189415,-1190061242,-407107565,277017592,-312980969,1378238266,1023905331,1505076442,1232758040,2094391004,709511994,243003031,-1005495646,842686371,-336260260,-134113187,895223668,752368877,-883461479,-1218756770,1267320375,842500032,1939440746,2083756033,1758809469,570283698,-2007524996,-1197793517,483998105,1221108254,-1986397839,-1104666710,-1871688397,413891826,-1207774329,-2111372672,624307854,-1637673060,-2074091251,-1408641910,700088932,1217966906,354114454,-1788773420,178145979,-1840325386,-1146654472,-241342316,-1710203471,1114790035,2055102789,19318843,-397999287,1011780036,-1566797076,-83665139,-1505432537,260137540,-55957146,-178499065,921237603,-1033147402,-679458193,-2085325264,-1040458560,1882898969,-992795848,604372442,-2119805108,619933764,1544166344,-1016348652,-1299471690,-7807932,-1245489980,-573011477,-1822081722,2116450184,-98018153,-828844203,1691380487,1850299711,-807598522,-1147322457,1500279290,-396555781,258357910,-484227166,806237640,-112604410,321561460,1216181823,1147654682,30915005,345535524,-1174178056,-1875356749,665136912,682933232,-1370150758,-906114150,979010054,964316202,-828634299,-1746950045,-1607638751,-1995597588,628439137,643002033,1906395479,1894902034,-1968459077,405955035,1446777161,404637190,566194430,1582270181,-477808766,1639471241,-1666317160,-1263461219,310588078,-529877678,973588229,-61008105,969023569,1189687131,-1058771560,580002594,1498142741,1068517396,-180097229,-51431398,1132546620,-932185679,-1089966735,809320649,-1676711583,-924386723,1018422889,998794296,-705479882,2024376737,-12857044,-353767136,2057590944,935684301,1321417219,377505328,1089460165,1125165623,-923912676,35506528,450686586,568172050,1244558466,51365493,-305120328,-1889914172,-202646289,1141809137,-630872661,1111310097,159562273,1119525071,-1577512702,775233773,693917918,-2130351491,-1994830798,-1052645581,-715686122,1558020411,358435769,-107938688,-1527718718,1131034706,-1665008248,434080096,-1469447994,-1829499019,-1188214965,-1557519850,137011714,-995589459,871125110,1344401484,-1912005305,-1122982230,817384386,-936013391,-1038077242,-1192075468,-976224336,-338641538,-1820206789,-697288516,-1306054301,-182270309,-599281159,-777832519,255251077,1799789030,-619606095,941487705,540703538,-1955367376,339244408,-2099241357,-1669303657,101726931,55063391,1103779471,-1393951622,-277581548,234354788,906434442,980359609,-1174734829,1599097778,477815043,-689692833,-585091264,-1494548023,-279564512,1362689365,251118897,-965680782,-172520473,-1758044692,-1751941375,-347760759,-929851502,-1242617707,-162728609,-1067733277,-2108289656,-2052540583,-675128710,1858882809,-620114085,-990568798,-1103912332,514468264,-231595227,2115259631,-1755468201,-238538396,593736433,1330636932,-1176611627,-1750403960,-1656820637,-316014036,1548912160,1372952524,1611634073,246537023,467189354,-474718121,-1350349441,2048593850,-723178130,1436909691,-939859500,-885134157,-2106302854,171687354,1409307229,-1526055679,-415568080,28711750,-1015147776,-1139232124,-719528508,1713767683,-1189393306,1584992547,-518237331,-678308356,-1208441220,-1471857031,-1584063167,855703183,1859430599,-1371233490,576026059,-1205466352,-157409895,589736297,-90164577,1339398016,-623474639,-1087446370,-1388827907,-595954625,1934747086,-338541544,856785315,615108371,-1556295678,-2006023209,-301447217,-477920592,-718443939,-435294826,1680323890,645829761,-444966317,2095566860,-87688064,1880367586,248123847,684176326,-1105123188,747288371,-1757629899,-1839437710,1131260494,-1568200404,128623826,-155236434,1424421465,868365729,-1356797807,1807342020,-2103479446,-1722300277,2066113525,-1978154442,658910067,1068160725,-1064954708,731347178,1161186943,-1377653534,879109340,-776202957,871208375,-558437125,-1942541354,-917549650,-1827244286,2070202786,-1581616042); -/*FRC*/Random.twister.import_mti(10); void (makeScript(14)); -/*FRC*/count=260; tryItOut("/*RXUB*/var r = r0; var s = \"\"; print(r.exec(s)); "); -/*FRC*/Random.twister.import_mti(195); void (makeScript(14)); -/*FRC*/count=261; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return Math.asinh((Math.expm1(( + Math.exp(mathy1(x, y)))) >>> 0)); }); testMathyFunction(mathy3, [1, 0/0, 0x100000001, 0, 1/0, 0x07fffffff, 0x080000001, Number.MIN_VALUE, -1/0, -0, 0x100000000, 0x080000000, 42, Math.PI, -0x080000001, -Number.MIN_VALUE, -0x07fffffff, -Number.MAX_VALUE, Number.MAX_VALUE, -0x100000000, -0x080000000, -0x0ffffffff, 0x0ffffffff, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(283); void (makeScript(14)); -/*FRC*/count=262; tryItOut("g1.v1 = g2.a2.length;"); -/*FRC*/Random.twister.import_mti(302); void (makeScript(14)); -/*FRC*/count=263; tryItOut("/*oLoop*/for (ttbtkr = 0; ttbtkr < 71; ++ttbtkr) { /*ADP-1*/Object.defineProperty(this.a1, 15, ({get: ({a2:z2})})); } "); -/*FRC*/Random.twister.import_mti(345); void (makeScript(14)); -/*FRC*/count=264; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return Math.atan2(Math.atan2((mathy0((Math.abs((( ! x) | 0)) | 0), ((Math.fround(( - Math.fround(y))) % Math.imul(Math.fround((Math.fround(( + x)) % ( + y))), ((Math.max(( + -0x080000000), x) >>> 0) | 0))) | 0)) | 0), Math.ceil(Math.fround(Math.imul((( + x) | 0), 1/0)))), Math.sinh((Math.abs((mathy0(Math.hypot((Math.asinh((0x0ffffffff | 0)) | 0), y), Math.asin(0x100000001)) >>> 0)) >>> 0))); }); "); -/*FRC*/Random.twister.import_mta(-1317266966,-1976794197,35518907,41635979,-495214271,-433222123,1982994295,1360533404,1362183839,-2067481251,-719556498,1296521533,-258064171,-1403309925,1162169594,1078389869,-1810408980,199109861,-1438550574,1214654556,1648962483,1364468357,1370935381,27345674,-2098861428,16888724,-384828495,982395107,-1739727715,564403654,62558272,-994251266,1283303033,-1279437850,992393341,-1963509579,1930252135,658806549,-580780394,-2041469084,554507182,-1231182273,2034816694,2060633619,-1267367605,760412282,796593306,2093137151,1660898603,-1024568771,-2065346121,-988862083,100324167,404907310,-1216196191,1891897627,-1072275634,-141074387,-1119903642,-496682282,-649298150,1806055833,1949019028,-453758242,399091379,-1233886622,1545495834,-200997460,-1625376484,-1716939831,-1632961936,1107426298,127993938,-1809856080,-1811728718,-183693880,-2008684781,-891078653,265591139,1784078687,1134843355,1131984089,-115915801,-1360815462,579223764,-265841105,327159864,104598512,593055263,1551118769,1711611441,393770183,-78341665,800345365,254561400,-1520555500,-1596182553,1314925884,-1800141040,1379983940,546077319,-2039539739,763538889,-828701436,1036686324,2103884156,-911982441,-693033136,2015458101,-249906739,-1543961795,-1359606748,1670841595,1612418591,-676284417,-689936077,-581560087,-1191654009,-1210845479,293769705,-755306636,925394903,1211916157,-692177236,-622773415,-903677204,1804257538,-1711345990,-346182327,-1235622958,1571084924,870189134,115575333,-310357359,741426530,-783533647,-524808655,564248367,1151109622,-1418688037,-1461765972,-327245917,1047400023,980637851,2023007023,-16784893,1476471697,1413775848,-613057920,-1732585021,-100517557,-528101465,-272894845,-768807217,-105819995,293850785,770820103,-810309793,1737254183,-1864352866,1437579962,-1713341310,1574169540,-968592763,403802597,1768558971,-1627894666,-656539662,239235657,-318321004,-640146297,-1207347285,1579119261,200959697,90741486,-1526130692,335455906,-1942587413,687429156,2052546908,1451570334,-318644691,976625122,-476751390,-750429264,35257438,-1122183204,242537800,1990701391,-61698299,-262402281,-389052278,239682201,432059793,-1249226353,-1362316275,852353377,1515965544,643106396,1250402278,2146962439,-25198769,1720525918,-378447182,1885994218,-982997210,897650004,1177899309,-1751504488,2050551026,-615488155,258101722,246547682,177976714,-814354540,-1067151652,130052851,-1503608794,228679111,-764675336,957354842,743682953,-80589534,-955971582,-1679548398,-1893763307,842919559,-1417072995,-474411588,-476271016,1960221854,-2000028038,1064720778,1125209946,-1689600988,-1932754255,941321227,699393692,751701204,368787675,1145390827,1925139703,-1696360162,581863917,-900624303,474927847,-697699434,-1216264353,1676419226,-97457144,395153810,-851690405,2039283836,794310678,351431717,-487534643,-605001480,-187119719,-1246811193,1112585216,1891726737,-152379800,-837994033,-1781816487,1242811617,1852418870,-639305438,1060375929,1662666254,-955619201,676218762,1632570972,1925888940,-2008765233,-1542967996,-949530250,-790273279,-641438510,1860652017,426925796,-218836488,-3987363,-547322673,-1459273517,1880889323,-1847234037,-958920614,-416903052,2122521604,-367072256,-956522609,-673433155,-2087785524,-1189733909,-1364523498,276436917,621451866,-989370913,-1093818306,515558322,-1378677883,856836717,1483676585,-1732572086,-825690947,-896424395,-1120744116,1740637396,-558040898,-1509733326,2144537820,1859387053,1965969203,1385402744,1420238007,745063889,-2024574488,805434484,1134900725,-552026046,624550110,94171538,2031730582,-1443151460,330536256,-327503014,-2042594237,-658643439,576231320,-1273399029,1672492159,1676531478,1814622218,757948366,479977884,1071759895,-816861826,1080007393,1821032650,1117958400,-1831658505,-1771402009,-1239578797,1011075386,-1701749733,-439285708,290568783,-2138876074,422406707,1770635127,-1879316489,-1524279941,-1866248050,-1670496984,-800296935,-1806788979,306543942,-1545600759,-658600686,-1462792091,-898707022,-386438546,-1107689140,1302215187,1712497252,1963797031,-210267329,-1803821777,-1511272935,-2091383401,406892950,-512241874,-189540335,1157665005,-2058348306,-2002260728,-1931443141,-316101370,-2072302998,-1298745984,-829306662,1207428568,-1016812977,-454047672,-1959433431,-1405204024,448871449,-193483058,-1583839221,-1047625146,324399799,-1442369122,1701130872,-1909984247,1861389407,1065413000,80892431,-678484277,2069457210,392096714,1003437176,-1050424909,36646056,-703134123,910839961,143352040,723415245,-483891125,-220595673,-1717609820,-1646082577,-1299841362,-1087983527,2073055675,-815610381,-509037280,19481332,923618556,-183780714,615571202,-56835682,-1978156775,-608678755,1335872817,-659437359,-1740887166,1103609086,-964208838,1191156363,1123696464,-1468023294,2097646551,-712611793,278279957,-558234936,-1586351036,1033237904,1001208781,-194138371,-1165465880,-225600803,1388053083,2016506468,389872242,1752359055,420442536,1273102105,2107422019,-704909105,-1852181847,811825216,138556689,-1277753003,1615167718,-902024524,-304483464,-1351390488,1625529597,1488668959,-85439760,310658641,-547361499,932213560,1642939440,29302458,-1295895896,1265832846,471425802,-810732304,-67927939,2128062071,-1464438903,1772522584,111259604,-591832319,-1544091404,430522266,-525928015,1021646680,-1491150367,452687077,-1603134686,670467134,-873638559,-245269375,-5041797,-634909722,-1484129275,753562590,1453428927,740702401,1550267100,433296316,-1625357040,607618748,-416974323,1124050089,1206280787,-159724030,-1062206244,-422267025,1853169023,-1328789786,561098100,1203191445,1306475336,-90100792,-1183842546,755115778,868941780,-850621670,-1276955778,1942730875,1073573876,-1509058896,-1520437385,-2113945283,680659244,1666215631,-504077155,-435173167,-503442750,-1335118088,-1022882574,1470169643,-970346356,-704404971,-1972043833,-1225404200,330981869,1328335524,-1201801813,-1531386587,-1781004630,-825262393,1089250814,-1410395385,-687764440,-1608849203,136562926,2028013519,-1484952491,261469499,2076522350,1899748169,112782120,1813010867,-1363915135,1979811338,969060917,-2008791012,1304415234,-2030772808,1817955869,-1003470814,-731074602,497016930,142139009,940672040,-1593647127,-454073935,-602722812,-1853675861,-663880471,-2005036837,1889125698,-1595601133,1514733468,842147191,-772322157,-2011152899,-989450924,709209493,-429641585,-114580047,751061055,-1458974855,78098593,-1262797446,1308402106,1919069712,-1584549567,1741722492,1631816589,-772547696,1384740749,58330515,-1273153100,-711617490,-974122563,-739016145,1920039815,1780334177,1010464889,116208874,-322569696,-487665488,151201024,-1566401209,-806585402,-1233430242,96056033,104802719,-113481511,-328788813,1373142768,1443706021,-879089215,-1923333954,1169781242,-995311074,-553724068,397270568,204499560,-1371226976,273560141,24180802,-1526320107,-333667211,29529263,-944975992,323020942,794678179,1550606074); -/*FRC*/Random.twister.import_mti(2); void (makeScript(14)); -/*FRC*/count=265; tryItOut("\"use strict\"; Array.prototype.forEach.call(a1, (function(j) { if (j) { try { i2.next(); } catch(e0) { } Array.prototype.sort.apply(o0.a1, []); } else { try { neuter(b0, \"same-data\"); } catch(e0) { } v2 = Object.prototype.isPrototypeOf.call(b0, h0); } }), s2);\n/\\2|(\\B|($)|$\\s)/yim;\n"); -/*FRC*/Random.twister.import_mti(521); void (makeScript(14)); -/*FRC*/count=266; tryItOut("p1 + '';"); -/*FRC*/Random.twister.import_mti(530); void (makeScript(14)); -/*FRC*/count=267; tryItOut("new XPCNativeWrapper( '' ? new RegExp(\"\\\\b([\\\\d3-\\\\u0080\\\\S\\u9783-\\uff8b][\\u4932-\\\\u00A1\\\\x0b-h]{1,})?(?!\\\\1)|\\\\2\", \"\") : length);"); -/*FRC*/Random.twister.import_mta(194107329,-1554045640,-1888750768,-1812308985,729661030,-532768820,-23392869,-2015739127,-1813934439,1099974906,478376970,1402890898,1455059510,-12557422,195967047,-1255334737,-1485310186,-633176294,-2053398258,-1459263502,-2035290783,1155031651,610303623,-34720552,-896048941,1983316378,-1949275745,1302304320,-923916959,1075508446,-455532091,-1177945752,1529124515,1826902755,-512448686,889749315,-1707291584,-267715197,-497358858,1829992519,-1175758835,-2000042586,518632766,1908402855,68517478,1871508521,-1336601390,-1073350971,-1586435991,-1868830947,-2045538014,235809203,-1651982274,-1297424305,-383218365,-1814288654,-2105114577,-1801198969,-1662292461,-1009429147,-1942474514,1655610581,-929934433,-1066916393,-999957484,1503609269,1542440678,1311785524,1730038675,69627574,2098831095,-864177959,-235117403,886455598,-768546451,-1265840370,-86473974,39561071,265603204,-1586256472,1477579522,-1721366924,-261155668,1270371471,23683306,1849068578,-923578215,2042981201,1216461180,1881289761,893220537,-2008510482,-1737292054,732962557,1321740246,-793430896,-131132530,778929460,-1912272081,-877582027,-572958338,968042553,-402815394,-1204683115,1355170241,219600498,1244217052,-1565575216,-329590927,844438153,-300615396,-977201760,-1697675260,2140954682,1100724024,-2073557808,-91637272,1693244675,1955991388,-1467828601,-368145896,-565775954,-894730293,309847458,-2064683084,-978398599,-805864529,-1157143472,-1660599963,-1194209493,-1818493984,747414805,-1133315974,422864917,166943148,1307333346,1543530978,-327075268,-866364980,-8351919,943092518,1713725241,-1944923012,-576461177,17444235,-90337236,1374123930,1551984137,-739428586,-2011564599,1207835021,-1730884460,-908298867,1838436497,-1669948531,151292260,-762663571,788447854,-602099175,2001222975,76079296,1459122634,455628404,837752220,1907267174,-1627455344,-1274871024,1448352032,1176150536,1426173327,-1622874986,-1003148058,1292029732,-1969983350,-679303510,1673199300,2037889957,-1386803549,300939409,-2108992202,-1422921880,-375377013,2083917131,465568712,-528396434,2036267154,645521705,1940435944,-173506352,-497239353,-1065681423,196707773,1343814570,1346247223,-1138781858,-1435238898,286760525,365410244,-913951277,1142580844,-1355535752,-773583000,-78326113,-833640597,655221106,1560260405,1127116944,-408289153,751044745,-491931960,-1943338708,-1979366705,1089776447,-485083692,-1093889998,-851093618,520096379,1906090652,964415281,1576595951,707222798,-779779356,1648365742,-1973493887,-842538021,-280259521,-794789525,2051887391,-762220012,-184500961,-1751211206,1959170723,-1045021599,-214019191,1488237198,1457817667,1430764468,182743648,-1066698208,-309304932,1595372854,115340488,2104682630,458723297,225289910,-1364240187,1808626818,-145097428,2042631271,1873196622,1115200042,-1236147987,1637555601,413265746,-437304967,-1525280483,-1552013363,654705913,-656301208,-95642444,1469136343,528124778,-421192144,1715313391,-952227816,-827810969,-1417556444,-2006549750,843333958,1255053051,1092119945,1030759344,-223997295,-498007440,-1548329346,1342892342,-59125388,1751680005,45549249,-1527600958,1413727422,529563643,1582708292,1669348101,89779037,-7902658,-1337582241,-210125076,1470229205,853847175,848202198,-2052937230,-1675821665,213534189,-1626998479,1973094078,-1079153530,578767592,-2095000320,2115850680,-195581753,1729090662,-1194243797,78924171,-31734614,1364045346,-762075198,2001497949,-899178387,-1887006014,-438756602,-1560873044,1199522974,2074635805,-151406234,1260913032,673369627,-1914217316,-1480265777,-890243451,696149556,1917122589,-1001876386,-1309222610,407952537,1412269521,1055353570,-1930095950,-1162402717,254618814,-1983441634,1725053380,461404565,1147457042,609707524,-872611378,-881694938,-665740935,-460305120,179221792,-1381919082,-2086812594,-632692659,1858709306,369383705,-1523162460,-1463608020,1066438622,1938464458,1415462127,-638713920,-863057933,-1952854803,1054471036,1747492809,-735576122,808025968,-3883671,-505160200,-649752413,1833950498,1460558090,-1305739468,1862875344,1326391280,1827612812,750113049,-204790539,-1098781395,-1070429001,-317193968,-497323684,18180229,1397717997,416452749,211142100,-24272054,96701624,-1046505900,-1365995040,242197117,617381493,2071162176,236496934,2028070538,141860042,1299442264,-850652134,910110953,-880140304,619482451,52170586,14961227,1517483488,1234464228,-579126320,-405893579,-488091637,-811968253,1357205784,858596492,-1768607490,-776352463,-1151720650,-1458389289,-1654099928,718787020,1263248036,-1519411495,-1412440221,1115880607,639281053,-1650564976,-1732234481,58517880,-1254350422,-103146311,-83943238,1507977788,1851169637,-1942129052,1221265359,1421125705,-1538798854,1507435013,-1452938324,1733938673,1430476770,-258404160,-278197858,700764767,-1798937158,-1917057952,1819505140,-1223484835,1913582145,1718852593,789931661,-683576901,-1598368114,322995238,-2100025088,-958715209,-1305359645,2098928200,-2054979486,-96593007,-1714285130,4311919,980528270,393704918,1294260142,-1620487092,-172072911,211921059,-2060925088,477742014,583776106,1236449243,301772694,1167660484,58493714,1712466523,1436038377,327510836,-1512901657,-476262375,2025975630,-500267991,-1693349022,-1778120454,2042552474,-1375760593,-593925667,-1499301546,890538922,-956466615,470421894,1020673218,-1242687684,144237251,-1240202394,434637682,1120282962,-1042858853,-1242192229,813748841,31720504,-1390218262,1778299535,1208877953,-875044410,-1054402065,-107344518,586970835,-902618163,-264956147,2049247880,1562911198,415562233,207830032,-1143964403,11681676,1185611489,1317476769,1072141093,-129673403,46323519,108331025,2029024201,980525754,-441153601,-528884284,-1556031993,954135944,-1906918764,1722656785,-1708257682,743451491,1980999976,2084916364,-953146803,337576135,1299537228,23827118,1898558677,-1573937532,-1355988821,-1210428337,-1622725511,-2121137279,894371559,463580535,754755710,389692834,1184405809,-469347114,752672703,-421063717,-502827098,-249665304,675009316,1992989247,-1984457888,-1900336888,147092425,1153261850,1384031537,-139652648,-1066749872,-685162705,455782981,-1157049856,486492915,-423410343,-193407918,-1843793119,-1781541110,-279189777,-251692654,711809296,-174176882,1052987237,373563284,-1608680488,1844083318,1737149166,766522610,846123736,122769004,206221712,-634503412,252496444,1298038571,-252044514,-33109591,-1895476128,-1011850883,-1435461842,-1297572891,-1223189757,465622647,2106493663,416322232,260617840,2035706862,-1018491783,126162741,-1392582389,1121619708,-1892076084,-485920737,-335895441,801327980,-978724379,-805927563,-2068636105,1698824044,-2052240193,1512621066,-2003103166,-2100972387,-1459404441,297179596,1831842752,1938930905,307312095,1220641314,1175504520,1495600207,1634190216,859244958,242002430,1515303944,476298723,914836680,1073853733,-873828426,-621414958,590491023,332562855,-953010966,-213052243,2064569610); -/*FRC*/Random.twister.import_mti(320); void (makeScript(14)); -/*FRC*/count=268; tryItOut("\"use strict\"; e2.add(p2);"); -/*FRC*/Random.twister.import_mti(346); void (makeScript(14)); -/*FRC*/count=269; tryItOut("const this.v0 = evaluate(\"((function fibonacci(qtmxtq) { ; if (qtmxtq <= 1) { ; return 1; } ; return fibonacci(qtmxtq - 1) + fibonacci(qtmxtq - 2); })(7))\", ({ global: g1.g0.g1, fileName: 'evaluate.js', lineNumber: 42, newContext: (x % 2 != 1), isRunOnce: /*FARR*/[((void options('strict'))), , , .../*MARR*/[x, false, false, false, x, x, false, false, false, false, false, false, x, x, x, false, 1.2e3, x, 1.2e3, x, x, false, false, false, false, false, 1.2e3, 1.2e3, false, false, false, 1.2e3, false, 1.2e3, x, x, x, false, false], (Object.defineProperty(window, \"findIndex\", ({set: \"\\uDF11\", configurable: '' , enumerable: \"\\uCECE\"}))), /x/ , (arguments && -28), .../*FARR*/[], , (4277), x, .../*MARR*/[x, \"use strict\" , \"use strict\" , \"use strict\" , x, \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , true, x, true, x, x, \"use strict\" , true, x, x, x]].sort(q => q), noScriptRval: (x % 3 != 1), catchTermination: true, saveFrameChain: false }));"); -/*FRC*/Random.twister.import_mta(-213400937,-2010144597,-2146381884,1720974271,-1500873960,939326243,1639953005,2045430084,-39824299,613837769,1652856813,-1909282878,-1804603734,-1638051741,-1518036715,-836396261,-169800574,1102133759,-507604397,595942102,26976596,-757504608,1352761609,1887336146,869304066,-934007719,-1031274022,-458882966,-915893821,-868356660,161983318,67365710,1074892848,427721206,1464527556,-2136841664,-1921073174,-968988250,-1651507523,-477198552,1802601566,-1741313244,23958274,290077461,739959755,-554589986,1262190942,-1263804765,1422312243,-1187523840,1205711280,243641200,-97751946,-85228632,80397527,1193452676,652681645,-606294155,2110446861,1516624841,-896251425,-185389365,-390066782,665582542,-155477225,1273350440,1920996851,-1190986206,-1480473412,1142468541,-940079107,64489124,-1048930827,638897299,603490077,-795619670,79432373,-1589109484,632117630,-1426820152,280564412,1155643028,1228574116,137122486,-2129705609,-1533471775,-1490277339,-443031515,351013972,-1290348054,96486351,-518295393,-1523708626,1869221994,-477267058,-1120890840,-1364406304,-1124711525,920848264,-1629897806,-1074516405,1859576561,-573262228,-49763281,-1118104012,631677154,1476224265,-1583168826,-3821890,-816895029,1612865007,1259521043,121521108,448559398,-411007529,-1656946384,1212024921,43381286,52384008,329968925,-183667015,-804445095,1059609593,2117270358,1022360494,-353628721,284618596,-689863997,-1270226017,-337484940,1617142526,-1444730766,1255516332,-2056540329,330903446,899783046,448542048,1897141572,-1605341626,-1206031035,-2033794820,-521242139,366883898,680775410,359996210,507060722,1056936123,-1488080253,-708822542,-1102390013,1578419067,172727233,799549639,1075495478,1604908791,189084777,1266691012,1371909258,383023634,-1872919743,-1095503889,-489697835,-402066596,314184227,-85867066,1690488557,2104365828,-2096092452,-563995538,1747499173,1336582785,1424995658,35354153,1737220805,-1410121618,-1430280399,-1023588187,553998217,-14458062,-627924012,778618983,1298342228,-1085761023,-2024325964,1735371326,-138753388,553962316,895284760,-1854896558,981385822,-615422668,-2064474914,-204655816,-1858667165,-1238331624,981064598,622891150,2019718099,-1376012733,-1826026741,229898456,1628411695,-1543002272,-618798341,900912088,-2003535569,-1150605012,-1572534437,1120364477,1413789001,-1798597734,-1084087352,1756239525,1040288657,1435869785,-656139236,1654646086,-1713968476,-2123135776,1427250082,-483873084,-1412039291,-1089080688,-331759467,698306090,34969799,-1625240230,-636519523,1806126843,-874537383,-2047344079,525981175,-680828360,233171754,-879739462,-687634033,568611577,1118907133,-117795060,-68922319,-1657624057,-1690440362,1518791732,-212344871,-806476478,-1806161902,405382208,-462218312,-452313465,1906166812,-228706693,-636110571,-1006314512,1769411001,791001147,31404794,112615279,634878690,2032510228,-1294877180,381928515,1681417692,1790189544,-1360942106,945984714,-934340177,-1480738131,844342525,609898630,-1192684263,267528909,-1941874084,-1344724506,450932321,-592532936,1794780041,1410015709,-544308721,486342417,-1878159831,1814760586,736223221,-269874727,-1119656740,-467723670,-1126079619,601425087,944508010,1955186775,-242792119,628797239,566056199,-1800381695,-469083724,-1009812099,-1206422785,354880201,-966267523,2094444152,1650061641,1435707040,-1499950249,197221040,1001515232,-907097595,216304287,1213920441,-1400737195,52625397,1003880487,1498884448,-491722952,4559920,-1672417130,-2147229471,-1711940730,-1243252828,-819297033,493107970,-242139596,-817832773,-1045876319,-439616321,2072777075,266875308,697348857,-1734135061,2074545317,692090030,-650691357,-1906200371,697539105,127191019,1171707403,-2074328543,-1703109331,980375464,308968319,239443587,300845215,1534237441,330089774,-363212115,-634088438,269402996,1467932574,1281534706,-859293220,1663732465,333358105,-2122504080,-534008569,-1249840015,-1108733857,-51217120,-329425881,1292406047,278023170,1548308732,1014122045,-1360231470,179097612,1109722606,1027324568,1197703426,788674069,418402272,1083082421,436178785,1666331826,1505654364,-856219729,-1365889829,-1415682014,-1593356183,-360257449,-55895201,2128283729,1560400689,-241743578,-881570349,1645297751,206135418,2012272769,1442833135,812486462,-1225029300,2091173700,-955596243,594937130,322180494,1671123004,1241232413,1503929846,-1381124300,881716139,-2141970305,-1318109473,1016929734,462283887,1824619194,1512511017,-149768534,259827473,1873899421,-1438086188,-13143418,-1512589356,-2121499078,1191269521,223535013,1772132982,584213452,1622851568,801302221,1955936465,1191268867,-1214148566,718365107,-170686454,1817955931,90336227,677002987,-792399533,1825605125,1197465700,-1182228230,905932984,381293536,1777172112,-780218330,1936511464,-22167083,971642077,1112198820,-386524518,-624511280,644062104,-281065329,554587318,1064017681,-1343191075,418662834,470968418,-1692980587,1701067255,435884409,973142956,-1225970750,-1263646597,-894719166,640410636,-507373568,1081649620,-660924371,630959908,-625326612,942270723,396853820,-173545254,207335075,1636931656,1690772260,673638243,-917445679,272388063,-2021350506,892164300,-692770585,293922889,-1886867564,1075401226,1662790691,1266194667,-1090953619,1601975164,1066976479,-332060646,-1058884981,423631438,1920798730,1674689922,549201491,-1084919299,-433776272,-1200784129,-1306280936,5422518,-1982886844,-675565833,-1962255611,-1040602910,-1266540782,1875587355,-1908243004,-985109537,-973369251,560347682,422286975,-1444364306,-1644158920,-1661487618,-794303450,-364896814,1500904258,-1177099156,1214535017,-166118307,-1903077682,-221063036,378640348,-1809582968,1950988449,2142666363,1063735584,-1630032768,-57651586,-363197863,448037267,-1433207481,1587214413,281562561,-1632773031,361939870,1744537544,1841389882,-1396186685,-1753826216,1882437044,-771691601,-132195508,1563864161,446357152,1137175144,382111250,824300958,-189735129,-215216046,-1816961813,2026545220,-934471420,577641761,-1657925066,-222764256,306187724,1060801423,1101454451,-191474601,-1583584887,391631863,-1357776754,309090476,-18372769,852107416,26961548,-112968223,-1815029914,1623520101,1374430952,1386376035,2132407500,1110791500,-1856072985,711060036,1688159812,1031863284,121017062,1111880301,268722712,-327382427,-148665460,1468573290,-388411180,1948231549,717483479,614998209,-351394696,-733649945,544690218,1996720431,1761790907,1530759312,-533392005,1254938151,741964277,-454793697,-424116872,563823496,1807849330,1169792776,-709381560,-1416207382,2028180387,-1557392435,-1099074352,-1028738907,301124356,-1033871140,-1578926678,-1428445702,1945371315,1821261829,-1570921295,-901987649,-568629534,-853411583,-705198025,-394514793,-678725969,1023050174,1852529742,1388951056,491083066,566421346,1743216928,2114103392,109261553,2119102311,-1425344988,-652590063,2050834307,1292078525,1225425198,553611755); -/*FRC*/Random.twister.import_mti(141); void (makeScript(14)); -/*FRC*/count=270; tryItOut("var eval = (this.x <= 28.toString());/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(243); void (makeScript(14)); -/*FRC*/count=271; tryItOut("i0.send(h0);"); -/*FRC*/Random.twister.import_mti(255); void (makeScript(14)); -/*FRC*/count=272; tryItOut("/*ODP-2*/Object.defineProperty(g0.o1, \"0\", { configurable: true, enumerable: true, get: (function(j) { if (j) { try { e2.has(a1); } catch(e0) { } try { v1 = null; } catch(e1) { } p0.valueOf = (function(j) { if (j) { (void schedulegc(g1)); } else { e2.has((Math.atan(window))); } }); } else { try { p2 + o0; } catch(e0) { } this.m0.has(s1); } }), set: (function() { for (var j=0;j<1;++j) { f1(j%4==1); } }) });M:with({e: window})this.h2.enumerate = Date.prototype.toLocaleTimeString.bind(p0);"); -/*FRC*/Random.twister.import_mti(417); void (makeScript(14)); -/*FRC*/count=273; tryItOut("\"use asm\"; e0 = new Set;"); -/*FRC*/Random.twister.import_mti(427); void (makeScript(14)); -/*FRC*/count=274; tryItOut("\"use strict\"; this.i1.next();"); -/*FRC*/Random.twister.import_mti(436); void (makeScript(14)); -/*FRC*/count=275; tryItOut("\"use strict\"; mathy3 = (function(x, y) { \"use strict\"; return ( + ( - (Math.sqrt(y) == Math.fround(mathy1(Math.fround(x), Math.fround(( + Math.hypot(( + Math.fround((Math.fround(Math.fround(mathy0(Math.fround(y), Math.fround((( ! (y | 0)) | 0))))) ? Math.fround(( - x)) : Math.fround(y)))), ( ~ ( ! x)))))))))); }); "); -/*FRC*/Random.twister.import_mti(590); void (makeScript(14)); -/*FRC*/count=276; tryItOut("mathy2 = (function(x, y) { return Math.log1p(Math.hypot(( + Math.tanh(mathy1((Math.fround((x >>> 0)) >>> 0), Math.fround(Math.fround((0x080000001 && ( + ( ! ( + y))))))))), ( + ( ! ( + Math.abs(( + Math.fround(((( + (x && Math.fround(Math.max(( + y), x)))) >>> 0) === x))))))))); }); "); -/*FRC*/Random.twister.import_mta(1819303509,2090170916,-238245521,2139375414,-1731077273,1590026051,864666547,-932579992,1628114671,1467845039,-1563499467,-876902033,-1859695489,-963107856,-1749358812,1478681997,-1721068592,-2045436101,626496954,1204585129,-1630723334,-611773976,-840125597,1974701530,-1203712752,1226718726,-1567100570,-1855160773,557913730,-44337839,939427103,917691384,1699888747,-86268604,1933435080,-1206739424,1526013966,-1786412763,-1724819186,-1350667009,712592906,-1349943026,-1331430941,-1334944213,-2138548302,2104068381,-1622198292,1753021395,2046808183,2048248225,1027747348,-1946477063,-908359249,298220022,96122446,1807300617,-190951759,1064748660,-1851657697,1727582684,-614936903,1674020077,-1502472899,-1374759945,73628892,-997222142,883398770,-1699741297,-348608290,1031262391,1958828958,1862324930,-611959073,125590725,1750119775,-1203070554,1541183073,-332401966,1241909912,2009353601,-834276528,-461376423,492188437,-336461202,-1466596179,-366837602,1419129136,-1403838630,-1578758134,1774923040,-1445481178,-614954285,-1609652542,-1160976702,-1620975370,-472614686,-1464295415,-718076416,-903563770,50935719,-821691515,935447881,1315199270,-1062360286,-836442737,1649534589,-91128655,647441437,1199161686,-1585591487,1251536523,-1928431836,-7543785,-1134991896,-625118192,-1990325166,2130478952,1055455652,235563729,1595819517,458500266,-601350992,-1786019604,1089275290,-1128858631,-690574357,-1477791200,-1529362728,405819520,-587845444,-2088294303,358179298,1237159131,-1312666489,1206280354,398771216,2068701386,116308273,-198716445,-1210859687,441687167,-648263946,1820542781,-1023961955,762482136,458844852,2014743230,2023756085,-115911215,-1213985519,1757096296,792775989,928690924,432878378,-1899597241,-618155331,438892253,183589765,1751272606,1434554446,-2002016944,635985734,-2097687891,1114183215,-1453554971,-1343644827,736755498,195971187,-795076743,-1175751815,1748117704,-2013173293,1186057176,-489018437,-1679833811,279921753,-1114260378,357719118,1239511339,624095380,-218827955,-1495552523,883431285,448077476,1625353690,-1330155299,1348644139,612448988,-1176828112,-888090654,1675759079,304549614,-1809165978,-1901070908,-156594655,1785977828,102079227,831004462,305300991,1462450024,1810832276,-1277120998,1583211608,690842463,-238236595,-1560537,35058125,644900323,2114655098,-544062982,-1211285645,987024674,-1158482775,-576111171,2126231582,1812637593,757699120,660513616,344696241,924280211,-1297309318,-192934036,906892420,787650710,-721293055,1184556931,-722436870,-2136258057,-1066269225,708319400,-1457513198,-1285264773,406268630,373415278,987791728,-1460562100,-282219506,-1632391245,792794024,1186376099,-1962486437,-84307650,-125715778,-23232143,-868676814,1766016922,1978994549,1967164774,-1555564570,1842026625,-2119048817,-633167640,-1532164603,739089828,-1853626554,-1156412950,-273627104,191649685,802817274,-1220842347,-926443606,1181216572,-1352512557,113535595,682278189,1407661191,1868502622,945055305,720747357,1850891354,-1236339963,-681261247,-1458475278,-1323801872,-2079760696,-890048442,-858113927,-365633213,452291122,-1077014550,-1656871213,-1421409667,890800743,-2037267580,-133249259,1497743519,2061424617,2014616141,-1039363946,1841820281,668518827,-1758207613,-1232423464,-867658221,1605568559,950246757,-2025023786,178916514,-953902407,-246436465,-1925667407,766515207,-1517130282,-433896516,861210434,-148652005,-124926860,383532149,1620853909,838707109,-626363918,-390639947,-469042987,-1918930529,-525733223,-82531368,-1755914364,-412768089,-477096503,1587968064,1125174989,1955376758,119193732,-1353926433,1492381603,1602068396,-405667542,-609893934,-2108496921,-1873006177,225236717,1424373413,-642630233,1639443838,-224275884,441346690,826295841,-726494955,485589940,1262295368,-1248917633,1989750169,-465287593,922478290,358061675,674971560,2038061331,-204874483,1288699491,-1791683372,-1443863610,2138976542,288035611,-644641616,1274140692,-407066928,-725674307,-1381793761,-1838616029,1590414642,-191617919,1727324757,156834140,1492918347,-2006510876,-127929325,245124316,-1885017328,-386573137,1079802899,2105846677,-483316886,1318477477,-1315073451,-1796483647,508192929,1371617766,-550277073,395012518,-873978662,-238214178,-1998404998,2044161570,-1444956299,315071514,1931446328,735310828,841381017,1951620563,-1955735446,1940176433,346679348,-2093250146,1027548336,-924840583,1237235609,2018794697,914138667,483339067,1892775557,1455493232,-1604936072,-837179634,323337079,7739812,914016360,2010721150,-1305293744,1548990306,-1425422216,778392479,1904860220,-2132136155,-561287534,-2017257877,55779054,-792721417,-1350431263,684641003,2064582292,353792234,2072977803,-619113582,-378181338,304607004,251057538,232034100,1622282852,-2028596910,1994558539,1352336299,1469226104,974490262,590583455,302737582,325601298,-1935438794,425339883,1783883641,1011846142,1398394508,851549383,1644401576,-1179994203,-857469068,-2122408494,706156613,-1445317477,937401230,1398522149,2112318096,-438239999,648459113,1639268403,-765026715,-315676895,-282829578,-1561076724,-1984455146,-955101864,646517066,142807266,636113954,1385000249,1336227971,746799715,471860677,961868279,724784581,-12194444,-1634654092,1690283516,-705184976,-209645412,452891864,629351766,1540459660,2026375189,-1763529265,-1651274240,501564261,416629936,1034977739,-1667087208,-833464011,1993071350,-149802418,-870297208,-1263368040,1945097870,1714994714,1928049316,-1123410731,1753109692,-1007099015,-788479060,1054949707,601065701,-1013933898,-435061010,-10242033,-329601829,-1076691281,-1604270632,-153119883,-405802919,499786011,-629764684,-768709057,2119188873,-1937753664,455256986,-6926467,1701674873,2004831245,-1136347223,-2115876982,-209045059,460468223,1087338785,1562640428,-907192612,1919614122,-1263446734,1011530815,1213192839,-1158351965,-182354069,-1648829169,-644022160,296789331,1041786898,-692046545,-202472579,239916730,-1010000935,1215016844,175861592,-1798168937,-1070828457,1168166864,-297862270,-2109154744,-562636446,1643142591,1514916655,-35265868,-1965667626,-1506805934,278019267,-428174199,-24605485,102272992,-417353108,2114940925,-876967852,2033645810,630900121,-457198645,-432093247,1085097944,1661348856,1333698464,51373315,-898437905,527092423,-216575839,-1114818957,-642787212,-1613397103,1564456423,557530625,-885236535,-183296217,2023062962,2034822239,1713313272,-104084525,-570997418,-1130183143,-200455944,-488381834,466779420,1537940120,114885583,-516633441,235302134,-1049301192,1143483857,595771512,221712830,1830710250,1891716394,1369634484,2012939165,-1609811667,1634487421,762647872,-1235420777,-1369116893,517079688,483243846,-497239775,1053592215,548093040,-461890206,652116814,50341974,-694189403,1323483141,-2135200643,476395143,1677654921,404767612,220668073,-300256140,759308038,1713489187,-517178653,1731044992,-2101980495,-328905234,-1060520013,-681262276); -/*FRC*/Random.twister.import_mti(140); void (makeScript(14)); -/*FRC*/count=277; tryItOut("this.m0.get(v0);"); -/*FRC*/Random.twister.import_mti(153); void (makeScript(14)); -/*FRC*/count=278; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return Math.round(( + (Math.asinh((( - Math.fround(Math.fround(Math.fround(y)))) | 0)) | 0))); }); testMathyFunction(mathy5, [-0x080000000, Number.MAX_VALUE, 42, Number.MIN_VALUE, Math.PI, -0x0ffffffff, -1/0, -Number.MAX_VALUE, 0x100000001, -0x080000001, -0x07fffffff, -0, -Number.MIN_VALUE, 1, 0x080000001, 0x07fffffff, -0x100000000, 0x100000001, 0x0ffffffff, 0, 0x100000000, 0x080000000, 0/0, 1/0]); "); -/*FRC*/Random.twister.import_mti(237); void (makeScript(14)); -/*FRC*/count=279; tryItOut("/*ODP-3*/Object.defineProperty(g2, function(){}, { configurable: x, enumerable: true, writable: true, value: m1 });"); -/*FRC*/Random.twister.import_mti(274); void (makeScript(14)); -/*FRC*/count=280; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return Math.abs(Math.pow((mathy0((Math.sqrt(((y ** ((((y >>> 0) ? (y | 0) : (-0x080000001 >>> 0)) >>> 0) >>> 0)) >>> 0)) >>> 0), mathy0(x, (Math.max(-0x080000000, (y >>> 0)) | 0))) | 0), Math.asin((x >>> 0)))); }); testMathyFunction(mathy1, [Number.MIN_VALUE, -1/0, -0x0ffffffff, 1, 1/0, -0x07fffffff, 0x100000001, -0, Math.PI, -0x080000000, 42, 0x0ffffffff, -0x100000000, 0x100000000, -Number.MAX_VALUE, 0/0, 0x07fffffff, 0x080000001, 0, -Number.MIN_VALUE, Number.MAX_VALUE, 0x080000000, -0x080000001, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(447); void (makeScript(14)); -/*FRC*/count=281; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return Math.fround(Math.trunc((( + Math.round((Math.fround(Math.expm1(Math.fround((Math.log1p(x) | 0)))) | 0))) === Math.pow(x, ( ! ( + (Math.atanh(x) % 0x07fffffff))))))); }); testMathyFunction(mathy4, [0x080000000, 0x100000001, 1/0, 0x100000001, -0x07fffffff, 0x0ffffffff, Number.MIN_VALUE, Math.PI, 0x07fffffff, -0x100000000, -Number.MAX_VALUE, -0x0ffffffff, 0x100000000, -Number.MIN_VALUE, -0x080000001, 0/0, 0x080000001, 0, 42, -1/0, 1, Number.MAX_VALUE, -0, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(601); void (makeScript(14)); -/*FRC*/count=282; tryItOut("var cqzieb = new ArrayBuffer(2); var cqzieb_0 = new Uint16Array(cqzieb); print(cqzieb_0[0]); var cqzieb_1 = new Uint8ClampedArray(cqzieb); cqzieb_1[0] = 2; g0.a0 = arguments;print(b0);"); -/*FRC*/Random.twister.import_mta(137763641,-1121857709,252925214,-1012839140,1446822150,1322645000,930169283,-369414644,-2066957216,-4789829,1323808824,-1916231294,-934946432,1706565645,-2070929883,-1939904819,76108240,-714548042,-1178734747,-542730614,-1035565803,-684711035,30851193,154539618,520109704,-900535519,952887012,1116169309,-1454120971,-819757724,2079031192,750239416,1267687145,688255951,1268503400,1466899089,-1325799726,1586742313,-572538190,-643880141,245295980,-1425364137,-42986444,320726357,-713168746,1839466590,1419541139,1762875280,628935133,884346703,892275384,-902107258,465108446,2134520247,1228198362,-2048842514,1041113865,1136580533,-1638707249,1535150965,1243131557,59122775,152933500,1689825060,717544547,2142869531,-958538463,976841964,-349168921,641771530,248813718,-1611072907,636711881,867287556,2023416111,554778847,-979965451,2147324308,-2023115959,2096330020,-1811987738,1094780058,-1469411529,-794349076,1841562879,1476106579,-1970549963,-1633595088,36588646,-470161187,948216894,-457843719,780772847,696798817,50433749,1885273102,48748476,-1494566790,160229536,-2140468138,-516170082,-459099099,-968381569,24738327,75165498,462614568,1780736777,-714902562,1853465894,-510728575,-588138970,887139563,545059709,-505510968,1603120563,-2132276023,2048459691,-378353222,180561288,-1941416993,-576833563,1371008905,549059564,-629682929,999207926,564110778,-421874082,1884460159,1714733785,1648351052,-1081225318,544123837,1484035820,1917031682,905579034,-345586358,1771138874,-1386770540,19788970,-1672818324,651512867,2073759190,2019495622,320440636,-476950824,-1102864617,2066637095,-999078008,-1735295624,-1984399872,75406483,-1115509212,477406550,2014387573,169076050,-771472303,2070916977,1245596082,-512081805,2103650906,2003757626,2093804098,503512073,-854870411,-1376102763,445276213,-1613729307,2067027852,-627588188,-2029108027,545600069,-1158201960,934291091,-1982273618,-261870350,-705264902,-1078316800,-982682120,1808897045,-965878655,867085814,514588211,-1309128373,-998425067,1672538823,-353658026,1240172534,439648343,-2068010130,-419439910,-932747185,1312621922,1691695770,-278206863,405243416,-356306808,1231485219,-404033091,-1952865639,1419493815,881148493,-646837317,603646547,-1086532495,-97443958,979333400,-1258551111,531543501,-877576801,-466572248,1584025287,1391347758,-1187058172,-1658766,-1284975212,1969894033,193925844,-1637203282,1821996642,873746363,476168853,-1171558239,1884613323,826153710,371232496,-357465650,238671640,-251156211,-398605561,461593495,52152574,438785133,1173690559,704708987,-41687638,-212178329,703041213,424096236,932922764,1422787570,415557778,-120536198,1780029098,1653986377,-1580630149,441440256,-452538311,-739934490,954015514,-1744404383,1679246870,-732033707,-1672206861,805967175,521019560,-561267739,329115249,1812364773,-1373456339,804033852,1245054033,-987609506,-1929011333,1034160283,-295113035,-361739875,1555933384,-2098428387,-1675393670,2136989033,-509135318,-2114625553,891828518,379114999,208285619,-635869890,-660287695,2018885537,-706877325,-869310872,-1282342826,-1968167882,-2035694292,-620629924,-1240168667,976524516,-25004404,1797187310,-328372812,-2080817034,-165023942,1904313999,-2137693235,806152681,-1084222847,-392801908,1662365275,-1269930731,2119670893,-93875762,-60719400,1783879620,1375789313,-1673762220,-580599482,-80785037,-1365910591,985256051,-1061722217,-2059421746,1039410793,-2033596342,-2009296573,1675068070,-483719972,1233462180,155421777,-800842235,-1947801639,-1777765802,332274010,9236119,-17821506,-141127502,-1990953044,979757109,-306582337,958013362,897850421,435777750,-1308438118,-1314176714,1799947927,1400048163,-1740355937,-271501591,1390354132,-1836484612,293478479,-1548500963,60466651,-190366137,-610926688,-373655487,-43035026,-1351173666,748948870,586250251,1529701859,1950468623,-1513564800,-1441559900,223765474,-2094900652,1133299479,-1788610216,-1377392740,1873872468,1326140708,-80333709,-1741597449,827754164,1578132912,1839392328,1215350082,1180947140,-1684495132,-878226773,-2101509376,-543822893,578886793,500289877,1065740002,-1470940392,308200199,-1334713973,1059684040,1337665600,-1737049015,1687303353,1012956232,1995985475,1608724276,839672188,1941015982,-191645307,-42426167,-732957684,2038040183,-19393586,-950058385,-1402498470,1142289005,581486470,-2031895393,2142592287,87598863,-1209395449,462894597,483438251,-1712084846,-1754726539,89976734,-1082049070,-565177908,1346175402,-545998167,1569158727,187636239,2143440987,-54931445,-87208566,-2052183009,-1828537316,1537019680,903092298,674655477,84458981,1941603880,1851654895,1269155435,900403153,-1636203493,7671469,-527328388,-1921784573,1690486917,923683556,990641473,-1832920231,-1795843507,-415507775,-1295119736,-1107706642,370840004,-840893564,831850754,-229962332,1288277457,-1869477566,2140065486,-2107040704,-256386660,1845302638,-556463033,-1600501089,-1175329495,1200492370,177086700,1319591811,-1698245455,-595892325,1130598664,-1107154699,513313346,-1615860356,1257944465,1203767285,2041475777,380735514,775981322,-277426245,1125411876,-1757568477,-1777459198,-1601964111,-781399082,-1806306641,-948816448,626098832,281674423,-1959615773,1670336590,-1468425643,-1054544819,355850588,1030370484,-160522194,-1701328299,1269707934,1012971295,-1730228078,-790980183,-306415052,392401054,-1783914230,1241300472,275726365,-1126847207,-1105608586,80859593,1776635904,-1638964285,-464950869,-361961525,1515951360,-138499644,-1066435983,-218242920,-745449986,-105041083,-896802757,-1977022510,985904724,-1833240750,36718625,-518776654,1133414294,1821422637,-2132158004,-1768905327,282529860,-779445369,1547001941,-332132891,-1399042447,1664412791,580405274,-923891008,-1375247397,351945351,-967480108,-221316331,-1539817317,157366409,-98216605,436182692,733323392,110974972,-2083519625,-2093982115,1863084814,466657298,-374099812,-2108216000,-1534939055,-2147352478,-1365927427,2144813758,-353569109,1422458727,-1576048136,650006293,-525135279,1684622157,-1256974717,-748529859,1088021235,-775077847,1422256677,299525636,-900190116,166342915,196537246,482827160,1226793036,-1841519931,425048224,1539084809,186623355,1659903967,-1074067121,2002678967,-286336900,1144300096,-1308804928,1685974011,1867336161,574967632,738366860,1613715358,1106888917,1291290258,1357820767,-2023899397,1747119903,-777216199,-885819605,1833589111,2001782686,-229397649,241564057,-1196002284,931305124,-970731324,134773599,-611564561,1663955648,546825864,1485565295,1529729981,1880122327,1857202590,963483125,1118437090,1795364321,-919641741,-1599614819,-739568101,1894573990,-1506418501,-1166528696,1981748255,796713200,2106009329,-887489042,1695686802,-1910043195,-2004778338,-961140267,-449426720,-616152907,-125593541,1659076674,-482161098,802884084,1421885824,1858195393,-537837286,-599364630,1419403633,2140132249,336018561,-668263860); -/*FRC*/Random.twister.import_mti(26); void (makeScript(14)); -/*FRC*/count=283; tryItOut("\"use strict\"; let(sypblf, x, qmzoph, x, sbkbzg, z, x, x) ((function(){{}})());"); -/*FRC*/Random.twister.import_mti(102); void (makeScript(14)); -/*FRC*/count=284; tryItOut("mathy0 = (function(x, y) { \"use asm\"; return (Math.log((Math.fround(Math.hypot(Math.imul(Math.pow(Math.fround(Math.cos((Math.atan(x) >>> 0))), (y >> Math.atan2(y, -0x0ffffffff))), ( + ( + (( + y) % ( + y))))), Math.fround(Math.atan2(( + Math.acosh((Math.sqrt((x >>> 0)) >>> 0))), ( + ((((((Math.trunc(((((-Number.MIN_VALUE >>> 0) >> Math.fround(x)) >>> 0) | 0)) | 0) % (Math.log1p(y) | 0)) | 0) >>> 0) ? ( + y) : (Math.sinh(-0x07fffffff) >>> 0)) >>> 0)))))) >>> 0)) >>> 0); }); testMathyFunction(mathy0, [Number.MIN_VALUE, 0x100000001, 0x080000000, -0x080000000, 0x080000001, 0, 0x0ffffffff, 1/0, -0, 1, 0x100000000, -0x0ffffffff, 0x100000001, -0x100000000, Number.MAX_VALUE, -Number.MAX_VALUE, -0x07fffffff, Math.PI, -1/0, -0x080000001, 42, -Number.MIN_VALUE, 0x07fffffff, 0/0]); "); -/*FRC*/Random.twister.import_mti(375); void (makeScript(14)); -/*FRC*/count=285; tryItOut("\"use strict\"; this.f2(i2);"); -/*FRC*/Random.twister.import_mti(387); void (makeScript(14)); -/*FRC*/count=286; tryItOut("\"use strict\"; /*oLoop*/for (let bahnza = 0, vzgnjl; bahnza < 105; ++bahnza) { /*tLoop*/for (let w of /*MARR*/[Infinity, (-1/0), objectEmulatingUndefined(), objectEmulatingUndefined(), /x/ , (-1/0), function(){}, objectEmulatingUndefined(), objectEmulatingUndefined(), Infinity, Infinity, /x/ , function(){}, Infinity, function(){}, (-1/0), Infinity, Infinity, objectEmulatingUndefined(), function(){}, function(){}, (-1/0), Infinity, function(){}, (-1/0), /x/ , objectEmulatingUndefined(), objectEmulatingUndefined(), (-1/0), function(){}, /x/ , /x/ , function(){}, /x/ , /x/ , /x/ , /x/ , objectEmulatingUndefined(), /x/ , (-1/0), objectEmulatingUndefined(), objectEmulatingUndefined(), /x/ , (-1/0), (-1/0), /x/ , objectEmulatingUndefined(), (-1/0), Infinity, (-1/0), objectEmulatingUndefined(), (-1/0), /x/ , Infinity, Infinity, objectEmulatingUndefined(), (-1/0), Infinity, (-1/0), (-1/0), function(){}, Infinity]) { o1.g2.toSource = (function(j) { if (j) { try { t0 + s1; } catch(e0) { } o1.g2.v0 = this.t2.length; } else { try { this.f2 = Proxy.createFunction(h1, this.f2, g0.f0); } catch(e0) { } try { Array.prototype.unshift.call(g0.a1, this.p0); } catch(e1) { } m1.set(o1.g1, -22); } }); } } "); -/*FRC*/Random.twister.import_mta(812793969,1545510026,1023412261,-219297775,-1342045071,-2014511200,-1954764076,-1674162180,-1225865816,-1207474507,1533224582,1863186127,-1810435966,1744400326,636112435,-940931849,-1179200953,-1639233459,1510429455,-803365216,-141026056,-1436985653,1791298014,1143331119,-1987392866,-1038321815,-1203893156,1831912537,-354264143,423065417,559257016,-2017139990,523604577,-1321700359,1434773334,-1431111199,1270410789,955609245,942137026,1994030260,2126964944,846301131,1075071799,1429224069,-189065105,1139889162,1500823206,1432606838,600440295,-1553571723,1653831825,1196580355,-399313017,-1101218724,-561252884,-2056507309,114684912,-2001101446,1801918489,-151104996,-552884991,2099296511,619562888,-1574283292,1235399529,-109956501,-903801771,983473582,-207379532,-704215139,44121930,209927419,1015636882,-1248869633,45265491,-666069909,-678997345,1536722230,1800168398,882218439,-1764875677,397032721,603827304,-745929281,707505380,1285016812,-1561537876,1450489517,1029694907,364834791,-1153622722,1922682673,869619609,-1671846276,1372204551,-1623422947,-147049066,-1364552805,1517163307,-2027731317,724996284,148276728,170219562,-75479848,-951936977,640697993,275910587,-444193343,-1409315906,-1888697439,-2131336900,-442073780,-1341745112,1616823191,-1985239297,898542221,1754006664,-1454006495,867227457,-1795995814,-750055679,-659392714,439629187,1228741500,-694501879,-1046241222,1159314043,-1552684742,-885342523,104429929,-494254719,715594890,-1158559242,-1714594992,1522469291,1863849871,-15173802,-1027483883,-1431840537,1247811244,-1822941418,1140377053,-480234955,1694619659,1680217772,-1037971623,-1031097963,673314289,-238539389,139831723,1578677729,-1611197822,-238693312,349410477,2052235947,-313174428,782880583,-1250768002,934212961,-1450453032,657706369,-843752238,-1265447266,-1392147382,1807124874,-507577190,-1821051974,1769948050,1802676861,-1388854778,1916196653,-527045434,686745179,404570599,721586600,321560082,844630435,1807598638,-769871488,-2005153342,1567504621,-323039987,-1939412917,444821203,990917682,-599541777,-1550817712,-998406797,2071434802,649545495,70479985,318602181,-164221304,389943473,1165097875,-1828100656,-1819255308,-1636982927,-1740225051,1248161930,353789343,455005165,-159761087,-617779330,-413689916,-177626980,-106755383,-1051260703,-1191072774,-1825589458,-1487918638,-1809910372,-1186631188,-1132322774,956033314,-45870767,1842782485,-1794214649,-1395024138,-1007153131,-354629810,1054049440,-992385379,1602889225,1255609214,1394333453,2040561173,-580644563,-1999142498,1015934042,1727451896,200292593,199544770,-1245882367,2090060304,2065019433,-1264255421,1085178944,1164638006,-1737194293,1536233083,1357301094,1873337868,811261221,-747854771,-242447412,-1175510573,-1409903755,1062381092,416197333,-150835366,1588095160,51498261,-1212605432,-612521612,975444054,-1237517980,-1353942671,-801986444,-1557782378,-1817620266,-1978755020,1835552115,-444323424,-725228404,1450773158,-291205275,819407469,-724117088,1892143138,-1933433427,-1372650244,-776630738,-968287840,2020567785,-694998368,1178865530,-780845961,558231863,-1308985428,-83579321,-1646323846,-387135363,-992542531,-710682872,1411785567,-2089737877,-381873189,1021057220,1610166293,1138893948,-790580656,947713600,1285139914,1322628456,455197766,1428751816,-461225565,833680412,1119476990,-1062852323,-1296403956,-699227839,-1187696068,-1090020016,-1525793039,-255734495,798826871,1429595894,-468775037,-789651046,-146975590,1031540159,-1820766014,850798463,-1594453172,-1533784006,1741086221,966620698,2050120500,85418472,1857168984,-453525436,-1282011584,1787877214,-172337749,-609334958,-1459868039,69877139,321138919,-1554652093,737061819,-1769901241,-2057790421,191237738,-1030748972,-2044168097,1363263940,1836527005,1757641242,-1023021973,-463382225,-665115022,373010367,-17906738,1709363586,478366592,1742015791,2073699054,147873603,473226798,-1875800072,-1070428912,-1109956305,-1446898282,-1647710965,1910635075,-988814573,-1909148052,1877070674,-1050273782,1974942579,1506370731,-618654217,-504349065,-1486124395,-1229254874,-771301738,-1254457109,724044974,-220102530,2078598621,-704097579,313352393,-1458457109,-1369664793,797457803,-886351078,1958131713,-269096348,-1230566061,1436759345,-195860774,393283984,372483939,-803596838,-1012126242,-1031373211,-220637899,1312153462,-80327321,-1867202461,-253059239,151887146,-1884463678,-253343451,801798490,-1493828368,2012547916,605499922,-895381886,1772944999,216662267,1567621445,61031675,1689148427,2142290494,-1041169099,1247237631,724742289,1743112214,-523267358,-1782388255,-832642624,-560494250,-161214313,-1120163526,1039020901,-1126512019,1257012578,-1797052538,-750417599,1245401689,-1546088374,1104993583,1932497272,1373787640,-1852101664,-1958113634,621297848,834155201,-1104113024,-1416266005,-1297202645,-408455901,-506777733,-1442172420,1480351717,-1671958211,-964553077,-1112101366,1084229100,-1950704666,-608921623,1548476567,1764351165,-1606477892,-274999496,-2138530882,1353890842,-1463868133,728161274,-720211032,921451316,-759961709,1956801417,-2040176769,-1020699833,11071740,482642759,453938947,488242178,-377236505,-6033854,-1981296825,769430237,1263979843,942150811,38667310,-20615288,-1395966837,-1565848470,2092496441,1081468714,-512983077,568835198,603585218,591477423,998208247,-2077678011,-1143573439,706237823,1291461964,-41078485,-1516656140,-1261635960,840511559,348862085,-721258481,-1240984248,-780762720,1122690482,-1118499156,43666527,1576722669,-284586686,-1980179003,-172173855,-941117949,878946131,973363554,1031530752,-1947012726,1327068371,157657272,298843502,-801295257,1413760142,-1649673316,984361578,-1933801313,1684941332,-1556864086,744724294,645628988,-733028832,1320490008,1737842972,518763362,-351705124,1874008992,-1363511235,-801811244,-2003752621,1083726797,2102344526,1466109118,-1008172317,710591336,247611056,-827127877,-1292907175,-1848121665,-1310041215,-455816832,355788487,709718946,-1358610235,1531158288,-837762349,-2105613250,-119427030,161983163,1336427843,-465279597,-920326821,-2091509102,-1258720989,-1646763115,-333778106,-1766189458,-1217560832,-262070172,-707926882,-1938579873,-1807950802,1603202231,394468760,-1217803815,1056033911,61712467,-373193490,-169383702,-466474625,1237278116,-2042533697,-965906891,-769176637,-228584471,-397636163,-1345324278,-661323641,-727893774,-2044386270,-1966290305,-901456467,-197045239,-208059830,-1415975881,1611917432,1676485948,-1248252004,-972511655,1391464993,402878051,989472580,511126066,-785519794,-1057325797,-313049686,2048955587,-693540168,584446128,-1745883049,2123359417,145064077,-495758273,35437484,59938318,1545212503,1334933357,1259769659,-1176313185,-2008867284,-291002899,104835144,1911479385,-219689956,-1343188732,-2033695830,-472213227,-210052191,-1586768389,-234009915,-1788085601,-658934283,-530741175,-724636182,-23595626,61808446,-1346190279,480670557,-588004349,-285480515); -/*FRC*/Random.twister.import_mti(41); void (makeScript(14)); -/*FRC*/count=287; tryItOut("v1 = (a2 instanceof v2);"); -/*FRC*/Random.twister.import_mti(56); void (makeScript(14)); -/*FRC*/count=288; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return Math.max(( ! Math.pow((Math.imul(y, Math.ceil(x)) >>> 0), Math.fround(Math.fround((Math.atan2(((( ! 1/0) > y) >>> 0), ((x > (x === -0)) >>> 0)) >>> 0))))), (Math.pow((( ! ((yield this.__defineSetter__(\"x\", \"\\uBA63\")))) | 0), (((( + Math.exp((( + Math.log2(( + y))) >>> 0))) === ((Math.fround(Math.imul((Math.round((y | 0)) >>> 0), ( + x))) ** y) >>> 0)) >>> 0) | 0)) | 0)); }); testMathyFunction(mathy1, [-Number.MIN_VALUE, -0x080000000, -0x07fffffff, 1/0, Math.PI, 1, 0x100000001, Number.MAX_VALUE, -0x080000001, -1/0, 0x100000001, 0x100000000, Number.MIN_VALUE, -0x0ffffffff, 0x07fffffff, 42, 0/0, -0, 0x0ffffffff, -Number.MAX_VALUE, 0, 0x080000001, -0x100000000, 0x080000000]); "); -/*FRC*/Random.twister.import_mti(415); void (makeScript(14)); -/*FRC*/count=289; tryItOut("testMathyFunction(mathy5, [-0x0ffffffff, 42, 1, -0x080000001, Number.MAX_VALUE, 0x080000000, 0, -Number.MAX_VALUE, Number.MIN_VALUE, -0x100000000, -Number.MIN_VALUE, 0x07fffffff, 0x080000001, 0/0, 0x100000001, Math.PI, 0x0ffffffff, -1/0, -0x080000000, 0x100000001, 1/0, 0x100000000, -0, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(447); void (makeScript(14)); -/*FRC*/count=290; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return (Math.fround(Math.asinh(Math.fround(Math.max(( + Math.PI), Math.imul(y, x))))) && Math.fround((Math.atan2(( ! ( + (( + 0x080000000) + (y * y)))), Math.hypot(Math.fround(-0x080000000), Math.fround(Math.tanh(y)))) ? ( + ( + (( + (Math.atan2(-0x080000000, (x | 0)) | 0)) ? Math.fround(Math.hypot(x, (Math.pow(y, x) >>> 0))) : ( + mathy4(x, y))))) : (Math.trunc((( ~ Math.fround(mathy4(((Math.round(x) | 0) >>> 0), (( - ( + ( ! ( + x)))) >>> 0)))) | 0)) | 0)))); }); testMathyFunction(mathy5, /*MARR*/[function(){}, arguments.callee, function(){}, arguments.callee, function(){}, arguments.callee, objectEmulatingUndefined(), arguments.callee, objectEmulatingUndefined(), objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mta(-1996836171,-260194431,-2073467195,195574885,710574519,1230263697,325789371,1490298415,-1582997618,302076285,1870614157,1079782846,1489897330,-333946928,1513250886,1343303709,410252601,714903566,-563421241,-956848314,-238409505,-910668158,-235527894,-1876540727,725811754,371479671,1279804089,-307937240,-1497589245,1095278372,-1837540715,1574696817,-1533228645,1534738794,845242031,1463925030,937183930,-72050110,-626650847,-1788263020,-670290721,626353273,1964161814,518230754,559460329,-1493121867,-251298862,-727208261,-510501800,1216224043,1429883110,765022370,261939764,-939859987,-254250228,-1770485168,850457993,1040767808,1339900551,1894268192,615626727,316543800,231841973,-422091160,-1196927512,362539282,-1561550699,-1338630499,-539532852,168186598,-1486800327,470463975,2097823272,1956304253,394655360,-1905004631,767141297,-724939204,-1566194110,-1315546324,-241396488,713139395,887395397,-289168845,206811913,1569475610,264231586,574548982,656093604,797425368,-191929918,1440768796,-1205549450,547038844,-730066589,-959769497,-859327155,-1446684249,1972412120,-597453413,-237529315,-1024130538,161711423,-1062361686,-143951205,449005192,-455944468,1553624423,-814666655,-1874459399,647461416,-978798712,-745800834,291629887,-1482567795,-1754127890,-1581127671,-424976573,-566788723,-1105714361,197941895,-889644676,-812127646,-571018117,-831805408,733034806,-1725375026,-1139952528,-1487194331,-13721951,-1766126426,924985235,1109693208,988033969,476804673,-1369711340,1233256660,680498476,1879371153,601979945,1475449588,-201640235,630758921,-1334972568,1090119513,-236305746,-2102390940,1168688013,335972689,894628029,-1157433246,-449148491,1065060815,849082340,-2117610446,1044215576,-814448351,1319916592,-2131150910,-1793082712,827962353,-316625258,1752370770,1987505302,-652281181,-1134751433,-1869772618,-452020155,-1864726084,645838204,-496124512,1059049499,2102042001,-1169244194,-788508786,1421446396,-1275345355,-1547529537,-1904658100,67041440,1557042195,1956784333,-1269108786,2120564517,45106356,-1748986511,-1446617017,1706599802,-1331088368,-2056903979,1096541811,-69113249,1069581613,-1047471659,-550643632,1797119562,1104252720,-1415285100,1838627016,1911608879,-1768201595,-1582876559,831301096,1010482319,832724853,1547425572,1910516355,-1306038256,1336439775,575064240,-1192708398,-212719118,-662088769,-1079546492,1422943190,1317549486,1635958937,-1022937628,541969696,-1791759378,-1951977542,1173616135,-178078491,-1968616058,-1406982140,2032880598,1497453044,-862883206,-1371846228,-1223553095,-1755803454,799598166,-897431218,1830994867,-61452316,587174000,1918243677,1305097494,-714154236,-1408356208,-999604893,1843793728,-785060272,-1462954048,1381684712,462815217,168058403,-1369211955,1557637943,-898165113,-9275755,-1279044481,234412659,569808387,-1330164733,-1113397583,-1880747197,-94368081,206104378,-314023440,511511920,-572667703,1703128566,1572780284,-1870127343,1962731084,1409966205,-228114417,1563855976,-361031393,1240731804,1233283326,-1004255131,339377785,-1164309,-2102371355,-104057393,-1668284254,895773556,-350878264,-1995090864,497461229,1830533841,1482759693,-854361552,-680697107,-1652685806,2061482885,-1540736019,740340363,-827900096,-459919672,869744631,-2054784479,-1113129794,-180100312,-1588608280,-4636617,1029069720,-1001284999,768076923,-442231041,-756451657,1916431129,524673435,1137545229,2135980872,-620337277,-2121362467,1553196168,-1789065090,-874183415,1412490363,-806585918,843424336,1968249273,-982753023,-398337329,1761169030,-1162905982,398603600,-435687103,-1627385017,-1181753630,168870829,407353969,286601848,717895947,1383049914,-2130589759,206717096,1696822247,-1050167230,-1587424807,2110942989,359506065,-119086053,-1994105799,-238482811,1795276180,-94767241,-879993676,1164396270,-1632204306,-1806026878,-797517747,351933711,906054640,1469679106,-1047689867,-705809529,-1368199512,-330154626,-842410235,1809969706,1185118939,1151459319,-777955440,1087557178,1654103837,-650699049,-1450740533,449013552,-1603096784,-499982151,727280130,1256330082,-1805360546,-1502662526,484990518,1419193689,-218792212,565461525,254829902,-1953613279,-624285877,281500976,1481708733,-759137145,-48185415,-1052582493,-1142003873,1971712976,1566958159,1721851613,-517005011,1834235205,-784488012,-1975893715,-857696194,-1490797448,946013648,-119808094,-1755634089,74787848,-952126191,889473796,-1718142970,756304146,1478122192,1469083698,1316880172,-485933951,723702935,144510053,-1314826157,-1173435675,-1595044301,-130826150,-2019030075,1308816980,-782663525,-252713583,-963795732,-2021515794,-298524531,1117359032,-969002086,-1634249490,900798190,825929130,590922147,2062653039,-1204334216,-1842102744,1164317236,2034058207,-750803510,-215803859,-1336406953,589493711,-44019489,-1671149842,-1690623795,1539987314,447572769,-682600547,801898131,152801896,-2041445190,-537432206,1359818277,-1168454011,-1766883315,1855679333,810698494,-486670222,-874290587,766158858,2016779959,-551935877,-2035674672,576542284,-384822558,801699681,872502988,1334710981,-687019844,-1195240662,1577958928,1672363442,1369380552,1563322193,-1347599327,-2110993241,1775044986,689080834,-984858764,1384429700,509198538,-107441675,-1257365973,1001327716,-1548037871,-24074766,1294685782,1121925903,2076540721,685733762,-920956788,-302904221,-1765122395,443338491,-584398919,-1610189333,-867381306,2116373101,-1376484952,-2032549267,221834534,1019988517,-1910335417,-1397133124,-469786412,-974944594,-2134748587,162382640,-1290832062,-1967453304,-651795244,176655097,-99138770,2083803475,-42016365,-1804075499,-2072886888,-2127288433,-2017416802,1089516248,-229814719,710281991,-594973723,-2124633778,-1908161012,1358484629,-1016024607,535429637,-1043142927,-787309274,1141813799,198440672,-709077292,671336286,1477140433,-1054941808,384294343,2091740119,2028637647,-490403417,1824015797,-1304085142,-827940325,-2110780142,221912968,143959103,-1800918516,-770051019,-117651466,1977996479,353343076,-1281580585,-274806830,-879916089,1850139415,366681277,693257167,2044427980,-1071205307,-1878357790,-732096400,-499555998,1914721183,1923172414,-836481656,1624528668,-1532990402,-1967109875,-1896999781,-1554832125,1505352884,-1786702930,119659384,-25426703,-1673966903,319576249,200740160,-1692751702,442584668,648194741,310426475,1811200370,-32199685,-1822143908,-929775377,-903113223,-1263428391,-1203690416,422212931,-562357612,-576409632,-687521589,-1846734375,-1227635948,-777463783,-857979854,1340693283,1241606842,541233285,-550704610,-19161714,-1960437140,-1286072095,-1180294410,-1397927455,155062983,241052226,1575355360,1432249950,1173407512,-1619768964,-1280077300,242744241,-1628723107,-23314663,458145945,1933550196,-1001170505,-1766157023,-125155702,-1654648955,-1110425792,-1357118209,18953360,-1091995435,610902929,1662793174,-1501040949,-663763277,2041875023,1982991713,1073786662,-1291551018,692777232,-395206015); -/*FRC*/Random.twister.import_mti(192); void (makeScript(14)); -/*FRC*/count=291; tryItOut("mathy3 = (function(x, y) { return ((Math.hypot((Math.expm1(Math.acosh(x)) >>> 0), ( - ((x + (Math.imul(x, x) >>> 0)) >>> 0))) >>> ( ! ( + (Math.fround(Math.pow(x, (x | 0))) - -Number.MIN_VALUE)))) + ( + Math.log10((( + Math.hypot(Math.fround(Math.asin(Math.fround(x))), Math.fround((Math.fround(( + x)) === (0/0 | 0))))) | 0)))); }); testMathyFunction(mathy3, [0x080000000, 42, 0x100000001, 0x0ffffffff, -0x0ffffffff, -Number.MIN_VALUE, -0x07fffffff, Number.MIN_VALUE, 1, 0x080000001, 0, -0x080000000, 1/0, 0x100000001, Number.MAX_VALUE, Math.PI, 0x07fffffff, -Number.MAX_VALUE, 0/0, -0x100000000, -0, -0x080000001, -1/0, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(462); void (makeScript(14)); -/*FRC*/count=292; tryItOut("mathy1 = (function(x, y) { return (((Math.min((Math.fround(Math.asin(((( - y) >>> 0) >= ( + (( + ( + (x >= -Number.MAX_VALUE))) && ( + Math.fround(mathy0((x | 0), Math.fround(-0x07fffffff))))))))) >>> 0), (((Math.abs((( ! (Math.fround(( - ((x >>> 0) << 0x080000001))) | 0)) | 0)) >= ( + (( ! ( ~ ( + ( + Math.acosh(( + y)))))) >>> 0))) >>> 0) >>> 0)) >>> 0) | ( + (( + Math.trunc(( + (Math.sign((x >>> 0)) >>> 0)))) & ( + Math.log10(((Math.exp(( + ( + Math.imul(Math.fround((( ~ y) | 0)), ( + y))))) || (Math.atan2(((0x100000001 >>> 0) < y), x) >>> 0)) >>> 0)))))) | 0); }); testMathyFunction(mathy1, [objectEmulatingUndefined(), -0, ({valueOf:function(){return 0;}}), [0], undefined, '/0/', (new Number(0)), (function(){return 0;}), '', '0', 0, ({toString:function(){return '0';}}), ({valueOf:function(){return '0';}}), /0/, false, null, (new Boolean(true)), NaN, true, (new String('')), [], '\\0', 0.1, 1, (new Boolean(false)), (new Number(-0))]); "); -/*FRC*/Random.twister.import_mta(2023839513,-165131601,-2067336131,-608862154,-203463365,1941184259,-1639942305,407872418,1638481970,347725180,-2134664980,-732642333,-1314642899,589022839,1616488522,1709092818,-742134549,834650834,-1924189394,-1552666872,-1562241829,-429112197,-458586283,1687891135,-1323148473,-975370260,-1897533076,1483031542,633494950,-385262006,618327725,2019937343,-572183326,-1558517177,-692024244,-2020973645,-1495175700,-1349390531,1343867371,576647469,-462816144,865259491,-1994142261,1448314969,-611976032,-1026002068,1710548879,508708169,-848954444,-933026815,-584070604,711252240,-1027587682,-1485432323,-845785864,-502424489,-166428862,-1859197187,209012828,-992052759,-563879648,656569263,1835404580,1073354566,458416705,-716142652,1858010032,-305693631,751706121,-1549097023,306304344,1812047760,-1122231637,-228955467,725571872,-193237405,-1981811185,-1346222381,367033280,974221683,-1215488625,-1415213697,1735536970,852714808,-1207142232,498279338,-868896190,-1282675399,-611381078,1147337356,-955994074,-1697930922,1567981080,-1879215541,1951376043,1406278341,773176536,-1087649342,939206727,-397494175,-764021175,1466071496,-110053887,-398817429,-1216946070,1314732581,171665407,717740282,1431958331,-763389285,-1525353894,691359591,603261697,-1601283042,-1758430446,1219816853,1679743346,-1494492532,91492509,-1023107175,-458331569,-1227266025,-1275234107,1827021552,-2140878257,613919161,101549545,196867805,-260562360,938536324,-1166856487,-1009303509,-389878606,628635285,-645182319,-420409992,427676958,-1449237976,475014343,-102679217,1477045315,-1105122460,221864400,1256776356,-680794491,-1965716363,-1785056754,-2033129270,-1426879666,1683620605,733167680,1455422682,-854531198,-488993925,759097363,-871122831,-1452120176,1621675261,-298864278,1264853034,-1199684656,-680877526,1652730623,537320992,-1073224900,-1237663574,2008458804,1533090919,1489524734,-1439926662,-588900722,-2129701726,262661252,57974453,-1807192699,328276377,8206703,-1927870113,-179380087,254729862,-1166814726,-1000968845,1000243373,-698522991,50719678,2067284968,-1552643420,-729227718,-1806501226,-1281087140,-2068146827,432281687,1192968635,-458164668,-958990396,-1722882706,-1182831957,2146799267,-1347489398,-811400579,-1668986183,490116588,409053156,845811049,543821859,1058213315,-410024175,-443397719,1646052908,-668532002,-283934248,231104394,-1028409017,-675803477,-2007491032,-1461132285,-1620385241,1951352065,1770373153,-481003242,597593455,-636656414,862366626,370228004,-812524739,99244522,-835118148,800912335,883555756,-815088548,-1939737827,-694271588,-1674719739,-1603579731,1227910042,-1047856829,844941303,-1435175058,-2108433493,1251543619,1441317335,1220796258,834151474,-1158773217,-1518498315,289778912,760029745,1434546591,1516208103,35327168,-1536018849,1859552929,1278147634,263645106,-1615036303,-80091944,221374914,1660853552,1321336007,-1831097766,352108284,-1543415113,-1454030899,934138555,-705717221,-485209846,-2107252235,-1963804092,-1616383053,-304495227,1922219046,1621059661,298712207,-1022670171,-972892060,680219020,-2043993008,-2019688562,535813108,-2041910346,1890450132,1645427023,1463133070,-794967462,1670440788,1120553557,549000436,1434340361,-398812619,1245024900,1303445538,-609104539,1318783499,812484079,-1754886699,2087305597,1165932293,1290467476,-685647245,1928813641,1501614357,-616344924,342813488,527808029,388775434,709379684,-1902448019,1849877694,-974356677,1843180917,-836151453,1260173898,977608523,-1793629334,271307066,1613861109,-1454725324,-1283975323,-2019812841,378823856,636893748,-1564009513,253097396,-233476655,704685093,1064415611,1680020539,-79551724,-823514377,-1084647851,1134792263,-1748681653,-2015010282,-304422746,-1183205267,-266194455,266667096,1157154759,1555403181,-2016329627,-985107900,-175908763,1206888802,775144115,1473775221,-704533819,-670811551,-815617714,253172338,1073926617,1004492196,-162671376,-612633884,1945992444,-1310524561,1260420460,522208844,-635811388,1804877690,1565643526,-390906833,-1796538615,-154641696,-244574819,-63776983,958475638,-204272544,188642306,-262863745,-1099282525,1938972114,515471184,-1924284718,156606401,1925008304,-493869610,-780519300,-1680093476,-1322839079,884555148,639961099,1476137467,2074737033,53114913,-919081804,26024727,1677391088,1684788121,-1323635147,823178435,2084003016,-60158739,1688200030,898379824,-503941584,38433404,-1494750599,-1972620793,-1392346678,611310749,608854307,1019495194,-553073907,-1657073790,214898089,826357028,-967792320,-966118953,512415822,1553988487,1744376323,-495277655,410947998,-524975021,983178915,-182567094,-1866780527,-873382142,1125946144,1602623342,1814308426,1655082028,-2058007086,-261704257,491161529,171499706,-432222056,2082240112,-602791144,-789025316,-1781361191,1851274068,-343528070,-1972720472,1909214438,-792961731,382356808,-341948180,250568151,-1387786498,641083750,209570229,2058851546,1898964810,1818650238,1492828184,531462395,1967905130,2132745062,-2048718016,1430533068,-1631621093,828526747,14012627,901535913,-1973009391,-454244350,-805242232,-1181180268,-1376071460,-2002461751,-22026003,1330965388,-364768901,-560827437,-1764057430,1748964857,1017814421,1206861575,-1803756521,2036414933,-123073593,-1718586185,1376088264,857004724,-499625281,-1494154361,-1340240482,1247489767,-1545647396,-572819393,1266833363,1285830619,-1002806296,81328851,-1461982930,-2078152050,-828838123,-493016028,775449088,-1447809465,-2085411771,-1830053536,-527162718,1402676145,-613346773,-195133916,936327650,202136103,-846821076,-33494222,554713106,-1891855974,1427663749,-979050686,-964855572,-978665607,282436536,-1036177744,-1693051182,1741801335,591311859,99330387,-775041439,-305224666,1053240296,-204189405,624447153,549332137,1265824123,447983237,-1016631686,-916136374,1710348749,-1634621784,1887428423,-678778255,-236264167,873971873,223114629,-517056561,1446262915,1825917344,332927149,1679225272,904410622,295884430,768806371,1100706168,-1165754497,-489160573,-320494586,-1910877791,984586677,1054443101,-1150179983,-1349546419,1844674117,-924215313,2114536709,302904513,324010042,409180095,340344757,-384690933,310558382,1629891783,-1962759143,-82193903,-1926894655,-1370878694,525273802,657859666,-546596645,1090732391,1362675192,-891164853,1326553025,1707816207,1914041819,-2010044527,510272347,725842541,605634626,204658685,1396148314,-1784718425,350410990,-1734376704,703717982,-1576844081,-359982363,-1157848641,2035180629,619074698,1318357543,-730322021,-953857760,-343461426,-1285859370,835234098,-1595816366,-159435431,776254940,202465571,-559544945,-1797950324,1365917278,285430766,-728467500,-681127226,-457167039,81169029,97904879,-1572593690,168169437,-420689981,1516251982,-2142984474,625075753,-844313983,-1985513732,-2014242910,-1463380505,1441122674,995207567,-1003493563,-1713002192,1585166978,1151317197,739118939,-1252847944,-1350954013,1136652586); -/*FRC*/Random.twister.import_mti(244); void (makeScript(14)); -/*FRC*/count=293; tryItOut("while(( /x/g ) && 0){v0 = evalcx(\"v1 = evaluate(\\\"undefined\\\", ({ global: g0, fileName: 'evaluate.js', lineNumber: 42, newContext: false, isRunOnce: (x % 29 == 25), noScriptRval: (x % 10 == 0), catchTermination: false, saveFrameChain: false, elementProperty: s1, sourceMapURL: s2 }));\", g2);print(x); }"); -/*FRC*/Random.twister.import_mti(348); void (makeScript(14)); -/*FRC*/count=294; tryItOut("mathy2 = (function(x, y) { return Math.atan2((( ~ (((Math.atan2((Math.sinh((x ? 0x080000000 : y)) >>> 0), (Math.atan2((0x0ffffffff | 0), (x >>> 0)) >>> 0)) >>> 0) - ((( ! (Math.max(Math.fround(x), Math.fround(x)) <= ( ! 0x07fffffff))) >>> 0) | 0)) | 0)) | 0), mathy1((Math.imul((Math.imul(Math.PI, (x ? y : (((0x080000000 | 0) <= (x | 0)) | 0))) >>> 0), Math.sinh(Math.atanh(y))) >>> 0), ((Math.imul(x, y) | 0) === Math.imul((Math.abs((0x080000001 >>> 0)) | 0), (y ^ x))))); }); "); -/*FRC*/Random.twister.import_mta(678471567,1986638603,1236606086,-995269791,-602473404,1226852477,-786637229,1008448944,991812506,-969841354,893968633,-548373881,-1810192285,1473627686,-795476416,-1466443980,-1200986822,1010665268,-1532745522,1489144355,567258592,-1472110507,-1262276114,-306332874,4722650,-1037585052,-1672211388,262646122,1052528543,760813329,-651812688,-220154519,410888224,-21834753,-1265257902,-1191797876,1152052201,-2134370100,1486591348,620671856,727687106,-1820980243,1600748045,200595254,1829892099,-1857726526,-418482895,1255447460,-1513889081,1899666913,544847330,1585396649,1330689889,865016240,1991315183,1248358202,-783674510,1938226311,822200378,-1948436334,446264192,-1892968442,-1308107905,470096438,-737694961,940283476,1168711556,301847304,503807381,555745109,178933341,-1066827123,1952012690,754881861,1537149993,1148665711,-1662196866,2045044564,1714969305,608124319,2093480958,971126338,-1162414016,-1042463637,89900550,1790897914,83305899,1763668614,-890596248,-1482444131,-2080555074,-1943563480,-1328651270,1251692493,861051384,-2048833780,-16660925,-1855060147,1985937092,74200543,1551762694,-1447251464,546536006,-1514431737,-550081057,321491642,1081837560,1979749888,1984562558,-1759459756,-582503212,1255087087,-1957611299,743045886,-563317274,937739754,-1028119769,914103479,-2041719557,411817179,-413382043,-532142060,1023533059,-2088141955,136579705,1399499873,-115043716,-1498564724,730311045,1404800450,151647699,1081521912,-956768752,1424179544,625786431,543925039,118956473,-1288285436,-1877992570,-458321808,851679313,117948816,-1611166163,1348813598,814207715,-992524122,2043145680,1805665274,1347687632,-1168757139,1185710120,-295573970,-1771261849,-577097705,-1403949859,1289397367,-48895724,-570044994,1999679163,2098793775,-524813044,324024241,-1658420015,-1907753852,1146251935,1559066440,1809032759,1835494040,1143930565,-1533875188,261504400,572049229,-358151586,454926732,-827711672,-1300933115,-1147505614,-274917530,346089241,-2002341030,-272540024,1549300617,-1680350263,-478039792,-686343407,-1421417235,319425352,1859070401,390504073,254661118,315618772,1359094220,-2130498316,1386468048,-330910491,868757715,-927546798,465967590,545207406,1134518543,535917736,489914396,1420411327,1583049224,1648433535,-1374029358,-300647196,-750093072,638946994,-1855650001,478348427,940952218,-678080093,-1988049515,1155249186,1363990126,1273595832,-131098179,184259844,216535341,-1260184767,130608979,1335306591,-1831972326,-140107187,-2006540739,-1922484206,841242969,1373433125,-1769122345,-1344126033,185117593,-2145562380,-1249580130,-2049541682,-80017218,-754246015,-311837197,588533625,669415511,1941186967,-934679463,753411300,1943802655,1956598084,722077961,-351632845,-1779916084,-1454578123,1072863774,64899257,643789251,-973289795,176350371,1916492550,2015673214,472275337,1733193228,-74620860,1375991646,1975176827,2033687915,2049491470,-145386181,-247317431,-2136877743,1636298322,-41625916,2089966064,639640606,-1565273137,-50348389,700990031,-2079385341,512832354,-1495895825,854876710,1871599640,1566199410,923159051,-1685178936,1563156264,1646693911,-1602068264,-873764494,559759936,946515529,-1215525307,-365866684,-1797301394,-1462416293,709009109,-1187650436,-686626383,-155090071,-1515153720,124420895,-1204677701,538614902,-1047428665,23018519,296253873,-758819650,-1753547653,1824572518,-125988048,1394495424,-952535876,-704324569,78308142,-1538057906,-2123236996,1614110543,1289932086,-1072756189,-565196814,1729563120,1497072234,-949116560,-1573552416,-1024429319,1960338210,635650363,856237198,400453423,-582499322,969745493,-1576820574,1863895565,-666235462,928101885,-1664820012,1707401961,-2049971439,-1759953365,834176850,743708008,1779813597,-802223358,-369819137,-813652461,-1113874089,-1175088020,1885114562,-2072741622,1934063892,2134540412,-1596471460,1497493543,552487633,-1196453627,1704588043,714347039,2027773716,-1019377350,605522595,2125900064,2093214318,1860067195,1806299352,-2019652093,1579717455,-1042998978,-536413454,-274283073,-1443258954,-1590580623,-1813927247,-1053666658,-432103228,1597634742,908135818,427112345,1083787272,1525174545,954796270,-138688253,-2026391269,-1271039768,477529277,1869383733,143466694,-733534024,-644997298,130805994,1187894467,-702262212,1630681801,-758063857,-1556272459,695487021,907909936,1177251664,1529388335,742544294,-833242330,2024555984,1494679925,-383280676,1636469264,92241921,2015809041,-51850812,1693797945,-146960908,931705785,1922767726,-1601949009,-350273899,824433175,1270109467,-1691847714,34903579,-682642234,1413494372,-971786722,1792364159,1933687876,2126588539,-1223606319,1676711110,-286518772,-755770669,522006865,517630395,325147682,1032935991,838362404,1968158450,-2025309300,695694242,1468141506,-349393018,-1762501993,1646060209,1836099606,-1532353703,-1023665473,783404517,-2071050992,381063568,2038464079,1775969739,2111485063,-732759631,-1675257434,911080856,-1955817742,87649011,624242873,77159112,908049119,285525643,247440537,-1373647986,598378788,-24303469,-215085851,1576387575,1564970447,1406906167,-495186936,1460842716,625645495,-1509625178,-838634150,-1598323134,-917829941,1535062669,-917501743,-696146397,-1587553344,1107865965,-226431127,1039940428,1664931625,1744592081,-299243,934335661,840551037,-162824299,-849219532,1513720458,-951937985,1931713179,-1180855037,-1404620789,83122281,774613099,-134584846,797226950,-1204293383,-252984320,-1857892523,1228205838,113075938,2110241007,1035816451,-633538035,1455962070,-729335542,420445103,1431500274,270929287,212919406,-1501060847,2137824215,-1164926320,278975553,-2000233101,672500222,1343622404,-1867311697,1317928026,-386982991,1255393546,1598803177,562228944,-1762437449,761562081,-157196660,-1837896628,1312869105,136466507,1493519559,-1831372399,543966100,-1034130280,-1912147028,2069548934,1701335269,1521115318,1754868665,1628780316,-573739453,-556419232,-1957964544,-2069978638,87602716,-2007896111,982523701,504009260,437304311,-512525823,-578035699,161666697,1304719645,2139883985,-1831571073,-1242756220,983639187,-2098785233,1315695363,-1806918129,-347930635,-964465487,1153690473,-740955094,1130273259,853664868,-899125644,-2071843838,-2029650976,-706935548,1116319265,1817659512,393575104,1684900939,496626533,619034491,-1503579728,148731107,1632360757,-534029475,-1991507087,-897127125,1788815014,-1260367739,828441124,-1566768985,-1802476871,122382650,-1044903850,1824883557,-1031725150,-571803031,138105928,-228780316,126171300,-1724822105,-260695589,227667916,-19151016,1043442239,632953001,-1957107496,-1903443989,1471697217,476788320,1925603066,-1410207881,-2121554804,-1559540666,-426129680,1530662442,507751382,1900450074,1867438918,-1020959987,1805253927,-1654807504,1144224571,-1952043281,-1126780795,-443392303,1775214194,-271581651,1179228012,-1923419767,-920332254,1098979955,-487069048,-1349893197,-174283064); -/*FRC*/Random.twister.import_mti(76); void (makeScript(14)); -/*FRC*/count=295; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return (mathy2((((( + Math.fround((( ! ( + Math.imul(( + x), ( + x)))) + mathy4((y >>> 0), 0x07fffffff)))) >= ( + ((Math.expm1((-0x080000001 | 0)) | 0) - ( + Math.hypot(( + -0x080000000), ( + Math.sinh(Math.PI))))))) >>> 0) <= ( + ( + Math.sin(Math.asin(Math.fround((((y | 0) ? x : (Math.min((x | 0), x) | 0)) | 0))))))), mathy0(Math.fround(( ! (((Math.pow((x | 0), (-Number.MAX_VALUE | 0)) | 0) + x) | 0))), ( + ( + (0x0ffffffff & Math.atan2(Math.fround((y < Math.fround(x))), Math.min(y, x))))))) | 0); }); testMathyFunction(mathy5, [-0x0ffffffff, 0x080000000, -Number.MIN_VALUE, -0x080000000, -0, 1, -0x080000001, Math.PI, 0x100000001, 0x100000000, 42, 0x080000001, -0x100000000, 1/0, Number.MIN_VALUE, 0x07fffffff, -0x07fffffff, 0, 0/0, 0x100000001, -Number.MAX_VALUE, Number.MAX_VALUE, 0x0ffffffff, -1/0]); "); -/*FRC*/Random.twister.import_mti(464); void (makeScript(14)); -/*FRC*/count=296; tryItOut("mathy4 = (function(x, y) { return mathy0(( + Math.fround(Math.pow((Math.sinh(Math.atanh((y >>> 0))) >>> 0), (Math.hypot((((Math.hypot(x, (y | 0)) | 0) | 0) >>> Math.min(Math.min(y, Math.max(Math.fround(y), Math.fround(x))), Math.imul(x, x))), x) | 0)))), Math.hypot(Math.atan2((( - y) == ( ! x)), ((( - (x & x)) >>> 0) != x)), ( + mathy2(( + ( + mathy0(Math.fround(x), Math.fround(Math.cos(mathy0(x, x)))))), ( + y))))); }); testMathyFunction(mathy4, /*MARR*/[(-1/0), /x/g , \"\" , /x/g , /x/g , (-1/0), /x/g , \"\" , \"\" , (-1/0), /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , /x/g , \"\" , (-1/0), /x/g , (-1/0), \"\" , (-1/0), (-1/0), \"\" , /x/g , /x/g , /x/g , /x/g ]); "); -/*FRC*/Random.twister.import_mta(-81041361,-839051361,-623604865,1802829347,-2051122448,1299058226,989369569,-357343175,344981794,-1321739315,371506995,941283963,1523136772,1677634107,-815556540,1579263110,-1991149732,1175593475,863650768,2050136207,-26624847,614511244,-1043340726,601133867,-805320514,-1663446799,1489954276,-1735590229,-1664784523,285362799,-780103857,963732194,555344556,1933421195,200884740,275868333,-1768532239,240199691,2131751342,-1325011784,1380954006,-670187460,-2123092341,-1187587762,1898108334,-2091602036,414251349,1606137869,2108712841,644949865,1029422073,-1147567716,1022540897,-1496748704,321621314,966905650,-294360571,-1231081581,641996141,-1279159981,-189021978,-1644257641,323289300,-523187601,-1099315422,1975926558,766803507,806354099,1199847983,1021710771,1886877522,559128132,1177023148,1648791784,443348136,1283375314,-1905091389,-1746360577,-399771335,1503633710,-485854156,720087181,-872425321,-1259955050,-130119863,-1052071808,-204657284,1448530095,1933900946,-306597932,1122472445,1984731542,197096139,908983098,-1161342081,375625726,1090354220,840667244,-1652306734,1408809580,694359807,-1972025554,-585282934,571785018,1352381170,1970222606,723928711,932570833,-1390951877,298795453,1191157688,-1946093328,-555606004,119780109,199520241,686273763,-1933884706,1925267731,-1616997448,-168994556,1369897690,1367021161,-1247244672,733735791,583928483,1926398927,1534364557,-1781651238,-1156923536,-1109390942,-496551964,-1384473436,288059178,-288964827,-745078274,-233174086,2022579870,-1782226048,-1400701096,1260562935,-2028125894,-1815363115,-530362786,-1143257445,1013003903,1727221023,-727491588,-173938075,-1920896672,781332745,1220344518,1089116563,1109959504,-176086494,2105734859,1893801865,-78743344,164763767,1627871993,1956124143,58017581,-725259428,1975851558,826928100,-1426810970,736401444,-479285176,-107585124,2115911294,1354654728,-328638670,684355146,1768646589,-2127282668,-923832514,1015472940,-1746546450,1511309346,-824855418,494897634,1136974238,-1518189793,-748824529,1712541678,-874468461,-2009264654,-1029003430,1344987193,-629402986,22851234,-623114750,117747422,-262101809,1599992694,-847427718,-629102991,1943185100,897942174,866117760,-2123168321,1495372111,-1355323808,1575742462,64606999,-1769514907,-738102732,-1891829624,137808243,-1879467874,-1508924544,1933852171,1910995715,-1236193486,-13599199,1821708300,-1370297037,432655492,-1594911661,-156031429,1823916882,-1666887654,865719801,-1069289169,-1554334838,1070339401,-381755462,897989307,1254993506,1605569963,338500215,-1208476880,-2052001142,397179901,2014554118,-1758534554,-467845443,1586214379,-559536048,-1293855089,-98853616,-556602168,-1726510538,-20505130,-1289822210,-895510952,-1611156970,818334185,868712308,2069495683,1495824073,-1443652843,1946753855,1083183743,1641236583,-1533107436,199162734,581270889,-330940563,1349556557,-2100546226,-693185311,921510659,-1294790417,2000680970,-687246724,265029255,-1882748966,738624366,-887238093,153450419,1581364956,-1127332778,408654802,1475895524,-707252059,617240218,297143141,334929088,957486150,825599621,-933461260,-1154450794,702611294,-1954423108,-432959821,-1552289130,823092910,-2119997372,-678350048,-567863770,754529754,-1562168036,-2025325799,-807661736,1658304471,-1657156737,-1174951759,544881001,-1735135624,-1618944904,-208003857,856579831,-1630859728,-132972816,-1412010137,-2119901479,2047023984,285256440,1757337882,-640265168,-195141592,288135217,-415511013,1254234290,963720022,13596778,-1054576927,1632715077,659957478,-204473496,1279380139,826164029,266798521,-769983644,481849967,1483599399,1123641917,-941112538,-1504689677,532488363,745984336,-1150192807,-293571751,-106796723,1867097464,-1153578865,-1110632692,1860704825,1643301072,539673562,-1058614407,1461626311,1355414658,-1904116133,191036825,-1610361978,-444155222,-1542540778,-670792738,821556957,-1065377227,-1366510733,1320954949,2062176016,1590517076,-2075005984,-2088633195,1275111558,-1733401400,-1947428620,416958045,-209875615,-2112260413,-1772761954,-1053184677,1695718079,-1680159632,-410752907,-522939977,-1879068155,-1597259682,-1445782164,1186982171,1625277355,-371888622,794043710,-201237157,312624818,-1747358958,-325691499,-238570943,1470194327,472256558,-1196719963,-1279507767,1242919143,-1660307372,-1290430091,475221721,-1200123921,709305980,-1981734898,-1619499412,-179332709,-558056433,38280342,-448965523,-654666788,1477389122,-220457118,607119811,-157612068,-671812369,-1401219564,-1730664159,-141018831,-1808457622,-1354500597,1679498955,1871659645,1804039681,333598785,-1550133359,-1467302808,1931688758,907937142,956067968,2092180448,-2054913559,-2120683860,1747712624,1024203468,201756166,-440982834,1010117775,-1268779708,-1718667475,1669745206,-1399620698,156258863,672716022,-1559162970,108064672,1731868943,1049533816,77871597,1584995840,-1122736090,1939888523,-49649670,1526264281,-1049611722,162989999,-1427636093,-285386624,-1382688521,1761642539,1194415548,-1207173766,-1039180725,559797818,-1371093293,2003418409,579460988,454617840,-100849347,-189616934,1074416148,840664242,-1488380743,1227730434,-56116216,1873855929,1300876472,-1180200195,-490957394,129412778,711312721,615988865,210730520,-474926562,848526897,1069512061,1849218127,-1689148353,-777035468,-2264676,1797472668,-200454434,-490922646,123973757,-914201007,-1317600850,-1036254981,1770014003,-1621380713,1505667493,1488171019,219156986,-451851508,-231952215,-1350791044,-563752462,-346165155,794308639,1828109979,-1896652691,-363365627,-676700227,840437591,-2106102292,-9352612,-1244536698,401504594,-1715602281,-542316174,746452941,419715083,643540208,2112502689,-1551181762,2002826427,-1002500933,-1670358103,-456487743,1631348107,-823762610,-1098371490,1834599475,-1139321761,-2031748738,-1660984720,2118533,209567245,-1340525186,-928657486,-1095833036,-1265015495,1319319860,897029789,-716714325,110250596,-1322367657,-840098674,2120905032,756757402,-1684470583,-1228784858,-1945313530,595292510,1170690468,-1385046414,-1451330123,921251384,-1131898146,-1732464969,1426149215,-601668917,1808320255,-876665041,1247920556,-494586063,-884796929,-1370446568,1034864033,1564017816,911726270,-724488838,-1576959637,-877378461,-1142718644,751523976,-774682099,1166110915,1489223173,1783133616,-1961577184,1461884436,-597373275,1140417626,1407677685,-1563450916,153014007,942148557,1480946780,-1387589491,-1282445760,-1731255513,650806271,-1644384826,961543053,2115066239,1799068301,-1564380348,-1141021331,-592195860,-1295903866,1528355343,1726847853,1663748849,-795001992,-28029193,-1560084609,269447419,-500687847,1050279581,2099980922,-1359062162,-1867501039,-900747649,538579437,-1202665423,1545127494,-1717609906,495162201,-1350949985,-617530826,1230877464,-1150997285,310952502,1136299495,795338081,-1921607558,1992828899,-940419508,-1296301808,-615300007,-1243419033,-311210977,1722833802,-1003197217,275852553,2022068210,27283621); -/*FRC*/Random.twister.import_mti(248); void (makeScript(14)); -/*FRC*/count=297; tryItOut("yagqvp;h2.getOwnPropertyNames = f0;"); -/*FRC*/Random.twister.import_mti(289); void (makeScript(14)); -/*FRC*/count=298; tryItOut("\"use strict\"; a2 = this.r0.exec(s1);"); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=299; tryItOut("\"use strict\"; a1.valueOf = (arguments.callee.caller.caller).call;"); -/*FRC*/Random.twister.import_mti(326); void (makeScript(14)); -/*FRC*/count=300; tryItOut("M:if(x = Proxy.create((function handlerFactory() {return {getOwnPropertyDescriptor: function(){}, getPropertyDescriptor: function(){}, defineProperty: function() { throw 3; }, getOwnPropertyNames: function() { return []; }, delete: function() { return true; }, fix: mathy0, has: function() { throw 3; }, hasOwn: function() { return false; }, get: function() { return undefined }, set: function(receiver, name, val) { x[name] = val; return true; }, iterate: function() { return (function() { for (var name in x) { yield name; } })(); }, enumerate: function() { var result = []; for (var name in x) { result.push(name); }; return result; }, keys: function() { return []; }, }; })(\"\\u704B\"), ({/*toXFun*/valueOf: (function() { for (var j=0;j<6;++j) { f2(j%2==1); } }) })\u000c)) { if ((eval).call(x, x)) let (kztsay, c = return e) { /*hhh*/function ptmedt({}){ /x/g ;}ptmedt((new RegExp(\"([^\\\\S\\\\D])|\\\\D.(\\\\1)+|\\u9fbd\", \"im\") >= true)); }} else {m1.toString = (function mcc_() { var psngcf = 0; return function() { ++psngcf; if (/*ICCD*/psngcf % 7 == 3) { dumpln('hit!'); Object.defineProperty(this, \"g0.v1\", { configurable: /x/ , enumerable: Math.pow( /x/g , x), get: function() { return false; } }); } else { dumpln('miss!'); try { m1.delete(s1); } catch(e0) { } try { v1 = g2.eval(\"v2.valueOf = (function() { for (var j=0;j<19;++j) { f0(j%3==0); } });\"); } catch(e1) { } (void schedulegc(g1)); } };})();r0 = /^/gm; }"); -/*FRC*/Random.twister.import_mta(655141068,-1402085854,510580908,653313211,-1876164411,1400901184,2758359,-762304080,1980457992,1177538348,709241833,1233093193,-948394049,1278655011,2096267778,-1489867713,1384848822,1788746462,-1844446738,-1631576569,786725542,-1520209716,1232738278,1339301423,-362266005,1617034484,1895427396,-346083350,1708548268,675790933,1061092167,-1138783504,-1446627403,769947124,841026095,-1808567289,-1189470763,17393071,472305585,928958923,-1861056456,-1441595887,-1584329891,577346318,-1059428880,-588788774,473787482,1227742107,665189276,-291117816,1526568306,2138706837,-781456645,1757941915,-1298783926,-648333068,-523306902,-785231719,2031440203,-1896919895,-1744980608,2075722968,237619537,370232723,-2042322041,-530429313,-863600066,57491253,1707552168,1066210563,986450547,128239575,1034696300,-293124022,346824280,-1584493629,-1127991313,1984751740,-1117736541,-833074298,-1487002363,1224348234,-1194437855,-495697146,-1457049071,-929982704,807393395,1344420730,-1450744195,-1580871292,1670773952,-1849223104,-33048943,1984408009,-464692349,-31756316,-229623701,563730038,84599725,55204813,-278013806,-1188758792,1662144714,-1438993259,-976826021,961180442,-1792263451,373206357,239335795,251803665,520365171,1227535606,-1485614344,1064328985,-98836971,-1033720364,2081967103,-351943395,466274569,-1506468829,255661493,2005762931,1891766583,243944688,1017025352,-1265457508,110799456,-308516154,-1772762269,-811765306,-500946069,104238753,-1692632624,-1131655596,2141147065,-848737768,-955273906,673910500,-779954242,-1743281068,1714383635,-63080407,-409050420,-2097186236,117491746,-2094016437,-718181419,-95935890,1459422956,1902064188,1700708061,1255970647,-243288514,-1381496298,1140656170,-152818281,1940986364,-1809459198,-25313616,-1360673289,-21784364,-656208776,-753880687,-1365691233,2033783962,-530312663,961167373,667722042,1108821940,-1121969479,55025969,1910099364,1130593104,932234090,-57880502,49030784,1428319196,2133831199,-470494084,-1838349681,319206007,-697508041,-285930959,-2051596645,974118790,175032608,1406972807,-1765577690,-1675781699,-1616113529,412781920,-942310955,209990474,-165439291,169651472,-622089191,181252532,-68687783,-1490498403,-2001513982,-1184503714,-28981266,1387001643,-1303311104,-766480085,461814274,1150062120,444555030,-58854817,1000052204,-391725498,-1605518526,-199733767,904922593,-1589239001,-1047364040,-4760299,631469454,-991469383,-721294252,1965470788,1415185495,924649039,47896228,619594452,-1152523664,616990612,-1847746874,1064559558,93508916,1680391678,1123192292,1871305283,196961508,966133297,-2142892510,1769790212,-365023119,879905985,-1475227173,12418872,59837673,-21167168,935646874,627426261,1399074245,-2027707971,-1975503432,285211511,-997496141,-1395121297,1395194763,-914298856,1656143054,-1364176291,-309563705,-2022936772,-837941442,-1116106665,1536814362,-275098454,-1304415609,-273905662,-1835096853,-538454477,465898588,1633519740,764727806,2005464343,-1900949453,1007597861,-1929925607,-149161048,-1344682793,457765078,-1233760527,-413226136,1182048081,-18321400,-179983487,894447056,-429498651,-593766486,182357996,-2138134062,563274268,-1908475765,-63624176,346722251,1481987004,123787037,1559228116,-2020848173,619047178,-1795593643,-1607186129,-155666072,914750799,1214556651,-580286268,772331502,466196800,-578292549,1881649283,-1349109809,-1067369445,-958914822,-1828632184,1678850130,-1025416395,871022529,62023107,-1376740535,749158872,1346733903,270393810,1214628345,1883172787,-1474238988,19915547,-137348984,2058774912,-686419370,621064579,-1800957510,-1115756948,549042782,625821876,1878186610,1965635682,780844518,730748968,-594282653,-494344103,-1834419763,1353020149,-511801902,805126171,1497355547,503876507,-839402203,-763420588,1546297894,-1600027156,-83612450,1762235484,-198032088,1665094746,-1224816446,-906661646,-1060854378,-1027066443,-1981316844,704382154,-273375434,1318946294,-1449319035,-294446833,1136706267,1316612641,473577531,-1482996729,-2042385321,1050397500,-1012206748,-596659834,1927094449,-1890741481,583668212,-1208253725,-703138574,-44594064,709396801,-505684772,-1377685263,-168486754,940446053,1857162068,-1516303294,278192065,1601178498,1307443261,1941527834,-1285060537,1747439790,-252091750,1852291474,697470823,1573944144,-2043469137,-1435917160,914696108,63663675,-820203819,1726525297,-377397923,-782412969,1866478736,1220003349,-2005123218,215826564,243145442,1423027594,-2142842989,-1645542824,-1444002743,1556367701,-133984819,2024001238,1111359982,357467748,-1295383407,1579915028,709701148,-1915982179,-2140954115,-1577713289,-2091877045,-2028401021,2022821490,-391801437,203418131,-399491714,-840984788,-506981637,1927800788,-110069991,-1356049011,602234406,1185389904,-1546024237,-1855453445,-1324149158,1540079764,-2128219329,-750682785,621912575,142484060,-1631024961,7112138,357047546,2090143791,1307496102,-2000031403,-362731222,695178355,-157727094,1763920633,-1403708755,1739844946,-1930361582,-967693153,-1442247218,692777708,875281031,1160426923,1704456254,2099609511,-933317785,186584386,904837856,-683224014,-1501370242,-324558171,-1688175962,2007571348,606831532,-1947316057,97956837,-815424817,-142223011,-1548564044,-42928323,327402365,-493386462,1863402425,-1323644291,-1763802112,578188606,322535673,-545308871,-166997366,362471013,1789197690,1487630122,1219392602,-288848448,-384672681,-2134337791,263348361,-987697963,-1328202038,-144489299,-1342627668,-2098774420,-369494530,1653792110,-825022940,1291000685,-165655202,-798924295,1101004949,-41848232,1921574396,698543080,836647729,1624192859,645791656,1100739562,-849429579,-395942546,999923536,-157122793,1699941940,363048458,869908332,118572179,-389773861,-605227996,-989941396,1788500018,1306653512,1057105654,-290184233,1389828758,389274865,506301063,1230588788,-1736777007,1848419121,862885297,772384187,-1500007844,-1175640482,-2054369211,-254473495,-1719632218,1978454082,1376771436,-1894567013,975154913,-1645081270,1265202894,1445039254,-1519908809,1537798788,-1237912927,456977192,-966702392,-1306070400,-1924228412,1745791386,-363416352,-412719023,198298360,1960390957,1598140127,-427635316,-681784634,-2124265275,-1259518947,592047124,-1418888629,1410853391,450460355,1555402635,1973010577,2060282536,-1283222919,-321804157,-1312402174,646183802,-334159515,-669974778,-325948221,-281444382,479875518,178869430,-868850858,1279839245,-1879304022,1126294191,1610431572,1835739116,-2144665991,446810904,-1157810183,-1237039790,252088736,-1374866965,-658940776,186858500,224442660,-624845214,1225383046,476021961,-1601917100,122051877,24701840,-481480344,1694173211,-1007791150,-113592903,-272144362,-536368572,-939028135,1949959757,-607507152,78274854,-882070730,1037879848,1855757459,311804340,1302237876,1892454383,-1452185181,1170924867,1171829320,1172114025,-1193678709,506235022,1521191048,1884931536,-1025833167); -/*FRC*/Random.twister.import_mti(515); void (makeScript(14)); -/*FRC*/count=301; tryItOut("testMathyFunction(mathy5, [0, -0x100000000, 0x0ffffffff, 1, 0x100000000, -Number.MIN_VALUE, 0x100000001, 1/0, Math.PI, -0x080000001, Number.MIN_VALUE, 0x080000000, -0x07fffffff, -Number.MAX_VALUE, 0x080000001, -0x0ffffffff, Number.MAX_VALUE, 0/0, -0x080000000, -0, 0x07fffffff, 42, -1/0, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(547); void (makeScript(14)); -/*FRC*/count=302; tryItOut("mathy5 = (function(x, y) { return Math.hypot(Math.fround(Math.pow(Math.max((( ! y) | 0), Math.pow(Math.hypot(x, y), ( + mathy2(( + y), ( + (mathy2(((mathy2((y | 0), (0x080000001 | 0)) | 0) | 0), (y | 0)) | 0)))))), Math.fround(mathy2(Math.fround(((Math.PI | Math.fround((Math.fround(y) >> Math.fround(0x100000001)))) ? ( + Math.min((x >>> 0), ( + y))) : (( ~ y) >>> 0))), Math.fround(x))))), Math.fround(Math.atanh((((Math.min(x, ((( + Math.fround(y)) >>> 0) ? Math.cbrt(y) : x)) >>> 0) + (y >>> 0)) >>> 0)))); }); "); -/*FRC*/Random.twister.import_mta(2037832577,125872707,34401772,-1648103367,1740512706,-842262978,-1458644149,-420564900,-1963351073,-789582722,1169488950,-1038668330,-1121063904,725075813,945521233,929962447,520233843,-2067033494,1443569185,-159106012,-1847474899,-475789968,-965512774,1150878793,2083460201,-800273444,-126877479,-1826413907,-3360991,2145892965,-1323069195,-301009629,274048938,599899931,41487399,1956030575,-2109226340,373171256,1374071141,764995043,-998249077,1460190670,1364740173,891629058,317126082,66091147,894938183,-105655068,507340535,-1679324109,-812190740,501767951,-1965075008,-1782966857,-1426083611,-630296069,-656708993,-777411843,-615144672,778644222,16383435,1447225104,-1726014636,-1346085892,1048527314,-1061050015,874089952,-1450972046,-244899382,-1606076854,288654227,453028051,-131711254,-1110190479,712850570,974806037,1755690819,1697606956,138241658,2076010528,-224162523,-1491473295,1644405114,316937966,-1841096446,-727874941,1119215815,-715100981,407674008,-1627227232,-504246153,1724120214,-308738894,1846473163,-807892680,390326343,-13251689,426442597,1901357255,1428435239,-1841210536,1031418632,2050336715,730511755,486881560,1847582709,-1600191607,-1215584370,-1353213978,-163211843,48801235,1377983126,200156390,1281571515,1521011130,296151607,-908501915,-1051821487,-1177845342,-645431658,1242231997,2055556192,-1011116268,1960120726,1470668806,2085581766,-663087436,-2131406856,1895654418,-164155411,-1823818501,-1779114439,812287003,-710311246,146604215,-988781317,-302472916,-1387414630,-1126246205,1939831792,-755311479,566291466,-831746375,2040515312,91050416,-1191611397,721788321,-837383359,1661430682,496049424,-1487269796,-18968105,-453838965,-324002095,-898363506,-1819396066,-311131056,1961825696,-1163697399,538469045,-1963766864,668738257,1327915605,-932065712,-1972152865,1858136722,1207024274,1003673881,-617795064,-1389190954,1109494906,-1842204719,-149305034,-1887421145,1744169018,-964422517,2123339990,-580385027,1057443450,-871253926,-1198027790,574903953,-1751387233,-755239063,1175881279,-283388600,1711968767,1462534776,-864062588,-156208823,212224359,1229228037,202657110,-1648948720,-1084335401,1208377854,2117786257,-2087384553,1476799944,-63546501,2019868370,-249192230,-93997080,-1797554095,-1909649709,-612568403,-487012451,1194451892,-1781900369,1080645998,-1947406191,-407963899,144447769,-1267242140,240493455,-196681759,525281395,-877162644,-1007575159,1062846305,-151191364,-950322799,-1179352103,207333860,1192065456,574260762,-902444974,651111010,88719577,806925075,-1128614197,-915259332,-938302388,751659148,-422725811,-28848547,2096645273,-2038076791,1326937572,-42773572,-1275596338,117769137,1821143682,-1799851450,879834199,-862814688,-1281087752,1083607113,1491665142,152555730,-1274689197,1492082789,-1592289861,1981847848,2095949073,-1132822337,417380858,1989666817,-2084437074,664309247,-471263609,1974421542,-1529787707,1958517082,1541186070,1632136539,995265820,1723017183,-916921080,-1772641280,-1437185839,1768622102,-854316481,2029245484,2072003395,1838297923,1641378628,-253572120,-29214192,-797490392,1065454106,-994944208,-1627310579,-660849002,-2124360717,1161981882,1349762294,-744224015,2053656270,61325317,-2118931306,-1531848732,-1833738780,-1485993963,1620146234,-1975812738,1645180978,-1408342087,901016753,-1356704483,-1338565935,-1648986616,-620678005,-429515653,-1676196866,1800497415,842910948,-2136272628,526511412,-1560392123,-1976199984,498328697,-2100419985,-207645761,-579953630,-1518940997,1041611942,-169762163,-1084441148,-697231114,324388107,-464289773,-590806951,-177863862,1205177427,554218984,1199740285,-1514654111,133082937,1836120376,1045271967,-1438354826,-2041373946,1891880880,1188146731,-1612131057,951289199,-1216348287,-1003573372,-1273148757,626829969,884840617,32909505,-1269085686,-1245007745,-2083347658,-1474767685,1366659292,511702041,-1546009121,-1933984877,324755596,682717603,-274704081,-407139069,-46447089,403051445,1805806921,734043126,-1484838695,1600950382,-762026429,-1705148059,-869410658,-1015389351,1555626052,-315555164,-2086677389,-1556767324,-1519913792,120851656,-918444593,-2011914859,-453233402,-1259600114,-1509370889,717756602,-1248487811,798772968,-884280758,1397730832,-207052541,322260194,-1721275385,1284744429,-846151744,-1378249255,-1541704168,-1110637735,437432345,-1825350266,312365597,-800715481,-1383244299,-1776629912,713763708,-627918178,-9248849,-1777586074,-1317574284,-2000736170,1302150911,1605354397,813308410,278369286,-932324849,1763233379,-993629031,56317542,-1656966995,1385580030,688082357,-96648634,-102492562,-1911168423,93111264,772865843,-702382343,890007356,-1588709544,1118851014,-1958329240,787065448,-1747557581,-85526019,-38361445,849920354,697700801,-763990414,1921106526,1164391411,-693860866,-1231482137,2070056669,-1214648892,1581923215,1146505280,494928913,-1483164192,37230436,322261932,681755868,1764398996,1786756326,101250442,-121815860,-759125310,2044673333,-1266495688,-1077149360,-159772812,302645079,1990197100,1227400654,-1655521176,931281094,-1753039841,27090855,-1929525603,-756680388,124650133,-1249066126,287092688,826833354,-44964029,1560458290,1636617008,1746147555,-1178632695,-1908003085,-983492964,-742260970,475737921,-2098207639,-1374250678,-647178985,1115198162,-448859188,-931458874,396409592,220557421,-1356301572,-1993802238,884280943,1388368428,-1264172722,-904326389,981855704,-1417754435,524913776,752223807,-1184517985,917830925,2048987690,307223840,-1206809665,-1321322734,1428649400,1383804601,1009527324,-2127862599,1161886319,349585853,1963198128,1896179375,1462571362,-1018577668,525104111,2065020469,-349043526,-2058292930,590961831,938207392,1520593907,-901196473,-521642920,-1362283977,-330967420,-959541422,-402755075,-2120388175,2131782465,610917450,191165817,1050622238,-1549133523,-1953566553,620944230,1940428623,1539231372,1751809657,-1889756464,933755432,-369945575,1640572071,1403114087,-670554524,-1556972954,-2093822613,1187595712,-43608806,-1193662651,-1905915152,-1247213470,-1741300785,1028617291,-1678807710,811950191,-1119815341,-1704047301,-2124327033,1929303587,-877448929,40529921,115088936,-1320761207,1580310526,1441001724,1946019531,1160579543,560413114,-898653231,1827377367,-1395160879,2984091,1743453971,-1988362241,-1516907662,-606208969,1494549056,-417679433,449351698,-270869323,1197036037,652816173,1345510598,-1500680316,-1432188360,-327698859,793738742,389552295,-934997207,-879831559,-2128880554,653428933,-1346981675,-61011344,418371774,1553616489,-167694551,-1984149860,-976601141,1909995381,-1984566041,347645640,-1283995122,2144103053,126384384,-119063173,1667344711,-989127441,1366945037,-773101572,1523305880,1218375182,-863372015,-424680238,286957187,-702614376,1306208758,924947089,1171866679,-346032486,213345009,699101718,1176551719,956229949,685074541,-1745217913,-1622128288,-2133288527,-1372183168,-1829889989,1059153793); -/*FRC*/Random.twister.import_mti(247); void (makeScript(14)); -/*FRC*/count=303; tryItOut("\"use strict\"; /* no regression tests found */function x(x, e, this.e = a >>> z, x = (window.unwatch(\"replace\")), \u3056, eval, x, x, d, x, w = \"\\u5137\", eval, x, NaN, NaN = -22, c, e = 22, d, x = /(?:\\s|(?:\\b?))|[\\W\\d\\S\\D]^|((?!\\w))|(?=[\\x63-\u0bbc-\\w\\\u2bc2-\\u00dC]).{2}|\\W/yi, window, c, eval, eval, x, x = 15, window, b, x, x = \"\" , x = 15, NaN, eval = this, let, window = function ([y]) { }, x, eval, b, eval, w, eval = window, x, a, y, w, x = /x/g , x, x, y, x, c, b, c, NaN, this.x, x) { return null } /*MXX2*/o0.o2.o1.o1.g1.WeakMap.prototype.get = b1;"); -/*FRC*/Random.twister.import_mta(1963413310,850201618,1731894179,513537786,-2042248139,-383337271,-555757252,-1806056496,-564162759,1934348759,1304652455,-1040980436,77610681,-1402718853,-1265882818,-105285220,176403026,1567374862,-65887915,1542430528,231817426,-29703840,844990347,453568991,173664178,646564601,-83354549,-1831946747,-845128735,1962528963,-1039699880,-2120101594,-65092906,1253366061,-446770141,470826467,-1197048149,-1668214255,-249105749,-1768180759,2048896893,-551963756,-900623893,-444877372,-1490868122,1671178053,40346773,-1691961746,-211742029,679356111,-1865969398,2076326582,642685211,-649993864,-979770243,1444051997,445880952,1283756162,448039131,-195333175,-1717643140,612593977,1926351370,1826596933,1204732351,-737741472,886689102,861912525,1270706467,1108371836,-902284693,654497248,-1786829314,-1547990502,217896761,1045894597,-1649626944,-1788107214,-610651023,625656441,-245879487,-1219301664,760291536,-644736990,-418069908,249681110,2002901566,-1044888400,1684039669,-1305618070,636113119,-914321226,-1642947254,885485492,-58219183,1072818246,98660148,191200340,428320207,-69756912,2096798939,1236671371,-776907464,2087049383,-1569425662,-1471763820,1067967462,2032087738,-1243040425,-27699165,-2086177881,790809197,538339190,1772224427,1436785036,-1387264538,1230378805,-119446478,-1079554443,-612413039,451390539,-511640235,223118635,-740663360,-1763619660,1545257200,-1708764930,-1219536487,1667435644,2017826717,-1105573196,1865325354,1972495007,-1548504495,1037436512,1341610316,-1043889594,485334349,-1338046444,-1431244742,1438807313,-1167697866,-1863937070,-352271787,706266426,572844205,1641562191,288229941,-10730872,316140042,-710682632,1912613780,16784000,-392850071,-1741413764,-1938219782,-1460797149,753892194,-2106727437,-1967891438,1557049643,-93168803,-873981338,1981364422,950446463,-349288451,-817275561,-435285620,342123021,246263787,-811848710,74803962,1893177753,2110084009,837751527,-1007038306,-860662887,-851647314,-656784181,-2266828,-1434045060,760598470,-611470664,-99757687,-1804442401,-2122733665,-454736737,1261485500,1469025048,-654209709,-546083191,-409490789,69109803,-1393991673,1123080751,1352135719,-960812693,-1312748544,-2001838109,-52593099,2095133184,1343674582,1604154791,-1299240319,-829919631,388992627,41340969,1759402411,-454844424,-251760395,-1288937752,1069463172,128140647,1338099504,-820325664,-448016156,-1405809032,-1565399216,1155059650,-858364184,-688885219,1865583277,-1860301353,-222484881,-210024726,-1400797072,-1710981556,1040193757,-1153410613,-1310809048,1495450905,1030627770,77568320,313733248,786836574,1335059735,845738391,1014591091,1557224288,37534782,-1567010531,1592849632,2095657876,665535249,1860327753,1716501834,1580065117,1687052054,1269979477,2050342251,242828317,-1959396278,-811996592,-1231622830,1616432415,-988207763,1472577007,860087620,-1460987282,-270757312,-1392520281,-2085844063,1390009094,910789017,1670020441,-1681988578,-1076910128,-845355474,-178439683,-1121433784,-493632761,-1403312679,447431856,2106067773,-1250897990,-170112557,-638072414,-64163028,-1155123899,-1284764444,-1054945490,1800087105,-1078148506,-1967670859,683878755,94546714,-1616939411,-1781901943,-1083916126,936734413,-687235987,-569278566,-1092195177,-1381066467,1296856138,-851632786,1572295701,1454012194,-1169145490,1664470223,1796546409,-127329656,24046661,1743787786,850744663,866693794,-867740802,-371292542,62809036,-1649193208,-1148007065,-1345707597,2050799540,499875663,715531529,610857678,1610632973,-2019065009,-1720542274,387429551,2056719868,-1983024753,-867824319,341175936,1405358237,-647361096,1248718192,-2053458805,315737472,-587942465,-1319470052,-796115779,2065613589,1737414756,-1740861728,539037026,-1803789168,-1655362751,-100885275,1975456706,2083086661,1571991592,-585104748,-67336724,25053221,-1566943719,1643117693,756819775,-1059014843,1019137489,-1242975594,-978884328,-1778916798,1402252358,1142860486,413024323,164475698,-502568413,1614854363,-299486015,180762241,-143125049,-183513664,2092331140,-878814476,829090247,1654399421,572364117,-2035807400,-1311065041,-615077268,1917972996,181049312,1879383004,576713082,1670708481,-1959197374,-1402342834,2085402966,591643279,1221366680,358983766,-1881714490,1673531829,-298528222,-959503514,-1497240562,-915028478,-835421373,1147697044,1879771308,-1581207427,-1699488666,1782493080,1897650248,319361384,837589456,-202801679,-54738890,88387484,-270311750,-1397248983,648443282,-1365689987,434847731,-1207119172,-296766342,-1642840422,1986872823,-1412117495,-614007330,-87361624,574028044,1558731835,1791215176,-2046250216,1072214130,-1167534274,-346624902,1631777957,-1749578489,543682557,1779564206,-1995505484,1313974065,381168081,-1211256545,1118548432,365502621,1203683700,-2125814763,-535080993,1180724003,349814566,1872061288,-1842392911,-2063927454,1325846411,277064781,-1610433205,653406041,309716024,-260063451,62879506,1330326043,938175569,-1462831333,-1877540461,2115159993,1908377606,1770510893,600023375,-571064014,300381651,2086910038,1582171028,-1316420940,1780648117,840084512,1028472010,-90637624,17001853,-846221690,-1660695548,1436571755,-680347525,-549254773,-1015945560,-975934311,1413592710,-1206283982,-2007289948,245348312,1630597738,-465054535,-411730541,-1723075739,1054918497,-1667476711,1833161798,1078629140,-1285050895,-1726976150,-522653617,-66753291,-285169072,1666029641,761707057,-487649853,1590495659,1082632536,1527899716,-172685853,-1810134679,-1890020762,-363827462,1262727925,-1435451581,853875192,508051889,-757146550,-966281278,-475786377,-457321912,-2146042315,1351974434,-318301146,444977289,2110089453,1918399323,1466523728,1453871633,1151526373,-1939774241,-1096168290,1603404952,-630531839,-1062413174,-1306167965,1045300992,-456455549,-1542821853,-1659760709,-545912953,-1537221075,-682961946,-2062460862,-179029575,-2090164201,2105553777,-1337635254,446401412,-1351867081,2099703439,-1487264552,110543014,18467813,-1474279086,1631967221,-1252280905,351819906,1977267831,1323911529,-772121577,-99009704,-383938366,-574162063,1591256213,-1873041185,1338639777,1535769372,-26015516,1479582277,1644872322,-1837216773,1557063604,-1043696411,564839101,1931807155,793881296,1209622460,-1482278850,-647524578,-1423458424,-847391689,-548467090,442843156,535084859,1088515086,1391104317,-953399128,482072579,1670507790,377181823,323286954,-886546469,-1545764850,553726050,-1616178446,-1685623670,2101939504,1308696147,-548190467,-1507536104,-1056110552,-803349030,-147088971,1807683883,1605965767,1912704721,675112747,1376042523,-720297562,1063629414,-4356350,-75217290,-2107964189,-1621299093,2011060846,-1007256738,899848624,664598867,1953712596,-1803977218,889232915,1522717787,1418176422,1122758603,7384680,-779414120,1798392922,-1706144914,1359974313,-1749535692,-2021792812,634120694,-2104309848,298658462,-1927518301,-2136748387,-411663562,474652892,-662305751,1265581647); -/*FRC*/Random.twister.import_mti(186); void (makeScript(14)); -/*FRC*/count=304; tryItOut("v2 + g2;v1 = t1[16];function window(z, NaN)\"use asm\"; function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n {\n switch ((((i2)) >> ((0x24c63a12) / (-0x678dfd)))) {\n case -3:\n i2 = ((function ([y]) { })());\n break;\n case 0:\n d1 = (d1);\n break;\n case -1:\n d1 = (d0);\n break;\n case -1:\n d0 = (68719476736.0);\n break;\n }\n }\n d1 = (d0);\n i2 = (-0x8000000);\n d0 = (((-1.00390625)) / ((d1)));\n return (((i2)+(0xf6f85f12)))|0;\n }\n return f;window;"); -/*FRC*/Random.twister.import_mti(489); void (makeScript(14)); -/*FRC*/count=305; tryItOut("/*vLoop*/for (pmgvch = 0; pmgvch < 85; ++pmgvch) { z = pmgvch; t2 + ''; } "); -/*FRC*/Random.twister.import_mti(521); void (makeScript(14)); -/*FRC*/count=306; tryItOut("testMathyFunction(mathy4, [-0x07fffffff, 1, -0x080000001, -1/0, 0x07fffffff, -0x0ffffffff, 0x080000001, 42, 0, 0x100000000, -Number.MIN_VALUE, 0x100000001, -Number.MAX_VALUE, Math.PI, 0/0, Number.MIN_VALUE, 0x100000001, Number.MAX_VALUE, -0x100000000, 0x080000000, 0x0ffffffff, 1/0, -0, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(553); void (makeScript(14)); -/*FRC*/count=307; tryItOut("\"use strict\"; v1 = a0.reduce, reduceRight((function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var Infinity = stdlib.Infinity;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n {\n d0 = (-140737488355329.0);\n }\n switch (((((abs((0x630ac9f0))|0))) | (((0xffffffff) ? (0x548b4f0c) : (0xfd44b476))))) {\n case -1:\n (Float32ArrayView[(w) >> 2]) = ((d0));\n break;\n case -2:\n d0 = (d0);\n break;\n case -3:\n i1 = (((((((0xfd6876fc) ? (0xc44b2494) : (0xffffffff))-((0x0) <= (0x3d3e3544))) | ((imul((0x250ebfa1), (0x58e1811e))|0) % (((0xfdb87ff6))|0))) / (x == w))>>>((0x324d0e82)-(i1))));\n break;\n case 0:\n d0 = (Infinity);\n break;\n }\n return ((0x66bbb*(i1)))|0;\n }\n return f; }));function \u3056(w = delete x.x, x) { print((4277)); } a1.reverse(a2);"); -/*FRC*/Random.twister.import_mta(-356516872,1445543224,168383713,1976110207,1093419666,1237949708,-457844587,-271824720,1486981768,1369879030,-1091711604,-1388975500,619603563,-2128549567,-2045359258,1735860261,1918780220,-842914243,-335577928,956305435,-2055882866,728801120,-171036523,-1835303202,-1439974818,-828555180,1499523945,-1316406754,-171150993,-1764882125,41638211,1808155126,-1142153923,720207579,924574193,-1019485015,-1013348623,-1911641374,1080703386,1627230211,1619662401,-324807577,-759208023,1969470314,-88914107,1749343664,237775909,-1343024227,-86192151,-1599258722,-302637880,-197313557,1562343610,-1841063732,-775802978,-792753138,933576082,-399422236,-43316561,-45715830,-1586790154,192563493,-1842718665,1081551560,721426381,-1746712543,497328701,-378122203,-159740731,1666688097,-1863283624,-815006106,94139275,1735346801,242750873,4845496,730145139,276987486,752397424,955208986,1699328017,-902511759,1099618391,868282914,-199800934,-1566539147,-1073425897,389935056,-166312219,-1464860423,161935978,-1377418394,78560881,-406009041,82383463,-146427271,-1851181245,445902942,-675568910,-1405727673,396558937,440251236,-109961923,-1008408629,-1840979320,-1132993916,-667792619,65606721,-1229888788,903615786,-736361120,1842240342,-545244079,2109254806,1073762530,-1191092576,-1341008186,2020793211,-1423631217,236044283,1768166143,1837860649,396568800,-1346655015,-905508773,-1878972476,500767636,-705800173,1918937335,-1709409000,-2101119956,548069767,-179217786,-290566790,1029711650,-1886395372,-1437036298,-1085955886,1406056635,-219135566,-1257020087,691445276,1507025986,1106524703,-37719298,-418522735,1080420818,-977855972,-1602853433,-149483379,668512607,-1864653409,-494370870,395569698,-1202747751,-1789980149,880639795,171969245,429181373,916823215,-2053414964,382796928,1415394995,-851264548,188328735,667652458,-668944562,507991534,1091660100,1034638825,1574832710,-511569891,-184514506,1188262148,1028075596,-1665076195,1894065192,-434019056,-1262032063,-157377872,2007750529,-1301427282,2139698321,-1367830656,-1749713597,875123821,-1011053114,-355807836,1704307628,25861678,-2122550087,-2067864819,-42103283,-800212253,-481823529,1866728908,1736782950,585242668,484592051,-64250397,-1218995200,-1055371166,1136221889,-873587113,-184316235,-331312865,958325236,124867055,-1145742082,219252946,489993353,-1700152316,-160696832,1287398698,-387210468,118818965,-958347364,-451836875,60873346,1893879417,-10690793,479973783,1626729845,-1630855101,1242195172,-1786496241,-1922596098,1847027650,247885612,-7305550,1803426978,1130597938,1083180364,-205074758,1359825636,-660782436,-695028208,-1870307268,-1406421909,-1398112710,-296185039,-1201483092,-307613326,-601366713,-18483048,1575042249,189218704,967060475,-1889341174,1811554884,-1761509125,-840478858,-1781123331,-1337705159,168630391,119938887,-1888486511,370070644,472385750,1956332593,-231502892,1584860274,1092063418,1800669314,-2083399443,529394290,104063764,-2094253472,-1304954941,989738741,-1169778343,-1209604835,-813143823,345263096,1276479403,-1775817928,-558152184,695056053,-1383383655,1032855341,2129574707,-837005651,216850443,-87287300,-354412183,1806434630,783021201,-19275609,-912765284,547759838,796890373,-310668967,1480373360,2063767576,-806822254,27891216,1208131568,-1915179793,670673118,-1457632032,1532741429,-674770076,867296317,-1411958009,156641039,184223183,1275074139,613843447,-991075083,-2058678725,-47361500,-1995891648,894274829,1281323084,84514487,1595855292,845902209,1159708597,2137336302,971323535,2049098551,-71130088,-1116781255,558075858,908523138,-1299360694,938714845,1590419609,-1387308700,-1579211981,850020682,1992504285,-1884254538,-735310747,1408865008,-1131459420,-495046571,837483469,387044023,2023504940,1398928514,1854951848,-989914026,1772503563,-264814424,1121604206,-2120803141,-803407486,-1428401890,223867307,-848816043,-2130904710,-104107545,1071009527,1084868845,1988522350,840005846,1810602142,-1900983496,691728665,1276835654,1206370754,-237708202,-1885880948,2130207982,-74966854,2062957511,-1236836123,-388796204,880292212,953991965,-123389682,-552643457,1363808623,1836438595,-1511331994,-1591481942,1509879284,410186759,-957467130,488717833,-1079759110,2108140046,57087522,1764203374,1257521082,1377796014,2072629938,1961181002,1817752293,1152013117,1180714284,1389676198,-525509782,398712154,1508320684,-1655219250,595618397,-1558165549,-1024383125,-1988094001,1846807173,310696060,-1525150962,-98104242,-1008651908,-1181448707,-1785346651,1049566581,305810046,-753011628,-961674811,-2091529553,-153260318,-372337624,979497877,482276785,-187235708,1830234496,1873737809,427228610,-699462784,1807975830,-1717217503,-1330201573,-1643372061,-1652669173,616283281,-490262312,-636175340,585828711,255527931,-433303924,248795200,-1754379928,-104323249,-207986744,-1937911184,329273982,1008357747,1166464822,1239206993,1187689244,2018370126,1743553218,-1899032112,-1579057553,425528340,608441748,-851529540,371343419,1693533309,1149186361,-1286185259,1093690888,369290870,327774775,1920420530,1573195863,2111600680,709871835,2009767335,-1776507746,625617658,573869278,1518502001,-854422162,364516770,-767424017,-240715285,-1744156523,-1180032140,1836664316,-1603508973,-753523219,1523562599,-1383927509,4659624,-1152998059,-1242333321,822041374,1183133634,-297609281,1751514420,1636729180,-192515027,-81745418,1514978794,-1474742152,1632912406,1188887456,537127619,-863461863,1100982823,-167506659,1319018086,-1227957877,-483125851,566916378,-421067052,2007470105,-1529921841,-461782500,129567181,1093077412,-1693928566,-371570762,-654000230,1849214943,660099107,1217429547,1371134788,-191626250,1912541918,-1861164309,2108003011,1089489051,-278552725,-1302555943,-212762130,-1341186858,409561488,-149281524,-2094677959,-427965156,1701905663,1253892323,-2082068511,806320643,731071256,-426049851,-2014804661,-312425897,1605174327,1742594468,1567175128,-1856296302,344393985,179074628,2133958988,-272983128,-1149926692,-286568600,1332210733,831616980,-2003901303,-813573606,-351819897,86971927,-1867794249,511314848,-1019865217,-2088225525,-1480313857,816616259,346215369,1745023666,-1842315956,1634461365,-1413734040,-939585414,1061836159,-384003232,499673745,1582136570,1512272573,-295251090,1930510981,-554849815,-412534782,-1091363115,-1040206289,-789624434,-2009766034,1820354224,-80572135,1574398362,-1027763924,-851488961,-2022705281,-2116128511,-167191732,630462690,1385692354,65369715,1814312765,-974272173,-87110534,-403720587,2093145884,1067274846,1416688701,-1539653239,1160312902,-880458786,821445242,-488703586,1127476778,-648149855,-2049042265,-611525351,1464627369,-1344906855,1655379580,-308857082,842082260,2123591996,488204605,-1755208650,138349603,239088533,-1733759899,1093150112,295800388,694953545,1974230174,616441770,-617820109,-1623649603,560957245,-1366815996,-1568116847,-1520956844,-1475828174); -/*FRC*/Random.twister.import_mti(347); void (makeScript(14)); -/*FRC*/count=308; tryItOut("/*RXUB*/var r = /((?:(?=.|.*?))*)(?!(?=\\1))|[^]/y; var s = \"\"; print(r.test(s)); function e(NaN = Object.defineProperty(z, this, ({enumerable: false})))\"use asm\"; function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n d1 = (d0);\n return (((1)))|0;\n }\n return f;print(uneval(v0));"); -/*FRC*/Random.twister.import_mta(1217721537,1059872124,1629294987,-1458162042,1257292803,-1177123607,-755093674,-1770534646,-349017721,-1495112901,-1022414689,-168780129,-1952281087,-1877552665,740106504,-1166349519,1228197155,-1674499468,-1488057,503590518,-1586541260,-822574827,652429118,1281564909,-1325290582,-1636089603,-2124297682,1398289523,1281594789,1162566005,291019882,1715048089,376091558,-1603385024,-1213314704,518536491,1238566193,-145009243,1354653585,1524098103,589596828,-470331019,1185647814,-505953205,1040097929,-657189423,-155395233,-2088086039,-560361953,-686133237,-95739586,1254861257,-1004569382,2126731252,212763258,531476464,-2024867673,-1500687488,1755437363,1128051276,-1362960641,-841446253,501738828,-1496878110,-449607320,1103512927,-1996901833,-1073644957,-1306402146,-982856894,1913645713,159678709,1528425484,104788614,-1181821784,-508336742,-1473422788,-981830699,1186468586,103717372,-1135228721,1116436897,-1408039322,183826643,-1898062297,390598251,603654876,-1014164751,970376334,-1074540349,1287625817,1934022559,-876965538,-1650408884,-2102820064,492090727,215372296,-572924828,-2121463654,1679288440,-299185129,-2072261797,505267694,1048961373,-84619379,292050761,-549113038,1518319826,-1041843937,-1009498874,-1344040399,-655333080,1501824616,1754310746,1295610900,-1399002987,-1798385732,495639667,-1549402655,-313855685,1084812320,-1181940055,2105861981,1275340836,1349122674,-1175017274,819617007,105193912,1753168499,199056117,1253828605,178771776,1556374949,-1205146284,-2144372927,-1202943444,1037406,-1758327514,1678840065,1390029033,1075594767,642106469,-960295780,-782589225,1375461067,-1898333311,1841062179,-123537944,1779293200,90518122,2053293463,1953180146,-614314586,-1688897485,278474405,1086208589,1005356622,-1519499454,-1762087615,1791974740,-648478964,-766653133,-1927447418,460027178,749706698,-989017913,1391181926,2126891096,-570529642,-1064708531,-623314348,-1536299534,-2080341888,-1605335309,1452768510,-1466049638,-1155148314,-1343511601,-2139235263,-1089850747,-611617541,737371560,-1873563457,1393327999,890552741,71982593,670210576,1898947493,1826715690,1549485008,563678499,5882284,-1913867598,-684320534,601028315,-1745331270,1415181392,1560074200,-1746191276,-1183500386,599770651,562699038,958506835,939895452,-1201370887,-212260509,-132444588,-263349895,1958339517,-385770585,273528639,-330014922,1851858614,976609819,1110104304,1649952366,-98435967,1757170440,-724186243,-2112292610,208242727,910906584,-1224562749,-879937162,826458825,-471086293,-553445933,1341637463,14949925,346169306,-2002259553,1790494373,-2143951948,-1166505436,-1170642876,-2139409777,-291450075,202529397,-1549426302,1703311174,-869812047,1523071409,1298248781,910569839,1808336079,-95759217,-1679914156,-1495386703,-1157263305,-1268041828,714114902,1658978315,1599205054,1567618762,-909931761,-757278542,239874895,525113345,-981689250,796096076,-816459911,-1759149779,725760362,-785163880,-1197629284,1403498011,1531050247,-482884702,662764240,-1031769931,590087706,-1020123602,-1835126739,1237231701,-2003189643,-1312543461,446962574,1971719981,-1928653184,1650495900,-1060781955,-741326176,583770894,1798718668,-748989661,-419654748,-447155520,-904988239,-1651793924,-1823434991,158469009,-1993485488,2085030227,-1358045826,-2133479061,-1776243354,1519267306,569589502,487302789,-1346584759,769465140,2036242025,1833978054,1972304228,1494172141,-105862888,-1922209320,120310378,-1725542813,-762990732,1315993331,1299425406,828880461,-1200131752,-335381969,-1175729007,74760134,1930234030,-155387129,1872969754,-1606315968,1159106915,1307931278,398797129,-996182463,1132227371,-763713301,-124952411,1302129181,1195958603,-1662203796,-47413034,-495525468,-1229325750,1144528512,701567466,36276287,1029950389,-457279682,1882520617,1608024206,1866922559,1095203151,-1395298328,2095576388,979813219,-2059104774,365348015,1714310819,-1036493912,209343641,-1249578402,2132098914,-1987704762,1023809807,1903658520,1042847418,1306739297,-953016557,2060000774,-1680273995,-1195042454,-7908118,2138301993,-1426718341,-2141012931,-789501884,880148069,2088361183,1134943693,-318226864,-1485519829,2138309609,-1039254563,-363362725,983312581,1771717776,-279769269,1461465841,217735805,-2071498930,1850407842,1091416412,260000761,-2146150241,-1074326890,1460384781,-483762007,2104042654,910222791,945510332,96861849,-178625166,420097739,1379293838,-749353615,138499004,1379952994,1545457304,1506294712,1314009966,1607798976,-1173234147,-969518143,-837076111,1170157152,1825071240,499403422,586039447,-1176679787,-1454125246,-306801619,2133125488,1393938436,-1256723792,-71912915,1714471570,1460836835,-1366946469,-2124952493,-65954518,1446196240,35799285,-1794499966,-1963821066,1079815694,1914722569,316431991,1283474708,-245591233,-1500471362,-1955418177,-1271725757,-206820640,362887681,225758297,-1354796385,1503501824,1800521552,1285715245,-2016201492,1632600446,1585362761,-908608032,1876673504,489538709,-826900748,508265197,282332294,1696282369,1627204503,-1971983734,1665684638,-1080351017,1157018732,-1876420639,765049475,1062062443,1414986417,203077382,412447784,-1321780725,-757192718,-4549302,-1201952110,-2060654795,794525079,2081295513,-1156319845,-1737744168,1788027093,494249521,1937004249,1801267581,1387354461,885807229,-196560056,-1371839197,-1592586385,120472369,2116903211,1743409167,-1494342104,1049326561,-1140387128,-1192441691,1112877241,-614902971,-410016986,137118906,1480203302,131161935,-1436496937,-112505002,-2072474479,-1511053622,705874616,1942568087,-264133308,1883588862,-1026455571,-89841285,1796217122,976723804,2013419240,-102353573,249744977,785453901,1500830318,-1618259004,1139452270,-384740648,-1643963701,1960325994,768901135,620432238,1038805115,-917179870,-259714137,608208696,-482776650,-1151818771,1320877477,699453284,-901575586,-1587714517,927407206,-321775894,1821849573,-954890373,-1351480546,-1229484007,258907100,-1098671862,698307206,-1853105366,30317355,1260801489,1928034520,112917401,-439504842,-1686643301,1196460632,482083884,-297612747,-1854138870,-2094521594,2078190484,-733217305,46692190,-1353280983,475257883,-1986608629,321147285,1809103262,2040369988,1313923053,1968278505,-386754462,-2121700967,1880383530,1890998064,-29518723,755971650,-1988443596,-745726327,-1867190860,-374938459,485647934,-2026486022,1428292640,345002371,2122084564,-217792862,-1319682820,147192430,-479816898,-202554407,1866185022,-1494042819,-226335264,1875645822,1480358009,-1496146596,-486938336,2093763429,128874555,1898341968,-962300188,-532021819,-868012824,568578400,-487145442,-181171797,1812914008,1293328400,574368472,1487899871,2090039463,-1950687814,815838038,1689524808,1271505915,1599201043,-1236558687,1750436463,-1686215108,-1892172459,-1285698196,-551217079,-1708946156,-528463281,-1222126156,-625666058,-637776154,1865824075,-2099364607,-288395715,-864383528,-501325584,-783898148,10117028,-2024696216,-184313597); -/*FRC*/Random.twister.import_mti(192); void (makeScript(14)); -/*FRC*/count=309; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(202); void (makeScript(14)); -/*FRC*/count=310; tryItOut("\"use strict\"; v1 = (t0 instanceof a2);"); -/*FRC*/Random.twister.import_mti(217); void (makeScript(14)); -/*FRC*/count=311; tryItOut("\"use strict\"; /*RXUB*/var r = new RegExp(\"[\\\\W\\\\W]?\", \"i\"); var s = \"\\uc696\"; print(uneval(s.match(r))); "); -/*FRC*/Random.twister.import_mti(317); void (makeScript(14)); -/*FRC*/count=312; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return Math.fround((( + (( + (Math.log10((0x080000000 >>> 0)) >>> 0)) >= ( + Math.hypot(( + (( ~ y) >>> 0)), Math.fround(( ! ( + ( ~ ( + y))))))))) - Math.acos(Math.log10(((((Math.cosh(x) | 0) | 0) + (x | 0)) | 0))))); }); testMathyFunction(mathy4, [1, 42, 0/0, -0x0ffffffff, 0x100000000, -Number.MAX_VALUE, -0x080000001, -0x07fffffff, -0x080000000, Math.PI, -1/0, -Number.MIN_VALUE, 0x0ffffffff, -0, -0x100000000, 0x080000001, 0, 0x07fffffff, 0x080000000, 1/0, Number.MIN_VALUE, Number.MAX_VALUE, 0x100000001, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(506); void (makeScript(14)); -/*FRC*/count=313; tryItOut("\"use strict\"; /*vLoop*/for (let nxpncs = 0; nxpncs < 32; ++nxpncs) { const d = nxpncs; print(/*UUV1*/(x.sin = (OSRExit).bind())); } "); -/*FRC*/Random.twister.import_mti(578); void (makeScript(14)); -/*FRC*/count=314; tryItOut("\"use asm\"; with({c: x})a1.pop(v0);"); -/*FRC*/Random.twister.import_mta(1305888732,-174328190,1296244987,-1306336848,-633937301,-747714122,-1928480956,579518317,-1882804446,-1807267816,-30100210,-29903032,1759417017,-10657850,1770213738,-2101985474,1561150782,1407975372,-1263229674,1988584456,-1452906058,-34099516,1047457018,-460240641,-2147081039,1116906978,1705947236,902499835,-68046229,2056001340,-1194841628,1203051719,-513034337,-45630714,1561199093,164770564,1359556845,-453597930,-1189638499,-1095944495,-244414875,134480179,-448714793,1076155767,-735233207,-1138202055,286926795,-1717586896,-274183089,-1282150805,-500767018,853258987,444243195,1722444458,-2052899470,-102262766,-321024233,-1448155094,-1313452345,-1544526557,-1062649859,447024151,528027383,1779216540,1222420603,1336561206,112367780,-515154979,-409369964,-816564224,-507184068,-1767963747,-1686939237,1985235585,1839994108,660798407,-1863802808,837636136,937104515,1936388080,1450600748,-1222996900,-614690937,-531939609,-1253644315,-1223449786,-2042279354,-521375601,1042124827,-1123920310,2079492181,-1034753143,1190929820,426696118,-797723357,-1408507181,-676880028,-994178852,-672869642,-2079384468,-1459852827,-1085323341,-166786929,1721979124,723106304,1152549051,1460159285,-1040598344,-1744037928,-1071925354,1118382041,901175642,-1413281815,1702237028,1717016141,-731611883,-1558844020,-1525756384,-883506388,1572773483,1285210537,391106774,37917482,-888302449,-1482426482,-1881185523,714235832,1735664056,1035697038,-1961730233,-377356982,-604129816,-620695087,1986855009,-359541489,1332310515,-1256546407,-1029739815,569278337,-1194850061,-1056170180,1368063638,-148956627,339275660,85176452,-1467610602,552435416,-1690033091,-1815179457,655487250,1105936237,-101000396,-697664616,2115155364,-1526435358,-1805614804,26440244,-1180672031,217726446,1660723307,-2055217745,-1367595487,-868429044,1715711695,-885488756,-1756859314,309187182,-1484392833,717309296,-36138850,-1148186020,1592927870,1310111068,1047116383,14597198,602839591,1039785882,1751212547,-834120717,397121948,-1508577011,-31796802,1450981469,1895871981,-186545503,1271215473,122551377,-729197259,1390537357,-1905635723,1896515206,-1068355651,-1949109840,77784922,706739389,-1998964170,-615652793,1744519538,296500191,-353666806,1214939472,-116712495,-1749546764,-1248180235,-2079310298,935601361,-1098931344,1428151712,-975308957,1246760316,-1189244210,-999472585,1530354075,-1154031252,-777229960,322935595,-1360317838,1788746631,775572276,1575111117,-169163695,1324576486,-2015822773,284129383,-1469642002,1910025310,200329335,-726861807,-3475089,-803706645,1584804413,-634645583,-1907192668,-804191386,-71330059,1637774959,1262933501,-270113329,-1930130197,-674890178,187823041,-700761197,10327894,-236882042,-138009260,-111419204,-1126117873,1844187506,-1480444662,1797697361,1290336293,-1347496978,1814388359,-666385092,1554342306,635378451,-333255709,-1703516213,269264865,1607065852,803064655,145694016,558604232,222814371,338543300,230671041,-1892231424,-1565590771,-1337161290,-1260968742,1639827040,74093440,1107267276,-1939966162,1484067426,-1560657528,274225442,-459051626,1139538469,-1559180262,256003066,-725160715,-864241036,1551406681,-623861256,-1021691993,1610590500,-1905463293,-905578688,-1027032096,1855609140,-1342727155,1479319689,-539954994,-1436873362,-1965124511,-542267521,1984536481,407497958,-845294591,-739004054,1527001247,497387381,627552353,221578404,1903009903,822020805,-1007812926,-564634650,627835937,-957158696,889031708,-1423434774,1766639502,621880856,2082983928,-2071670243,-643545847,-1249686652,1457319356,-487774760,-158790556,1054983848,1826663067,1007193494,1741764188,1631657185,1463462964,98797513,-126260039,406131871,1512229586,535723422,890522741,-720293299,1073944,1201857171,1895177286,-727443567,-2077276242,-874651996,-537093579,-1039217951,-580511954,557129550,-906721839,-1907012381,-427469273,911473922,-579401287,-774902368,-668374977,-1961072850,-317070368,1607459508,581906643,887836328,1393574428,-1499907349,1340393428,705662164,-1789755526,-1445449160,963194875,463897624,1234627491,2079999774,1714962828,-380591953,-1046805243,-561365690,-475987537,277456679,-858911446,1593999488,-1492931209,-1984903576,-1284663606,1720670933,-735458241,154650741,-2055034548,181900303,-1735266652,-430188886,-25733321,-899604256,-70561824,743760925,-804161326,-39198372,-241848011,1120261108,997654313,388473880,1860299950,-721902545,-1784744688,1914059682,1765780715,293810751,-2065767521,-637730024,-1006832899,180286771,-131308617,424262867,778789273,2080162859,47570940,-1630318812,-1955332583,1649401203,499517705,811252988,570002372,1022079579,-12504844,435255627,-170246363,1874558290,-1308201960,-2107689097,-1640703556,131405429,-1313560700,2056120046,1848288218,1487790737,-990886101,1764466933,1191251544,1309815201,1839697583,-894629037,1263206131,647938684,-1934266010,2067056766,1490994157,-879681069,1738244611,936658395,-653864062,-50312942,157381710,-1949353884,-41893358,-445233735,783210847,366316834,-641523551,-149057558,1770754625,1169179454,806262001,1454783617,-313131078,-601798606,-2112342352,1367486140,-1831828212,507722954,392888500,880322186,1112638207,1892305069,-1884243501,-1710412801,-321079325,1716720705,1467268839,1442694365,212914814,-293433965,-1645844306,-1523340001,-2056663219,1966162601,-902078771,1924816356,1339191990,-476966340,-232693113,1594405702,-399604894,-345114239,1545214684,1287208733,223777243,-1750597669,-1743448080,1897555306,1409425815,-262576024,-448402198,339413582,1503466690,2085107711,-106955291,1745114956,771563251,-1075737050,744059478,1096337380,-1651364398,762377571,603465421,-620542697,-1383469373,1760575285,215587906,-1183437294,-803382788,-1676577356,1308111778,-429735183,-1882169288,-36184175,1773147218,460591591,1410253667,-1643711533,-91479728,-1074815893,1139434197,-67838092,1018206791,-511294467,1243382522,-415971150,1250052426,1848405226,1680909190,-886566057,129476268,-1711828458,-7907660,-1364705009,-1714502671,-1107322468,1186554676,1920585198,715982808,-1860547060,-199796217,724809846,1371565044,-1209190453,-1337835677,-1144916919,-1580508084,-1219776951,1420509230,1811178902,-1144825632,1540954514,743200942,-2081501503,1743015307,223307757,1929857196,1452800057,1126138761,-2143804451,-1661050549,1777632547,-2052788805,-597182136,-1465923343,1311149872,504047396,-260646272,-687943011,-1561875696,132166813,1032394890,-1504562881,1381532542,-228764194,-1694504609,-354849193,835092093,1167571512,-1266755727,1011267113,2004350204,157136806,2088644935,-805723060,1771620171,719184919,-1442340951,234694834,1085477252,-129059389,1959031733,2043359690,-428052622,1222246028,-23855090,-470883934,295957025,194885863,1582293794,1798334923,180003402,1352216259,1930991031,1204179589,1910078300,-1110950800,-1825710900,-1499527277,358147226,-1271707070,1048477459,-1684756560,-2137358003,711362330,2067517691,344944428,-1922526992,-1307342911); -/*FRC*/Random.twister.import_mti(9); void (makeScript(14)); -/*FRC*/count=315; tryItOut("/*vLoop*/for (yajvya = 0; yajvya < 78; ++yajvya) { var b = yajvya; print(b); } "); -/*FRC*/Random.twister.import_mti(45); void (makeScript(14)); -/*FRC*/count=316; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return (((Math.trunc((Math.fround(( ~ Math.fround(Math.hypot((( ! (y >>> 0)) >>> 0), ( + Math.log10(y)))))) | 0)) | 0) >>> 0) === (Math.log10(((y >= mathy1((x !== x), 0)) + (((0/0 | 0) == (( + ((x | 0) == ( ~ x))) | 0)) | 0))) | 0)); }); testMathyFunction(mathy4, [-0x07fffffff, 0x100000000, 42, -1/0, -0x080000001, 0x0ffffffff, 0x080000001, 0x07fffffff, -Number.MAX_VALUE, Number.MIN_VALUE, 0/0, -0x080000000, -0x0ffffffff, 1, 1/0, 0x080000000, Number.MAX_VALUE, Math.PI, -0, 0x100000001, 0, 0x100000001, -Number.MIN_VALUE, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(277); void (makeScript(14)); -/*FRC*/count=317; tryItOut("\"use strict\"; arguments.callee.caller.caller.caller.caller.caller.caller.caller.arguments = window;d.stack;"); -/*FRC*/Random.twister.import_mti(322); void (makeScript(14)); -/*FRC*/count=318; tryItOut("mathy1 = (function(x, y) { return ( ~ (Math.acos(Math.fround((mathy0((Math.hypot(Math.atan2(( + ( + (( + y) , ( + Math.pow(0x080000001, x))))), Math.fround(x)), (((x | 0) || -0x07fffffff) | 0)) | 0), (( + Math.atan2(( + x), ( + Math.fround(( - Math.fround(y)))))) >>> 0)) >>> 0))) | 0)); }); testMathyFunction(mathy1, [-0x0ffffffff, 0x100000001, 1, -0x080000000, 0x080000001, -0x07fffffff, 1/0, Math.PI, 0x0ffffffff, 0x100000000, -1/0, -Number.MAX_VALUE, 42, Number.MAX_VALUE, Number.MIN_VALUE, 0x080000000, 0, 0x07fffffff, 0x100000001, -0x080000001, -Number.MIN_VALUE, -0x100000000, -0, 0/0]); "); -/*FRC*/Random.twister.import_mti(503); void (makeScript(14)); -/*FRC*/count=319; tryItOut("s2 += s0;/*RXUB*/var r = r2; var s = s1; print(s.replace(r, c, \"gm\")); "); -/*FRC*/Random.twister.import_mta(-1353511343,-1916855552,1882119219,-443485227,-311851196,-1619273542,196156820,224240290,-1307588677,1716774484,1366342205,-1768211032,1031499807,-367859823,-1977032314,214532076,875820783,704704119,1522153920,676890240,-2118457450,1187385142,1587161989,-1229922347,-749781271,-1333235899,500821918,-1557823585,-856511462,1726607900,-1795646106,-250574463,-1168926040,-1633414960,1139283930,-6416120,1608309796,254704834,-1928014524,-954125935,1371521312,-795022518,-1580983927,2022640808,-1601763392,-430840095,-708245094,333242346,-912247900,-86226161,1038461880,1900264219,503049226,386143131,-1523520344,410777790,1029498452,-2073832318,-117565761,-1343614048,957335918,1251311510,-1222742274,-320550306,-1257922025,488272024,-1094312571,1203005376,637247231,2635443,1576503490,1320957933,251535996,1350901311,-573738021,1569297657,1413905002,1818736397,-1538056362,-1912039031,-1629189789,-2120763979,588673377,-1324245303,341549845,-1599031521,459270687,-1727083628,-156260281,261885300,-465838137,801582547,31588096,647402901,1461212742,449426904,912074233,-1683291885,-1488821540,-649228701,-1624111164,-1639513241,-1966189153,2106100300,-1767051663,225255267,212184842,224316424,-39848423,-718481840,958614112,1474983484,-550312079,-1026341684,-1075637737,-386082604,-2103820564,-105245662,-1171272632,1495732986,-2072541101,-50948604,-717328694,1218832928,-1964391878,-883958769,-919195252,-1590550100,-546570839,-1892408879,1364082867,353274826,-1474121195,1265930986,-1270988436,-307653639,-1669880267,47684680,-2099572214,-109994616,-1757271553,204438726,-741166025,-1082768930,1392141887,571437698,-1106795239,1106622796,-1482710386,-1831954657,1832715886,-589821433,-817142351,-1455174472,-335864614,-142469293,-780935423,763984737,330676234,-1066514534,-495256735,-437213369,-1915934157,684926507,950235787,530649358,-908736407,-715619995,-1575868156,876383245,-354550140,-76749850,782476545,1313460503,-1762338072,-292932275,2076627779,483078710,1278572627,-1215573805,-648062496,-1603391601,1406517239,965188816,372458544,-1419235190,-153378691,1141281512,-1568988724,267564991,-1334046553,966216095,-1918314527,-442529334,783350028,1588190805,2113964043,-781337420,-851769018,284242717,-599388931,-1381995768,-1961071191,-1130619107,553927445,245113753,1628591671,-441866164,236482421,372534061,-1415102713,-2020898395,1516053043,420433888,1834959162,-2074589707,1255717519,38125824,63626875,-1652314652,-51572541,444485559,-82211850,1862817164,1818441987,295191572,21842710,1237238329,2092670890,-2044889614,1368279762,-1438596842,-143435511,-278501839,-459658934,245636506,-928488340,-1912451945,-42351945,-504678112,1476905607,-899274195,876201007,1339089989,1454186025,-1648169448,1588497977,-1839465197,-1436686271,-504961208,-1587038686,1012212085,-1666478629,1938513743,683819721,1676372276,-1294307034,1173782089,-554403329,884330448,-1695310224,1397610558,1614109062,1439317318,-1862718083,-1970291004,259980488,161056251,-1963493081,-786761031,2059027816,-2139570010,-528556682,-1175224149,44171054,-2121523403,-930218556,-988223883,1623973142,1515899383,-1536174786,-1022447214,-280034483,271890088,2095480718,-1761492435,836033406,1544368846,737223270,-1068285340,1645720711,1075528332,854722815,-336880846,-1680630481,-752484961,-503035460,1372815025,-243634894,1728576201,-1542474065,1243021502,-701301738,1390213176,-841361435,623127275,-1342282008,-238508912,1244202874,7275533,-345024313,30387936,-736701224,165116179,-1491260312,1843753366,-96035025,-1090881019,1151949581,815230444,1574048679,141079826,-1246670774,676946738,-1471964611,250240115,-221194119,80442623,997393892,1608281871,1352265509,-1722036034,-1896904314,-1088059661,1297546628,1195784079,-313010061,-1971719817,368956907,-1159985117,874887433,1206699960,-2041588925,-771706549,1145628181,1678629606,-1284699850,-547457326,1262854663,-1109813222,-1111888160,-815271507,-1111282177,-1496203050,695011610,-987866371,-1497628449,-620073703,1929177120,-1121618817,1105046871,-523085712,672511195,-1851464647,-1089185466,-1088015995,-898777778,987941239,-169193829,-1130911084,1471050198,-2085223053,73954327,-779688615,-881008856,-481836614,-881304454,-2022564901,1875139783,316158292,-1417504738,932734466,-70590463,-1570884524,-876978139,1988438138,-1114906518,760756656,-839378130,-216409443,-921612690,1505860465,-1693262267,-1035593115,-500664526,291949516,2129917573,-1814633643,1459324236,-1083536191,-718401529,-99984540,377289964,-1483663099,-1177177294,-1718020379,968282304,2108263210,-1593524111,1555830885,-449391869,-31712682,1015252177,-285803005,1425692426,621168702,810692549,1703681245,-1703745838,-92968632,-56836154,-157822360,296989323,-1528646674,-910692490,-1333921231,669278960,1763200362,382793794,1719733516,-1625515983,-1627002086,-1589160943,-582196415,419719146,492244555,275698590,-700622024,854349964,-425917947,-204849602,-272772344,-1462031308,878222854,1190492967,103629385,-482095891,392069824,-735996985,-235713177,-622758653,401473270,-61522453,596994697,-927909730,-823643851,-1330148817,1067380427,-347284914,-1615704489,-435280713,-1413761233,85040576,-762038487,908213559,1544836670,2134627606,-1945505881,620806403,-568787248,-43906071,-447001448,-1684371673,-253265873,-592918204,1640795665,979021873,1123526569,-2143273268,-436821207,1415734804,420170711,-2081199960,-581031803,1910587384,843724256,1522057918,631746849,-856809460,-219277644,432060094,-395042872,965091024,928139516,2067493774,-1058341888,-36409128,-577311160,633310859,-1803749680,906346253,491862077,-677337570,-400449994,-875433828,-1350887560,-760321458,283559786,214103596,37727240,374896777,1616734343,-15765805,2145149348,988883743,-2117536831,-2017758600,-2047546480,885213349,-1505709869,1491356252,232281113,-1369182921,620443478,-1456537852,-864025976,-1604909259,230958990,790184387,-441935793,933092509,-87039600,389839656,325246876,-1307347002,1188220529,2142023511,624150687,-736067641,-1964435434,1787545737,-1641952609,2025058938,-221530071,1576626137,288393014,410474518,-550750051,-918480260,1901664945,2025639188,1794047430,1690303588,-953488718,422238351,1453295917,1241138008,-932824934,1939949220,289442479,-2035932507,-15355577,-4110700,1950579010,1561227533,-133224539,554094113,1511417261,-1968467169,-514026277,-586865959,2087947093,-1770388617,-501293890,94805059,1434529346,939012186,-728387745,-162964670,1773431183,1253426978,-393836805,-405436447,629922744,471959250,1229394526,-1182027860,-420870869,-953251242,-976132191,499295981,857679437,-103242276,-365677172,-1613946039,377538462,-2139999631,1687176815,-405079499,992113680,-1603168888,447059687,2139204886,-463491605,736272353,1788415458,-1550051606,184967706,-1921777761,-1020895825,-1128650132,-2111009213,-1128129684,-148401625,927046801,198153336,-19691195,273989143,217241852,1065846503,-939414029,-459522230,-781731597,-1336753806); -/*FRC*/Random.twister.import_mti(31); void (makeScript(14)); -/*FRC*/count=320; tryItOut("\"use strict\"; mathy5 = (function(x, y) { \"use strict\"; return ( + (( + (( - (( + mathy1(( + ( - (y | 0))), ( + ( - Math.fround(Math.atan2((-Number.MAX_VALUE >>> 0), y)))))) >>> 0)) >>> 0)) > ( + Math.pow((Math.log2(Math.fround(mathy3(( ! Math.fround((Math.fround(-0) / x))), ( - x)))) ? (( + (-Number.MIN_VALUE | 0)) | 0) : y), Math.fround((((x , y) >>> 0) || Math.fround(y))))))); }); testMathyFunction(mathy5, ['\\0', objectEmulatingUndefined(), ({valueOf:function(){return '0';}}), undefined, (new Number(-0)), [], 0.1, (new Number(0)), /0/, 1, (new String('')), (new Boolean(true)), ({valueOf:function(){return 0;}}), '0', (new Boolean(false)), NaN, (function(){return 0;}), -0, null, 0, true, [0], ({toString:function(){return '0';}}), false, '', '/0/']); "); -/*FRC*/Random.twister.import_mti(291); void (makeScript(14)); -/*FRC*/count=321; tryItOut("\"use strict\"; b = linkedList(b, 1350);"); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=322; tryItOut("print( \"\" );"); -/*FRC*/Random.twister.import_mti(318); void (makeScript(14)); -/*FRC*/count=323; tryItOut("mathy5 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var pow = stdlib.Math.pow;\n var NaN = stdlib.NaN;\n var imul = stdlib.Math.imul;\n var ff = foreign.ff;\n var Int8ArrayView = new stdlib.Int8Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n var Int32ArrayView = new stdlib.Int32Array(heap);\n var Float64ArrayView = new stdlib.Float64Array(heap);\n var Uint16ArrayView = new stdlib.Uint16Array(heap);\n var Int16ArrayView = new stdlib.Int16Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n var i3 = 0;\n var d4 = -2.3611832414348226e+21;\n i2 = ((129.0) < (d1));\n d4 = (d4);\n i3 = (0xe0db760a);\n d4 = (-8796093022207.0);\n (Int8ArrayView[((i2)-((~~(+(1.0/0.0))) <= (abs((((0x7df2d48f)) | ((0x7d780bc4))))|0))) >> 0]) = ((0xa15c5a1c) % (0xffffffff));\n d4 = ((9.671406556917033e+24) + (-18446744073709552000.0));\n {\n d1 = ((+(0xbd1a78f3)) + (((4277).\u3056 = allocationMarker())));\n }\n switch ((0x5d45394f)) {\n case 0:\n; break;\n default:\n d4 = (+pow(((d1)), ((Float32ArrayView[((i3)) >> 2]))));\n }\n return (((0x9fb5b184)))|0;\n {\n d0 = (1.5474250491067253e+26);\n }\n (Int32ArrayView[0]) = ((0xfd7f975a)-((((d0))) ? (0xdf27ffc4) : ((0x2ce3f157))));\n d4 = (d1);\n d4 = (d0);\n d1 = (-1.5111572745182865e+23);\n d4 = (-((0.0625)));\n i2 = (0x54bc094f);\n {\n; }\n (Float64ArrayView[(0x5541*(!(0x5e937a0f))) >> 3]) = ((137438953473.0));\n i3 = ((((0xff766960))>>>(((-20)>>>(((((0x3c9ca020)) >> ((0xe688c21f))))-(0x7eb4cef8))) / ((((0xa50850ab) == (((0xf861c288))>>>((0xffffffff)))))>>>((((0xffffffff))>>>((0x841c0a2))) % (0x6f355352))))));\n (Uint16ArrayView[4096]) = (((((i3) ? (((d0)) / ((+/*FFI*/ff(((17179869185.0)))))) : ((new ({x: this})(x))))) << (((+/*FFI*/ff(((NaN)), ((~((0x143dd4ec)-(0x81e042ce)))), ((5.0)), ((1.125)), ((-73786976294838210000.0)), ((-65537.0)))) > (-((+(0x38e38e4f))))))) / ( /x/ <<= new RegExp(\"\\\\3+?|(?!(?=^)+|\\uc5ed\\\\D|\\\\d)|(?=\\\\b)(?=\\\\B|[^])(?:\\\\uD446){4,6}{2,}\", \"yim\")));\n i2 = (0x16be6e4c);\n /*FFI*/ff(((imul(((i3) ? (!(/*FFI*/ff(((-147573952589676410000.0)), ((17179869185.0)), ((-2147483649.0)), ((-15.0)), ((70368744177665.0)))|0)) : (0x9e66503b)), ((~~((1.888946593147858e+22) + (-137438953473.0))) <= ((-0x73b66*(0xac0f5f4d)) >> ((0xfeaf282a)-(0x5d177067)))))|0)), ((~((0xc9e77919)))));\n i2 = (-0x8000000);\n (Int8ArrayView[((0xfad5bc35)-(0xffffffff)) >> 0]) = (/*UUV2*/(z.toString = z.forEach));\n (Int16ArrayView[4096]) = ((0xf9f83d8b));\n d0 = (+(0.0/0.0));\n switch ((~((((-0x8000000)) ^ ((0x145ebd16))) % (((0xfa7b72a5)) >> ((-0x8000000)))))) {\n default:\n return (((-0x8000000)))|0;\n }\n i2 = (i2);\n return (((0xb5ceadf2)-(0xe7f1b524)))|0;\n }\n return f; })(this, {ff: \n(yield)}, new ArrayBuffer(4096)); testMathyFunction(mathy5, ['/0/', 0.1, undefined, false, ({toString:function(){return '0';}}), '0', (function(){return 0;}), (new String('')), ({valueOf:function(){return '0';}}), (new Number(0)), -0, ({valueOf:function(){return 0;}}), null, [], '\\0', objectEmulatingUndefined(), '', /0/, (new Boolean(false)), true, 1, 0, (new Number(-0)), [0], NaN, (new Boolean(true))]); "); -/*FRC*/Random.twister.import_mta(1354524648,-1141057456,-1481617964,-866207045,-157353650,-167702911,832335138,-117496460,-923334185,1869269988,1045914034,394282424,356948257,-1191921826,472025239,-535014051,1095872966,300444625,1537734614,-1583230494,444724439,881285895,685521648,379291847,1624483900,938757746,-861713847,837781276,-244653249,1668935051,-1507750277,-1509352869,-1687375263,734117961,1174653936,-1138281763,867977840,-2136388532,2079558965,-1044643158,-1834525884,-1490449565,-1086257421,-1561897286,-1019245872,202469032,2003809414,-371889942,1030598427,-653094322,1991511992,1132809864,1202984913,-1956776800,-1418434766,1010411285,1814286798,1321196352,995537303,-271692249,-1946542389,-614193141,-509804753,1735207020,1123437995,-1031162646,-312999493,1470103933,-219218402,476841913,-1270714179,-1736660014,-1069712913,1410197866,772362504,1094425036,2052459149,-2011732307,-91475174,350445058,205963906,-401406594,-1682479252,-2112000931,925091421,-1384095156,353568269,-1540273408,-874638770,855959874,1949521039,1512987434,1870906872,1299184804,940437366,2029046776,-1786880256,-1764081237,707187829,-1295054802,1108520744,-1229023779,1422638024,403769413,1449357908,-1305532581,2073422270,-1989390820,-668760859,-883266827,1190866403,-1016726560,1254686497,-1804810684,-2060710462,1965388656,-2012013085,-1987951754,457741664,-500242056,509137904,765224833,663182494,-1771336475,1764490396,-72008059,-645862135,-142202546,-1543264099,-711206275,1417894243,-1526291908,-791516470,-589421027,-369474959,-1283709343,470073209,-1739783596,-1322146174,1290703934,1178901085,2060925580,-667564523,-1567047549,-1756773586,-1440906344,507251258,-180149930,368775674,-180186405,1725873762,1017856366,1398149891,-1914068703,-239698956,-941914593,-1993402888,-949712131,1510405499,-475980889,-307614059,1764221866,-529169866,-1893885946,1478197922,-944838136,-513925672,140342921,1553257019,-1282449124,-467749925,-128516970,1904251423,-323455956,1761434913,-2003312457,2045971980,-133709713,362311296,980109938,361399076,-1131402436,-1259314853,1442689782,-325300840,-764515116,-722901300,2132318044,1452096102,-1161544271,857091175,-1390777867,1127797081,-1176698650,-1230071002,477001503,1789337435,-36104104,-811796046,-452657101,-358626518,951154808,1256411009,-2075850050,-1876086094,-163920658,-1304358331,1817236013,-285352714,943536963,9508374,549406102,940432154,480078008,1231934239,1166356504,-345324146,-1738331864,2098488035,-730893320,-95558749,-749455629,488660948,399230188,1920347319,1818570815,-1603427038,-321559398,-835108343,-1215023449,136362572,-1161414916,-1735338194,1616878887,-1194964626,1355923809,1577980534,1884329728,-1933063254,250704900,118479731,1024850435,-1079843138,-1915798184,-509097486,1081334747,1036733221,286062022,-502143739,1306010784,-571742750,1497594419,-1766797838,2119615471,2089685243,577699658,2136510228,1986190260,-837530069,837394603,1228366637,-1064249425,412715109,-2124113392,-1957719301,-1356098770,-452900478,-54393034,-917227310,-84452293,-2053303719,514708326,-209945261,-1337377568,-1400919666,875900868,50127275,1935037691,1758669721,-1968132889,64942279,-1913842929,-1189925727,-789793995,-710132542,-33951370,656308119,-1553494638,1876166774,416937874,270169417,-1344453849,-1057829663,2081420896,598523986,-1561553286,-2090663793,328013986,-2109978306,-637424692,-1399085967,680605730,910548495,327171987,-1612391292,-2027995644,1318882000,-1066497663,683568833,189300459,1946539812,-2027954793,188256962,-1256484234,-893436833,-830071749,-596630295,80347819,-310993558,-1171695247,1891763977,-2033387991,968569628,-1920992731,1503654353,-843097388,-293885528,-763556497,-775068136,-1045525373,-11344126,-4200809,-1833870748,-1081911892,326709794,1561617682,-1983577916,-757996521,-1169723135,1132406648,499998039,1179935163,-168985169,-1845988352,-1882740009,-1834796457,644725120,-93104485,-59179195,1111875057,-566011259,-1189556938,1739429295,87632927,1003700147,-489216979,-1510904300,-1443956461,-1888786191,-1932512212,1043025424,-621272196,-2001699838,-50699298,999937535,2129405159,683653960,-1528241315,2001071106,-579872014,1496982865,1285296925,-946986546,1256495523,-938580098,-1668499745,-1381883715,-75955998,-760321387,2077311800,40760502,273290846,2135192470,1467464548,-1108912816,-111828170,-1513695351,-1986038012,73718866,-769163128,-1767433410,-1300443666,-111649774,-160263344,312968650,-397527865,-926066288,-375313126,1358604985,2086224122,55815845,-732627938,1235663919,-1533689853,1693242077,-1338071180,-453915950,-876434856,-1805060469,-1442112482,-647138490,1194653026,-279360175,-1552813813,-320540386,1182789770,2042070123,-656554147,-2081640391,-1329327778,1939895780,923236832,1604130722,893124592,-1964339179,686558531,-631829588,217482866,849714720,352265456,1758916959,-1538087799,1787663983,-1901405831,816437764,-1253142653,523381761,702720726,-470185653,283390173,1685900150,-1141961586,1879592614,-235637775,739921162,440121310,-814592291,-995088159,988492679,-1067188828,751377323,1479769943,-466634665,-178912009,-263676429,302258214,-1170114439,922691474,-707732581,1603001672,-1443586968,-1396696880,1935037194,518232649,-1651277648,-1354060715,1088228713,-1236524373,-1946484466,-34490079,-895227397,-945938225,-601289988,701596388,-1969652072,1937113435,-1093035903,1120763842,-280114683,1870143501,-909598837,1970239426,1346014915,-1703591320,-1961972850,1839754056,234585522,1928470421,417872186,-2017533655,2112919336,-1061578995,61287526,406061986,1395985283,174189120,-333521768,806327230,1343505354,-1774554693,768293369,-1585670071,-1450668572,-187409917,371967256,1495883760,938949423,1501661858,1768064071,-1235025723,12707318,179574230,1806721187,1674869259,1005261040,-953408216,-910457938,26590444,189298717,-2055735383,-1253902445,923337683,-2031792245,2046825428,440074274,412886650,-789554526,-925787681,995561454,1597788271,-339479666,600457978,986279443,-1907476695,1164156312,-1558858084,-1042115995,1113287693,1539279187,1636048575,-1246935589,370889125,744104776,2083457322,-1760883229,261877071,-1657766560,-1568118789,-462957047,-646355043,1897063962,-705426303,828222478,1270071404,-237352630,-1933469833,162554469,689159065,908889514,1322762500,-24738579,-492657005,1958207560,-353710533,1536407801,-1414570345,-1937166172,-1754489602,-1597922630,-1672122553,-1733244979,2083484771,-1584766672,-1122406997,-717647575,-2091586871,1982485645,-187472174,-878646181,1263111994,721468669,1859728065,1385386772,-331179231,2000801803,1778636767,-1123313031,-1809178719,682997774,-306155675,783368955,-1948939798,-1893339470,237216956,360525710,630337548,-915996756,-320635127,2058538864,-302716213,-714272968,-795402641,-1878677087,668880793,2058514767,1682474139,-656627256,1158707032,-414501997,2042748589,-483041512,-1864562028,97308473,-1379202385,-2070906167,-1522048613,2056068242,213646605,1485778016,1475920268,1170335264,-309439139,1719844536,-1600951708); -/*FRC*/Random.twister.import_mti(9); void (makeScript(14)); -/*FRC*/count=324; tryItOut("testMathyFunction(mathy2, [Math.PI, 0/0, 0x0ffffffff, Number.MIN_VALUE, -0x07fffffff, 0x100000000, -0x100000000, Number.MAX_VALUE, 0x100000001, 0x080000000, -0x080000001, -1/0, -Number.MAX_VALUE, -0x080000000, 42, -0, -0x0ffffffff, 0, 0x080000001, 0x07fffffff, 1, 1/0, 0x100000001, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mti(41); void (makeScript(14)); -/*FRC*/count=325; tryItOut("var qbamrs = new ArrayBuffer(8); var qbamrs_0 = new Float64Array(qbamrs); print(qbamrs_0[0]); qbamrs_0[0] = 1; var qbamrs_1 = new Float32Array(qbamrs); g2.a0 = Array.prototype.filter.call(a0, Int8Array);print([z1,,]);print(\"\\u3FBD\");e0.add(g2.m2);e0.__proto__ = g0;v2 = (i2 instanceof m1);this.i1 = a2.keys;print(qbamrs_1[0]); /x/g ;"); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=326; tryItOut("s2 += g2.s1;"); -/*FRC*/Random.twister.import_mti(199); void (makeScript(14)); -/*FRC*/count=327; tryItOut("\"use strict\"; t1[9];"); -/*FRC*/Random.twister.import_mti(210); void (makeScript(14)); -/*FRC*/count=328; tryItOut("\"use strict\"; o2.s0 += 'x';"); -/*FRC*/Random.twister.import_mti(222); void (makeScript(14)); -/*FRC*/count=329; tryItOut("v1 = null;"); -/*FRC*/Random.twister.import_mti(233); void (makeScript(14)); -/*FRC*/count=330; tryItOut("/*bLoop*/for (ntucyp = 0, igyzxs; ntucyp < 113 && (\"\\u6720\"); ++ntucyp) { if (ntucyp % 47 == 46) { \"\\uEBBD\"; } else { ( /x/ \u000c.yoyo( \"\" )); } } "); -/*FRC*/Random.twister.import_mti(354); void (makeScript(14)); -/*FRC*/count=331; tryItOut("mathy5 = (function(x, y) { \"use strict\"; \"use asm\"; return (Math.imul(Math.fround((Math.fround(( + Math.log(( + -0x080000001)))) || Math.fround(( + Math.atan2(( + x), ( + Math.exp(Math.fround((Math.fround((mathy3((x | 0), (-0x100000000 | 0)) | 0)) && Math.fround((Math.fround(y) + Math.fround(x)))))))))))), (Math.fround(Math.sign(Math.fround(( + (( + ((Math.fround((( ~ x) >>> 0)) ? {} : Math.atanh(x)) | 0)) ** ( + y)))))) | 0)) | 0); }); testMathyFunction(mathy5, /*MARR*/[0, (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), 0, 0, (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, 0, (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, (timeout(1800)) ** (4277), 0, 0, 0, 0, 0, 0, (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, 0, (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), 0, (timeout(1800)) ** (4277), 0, 0, (timeout(1800)) ** (4277), (timeout(1800)) ** (4277), 0, 0, 0, 0, 0, (timeout(1800)) ** (4277)]); "); -/*FRC*/Random.twister.import_mta(-195083982,52595795,-2088850056,2015154690,912051073,292063934,-1729473863,-1717573911,-947142010,-69567989,-1073575804,130222788,-1234090063,242517970,-298684653,-1879992910,848131132,-1053357323,1454315643,-1375744289,1536612865,-1753043647,578905570,1137287674,754802393,-524025255,1842101374,727142741,-1067955367,1347386446,-956646528,-434407473,-669551605,1272386727,592022840,861123415,-1895923873,-732386239,-1785688362,1449230755,-478224456,626113261,1100454784,98766366,-35144742,1270846693,-987838588,-341562792,917700345,-1272428287,-445476955,-2143713104,-976418828,2037590066,-1624826878,-767668048,-771102377,1961588199,-1125412886,1723123651,-1035631800,1008080083,742214014,294062690,-1920679259,-1661803768,-331666904,-1528496193,2020876118,-1007385112,-93161662,1928138022,-1745400428,-576241281,-419173335,2013970277,-1261272723,-136354027,956804698,-1191511616,1992621437,-1567196749,-1216469252,189910138,1672431332,-2084848358,-2006063128,-287202647,875175913,-1360369878,1608856064,791272390,-1593237637,1643536531,-54398223,152568806,-900623448,-1624321690,319188567,-1927836916,-1302828657,980524590,54150470,117080275,560184123,-733841093,-261980915,-483215435,-1517495723,-847110911,2016638802,-1794225400,-1135254553,1113056023,1881582702,-156148083,655711152,1984911936,-163884652,-2036864426,-1907146765,411817554,390758660,-1042871843,-1814352818,1932364240,29558643,-785226573,-346457189,599344844,-632108863,1396587147,-1470368834,104227433,-478355179,-305954448,-2107066877,503008985,-983368573,2076733332,2133913931,-290596218,-1446982111,-32922548,1125486697,1665410645,1183750529,-571046626,-1406003971,-295755183,-1126316212,1422159703,1183123410,164223968,789675857,1976182514,-1324796467,97616680,605661819,-429013520,1568688716,102124721,156830983,-1836366404,-1049242729,68742820,936166816,-321822405,-1301746151,1737415062,-347610443,1091132266,-1442228911,1975966082,-513002265,-579606986,403848515,-1611291031,-1637789712,2096043295,-358911156,147876905,565663297,491690545,133039275,954720370,-1815162737,1543982392,-295077416,2106080405,464493444,-803118979,-248582378,1978011496,1558839994,595513792,818882704,1924354903,-837287734,-1138156999,-1329872075,-959719313,-271159404,-1652844959,-1416987624,1345163356,-922839472,1305255732,-1587631643,-661380413,1431295379,-78782946,2005887729,1586169416,-1306553704,813280766,-503669189,1662188391,-1888429977,-1633460836,-65448277,371131274,1545413626,-437108572,1119124893,1991535657,-688269271,172708073,-1042274337,-949030818,1702873468,2048172054,-128977678,-2071366130,1761588870,-393425987,-1007537781,-966693551,1086042310,754850519,-1980315124,-236774324,-921302242,1113493701,939939783,-784200394,-1518750660,-208234404,-244400367,208967443,-1235178436,665139232,115856241,-897350436,979382000,-783149,1803424148,2029530186,669456197,1703179586,-224931921,-166856235,870448735,1381041917,-2083691050,-418371049,671121976,-2016099375,-1054694353,-1705926029,1253435309,1565603244,328927893,-1826548925,-1312899654,-1362870541,344708003,1209248438,476671516,489344840,-426962582,1520843405,591444469,-1193281738,169315676,1986790654,1996947722,-1246787725,813362970,-1120353531,-1621026002,1962218506,-487253960,-34780671,-1248676734,-1597165618,-1976432199,-76786723,535681216,1488072563,-1980768914,1697231857,-389934989,-1155469521,-1269762025,1581902642,29691359,-1147962686,1044051481,-1921200786,-1848208786,640880517,-1724484575,1950009624,279583851,-1021657790,1971836576,1767799989,-348797023,1080077344,-73880744,-1608750209,-1766896085,1066851231,-1175356404,1681635971,2099363172,-625026429,-1011980112,2090022599,-533871801,1748702729,-1954294803,-1176574948,-843545284,-1586603465,1038245845,-1139245299,-189671244,733707667,-126524651,-740777370,-1102224243,-100778492,-1508477004,-1525838508,581366212,1768419470,-526284683,-1587307367,-1654952122,2030392902,-390484224,-2061358987,2035369594,-1180578671,-297366886,82824294,357965981,-145861450,726299607,-1490755820,-1816219489,1185737763,-1148851083,-784522969,-256594203,76678986,-1072023553,1549102166,1095703837,1624408206,-1623270821,1653189182,179859118,1676391548,-1813798368,1283605209,690802379,1202978185,32297167,280184474,1584528192,-1342529691,2038125235,-269323936,-1566409102,531768421,788892917,1107984536,-877321397,-1109787234,2132911884,2124351301,1107217287,-703708463,324947739,439486262,2133195543,849883868,1609344909,481810991,1446098664,-210967310,-2014644781,-333862247,420364339,967293142,1574298150,1291972578,2127880320,-1454763300,-262690776,-440621056,1060681085,1270483762,-923897884,-1018072249,-2008848174,-1996565020,1852158872,1931774315,971189816,-1397567419,-1077025495,-483162852,-95266560,-1444344795,-860599785,1119201252,375026938,1204029424,-831501249,-1867875502,-832346070,2010058554,-865765464,-38034967,708277935,1169231690,1132232719,-904153653,-1853152039,-1208502082,1846485128,834752470,1710487859,946110391,909049176,-1821303056,1357074384,-374664855,-1793597811,936715791,1128881402,1170746172,-1676581993,-694217618,366038706,-323634490,-756450714,290758403,2130032198,-851709485,147622820,-1176664403,-1362052259,-871675253,370372611,894390076,-1197920131,1444074169,-2052404156,-1607136400,321202222,1997194126,1829906674,416217569,-921593607,-1156895637,-1338753219,-1955210930,-221336089,788087891,237771246,555395484,-973747625,-18623694,1826240926,1293530571,-351961692,-1038158875,-351654970,-1735215322,-2098972943,-147994013,-1034523732,1656735304,-817578578,-596236618,446164920,-444925112,1302766381,1604202799,1686570318,-1634057388,837421593,1261757334,-660665808,1663060750,-1115292195,-1496904238,-561084124,1794279794,-1774610969,1420242637,-34464397,63805439,-280600831,559731502,1063353143,803775384,-573757916,-2026927704,-148750112,932574609,-1512942781,-733717863,-742446311,-584848972,-356135342,809304001,-1067040647,1668596499,-1441160820,-943517708,1968819127,620881432,-1879461883,451438099,-1505767147,109514191,-49464873,-418717554,-1214563635,-441583343,-2010370302,279179395,1437100142,-299483866,-1939575552,-513824245,1105353397,1171036609,97952231,511633757,-250455084,-79985262,1330706059,768090436,1367803786,-1209830120,219385333,-920439946,818372761,-1292549914,1611477996,-1474973112,83535130,1797109684,518075626,-1227667668,1653181278,-785217137,-1312475851,45880044,-1693831184,1636018612,480350683,1680949665,726008266,1343811568,378024414,216977984,-1461282986,-1831117442,609479609,2131800016,147609721,1575919933,1128671446,-65594580,-1775438983,-99993310,375070540,-458667991,-1288936691,1008106149,-819968716,-175612473,-1815439914,-609088863,-1458822289,934423128,-407982005,88250927,624674341,-1421739559,-178579181,1877693644,-409724369,-1567259152,1612661992,2044916681,-736549769,1380123324,-580923711,-403524229,-1775919784,1572951068,-783246028,851416283,-968362013,1769074562); -/*FRC*/Random.twister.import_mti(213); void (makeScript(14)); -/*FRC*/count=332; tryItOut("a1[({valueOf: function() { { void 0; try { gcparam('markStackLimit', 4294967295); } catch(e) { } } s1 = x;return 18; }})] = e1;"); -/*FRC*/Random.twister.import_mti(244); void (makeScript(14)); -/*FRC*/count=333; tryItOut("/*hhh*/function axwmvj([, ]){v1 = (b2 instanceof e2);}axwmvj();"); -/*FRC*/Random.twister.import_mti(335); void (makeScript(14)); -/*FRC*/count=334; tryItOut("\"use strict\"; o1.g2.v1 = t1.byteOffset;"); -/*FRC*/Random.twister.import_mti(354); void (makeScript(14)); -/*FRC*/count=335; tryItOut("\"use strict\"; L/*\n*/:if((x % 6 == 1)) {/*RXUB*/var r = r2; var s = s0; print(r.exec(s)); v0 = Object.prototype.isPrototypeOf.call(v2, f2); } else if ((void shapeOf(15))) for (var p in g0.f2) { try { e0.delete(g1); } catch(e0) { } try { m1.has(h1); } catch(e1) { } for (var p in t1) { try { Array.prototype.push.call(a1, f0, o0); } catch(e0) { } try { h1.__iterator__ = (function(j) { if (j) { try { Object.prototype.watch.call(i0, /(?!\\d)+?|^(?:^\u357d)?|\\\ud218|\\3/gi, f1); } catch(e0) { } try { v1 = evaluate(\"null\", ({ global: g2, fileName: 'evaluate.js', lineNumber: 42, newContext: (x % 4 == 2), isRunOnce: (x % 4 != 3), noScriptRval: true, catchTermination: false, saveFrameChain: false })); } catch(e1) { } try { m0.get(i1); } catch(e2) { } t2.set(t0, 4); } else { try { f0.valueOf = f0; } catch(e0) { } /*RXUB*/var r = this.r1; var s = s2; print(r.test(s)); } }); } catch(e1) { } try { o2 = new Object; } catch(e2) { } Array.prototype.push.call(g1.a0, \"\\uDCEE\", this.a2, p1); } } else {/*MXX1*/o0 = g1.Set.prototype.keys;d => { yield /x/ } }x = (new function w (x) { Object.prototype.watch.call(h1, \"1\", /*wrap2*/(function(){ var nhujew = NaN; var teqsgj = XPCSafeJSObjectWrapper; return teqsgj;})()); } ())\n;"); -/*FRC*/Random.twister.import_mta(-1252968070,-390448618,-1071347340,-253950609,688139742,-842668278,1581500497,513850551,695022254,-471910402,-1176123266,2110003174,2095199827,1852511362,883882224,968260348,-1610229690,1041335526,-289916110,1356726051,1265107809,-541857962,447075134,131150427,-1543374986,-739262496,1431299620,1738526581,1894654187,2056526995,1521800454,849306278,1295897712,-1071425027,-1775259619,-441578149,-710033389,729839247,-1737819257,-1159939710,1720596887,1699472103,-693639103,1472386010,1146149103,801780111,-10474437,1921155463,-219546678,-1461027414,-156724614,1901304097,-1070412429,-77653092,-613876960,-1656686247,1336749749,-1525617022,-862289942,-1242385787,-225551873,882126986,1984309737,-912244218,1620915336,-2048789774,-2009657483,-515350391,-590300080,1115346487,1593090017,1020733998,-1157906515,-585135468,1449732501,854099361,-1155123337,-353761480,287009561,300534723,-1086553145,-1895449957,1101852143,-285837651,1244729524,2137678758,-605607978,-1085959508,643902860,-1203107025,958917181,-1290541009,-999182306,-1448768666,-542938080,-1554227984,-2073532875,1350080064,-787967886,1769399592,-1569429812,-18121374,-873851431,-898223505,-1893419614,1522111495,-861165851,-472115796,-1201916413,-1551632526,-968122422,742136510,-1175062694,1395319179,1879297592,352815832,1588836459,-1382909548,709157268,1509245709,-245340958,-1588618298,-1368702132,-26539657,-1134899564,-364085760,-2095011979,618779490,1314756671,-1336393144,1356415249,-649653908,1665188384,-1468247401,-898140776,1513418872,180794574,1952999263,1372899816,-556097708,1739424746,-203601882,-1426971357,442216687,1661672758,1098840094,902806599,-166364483,-1836489718,-2145849854,821586276,1425158412,472130619,-1160558584,-971904358,1944344609,1148737565,-1713822882,830418275,-647181103,-1895808359,1620967355,1078623181,216400985,-630874429,-1004797269,569927169,1202395761,1437986729,-453906306,-1993571430,-1544747731,-226798415,-396770972,-1549567996,717899209,-2013492798,-692067219,-484707406,-1413776370,-188923560,-1831039353,1181448845,263448743,-496294623,93819174,-1806571398,-882553151,-1866500594,468078762,-188449132,-1285657837,-1708599466,1231596142,860258829,373401155,1773095000,663053527,-896925682,1895046742,-1470952839,571692073,-2065513818,-1303929078,1201561774,-447292755,-2026068506,318696933,-745479559,-1240305706,636342115,-841768256,1949084935,-1656205237,-938217172,-580919621,-1836984837,-770998368,270586828,-1790232418,388818487,-1399818686,-1694804593,-157307724,-770075416,37648722,1044218336,-516975788,-1191384499,1252523677,209319103,-1501030382,1568942803,-242226905,881637752,-574846696,-385468507,-1054724139,-1668635997,1003156040,1724307244,1873854620,-735175500,-1448248880,1221801441,1271480276,-83002235,-1363245895,2052607791,-1352465625,-1893400457,-205476530,-737565885,138889925,-767422727,555103257,1177818008,1047318594,1376823278,267719581,-1503320227,-666800577,2100591642,1934756214,-1817351600,-1095992007,1000742795,1337506994,-1411029227,-1084382745,-1084336764,2011948173,258133270,1000301855,1282759844,-288064722,-256245430,-1372280362,-93490396,905677677,1753164558,139099692,-713749245,-132479597,2046388428,78827539,1955540098,-1025933632,1387323083,2074331980,-1479142841,1030183360,-19616626,-1672875723,1116896903,1321425372,-1422065754,2063728937,9242941,490442438,-542093355,97819442,-627612298,-124930257,4758102,1605930518,2070064205,2060884656,497430904,-318144997,-1337245714,1443491725,-207137865,-375723691,2044923505,-1468317693,-913772571,1784175345,-880742807,-1110341927,-708693095,-163417732,2133886522,1682627829,1117165192,-1940141744,-1813195799,-1406499257,659103736,-1266688887,1790086865,-46649246,80895895,-1924067358,-2092353409,-1170197282,1779200128,-1622851655,-57347605,479373694,-239372187,-847663602,1473933006,-1902990854,-34628239,-871731011,-1292981439,-785132317,1597293658,-960336893,2017118339,1429001388,416653259,-297231490,-262359498,-2053304681,-157790768,998349736,2134094967,386350563,-1707659752,870228117,630177265,-39683726,-1431530724,-1795609655,442481577,-639032413,-264605379,1939125253,1326954479,827115523,800159396,-106502120,485742039,-1781447213,-1242093759,-1101000142,-1006553682,-540038744,212041708,471337616,1224310542,-510458920,-2006851801,1461308031,1751684416,-301214329,-1359755545,-474485009,-868173413,1812801177,-1579834988,1150895816,2044611718,-804903626,1286574800,1787049576,544518725,-1805206429,1959504478,394498520,-272448458,-1588040367,-1386155924,-1219701334,-1607203171,1190542824,1274160290,-1335603038,428440674,768363076,-627593790,-498935536,-1899556271,-1757833158,-1246313346,-1175301325,61069911,1664880039,1596770080,1564552049,-562454056,920803616,-1759237752,1643517520,1811992379,313514668,354056649,240666533,396805453,-418387082,-1228850733,222795022,-45078921,106345066,2141509689,712737807,-1862377126,-1942041458,447242380,1613421361,870899852,37536834,-1855014925,263333926,281550049,2139042348,-412210858,879142036,591407732,493547928,-470120349,-422417621,-2138786769,-500163738,2125698993,-431597737,1238994191,1766560121,1092723173,1333062978,-1751455770,-1000104057,-1995249868,-1706958990,2026219734,-1031859001,-2022752279,-1183174550,-1849747313,-2080100679,-330252840,2096362080,1119446187,-597445520,-1912133045,1829020945,-2036112414,-2081245232,1442608650,-1509541842,-545256929,1454757749,-144624312,1987582465,-97307012,-179697038,-1137700376,441260633,-565837550,1146154550,707089793,-1180362182,337474445,1424940272,-2069147093,-100935420,46490426,1219615230,-969818393,-1920456920,-1070733065,2072952367,-2073438480,277521269,-220878536,-1468741593,-1411850183,639319806,-822242971,463613164,-1574649775,68199191,-297505873,-1486588010,435710762,1179067460,-1421178624,510976531,282579593,1744111190,-1639530844,-1625291597,329700607,-1215736767,-1497209897,-791425657,-10970183,-1593177201,-575807115,-351967755,-1521642059,201647566,595752812,-155168233,-1435132282,1178754752,-774091991,1302779570,1294325582,-1567050023,-664597154,1570435652,1203533897,-117700230,-268282206,1662646745,1119421826,1786002536,-1721864849,-1040084450,1511644912,1102502673,1935187729,-1840645725,695825097,-1327588049,-39043796,-303241202,2041163956,406039277,-1132720926,-346533811,-532597969,1740501163,-2076703336,1611420038,-1889103392,381551954,1668820396,-1800103442,-701789835,834838199,1641821476,328662262,-794578148,98833912,-2007490303,906120765,1072646412,891034107,-1000993084,1150672368,1096316126,862740200,1262325706,563952648,-446486013,-2093860537,-632146735,-70536077,1909941444,-973878406,-722376032,-1391975807,-63988130,631465568,-124191312,-1723189745,-1699771474,1668071286,1786387419,1686092582,-91123517,783552087,1023008662,373943346,-1503440321,-1809733855,1048854299,-337869681,-908893049,-394692328,178479206,-94122828,-1603987998,-1276637130,1687537978,-693140048,-1044675087,-963049238,2065832686,369561197); -/*FRC*/Random.twister.import_mti(246); void (makeScript(14)); -/*FRC*/count=336; tryItOut("\"use strict\"; /*infloop*/L:for(b = true(window, ({})); (NaN = /x/g ); Symbol( /x/ , /x/ )) {new Function }var bhxjvo = new ArrayBuffer(2); var bhxjvo_0 = new Float64Array(bhxjvo); print(bhxjvo_0[0]); print(bhxjvo);"); -/*FRC*/Random.twister.import_mti(459); void (makeScript(14)); -/*FRC*/count=337; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return Math.max(Math.hypot(((( + y) + ( ! (-1/0 | 0))) | 0), (Math.fround(Math.pow(( + ( ! Math.fround(Math.atan(y)))), ( + Math.max((y >>> 0), (Math.abs(Math.sign(( + 0x080000001))) >>> 0))))) << Math.fround(Math.round(x)))), ( ! ( + mathy1(( + Number.MIN_VALUE), ( + ( + ( ! -0x07fffffff))))))); }); "); -/*FRC*/Random.twister.import_mta(517548899,1080489727,1962970635,541703345,828465757,434868417,922780629,-1177130693,-2036117931,-54074718,940848667,-326398124,-2024678685,64880666,823621434,-896187935,-1119216797,-1181020216,1717557108,151680273,-1775525736,1324430280,-103013291,1294744731,884405377,-1260498230,-1675293115,911968546,-978016058,1096459704,199257087,864326641,-1220453500,-977687140,214981892,1159686405,-1047585130,1752034155,1530457771,-1779731411,-2116631133,581248421,-404773533,-1584874460,-288918743,-1789901234,-495635362,-1474672106,1539774195,1805407708,-1629598109,1585446704,1237920090,1324636132,-893239829,488943590,-195421078,-422999078,566358779,-1627649135,-1140044014,-336451292,1302048890,829373345,1300501563,1250545795,768548636,-411387620,1651770550,-826845191,-602635824,52056288,-671746784,1669545114,75029686,1758140092,159838716,-1824759304,1302323534,143776631,-1282488189,2138940874,763444313,820313680,-1716319747,-227304972,152509987,-1538153586,-212488375,1068004285,1976258234,-569849369,1319100394,-1315457278,369016910,-249964988,-778481382,1016675252,542486116,-1785634483,-2037487691,-29828855,-1266520042,-2119965642,2044485108,2138082138,174109945,1095728430,1095456972,-1846516003,-26557064,-1222501484,-695795996,-151226759,287435136,343256251,316252125,-1150936219,311846607,558389595,383838631,-58775386,-129378697,1325053379,315832662,1188978113,-850334462,-1384077249,-1348111003,1470526336,-59751119,-1896285527,742167067,-1198105671,-2044781111,-1607544878,-1355258178,191370136,-642966083,-643604621,2142042835,497936743,-1719419366,2090883541,-2111321386,1535927202,-6750267,251185740,-1192198533,-1468112368,1231085919,-710695104,1998428268,-94988254,586878673,-517127647,1297763006,-1292912257,670510868,-135142566,1503187501,1149349909,1922521853,-845951222,-483058841,1971883837,1367698858,1402172452,1438976148,-1062321067,-1460509745,1867746151,1653794272,849973678,1490619349,-707408492,-1013588898,273796349,1179337457,-1426254928,-712842652,1919233176,-1462564175,-1747817661,2010632552,-830539015,-1204827569,151506905,2124379837,1902096512,-516245154,-1468579416,-410620816,1526318344,1776539533,1157677288,1329187278,-239834457,-713937494,1896786877,-308118357,-85353245,-1066796662,-111100935,-925932801,702826792,-1274512117,1246843168,1975335356,-150501128,815807826,1165866083,59588571,1519241101,477879053,429604517,-2122529080,1119029632,-255438597,1929106982,-1516229865,-1327443166,-1377807382,-1464381563,-2021247933,1681709598,647022535,-609227110,-1136805522,-365640565,856535224,-961820693,-1205545843,1833361257,-1761071689,1797842264,90129815,-279324779,-1318128016,-1271746187,872833108,453015904,-1639711479,1076572492,-1669361630,-1026434583,-950171758,1913599952,-1069022588,658904241,885811772,-944073217,1777682295,739031526,-2612239,-424763126,1584188825,585644040,-1384731936,1031502069,814852700,1917477641,2092330430,-933647426,-1372363480,-1612492367,-1305007500,221038326,-469547639,-1200582751,1131806397,-378137182,295126046,-1001416180,-1620019327,597300822,1015415095,-471271439,-1651864999,2113322205,1255237874,2037386165,-132030992,-2002343924,2107134732,461792442,-1081035535,1281134760,-702296958,-948434554,1876727617,1928217212,-1650091834,-712077184,-1071966734,2011855717,708765618,1163572625,226989955,1629839893,560558339,691236365,-1920631308,1235401943,-1126160653,-383383625,905614895,-1117925313,-789468648,1973724078,-1024935607,963121401,532045185,-319936060,694465360,244934756,-745738726,-922515119,434682452,-1116309767,-894005316,1785103187,1513359585,-254666146,984932124,-257198257,1519162033,-718608311,2098169746,1490257825,-1086325753,-1564622112,2044202155,-758343655,477062977,877486220,123357662,422055250,-110407893,2001990153,-1874812546,2060246759,322762822,-182001222,1147900900,-756448336,-791084043,2038074250,1175891576,492569321,1684856725,-2018425236,1912213630,-1249987047,1984339883,-722906227,174505556,1524707285,477353095,556205335,2020719404,231764974,-1627393173,-93442256,-669239645,227176630,1818197629,-1632013678,-43056198,654366002,-49378037,-1778421372,1734285230,686401009,-1659316102,2063817988,-145855735,727743368,-1169919084,827074458,-195388054,109556054,-773536819,-1872620046,1080814751,331572660,1509734726,-1746304639,-1403848771,-1916815633,580775065,-203437139,398732377,1835682793,2073061055,865255932,-169058463,566266418,-60267127,418853071,963139906,1865968078,477187043,-1792695192,1274521128,-1889930912,-913961660,-260313035,1784087753,-468208512,-2127278495,1520174985,-1084254607,1715794872,1117455300,608441474,-1263654458,971236522,14808996,-938471456,-313401233,1189021537,510782584,1152113930,-2125504113,2054879976,2019116779,2116546704,1691160558,1387408371,-890810814,178736841,1866957743,329834223,158992405,-748165761,2066938400,954142207,56807972,1322848157,-208659766,93301579,411393156,281226734,90840467,1638592084,1296322352,-1776861252,-355237528,-1136638256,-1509804215,796115117,-1906483372,-2478833,-1430789335,1517077097,1075798015,-823540000,1795604360,29144224,1258072520,-1664786876,-1877894588,1104557581,-1569114068,-854842853,201690057,-289845377,1203593557,1335148945,-1692297521,-363344178,-1129832231,2131330328,1547628008,507717502,-926091546,933092301,-2042376681,51084402,1057990129,152081953,352123503,1708939069,-1059289641,-1871760930,1205763532,1854513832,-1503371526,1402301751,-1435378523,573144887,-2093884244,1630610285,660318350,2136890435,-997367005,35082016,-852559523,-1417204814,-2104784488,1718498085,-950666850,1051912783,849680020,-1528799547,-1329305583,-2043303887,712873162,1180116381,-982008198,-175995909,-1064925714,297415161,535735139,-1696597737,-463758428,2054804417,-1529052246,214352221,-428600405,-818394464,-1586312733,-85639918,-946426002,-940697929,-1874578423,-942830592,-524362987,2052799889,-1524056334,2001624310,-1356565168,607890841,523586027,-2050267813,377851086,1930308610,1606122400,958707238,1688912503,1163212287,1616122182,1767531233,-176321044,1642696965,1441938122,-336982659,1599905127,-812413303,-1848454319,1471688804,1232644632,-98013722,1158063175,-1329885655,-642483735,-1041636719,-733235481,84727025,1205730736,38887728,-655755147,-294494058,-201439784,-76067353,123067082,-1745622642,831773774,578875024,-8606387,-1233721471,318798900,-533259929,1890711025,1850177526,1605240853,-112689206,1169740205,1846392056,922225211,1416468681,-1230783115,717915195,1129775265,971838306,837393171,-741826830,-717103214,1792956892,511919574,-1594391359,796103947,103271213,1362481933,-2089235307,1976657410,-1052576813,1079171676,705221241,1499462218,825058632,1228701847,1393431479,-449655684,-1539793825,979947907,2120451242,-710946279,397307039,1015342954,-1114968573,1744820536,481102197,-1428658213,-60785332,-733233420,1356269572,-662173323,-300851586,237424540,100756424,-1583745515,1669888527); -/*FRC*/Random.twister.import_mti(64); void (makeScript(14)); -/*FRC*/count=338; tryItOut("/*RXUB*/var r = r2; var s = s2; print(s.search(r)); "); -/*FRC*/Random.twister.import_mti(618); void (makeScript(14)); -/*FRC*/count=339; tryItOut("print(uneval(i0));"); -/*FRC*/Random.twister.import_mta(-1728364142,1608553043,-1847894456,-1194305357,-87748239,-1627800874,281419818,-1850822179,-247824335,210019990,-969001057,-1325967001,-1510427507,-1715472900,-421652570,2029136671,982086748,833939582,-1177968939,-1078199926,1587248462,-1526246063,932094322,1845635824,1555049988,-915678331,528882075,-1550502420,450340916,-459160629,-18019913,2137891372,812580157,-1936760640,-1323283820,1333791972,-23684219,-1108422753,1083895734,-1563350994,-259706894,-1450856374,505237903,502993793,1327990892,1774175915,1154353381,-243194315,1415890106,-618407714,-114769884,-835250747,-1690669790,443259235,1642174302,-1267707551,-1933645598,1667213963,-870680706,504985718,-1156525454,231434165,-2147247697,-181005558,545851098,-2030692918,1919642243,-750568841,1935620408,1645202209,-1355520241,1816632261,1045782492,-1726089068,-567130736,-1200924633,1989653988,988880207,-2096924134,1208164984,1210255656,160162020,460915546,-1428254256,1881758427,-914373215,2012514042,545186476,1454618847,2101074577,-662342012,-1054101233,1264498358,-527516542,447058965,-335711199,1065205431,930185148,-325166022,516087846,-469527685,-1754283690,-346629719,-26892446,1507227272,1533875005,504714456,302037746,890297716,-806286675,-576412165,1094642616,-1541296514,-1914221894,1722869113,1357052639,-1795060588,-810735397,326329701,1982029736,1145456530,1106303054,-223138973,-283275520,1969214623,-2015707294,892197330,156017923,-1405276297,930391630,431571339,799548103,-15163246,2133819593,660159263,-122141169,1636803669,-1427408918,1880259133,-262454920,-456103826,1400546477,-562288109,1706632988,680723502,-963584389,774244295,1879900686,903258125,-1471481158,-1053040931,617763153,-222772584,1504175334,-31055445,802524999,2052522374,385692621,-1958510716,745578528,2057407044,1946725190,600126324,-1353727780,-509766031,-265597280,-943990140,-652426862,1109974802,-903586830,2035457250,14331582,1003759175,1243125880,-1667497653,1925878299,823611334,-895687594,2067398190,896497959,-2139428474,-925244374,-1125371514,1293148815,-363178646,1941760141,-146681080,-451933408,21154594,24430524,-2014101978,-1501369942,128105304,-1283842353,-2106071883,149909996,-1477095775,999081432,1660365204,-636950392,624856445,543565465,-810533030,-1540293654,1709130204,-902820147,908507943,-538160990,-1615112157,1647890218,-975835580,1297218859,-1545584762,-1414415821,676315534,1732360796,2113179061,196345721,-2061658529,1603476384,145187221,-1904729984,591546723,-722639518,1948190407,735651113,1314884930,-958030555,-1275969335,-933394924,42797977,1071631336,1901225405,-2109045202,-465910927,1788711461,-1574896253,-1635169113,1944498434,-293721,-1807759028,1895258621,417838009,884390989,-908807083,-630760164,-960732574,2126478348,1873604566,770217068,-724053808,-1321058976,-546470026,-1184712516,-792566423,-320242137,-170532913,-396993337,-1193759095,673589267,748872091,-1887732661,1806489915,-1450235631,1796724632,427915916,-465089707,1535917545,1823819589,-424731122,692066640,132917859,1268255661,-1837202438,-1605620450,-751864578,1943999481,786773463,700775284,-1101866661,-1076155290,1576090022,-266140313,-227360412,1855756502,1255841241,2016882722,-1878969293,1853318006,1860526800,-868142540,777767609,-332309110,308732026,834582298,1715489505,-643161802,822025233,-975332848,-1209444478,344784717,-655295638,1169340051,-235989438,-680874421,1089896914,-811238728,542891044,1935257907,-1559892191,1868704115,-419773244,-16199357,591847250,657610398,2138427346,-2135773466,-1804522578,1184381612,772141416,213208564,-1363730246,-745244402,1646776633,-1775471420,416327101,-1386273571,-1702604622,571388505,1841403765,-1355069934,-1137524734,-352063506,-919971929,136710836,918419867,-1016787964,2014950065,-1549819293,-1409155391,1770624278,1865324890,1785825794,-147569306,-421926653,-501787584,178133613,1733103790,-698979867,1502475382,-322622410,228777120,74273969,-687462696,-1171211238,-384929699,-2096332421,-1903682793,-1506602861,-1021281020,2043132222,-1322356107,-2054205033,-1802956837,-332509263,-550144548,-16254927,-1704465997,16436788,2046024777,793157598,1530695673,1273805916,548039674,227323020,-1753668266,-33896578,-602282217,2087994012,-929723347,451165261,1339879570,1743029694,-2090186986,521961751,-1480776921,-1098067905,-1249885883,-1411399442,-343706137,262706645,863449218,1603722123,1669028100,-1059741332,-506052483,-1698423061,-563208455,-710310394,660605670,2105846943,195826789,2019049519,1424792786,-852484890,536541324,-732286494,1817828157,-86884758,1702798953,-1185590892,1828531853,10391889,-703835414,-147717791,454418369,1569011177,-2021407244,-2104824230,-402457680,1226648992,-1924197751,716873577,1046105785,1186052268,-942458306,-451211072,391645834,-1875409985,-356280197,2020338769,-881577772,1525469541,-1416425486,1867977410,-501078733,-413140726,-1000044714,-214578630,-1708641565,1887362889,604860364,1864379563,-431410269,996575315,-1547718201,1419281534,2110693665,-799538200,-380902888,442250731,1932634477,-851672207,-2113090551,853232846,183853033,-282499740,1997427805,1057067448,1412182361,-1943525108,-1406005677,-1820444164,-1289985643,1627909493,-1393769415,1370461127,1860815161,-835352086,-1937782783,1100831530,243799270,-1511809136,-391965546,1906241459,1271567525,-282146475,1325303556,-255360167,1508042065,618808179,1135913089,1192224102,1286811131,-1604205528,-617115537,526580039,1066454758,2142861839,-409172042,1637033557,1787771342,-267297819,-135618798,-47471849,-671398389,-1482376802,-1763715807,1378860986,182308705,2017536695,-2082025007,360624390,1787664563,-1516393878,-391217245,1681964444,-354032125,-405660745,-761734566,297480262,249551393,-1693501958,-288828084,73824359,475704996,-1965999121,-567315487,-248505656,1174660224,1979368746,-133209292,456316008,-1168017791,-905926763,351744203,-737177214,-35970536,1020646781,1462168042,-1974978503,-1057450781,-1947998271,1496805010,-1145643434,941324116,-1702692576,1086297251,-93806633,1414856871,-1729825422,387472957,-758100355,-1173592048,2106414067,1818306505,-2097658103,-99372136,276191009,41263225,167495947,-1299177016,633639758,1456784929,466691961,-673431950,-1807886622,1544957374,1740380837,-923987658,-939333825,-1118157231,1099221456,-1164300568,-1666538339,-533377274,-1476916730,826309425,2121199122,-859345797,889685625,-1353066727,1258580012,-338800566,1349430101,1619647792,1697237907,387052607,983828188,-2045124237,1681414755,946459263,627278495,1001370100,-1837198682,667905477,-356240771,325539575,-1002348901,-1966148740,502955364,580859371,1160650901,1318429032,47398694,2048032053,-1067838081,1332736752,-684698086,1732460921,943511902,-1340449768,670473298,-815554240,386734567,-1203201406,-140226952,-1457298018,-1660717566,2040985099,78086344,1826844043,820188994,854086413,-877625373,-1040572524,-2081885723,-1159454288,1149214653,411417669,1618734304,1225910969,152751525,-1766212062); -/*FRC*/Random.twister.import_mti(3); void (makeScript(14)); -/*FRC*/count=340; tryItOut("\"use strict\"; v0 = (h0 instanceof t1);"); -/*FRC*/Random.twister.import_mti(18); void (makeScript(14)); -/*FRC*/count=341; tryItOut("mathy0 = (function(x, y) { return (Math.atan((( + (( - x) < Math.fround(Math.atan2(Math.fround(y), x)))) + ((x >= (y + ( - x))) <= y))) | Math.hypot((((y < (x >>> 0)) < (y % Math.fround(Math.pow((-Number.MIN_VALUE >>> 0), ((Math.imul(0x0ffffffff, y) >>> 0) >>> 0))))) | 0), (((z = Proxy.createFunction((function handlerFactory() {return {getOwnPropertyDescriptor: function() { throw 3; }, getPropertyDescriptor: function(name) { var desc = Object.getPropertyDescriptor(x); desc.configurable = true; return desc; }, defineProperty: function(name, desc) { Object.defineProperty(x, name, desc); }, getOwnPropertyNames: function() { return Object.getOwnPropertyNames(x); }, delete: function(name) { return delete x[name]; }, fix: function() { if (Object.isFrozen(x)) { return Object.getOwnProperties(x); } }, has: function(name) { return name in x; }, hasOwn: function(name) { return Object.prototype.hasOwnProperty.call(x, name); }, get: function(receiver, name) { return x[name]; }, set: function(receiver, name, val) { x[name] = val; return true; }, iterate: function() { return (function() { for (var name in x) { yield name; } })(); }, enumerate: function() { var result = []; for (var name in x) { result.push(name); }; return result; }, keys: function() { return Object.keys(x); }, }; })( /x/ ), decodeURIComponent) >>> 0) ? ((( ~ (y | 0)) + Math.tan(( + y))) >>> 0) : (( ! x) >>> 0)) >>> 0))); }); "); -/*FRC*/Random.twister.import_mti(359); void (makeScript(14)); -/*FRC*/count=342; tryItOut("\"use asm\"; /*bLoop*/for (var vybjpe = 0; ((Int8Array(/((?!\\B^|[^]{1}){2}|(?:(?!\\B))|(?![\\d\\S\\0-\\u00fF\\n-\\v])|\\u002e+?.|\\s{1,3}+)/yi))) && vybjpe < 100; ++vybjpe) { if (vybjpe % 8 == 3) { g2.m0 = new Map; } else { i0 = new Iterator(o1.i2); } } "); -/*FRC*/Random.twister.import_mta(680978191,-582735582,-503277984,-1712417544,1154533646,809193530,-986483485,749071393,1505274823,1850579698,-1389705391,824628467,698440855,-902145465,-1987277859,500837247,-824826155,1927184084,1153966852,852003662,201908099,-649216285,-553390392,1732590242,821186452,-59694213,798020687,198864054,1821076228,56960196,1760484252,285756926,-326883301,553371931,-1397475674,-55628680,1819072738,253388057,-213208796,-1625461005,-1868144781,624153122,232590332,1475156863,-1982186426,-732981242,1199640678,1364519438,-1909563992,671933548,-2082628836,-1648020103,1031183990,715980356,-268357374,-1956382976,1789634963,349599601,1174004690,-224326563,-1461495976,-1509364304,783759580,-596858271,-1354169162,1933786210,62213233,413692393,82022774,-549646177,-2117946364,-786487804,-2131676085,780433890,-877328342,-559397534,1825778414,1881100990,801834393,-885043775,1245411190,-42269964,1284353465,-973185343,-33293682,1022731803,1552702637,305178776,2091044344,857752069,-972183874,437657940,-673457673,-1245094784,-965135615,916927585,-330161972,-882602742,-1734724072,212713724,-580373110,-1098095695,1978604752,346690035,928573584,443816810,1670235594,-1089092400,1449019946,-1818599490,-1971678241,-171783032,-1804894457,-68423131,-1079634031,-1852836944,269939198,-724076022,659226992,-1460529114,-19456058,1365327782,831333120,-1772249158,-69059451,1101281409,667915487,1159102705,1330471916,1104904600,1929872292,56198452,-1313236655,15471977,1705772859,1647084852,1279448423,1521963927,3594216,-387265257,-1341491670,1281243649,646550313,-1934788763,-1386708513,483130689,-2113214185,-26299606,2017745556,2070747320,829565935,690632301,1856393738,-1344247551,2087868084,418321293,-995954920,510695611,-2115735966,-1452469312,1712486429,1985905439,-548736680,566533336,-984620799,576267410,-703312351,-37827820,-987274497,-615431049,825044078,-91468306,-372563897,-1572784637,1328819915,1401933775,-830463391,770856002,-482946692,1695858512,1937573418,1691491871,2040045803,1360359638,-658565402,516123419,1227338852,-757074121,661982747,-381833874,1076240930,-2020605129,175852740,-976666655,1726516509,-807651558,324256644,866692076,1461062001,198042398,-967552669,-253212233,895171724,1255373232,202042273,-437423842,-527070959,-1042807511,-917177065,-716261030,1451437012,-1930204735,-1250518067,1350590479,1598271653,-1760435897,-1371988882,1345717267,-1372351932,515109360,-1109904912,-1932129325,854789876,-2088968356,-973747982,775228164,751026287,-395872332,-1184175576,978232179,-2046725876,-445560049,824054573,774284676,-1058826772,-778017319,-1207858050,-723935280,-1747736961,1673443377,726222438,486007518,-1635138170,1932839968,535679066,664146485,1301755208,1004447848,-809896747,-177731936,1071916050,1598327855,-1597997275,-554084828,-458857606,-1888930756,-297354632,-1383449593,-602674904,1675487241,-1102133279,1080748772,1902118959,434582318,64673887,1482794065,1809039576,1072974862,375676197,1501366100,-854344047,891193679,-579806725,396822249,952324209,1858692235,-1502163368,-1757419866,467986699,1654327365,1146380951,1360528238,-228943950,501605880,-1464628926,2044885955,1672029851,-539433245,-1854251816,144155078,306839522,-1722701197,980438111,459937788,-1300175802,674660845,508177992,-1557366516,-1964274235,1405090610,50070615,811918268,-429928893,-1636905708,274993751,135903429,-1693277229,-358670544,1978746299,-1573647905,-159171421,412033776,1834404274,1326807010,764039025,2096863883,2031671250,-1522418712,219470304,-780042483,-1567437603,-1347219578,-558076894,-414967122,503607051,389878953,1106241701,359128185,291772628,1651687385,1253274098,1121525607,-404127642,664715408,1027836098,2012007464,1990080057,46002737,986350391,-525355636,-864239992,-1969302896,-1441410813,-93145696,-1512255446,-83051367,-1688956815,1291099115,1034405277,133149979,-796069398,1625040386,1780952045,2060962514,-1466365952,-1748790386,-1617478452,-1189692622,1657387958,-849721906,-2123129716,-1100800209,-1319063034,-1554169248,892201337,-423781585,1020365073,-260632272,-374381318,824892614,943423558,-2001805327,211732668,-2066956463,-170778239,112802091,-1939252244,1330121377,-1805107036,-1159922445,-2012343992,1333793899,425340934,304357196,-1801012745,1202370210,1789232061,872257642,-1701344973,26610541,947848345,1938570267,333744144,-159474025,341662709,290315605,762248148,1543106413,-1455667043,1308739287,1050643694,-368001533,2046394790,-401069038,1645160452,-920925811,-1976507887,1309939999,-1889141260,1697777697,-1100785841,1106833041,902120046,-1414134773,106801160,-1866521552,-352563308,23287055,-208568593,1861605908,1516635770,-1430424970,1241096345,806035410,272709363,630948113,1080157787,1464279139,478229845,-798590341,1869177306,-126602292,-266012953,-1757544336,1774298991,-1157955182,-1216546063,790220489,1492107375,1413563574,1116133353,-237300177,1027459145,1786964120,-656315345,-998256517,-1185148481,-1779159036,-126616865,-422206242,602716981,2053323157,-163848737,1974363656,1947560095,-1895933798,-658425470,-1719551536,1450173308,923404203,-516484494,-1990424302,287761868,1368050203,1537690899,1712119619,-842863502,206799507,-1010780671,-28874733,1953547859,219946898,1405589630,-1403981234,-2026679579,1629888672,-1843968734,-1634773663,-1430434216,733605443,1714139835,-954101303,808981022,-25798548,1494828271,178922836,2081787770,412797497,1940171071,-1734267942,748728265,-1562720910,596962264,-1941003892,-855547948,1169555946,-1961206501,-1543216820,-1451696608,2019097727,-1889739042,1920731378,-1031333875,-1263002771,2053138856,1774499781,-824095845,-1363812461,945057347,-1165553775,-2088585161,-1523313729,243667301,-1198347657,-772427343,219836912,-24598295,1792144006,-95397837,9252554,661497446,-15102350,-1408333198,-498938531,1885295030,-1595128572,760375870,-979476938,469210953,2054382208,1729771450,-862105240,1686245260,-2033595144,-1231903590,2024814891,1533244241,1388299159,-340979076,1629795083,-1651382237,-1645553520,570273411,-1630089484,175741139,-1788851525,-1400330559,1939953554,931229541,1128872056,-32765366,1290151596,-1520449690,-720385082,1049215808,1534784421,209299718,-530199425,1722783740,450904870,-532982937,1568795690,1788992348,-1581001560,1923569074,1765180980,554121419,-213137023,905303154,1772004064,1960242931,-1067523012,-823421764,1785427204,2091939187,-1774481269,-1787822117,-841026940,-86481308,-2127317501,-1338574,589330832,-1978381452,-1767344737,1945746703,-828173737,501309034,979075870,-83597679,-6452044,723150922,-1900918292,-1040757861,1035474562,1417060213,1351278234,1453139390,329493323,1644679058,276866067,-1665035939,-1507233880,554232203,1592223680,1399605216,-272996456,-296923588,-963663287,-1436819535,453636194,-1117972138,-1932053930,-942264325,-696972141,1392547744,1114325278,1558453173,-1018659944,-423210266,601456224,1274993428,-1982296584,437322308,-533907316); -/*FRC*/Random.twister.import_mti(513); void (makeScript(14)); -/*FRC*/count=343; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return (Math.log1p((Math.fround(Math.min(Math.fround(((Math.fround(Math.ceil(Math.fround(Math.fround((42 ? Math.fround(y) : 0x100000000))))) || -0) >>> 0)), Math.fround(Math.min((1/0 | 0), ((mathy0((y >>> mathy0(y, -0x07fffffff)), y) !== (Math.abs((y | 0)) | 0)) | 0))))) | 0)) | 0); }); testMathyFunction(mathy1, [Number.MAX_VALUE, 0x100000001, 0/0, 0x07fffffff, 1, 0x080000001, -0x100000000, -0x080000001, 0x080000000, 0x100000000, -0x0ffffffff, Number.MIN_VALUE, -0x080000000, 42, -1/0, 0, Math.PI, 0x0ffffffff, -Number.MAX_VALUE, -0x07fffffff, 0x100000001, -0, 1/0, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(1968962556,-667155539,49712299,1559750761,-234023394,-1033336056,658664157,-673460936,-29555468,95236454,-1886403655,45998944,-651717155,1672323710,-1776464911,-1951997477,-757515423,607762826,-1982111337,1978699914,-1261618527,-1676637813,492259141,1109336496,227365652,-2026276255,904276361,637830001,606671731,1947634581,1606616732,-1278504569,420687401,2033416841,-2044484112,-2045601130,163283491,1348796413,1820132916,1713857943,2105550808,1577141649,-423659050,1181469130,-1677927892,1593655418,1109958047,-537509125,-1871076787,-1196237775,1109269095,-1496795676,-209462276,468460468,1070776853,442939849,-422711953,1458149750,782659179,-1934585298,-897200376,20217618,-2144017852,-1231843287,-251848925,-1980435669,-992591312,1507231144,-795154477,-1927039376,1692144017,447782139,-1459268382,1370112582,1648901411,632163593,-1805690095,165568758,-575588705,-150274407,-1607281637,1441998939,-1873907204,422203388,5501467,-2022273897,-143782880,1732780563,-1976388471,1595104293,1435622035,-1052642021,-1035631206,-694909290,1619128221,364772286,-369301751,-2125708072,65069460,-1515304994,1649074251,-745582520,-351976359,-1796167018,2135295303,-213779736,-1422722811,290409661,1611241498,315929259,-732644905,-345415393,1585071708,1163461408,-302781849,1183672730,-1829169294,-2108673783,425950691,-2115819766,39939413,-493434445,195289367,-1013708549,113451757,652341442,1505836538,1475993664,-2147383864,349285356,-1003316052,-1708922050,-1559373589,-859536136,-41217038,-609495584,849008108,-1232482450,-707924097,57034820,-1382519224,1642162999,-25511834,1379211283,1250399983,-1175426345,-505309343,1985721753,-1462319385,758711273,-29557637,13780576,-843989977,-2144001776,-644276299,-2029080342,54474564,1048310897,265058885,-428333609,1111637295,1225453392,1241648458,1536430904,212696675,-660386669,-551767774,-1992535022,-1651075888,2039590652,-837947530,-669453170,-1581872834,-1975236279,1888596740,1889744211,1016225573,1294671309,-458109149,-1395557170,1723813204,1595705038,-1447489944,-743172031,-179733310,-1366847162,651116251,-1186231587,-96615200,2113032059,-1600441766,-1103511309,1148298139,-1050239461,-1453567391,-2007061927,611074932,-420140270,1433153301,-322978352,-220250289,950686164,904468683,63722578,-1797269721,-934634020,-1492920949,-1362196044,-2061681867,-2062754858,1509863030,1776820872,-364810054,200569307,509047338,-1865768500,661044805,1142513282,221428198,1107821389,472633006,-1077946980,577180110,688144237,-557709190,-1787276628,-736197802,703500008,471065291,32912429,-1220018895,864726871,-713303606,120823851,637751051,-1573010741,1874984590,1567531097,-362147929,-863815954,1842762513,-1722177230,-230914101,-584068276,-1359347633,-1357841613,1746912446,169439252,-425424165,1118131532,-189409416,-2065310631,-398077581,1203050548,1638930799,1393184335,-1143265975,835383816,1529730396,-1623393018,419827707,664473912,-1964965119,-1856086317,-446915318,1502930520,2044543888,-272975467,1925170747,1497241153,-2048115278,743179790,-1943637039,-952007304,1905934433,-2092776095,-215142558,-1763385795,244154649,1218533992,861938179,117410252,1419004725,-225170994,-1290791864,-2038804999,978604416,-2110201500,1165996017,-1995432523,590607823,885883347,-2076051243,-577359853,-1798998655,-541069065,-1665824010,-1197381716,1936679266,829679126,1234711448,-932222243,1788439427,1164305125,-1797649333,1227937705,-2109378303,1136838169,-572416917,1913085810,1433263748,922261186,-1594083482,2023988039,-1069719671,-1229004960,1303609809,320583267,1888090690,168055595,-2125659819,266328460,1713370857,1073111123,333086291,-1172331239,907352381,1794698273,2076098427,-832766816,747935226,1286784372,-1601267040,-1248641692,716778153,-1035062311,-1971127444,1345931411,-616645671,943986968,1469032,569487929,1001665354,-1072201881,1725882266,-842955516,2123487776,-2051391676,2020189153,602249698,-1275454470,-1428682812,462034347,1301133818,471345543,-808838226,1213920885,-1252638345,-1131492903,-474736979,184400816,-1522840847,-1979353904,-251358833,484422182,313367336,995999964,-649077707,963904852,-496535483,-815085772,214495921,580814240,33568638,-1408263725,-1360893167,-745163162,-200745943,-994801466,-1984514941,2130549754,-718010442,-1910718644,-1872438432,1571729184,-1550447804,-7935518,-704558743,-1865852359,-818593831,-77939222,90126955,2056565511,205171719,412224103,-1960711878,-848959083,1134263271,638625594,-1090957495,642033303,208499671,1152328538,1301662503,-257013292,950079220,1389609118,1628287918,-1265815039,796923152,708894678,-273949195,575939484,1709304543,-1324083003,-1891376342,-1538566877,5979634,-918344199,1765974182,-734517472,1420309234,-1873074768,-1253807918,1831885637,-330011417,1578409278,1704400186,-1986929610,1113434150,1073106356,1975852171,-2083152412,1256961763,-1280112259,1202452114,1267240045,-327024994,1137213651,1376430993,-1441707501,-641653039,-1517562496,-1843480435,-1087502752,-929824282,150084431,-115703010,-858454029,-359007093,-1925377160,2094487114,-273718872,1998358470,781296293,1886617098,1295444165,-596636529,-1324934051,-438284045,1134421154,1854946797,334501657,-618993448,-144670937,-863274594,329402232,-717309746,2138222052,286020669,-610149243,-2028352400,-1187479020,-1299260141,2055888964,-273733558,-1796583645,-1578405804,1211210663,1113110769,-47357937,967577696,1815175801,1314863073,882892962,1697059553,175712453,-1176704069,734758101,1169810490,-2144125846,-1265178394,1605613214,526249082,-1922975392,-298166167,188491495,-783265118,-915879698,-1954014018,-1098940159,-909017928,1075214344,-1910694986,990786816,-1326083061,-2030893698,-163404291,-2102083877,-1940019215,956731598,1834724389,54241309,-878298745,-994715236,-483177638,-59185930,-2028771063,1955272374,-1745409050,-501549270,-1027460936,932587142,-459660755,-1462287058,633754749,331139341,-1653913373,-178857059,1494511710,1663781457,-426046579,1247031765,-653515956,-1500353965,1767413020,-1034940826,1622890426,-547192936,926708648,911669007,164313111,-1177176038,-1853358745,-2136792095,-1077601795,1943337186,59049528,779830704,1494873036,1501917957,24485344,-795328262,1766979741,-565369556,2105699320,1734781504,1606639108,1103291623,161186764,-615265423,535414535,-760227443,-204385867,1688341385,1387632483,-1729540857,1525448785,356442953,-1730677524,-533197447,27989444,-1191952506,-641642426,397363166,-1411978029,1158340768,-829019960,1934191642,1686101042,471696690,420613181,496406974,-1464952787,185563267,-226597140,-23472350,-1367918553,-621441877,-544718603,-161630855,-450058444,1282510953,-2006040647,-250956936,305829771,1925061951,-26664707,-1652551577,-1242104367,1360298154,1703108041,-2121148175,-98331242,-1009389595,-1282265128,1945751928,-1294416643,-1733230713,-1867369497,-703643061,-1488123902,1369718226,-1777950158,-147527194,666101564,-292486635,-2009492327,1421051227,1600904845,148302587,1436191557,-1153993348,-1211624341); -/*FRC*/Random.twister.import_mti(97); void (makeScript(14)); -/*FRC*/count=344; tryItOut("this.f0(p2);"); -/*FRC*/Random.twister.import_mti(109); void (makeScript(14)); -/*FRC*/count=345; tryItOut("m1.set(i0, e2);"); -/*FRC*/Random.twister.import_mti(126); void (makeScript(14)); -/*FRC*/count=346; tryItOut("a0.forEach((function() { try { v2 = Object.prototype.isPrototypeOf.call(p1, i0); } catch(e0) { } for (var p in t1) { try { this.v2 = evalcx(\"function f0(s2) { continue ; } \", g0); } catch(e0) { } try { o1.__proto__ = o1.o2.e0; } catch(e1) { } o0 + t2; } return g0; }));"); -/*FRC*/Random.twister.import_mti(229); void (makeScript(14)); -/*FRC*/count=347; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(238); void (makeScript(14)); -/*FRC*/count=348; tryItOut("testMathyFunction(mathy4, [-Number.MIN_VALUE, 0/0, -0x0ffffffff, 42, -0x080000000, -0x080000001, 0x100000000, 1/0, -0x07fffffff, 0x080000001, -1/0, 0x0ffffffff, 0x07fffffff, Number.MAX_VALUE, 0x100000001, 0, 0x080000000, Math.PI, 1, 0x100000001, -0, -Number.MAX_VALUE, Number.MIN_VALUE, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(270); void (makeScript(14)); -/*FRC*/count=349; tryItOut("\"use strict\"; \"use asm\"; mathy3 = (function(x, y) { return ((Math.log10((( + (( + ( + ( ! -0x0ffffffff))) | 0)) | 0)) | 0) ? Math.exp(Math.fround(( ~ (-0x080000001 | 0)))) : ((( - Math.log2(Math.atan2(x, x))) | 0) ? (Math.fround(( ~ (( ! x) >>> 0))) | 0) : (Math.exp(mathy1(((x != y) != (Math.exp((y >>> 0)) >>> 0)), ( ! (Math.tan((y >>> 0)) >>> 0)))) | 0))); }); testMathyFunction(mathy3, [Number.MIN_VALUE, 0/0, 0x100000000, 0x0ffffffff, -0x07fffffff, Math.PI, -Number.MAX_VALUE, 0x080000001, 0x100000001, 0x07fffffff, 0x080000000, Number.MAX_VALUE, -Number.MIN_VALUE, 0x100000001, -0, 0, -1/0, -0x0ffffffff, -0x100000000, 42, 1/0, -0x080000000, 1, -0x080000001]); "); -/*FRC*/Random.twister.import_mti(561); void (makeScript(14)); -/*FRC*/count=350; tryItOut("L: for (var v of h2) { v0 = a2.length; }"); -/*FRC*/Random.twister.import_mti(596); void (makeScript(14)); -/*FRC*/count=351; tryItOut("mathy0 = (function(x, y) { return Math.hypot((Math.min((-0x0ffffffff & x), x) && Math.sinh(Math.hypot(y, (( ! x) | 0)))), ( + Math.cosh(Math.fround(Math.min(((y + (Math.cosh((Math.fround(x) <= x)) | 0)) | 0), (Math.min(Math.fround(x), Math.fround(y)) | 0)))))); }); testMathyFunction(mathy0, [Math.PI, 0/0, 0x080000000, 0x080000001, 0x100000001, -Number.MAX_VALUE, Number.MAX_VALUE, Number.MIN_VALUE, -0x0ffffffff, 0x100000000, 0x100000001, -0x07fffffff, -0x080000000, -0x080000001, 1/0, 0x07fffffff, 0, 0x0ffffffff, -1/0, -0x100000000, -Number.MIN_VALUE, 1, -0, 42]); "); -/*FRC*/Random.twister.import_mta(-158479634,-27045456,160041890,524430744,1834563155,-1912166677,1719152059,-1884238930,2054657607,-870542947,542327326,18237488,1582744623,-1203320079,862985671,-768602381,939341338,753998033,-172250257,656767148,-681850392,518012548,1213018238,-755069270,-834912483,1403027883,1062115765,-433298909,1331141106,1911889520,-444961498,1544616957,-406018627,1021812556,919359936,1577118762,-70157886,-2054321561,-307170170,1967693697,1518988425,1888959544,826232692,-1477499131,-1228962068,496446352,619522351,1847224217,231071521,-252336477,-360785428,-1256920563,-1485836975,199017133,-387138959,1170286528,476597117,-1597364913,1982543645,678694721,-1662373114,-1323471489,664873016,-1561600020,-1285360473,1905997313,-1208899060,1176878097,-1977965914,-121307281,1097746028,1810892693,2044294430,1938649803,214333995,706715459,-161354392,-849720364,220391385,1576769009,1377457318,1075225433,248356623,1678518749,-1558190348,394683497,-1527540169,-1467086279,-1817834452,-1179028141,7643625,1256801816,787720049,1769700219,-1102572231,-230328891,1610337814,-862860886,-51545210,-485366243,-124257658,635623965,-1041217035,1490301821,-260996660,-1937263531,1605504311,185268493,546798977,902949194,452896173,-309748235,-1359927711,-1762142942,236787944,172434340,327586268,286054322,-473769761,608232067,793820431,-1470998814,792043332,947115651,-776812327,460765307,-815345139,-1462270006,1873707403,832931675,-797262468,1037600567,1064710690,502186920,-1957764739,320428835,-1035418373,1434201395,686534974,-727959230,-1992076546,-530635861,-953266306,-1977774937,-1942241885,1345176437,1940035444,230748237,1884367062,-708692480,1139549448,-1851053188,419652420,-1405006848,1123206549,-1861756072,-278613382,1084467409,-675886644,-1622211576,2068195756,1690559042,609323600,1141752991,-1431252591,-1121877732,-1219527748,711541217,779960349,-1074808132,920713750,1172678614,1157456023,-1737435909,-1594736718,1068867787,1717333631,-1124134768,-37858636,911558154,-518493265,1737878318,-1800576819,1723415379,1313981598,-671498740,755232156,1980865267,361755022,-288076273,1751345281,566619577,1714667303,1006316694,940262087,508015059,-1156273616,45356077,610617699,-1831259577,-1573124073,511454429,-1273964552,-1032594458,27661095,1259897579,-1387998900,408142496,-250330573,520521283,-2043882055,-1383053350,1279310805,-651887778,-1356310300,-1692413393,-1274409613,-240274155,-1614850491,-528161470,-1746502057,92278204,-756977180,666365638,522625555,-784845609,-482389217,1636600660,1737554809,-1960753691,-544224532,1206180534,1419232801,-328123679,128358932,228026624,2074308974,-1938885358,1733808967,-1313514120,-1259725208,-748228867,-1129846955,-108493086,-495856233,-2118891216,573161638,2097232986,2142409762,1914166210,159699033,588670843,813305265,-1768020515,1453454811,-877479031,688940916,-924022904,1401849214,843518623,791287760,-1431019361,-1884851300,-1988151481,-381159093,-782346930,-610438252,-1159807157,-989820985,868831661,-238476286,698617819,2117593388,-987186752,-155994634,1951615120,579828066,875604415,-1857796295,668421263,144901707,1538142004,2089497383,1172324697,2063577964,721493981,694714355,1734169633,748540794,-282041856,562409434,675985426,-2041012521,1687920659,-1326254923,-1002412067,-1533784903,953808605,1934226590,1561685202,-827164806,-528318667,-1851400466,1694784402,818581727,-1794576506,-1525529054,-438162868,957680864,612069453,2138071740,-1285423801,-220260075,501582124,-204380791,1819769883,691805885,942693576,-689709230,-1218603260,781490109,340745874,1958147379,-820100640,1217833977,1055868871,1332027602,1547703780,46965837,-1749417208,2123190727,-533279588,-699520281,-1813632836,-1289400258,1708523575,-993657380,-1368831842,-1314156167,-1359342763,520600801,331809101,-1287377720,1625947665,938218800,-1668663857,647888161,-898835424,-1180657133,919114425,1830802785,92238547,1034970246,1482847761,-1892513251,-1836365202,-1308223681,389376335,-720749378,2047406074,-1770269169,-833856747,-225205445,-1943593496,1546313895,893735248,1630758791,-705081260,1214525270,-1600443164,1433486624,-1653276813,1361959114,-55710910,-1011256038,429650917,919529675,565600619,1282982370,1719512761,-2032447525,100440627,-650791192,-2118916630,1365814643,-1468678851,1833373795,-1440074641,-1705915023,1509741733,-1616189067,250755277,573859776,571395664,804894076,-775486456,1193981840,636004747,-1013862227,-1898478845,122609103,-2103071201,-2139622009,1577798293,-525363222,-724061445,114532317,1649820272,810934694,-2121461978,-932944522,528209232,2080504764,-1400811231,833645414,-559748160,-1359359754,-708161886,1432665578,1278192823,1370437103,807850015,1155892666,1417951053,-1382641023,1265567740,-1609385766,-1493899764,2136144078,-1410600670,1637475708,5037525,-1218057915,764798253,2072394217,1306047706,692484364,2126521615,496870093,-1069502973,751622377,-34754012,1259880118,-342028733,-1779976730,1120856893,-603347763,1753501041,-373013722,-1803552680,1507608035,686887623,-1430882508,1837052562,1505047633,-670875708,1007809405,503641117,-1407434224,895038576,1110545608,-1755963065,538582380,-1726218718,-366261795,780595451,-1691746017,-883734374,1122530364,142588360,-1174118182,-1091726179,1107007334,1600974980,1255581823,-1395719316,585262056,-191582891,-1691186212,-1746662039,-901239315,-105778120,1972736166,861902629,1668791847,-809852477,-1214130275,-473471643,-2006412670,-1883312727,-751549644,-2036456956,-554654861,-584208604,1422599072,429270123,459372796,-1786953611,1818231172,-1207920269,-1581250660,-1766290958,1935525195,2131256290,-1253911707,-767703674,-973164882,-789452295,-2071442413,537426752,-364566636,-496314435,-1747274815,1261605693,382005644,1386324225,900818523,1539318913,598814177,-145365694,100317263,-348526602,1862649364,-251662802,-214799300,-476110649,-894928772,756132459,-1945614566,960023321,-817795445,-857196310,-1181811168,1867760596,-1857134398,406653907,1411832720,1354849648,-385891181,1895617101,-2146916872,-281298556,-1111739785,-261800046,-19242775,-1358322909,-1231088616,967390565,952346484,-1048773522,-811299056,1624935300,-749794474,1615049284,578887704,830468461,-1201951734,-949709973,-453309062,1659862912,1159363552,58330151,-2060052430,798771399,507196400,618104613,1518658466,-1936687718,531430203,1515231915,540833011,731253491,-261448212,1833590478,1183783574,-618272189,293832413,347825004,926981322,868132383,-840711984,-2114338110,534034087,1854479265,772430393,-1438197969,-1271151818,1644798085,947964848,280349016,-21934478,-1558538164,-1468334509,431373883,99396430,-399273706,111610949,-2101740084,1585918276,967284895,1466234233,1517889981,1686780206,-835932186,2021619335,897853790,-434537448,1401651399,-726846689,725264146,-770350613,968536986,-1552487388,383607952,-101464079,873594020,-2065125834,1828428551,-1202755756,-1084775838,-1848952019,845287362,321634018,1013732071); -/*FRC*/Random.twister.import_mti(191); void (makeScript(14)); -/*FRC*/count=352; tryItOut("mathy1 = (function(x, y) { return ( + (( + (Math.fround(mathy0(((Math.acos((y | 0)) | (( ~ x) >>> 0)) >>> 0), (y >>> (( + ( - ( + Number.MIN_VALUE))) | 0)))) <= ((Math.round(( + mathy0(( ~ 0x080000000), Math.fround(x)))) | 0) | 0))) - ( + ( + Math.tanh(( + (((Math.ceil(Number.MIN_VALUE) | 0) / ((mathy0((( + Math.PI) >>> 0), x) >>> 0) | 0)) | 0))))))); }); testMathyFunction(mathy1, [0x100000001, Math.PI, -0x080000001, -0x080000000, -1/0, 0x07fffffff, -Number.MAX_VALUE, 0x0ffffffff, 1/0, 0x080000000, 0x100000000, 0x080000001, -0, -0x100000000, 1, -0x0ffffffff, -Number.MIN_VALUE, Number.MIN_VALUE, 0x100000001, Number.MAX_VALUE, -0x07fffffff, 0, 0/0, 42]); "); -/*FRC*/Random.twister.import_mti(443); void (makeScript(14)); -/*FRC*/count=353; tryItOut("\"use strict\"; mathy4 = (function(x, y) { \"use strict\"; return Math.hypot(Math.fround(Math.pow((mathy0((Math.expm1((Math.tan(y) | 0)) | 0), y) >>> 0), mathy0((Math.hypot(((mathy0(Math.fround(y), ( - x)) | 0) ? x : (( + x) | 0)), (( + (-1/0 || (y | 0))) * (Math.fround(x) - x))) >>> 0), ( + Math.sin(Math.fround((Math.hypot(0/0, (Math.exp(( ! y)) | 0)) | 0))))))), ( + (Math.hypot((Math.max(y, (Math.fround(( ~ Math.fround(y))) | 0)) | 0), Math.fround(Math.tan((x > y)))) | 0))); }); testMathyFunction(mathy4, [42, 0/0, 0, 0x080000000, -0x0ffffffff, -0, -0x07fffffff, Number.MAX_VALUE, 0x100000001, 1/0, 1, 0x100000000, -Number.MIN_VALUE, Number.MIN_VALUE, -Number.MAX_VALUE, 0x080000001, -0x080000000, -1/0, -0x100000000, 0x0ffffffff, Math.PI, -0x080000001, 0x07fffffff, 0x100000001]); "); -/*FRC*/Random.twister.import_mta(1524171091,-2024491652,-2122934833,-1460996551,481185205,1782797189,1507012418,77392918,1808878314,1459240658,1658676840,-2039073938,78043777,148167498,-1351916810,671047857,603024790,-1838871026,-1926211690,-2058079230,-1699065376,1900160469,1699802082,-1346790722,-1057087467,-1035306561,-23415165,-901947784,1939179716,-1833988535,1374956333,-709092657,-174571900,2063584668,793553856,-1970448988,-161771327,224281514,-1368110139,-1660272745,1183562515,84018551,1254067550,2006129567,-1289345044,-1067050242,1167625552,168684201,-474183501,-1456027589,-1425635160,595264849,1217997265,-190666748,1242661159,1032512085,-468545302,-1146609920,1429309627,845474558,-545066371,-3353076,606919558,-2104992188,1989347992,1004718186,1661047029,-282716018,-873709677,-73588183,1738800015,2114244275,-1464749966,628092176,854256611,2060149202,969004398,-1789957300,456816971,200231355,1301761062,89977988,1022011736,-607658345,729446099,-18551966,-32496922,715438129,175025077,1855141814,-961296791,102363621,571203787,1427700087,1723082809,-1324530568,-77247503,717069923,-250189894,1730839999,1585749412,-711944799,1298280466,-1711749254,1240720135,-2054393073,-477777989,1006755194,-925552349,1367952551,2134743004,1257795580,1802736081,-1387549728,-414628241,-1642464465,1135933668,-1104335556,-1719050081,-1156478973,1340674032,1949033027,1919205084,-1272222468,1066011412,-776069171,-1533792821,502111270,1648710581,-493541694,-353019601,-1816961525,936356557,1408151274,476849572,27405442,-1662687854,-2059683747,846403442,277312239,-1176077190,-1956060372,-1392859967,1595788278,505800929,-2073200179,1871574891,-957156222,-2048346077,-680982884,830251227,1950488278,-681813394,936729861,1750689320,-1526902165,-1726294285,156910846,2128114537,-973555492,-184196534,-153892782,-639554288,-917855241,1575668905,-560880148,-476030744,-1878187231,991976059,32808617,-1369264527,-1529152593,-815775735,1883597610,-314283447,1514936844,1932908166,944780236,-2146481850,-1207499819,1735497467,-1541497741,-638940311,-355786081,-1442505276,1230323817,-863410681,617456382,69484791,1493354409,-337385850,-1835948804,222846739,2075942862,892465274,-1242518709,-1041988366,-1898528992,2019014890,-827213679,1418681213,1150245560,1486779756,-1900065739,-419571689,1915244936,-2113581386,-637671615,-485500256,2080876059,88318762,730193450,128506557,-2055123559,-314709422,1618696770,-150794555,790944780,1146326533,1444094402,775658969,-1858084954,-326347519,122739451,-2080987786,-71522382,1286215501,-266744784,466397009,-290361159,-887579806,-1343414662,-982286806,436232776,39278742,1442902621,1355629659,-2004992236,-1632854574,1590941109,-126935829,1747984771,1530602432,-876529790,-759223658,-601573435,-1143690705,-1520231439,1212794932,-124112111,658119132,1103861266,1343085454,214105265,1995223907,656259966,-1227240051,942893458,1435968351,-502450836,-156414708,1755255310,1463451352,468769979,1710319885,-1011158513,1500369133,-1123858385,-974250626,1918574431,-1169576787,-1942105222,-487438818,1052858283,1881427681,-218418174,707144763,984357867,-375909431,-708830677,-646594658,-312694677,-2039320026,-647149220,924852273,-661846115,-1732054991,-909370432,-933959924,1961757803,-1767046579,-323488468,-794318660,-495953296,336501695,11446544,1056532888,1577517504,1351514330,-1880585265,-869899691,2050491540,139021339,-1196675618,-1614078833,1236490842,2032032925,287165014,-1905656707,55744518,1535086827,-887272826,-1340723212,1592795389,-979912989,-2013785036,1921718738,-306042432,1572289127,-330753078,1597986366,-974658945,-1769839480,103198418,-1396535969,-693831725,1225428813,-957710499,-565341147,-1423169490,-1444699852,-1143191893,-864065711,-1172895836,-673026626,-357052467,113109224,-1092554817,-2071079287,-1107755138,1033935769,-18132981,2003154168,1480782460,694191876,1406086864,-1641552365,-1976438234,-1236853824,-572267341,798778698,559036759,1686606874,973461530,1420310801,-1571886859,805774010,-1066383504,-289986058,-1510280939,-1379912769,-64142106,1202823798,1811457310,-1617358603,-1679682450,981195461,-573281327,-1692043938,-968751535,-928054128,1991443588,-1170502548,240209382,322420143,126319769,1589282550,390119466,-562794155,1295600988,-333209405,1153678684,-467361634,1755721877,-2073548097,-1854715001,1239749172,556086317,52761311,1329391989,389746510,1290862409,-812203324,-195263914,-1192320731,1488257459,-1979155789,379766520,2058980081,365927985,-400618246,880222293,-1405022311,1130503539,-885826962,1517172343,-1993596179,2136696360,-1529340960,-1109870126,-1518942153,-1811554278,-971155418,-1806609484,194828062,1398319244,870834424,-2125350797,764330616,-1130924741,-89684194,390279847,112853042,1311210861,-345948962,1751049351,-1647588457,723920666,1366991401,676497362,395416064,1682414698,-1108732991,651092637,-15614676,-139663834,-630258621,-1836727661,-1834141196,-926546410,-1149791093,-2001603319,-860000836,-1108290506,-682944179,-211817284,-1151748187,450477130,-620747894,426428207,-1977556153,-1767006484,-1929167109,-109560390,-602385454,-590549456,2025568872,-585713046,-180255678,-462703538,-2002533836,1381652000,1519193420,-1127198614,1177941942,170995074,997880312,-1726273803,1812987239,1178145709,230640915,-1304239835,-208482425,129453775,-1291543993,423164352,1540937060,1789090866,-1825496967,-1407091289,1880753837,203848496,-1480933325,510304833,-2031711828,-1756399538,182859521,-1298594739,-1236741115,1050697538,1488965049,-1820227477,-1389615715,856179005,683731653,-933322496,-504557638,-864441233,154480412,-1307425328,1973228370,-1870521189,-847313421,-1450183338,1404238120,-1956166498,615538184,37300552,-1118267957,-1286544916,827363933,-440022770,605880028,-1818195721,2039774111,1267000574,-1073303820,511517794,-685963379,189940804,-672355957,1670150325,953245191,1197498246,-1228922500,903496932,1080618533,-903724584,-1079193145,-1226749055,-556256853,-1022598241,1041939376,1907977468,-1005846688,-1535471179,724711102,-167198083,711693183,-1340965624,695073855,37822215,-3503107,-1796302471,592332942,116961387,697643431,1130268036,-447112120,-246406400,1984686864,-2056976140,-1501221135,1481252673,1197291316,-1033879008,1368838468,-610392183,-894699157,-286106975,581087592,-713465433,611408753,161509648,897817842,-1446009000,-1146043981,-344041765,1254862209,-26001826,-729724966,290834930,627704247,-1117754536,1051441112,1737386097,-675392251,876358447,-1585063289,1115059314,2063153531,-2109025635,201512442,-1106591879,1281072184,-1263875987,1308004744,-1316989337,-193486774,2028537167,980805944,1387060995,1311882156,948801378,-372399270,1098793891,-954271561,-1477665742,-211257324,142689807,-1167758873,561160504,546384746,-1148351126,226677893,-310849703,-1108066848,1602062739,291434197,1411817652,880503128,-1781310291,-635569713,-334216941,2066598527,22103492,-1605790679,186432740,324742776,511438733,-1385331273,-1317306796,-544499681,1047284421); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=354; tryItOut("mathy1 = (function(x, y) { return ( + Math.hypot(( + ((((Math.atanh(((((0/0 | 0) >>> (Math.tan(Math.atan(x)) | 0)) | 0) >>> 0)) >>> 0) >>> 0) ** (Math.abs(mathy0(y, (( + y) >>> 0))) | 0)) | 0)), ( + ( + mathy0(( + Math.hypot(x, mathy0(((Math.fround(x) * Math.fround(Math.hypot(y, ( ! Math.fround(x))))) | 0), (y | 0)))), (((((mathy0(x, (x >>> 0)) + (Math.log10((y >>> 0)) >>> 0)) >>> 0) >>> 0) ? (mathy0(42, x) | 0) : ((Math.atan2((-Number.MAX_VALUE | 0), x) | 0) | 0)) | 0)))))); }); testMathyFunction(mathy1, /*MARR*/[(-1/0), {}, (-1/0), (-1/0), (-1/0), {}, {}, {}, (-1/0), (-1/0), {}, {}, (-1/0), {}, {}, {}, (-1/0), (-1/0), (-1/0), (-1/0), {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, {}, (-1/0), (-1/0), (-1/0), (-1/0), {}, (-1/0), {}, {}, (-1/0), (-1/0), {}, {}, (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), (-1/0), {}, (-1/0)]); "); -/*FRC*/Random.twister.import_mti(580); void (makeScript(14)); -/*FRC*/count=355; tryItOut("\"use strict\"; let(c) { try { return; } catch(z if (function(){throw y;})()) { try { return timeout(1800); } catch(z if (function(){w = b;})()) { return (void options('strict_mode')); } catch(c) { for(let y in []); } finally { let(c) { with({}) for(let z in []);} } } catch(a if (function(){throw window;})()) { this.zzz.zzz; } catch(window if z--) { for(let z in /*MARR*/[null, (0/0)]) for(let a of /*MARR*/[new Boolean(false), new Number(1), true, [(void 0)], true, true, new Boolean(false), [(void 0)], new Boolean(false), new Boolean(false), new Boolean(false), new Boolean(false), [(void 0)], [(void 0)], new Number(1), true, [(void 0)], [(void 0)], [(void 0)], new Number(1), new Boolean(false), new Boolean(false), new Boolean(false), true, new Boolean(false), true, [(void 0)], new Number(1), [(void 0)], new Number(1), new Number(1), [(void 0)], new Number(1), [(void 0)], new Number(1), [(void 0)], new Number(1), new Boolean(false), true, true, true, new Number(1), [(void 0)], new Number(1), [(void 0)], true, true, new Boolean(false), [(void 0)], new Boolean(false), new Boolean(false), [(void 0)], [(void 0)], new Boolean(false), [(void 0)], new Number(1), new Number(1), new Boolean(false), true, new Number(1), [(void 0)], new Number(1), new Boolean(false), true, new Boolean(false), new Boolean(false)]) (x) = \u3056; } catch(x if (4277) **= (intern(Math.atan2( '' , -15)))) { with({}) with({}) { for(let b in (((x)) = 'fafafa'.replace(/a/g, (function(y) { v1 = g1.eval(\"testMathyFunction(mathy4, [Math.PI, 0x0ffffffff, 0x080000000, -0x100000000, 1/0, -0x080000001, -Number.MIN_VALUE, -0x0ffffffff, 0x07fffffff, -1/0, 0, 1, 0/0, 0x100000001, Number.MIN_VALUE, 0x100000001, Number.MAX_VALUE, 42, 0x080000001, -0, 0x100000000, -0x080000000, -0x07fffffff, -Number.MAX_VALUE]); \"); }).call)) if ((d = \"\\u6A8C\"))) return this; } } catch\n(d) { d.lineNumber; } finally { let(gltpmm, b = true, c = (/*MARR*/[x].some(/[^][^]/yi ? [z1]\u0009 : 3.resolve, Math.atan2(7, true).watch(13, objectEmulatingUndefined)))) ((function(){for(let d of (/*UUV1*/(y.indexOf = objectEmulatingUndefined)) if ((4277))) with({}) { d.fileName; } })()); } }for(let e of /*FARR*/[]) return Object.defineProperty(window, \"fontsize\", ({}));"); -/*FRC*/Random.twister.import_mta(1961968766,-1908487425,-1590851616,-826311322,808530887,70875308,-1632778231,-967668481,521297980,1349424668,-1600739475,-90291430,639632342,-580512157,-1564520335,1248151869,1348459924,-238411359,-193952997,-434136679,-872669000,1267880532,-963682063,1160753406,-2031062231,-1776577465,423540622,-636984136,1621912111,-863945952,-2025652274,306978637,995558816,-713690286,-471320205,1747370890,1245750587,1632421254,1056181142,1312455951,1474897579,1977103336,-1623942837,223458356,87542941,-1127972022,-257032359,2061227763,1742237567,697864779,432167187,-509165489,665768154,1828455517,315416612,-606752883,-799245584,-1400951112,-1527848767,-1124800473,1762093914,-383681877,-609085859,-841957788,1702399581,330735872,1378951610,2064059100,2068564067,-734156639,-1550262627,1105385957,923324917,821774724,710212692,678193257,1271674767,375719395,-1621755211,667109881,368651862,118675157,952002587,-860543795,1300202782,754819841,-1515309386,-1715932133,-863895280,1025822934,-1379929946,1884337411,155807145,-957036386,-145292906,-644160937,-1881383261,542160286,185722460,2134371657,-466184615,1536683659,-1044503938,1350360767,-825686520,1315923003,192461862,-936113743,1445220133,1802173017,371816747,-2046519131,299240649,599407639,-895667265,1692853538,-1033807683,173377237,2007887166,-975488230,-530953635,-829479584,-2096882502,908380531,-830885628,1374159448,-796181824,1630058889,-800432370,-1794883681,2101743073,743119666,-850775527,1736148084,478942616,-1207909472,-1554971765,185450672,1379964332,740026540,-1741491447,-971113618,1324279133,2053698438,-1998878320,-476598302,990480364,-1144357150,-909051663,1017968447,-946254530,-294613326,-2010444166,1135261889,1982536251,-136509591,305070482,-320163022,-491265740,364278757,107319221,-1912535662,-505361469,1285069949,1092297483,-1198639433,-1699132657,-1523168434,-1248369103,-1791567819,69149145,899600264,-720668720,1553531504,2035277070,-1132422922,1568647173,789380210,1258057766,1074618634,-500884010,369610875,-1804602896,-1392182427,446774339,2052801872,-715044712,-1736997277,2084163383,-1984580108,-1696967159,1107612577,1261277070,1448364781,1088916086,1383077481,-1904480963,1159524790,-1725982113,1880202871,1139334530,2111104279,1416398436,-1636538265,227443505,-738846906,253574483,-760404412,1153814706,40956377,-839179801,1657527984,1049032101,-1735828402,1102260805,639070636,-1383099187,-1542728358,-894897003,-52536429,27068781,109690545,540507588,201571482,855512005,731415687,-1640836,1389899315,1465943899,805532159,2103064579,1322986227,106429819,-1749053190,-1194281109,554853680,400127214,-1936502459,1778817873,1069270116,-689348658,-924855630,1341565273,1578223755,-2084027638,-1112916725,767945198,1885325811,320670826,538980212,1735460352,1057686131,1113582806,1766007998,216226858,-2051708543,-87034401,-1139779894,1297410438,11024376,-8102765,694613509,-404584094,-515211582,-1501528239,-464847240,398970861,1301741385,1299527670,-1070308622,-2078596736,-338963470,1669498060,645006280,-1246062990,-1463962722,-613700449,-1548470809,-1775337252,671402700,2118626401,-1177338248,389843299,659219557,-1379565697,758541892,-316641684,-596303447,1229164754,-1791781541,-514560756,-944158674,1544605414,-1745752179,2062039207,-1605203084,-873669008,1836020330,-784050155,172561563,906327082,-519658669,119201572,-1291748923,1929731824,-1298318293,-1678306215,-2048627179,767356091,689352374,-1739248024,-1398014617,1168862951,-2026828263,-144345246,526483461,-569683710,691200491,-1735220133,-1891809254,1082709016,-1106985753,1768242293,47832233,-925655799,1922153779,384191620,-244080969,63280818,-98474356,-1566757790,313626884,1481732285,-542475456,1935196695,188575119,-2042082325,1319343486,-426390661,89227627,215373775,379469846,-1875064421,-160702462,-594881495,1027772948,-1010914112,-402293585,219029703,576262237,-1156148422,-1489565219,-728805986,1440399761,-1612346771,-430260159,-1870840640,-1081262466,-991815948,294210711,144849884,1509368136,-332075596,2035479582,-3958647,1788389076,1419506850,1099215035,-378174354,-1471370955,415419292,283749186,2068917968,516410350,1853822716,-380485634,-1579279084,-802680360,-1372016588,677500085,5607503,97894104,1896339504,1061168394,309097696,-1409464914,-1208685381,-1140128911,1084621367,117421528,2051971524,-614794017,-971934471,-909368530,1258816108,1849932470,-1111547885,507377827,1745220580,-1844216078,1706443736,1601838337,1717061417,282750541,1164398763,-1784647314,521339051,-262638789,-730261279,1213415533,-672359933,-216982835,1161289637,-1536738417,-164034771,554893428,-502997005,1388217620,452578935,-131246909,-139218853,-827964331,-900466659,-397642659,1847880291,-1377300461,-564517551,1838124202,-841232626,1657364114,1081863936,1300721633,1185568508,1651382552,-571001167,60744566,-1774946012,-673253436,1529405694,218897161,956095941,-48066966,-495176896,893962951,-752594406,2061642108,-1737477997,58520487,-1119084634,-865369745,-1612548738,-1980345989,-752374757,2140668553,-384522756,-1505810584,2047975457,1976147896,385863840,1549538495,480535631,-1316269667,1042125246,-1938698270,-2099997389,1336006154,343855563,2132426338,708237484,483571968,-970726117,-1339278342,-1503616076,-470006654,-199639437,-1292383764,-1533839446,-612113015,-1449055505,1634419078,-887091593,1666214840,-1392147614,71002335,-1605805319,-422475108,-1951865715,-2039770174,-1178989086,700240764,-703793774,1811688350,755040292,-554001363,1596633117,-1530348188,713346975,1700790838,1096590013,-1299099087,-710033869,378061327,-1395498339,1960963960,-210919459,-357942442,1699911013,-34085351,-554578587,-983306967,-1336962245,170293974,1772371028,1349698195,655664499,-395787911,380276727,-1927018183,693634359,1011459581,-541625164,-612396756,1210397624,-816040668,-264646766,1625724184,-157749819,-1004042303,-150682148,2138903003,-664277388,1132666776,-1877680496,-1273845333,1986350216,307610267,686799243,31900597,822690691,-1979238598,-1952101858,1506298296,885265302,-1522226084,-1845578121,-1749631885,200718242,-1239894937,1048230416,100714373,1548495037,957085841,-726348413,193052577,-209681630,-827671249,-340199201,377710773,-2059694778,1543734005,-1120310462,-984238343,-1181515211,-1676197256,-536672972,-427841671,-1182247876,-153156936,129936676,1273113173,444731892,163454022,134917751,-1894032620,-843461817,957569706,-481504940,-1651165256,-901508993,-1873424544,-1431779135,-1910008117,-1409869686,-1382864181,151750247,369071894,697876238,-1202151567,-2035737414,-2047464594,227371967,-206536954,-1431420063,703837039,2067076862,-377783592,2024035561,1861053204,-1254818053,1712541924,544748089,1632898229,73557051,-192651833,680718323,-1365473638,-517221801,-1682197947,1604445145,-1434786088,-235097971,-43076384,1972242391,-2075988218,1899403041,-1763603845,1780194902,-576946776,1883250885,1026004249,-1606771915,-1264250397,-98326547,-943226324); -/*FRC*/Random.twister.import_mti(468); void (makeScript(14)); -/*FRC*/count=356; tryItOut("mathy2 = (function(x, y) { return ( + ( + Math.min((Math.hypot(((Math.fround((( + (y || y)) >>> 0)) >>> 0) | 0), (mathy0(y, Math.sin(y)) | 0)) | 0), (( + (Math.log10(Math.fround(0x080000000)) >>> 0)) >>> 0)))); }); "); -/*FRC*/Random.twister.import_mti(609); void (makeScript(14)); -/*FRC*/count=357; tryItOut("\"use strict\"; (/\\2((?:\\2*?[^\\cK\u68d9-\u00db\\s\\S]*))/m ? x : \u0009\"\\u1764\" = (makeFinalizeObserver('tenured')));"); -/*FRC*/Random.twister.import_mta(-2144719613,949170196,-179519423,-1532597532,1567007063,-268037134,-352610067,183394485,-1114162592,-1773083710,-1927851338,-2023155446,-1508477,532382436,254480012,1830302063,92969856,352974463,-887849881,-2013605969,930589758,-1598632240,-1699050308,1841510672,480460457,-2033409062,-985119231,-2021986389,-1951887997,-1644471626,-1113508909,-797946402,1215539003,-1467530394,966004260,-92097346,1388870619,-1030933638,-1114936018,617110190,-315429328,-843441020,1269088531,-1552970924,-482291761,52591667,-785542815,2042680698,-148451194,228175045,-1431887009,-291801141,1662858142,-1769732756,1024734818,-1157000861,698848725,577463619,1632494500,244454796,-665742798,-500274351,984894349,-149908546,-1202716387,386204003,-1309521268,645513693,-55070075,-591786406,-2031885745,-1464205175,78585282,-754345167,1024638737,445515948,1908831916,1656484854,2015288783,-1368399743,1090666044,754363965,-566664385,-1382036232,-333051161,-1076717511,-772824563,-972531087,-1203510537,-1653138210,1732999580,605424617,180795187,-1381534375,-1640371606,-202924118,-1898789150,1520583475,39582495,-2120797076,-1851570772,1636021122,1135054257,-221692617,-390610739,-1452393330,-906798209,24578192,1175975589,-145843921,1744640660,252869598,1303790589,201964091,2018838599,-778297131,-1940868826,482497516,-897229580,-7398906,-362570871,1759120234,-28085861,-125064138,-1282699264,1616948952,650172735,-669196267,-1284752888,288578538,-771618216,1219062799,213963745,-702421832,1602453064,1488252810,-241939981,1598359134,72890061,-1107398448,1659387394,-814317070,-1221374215,-1882681642,671325769,1765855328,-1197370579,1813936848,1357412147,674894141,-1054805186,2054110509,-19059910,-28240513,-1678914566,-1650242230,1039459896,-2099547208,494482434,1904381914,293857916,1824741496,-1555596268,79448600,1075453309,1841796973,-829659169,599787251,904690620,1653568527,-334469764,758847180,632204141,640024435,402542653,-4339030,-1734531795,-389549228,420866607,-765567041,1335783258,-1066145657,1608450573,2129716799,-1291176861,-2126005050,2023774501,-299904733,287657452,-33741611,1079133822,-1556096131,936689351,771665540,1132512493,882574624,1266535348,-290297074,142279996,1498429992,-921720512,-1627210295,-266218488,-4734082,1219430166,-622572979,-573387035,1257244586,917261993,1591669371,-354525923,-638965292,-1505867521,137205104,-295367626,-96371346,-699988565,-1922409036,1904613229,-1277318593,1204818479,1616616999,992365396,541925896,945939327,-976167725,933438954,848486001,-1181075404,1391029407,449007426,-951718091,-69608561,798716807,1516720685,-1233420265,152173503,1629269953,-1732969672,-727952284,2077518781,-237442305,-619158027,74365445,-757835739,-1644787568,652057481,1056516619,-1331242646,-1459482692,-347207434,1032636610,-1301466747,-1019615212,480832436,1875363763,-1007455789,-620017904,-802925022,-289850963,1698465979,174410389,-1977119777,-1736379220,-1331147706,1868577287,-1693739563,-880249397,-308269571,162091475,-695573843,-1837003351,270237143,-873407912,765332661,60536342,-984938775,-508533967,-1164373331,-986294927,-1972528560,-276643316,832852878,-1504863563,1961906785,1474155666,-106941049,-1125098917,1908347171,1243512075,-1798555735,-698849682,-2047523206,1435428352,911246439,-1723736643,-1441941649,927563418,1956002331,531474391,2055371335,2124402819,-1710881647,138729940,-486679236,-1393694916,1972725588,-1898645314,947779942,-770444277,1656914580,402328907,625127402,-1436739140,279980716,-1757001098,1357307124,-234185874,1669902308,1786961215,732797941,1938015375,1803796769,867416249,-1159582347,153673053,539380712,-801009931,1553137860,317266816,-1148062283,1570228300,-2034564818,693602987,-1646195064,-600087665,-1876995184,-843100170,-726529100,-757737275,122067504,-381428651,-1431711532,2065525741,1113791206,-346420588,310711438,904674101,-520211557,-472369146,840472583,-640928049,-1819967793,-1338331946,842608874,-78470040,1324729557,-1334640350,-1721402725,143773199,-86346724,1771636882,605918597,1467823464,705254708,773180572,70555730,1448279093,39347639,-78501065,-2017698953,363530529,1713583511,-1885464493,1488413999,489913,1076763089,-1774408924,-1219008600,1744786370,-54801901,-1553061918,-2113708081,885185608,-1759129233,-544476544,-1232093507,-388473928,1874625172,-1637863178,-1340504920,-1172695074,153192186,-1425512727,350346152,-1304732822,-1265026943,-669868914,607300021,1467320961,-1869594324,-1109736586,1859669331,589708711,-501756957,-812328283,1937430269,-1129688075,1028847726,-316538925,-1636770938,1218014062,175935966,-1699452308,-1097445095,-1188064566,-1801296289,-735702630,102875587,-721037771,-744145807,-1079932868,-642412591,-1519956390,1632555992,-27351221,798489725,-270381369,-295300480,-803462264,1081918545,1811557480,-338475327,1780606306,188708369,1035366971,892438937,-2025181854,1180996751,591959746,918344261,-1621420650,971876562,-2806618,-266647286,-457785349,1802199859,1500913148,-1620644273,1960276459,-37832086,-923105875,588541256,53049108,1636650437,1570396411,1745724227,297576210,1885558197,1820547447,-1370068074,90807026,-1337759770,-780992007,114050244,193143554,-351188139,1859061739,-5130625,1627465639,1551411192,-2115761665,-334976303,-975571857,1736625917,-487628097,1573604775,647376222,1295607809,250971745,-1299063352,170535429,-1261255933,1256156272,-1469873570,217617595,-1383272372,971083338,1589322539,-1591611114,-310451869,-1507275692,-652884786,1838578948,-638833799,569047789,991514824,1865188140,314676334,-473624047,431754112,-1560310492,2045460906,1710586328,-1796899174,1362684096,1657083554,2082327613,339444807,-259314996,-480335906,1075989579,-420739836,1931663329,298617400,-1545411065,-712718008,1500022253,1366557775,-1439761376,942747286,1380064699,-1091582161,-770617178,1194996758,-690815962,-457779992,16783529,-1742083919,-1237978197,1770346008,-352865676,1877738294,245874960,519481644,-1258121860,1273505038,-481389686,318281430,1620052709,-960938656,181543783,-2048648104,-2129578224,551122312,645133365,-393857069,1955645181,-376760430,-592616032,-1237388242,162593643,-706694574,434506361,773611709,-1337471884,-1063248123,-1190382826,-1432438295,-1742228337,-755638008,1478524749,-1842298189,-534851318,663235733,-2005524054,-1447405159,1150930082,1438284192,-1477912530,2143446478,-546374398,-321411298,-313441806,1768265312,-782738639,-1391287334,-835575577,-1847144065,1608100464,1847711596,1740815535,882082258,-1820805319,-1165178199,-1918294756,-1917505176,-1181812159,727850277,-70020987,1856309995,-430521253,-471554572,967709485,1659847001,-419234020,-870015299,70161621,1721934163,-283665324,641511126,-1014044691,-1555175547,-1922048265,-2123175831,1590312540,-1289078209,174295840,-1236052850,1677047638,1249216056,1961517659,-576027389,1461470706,2057317978,447827391,-1330770398,1362174997,1031892365,-2144044097,1750228679,-252135295,-774333828,1837407967); -/*FRC*/Random.twister.import_mti(283); void (makeScript(14)); -/*FRC*/count=358; tryItOut("h2.defineProperty = f1;"); -/*FRC*/Random.twister.import_mti(296); void (makeScript(14)); -/*FRC*/count=359; tryItOut("\"use strict\"; Array.prototype.shift.call(a2, Math.atan(Set.prototype));"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=360; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(339); void (makeScript(14)); -/*FRC*/count=361; tryItOut("a0.push(b1);"); -/*FRC*/Random.twister.import_mti(356); void (makeScript(14)); -/*FRC*/count=362; tryItOut("\"use strict\"; Object.defineProperty(this, \"v0\", { configurable: false, enumerable: (w = Proxy.create(({/*TOODEEP*/})(new RegExp(\"[\\\\S]\", \"yim\")), eval).__defineGetter__(\"b\", \"\" )), get: function() { return evaluate(\"/* no regression tests found */\", ({ global: g1, fileName: null, lineNumber: 42, newContext: false, isRunOnce: (x % 3 == 1), noScriptRval: (x % 5 == 0), catchTermination: true, saveFrameChain: false, elementProperty: s2, sourceMapURL: s1, sourcePolicy: 'SAVE_SOURCE' })); } });/*infloop*/L:while(((yield x = Proxy.create((function handlerFactory() {return {getOwnPropertyDescriptor: decodeURI, getPropertyDescriptor: function(name) { var desc = Object.getPropertyDescriptor(x); desc.configurable = true; return desc; }, defineProperty: function(){}, getOwnPropertyNames: function() { return []; }, delete: function() { return true; }, fix: function() { return []; }, has: function(name) { return name in x; }, hasOwn: function() { return false; }, get: function() { return undefined }, set: function() { return true; }, iterate: function() { throw 3; }, enumerate: function() { return []; }, keys: function() { return []; }, }; })(/(?:\\3)+?/gi), /*MARR*/[ /x/g , (0/0), null, /x/g , null, Infinity, Infinity, /x/g , null, Infinity, (0/0), /x/g , null, (0/0), null, null, /x/g , /x/g , /x/g , Infinity, Infinity, (0/0), Infinity, (0/0), Infinity, Infinity, null, Infinity, null, (0/0), (0/0), null, Infinity, (0/0), Infinity, (0/0), Infinity, (0/0), (0/0), Infinity, Infinity, null, (0/0), (0/0), /x/g , (0/0), null, null, (0/0), Infinity, null, Infinity, (0/0), Infinity, /x/g , (0/0), (0/0), Infinity, /x/g , /x/g , /x/g , null, (0/0), /x/g , Infinity, /x/g , Infinity, /x/g , /x/g , /x/g , /x/g , Infinity, (0/0), /x/g , Infinity, null].filter(decodeURIComponent)))))x;\nt2 + '';\n"); -/*FRC*/Random.twister.import_mta(-2074409852,-2019788470,86425587,1730912600,-2049324401,-2102578694,-10896094,-52668717,-2068010172,905019302,-14753936,-609340048,-1560527199,-1713021760,-417479930,146398238,154673548,34922485,1675249090,-820400064,-998410510,1266452381,-1545319747,1157370874,-1127753263,572070926,2144504144,-1114495546,-1331492336,-397421237,-2015729624,324497858,-1000373701,481739587,1455126071,465554419,1265073375,1442496646,1876057964,61406849,-510188768,-1161935655,855593832,-569113219,1203936080,-2005675843,-2093660645,-880271031,997382470,-416267709,-1221388602,-286754944,2140500829,-1556831909,1282866627,-288417923,-1961593494,1361820695,1523798589,1143302746,-106749339,-1271807828,1460342952,1802951623,-672945508,-1464188256,457658824,-1583403687,1709057071,828902061,-1550141584,-1108985698,-779265312,-1678161745,-1935471191,-722759289,-192672364,-1031466811,1825579552,1028281017,-1444558177,-80910015,1480220701,1569351780,-859056442,1160618714,-1328287337,1833616378,1111694036,-567718782,-1293796511,-1026504595,788200293,-1570630570,-539294847,-1635997761,-1714426814,1103717929,555835611,1942549022,535649005,-1441078679,1135164501,-185640135,-163015837,-2078647094,625933712,786838807,-208202616,289119208,2073358802,-1410853530,1871136526,1182569250,-236655362,-1597743721,1027866135,881730626,-601527548,968733779,755335256,-145421219,-697619909,1643439766,577915607,881269615,1729597555,512502034,-1639231021,-843591228,-61071759,121713054,-1658519049,105179452,-961690191,-835807472,1627734591,-2049834347,-1409438444,983317007,-990522509,-798391947,661933454,196100763,1047677783,12346641,-149026184,-1851392306,-1419359116,-938062260,-1867519820,-689602033,982343616,-70774317,1197563342,-1961180850,411808677,1621162684,-2004448359,-933107141,-1888641238,-1153628189,-629567101,1810915177,-137690076,746471811,687235756,1031672139,540617586,-1615697113,302270404,-563766071,770873160,-315228913,-525330345,965838167,-1724729256,-1125657688,1635763249,-891448201,1996711035,1728176294,-106337872,-290685566,660693708,-775217761,1031794551,-232887201,710870953,-308538793,823764768,-377425255,-315832377,-697444286,-65321269,-967163858,251078314,651346887,-877993464,-391951843,-760775954,515001175,-1865646613,1114320221,2012508692,1420570664,-401089246,53247970,-391252034,525182062,1721147338,2084880430,669220334,2101805091,164289772,797030153,296315688,-1687448269,-1705564033,1246672874,-132883495,538069031,-1877808453,-311812185,1259890231,-1979119479,-305839816,-1734993762,2011201498,138877010,-578689507,1631426455,1281898726,1264755947,2129208839,1497163332,-1669883751,-213605652,-1310711998,1176419232,939628896,328810787,-746180157,-1185235647,1290771389,-1447282471,1231918490,-600958393,536707139,-700231994,440039323,1023013324,1132849156,830930058,326727360,139592230,-2050328893,-272088263,-50111029,801732281,-2138253610,-895483129,1476374949,322132732,-1153274534,-77650599,-10193733,240092417,1734499567,-2135764255,240939894,-1765304988,-1383350895,1290989726,-901383614,-2132808979,249611012,1937190735,360443367,983809653,-722091939,346346500,1692494584,1751444613,2059753054,-15992799,-2091518040,410262059,137776886,-999965789,5957872,-1793521247,-1031982688,-1721261276,876049240,-1445966009,1791800800,14228130,725113770,1975834396,1035866161,413712190,-1865810579,-973413622,-1795955877,370839946,975187686,-170183124,1261183899,693838167,-813736418,-563445453,1342385668,-125049663,1726604993,707818670,-416546507,-1020892013,1855526445,-1574664640,44779214,1930580942,514706236,498485799,-1672103848,825378095,-1025473093,1906629263,-1553043543,-949389744,-1708867809,-183168012,1236871488,733903572,-638372849,-1147617984,2011446291,298710024,1535789531,740559382,-338309673,-1531968364,1145198782,477262692,19079432,-1788354237,-1170007786,-2072893110,-2034692002,376428263,-736473810,-222804625,1822051588,1040910342,589658918,1614349158,-712093355,702944227,-637442490,-1605878791,1921543541,1303101356,-443544156,1946282149,-1831279397,-1444421315,-2000816950,1557221751,1959273521,-39661334,-663914796,-1804902077,-1636050457,38602800,145683149,309981251,-1022878754,-888906912,-1525011474,-1646786026,-1434516958,-1620557066,-780423318,-1978537011,258278396,1254745112,-1139947545,-122429856,-1274208360,-2106240041,922571910,-1285830823,-1594703320,1652985720,610516222,-478345235,-205839008,-652893247,1826089302,632993758,-1277649740,248811041,-1324733605,825355638,1109724709,-2117460080,1300237650,699013196,-929452144,-1232010125,-1964980171,576662051,-594466647,-79923420,-1366710982,-117013415,-2020664678,-352192738,1510648156,502720800,-1984095140,164180476,-1796610301,2119192390,-2131418947,90811625,1180360097,-1516997714,1992055443,1778036508,2006334313,-619355733,566018713,1954600693,-2063600096,1799193517,485012191,-1666423470,1843432271,-1514822637,1927973608,1429997701,275456346,1772408749,1882749457,1995057465,1727379732,1857002529,-1015988211,-1362249842,270527918,445796499,-1952599293,1141593861,794002492,-621928796,10046427,2092497944,-831222797,1531120941,165046674,1724421620,-1467099545,-552486149,-159042707,492833335,-1468954486,-1630408064,-99524049,-38116801,547359073,-1545372150,1381528113,-1549516229,1951472583,-401566129,-989308823,-1515293884,-1567915485,1523386080,-308586153,-1877432418,1832760350,-1845774356,817674683,-339401235,1933160860,920254364,-634324084,-1203211829,1076313302,-674721987,-1919673381,1251660248,-944617304,2062480523,-1222339721,121420097,1043180723,-514475951,1569535500,-1229956457,-1306175999,76708937,468409135,605644470,-1650071372,1205908129,752959842,357447959,-1854047617,1236489436,529670926,-1951157580,-1869751817,1660168786,836323722,-1310172664,-2146535503,-1637505301,692985126,-1303896048,-1059526892,156348395,732980401,1499673054,-1404277865,-1465756490,-625281484,-469019039,-259966416,-486153536,290025730,895187568,-279282542,785920284,419195026,-2046618251,1999254686,1935650996,619333037,1679550701,1790504742,-1220494351,1226253910,-1009599205,1097094625,913231111,491053342,1169338667,-1067022515,-1230642831,-456527668,1290143034,1770470581,1513541876,-1678807077,1449349940,537819500,549706180,-559483475,1239672201,-879241787,-1121412474,368501981,-1772104248,1315499079,-1056378617,-1220253565,1000565337,868552165,2001269383,-472956486,-823012826,903263245,-802143821,-394365365,98669902,-1655402409,1535813298,-1797069170,963427279,-259135451,297829598,1865580909,-1663303950,1703409158,-1104030920,-380975311,197801998,-568182185,-483740127,1815631988,549643449,1867525881,-1949115472,649931359,1916049058,-1545556119,-848982388,-1165833447,-1073696304,-842616857,448388917,-1537129394,629638702,-655765626,-1319720859,-292382371,-197038986,694970943,-1195839070,558352097,-2124558134,1826867296,-1403381623,1944416514,-1321905505,709446233,1305697684,-1007524889,1284501952,213383261,-241785054); -/*FRC*/Random.twister.import_mti(278); void (makeScript(14)); -/*FRC*/count=363; tryItOut("\"use strict\"; const w = (let (c = this) [,]);const w = (4277);print(uneval(s0));"); -/*FRC*/Random.twister.import_mti(375); void (makeScript(14)); -/*FRC*/count=364; tryItOut("\"use strict\"; o0.g1.a0[({valueOf: function() { /*tLoop*/for (let z of /*MARR*/[Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, Infinity, Infinity, function(){}, function(){}, -3/0, [1], -3/0, Infinity, function(){}, function(){}, [1], function(){}, [1], function(){}, -3/0, function(){}, function(){}, [1], Infinity, -3/0, Infinity, [1], function(){}, function(){}, function(){}, [1], function(){}, -3/0, [1], Infinity, [1], function(){}, function(){}, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, Infinity, [1], [1], function(){}, -3/0, Infinity, Infinity, function(){}, Infinity, [1], -3/0, Infinity, [1], [1], -3/0, Infinity, Infinity, function(){}, -3/0, -3/0, function(){}, function(){}, function(){}, Infinity, function(){}, -3/0, function(){}, [1], [1], -3/0, [1], [1], -3/0]) { f2.toSource = (function(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) { var r0 = 2 & a10; var r1 = a14 % a10; var r2 = a12 | a8; var r3 = a8 % 3; var r4 = r1 / a11; var r5 = a0 & 2; var r6 = 7 * z; var r7 = 5 ^ r1; var r8 = a5 | a8; var r9 = 1 ^ a8; var r10 = r2 / a10; var r11 = r8 ^ a1; var r12 = a3 & r1; var r13 = 9 * r7; var r14 = 6 + a9; var r15 = r6 % r6; var r16 = r5 & 7; var r17 = a7 | 1; a9 = 1 - a4; a5 = r2 ^ r14; var r18 = 1 * x; r13 = a11 - 8; var r19 = 0 ^ r16; var r20 = a10 + r0; var r21 = 4 * r18; var r22 = a9 % r13; var r23 = a2 - 0; var r24 = r16 & r15; r15 = a5 | r13; r22 = 2 + r5; var r25 = r24 | 8; a0 = r1 | 9; var r26 = 0 - a0; r10 = 6 % r14; var r27 = r20 * r23; var r28 = 7 - r20; var r29 = 1 % 6; var r30 = r7 ^ r15; r17 = r4 / 2; return x; }); }return 0; }})] = a = (y) = x;"); -/*FRC*/Random.twister.import_mta(-1696882844,-1219754384,372205426,675072300,1333925596,-827918902,-698911040,8084359,-617439165,1913610986,1149043444,15663135,-94131693,-110220874,1711522860,-670222225,1665050625,-1620801573,-561357703,-441343517,397870095,-756007715,2139676893,248922219,1489354747,-1426021461,1620663717,-660298315,-398002541,95938997,-331363505,-845468847,-1096188318,-977063763,1338127501,-1660433367,1585297078,-1290348138,-203338702,740500303,1492908001,882844411,330765938,285984576,-938651644,-923192696,-1788317738,763434674,-595937081,1030500983,433825761,632506748,643782652,-282319984,-1258460174,-837318218,-1248445999,-1691181571,-117658743,-1522505162,648027214,-1510931545,-135213039,573029596,848671908,-449937789,1456905352,492999077,-1663254594,-1178807502,-1071452465,-1831350433,693008055,-442518,1352533526,672822523,1542355590,37292759,1874661324,1223822841,1093695291,1469973234,1946694354,-872500684,-225544461,-329450486,-413215215,295515345,-992902228,-1287643917,-826727563,340080353,-1451656224,-1228796471,33451069,-1049367046,-1284058605,1311393818,1124765060,567971550,-1959167830,-957251002,1110091026,-1079914654,-188910350,-528340791,-1964386787,572576107,1820633922,-1603301283,1377089554,1529012965,913338502,-1450243072,-2133210424,-667194150,-1846239083,-1096848267,-1490927452,660310438,323644665,1915966067,-291514976,-1585477486,822287736,1784389618,102218594,-1113752441,1069078844,1265292400,-352138119,1293993488,-1490476289,1256155191,-2079151800,-121413438,-1363489819,-1163613672,-358703932,-1550962188,2000643344,613421657,-275832538,-1562652455,-45258054,1362618906,-7191402,480510060,-1478911427,154378683,-1005273889,1073893118,-513930979,-1546245718,-1289190954,830773697,2092333156,-187905626,-1492216522,-598106034,-1829412838,-734396046,-869054801,-448563265,-2032896617,-538123117,983507708,99250532,9326724,124440485,1999802300,-507698393,-1808718847,-627724015,-1299676941,-279569002,-1870513166,-597563702,1817590615,183989417,912352541,-1585437553,752654451,-950904856,-2004777505,926592833,-1312357842,-1558859162,857556742,1024140694,335092395,114562061,1627182127,958867949,-2146986442,725863201,-1432144507,1250254845,1720438369,1341036328,-1536883754,848175427,895002877,-2122780141,-363419196,-103988874,1529864388,-1875394671,1780569113,-341671837,-1888171918,-43833430,1407868088,763954249,913349369,697529205,367045260,-1195316096,-914537604,-689443791,2016724563,-1152872485,-1569791336,1064755235,-796670629,2052413633,-1109546131,-517234551,-1284535719,-1578687325,-1045777864,1773537967,1914640224,1881888028,753215653,1275190480,195900316,479006037,1675648463,-429693277,1772763640,-691508206,497604112,-1673407232,313666408,-1170434380,1387142175,-1052674831,-103703618,-1415746609,279623821,2030521337,-1279009298,1764091589,-594697050,1940618541,-346326794,196531573,58138834,-1091627767,966492657,-1120576384,-1801559721,1138524187,1471282149,358336176,-234073840,-230528695,-1378944172,1419325385,443026930,130039315,-1367323961,-1337289993,-186232037,-1693787835,-1646324465,-1972444723,-1578490215,-1792211187,-1518450286,-2037522802,1663913771,-1997237506,1035981106,-1185525667,1886574588,582695733,516648617,-1210211223,-1314682669,1403726964,-1449283823,214770980,-1870526759,-373627570,-1177526685,-708918502,-1472879407,-1365651856,-206741259,-1041086337,1256654206,-2002830348,1228161554,1923946687,1914672879,-1112615383,-633658746,1404542429,1036206706,-1701846543,1225899701,220370350,75828870,1850684393,1272683109,553457852,89617857,-399714169,-1890900946,245926307,1453357110,-1118040513,-1883514286,-76382330,-1073720506,59178913,-1522189970,-1775220158,-987019624,-1872633774,-178448989,1058602181,2146209739,-1904343660,-1467389351,-421975008,1295050734,-1701697870,-69792182,-487004521,-704490136,-1855639535,757345291,-100414417,1700961539,1343677654,-1609823777,-997002441,1093343994,1196309498,1969101809,394594033,-1920860876,-1938341559,-2037289634,-972914854,-2079560909,1197843610,1812641761,-1227182182,466297935,1054738775,2002774617,-1363122527,1424894352,-732706857,440498732,-2084988340,1910952103,729298582,269577730,1657638191,-1936701294,-2040686638,1823575051,-1768314584,250498037,-1268676596,-329119535,-610970013,-310059784,990181786,-777503830,536921626,-1610592386,-923537450,201857094,-1756500756,1709581516,-693300093,-1364221137,682556547,-1386462643,2035532340,-219631974,22641431,-211781432,-1914869157,83314398,855975297,-1211176147,681053247,-595269374,177618430,505575567,304984789,1673533033,-257667914,259355174,1069654356,1252299987,-427568973,1184776341,1893386827,1217125913,2130464261,137322653,1679972865,2109976851,326882664,1416359042,869340420,-1858520746,-592572306,1562685183,1177787968,108230349,-1751448170,905638425,595621975,1518705363,1498422228,2090978968,-44188247,-436948278,1619803402,1991329148,715069900,-1642090284,1044712020,-2075548548,-1259067557,448612547,-100163594,2025362174,-1065036150,-332508132,-362736561,-1422427979,1279634437,-2124921956,-1435211405,-866340901,1781243755,-1615111505,2140686110,-1658897178,1995711401,1129258982,-1582599351,-1165905550,-370730251,-885671791,2010683786,-1458855965,-1918224336,824045010,-722443649,-1917818363,-493444433,853935990,-1316085469,1816235785,39651157,-112569747,-655898301,341952649,470204826,556381450,-1441562967,2069276379,705533172,-1487079588,2062284828,-1518080313,344194103,2014958778,-192020676,-248481958,-2005711145,1880534620,-774539964,373138387,794034736,-1911569482,-1669960844,-1369287964,-1069100607,840568675,888948932,1078679486,153225287,-1738386794,-1355230525,1876291202,-1290868445,354579162,-224705845,-332580720,846643381,-1131443961,-1589867560,1405169180,103271020,-1356232339,1756103636,-2054074402,-46489214,367605036,-252807853,874152548,889248996,-116433931,656089541,-87497685,-1628431377,721376144,849844326,-115488108,26278547,1744872839,1169336486,-356331865,-700115249,-910252104,1180063805,-1558169173,-1033098052,-1507340025,836335893,-320348466,793774414,-1742932242,-51515410,1779633883,-2115414879,-1250336279,-275018929,2131119704,-35708364,-1660846821,1842052547,782079963,834289244,-50207784,-718505426,-2147480400,1124523946,-1025392930,-1020275210,-789952297,2071636200,-302594364,-1291050734,589229806,964528852,639755108,1458070341,868874637,482577622,-1652873924,-1501464614,-519670576,1295745573,-2040383088,-695606770,713779363,2133813430,-767824951,751811065,-996736218,671128887,-932216797,-154169296,1484606726,-2119736154,-213929059,-1378711109,-700194152,21218915,665429026,-95515085,-776295921,-803774500,-1163669219,-115460148,1305145808,-732382383,47044039,1937485758,1376372887,2122395180,-1000707521,580561974,1975676129,35910816,-1581916072,540694840,660111691,402876421,548286079,-697193650,1205228365,1979359431,383776124,-1446366913,-263931319,375267843,1323893859,839847612,1100517797,-1081777880); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=365; tryItOut("\"use strict\"; s0 += 'x';"); -/*FRC*/Random.twister.import_mti(314); void (makeScript(14)); -/*FRC*/count=366; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(323); void (makeScript(14)); -/*FRC*/count=367; tryItOut("Object.defineProperty(this, \"o2.v1\", { configurable: (x % 24 != 16), enumerable: false, get: function() { return evalcx(\"/*MXX3*/g1.Object.defineProperties = g2.Object.defineProperties;\", this.g0); } });"); -/*FRC*/Random.twister.import_mti(360); void (makeScript(14)); -/*FRC*/count=368; tryItOut("M:for(var c = x in Math.min(x, -0x07fffffff)) m1.set(o2.s2, h1);"); -/*FRC*/Random.twister.import_mti(459); void (makeScript(14)); -/*FRC*/count=369; tryItOut("\"use strict\"; /*bLoop*/for (var ucwdxm = 0; ucwdxm < 17; ++ucwdxm) { if (ucwdxm % 2 == 0) { print(x); } else { f2(b0); } } "); -/*FRC*/Random.twister.import_mti(503); void (makeScript(14)); -/*FRC*/count=370; tryItOut("mathy4 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var acos = stdlib.Math.acos;\n var atan2 = stdlib.Math.atan2;\n var atan = stdlib.Math.atan;\n var ff = foreign.ff;\n var Int16ArrayView = new stdlib.Int16Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n i0 = (/*FFI*/ff(((0x36de041b)), ((((((0xdddb31e)+(0xe7b88c0b)+(0x3d344353))>>>(((0x7a35174f))-((0xd289a10) >= (0xcb8fa81e)))) % (0xf3cbb816)) << (((x)>>>((0x55fa9451) / (0x6334be6))) / ((((makeFinalizeObserver('nursery'))))>>>((/*FFI*/ff(((2.4178516392292583e+24)), ((73786976294838210000.0)), ((4.835703278458517e+24)), ((131073.0)), ((268435455.0)), ((1.0)), ((-4.722366482869645e+21)), ((2147483648.0)), ((-3.022314549036573e+23)), ((-2199023255553.0)), ((513.0)), ((33554433.0)), ((32.0)))|0)+(i1)))))), ((6.044629098073146e+23)), ((274877906945.0)), ((abs((((/*FFI*/ff(((268435457.0)), ((-32769.0)), ((-8796093022209.0)), ((-4398046511105.0)), ((72057594037927940.0)), ((16385.0)))|0)) ^ ((i0)+(i1))))|0)), ((abs((((0xfaf507e0)-(0xfa98238e)+(0xfde730b1)) | ((i0))))|0)), ((((0xff29c345)-(0xffffffff)) >> ((-0x8000000)-(0x7b786755)))))|0);\n switch ((((0x52be5c66) / (0x40d88d6b))|0)) {\n }\n {\n i0 = (i0);\n }\n return (((0x11f58c8a)))|0;\n {\n i1 = (i1);\n }\n (Int16ArrayView[((i1)-((((0xffc1bdb8)*-0xc1829)>>>((i0))))+((0x0) >= (((makeFinalizeObserver('tenured')))))) >> 1]) = (((0x6906fcae) >= (new RegExp(\"\\\\3${4,}\", \"gim\")))+(i0));\n return (((imul(((~~(+(((-0x8000000))>>>((0x1757fcd4))))) != (((0xfe608a06)-(0xb235ac1f)+(0xffffffff)) | ((0x317ea44d) % (0x63acf90)))), ((4294967296.0) < (+acos(((+(x)))))))|0) % (((0xffffffff) % (0xdcdf2ae9)) << (((+atan2((((+atan(((7.555786372591432e+22)))))), ((Float32ArrayView[4096])))) >= (-274877906945.0))+((imul(((0xd5134665) < (0x35e723ec)), (i1))|0) <= (~(((0x2d53c355))-((-0x8000000)))))))))|0;\n }\n return f; })(this, {ff: intern(x)}, new ArrayBuffer(4096)); testMathyFunction(mathy4, [Number.MAX_VALUE, Math.PI, 42, 0/0, 0, -0x07fffffff, 0x100000000, -Number.MIN_VALUE, -0x080000001, Number.MIN_VALUE, 0x100000001, 0x0ffffffff, -0, -1/0, 0x07fffffff, 1/0, 0x080000000, 0x100000001, -0x0ffffffff, -0x080000000, -0x100000000, 1, -Number.MAX_VALUE, 0x080000001]); "); -/*FRC*/Random.twister.import_mta(740868763,-12651536,-1320513883,2032403590,1593663405,-106908085,-1829145408,-340872767,-1067988973,149267369,224260733,46051063,1694937673,368349069,51977270,-1758856280,-1683735638,-469167177,-2128372841,163157771,-240447752,360227104,1929157123,-1878763258,541076725,1750421474,1888580825,-1894322371,-1603551500,1316713106,-806127371,1787965930,-1416620268,-1523869025,-519384457,-1437385137,1247978216,265216080,1307658640,1943771145,-1586032074,-872267820,-1108000830,-1755959222,697354826,-1741255094,-779408560,1085777409,1417406280,-1163791147,619779058,-1162296351,1692010734,1429013667,1858368711,893303555,-1112816671,1780000654,-1054056909,-51490985,647308428,1171274723,-397043734,1796797025,1000358070,-460105316,1970098352,-1798465490,1363973101,-1862799575,835150843,49093041,20753366,1071838052,1648278354,1734282863,2015339925,903104165,2129518773,-403499503,-383223943,-1796377064,1620210913,1255320207,815047101,-1019523692,2144616713,-1743162355,964318154,1495988272,-1613256648,-546257622,950977253,996110739,799369010,-507472256,-1603608833,609383018,401082251,-2019939109,-1988907365,1116849579,-1409841200,-1394386990,-1909201611,-1907203969,-213144601,-2043159296,-1055763872,202142023,1721470709,-910967660,1725420646,-1891888094,494408356,-1164316125,762767844,-757390545,1817703764,-1237973630,1752671974,916834683,-1144214790,1820919400,688638958,-318412621,1428361113,-2113816341,615701184,2023410923,423685438,1959995600,1515851165,-365404815,1172532774,1904402520,-39672363,-1227434748,-478579051,-1146038881,-1748892131,-1668844625,1899748778,1422685017,-1376305573,563034956,-673985085,851602854,-1673870706,-1739982736,2067820386,1919399556,-2101260064,1223717536,355222731,-612176310,-476863106,1135799852,970640789,285582783,1073532151,1271354353,931301336,482035292,-944190142,-365874280,1972416698,-178716640,1587542575,-1889774776,-1263157296,-700196712,-589219562,1245453405,426862245,270743948,538880799,-1769825384,-1853104707,-1980450310,159176734,934318711,-1954589334,1279553410,-1399236796,-265608940,-2138051461,-1255898085,-877936968,-1242260930,-1262312295,1926843073,-113536628,85697057,-826202469,181970354,-852599508,-741476078,86676532,-875201348,367508894,496001010,30744764,-1070477901,1730001143,1605238370,895060297,1778065036,-63204483,-149335528,-425033101,-734455339,650703850,-1601097560,1751291118,1101460196,-497158943,1493198088,104759477,-1744126635,-1035553038,-656959921,408862222,489733923,1273204215,-50093632,947170882,-840563013,1522362567,-700943687,797503212,-175271405,-2033505124,-1242331382,1233488828,-704729133,-1070064280,-1565164870,-1479197600,-1752804982,939097303,1427165552,1385255021,-1924992708,145434930,-1864636252,-1987890847,-1598432142,16167449,1148059530,168133779,1209726060,2083773771,-1476511166,-696345803,-1222922747,1381885757,962048505,1045012342,-1051399052,-695349781,-945550630,-749296810,-1802217509,-1821963613,1436907359,692955272,-413112695,43905345,-1383209918,-1116818660,-143634548,-1735322398,-318138543,1972936740,214630332,779693273,-1414118032,-1122184378,-1529534156,885341033,229943213,-1138019271,854039078,172083017,2054935050,1424246596,403826657,-1345859708,-1312965075,1759625121,1885763172,168837606,-1264145765,2058755855,204082950,26401037,1681400652,-569583655,255579425,982689341,-157722518,1105138848,-587755651,2051122122,1567580615,836831858,528191566,1583995419,-754025605,-1023103548,-1574172017,-1073753836,-1286504954,37935481,481227316,-299424196,-1089834285,-1479530334,-1695813392,-476412076,1948550935,-649181008,-982895722,193905684,1044668413,-1320405077,-884720579,470814517,1925518742,719457333,-1553333156,616088363,2127337926,1788525119,583233778,-1518113756,1731338773,-999809693,80567126,-1786168812,-1710030119,2011289359,2136622503,348810112,-1097270439,-1762667901,1287131331,271432992,1436797203,-961301135,1004961239,-1224311102,701701137,-1561147838,-1491440467,-266009884,-1583313441,-1656937527,-210871876,-1095341708,368708681,-173437781,-1253038992,421849253,-1543940713,-1146356749,-580930542,1886819633,-1901210883,-1520312822,157273058,-1960665845,-13046368,366219581,1746724910,1586150354,2016896957,-1010068531,853666449,-1265427900,708860473,1027005687,1813400199,1685686990,299605898,1839144677,1168586832,1726558359,1659633906,1635548488,1053652486,1210909590,1025292148,-1120153463,2114856989,-607020874,2027351339,2133048441,-1519997812,2130690039,-867790472,593150355,-593397651,-1255532157,-1683360633,1797846171,1738735889,-484024448,440287516,1698971034,244255424,1757772675,-657615018,-1616434545,1708981711,-1231424183,-865411364,889792547,265142472,-268656568,247829530,-727968847,1593218840,-739213082,15653855,57508454,2000057923,1520206424,-414542197,80921653,-1215425881,-297525882,-341625115,-1901122419,70002828,1307869218,-936566014,491614430,1542295307,-345872121,-2047064044,243603004,-311924123,-35257752,-151939443,1824193419,2112618195,-689381013,404465256,-1351051750,247838114,1888772703,1129977625,1732398175,433083112,788918595,-787094308,-1759106933,1682342441,1699850307,1146855372,655773319,-333761260,194727402,1641292027,-800491038,206360445,-168169977,-486012052,1846872744,-454114416,1874792677,-593346962,980775635,1875184415,-2107113327,1309497791,-1325207192,-144869128,46171392,-980055552,-1447263453,1891732629,-904406229,53909128,1822348005,-1207376560,1145995134,-2067023979,912722303,465288449,1694136587,940480645,1006391812,-350247671,-1771197573,852192394,1234309629,-720790405,1485917792,1316715647,-1955871950,-1645504502,-972236659,-1157684794,-1734728569,1158646910,365902563,-1943018594,-32736817,39290232,-170125900,-43532852,-1194086809,1073429270,1882813634,-849417506,517606909,-198402905,409727017,-1718767849,-628904544,1824378856,1676739230,1775585061,1803779890,-1438407262,2088356343,1270835364,781964443,-38773677,1759054707,-1629090867,-1689788777,821299367,618537700,977904032,362352019,985791329,-1109064091,717604481,-1502224722,-15125740,-1445514271,176584882,-1065586129,1279118127,1348793508,-21537267,-1951475242,1403319669,1355495954,-873159860,-1774987667,-288199681,-1946712836,86659303,126040669,663823837,-873111107,-118917318,-630201391,-1178088996,-682326639,-940777951,1868541119,252372035,-1006205833,1688314313,707272875,1651756550,1410754656,284429755,703539330,-1710292697,-1645598531,-1437963110,-1475749460,330985085,-1659994225,-1534736439,2049794727,86583527,-1235808608,-307085018,-216462902,-1916229776,812881536,1565936047,759200770,-1530843417,-1684831111,-810220952,753277674,-490668452,1112105438,-732515011,-1044376763,-463904644,-808065143,1835148845,-2119696274,1776804770,-205775638,854543276,-1968428810,1627317486,276708598,135191803,-1489209714,-1893321696,-1650216458,1090475489,2051748264,1295091665,-568376838,1973982899,-1735994315,-1498222537,-260408221,-1162323862,1688501323,1422739748); -/*FRC*/Random.twister.import_mti(315); void (makeScript(14)); -/*FRC*/count=371; tryItOut("\"use strict\"; f1(o1);function x(x, x) { \"use strict\"; yield window } a1.sort((function(j) { g2.f2(j); }));"); -/*FRC*/Random.twister.import_mti(415); void (makeScript(14)); -/*FRC*/count=372; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return Math.fround(( ! (( + mathy0((( + (( + ((Math.atan2(y, -0x080000000) | 0) | x)) >> 0x0ffffffff)) >>> 0), (Math.log1p((x >>> 0)) >>> 0))) | Math.fround((( - ((Math.cosh((( + (( ! x) >>> 0)) >>> 0)) >>> 0) | 0)) | 0))))); }); testMathyFunction(mathy2, [(new Number(-0)), [], -0, NaN, true, ({valueOf:function(){return '0';}}), null, 1, '/0/', [0], objectEmulatingUndefined(), ({valueOf:function(){return 0;}}), (new Boolean(true)), 0.1, '0', 0, '\\0', false, (new Boolean(false)), ({toString:function(){return '0';}}), undefined, /0/, (new Number(0)), (function(){return 0;}), (new String('')), '']); "); -/*FRC*/Random.twister.import_mti(610); void (makeScript(14)); -/*FRC*/count=373; tryItOut("(void schedulegc(g0));"); -/*FRC*/Random.twister.import_mti(619); void (makeScript(14)); -/*FRC*/count=374; tryItOut("b2 = t0.buffer;"); -/*FRC*/Random.twister.import_mta(1196004563,-1097970700,-638275889,-930504450,1771993730,1780906995,813600850,1275678037,1188271500,-191971974,-727371,1219343995,-1983072763,1690874753,85718804,622290518,868331090,1178490779,-1207400811,-1907592651,-2032759220,-1786784259,131066955,651429613,988754923,1977358594,-1066053543,-2084216932,1741906582,-1113813309,41905846,1330940370,752347931,-312533551,2075082079,-1955246862,-331069747,-1470658491,-1530309545,1565460793,-1372832536,1136127807,273061678,-1079374814,-1981345999,1715504020,339413434,-673451572,1923734584,1052930674,-104910852,-1534728932,-1417308954,17964198,-1923983108,-146197648,911623390,-555953255,-22035044,2085577477,1794460146,-1559436418,-2000532538,2021754904,1980904194,1570825951,-427951869,-97143613,-257464400,295860416,-1808600198,-177751060,-50760994,1594513153,1313469560,-893881616,1598074339,-1676987818,-986435384,1878297586,75227827,1480817607,1262263648,-2088606463,-469226294,1331565432,-440039860,-1767181618,799271568,1668613881,-676296763,-2129547565,7126915,565557990,727447105,-1379424597,1780982192,-1459560162,1910113211,1272761577,-896844160,1550438933,-2089273454,-2038428635,-1873085281,1808180766,-554666358,-1501171267,1710336442,853496610,1641435700,1722077392,-1951274609,-1330614115,-2045522762,-1553505978,1292016772,-822586163,618674647,67282865,1325711036,54286464,-2107105389,216929758,906472337,689609395,-189422782,833122302,-862940785,1730349485,-1876282934,-933462042,-408160573,1282040712,-982438785,-822023866,-980590257,1945359618,-198913353,-164130507,-318592856,1829036870,-1984990702,840313239,2046974759,345278608,-1502083641,-1479912794,1185055882,-1109637730,1963855981,1359240404,-1697683619,405818220,2120581712,553838765,-1439837094,332791928,2136476159,218190424,-1178515008,474118577,701269747,-399964388,-1913524490,-1599620212,-2090120756,554944601,-1069353083,889549655,1680541711,-1435100932,-1732829384,-1080548570,1784828608,-586052304,464863351,-131959165,-554344998,-648788814,681219454,-1380551911,1972918716,-1958554579,-594520253,-1553849275,-961291723,-746401284,-1220015047,812706649,1840034511,216948294,-2032981920,-1826070640,-508724162,-1123767569,-1504444703,1853051120,-953532414,146456337,-627139900,-1054178533,1565079162,626232109,1119148316,34370581,1562012900,1420387723,1231282848,1626462480,-1813325605,1125795075,407258287,-754107143,-1342878382,897973081,746547045,-530792147,-667129436,-1086580093,-2134119093,-727086286,824319865,1283656263,-2076604278,949889898,-348718426,-1289777041,211468919,-1909401159,1799870760,721153228,819968118,1421628812,-87453,651139896,-1512832985,-1407289211,57581246,1262008497,1312873273,-1252265987,599137992,2006203083,1314104265,1707192058,-569336820,1604675487,-1219941832,-1681547555,47807707,-1644270191,1713570851,843230492,1094727745,-1745542697,943711968,492544269,1878982632,-560349903,-1903355716,302279924,1480054720,1023374147,1536000821,-1334869997,-134772062,1986688151,1433476382,1324469920,-1005442076,-978352832,-1983055645,1861704104,-776040942,-56755573,723079370,-1489942945,-152079994,1760541069,-1631518801,172978751,-1371865501,-1434576987,-471778660,-723655106,-380690390,2098638384,1658490039,1706697929,1085453098,1931088881,-553974963,36587099,-64965824,1768340457,599681382,574367817,737337763,2025361695,1682373428,782663208,2110457233,576748550,733229674,-574310927,1615414229,-1303920799,-389220699,717147010,1268568217,-1141390272,385264763,1038899759,-1728214060,414218638,-1510437041,-2074569836,-865839445,1906441257,-1028699726,134009369,-814563488,803259322,791313983,-260790095,-1216978392,495684037,1695242462,251756887,-1758130677,1527655893,1419832061,1924504394,-1209775676,1999642536,-665914633,-622138278,616725883,-2123008891,1689338158,1693161454,96662346,1197975876,1220319678,-157327287,-78242033,1192386604,-1327166250,943289844,-938107926,763663600,-453270428,-439566237,-80877193,-1266544387,-1359216739,1203507441,-1309977800,-1192181127,-1616915085,1722637045,-1784087682,269985218,-83374314,821665681,-1734849732,204559087,-212157721,-618685161,1991887974,-426007171,1795751488,1973075334,-1815861583,1776802147,416237215,-840734380,-1854138045,-2138641793,-736569681,-101294860,-1912505039,-1743711939,456904637,-794872238,802344560,331178324,758413768,426948695,-145769441,-1444450499,-1104551882,83759447,-954438520,-307610658,-798575331,-1028495636,-1195028806,2126540828,-1715770470,-1563983146,1783202265,-668402583,754859039,845780808,1938650341,420068030,-525773929,1195001713,-1945808563,1912232541,-1895501842,275316653,946085828,889996866,1447396407,-1373596159,185122338,-1322420156,-733309539,1391183161,-763371165,-1884569966,-1223914048,-962821839,-1440140049,-137307160,1804040321,-2044140353,-1482935647,899078111,-288006216,-2092610947,381645261,1872339633,1156008081,-582197068,-136039847,-1258307341,-1846339341,-390609332,-1707508044,1384932945,36485812,929670334,415323445,850865441,-1734060026,647910516,199348374,628820346,-2143580103,1100966998,-1074284261,-2112845303,-1497748521,-1176732238,-1043325689,-1686119288,1989253738,1971142143,281149874,-535189806,100456487,726278735,-1810468912,-306930459,-991958453,1421646748,1172527875,-1601922204,1267773901,438474170,-246459697,796236463,1707836125,441975919,-430910995,658720419,277375004,-1936275185,1990022978,-2076394582,1556146761,-1061607867,-1029845095,-324393213,-1989605407,-1710431328,-1473635044,-252178577,895515790,-368467040,-621996340,-2024834948,395606245,2043909061,1982069666,-444309549,-792570040,-737448053,-1301793138,-786985901,-95496516,598397722,174620594,221237761,207127536,1211396699,-346696423,-653316026,-1435617064,741230534,585839547,1522939606,1125470630,-1764293365,-804983427,197544838,-1746919153,-1855887984,523787293,306636841,-1881261308,506682938,1838760910,-2089636080,192531066,-208773373,-2052005136,-959445236,1270808776,-1260250047,1932856301,-89921577,932846418,-665262449,1067419951,-1861443690,-242873936,-1949866877,1732042756,1746642528,-1055150131,1968365411,-1900566175,-358796320,-1582314048,-1968843893,-549844513,122676022,-712050409,1701263809,-202765083,552639136,-727967237,234628090,-775024668,-397219076,247537879,1138428147,735312710,720109792,538194837,-899343365,536393339,-541412406,-1884031019,-1981918272,1985891911,1656204686,1743640139,-274625714,-753053600,1729669207,1830568889,-1676576964,-45018351,1936993148,780571480,523495675,790508625,-1244628787,828715106,-932718627,-32206399,-945414605,-787558659,-2096577153,-1686142354,801553909,1461919397,-823441847,1028730305,-1837233656,1748793174,-1890487013,-1799940797,-1779778213,-1708974513,-1827658106,487860402,554780906,-1802187646,-1809183432,-252078072,-601372460,1694073430,-1650506122,-545125587,1441404742,703081597,318199460,-1406332317,37476661,-89242671,1644455642,1672914937,1595698904,1503804770,742842994,-942891188,1791676331); -/*FRC*/Random.twister.import_mti(8); void (makeScript(14)); -/*FRC*/count=375; tryItOut("i2 = a1.values;"); -/*FRC*/Random.twister.import_mti(22); void (makeScript(14)); -/*FRC*/count=376; tryItOut("m2 + o2.i0;"); -/*FRC*/Random.twister.import_mti(37); void (makeScript(14)); -/*FRC*/count=377; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(46); void (makeScript(14)); -/*FRC*/count=378; tryItOut("/*MXX2*/g1.Error.prototype.name = v0;"); -/*FRC*/Random.twister.import_mti(59); void (makeScript(14)); -/*FRC*/count=379; tryItOut("/*vLoop*/for (var hmkymp = 0, y = (arguments[\"caller\"]%=((/(?!(.|\u11b8))/gym)\u0009(window) = undefined)); hmkymp < 5; ++hmkymp) { var b = hmkymp; var alsgnx = new ArrayBuffer(8); var alsgnx_0 = new Int16Array(alsgnx); print(alsgnx_0[0]); alsgnx_0[0] = 12; b1.valueOf = (function() { a2.pop(b1); return h2; }); } "); -/*FRC*/Random.twister.import_mti(339); void (makeScript(14)); -/*FRC*/count=380; tryItOut("{ void 0; abortgc(); }"); -/*FRC*/Random.twister.import_mti(350); void (makeScript(14)); -/*FRC*/count=381; tryItOut("/*RXUB*/var r = false; var s = \"\"; print(r.exec(s)); "); -/*FRC*/Random.twister.import_mta(-571129066,1295493378,444899427,-311142693,249303024,1920387568,1730472476,261617369,137284085,-1786792096,-464006820,2101852234,-1403605394,-1903646009,1668409718,-1763428153,-1434491713,-1117197231,-350040185,355386129,2107100192,-773326632,995085293,1345698999,1745209784,1800272272,-834072228,-991609717,1096447631,-350846028,-797270271,-454804013,697293448,1128471761,808219046,33541121,1315323520,-573347015,-1741252878,1408325349,631187444,-3704370,-1423259934,1275604916,-1684568186,-1876624791,2036440759,2071483560,671653255,605995723,1626726319,-848915851,1712806439,222887144,1591709890,-619662762,-134630075,-1063232555,1698663252,-1816096978,-1470493683,-2051983132,-415295356,1301840875,-1029308849,-1158394388,67882092,2108648447,1671110191,-1643178387,-1761132269,-1163701468,-1573846845,1657250111,-2049400292,-1120380957,338103441,-1814738261,1485823830,-16858277,-1351546541,-1009868963,-1081424644,1653374585,-348536653,1149211748,-815152435,185671425,1745556966,1884109988,891961525,1347938559,-1965670701,613373667,2131979493,1081322582,-24521937,990422990,1000976087,852617125,-1896887792,2006966379,1070393630,31955416,-1578615676,-1659892277,459129938,-2001337759,986020491,981685928,1048427113,-1870084120,-1989870902,-1470352574,-2000912155,-856721766,-1839538817,-376201329,-1043343919,1687621368,-1756812981,1211650667,1303462249,367739928,484743190,627215804,1251139542,815711004,-190158285,1703697195,-413363997,-509312572,-1782878521,1040237584,-1588563025,-1334771536,-853805376,-802172311,414228370,1092308742,-1361406164,994586662,1359952770,1435473148,-2121457461,-318221768,1006538547,-1572147832,1807547820,1832391048,-1038148214,901828273,-960629187,-536295177,-1899616321,-1063775430,747387389,1431222469,644887436,-931349221,-623529987,1545665602,-599365262,1211750316,327734581,1785094048,-479374317,-1723991928,166662799,-1260027229,-897466444,-1008175031,-703446445,57632551,1279224598,-1287666001,1253572816,-1134035315,196250126,961612038,331546223,-2019737649,-270667339,-641333210,-678802938,-716215916,-602861517,-204896607,156701358,1372223609,-1043255024,-764978483,-895685961,-341230479,-397649827,-1660792566,-1177358799,516165056,1328276831,1165179444,1993114697,-99381634,508282898,-1149668671,186559571,865672896,-1840428304,-1339736622,-1538072144,1610892474,614619786,-237891362,756115669,-2005357180,-1776264651,-1495322864,-1143896339,-1070389583,-995269461,599983531,139502403,-1573971814,-531277020,1539242279,1879701447,-229121505,-1437747389,45126386,-752388863,1864846583,-133586755,380883915,1479074614,-1043132430,1559247685,-2083751623,1517829117,-1512006141,-1043114803,310276909,221113830,850060818,874943869,341706116,-1886897364,-1003847295,-470499327,1714641212,84772713,-483670689,-943572320,-2112029834,1919725342,2011282851,1444355263,491095551,2092164077,-410656523,1386238868,1858688726,172042923,473406022,-2037856897,-89632827,1558977519,-473082973,-1311974287,254257531,-658530658,-1994140912,786427156,1182354216,-413182275,1371462078,-1673651918,2105816546,-1366372037,461530988,538574444,-260074193,-781716184,-792043732,388434267,-2046220277,-1429296950,295181121,-313796554,4192905,778345055,-949599983,-316851508,1959841590,1659624990,974886348,-1877702956,1917069980,370782870,469139741,536324980,-1877836455,1972674091,573935627,-1408734752,33363364,608149644,-1314664861,2127932468,1109377758,-1768818020,55319663,2138545241,961160785,-1014953556,-1021901017,1195975622,-469769570,845247854,-904864961,-1315985868,-1417569782,-25587920,1487549269,394513803,1880382703,-1707457719,1611833283,-451112040,-1133877633,-384331745,-1386291516,-177717267,313588005,-1538604946,11526320,-215085643,-1880444113,1475747973,-183225333,154848629,-79930787,-1708525387,-1973552832,-279141832,-1241214560,1272225652,627862153,119422702,-1891913952,337963153,1773898908,1126764128,781797924,-829661870,-1374905422,-203981891,987702562,-1621433460,-5686913,617893927,1132213409,-731981387,-1417409008,-126168495,-258469557,291220862,352107020,-1643424082,243235456,-808497550,710139313,-3475811,-200712213,-674951941,-1424741196,1337045478,-19665348,1271506210,329884148,-326431919,901328309,-1661737331,1355688440,362294139,-132550916,2097226732,1905874100,-1046344271,-867200231,-913239882,2129201058,-2050830099,1285301550,-1324226604,-1058839977,-269949593,-120260386,-709053995,-1763501847,-1131921337,-623904866,1376560716,-1609360603,102959172,-2049987072,-1521273559,-1417903965,903205977,-1163991173,2097720488,1893198284,942904791,-804766223,74688157,-1071439919,-380656256,-1149411222,-539851866,-2074776063,-890116369,967905446,466906674,1484462131,-623407549,-497768239,-461177465,-2093494281,1050367936,-1710782250,1611615486,-728931939,2025499121,1014236047,-348976351,1075462857,518085717,522843431,1319269600,-967249031,849690744,-52407181,-64794974,-616766097,1452387559,-1161307209,-611846930,1371897582,-1550834716,67276608,-245353824,-442125457,1224965530,-384004348,-1835510732,750705425,-625973463,426954805,868839982,32055009,1527528847,593505795,1650794962,1418804124,-1279219120,-2121341135,692928507,-875011291,-39023232,-162879460,1492429788,-1881176029,68962358,1934152469,-918828196,1113315769,-1467931468,-1360988456,1997502391,1843585673,1219881208,2049481488,-392009221,760854302,526112810,-1948572138,1590805256,-1427766137,-2120944248,-671278716,1362226070,-761410575,467466413,106702248,-691436941,-591767785,1283462469,175968819,750955053,365826245,-306981858,-1891730151,-1565270364,-989199755,-1945681132,-743851419,1247219425,623755701,1877003504,-682904368,1842927326,-1148890360,-359747544,-412506,1200568482,1698099508,761061858,267268748,1426420555,471334061,825486069,-267157946,1923819268,1182799877,-495980969,301379348,1424961024,691735187,-1851053359,807959318,-2097541291,-288352104,1653937698,1105207528,853176476,-1639474915,-431586838,-849545419,-1234640905,-1179588591,835479962,-1153299084,536610233,886526916,-671993426,-1947987369,699466833,802996827,-556858374,-1364301360,-2064618929,-518620741,867413364,703958813,-1951812612,1172383029,-334353617,1515269181,-341782727,-577816545,1721338971,2049106138,-1203055594,-423104490,-1701006497,-554399344,1227753769,-540137833,-723450952,1157149568,-827141984,226178500,-2023798937,-517290866,314355502,1854969566,1707035604,-1146979950,1739798274,-1534511305,1461936026,-640740098,949870352,2102448458,-1187010149,-941065283,1116889678,-1026119656,-1180202137,634457620,1929960560,-1245375642,1047789422,-1547529485,-1434342921,1504407697,121667460,-1143900711,-1259087901,748276963,670347673,64762627,-493076489,20686271,-296007095,1099154275,1505535848,-1795700907,1537919455,-292608090,1577159363,-481190350,-1830001313,-251820787,2028142566,1320957023,341495644,1842250113,267072719,756102094,1662128706,-1648297627,-692055186,-871454015,347680724,-79294370); -/*FRC*/Random.twister.import_mti(334); void (makeScript(14)); -/*FRC*/count=382; tryItOut("return \"\\u208C\";"); -/*FRC*/Random.twister.import_mti(363); void (makeScript(14)); -/*FRC*/count=383; tryItOut("\"use strict\"; testMathyFunction(mathy1, [-1/0, Math.PI, 0x080000000, 1, -Number.MAX_VALUE, Number.MIN_VALUE, -0x100000000, 0x080000001, -0x080000001, -Number.MIN_VALUE, 0x100000000, Number.MAX_VALUE, 0x100000001, 0, -0x07fffffff, -0x080000000, 0/0, 0x100000001, 0x07fffffff, -0, 42, 1/0, -0x0ffffffff, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(395); void (makeScript(14)); -/*FRC*/count=384; tryItOut("\"use strict\"; print(x);function 19(x, eval = function ()\"use asm\"; var NaN = stdlib.NaN;\n var Infinity = stdlib.Infinity;\n var Uint8ArrayView = new stdlib.Uint8Array(heap);\n var Uint32ArrayView = new stdlib.Uint32Array(heap);\n var Int8ArrayView = new stdlib.Int8Array(heap);\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n (Uint8ArrayView[((i1)-(!(0x575f84e5))) >> 0]) = ((i1));\n (Uint32ArrayView[((i1)) >> 2]) = ((0xe4f93fbe)+(!(length))+(i0));\n (Uint8ArrayView[1]) = (((2097153.0) >= (-1152921504606847000.0))-((0x2d741087) != (0x24eff7bd)));\n i0 = (i1);\n i1 = (i0);\n return +(((i0) ? (3.0) : (NaN)));\n i1 = ((0x7fffffff) >= (~~(288230376151711740.0)));\n {\n i0 = ((0x8c4917b3) < (0xa6467905));\n }\n i1 = (i0);\n i1 = ((Infinity) >= (+(0.0/0.0)));\n {\n {\n (Int8ArrayView[((i0)-(i0)+((-262145.0) < (8.0))) >> 0]) = ((i0)-(i0)-((1.0) > ((1.0) + (+(-1.0/0.0)))));\n }\n }\n {\n (Float64ArrayView[((i1)*-0xc224) >> 3]) = ((1.0));\n }\n i0 = ((i0) ? (i0) : (i1));\n return +((65.0));\n }\n return f;.prototype)\"use asm\"; var Uint16ArrayView = new stdlib.Uint16Array(heap);\n var Int16ArrayView = new stdlib.Int16Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var i2 = 0;\n d1 = (-((-18014398509481984.0)));\n (Uint16ArrayView[4096]) = ((i2)+(i2)+(i0));\n (Int16ArrayView[1]) = (((0x50aa7cdc)));\n d1 = ((((d1) + (+(0xe61ba234)))) % ((d1)));\n {\n i2 = (i0);\n }\n i0 = ((((i0)+((i0) ? (i2) : (i2)))>>>((i2))) < (((0xffffffff)+(i2))>>>(-0xb752b*(!(i2)))));\n return (((i0)))|0;\n }\n return f;print(x);"); -/*FRC*/Random.twister.import_mta(-260518808,683843753,1971153964,358785460,-1725399075,900824394,453830067,944562444,-1581032685,1207844087,-1002620066,1797520287,-1365570448,1233871212,1114804557,-935025635,127916326,97940124,1759686973,-518429258,-1398369683,241087430,-2002551262,802589422,1843258619,-34404627,422479435,489125407,-1229156819,-810637153,1904027360,885563834,1814322986,1621922082,-1518119600,-872410015,-134527094,1392121644,-270930294,1550706458,-105164898,1731207945,-1696316503,-236417695,170272900,-1289104541,-2021920285,1451952882,-624775340,182615276,-1145473371,459485036,-486421221,1718400507,-996878801,1886142025,-706329052,-1473273213,278042530,-18037513,1127318163,680767949,-593174743,-633377238,166403434,-238728090,642900497,-2121793485,1574394060,791125462,-1424293490,-1864066206,1739909219,116398392,-1260632005,438369739,-759575501,-993604833,144123818,-1178647615,-1794302472,393251462,-1838803725,1144404349,1332116780,-1578661485,1465588041,1792297467,-1832871211,34170125,1725848868,-850246624,433246303,-1117913600,644215683,1887820603,-2126641936,-933465359,-1977790146,733302565,-150384593,-229269359,-1882344971,-1303920410,311080015,-1045847747,1325009802,-1908604037,946629345,-371810021,-552610012,694856635,-273986903,936919173,-1718743061,-1750407486,-1997042132,-726418475,2108012016,-945203407,-519871161,-1897661794,-85533622,2094623503,1412521691,-953777732,163171994,-139285562,-1024092199,990761599,1090141172,1362036969,-1311737200,-348807382,433627312,1415023612,1868087542,-1440821725,-305049418,-1593469855,-468389886,424408155,-1853503734,-2043534077,1112767192,319145704,-1698601837,1550809735,423676575,-4158145,1833352791,1051074958,135965983,-304607628,1236895360,1155997661,-162608760,-14011671,-412630417,532850712,-1281407426,1220196578,507382540,679874131,-738926650,841132425,-1838516780,-1798229839,1555322649,-1314792350,-1140572293,1018380630,-708561272,-1589579028,1639814918,2011213638,-374613689,543559379,-1492452079,-145032982,1045370895,-1178265697,-1255403283,1398340115,402089344,1312788829,654575666,104459033,1933255931,-1722870801,-706079827,-1890706956,1494826369,-748854369,-314328458,1868590640,382301809,-1176683020,-1721177917,379397400,294652892,1758549392,-2023212356,1042012417,418851551,-411177167,428957066,194369456,-453647096,1241244826,-697946167,-1853780362,-412235536,1089796250,-1550708091,-1140683697,-1213392936,-284897834,-1524124789,-1832135247,1007075203,322486224,1763128617,2009880658,1814948625,-661175126,-1172416217,1088669239,-967199219,-797897555,-952895346,-1254355386,358152883,-327399218,-1599967921,1442313778,-871972055,1037836775,-1156287786,-1475478909,1356730981,-1050055892,-1033132321,6014128,-20217213,-2146410014,-1845442264,925425926,-1497112138,-347970702,1859712853,350991220,1594583267,-1423066933,-1970469825,300797700,1701111866,405606186,61606609,-267617632,1857510401,1070565168,677151580,8780450,-99348958,775368813,-2097773704,-706445103,597805697,-846482141,-757847819,-1602145531,-604586052,-1989870214,675876867,1418557206,1193496410,-1414166125,-1168878300,-1951254641,235510381,370139741,-362800493,-2139024831,2045452284,641170361,670796140,-854884509,-1842863718,-1440071089,-1604908623,949940837,-322402688,777757051,-123071107,1457226119,-1143706233,-1528769484,31790353,-2072635479,-1897766430,-1562870581,1524528921,-1062855563,1159699697,2013131184,-1733254482,-1639587658,-807521170,886401536,-1046766966,1856436730,1499773663,889161898,1529591988,-873455518,-1106659251,1041862206,-1735227099,1726879687,1207981941,-1263753831,-779663981,355177867,559779279,-1198319374,-326579003,445262079,-1527066637,1819352796,1645677739,11523192,-2114039451,-295322225,1354820147,-895497604,1247022017,43647297,-1912850870,1001850412,1928772645,-299868425,-861360622,-316817002,1594703438,2116725383,-1070301023,840540624,-1170326320,-613262470,1804979741,1937207410,-1876898715,-379927653,-1428342441,-849811937,-573440481,-1952931016,-375807386,49784469,-1091069918,-51545785,-1257032826,670373449,-1604283611,-489358367,-432395999,-1007462597,-714429860,929565851,1698576937,-1330033542,1183830194,-48645024,1661373849,2091128846,-166437435,-1039430880,-42858613,-1620316538,-2051073400,-629333022,2028710051,-1999742850,-941188941,1589539944,-521285301,-682111387,936262451,-2049453147,1321737412,-881054676,-883185539,2090252216,-390378274,-1352483028,1675157705,2068361095,1372895897,-1128110674,675401633,581702436,1963423814,571142924,-321847715,1692968930,1931295624,1087065691,-2119244935,809331417,-497789900,-859437551,-148459926,1403247346,1535597356,483550504,1114444848,697978885,-745107033,1425214104,1718116185,1495321992,-2025682297,-41895827,1632529104,-970636509,463397235,1637330339,-610314879,1648221851,-1188468711,-1268375664,511213194,-1880538241,-1660314116,-1012605064,-203477511,-1892380683,922293392,-1719898207,-1268630798,1372746793,946458955,-630264401,-2014940511,-1259363719,-792030703,79079123,-119351624,227970020,1128406992,627163403,398498301,240048748,-1789780238,-541257958,1233990402,1941788310,1032104344,610953818,-969616128,-1186842521,-1942473355,27847691,-2126995286,-977128426,-752308595,1017399179,1603149794,-2140831036,-1594417691,-631871699,2016755169,-2042602638,1616419434,1145891506,1153147625,1250034473,704642812,-229446463,-41852092,-2061440982,335567887,168561086,-1806254666,1130786837,-1678576030,103786954,-1886793193,-54898731,61597814,1215856580,-647845063,2109618437,1238546711,-1396166840,1583615390,-468860166,2115419478,-1968221970,1927892127,1850388873,-1538188549,-1157596939,539744662,-1918618788,-1609044505,2028335362,198003673,-1624817017,-8533998,439124909,346817315,827718045,-889428443,564275424,1026100422,566643732,9915718,-1784867582,-1810686554,1351963273,505468429,-1851524473,695591330,-1875365722,-597546462,379049623,-709857145,731184136,-531231743,1551017151,-506032671,-342629797,1642277875,232975178,-251285801,-1719816633,1929903936,-1886254884,781459784,1892851811,386570646,1943636666,-1325441076,-1208678184,834216751,-1821322611,1563371931,-2007067863,-1730551078,612979761,1131100855,1133078925,-290845122,136452272,-1682034164,-2007795111,1035904021,-1646576786,-1660533372,-2071592125,-1511682380,-1211383926,-1267359019,-410208362,1506500588,1437586549,-1466055659,1443872126,-1651989551,374565337,1231217128,-219470517,801676569,-907565231,1346269246,287184,1603336717,-865197075,-671962306,793402693,933522206,-1130836168,-1426852044,742577930,1344217503,-2022443494,-435162892,-366293967,-1357058065,1814624001,386528118,-442886429,1192451336,370930034,-131311051,-271789510,677373220,-288784490,613211744,-853305246,-2056435360,-624292239,1366874197,162517947,-1473479339,1941401398,-338301701,-1466619181,1773677095,-1147672768,-521609576,-356469019,2025340538,-1456270965,-1822471614,2134971877,1553260609,-1606704694,-2087103993,-1561863372,-1832798461,467961597); -/*FRC*/Random.twister.import_mti(588); void (makeScript(14)); -/*FRC*/count=385; tryItOut("v0 = Object.prototype.isPrototypeOf.call(g0, t0);"); -/*FRC*/Random.twister.import_mti(603); void (makeScript(14)); -/*FRC*/count=386; tryItOut("\"use strict\"; Array.prototype.sort.apply(a2, [m1]);"); -/*FRC*/Random.twister.import_mta(-1239331060,1802112143,-1233963660,-1109573488,2020912513,-511067584,1043104650,1698292491,-1642133178,1359193639,-1403911349,-1763482303,1425594991,1516612685,1911350464,-1259781383,1363731388,-151080083,744413171,-1925780007,1857358310,-674812234,51924975,-913433093,-19792351,1390246269,1780200381,-484926183,955951027,1663070723,2079587710,-309495276,1382782474,-1410809167,1265542527,1703271759,-426489623,-1427805511,-1382929163,-821917130,1705258670,-1568438885,2021693902,-244240720,-783405753,-488859291,-1322555178,-1433983733,-241263601,1411291548,1225208165,1349157098,-408395322,-134167528,-1000378640,1026800367,-1018053646,-585411293,2042879422,-1323482476,-17023313,-1965132077,1232461135,-2101257291,-2120180140,1176007842,-1738253107,-271381300,-766379267,-962253238,1960184378,-1252205812,-2095215016,596740391,240036119,-933139673,2100006434,605227455,-1046742131,238890005,20596330,-1178319782,155271328,-634233390,215718972,-425369484,-1502700132,71188483,-1687522740,-1466050320,545688538,1516767975,-501960491,-913202840,-382590330,-637687487,-2137476958,215749000,1612331013,-51899050,70230637,-1594305165,-745754467,-1566267801,-677981752,-1020518594,622217623,-451584967,541577998,-812644747,-1252518912,-1525653934,1573114394,1790082872,1375334604,1356317749,-1039887192,-1272005411,-1686228057,-727707974,1723314523,2112103267,1928925274,654508564,1929777751,1526477120,-1434800284,-788030831,1421240646,-65062952,-1492590020,-849850929,1577989021,-1397072807,1985569089,-696586854,1737766293,386630568,-999779931,-2096113962,1288758453,2076515525,1434692226,1337826340,2035303191,-2090689792,-2065266906,626494044,287178392,-569193253,-1943813558,-1070936117,-1095592941,-66772582,-1611502848,2018270835,-1525366746,68247510,1203981500,-2106486509,-334617048,849453459,277908632,-1258542489,1151330136,-1395608482,1688966925,1126644102,-10724953,-1631457138,200701150,-2105548975,112182280,-313104302,765673082,-457196140,1003524861,-1522183346,-1303717084,-1777251098,-2047976768,-1676787036,1019932219,-603383298,-1856166604,606498567,646744683,174511510,-1175589342,-1545430890,-1059783968,327933675,1519176993,-641912108,462995481,-2056914799,-109803495,-1833985610,1565877246,-253468709,-609978126,736884858,684467145,-1308623920,1737875237,-911874139,-553589335,1661086417,1834099190,437770862,997697549,-1738340221,-923838818,-512126022,2090734008,-1153542796,-1656565746,-1289529504,2036222860,1414833500,1994213901,-250099190,-1679979037,747050832,-1901299359,1455827791,-492972743,201663701,-1705362938,-706033357,-415021133,-1412407289,-675832281,-143325710,264378386,555014157,-1763375605,-1311229408,1542269151,-1516280958,2060523995,-1982757008,-188440415,-148532702,-1225358436,1700705127,-693985958,2111109437,-1570365681,-310606694,-1006910399,1214053007,-566028857,-1235910275,-1410434405,172544942,1865872790,-483571511,-712292540,-1137145643,-1274085079,1598088401,1707548702,-610381832,1693860432,-1393988279,1022917249,-1384350927,491712469,-1998439061,943261677,-1128959335,-1502681128,2080854024,-2134794624,-770753630,-657658486,338500599,-1933890574,967056431,1779402217,1751634790,-461667568,-1079757812,1460164640,1782454536,244338170,-1209520542,1187243819,-2141787832,1200001624,-1211835116,-2009262912,1027204780,498498768,1454603489,-1797962672,-1389612947,779051015,-999506263,-336263267,-97967548,1899681218,-2035486587,535687527,-842814758,1092607054,1725258845,-475074214,697077221,-1386143441,-1184796276,-52779999,-1946467898,566644786,1566973621,-141484049,-1245216873,-1340624421,1595681712,1255097211,418984080,174117723,155109018,278240753,-1890128200,681947638,-1889897141,-692037091,2073003543,-1561113509,1314998693,756445478,-729904047,-1067796217,-597334479,1473623562,-1280962779,-120857276,-38781737,-995434340,934127557,643376382,-1383986289,305355073,577553192,-1918050734,2074652467,274534110,-1640282229,515422765,-501300038,-1218846638,1713144592,782457153,-1554635114,-1177328060,-742116593,355151450,1098252172,1271156773,751892610,478729825,-290665256,-9875833,779957738,2080296340,644198811,-1183208873,-32241847,1474378265,437758798,-1108458192,1819111733,453346907,-1289789275,-1089009333,1804759376,-1885390712,-59958953,-1858359189,2056195982,2083222092,1609514144,1800300002,-289598266,1892861694,786533230,-1455228770,2012513018,-1857930127,-1204124743,-761532542,1358311778,345400848,397973788,980227986,-1173055155,-1675694714,-880307449,-67083840,388006489,-172309486,-1800381172,-684654401,-1950071072,796678932,473013155,1561872151,232834081,593668649,-355569151,1308066430,189736957,68151042,-1730452422,774307915,1880556268,2045926311,-256880046,-181578736,-2127481467,1655510136,-1982612111,682985720,-1986878568,1495742933,1868784365,-1006786584,-1387256038,-338889704,682221664,1465513669,-1853609129,47203693,-1917515819,-997905077,1611342405,232099724,-1830925337,278403441,-106804798,251761532,1203329409,1885091459,-2009877925,-1895348502,1252794705,-1210281992,-1166245365,-1489025270,474252608,1373718137,-399189440,1675338584,-23288953,-332111240,-108981377,-1176152790,-189926233,853322014,-791235977,-121102633,-1770432930,-751230933,-1418604730,1657139352,1427510826,-1981594094,1035443852,50729323,1407495603,1719574238,-1500589969,1609731172,422805156,1362441681,-687588545,-394445776,-1601985435,-188353176,2028397635,256825201,1696443213,462864412,-663602059,-13673424,717445373,-1206553628,605213733,-6131686,-783309037,1262403860,-2129029419,-1156027243,1920788762,-1159406570,1194481990,-1176315154,1175646536,-768952301,199336738,377992967,-1999044287,318702169,1169714654,1171711150,-152989478,-16989446,-1681561831,1807402245,-1000937106,-342076135,-1293496777,-415679982,1482121544,-1867133118,1204630779,-1123395691,-1036740077,-864288969,-1951488247,-949341827,-1066421119,-1523570626,1079932182,372237629,1478856449,-1344054208,-669424867,1906119173,-1240594616,553839400,-1461257880,1612982776,1109694190,-63247847,-723329393,-1096256030,-1416579963,714776872,709041401,1686821864,-269570039,-297927685,1908641939,-810749399,-1118804119,-2048996901,1175200310,-1032659875,-1473728395,932899489,535869161,-884246253,-618708197,-1498510364,1696902798,1082971154,1670730724,255147311,-1834451363,-2021606924,-1796745281,-1067428626,-1808895310,1315923506,1240248905,1554676090,-1315584567,2141392828,914500021,-2112757422,1128275969,-967586748,2017605313,-1640401053,-1468499980,1562469779,-593447475,-1464787603,896625870,-1122352886,-324362786,-2048567158,-1540616630,1120666753,952346719,-1060295099,-770830007,28313479,-185747652,-2051502524,410477328,761809186,476526482,-1980600748,63883403,762516613,-274191872,1258077444,1504912107,1198708546,1319359934,-162715566,42055421,-2051625268,1037694665,-1211291080,-1845504128,1109708544,456788654,47578987,210688451,-1552895116,-521314881,-1856194345,637598862,-1473817764,174061150,25550072,-989983410,-1019057475,561885204); -/*FRC*/Random.twister.import_mti(47); void (makeScript(14)); -/*FRC*/count=387; tryItOut("/*RXUB*/var r = /(?!${2}\\B|(?=\\d)+?\\\ucb84*|\\0{0,1}?)|\\B*??/yim; var s = \"\"; print(r.exec(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mta(1453928405,-2027456708,-1788267697,422741983,669278073,-1431534121,1059331158,-666991588,2051876140,-1604457874,-834102820,-1368614145,-1176853800,462739529,1773298594,626258848,-1455894892,-886555612,122200585,1501398200,1542755767,-1586049905,1300229232,323820511,1901541860,-827818631,559366946,-306156546,554314310,1692321642,1504042983,-1429705491,564983453,393418360,-2090615272,-48536978,1576939220,-854465592,-365673778,-1235797476,-398307241,1905640299,-1436099393,-516440307,298104239,1469327127,-1947042853,-1852061605,-499319147,848064135,1654219044,-2079801573,-964894713,-988745614,-606738200,1883872128,531742734,523914631,-435027251,172150256,635869385,1146555218,1824909730,1913447988,-1277523930,1844609134,-510603208,588869002,-937207709,414119301,1337490348,-932347586,-176690496,-1658194625,-287528705,418077135,764404847,-432553603,-953853839,1369970404,-874112750,-1394762656,-1919251828,-1297597578,1270109305,1551473087,-1106625645,371456314,-1942171635,-1351869987,-1627394735,269982545,1088029841,-1959042727,616153964,192059717,-948462063,303939656,1275650993,1643888127,-834239712,1227633279,-1907879260,-1176383241,1786227901,-586931437,593174402,1121774558,-75964869,528150190,-1536573453,-1877136393,-1365485435,1128676707,1966455723,-895606963,1912152198,864981790,839345685,2061936432,-533228139,-2072584264,-776660199,1827686083,-1496268887,-766023985,837077270,-815063907,2119298810,1168872483,-1484711623,1508701521,1464663534,-1816587654,-1657572987,-876592835,-1553778500,-619130379,61046149,56240284,1879629874,-1805016925,-1941013865,-1892011908,737300857,653891707,-1119521497,-424475465,-943569375,-1984097524,1145942099,1133458189,940487419,-1920210467,1292251027,621841074,1576540418,-391454899,1127168845,-794191632,-1518547304,1220842078,-521931256,1836764803,-2067782542,1826472621,-1250669700,1724303586,-615609611,194272349,-774116034,536714110,-2025917984,695373953,81655679,1190205683,1373800870,-1619615274,860524722,-590456317,-427862362,-1706253743,-224118478,-534802441,-26547310,928298208,-375785707,-1726763109,-170049023,581335537,-401672203,1954805770,-19888093,-713762988,1868037035,1611299479,1361096651,1136851165,-1122129760,-467643859,1446720694,-1608665666,-145238040,-1606491575,-462855706,-1309010615,-1507168247,-1058785111,260725706,17156629,-1461665193,-742751881,-515695011,1013696476,111484948,1282709356,1428124275,-538995022,-892924143,859483406,512432523,2093032818,1545371126,-1613016937,915777590,1795436798,-25718111,1535390422,1960485754,2143297609,-707655933,-717807435,-787085522,2026180703,1371297989,-399042826,-122554498,985054572,-1130157250,1572511466,528227313,-1965522131,1589721777,-230453414,546297160,739896484,-1096857351,-741397777,-674722110,-1249198449,-294922681,-948042792,210373912,-307704144,-1461452247,378622093,-868166703,861961285,1843173464,-492583210,-505686833,-1316999657,-791394926,797249532,1114498483,759222097,971093851,1072535394,-320049919,1869803414,1717941918,1123272259,697798419,-1953319781,-123972214,-1906669488,-510504029,1690629341,1104282067,1785958956,-249357887,-370661024,798720390,1949690910,707084547,-514186192,297196225,-544220285,1149009910,252092558,1777240254,-138149306,862876472,-280236464,-1857527003,-1035339189,-684696212,-2121827472,1934847669,428202449,-532847587,-1774075362,-2102029998,-76436477,-1059711984,-1481984426,-70645739,-97427009,1628662349,35826372,-300383312,-1395542346,428095836,-286714998,-1583855937,788328229,1820792521,1610384739,2140769929,-55241229,-2025326319,-1199498722,267254280,1446371382,364295956,408566602,-10602619,1009655537,-1377615445,104399958,1205454074,2096927790,1848890852,-629214242,-1243158503,-1869478594,-1616815645,-670281391,2009957699,-859232053,-2120720802,1712925140,1163373141,-1578615559,582546058,886114620,-1640349578,-401009926,308530338,132249296,1577002142,-42184832,-1587992761,-1078078103,-557838378,582507992,-1254015621,-317420012,2035681943,-341416669,-2049872325,176138858,-57268399,1172254496,-1943647488,1046223695,-1990180722,-172194362,1919620056,2125879108,-2110659109,889549793,-909668290,701433557,1714684986,21066331,-59495516,1132604439,-1531900039,-375662063,-255037926,1930663605,182916322,1751067635,-537635538,994465842,-942056121,-1310870825,859755299,1900697839,-1469104256,-309472333,78043676,-1086359436,1830454380,-965213892,-1885954012,-1613456387,-482942430,-113327872,-68525710,1040225654,212416117,-1552762586,-627801434,1693760824,1272850189,1375454706,95711390,2048777465,1282410024,-1735316819,-1409574975,-341965676,-1786897018,1002861307,447608967,1308584697,1289474339,-2075778517,216333641,503411095,-34925328,91909047,1191946513,1216775317,1251562372,2009458498,-155867597,-2102284828,-194375047,1456286299,540061757,2118836832,1597377436,-188711504,-402068504,-1375074927,1138562139,805806650,12247869,1093003690,-157250701,-197535251,1120862016,-1924879260,-815526535,90529399,-1191717720,260300403,-772206025,-2022851627,1595825630,-1885715699,-37563446,46174790,-1710745303,-1994347114,912878137,-2005380191,-911803973,-1261377679,-1559511591,136697780,1863211727,-842935438,1999738367,462272760,-737981333,-968195365,1119447388,330340903,-1504299956,-781840693,-547973699,1717216501,117445583,-1705686945,238510389,1994979244,148048974,910940494,-1122552332,-1047809057,-2041458016,306918976,785046135,-36606659,2055337178,-284852833,-567645014,670205241,-1262177052,-43699762,1188291567,-241302774,216777525,2056575977,570080999,-1718983739,-832412406,1792491222,322877487,837116496,1176027698,1664709508,1359174209,-1906476868,1023552051,-1018276901,1444845737,-958145712,555873268,1646938056,-1281070297,1277597783,-169309652,-295496789,265748368,-866435972,865340683,1811270468,997626068,-2052568717,-509066757,-515101452,-1398821234,-137573827,1665516367,1668524175,-529092697,-1873321596,-1277572382,-1948771095,-618452280,-972640354,-245664420,-1320371903,1611750443,1288268232,1656761641,-1814222005,-2147284994,-2104402965,-1105854987,-1052293310,991270552,1554001187,-611906811,-1210309383,-1691809581,-680299877,-1901408031,1140014035,-928444509,-21756839,1957384977,1738518259,1295400412,-257819732,1243773999,-165235485,1139367486,-7244908,-1843697656,284833370,1899479344,-1345494301,-405046289,981872011,597793020,598737443,-864441885,-1122785708,221296965,-2072524852,1407044906,-1436080504,1243915705,1812535598,-452631794,-1068683437,1424823095,-139226818,-1090352847,-2126989304,1859060179,1019169222,-93318639,625382477,2141844670,-822473694,1919396551,-1613470689,-74506737,1989289202,-1504082978,226549574,47277793,-1397109060,-1675745409,1166897051,638621828,-950878323,-1681242186,-1502980065,780112298,-349504762,1005354357,1811247970,1707224740,1201019460,-1542880244,-698284803,1487121623,-493338729,575284904,-1132685778,-1465767780,73675872,-1656717613,-1783430675,-1765353162,1036683025); -/*FRC*/Random.twister.import_mti(41); void (makeScript(14)); -/*FRC*/count=388; tryItOut("mathy0 = (function(x, y) { return ( + (( + (Math.asin(((( - (( + (x | 0)) | 0)) ? 0 : (Number.MIN_VALUE || 0/0)) >>> 0)) >>> 0)) ? ((((-0x100000000 | 0) < (y | 0)) | 0) >>> ( + (( + (Math.max(Math.sign(x), ((Math.trunc((x | 0)) | 0) >>> 0)) >>> 0)) - ( + Math.atanh((Math.log(-Number.MIN_VALUE) >>> 0)))))) : ( + Math.cosh(Math.atan2(( + (( + Math.atan(y)) >> ( + x))), y))))); }); testMathyFunction(mathy0, [Number.MAX_VALUE, 0x080000000, -0x07fffffff, Number.MIN_VALUE, -1/0, 1/0, 0/0, 0x100000001, -0x0ffffffff, 42, 0x07fffffff, -Number.MAX_VALUE, Math.PI, 0x0ffffffff, -0x100000000, 0x100000000, -0x080000000, -0, 0x100000001, 0, 1, -Number.MIN_VALUE, -0x080000001, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(308); void (makeScript(14)); -/*FRC*/count=389; tryItOut("if((x % 2 == 0)) i1 = new Iterator(this.o0.b2);"); -/*FRC*/Random.twister.import_mti(353); void (makeScript(14)); -/*FRC*/count=390; tryItOut("\"use strict\"; /*iii*/print(txostj);/*hhh*/function txostj(){a0.shift(o2.o2, f0);}"); -/*FRC*/Random.twister.import_mti(420); void (makeScript(14)); -/*FRC*/count=391; tryItOut("testMathyFunction(mathy3, [0x0ffffffff, -0x080000001, 0/0, 0, 0x080000001, -Number.MIN_VALUE, 42, 0x100000001, -Number.MAX_VALUE, -0x0ffffffff, -0, 0x100000000, -0x07fffffff, 1, Math.PI, 0x100000001, -0x080000000, 0x07fffffff, -0x100000000, Number.MAX_VALUE, 1/0, Number.MIN_VALUE, 0x080000000, -1/0]); "); -/*FRC*/Random.twister.import_mti(452); void (makeScript(14)); -/*FRC*/count=392; tryItOut("{{} }"); -/*FRC*/Random.twister.import_mti(485); void (makeScript(14)); -/*FRC*/count=393; tryItOut("print(uneval(i1));"); -/*FRC*/Random.twister.import_mti(494); void (makeScript(14)); -/*FRC*/count=394; tryItOut("v0 = null;"); -/*FRC*/Random.twister.import_mti(505); void (makeScript(14)); -/*FRC*/count=395; tryItOut("\"use strict\"; for (var v of b2) { Array.prototype.reverse.apply(a2, []); }"); -/*FRC*/Random.twister.import_mti(522); void (makeScript(14)); -/*FRC*/count=396; tryItOut("\"use strict\"; function g1.f1(t1) \"use asm\"; var exp = stdlib.Math.exp;\n var NaN = stdlib.NaN;\n var Infinity = stdlib.Infinity;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var d2 = -524288.0;\n var d3 = -17.0;\n d2 = (+exp(((d0))));\n {\n d0 = ((d1) + (d1));\n }\n (Float32ArrayView[((0x2e813361)-(((0xe626b06b) ? (73786976294838210000.0) : (-2.3611832414348226e+21)) < ((NaN) + (d2)))) >> 2]) = ((((d3)) / ((d3))));\n d1 = (d2);\n; (Float64ArrayView[0]) = ((d1));\n d2 = (Infinity);\n return ((((Math.log2(Object.defineProperty(e, \"d\", ({value: -9})))) ? (-0x5f6ed39) : (0x7114d626))-(1)))|0;\n }\n return f;"); -/*FRC*/Random.twister.import_mta(-1673060253,814402394,749679152,1896939025,-1302436030,1396389982,-1888617688,-1481502672,1960462351,754609123,-1614464942,1499013618,-1361117182,2024355833,-1975987331,-1083707253,-1911940474,1339227229,393785511,-1369505149,-1001603999,711206683,350756635,877617595,-1604452364,-1388268191,865754696,395230258,2062149408,-12383064,-72785429,1064005026,-1995954472,-170144395,675322732,1322231639,1489113988,707537659,-1343496002,86078236,1338529019,-806958373,-644559517,-783283915,-202945794,1783694913,637308191,-1428672299,1292512248,-30884373,-1637240539,1119949940,1829480010,-1139546557,-11962859,1355202009,420467985,1472422515,1205990590,301196690,-1425332161,761576,-1317134149,-800342616,-1037457594,-1815882299,1504272753,-770226655,413014383,1357752361,1069250663,-1363625717,299288731,-1394635268,-959609313,697923236,2071289514,634161498,244232071,586358598,-868514193,1224352883,800909847,-201222483,-2122341042,991598818,-1969598654,424086137,-587888015,-121791488,751964234,-1008449971,1938849260,-1938387684,-1153205948,242731827,-1268002326,-102817048,1483435306,734560933,-2029358583,652130229,1550990177,575734667,-581066880,1116944366,277551039,-492036624,746849491,-633391769,1599823256,-213600594,1004928437,-175311453,2057593897,1507681207,2079133255,867133682,1901448143,1560014905,-1403487113,-33242429,590065602,-1175133696,-1680422660,1669657695,991262690,-1635731834,1519474234,643273421,36831306,1222884792,1789862322,937928634,1824518597,-496478532,2136786124,66725077,-945046576,-916519611,577821135,-1086402113,190083574,-1372474038,430528425,128519602,1757440367,1157393978,-2053517628,-1069810066,-462486406,1586029223,672227528,1688383429,-973391934,-1604920224,-290528086,808854234,-689911775,638923869,66971612,2101855960,521415730,1212313110,423683434,1498643328,-1930291227,649371053,-868702037,1507473327,-533483684,-465304801,-147335916,-1194863716,-1715454331,-460788432,-1297549633,1419112732,857233938,551708281,2118764415,863418656,-2062651894,-1708124473,-1679330013,-114730910,573765164,1558485230,1231238191,-1010775306,1191097795,1544611551,1341980647,-1861568076,1744273846,-1006678531,658352302,-452867489,-1651851973,-851175035,495846809,2038074645,1705905991,-299198580,-2072455712,-334688161,1042813702,-602969517,1071648202,-1559805858,469699426,-767212924,901812364,1720762030,1638683122,395218410,-108081244,-1530356864,-1157273328,-1274602830,-2112093033,-2035542425,-1837028108,-972379448,-1607394926,821403833,1342742138,-1507167778,-1771934815,-1622245010,-2105287020,-623549227,-1236205394,1052469141,-1817601205,142783408,1906390357,-2120962611,931425927,946453797,-456276304,2085682938,-2042218714,-565317598,1507723791,-1858100220,1588602667,-1347880192,-374749053,-86686489,1475371095,-434570888,-1684745671,-18813053,-976313173,-977191401,1073447509,-850973241,238718665,1626176608,873687713,1076541861,420290729,-520334974,-1518010996,705924044,450345133,-524889436,-1201685232,-358214100,1763793611,2116304296,-158274349,1504880602,-302680835,-1530154250,356677466,663224595,2012798306,-862807435,-924323085,-1467697450,1792822230,-1793735345,1735290987,-1775097599,-1489192820,-919267388,126406319,-2054593308,-341197685,-1684103462,-1536810259,-2012880836,708512731,1929787353,271455633,-551911454,997385532,-1195324854,-402690829,-2020127050,-852946822,454972578,1981403761,-362603694,-958193850,632980374,1240166673,414231503,-1570157066,-843204128,208539943,1130290370,-684602060,1941877194,1313566318,-1978243119,1689681003,-1455738437,-801767405,-55212992,627915560,-1095726496,-168673459,-20134345,-321438462,150168067,1707226526,2141116700,472861084,-364612238,1873563137,-747580564,-1427824785,-94627587,791784720,-1112199194,1277727252,2066338458,-2038406839,-1056505380,-803091180,716273410,700968044,2118708212,687307076,-446064090,-34326101,232013197,-2025142848,1383263104,-1521308108,1416982537,-807626646,-650545064,1356715463,-409881122,-466075658,-1320212880,1926787727,-872656206,-2138586836,2035278156,-975398483,-1021600873,-1283373146,1531269155,-2140800483,-1824246844,1841020005,1028300726,-901366265,1541041010,-581670968,-1146889450,955406522,1866412825,-1286750352,1349998533,-2078026688,-1064780365,225573190,-1051406787,1838485187,1812256349,-403481111,-1016447342,-588621200,186889202,-1483983088,1528006756,1187825594,-92318253,92839219,-1946945351,-1892103538,-1851204019,-1730452577,-1966938707,-406349529,110892384,-181292637,-538789908,653242240,-1879049909,136283264,2090073904,-1754208381,-1556714210,259011406,1460801052,-1931060696,1754134767,-1743842996,-583173965,2084032341,-107221619,-952416491,-1870253668,117617056,1493306318,407554297,-1649357575,1481259210,-1194978055,-156833244,-1076074913,941775847,-2037139804,474264190,224935201,-752328337,296949448,-428911477,1273264190,1829433929,-484888176,-901344359,-1399500339,1174555259,-1007377260,-191180349,-1729515516,-1570058830,1170202483,1874658646,-1637355837,1483032961,594875696,481609725,-809617539,-1372573216,787085215,-414566147,40818666,-606152795,1086315351,1205992922,1267387564,-35937038,1529148792,1284528234,-550590227,-1485552524,-720104281,900686169,1472516186,-2038624440,-417692792,1318915566,1257574441,1619268542,-1475093206,1166875045,1931571643,1861701655,-1981587438,-580091218,-1610787810,-440073436,-616219055,1007441703,2094230277,-2073905433,-2141760723,-955418079,1230213324,-291457099,1981290236,705536961,-1075402754,1419842347,-524879483,-663104735,1730341973,1323617031,-522930841,-337003371,-1851662762,752433329,2103613493,-1137114146,911087171,370456785,-965623651,-876861909,258889525,271265764,-1730431139,-1234949913,939428241,-1490613531,669400512,909044528,1031572409,1806720494,-1404910781,-1112342300,1688507575,-1107360354,931152817,-388324417,-101546573,-1346606696,1832727163,1512972171,257244555,791030318,1679488886,1396040800,804599552,914859513,-1418556894,1186583641,826723263,-652326992,1265193788,-338096892,-1543063700,-742852168,-1758441781,-1409372960,-2008473525,-357186448,960280359,509843445,1694315854,1045636835,-235860066,1275167730,732948450,104721153,1368066572,-291385104,-2036388663,-715538758,984897394,-770406236,-1816805175,1902852546,-888033168,-980115145,1715214612,-171428661,1957917324,-171453644,1818586209,88909766,-1041170070,-1570650420,-1762424766,549533918,-144206535,-414025280,-1810178242,417836745,2068850627,1685481239,-1747968077,-1386522753,1017291054,-488591161,-1772871296,-1492260390,173477824,-1357872493,-689386664,5744715,-1085064333,1580394333,635960337,1442388295,1464760446,537674330,-1823917070,-712745881,-170147894,722893032,490839399,-1609274272,-832820342,16921615,1964473185,-1526550583,-462260315,1709320774,1088248357,-177077246,1066462740,-492846305,2140261573,-1640176388,313146205,1798214022,-1915795164,354285797,-203611298,421630548,-781957108,699295226,1324085672,1277037550,403958368); -/*FRC*/Random.twister.import_mti(210); void (makeScript(14)); -/*FRC*/count=397; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return ( + (Math.sqrt((Math.imul((Math.fround(( - Math.fround(Math.tan(0x0ffffffff)))) | 0), Math.cbrt(0x07fffffff)) | 0)) | 0)); }); testMathyFunction(mathy3, [1, 0, 42, Math.PI, -Number.MAX_VALUE, Number.MIN_VALUE, 0x080000000, 0x080000001, -0x07fffffff, -Number.MIN_VALUE, -0x0ffffffff, 0x100000001, -0x080000000, -1/0, 1/0, -0, -0x080000001, Number.MAX_VALUE, 0/0, 0x07fffffff, 0x0ffffffff, -0x100000000, 0x100000001, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(321); void (makeScript(14)); -/*FRC*/count=398; tryItOut("\"use strict\"; this.a0.push(o2, t2, o2.t1);"); -/*FRC*/Random.twister.import_mti(351); void (makeScript(14)); -/*FRC*/count=399; tryItOut("/*infloop*/do a2 = []; while(/*UUV2*/(\u3056.add = \u3056.values));"); -/*FRC*/Random.twister.import_mti(424); void (makeScript(14)); -/*FRC*/count=400; tryItOut("mathy5 = (function(x, y) { return (Math.exp(Math.fround(mathy1(Math.fround(( + Math.fround(x))), 0))) - ( + (( + ( + Math.pow(0x100000001, ((Math.fround(Math.pow((Math.atan2(y, x) | 0), y)) ^ ( + Math.fround(mathy4(((Math.sin(( + -1/0)) | 0) >>> 0), Math.fround(1/0))))) | 0)))) >= ( + Math.hypot((Math.fround(( - Math.fround(0x0ffffffff))) | 0), (Math.round((x >>> 0)) | 0)))))); }); testMathyFunction(mathy5, [-0x07fffffff, 0x07fffffff, 42, -1/0, Number.MIN_VALUE, -0x0ffffffff, 1, 0x100000001, 0x100000000, 0/0, -Number.MAX_VALUE, 0x080000001, 0x100000001, 1/0, 0x0ffffffff, 0x080000000, -Number.MIN_VALUE, -0, -0x100000000, Math.PI, 0, -0x080000001, -0x080000000, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mta(-907166752,-1903363449,725756538,-18306426,1862371663,-226014153,-1942241292,-980796584,9075813,134027433,272592841,-2145425534,1181369917,-1822102993,-1851177338,-874293397,-1771293154,180091328,1394231597,-2028396102,899763935,1414002759,329855390,388779610,-1767186015,1099425757,-1770548512,1698614106,-2023255379,310045198,-529936242,1017530507,1702289601,1214578632,-1291362731,-11966291,-1649560726,-241523500,158646704,-739874581,1575150626,1065633271,1563813256,1072819972,802461547,2137794451,344791217,-990914482,-475844263,-1182700261,-16292615,1860213412,-1535879474,-99038168,1054202190,1002400695,-1677658503,-994393438,177677603,1465119589,12194851,-967418536,598676088,-1664125103,-1949454523,-1186179059,1865268002,1916008476,1684697196,-1283822155,-644858880,1470028762,-243972746,-1259110850,507095931,1564392683,-1158309497,-607977799,1649999384,-773708801,1956037364,1404716922,1022701463,-1518677629,-2033683936,960589958,-1451729178,856736512,-66478803,-1855688188,-240581835,-1754756797,1881362546,2007768931,1641411256,1318386654,-1671862031,-1270061644,-338813480,-731299108,716398178,1557664250,427945804,41416561,472581058,762591454,119019707,-648148377,1919347441,-1542354713,919342178,-724475423,991264083,1379838508,-2112321387,64568601,1043433913,-1752383992,-1979071622,-460008694,1246237437,-332998907,2019485111,-267099680,-548763327,-179300274,-156049680,-1024146811,-417444926,1530339246,723837783,443661047,2145985707,-60642211,515972190,1227474847,864495767,1701579185,-857605694,288267144,-838956228,-1368181249,-1289851447,107274931,-1796945902,110504072,-1439230122,-394714350,1495353360,1817449928,-1833831230,710645383,1521019043,1862014995,2072283602,1902811476,160439137,1557726271,1285359160,-727233196,68662302,-576807235,-1214974014,2110475127,-407368272,1524963866,-1402018019,1255985217,-2125014652,-975305574,-2024809167,2128039244,-1651316572,2005494097,-457703718,-526519458,-1657967177,-18983735,493051101,-1093927511,1659599699,1727090706,1136698383,2040552753,1077284127,-1275474991,-1205441033,448054034,733440699,1432840365,1642596584,-1096718489,-1210685527,768157574,-1659835856,107466000,-54121074,-138302440,1826850799,38530676,1349405087,-2134257772,710203041,-500693360,559027066,1578515852,-1038582121,-84760276,-168700022,673034231,1778383719,-1349366716,215527747,-766907418,1951828528,-1560575186,1087272605,917251342,-674446211,-853849487,696490162,1348535342,-1302258328,2042030387,-1885761237,1679443155,184996495,466894575,-1054098896,1778631984,176859187,875104536,886198050,484950670,-2117377408,-1588439536,-1639973232,-755636139,86182351,1946985829,-313748142,-1836425963,-1530548358,1670087622,35924930,-1521816985,-1865589702,-662889919,-1339692309,-514215574,606089958,1114126434,-1476452157,1838706794,-1630083954,1100145496,-1378759630,1048323893,215021243,-428350130,-243723323,646545118,-818462612,-814756436,-1533845198,-1659392711,-474152519,30227114,1255624417,-1330776014,14938576,-1919659555,330658942,-1149300208,-1769340619,-1459483916,860740941,-990180792,-777951423,1494163304,-1369794749,1270611109,-1472382513,1992261267,1454073597,1493793125,868841607,-629750869,-997003478,-814514974,-788514756,1089867500,-45176813,-1556574704,-759672017,-176829829,-1661513148,-2077667682,1274986239,461521872,-147269275,2024612678,280073914,418496608,-286035184,19493307,-2092998092,-915682653,-957701566,767658348,-1012658829,1509411436,418258663,-2099201924,1255119845,-617862630,224915763,452627935,452829505,-2127503196,167173443,862154540,1372372718,2141767560,1378006640,-1650097319,152584962,408044717,1662483828,395725698,928370120,-218786787,80499048,-882759725,1031321286,637418617,-1161093356,1356350824,-381318996,-1587675864,851258050,-368546273,1451329176,718438287,-1465332750,-1636663336,-702538215,-1380270345,868514076,2080081751,-1725098976,-840704421,107090069,-782462267,-1368883543,376967678,1761592641,1496906924,1121331663,-1618105037,-644053756,1585642696,898512697,-2006854498,-1645644635,-1792976367,-444300474,1422182125,-405722083,1556808484,415346024,684681166,1803230513,-2070076238,-1247228263,89678925,-1027392357,-1961415814,-613904966,1488519811,-1750010347,1027372401,-926396779,-430822177,-204218418,-429123565,-1257090531,1784846630,-1743829180,-1538069430,272797509,-992055699,-19791828,2007112027,-701653822,-959791933,335731555,1378540577,-1564569787,2004456680,885482465,1193776852,-1888704344,-832914825,1613306035,1500290717,-2138963407,-262424499,929719965,75021736,1378441791,1178935307,1589086073,-1272847023,-316485740,-861651506,-257806668,-1686299715,-152928343,-195608711,21504609,138231443,-1850270797,-1864158741,1923749563,397472509,-995267196,-1787308877,-2088758074,1685491614,2106894559,-1848732910,382711528,1747411981,-1627351757,1518083697,428947263,-1781267852,1624265853,-154065759,-206325332,-1760341490,-292594900,301666372,-847545752,-535673130,1528827343,-591819603,1104907958,624152137,-949927342,-662599205,-1436151869,-1582596562,1524847898,1976328509,-1823172540,695883486,300707662,171941211,1903540274,-1484566859,399356601,-846865238,561468121,-956560964,1609485640,-294513930,-519627567,-1014290035,-537281779,845554205,-1321007886,1795383351,2028278339,509014591,-441974429,1251374001,227971693,-719478447,-1724751971,1507360706,-420223483,921184158,-413188484,-161547404,-2099368664,1596061888,1569027488,1127817555,-795042221,1472944248,876896548,378099958,-346751905,-189948995,433001054,-333471931,-985350410,-590259975,482799317,-2003402534,1798156554,-1588645382,2127256281,762823819,-2018474963,-1504771919,-555837484,1778883939,-1270314364,-600812720,184182661,685640991,1572877992,-246758947,1079684508,-1881556914,-1414728600,-474928420,1643126551,2145235503,277100669,-886479224,1807705980,-2031131,-2061472310,-525611918,1252022525,959145098,252402656,1824002355,344994986,2037070023,1220550563,-362446438,1215635698,-163017743,200577498,1899127355,1349529542,523292053,100666080,2017268491,-546543981,-1933256092,-1286702589,-1881669907,194767075,936148759,1786721401,-936053969,-1251998113,1044949882,-1038786026,163291689,1254907963,509577626,573031590,2088357257,-286588949,-960866686,1457533171,422032814,713161774,-744070858,1315437511,807106849,-890179926,129066494,1638644654,-121088099,1019807131,-1517739271,-407383704,-423682393,-547675031,840865652,1594057053,-909702155,-1894923694,101750293,1565655358,997798316,471038796,-866723751,-184956769,12575230,-668741202,-1012927416,60463689,773671129,-1098488274,-175988117,1566595860,337359601,640081089,1296732444,-1083762270,2071014145,-474795657,1814127681,-1495570142,1229642656,1613144183,-1449551719,-505471154,-1391856620,1660158587,1619992517,9599586,-53629520,909227362,-2138760482,1820671412,1267272681,-1648591387,1557284463,-328447381,-1442499887,1356325263,-266168011,-893171213,821298835); -/*FRC*/Random.twister.import_mti(39); void (makeScript(14)); -/*FRC*/count=401; tryItOut(";"); -/*FRC*/Random.twister.import_mti(45); void (makeScript(14)); -/*FRC*/count=402; tryItOut("mathy2 = (function(x, y) { return Math.fround(( ! Math.fround((Math.fround((mathy0(( + Math.log10(Math.fround(Math.fround(Math.sinh((y || y)))))), ( + x)) < (Math.acos((mathy1(Math.fround(42), (0x0ffffffff >>> 0)) >>> 0)) | 0))) - ((((((Math.sqrt(((Math.atan2(((Math.tan((x | 0)) | 0) >>> 0), x) >>> 0) >>> 0)) >>> 0) >>> 0) == (mathy1(( + (((1/0 >>> 0) != (x >>> 0)) >>> 0)), Math.imul(Math.tanh(Math.fround(y)), Math.atan(y))) >>> 0)) >>> 0) | 0) > ( + (((Math.fround(( + y)) >>> 0) / ( ! x)) >>> 0))))))); }); testMathyFunction(mathy2, [0, 42, 0/0, -0x0ffffffff, 0x100000001, Number.MIN_VALUE, -1/0, -Number.MIN_VALUE, 1/0, 0x100000000, Number.MAX_VALUE, 0x100000001, 0x07fffffff, 0x080000000, -0, -0x080000001, 1, -Number.MAX_VALUE, -0x080000000, -0x07fffffff, 0x0ffffffff, -0x100000000, Math.PI, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(383); void (makeScript(14)); -/*FRC*/count=403; tryItOut("this.e1.add(f1);v0 = evalcx(\"!(x( \\\"\\\" ))\", g1);"); -/*FRC*/Random.twister.import_mti(468); void (makeScript(14)); -/*FRC*/count=404; tryItOut("\"use strict\"; o2.o0.v0 = (o2.g2 instanceof s2);\"\\u5BC9\";t2.set(t1, 18);"); -/*FRC*/Random.twister.import_mti(551); void (makeScript(14)); -/*FRC*/count=405; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(560); void (makeScript(14)); -/*FRC*/count=406; tryItOut("\"use strict\"; v1 = (b2 instanceof p2);"); -/*FRC*/Random.twister.import_mti(575); void (makeScript(14)); -/*FRC*/count=407; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return Math.fround(mathy0((Math.pow(((Math.fround(y) % Math.min(mathy1((Math.sin(x) >>> 0), (-0x07fffffff >>> 0)), (( - (( ! -0x0ffffffff) | 0)) | 0))) >>> 0), Math.log2(Math.hypot(x, (Math.atan(Math.imul(Math.abs(y), x)) >>> 0)))) >>> 0), Math.fround(((( + (mathy2(( + x), (y ? (Math.max(x, (Math.fround(Math.hypot(Math.fround(y), Math.fround(y))) | 0)) | 0) : y)) >>> 0)) << Math.log10(y)) >>> 0)))); }); "); -/*FRC*/Random.twister.import_mta(-1939598915,-148923784,1208861099,-632350823,-412319728,-915310766,-1398822949,-1184590242,-1013276138,294978826,-262927476,-849873572,-1799194528,452852092,-1162069151,360815734,-243525199,1571249117,-819417837,863648004,676747073,-13179034,-4122540,-1827282322,-235504222,-1702047037,-495168442,-401510606,1586333690,-191265341,1378631721,674485369,1078259834,-48253142,2002950043,1478061917,283784807,-608504341,-360211749,2002797870,320770128,1313515193,-383134941,2102477510,833483032,2109826987,864877667,631394843,635060356,-1112862868,-1412840961,1407296977,1480566877,-1744064779,1549176031,1030669344,-1007280257,-2036304044,-949147568,167846538,173111410,1077667442,-1655663060,-1382293681,1647170156,1616604968,-191094620,323119855,1179226041,858182472,-2051178725,-641876374,-1712154990,166583919,-2047750985,892434670,-1612009548,164195663,-1347464417,-1612488679,1665880076,-1964722823,1588099407,-631871859,91801473,-229652106,1868580382,1079197749,-1091779978,1661082733,-1919087426,630513049,-504914371,-529111281,1887511959,-1553963645,1286564396,-1632374093,-1634125101,1284947311,-1032611912,-914077360,1155666846,315846452,-1641243467,-240579192,350782486,-1628397698,-1502105561,-589921764,355401886,442276258,1125697653,743210513,81034499,-1930816634,588796443,415553301,-2097108904,-1133112259,549610259,1317746284,-608495060,-1755452568,91602440,1809667845,861648661,405815965,-1837461966,163228862,1956356566,-329483657,-1642954117,1080808911,-786152925,-1805971394,-757756736,1857086274,-1561146274,1854563692,947495377,-881649695,-1425497155,1510099919,1551620561,320569675,201425538,-1275280741,-1158754176,-1172930462,1139967345,-1077466003,-1715813439,1472032912,-259932283,681622320,-1993565766,-463740662,602408067,147307060,-1449626085,2045624135,-1684743955,-583599821,-1412899953,-639634526,-448697007,707432684,-1320590469,-1798789760,1332797319,-1002857736,-444767863,1408255171,-2004439502,-346618977,1139718210,806277081,1624395948,925247775,23478141,-403995771,1814009266,907965442,-2031828190,-1740011750,1982025765,-1866432818,2146294992,-1005728533,-2031623534,448811685,-1787074677,219344721,1831775825,-2132446999,-1906150297,-1306974148,356402635,-1759950639,1294890710,1933951533,1248143433,-1290127158,1126857351,517990070,875794230,450775986,1688207293,1277710882,-1161768394,-1114576379,1236003382,2058960762,-307205081,-815907085,-1680668583,-563351723,-1274274290,-914509380,1961018488,-178469665,1339487895,-837576251,455543683,1447596139,-1542018757,-1393439579,-2111932192,-733993619,-1067740395,-49961087,-956131819,-1401284965,-372392618,-1937416866,-504937985,734871476,1851332401,-1570491703,-894408919,-388043556,1682202005,-261223344,-703947215,-2024930546,-968096517,-380890389,-1885716525,-1378811609,-1306395041,2063686940,-331289866,-317250047,-1999102306,1214603747,850339462,-850621525,453519070,-1578055353,-1369765819,1358509997,1068403083,1118013182,205099944,38906584,931584123,-1350727681,1444698784,-1453839413,-493626633,2021083943,1618931363,-507425754,1898141537,-445374723,-1613329848,1511113344,1063660133,-702917853,1692328056,-784293657,-549860426,1907039454,858553145,1199645900,-1103957120,1746407399,662853635,-170882510,-840902599,-981322054,835135520,80263660,-252690675,137504411,1899131911,2034929851,-730030206,996559615,1975209932,-1918302230,961124574,-1466755524,-799709875,-1372528123,1650341271,4063533,-603688497,-428683479,-1230142533,-1878558675,-213936824,-1827718349,1841648952,1633126960,-143136163,434859201,621587915,1007960131,-104345447,1483176672,-1665923513,1706963220,157909952,-636150958,-642306074,-201840382,-1034982255,1598616954,-1298065947,-599084031,1292938942,1247076213,352792989,-1156431955,-1262837592,562939080,1257400118,440818964,-2143225407,1872019023,9149598,927741922,1476258041,1897404299,1940126617,2032164765,-360823528,-684879812,1755624602,-548665699,-629428552,-43566946,1393314402,1057872973,623301352,-856160786,2056395825,-220413703,791325611,1391192416,-1871971727,86607437,-1121386859,-802124291,-1646217531,-1835432192,-1525246349,-1486326519,1315305512,-254875754,290788114,-807578351,1750614114,42466834,-6482465,776389548,1251155443,191498260,-1876165897,1307387920,-1031725696,-255494563,241524188,-529949358,2113336999,-1516251719,734316898,1253912464,1716616922,-727589991,990269392,-833117392,-800620974,1648410133,617970511,-953734918,-1081782132,1712742566,1885573033,-1892615578,359853691,-1426946876,-2052050872,-107224725,-704428570,-1009009428,-438837935,-603748238,-1942727464,817344577,458343789,11679727,-158179287,129813386,280752618,1688104345,-102531642,1289209444,-1878736697,-50490537,1369200835,1849675749,550101405,929624841,1151996503,216956085,25069026,-307770119,-1141018301,139305459,-1278942097,-1564773008,-286722987,-245377795,1187140376,1403013335,535873674,812791520,825267837,-1695039055,-2019313967,-1116818067,-1369256898,1083484214,2116667189,336528163,2127401764,1818646462,995880439,-685982531,110964604,-915995722,253709540,-1951124286,-2130899454,-928144206,1628625395,-4699636,649265438,992203989,-1438141685,676616268,145963882,28209557,-1789051982,591092126,269732037,-1833946932,810921345,-827646904,1808204746,1664498949,2138037035,608604093,1368557600,769787830,-930661013,970028519,-2114250272,581524803,319910444,16824760,-1234962927,1516712010,-832555737,-2137410923,-395503653,-1897367939,692464322,370910010,152372899,-1692133749,1277426430,452711311,106910902,-2144238196,-1894295676,-1223349994,-443937717,79007716,-170686976,2042337275,-710766566,-1514743636,473260964,196193170,1028382345,-987918604,531838326,-279316444,-890858852,-1865226028,-910827562,1202654925,-230926827,-1741250035,-1269128236,-667445388,-1573990364,1639617516,765892063,82692025,-541941610,-1762875033,1261677766,-1981557907,-1858292305,1053570350,130526842,-635601128,193842873,-550073703,890028512,-1203838538,1147025934,-212350122,831977967,-620264789,94367014,1858424904,-1002327190,1103718859,1602814451,-442294251,-487125014,620926007,-628492876,813903012,-659752868,-892260304,-2060366097,-121790739,774719689,2116152403,1348940215,-1548552266,2071912986,-479370860,688518196,-411068101,-1216223878,-1577427265,140440659,-1261884918,-1690087077,-1523020140,743181488,811483465,-1843352333,-1869489429,-86755800,7869229,-1820893167,484141043,-1910318202,-567429909,1655124920,-1644343407,661111627,2107984637,582042779,724528974,1943787805,-1712961375,-1300025338,54215548,858002244,1219364746,-1959816450,-1569993342,871984151,-212821169,27061927,789399756,-2117255801,1373009145,343851721,-1182516362,549804014,2067133683,1713542082,1451685179,-1551712449,981242452,1575940638,2019117845,-459139283,-1027071823,-828137339,1434290029,-534048707,196372605,424927378,-1139652785,-1109607304,-915412176,413921838,-899346488,1867407221,741239412,-1557000829,-1141914802); -/*FRC*/Random.twister.import_mti(244); void (makeScript(14)); -/*FRC*/count=408; tryItOut("testMathyFunction(mathy3, [-0x100000000, -Number.MAX_VALUE, 42, 0x07fffffff, -0x0ffffffff, 0/0, 0x080000001, -0x080000001, 0, -0x080000000, 1, -0x07fffffff, Math.PI, -0, 1/0, 0x100000001, 0x100000000, -1/0, Number.MAX_VALUE, 0x0ffffffff, 0x080000000, Number.MIN_VALUE, 0x100000001, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mti(276); void (makeScript(14)); -/*FRC*/count=409; tryItOut("\"use strict\"; m0.set(b2, p2);"); -/*FRC*/Random.twister.import_mti(293); void (makeScript(14)); -/*FRC*/count=410; tryItOut("/*infloop*/for(var a = \"\\uCBEC\"; this; /x/ ) {print(a);v2 = a1.length; }"); -/*FRC*/Random.twister.import_mti(385); void (makeScript(14)); -/*FRC*/count=411; tryItOut(";"); -/*FRC*/Random.twister.import_mti(391); void (makeScript(14)); -/*FRC*/count=412; tryItOut("print(m2);"); -/*FRC*/Random.twister.import_mti(400); void (makeScript(14)); -/*FRC*/count=413; tryItOut("g0.m0.has(h0);"); -/*FRC*/Random.twister.import_mti(416); void (makeScript(14)); -/*FRC*/count=414; tryItOut("mathy5 = (function(x, y) { return (( - Math.fround(Math.max(0x100000001, ( ~ ( + x))))) <= mathy1(Math.exp(Math.fround(( ~ ((0x080000000 ? x : ( + x)) | 0)))), (( ! (Math.max((Math.fround(((Math.fround(y) * (0x100000001 >>> 0)) > (( + (( + x) & ( + y))) >>> 0))) >>> 0), ( - ( ~ x))) >>> 0)) >>> 0))); }); testMathyFunction(mathy5, [0/0, 0x100000001, Number.MAX_VALUE, Number.MIN_VALUE, -0x100000000, 0x080000000, -0x080000001, 0, 1, -Number.MIN_VALUE, Math.PI, -Number.MAX_VALUE, 1/0, -1/0, -0x07fffffff, 0x0ffffffff, 0x080000001, 0x100000001, 42, 0x07fffffff, -0x0ffffffff, -0x080000000, -0, 0x100000000]); "); -/*FRC*/Random.twister.import_mta(-1129781818,1116405894,-767992907,64343969,-343391793,-634024631,-163524629,-461545149,-1320066066,-299286496,-1519368638,-1346969247,-1854049076,140704183,2054651514,-1159235222,-144102690,1208911487,1577178888,-1650955627,1527062058,-2046561812,89995091,-385876458,682838761,547517152,439842940,1334780512,-1809022665,-1263238500,-2113984938,559742431,-752347284,1497664081,-1119246718,582569859,376356698,44272103,-1963985302,1330453296,-309482668,-1301507644,1322948483,702967537,1025491643,124614719,917974207,-1131418500,1581330304,-1295673579,-453549804,-874842155,-110415845,-864543929,-911483219,-1100050404,-1976092644,1823070412,-827021945,-2049592773,-391096437,1874498277,813503860,1470490664,185492289,-1878416551,-117580316,-1298183063,406657073,244004064,1340442283,1558872972,1330540324,-1415185659,-1808555969,1681019920,-1092994179,-240074117,-222326930,540483622,-1315377707,1054585107,-1913457026,1515178751,462338552,1688293667,-1205753475,-1458202838,-1292988765,-928074888,1264282758,1100376090,1742468389,-938604330,-1633476316,1866642357,225795853,-1704470712,-440910361,661036906,-453795548,-312058293,-1099129204,1939141326,2086734112,-1079524341,1992546372,529660118,-874669662,1453515755,111142723,-2050028948,1244856611,-2066629848,-382930457,39979854,95957889,-936014854,-2137213940,995481411,-1082967749,-1719193918,-1818664256,-527167712,-849573711,-1392247158,-1845668312,-695212145,-768475336,1904114733,650469001,1195197517,-940478698,-1235402828,-1875839225,1659308249,-1469121736,611690447,-813968640,-1049994695,1340534905,-48621330,789452691,-1297436399,-29351886,-1035898325,-1052788647,50227635,-1196924892,436665741,-1544965410,257696907,1532859628,2045024065,-1635684952,-2119761358,-1970246040,-422446505,2051158345,-576472475,1179424970,-272875853,352234962,-437966548,-1953472278,1546248973,-185657655,-1980566223,-22185782,1710460487,-2027666456,-939914069,-1062284297,-1771832342,2083711995,-1692177911,-2122857442,-1558296505,-1639922781,395932903,1959839222,346618209,-2030930544,605397722,830572912,-1062708138,592400425,204289909,585637387,-235880113,-682370319,-1601105826,-1758478083,615544073,991020329,-306125061,-1436807343,-770999139,-1115071365,-413530388,-243522256,-1471879630,-1610012909,-665265550,1952057256,2084263001,1542050018,147189822,476625733,1083087621,-1080455480,-2139626954,-7028980,1634936393,-1411766069,885662926,-41341176,1129705365,-659775599,-944906684,1791572352,-431474246,1952740341,-1143641493,-1643998562,674359745,1956615619,-39331402,-1314675985,723264224,-463491906,285325850,352335579,-2103045824,-1572876308,1487565774,-1144004614,190086405,663505114,1831729031,2081263577,-1856118673,-2100265150,90494233,195659768,-1540397654,1882641215,-2050969316,1239663008,-985302877,-1786818408,512966546,-819900097,1583052595,-1296752050,-1921314188,186283926,-864340679,-1465112157,487400337,-1473207976,999707288,65572092,275936910,59464843,136587912,-1040488432,-2038200828,1070085374,-1499739609,-858424387,-1809316555,932044332,-684836912,389895133,296381092,-540182955,1649198329,2044685979,-1962655705,2110847979,-1506329738,-960815501,178894175,1332300458,-777135033,1758528791,1652149077,1431492604,-813315657,895808373,1408104273,-1838284881,1502442173,1871638523,-1179872531,-1423520670,1708902762,-1739516372,1972619458,-1385072400,-929600432,1887166222,1341667588,1067451302,446178682,-1189048209,110257645,-722835880,1336706940,-1958427082,1645310812,-1272021915,-826080287,-1715580366,274582354,492025287,-1059747140,-963315484,-1036997194,-1539459674,166826712,496872255,163684077,-1217570079,-1989957100,1587186667,484222899,-2101205770,1042588833,-2068244463,451501695,59054958,-448204715,-1693427745,-1853830666,107217295,602330328,-1997789978,-753152740,1779651792,-378978392,432279743,-1219594462,1773220064,541456671,-1630713774,-1974723657,-233707812,-406112115,1446689969,-1604231187,-743415099,-126127335,1342290294,-1063086516,1459781338,-1031479218,-413428498,158108188,-1624716540,17677024,-1183089888,804402349,-714780178,411252925,-2010736199,-2073752673,933663413,1211952007,-1966226726,-1226135109,2091346044,-1257007000,62756538,510548500,1294310491,531139832,183050369,-901719736,521274185,-1077812376,1624050115,-844971898,-689621762,-1649280315,1449451622,330235003,-891115141,668340927,1455256639,-703379710,2063741589,-1664308768,1641683684,1976530354,1180703290,-655955026,-1259258632,1637328124,-1845786919,-1350357991,-1906694037,-1011884998,1188759597,-180264624,1987357329,-1624007807,2057911640,-1058512900,-448345563,-1524507879,1509554046,-2129735454,1341346480,716564222,1521960796,-341679086,-956632212,103092289,-1010430851,-891856489,1138209238,590368576,1354216902,114615695,2015725673,-238852159,127905937,1694445421,91667028,-189741760,761720545,-1248519657,-379409761,2131333833,-262795343,-1335760243,-1739654842,2114209005,-184519090,1896039292,-210383193,-1430763241,589282190,2125515988,1419964170,1437593618,-797240731,-255773231,156468458,-582220512,209872922,856699825,-125975593,-237165074,1330311353,232681624,786276124,1180284500,104811509,773105334,209739752,-1080671665,-1836321520,757257475,1018190664,-317924508,-1744439287,1139939677,573659965,2118780445,213699575,-695628171,250299933,1630176688,-743146632,674529010,-613206594,-807608881,-1777899187,-1153590440,-1912910168,-1994179519,-1589072612,378831855,-1001829884,1158584938,-437593735,1464572317,461350675,-1643548923,-1665232622,-1477798545,318168860,1021812389,-1501361951,-1956720513,-811429442,-599758634,-1787498462,768905437,-192999034,-182698408,815245487,935714633,-1898146322,-92429200,-2068186100,-1990032184,1023756621,706348004,-1715165139,202107644,-1733886740,-180073431,446048366,1867096735,1073102059,-1015375939,693123915,-531294773,584237550,-2063623127,-1213911802,-37175217,-395669077,2095551224,-1745783097,1939343411,1660323464,-479308763,-1408511767,-475598689,445453622,-1228571809,1980195543,1250363934,-694549802,-152990986,-106845243,-1147237497,-374223000,-1415608863,1795992169,-1209041135,163141490,-1988538500,1370489994,835442449,1823016693,1828539721,1815467453,-1870356656,-1161502395,871959794,805166970,-117020388,727707317,1459741044,1342147607,-1060067998,1484084854,-616313991,964837853,1548041364,-2121823658,1010127496,1749987283,-1982007783,1712204424,349907956,-110018474,243157125,1562974353,-184513761,299192871,661202285,932661498,420164543,1604413112,-665736220,-717938197,-135847285,1467970753,-1105589011,1223764898,-2034580826,626702629,-1125338529,2127024748,361846586,-1205615163,1373658677,-1813794823,-1370964823,-1176542940,435819361,-1440173056,751158155,293720782,816635739,-1406824362,-974359781,1117177298,605968782,1868876829,-1270106112,1202537455,-1634440866,1041544175,2146962495,1097039396,1523388463,-1800442109,-1811089593,1130489639,451448104,-215891738,-1783779856,-1965318950,-380916486,674796565,406087897); -/*FRC*/Random.twister.import_mti(41); void (makeScript(14)); -/*FRC*/count=415; tryItOut("f2 = /*wrap3*/(function(){ \"use strict\"; var csnygt = String.prototype.toLowerCase(({a2:z2}), /x/g ) = delete c.a; (encodeURI)(); });"); -/*FRC*/Random.twister.import_mti(154); void (makeScript(14)); -/*FRC*/count=416; tryItOut("\"use strict\"; throw StopIteration;a2.sort((function(stdlib, foreign, heap){ \"use asm\"; var imul = stdlib.Math.imul;\n var exp = stdlib.Math.exp;\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n i1 = (0xfc244bbd);\n return ((((0xa92cf*((((0xfc98bba7)+(0x91c81f71)) << ((0x10f2b1a9) % (0x3289815))) >= (imul((0xb878a2ab), ((0xa8135c2b) <= (0x87559e29)))|0))) << ((0x76b53196)-(i1))) % (((0x31213c58)+(!(1))-(0x8712d7e)) << ((i1)-((((0xfdebfe77))>>>((0x36c0636a))) != (((0xdae3e9e7))>>>((0x325817c2))))+(((0x89526d0) > (0x1d979b6d)) ? ((0x1cc2f81) > (0x66b2fe94)) : ((0x3548242e)))))))|0;\nm2.delete((x | ((p={}, (p.z = new RegExp(\"(?!\\\\3)+|\\\\uEF5a[^].{1}|(?!((?=\\\\b)*)\\\\1)+\", \"\"))())))); d0 = (d0);\n {\n d0 = (+(-1.0/0.0));\n }\n d0 = ((17.0) + (1024.0));\n; d0 = ((+exp(((d0)))) + (+(0x0)));\n i1 = (i1);\n {\n i1 = ((i1) ? ((((i1)*-0x37b28)|0) == ((((-0x8000000) < (0xfd0baab))-(i1)-(0xffffffff)) & (((0xbf8c783a) != (0x716c5b0c))))) : ((-7.737125245533627e+25) < (+(1.0/0.0))));\n }\n d0 = (17592186044416.0);\n d0 = (+(0.0/0.0));\n {\n {\n switch ((~~(d0))) {\n case 1:\n return (((-0x4f6e040)))|0;\n break;\n case -3:\n i1 = (!(!((i1) ? (i1) : (1))));\n break;\n default:\n {\n; }\n }\n }\n }\n return (((i1)))|0;\n }\n return f; }), g0, h1, t2);"); -/*FRC*/Random.twister.import_mta(1203919455,1684598191,-1802812432,1646158920,-246004294,-867065242,866464861,-1333028457,-1752162052,-1780719564,-798313423,443716656,-1936421485,-791622523,1557626791,589152464,1064926252,1307130126,-266130496,-1143960962,-81699022,888317662,-937688562,-1301341025,-1124840825,1743174186,-1469962106,956469692,1687340693,-441314140,420636067,-1057399438,-1766623283,1334237845,1261099681,-1912749519,440256065,-428249501,-2043490810,1546858248,-884820844,-409833627,887546468,-5369547,1689554200,813961919,-1778443046,-1194582687,-1897414624,-1853935966,1527907740,1870731133,-156649727,-1438551662,114697922,-1336567784,969864460,361447076,667122944,1698195877,967347889,-571438118,-93419647,-1475822636,203028292,647566615,200124753,25473723,-2097875481,-303741912,1510518329,1717554812,-1870723038,14251514,-388076146,747295450,-797785149,1029113058,1058801489,467137325,-1683322017,1577702007,-32855856,134300528,1586515543,-363967969,-1479488826,-2028953311,1381757390,203464943,-899459680,-165959990,163594818,459093244,1054276509,2127257227,-1338290673,1180872469,-179126307,994050486,-838553046,362163398,1168748935,1694764917,962260749,-690457954,1158175636,897702944,-462484540,-1452898532,-643965185,958012418,-1559561614,-1688188786,1662229351,207268953,705237973,-336343180,-881731709,1364783178,245946701,386108165,602632711,592895227,-432249356,1188268238,-2077510727,1719821839,425104616,500388315,1570727631,1509526655,-2052251718,-977505086,820194777,-1859068713,-605041756,1643273142,1546213777,-132129392,-846245484,1247561999,269656885,-1386030552,-858080867,-1990626708,-811327216,-1249737274,-1762937,234952296,1174510550,1821584928,-649811320,-1861872841,-1623736416,-1407122752,-394240105,-1486857257,-1105352038,699759269,-2096140039,-1280047621,-1621189196,-1932342928,-1794232953,-396952697,-473214447,-921401141,1357658678,-1015469967,-1736379865,1112666342,708827186,-1886550717,-1466455198,449018112,723374511,870368198,1491804336,-779900862,510807425,-167136422,-2089221643,-1751997376,1135846662,-1585851258,125608442,-450616758,283613774,-703723869,1126664235,-351786764,-1383752186,1439849089,392313683,862792968,807440469,-821592489,-1721993840,-1060959585,1618628213,-755257296,934932037,-1196099812,-1214418026,1195836202,-2062610944,235701000,383304170,-73018041,1139568214,1754323276,1239306391,-441683657,-1772138687,1246462585,530813609,-1706928791,-1854844996,1463796115,-1985221714,-1858842789,199503173,-908091764,764476030,1390739655,-1903530335,-159419706,1640365945,-296704506,1175624864,516820629,-258818113,-1816214372,643448342,1924109269,1841819434,-559001056,-568994166,-394717333,1967476828,539796358,1610035375,-1627141885,-86977340,1942049660,-1107708828,-1470483080,1216349533,1912336862,426283027,-1602172464,-1338462882,-1427616038,1971543609,-26349878,103228036,1708173499,-2107664279,1823958846,1359908997,-988401797,242600638,1849582646,593005328,500363861,124449536,-1116364962,953432223,-1121740673,-1483488928,-1864055776,61915571,-1215688620,-1663679653,815052398,1310785575,-692264834,-2105342623,-2057104275,-698988298,204794352,-1053973159,-1690371512,1982103960,1658085995,-656300001,2109484640,333512343,910260128,647188333,-1752622122,1310088404,1791766894,2122229274,598713091,-1974612750,951925700,177715776,1136819735,2062423091,-28520316,2026798584,1946565271,-1106558312,2063898851,2043011561,1603026207,18950093,1382440448,-659229358,634733476,1006474662,1783932292,749291977,-1953210979,-697304774,1147144072,2142909831,-1734111765,686703964,1906606956,720957241,-1359832046,183123208,764678840,159526729,2085559502,184105589,2050327598,1885513901,-234142342,1492840128,-220435703,-1554367550,-421833286,236465753,-1861268583,102491544,1209386487,1560815408,-1228884247,-1154037954,48785032,-189557045,-344650985,2082050818,12782020,2006004816,-1794856278,-1722000963,2025350399,160139531,-1151467673,-2072646107,-1577100484,121468128,633382126,-1822407275,-1138927640,-1905780159,193310247,-1876704897,1994101600,-1848941018,902436355,-478731674,-1626411014,867240169,845974746,714666446,1350942357,-1874716879,1788562039,-1682054597,757157224,-1294450677,715049722,-725364619,2118695581,-1280938240,-656277819,1038259826,1964403977,-790015167,1226257595,1549921241,-688984041,-664356246,1456022170,-1519358041,1991279046,-1820754527,1155154302,1516116782,-1630018093,-1926949554,1902448828,-1294631914,-1797518255,968290558,-2070344384,1150094680,-1429873173,1360785876,-1619675506,-1254943851,1413440359,2136217610,1544375939,-571597960,-1808417423,-1493596963,575684040,628370696,388446280,364982243,-1933520823,1437294425,2006933696,-518796185,1705808346,-1363224332,-837904117,-1283941427,806419726,1380204087,-1654970699,-1278031364,524531608,230508224,798777776,1365029984,-1667488118,271944418,235988634,-1483845733,752527670,239231373,-168903875,-1489250851,-811142725,-1431078952,1358391702,-1266163047,-552071605,1531123103,-250455468,1657785011,-1487735272,-1194135320,678386152,1393420892,-826268936,-509866303,656372105,-1623448521,1938295261,1700102135,517749524,814031783,-1276489365,-214770248,-1307538149,-1622760733,20030185,1058609953,899719778,-2116566568,-385635865,1892816574,-1916292573,102044407,-476435694,-271826452,-2013853251,1204322238,-1927515261,1291417700,153738492,-1961034964,-1899579876,213970386,-862753744,1207973666,1756515127,440740131,-1344744382,24210186,1609789760,-468004134,-1022913705,-493913663,-964288495,393125404,-1983806699,-569968940,1370930143,-656342577,-1904353736,1374185572,-2054483209,-1371114908,1224913344,-2119331784,1360952929,-678967294,-2011574112,-1139041247,-86828831,-1439483977,1988740123,569033275,-840592865,-972704651,-895042798,-1189654316,1834677899,1791599097,1913128970,-95311371,-1791509247,1981091449,-569168812,748048956,426126018,-1727590916,1891315609,-1335636948,-1579307165,788324169,1228595370,-1061686589,451081621,-357627003,-1784635345,1923389626,-1397649134,-176894954,-2010271599,-574834404,947628265,-1122749468,-732457061,822456483,-196741867,-1532693569,-2103236216,-261074288,-1334254231,2126173136,37980353,1315925820,-826871211,1559459115,198686337,-84761958,818181928,639718503,535096089,-367149354,-1226979762,528708355,-25704391,1089768629,370624672,-1247999511,1285266872,445649349,158099108,-1386351841,1575007717,163019031,10259170,1717163435,-883610898,-150597402,697321595,-1311490982,1355276855,-1109220436,402650818,-117071512,-942065072,-1230267144,-1050702839,964122947,-2046623686,1330829634,224147910,1080808037,-2147048309,-1923261729,100735498,-1543992867,-106027673,1519947317,-1965559131,296910321,-1980359211,497415642,-2005024401,373823532,-1643237164,-934002591,562151456,-466902500,1336654271,-1137259724,-10790496,-1193770978,-1118353485,-139318987,1077026587,-11316897,-183621967,446586194,-1447452148,783317614,1259118694,1548328868,446003789,-1962407811,936151230); -/*FRC*/Random.twister.import_mti(102); void (makeScript(14)); -/*FRC*/count=417; tryItOut("mathy3 = (function(x, y) { return Math.pow(Math.sinh((Math.trunc((((Math.fround((Math.fround(y) >> Math.fround(x))) | 0) && (x | 0)) | 0)) | 0)), Math.atan((x - Math.min((x ? y : ( ~ y)), x)))); }); testMathyFunction(mathy3, [(new Number(-0)), (new Number(0)), (new Boolean(false)), 0.1, /0/, null, 0, ({valueOf:function(){return '0';}}), ({valueOf:function(){return 0;}}), undefined, 1, '', (function(){return 0;}), objectEmulatingUndefined(), (new Boolean(true)), [], '\\0', ({toString:function(){return '0';}}), -0, true, [0], NaN, '/0/', false, '0', (new String(''))]); "); -/*FRC*/Random.twister.import_mti(283); void (makeScript(14)); -/*FRC*/count=418; tryItOut("\"use strict\"; testMathyFunction(mathy4, [0x0ffffffff, 0, 1/0, -Number.MIN_VALUE, Number.MAX_VALUE, 0x07fffffff, -0x080000000, -Number.MAX_VALUE, 0x080000000, -0x080000001, -1/0, 0/0, 0x100000001, 0x080000001, 0x100000001, -0x07fffffff, 1, Number.MIN_VALUE, Math.PI, 0x100000000, -0, 42, -0x0ffffffff, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(315); void (makeScript(14)); -/*FRC*/count=419; tryItOut("(x);"); -/*FRC*/Random.twister.import_mti(339); void (makeScript(14)); -/*FRC*/count=420; tryItOut("testMathyFunction(mathy3, [Number.MIN_VALUE, -0x07fffffff, -Number.MIN_VALUE, Math.PI, 42, 0x100000001, -0x080000001, 0x080000000, 1, 1/0, 0x100000001, 0x080000001, -1/0, Number.MAX_VALUE, 0, 0/0, -0x080000000, 0x100000000, -0x100000000, 0x07fffffff, -0, 0x0ffffffff, -0x0ffffffff, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mti(371); void (makeScript(14)); -/*FRC*/count=421; tryItOut("\"use strict\"; \"use asm\"; mathy5 = (function(x, y) { return (Math.imul(Math.cosh((Math.min(((mathy1(x, (y | 0)) | 0) >>> 0), ((((Math.log2((( + 0x100000000) > (x | 0))) | 0) >= y) | 0) >>> 0)) | 0)), (Math.sqrt(y) | 0)) ? (((( + Math.acosh((x >> ( + 0)))) >>> 0) ? (Math.log(Math.hypot((( + (( + y) >> ( + y))) >>> 0), Math.atan2(( ~ y), -0x080000001))) >>> 0) : (Math.fround(Math.log(Math.fround(mathy2(x, x)))) >>> 0)) >>> 0) : Math.trunc(mathy4(Math.fround(Math.acos((( - x) | 0))), ( ! (x >>> y))))); }); testMathyFunction(mathy5, [1, Number.MAX_VALUE, -0, -1/0, 0x07fffffff, 42, 0/0, -0x080000000, -Number.MAX_VALUE, -0x0ffffffff, Number.MIN_VALUE, 0x080000000, 0, -0x080000001, 0x100000001, 0x100000000, -Number.MIN_VALUE, 1/0, Math.PI, 0x080000001, -0x100000000, 0x0ffffffff, 0x100000001, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mta(-631646540,-1198465554,-439140747,18731555,-491660173,-2074662999,730374655,450093482,-711227756,1141832018,419834239,-535368164,-1385326562,713888884,-2051318503,-1186645301,77898063,493205736,1255112055,1750171770,-692485338,1906663006,-1214226864,643914235,375377103,-1164981065,-1836068395,406407256,46790492,-2017084359,-1121482740,1636025029,-511153651,-1323263153,-1335218057,-2058688609,916988260,1395453409,1611231518,-2110843439,-971297189,1412501695,1395721080,-715025583,1324107835,-1605568075,-1785079815,-202112375,-1750623974,919213905,1608147253,-1064066580,-227389743,-71703671,809866724,267030746,-1006256726,-226643903,-1936984700,450941872,1567640624,-2123723544,1255696126,1988745221,967732031,1875687887,735732889,120875215,2009268477,-887751454,110052700,-1981266487,-1452338406,1153245305,-612181170,-1222327351,-1120818845,1766519451,320094452,-753562930,2064656999,1945906188,1294564676,1029467352,585704396,1596491953,370379903,556650437,-139809889,1064600563,-724236505,1167149611,1381886782,1652105163,1701481677,1671065113,1019201348,-1261473491,-731806770,-117133375,461221308,1664969171,636971357,-733106371,-1360581704,-859676754,1405247440,-1281747494,95239663,574724002,-728441183,-1382096616,-1218233178,1118980827,-374594840,-1377371378,-132352603,985001835,-1576352969,659262637,-2915370,-499865563,-89401688,-917529841,-161580698,-318216326,878358412,540874824,-1903742224,784338500,-984655495,-1296743439,-1023175422,-276432518,-659931618,-1388308719,1780209742,1572018066,-1448128793,342044784,1352074570,1685400915,-1633886843,584668429,2094469599,-624549012,-1902717576,-671118145,-1287291359,-2019279276,-1259684200,-590215212,1643338797,824249344,1414728097,-1557663704,68054881,66953318,-972702964,1652402745,-266943222,1770920637,1502449569,965875914,1543375698,-143758636,66403459,679645614,-1365021625,1624621093,766731723,261094876,-1750985510,-115988818,276892005,-2060377825,426568449,1244415475,-476774705,557287161,311726550,1767902335,453947415,-600084177,121838721,-1162088043,-179623051,-19377697,1934638983,-1041486455,-1282993088,428873281,-21126055,-757956845,-1716506097,205890090,-1198909954,-279530731,13046007,-1280501296,-1549129027,-748275188,-1783863717,1181436945,-337755910,349151020,-653758128,-1019731820,-2057594276,-2049075913,2078528793,30495648,1418056164,1795135329,1098528336,1634422974,-736393872,-1209272703,127497895,508274821,2016097662,-229975021,1877176096,176284315,-1427158287,356880370,1291006429,867408343,-1883730195,-2032504795,-1754110538,1139815283,-846707225,2024128244,-1165191009,-478646015,1801048130,1980547642,220386678,-674287568,983254455,860386705,801926805,2043464493,1686442326,1412671301,1014799046,737227095,1230546609,572302982,908147987,1313053280,-268702758,1900465686,655343421,1104832030,740645051,620819687,400060762,1342673552,178469933,-145697496,-1302997628,654599404,-993188844,1673267358,-1667900802,58294987,-743936929,16311240,-1659637439,-1774413763,-1148587617,1123698315,-1413588546,700426710,496265070,-2020388006,455777029,-1722193238,-1113352335,-1982072937,1115024894,-1088946842,1511993771,972263764,1681835136,-846691420,-1706412232,-1063685737,2102220270,1587889493,1521131896,350566292,-1880421999,1927669380,-1756667648,63215740,822200861,219195868,2073774139,-1478105678,338652765,-1573648337,-1916793291,-1224867617,1708860574,-494401186,1523516172,1634928621,1874251018,1058531615,1778571891,-1722836924,-1108389420,-1667410174,1564770359,1912646971,-792183807,103467408,1521180285,-383890546,1961041936,2043337152,-1576699791,1235756213,-953998938,-2029420455,1579658180,-2066838060,-314045056,-1030071080,1822743285,40845873,-1057505529,-609641956,-1278311759,-1751569299,278704956,-1712902338,-1059413648,-1271447177,-325924790,1531776543,-704128449,-603583818,657066063,-1004856834,-390660752,789400233,739973551,1804799292,1773021206,-278337471,1891808726,-853964672,1008753715,1442302828,-323229691,490678525,860855990,1236495998,-701636959,1660840797,-1637962676,-1743462444,1541687181,-1874382367,2101570366,-1949260446,-1819067752,-302077288,914568840,440439994,-2123421173,857861883,-756327639,126084733,989784645,2015390637,-1000782915,178406040,10778227,-1250789858,-25261340,1899888191,-805149971,-1675257793,48925680,-767752019,1120557097,-884341411,-1794946453,786051348,-1092496488,-399382816,409421947,886692800,-588690645,-881234779,-77946866,1925681097,156991285,1910576107,1167498932,537249754,-769620075,759078355,-563209247,905559467,254353224,-852005328,-342626447,-403620367,-179581445,-524805975,1585771890,1079642931,576693793,1463612085,-1610336258,-1896915339,-230007184,2017388743,-1218523758,-1326596301,604518997,-96252349,-1664622144,-1821194949,1369799881,-1016063286,444697705,-1861045215,-1003465767,261360974,-743390804,-439724800,-1573994783,-1643082795,-1809555613,337874364,152102005,1464911075,1097810299,-214938441,650282415,-1874566920,-505174241,864687956,1589005935,-2090221601,841326222,-1523218846,-113995316,422456361,1712768020,1020291730,1285435129,1287808235,-128440674,-1021970877,595101523,-1108200980,-1348689007,-1951995847,-853581567,980460891,-557772355,1470457290,-433610013,-1098438414,1711190732,1268431408,-251525802,717003118,-1113968744,1348305185,1255633950,-361392564,908432664,1634716116,1737740294,1210401578,-2007932509,-2081270508,1206646961,1243318696,-659985016,-2141668119,-544268904,746727467,-1711822775,-685599376,-1634602082,-1129638091,-248836360,678150521,-788367583,-746732115,-650674385,-56794996,1295970614,490909554,1981078709,820608772,-581598470,2057759166,1840958264,-1905998086,1566289844,-740106135,-2046171004,-1640714651,-1461985747,-960389294,792508941,-786352691,1738621264,-24459939,-948545077,1844002418,1575776430,-1056946146,259493149,1031949539,-330985777,1672130093,1845723868,-631656154,-2035713926,882067339,1653066442,-914091645,827386262,597512017,1999359844,353151745,-502693496,81561341,1551564015,-1553643482,1874734096,-1664161607,-785717394,462615809,1199267156,580089653,673876453,197020152,-505172609,-2060267537,-134484672,810691564,468380614,1667168905,-592660928,1733302124,1415616907,1504314782,1493278998,373208665,2107297503,1253864500,-1668118467,-1822783721,-5578270,1419385165,-1333693915,1664385306,-1397365710,1272239723,-599240761,-1928441275,-508457847,-1825180413,-489824693,888211330,-1695003400,2002745792,-1533603040,1279288674,-1359669848,1735758415,-1403994697,688452731,507422944,1424421399,1327329949,1863354188,-67794489,1106817532,-619425071,-753880132,1972933517,-1995989765,397667567,1111667903,1879905453,2018626661,-2022259502,-901044707,1009186449,801754054,1464010349,149633867,-2030237779,-633199065,1963978312,1556625020,1926325528,481242785,-2010365587,1990425245,2141862840,1336255833,-958277205,361915678,-288598674,-1155037767,-1164428051,577595257,-1277713729,894149409); -/*FRC*/Random.twister.import_mti(129); void (makeScript(14)); -/*FRC*/count=422; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return Math.fround(( ~ Math.fround(( + ( + ( ! ( + (( ! (( ~ ( ! Math.fround(Math.PI))) | 0)) | 0)))))))); }); testMathyFunction(mathy0, [-0x080000000, 1/0, -0x0ffffffff, 0/0, 0, -0x100000000, -0x080000001, 0x100000001, -Number.MIN_VALUE, 1, 0x100000001, 42, 0x100000000, 0x080000001, 0x0ffffffff, Number.MIN_VALUE, 0x080000000, -0, Number.MAX_VALUE, Math.PI, -Number.MAX_VALUE, -0x07fffffff, 0x07fffffff, -1/0]); "); -/*FRC*/Random.twister.import_mti(225); void (makeScript(14)); -/*FRC*/count=423; tryItOut("mathy5 = (function(x, y) { return (( - Math.cos(Math.fround(Math.pow(( + Math.fround(mathy4(Math.fround(( + Math.sign(( + x)))), Math.fround(y)))), Math.fround(0x080000001))))) | 0); }); testMathyFunction(mathy5, [Number.MIN_VALUE, Math.PI, 0x100000001, -0, 1, 0x080000000, -Number.MAX_VALUE, Number.MAX_VALUE, 0x0ffffffff, -0x07fffffff, -1/0, -0x080000000, 0x100000001, 1/0, -0x100000000, 0x100000000, 0x07fffffff, -Number.MIN_VALUE, -0x080000001, 0/0, 0x080000001, 42, 0, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(336); void (makeScript(14)); -/*FRC*/count=424; tryItOut("o1.m1.get(this.o1.f2);"); -/*FRC*/Random.twister.import_mti(355); void (makeScript(14)); -/*FRC*/count=425; tryItOut("Array.prototype.unshift.apply(a2, []);"); -/*FRC*/Random.twister.import_mti(375); void (makeScript(14)); -/*FRC*/count=426; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return (Math.min((mathy1((Math.max((Math.max(( - x), y) >>> 0), (0/0 | 0)) | 0), (Math.acos((mathy3(Math.exp(mathy1((((x | 0) != (y | 0)) | 0), y)), y) | 0)) | 0)) >>> 0), (( + ( + ( + (Math.asin(Math.tanh(( + ( - Math.fround(Math.pow(x, Math.fround(-0x100000000))))))) | 0)))) >>> 0)) >>> 0); }); testMathyFunction(mathy4, [1/0, 0x100000001, -0x100000000, -0x0ffffffff, 0x080000000, 42, Math.PI, -0x080000000, 0x07fffffff, 0x080000001, 1, -1/0, 0x0ffffffff, Number.MAX_VALUE, -0x07fffffff, -0x080000001, 0x100000001, 0x100000000, 0/0, -Number.MIN_VALUE, 0, Number.MIN_VALUE, -Number.MAX_VALUE, -0]); "); -/*FRC*/Random.twister.import_mti(612); void (makeScript(14)); -/*FRC*/count=427; tryItOut("/*infloop*/ for each((void version(180)).b in this) throw new RegExp(\"(?=[^])\", \"i\")\n/*RXUB*/var r = /(?!\\u758A)\\b|.|(\\2)\\3{1,}|\\1*?|(?!\\3+?)+/gm; var s = \"\"; print(uneval(r.exec(s))); print(r.lastIndex); \n"); -/*FRC*/Random.twister.import_mta(1754379575,923296974,318715243,1393229544,-1444631358,-979919083,2089345854,1868258814,1107475315,1202398197,490072797,-1999054866,1623144337,-1795423973,144524170,818482953,-381427323,1227146143,-728704876,1977103585,948479004,965708041,-1660621161,841179462,178260209,570754629,874663147,-1237699012,705155568,2057043539,327819262,889938969,1391081539,-1869032403,417192410,1104518363,562852366,-197858474,-1752483975,699786846,383413632,-1950990499,766046882,1784335265,-1660075591,-623591594,-1214089864,180129270,828241856,-1876490774,-1341280242,30552232,-681683377,110396573,-2070087758,271007835,1157885597,-1083086066,1415464433,1219420684,1013263590,703733126,-292669386,2106041310,1845172859,-1348663872,660649300,225809200,-1372842424,-1906785361,-1483983008,-1971939280,-1393343191,-874066108,2082339273,-1569794398,-1506315358,-125295316,53894153,1494911604,1772328743,1816382140,-186933216,659621118,-671924909,-174938394,-1044704233,713852083,1161864242,-192295939,-1311007646,-242771945,678200275,1949494049,-2075676680,-2019013653,1414372665,-190762375,1495396362,-1131030490,-2130852529,1525773136,1616093932,-1908086029,-1694740645,618651358,76522911,-1379208547,566867157,1847025013,745118002,906712427,1983206216,1770897088,-2062443026,1661952649,1516693775,550899561,208464347,282426342,959697152,452241924,52803589,-1134992008,460131791,130099048,-786512838,137630821,1793215425,1474990764,-1543979254,260196445,-1382330981,-352557195,-79954724,394929901,-413296054,-1131413958,1772935017,1600146881,-1103196809,1951358869,-860316508,-82197281,-1912186480,687163052,1849269817,293660833,1480649259,487457304,1291482335,-1042573524,321835000,1388484976,-1801373701,754215471,833420255,954742336,-1956077750,-458763067,-1969247507,-508629372,1164118523,1962845375,763986739,-1519853503,1593654499,315330241,2050545626,1887167448,1398663075,-1152354232,532648525,2113785951,-800786885,167152280,823181411,1232290609,1520862880,-343435616,-1723223710,242721836,-1068863096,2118004159,-938136201,1297625293,-2129589633,1290801835,-1862905248,1207771840,-2128197144,-380956562,-1619982310,774184991,131752169,-950970322,1035164393,-1393317079,-1865347053,-546420370,737257913,-1546414241,-2106795342,-1298537297,-2144540277,279105081,1314249612,367971139,-754106097,1644453374,-626356233,1598883514,-255898349,1382841904,739935998,-1574861867,-1268895486,-1519505356,-645348924,-84655340,-1245725752,-1723997442,661636139,921119050,1758437504,212241038,-1248141547,-163233122,-311563261,1497761712,-1409656946,371736302,-1178255249,-121233490,-2014325343,934171474,2091729640,463765606,-1556131850,-1527110251,340822796,-2039233505,-1792550336,-620664530,-97148702,-894528009,-114811755,-2060695653,679598666,521978049,352496758,1029569820,1520853326,-1095949398,-1764293325,-1524773518,-250399489,409347923,487107921,-827124086,-1422868807,1106719512,307736237,65724420,-2048200935,-1715348922,-251553820,-1509495952,-875934023,-1171670307,-1202964640,1505823145,580988108,-1568843353,1583569181,1066910839,-1813074873,1687178579,226395645,277294376,-613298295,-442105523,262979304,-1325087081,-1551326300,1715546033,1852482526,1900033914,-793373294,-1876389183,-874663509,1085164231,-1511023094,-1180860093,1946640498,-1517705528,-809857135,637821617,-1929458466,137777643,-669762147,-1358758344,712794730,2044707943,989828508,1910230598,1751027419,79959713,-973932139,-1023359323,-1580056402,2080039093,-113939772,-1622360835,1690447666,-1293265674,1417751999,12006077,-1298989857,-1674470350,1086181094,-29999120,-1152571637,-599289378,159224060,2058379481,1712957653,-269610835,1486239162,385328172,-284572513,1973850878,-1126117607,-1107506493,-1071759469,-517585582,-1126990948,1680326828,989381364,374866928,-1432441180,-212272693,-1751034535,-395463473,1322584626,-957260509,853079833,1298706360,-730153073,-1944026099,-1986993178,800725444,-1451367529,-1451254063,783863845,-1376070393,2098296602,212728791,-669684484,-1271102784,-836382646,1227203411,-154724,-395129748,-259681840,-1655290768,-833919506,-1063307032,1906773284,-2056191512,-1914269293,-716717356,634719473,-142165021,-786911485,-398592160,-943242759,-930238174,1690505765,-1475682567,395556924,234601501,911036704,1318305453,-646022784,979443427,868067333,-873795819,1371068941,-1123117776,-934078770,-33515815,-234489653,1099814191,1725136305,-1358707912,1779895864,-467537175,1206156997,1645396554,-1651071132,1306655102,-1475431502,333156153,1500618972,-356616779,605055126,796265549,-847001050,-941687252,1487248039,617900560,-1482154262,1656511581,-1515934176,-4970279,-19359866,151071271,1541265899,-1888283675,-262520838,2130661329,575052946,639384608,1838007407,1541258726,2068274832,1704089945,1935820061,1941361673,-1826494006,1415880544,-2128403210,-1253752129,1378143716,-86695463,283211646,313876568,-1991380081,598069885,410892526,-1315290085,276910459,232857952,100574896,333525964,-220826776,1548146840,-1057429164,-1858317373,-1369749894,836595655,507267519,-922707981,601547861,-563704311,1194210041,347992109,-1455309756,-2048306400,4478032,1331373783,693586852,-1301568513,-947960667,1555582889,1623902183,-1573342451,-308185350,1060944878,-2075984553,-1999963772,-278673169,-1045881282,-797832404,911003014,-298143602,812193401,140981818,28617666,-1910847680,-1524699856,-2129695513,1815295217,1503595993,-403316266,-339815842,-2023487363,-1730945613,2106597473,-861715250,270109666,-229601026,-1102483925,1633407029,-1285568059,1997859518,163953711,-1451795552,-684579964,-600577567,956047750,825660366,837579458,2095379153,601113728,1842633207,-307451371,-493592016,1627482418,33359484,-527673370,-1336688548,-1559233513,304150739,505477195,565229816,-1207103229,-421291850,1599865392,-815194502,1525766181,-2062974265,285866432,-1580338145,601144166,-521423326,-283771661,-2110904661,1764286039,-1163995267,196899065,-871270824,821492240,-1946025514,-26796505,1351492602,-1864990614,-1600384236,1308664940,-1895950098,320682298,629510261,1007967752,-730400542,-1859169675,342923127,-845137205,-68609268,313803115,131483382,1921017436,580482351,1810685238,1196023094,1992322714,1700769690,1546729605,1500745777,-1872748654,803938608,1742465059,-998736056,731025245,-1266535432,1160622597,-451035255,735487849,-2101167802,-2114214080,344944421,-101081842,427738334,-620199550,-1644501530,1008001141,-698873908,-2064857702,1410704676,-1154061817,-815813536,969038577,1195945215,-231630562,-1054789323,-687196020,122112788,1889786331,2125324533,1527764896,-2003921774,1141311591,-186770002,764386551,1561609802,-1552528500,1029237608,753445658,1885836345,644771480,195794994,369321108,-2551165,1970172432,1441832024,-21683924,1545829685,1830047512,597665571,254141356,-640902878,1147202025,-667413646,208188889,1966116198,-339704313,-137910337,-13288327,983295194,910251618,-1984702900,-433054671,1823384183,-950573956); -/*FRC*/Random.twister.import_mti(619); void (makeScript(14)); -/*FRC*/count=428; tryItOut("v1 = t2.length;function \u3056(x)\"use asm\"; var Infinity = stdlib.Infinity;\n var Uint32ArrayView = new stdlib.Uint32Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n var Uint8ArrayView = new stdlib.Uint8Array(heap);\n var Uint16ArrayView = new stdlib.Uint16Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n (Uint32ArrayView[((i1)-(0xfe96f9a6)) >> 2]) = (((i1) ? (1) : ((((i1)-(i1)+(!(0xffffffff)))>>>(((0x23685c4d) != (0xea4184f9))-(!(i1))))))+(1));\n d0 = (eval(\"\\\"use strict\\\"; mathy5 = (function(stdlib, foreign, heap){ \\\"use asm\\\"; var ff = foreign.ff;\\n function f(i0, i1)\\n {\\n i0 = i0|0;\\n i1 = i1|0;\\n var d2 = 4294967297.0;\\n return (((((((0xa88177fb) == (0x9ad0cd61))*-0xd8727)>>>(-(i1))) < (0xd189ceee))))|0;\\n }\\n return f; })(this, {ff: function(y) { yield y; /*infloop*/for(var window in (((let (e=eval) e))(( /x/g .valueOf( \\\"\\\" , \\\"\\\\uC41B\\\")))))v2 = Object.prototype.isPrototypeOf.call(v1, h1);; yield y; }}, new ArrayBuffer(4096)); \", ++x));\n (Float32ArrayView[((Uint8ArrayView[2])) >> 2]) = ((Infinity));\n (Uint16ArrayView[0]) = (((0xf69eee5f) ? ((((0xffffffff)-(0xfac7e0c5))>>>(((0xb94ddf25)))) != (0xfe47fb7b)) : (0xbfad377))+(0x33dc0179)-(((-0x1c72f*((d0) == (281474976710657.0))) << ((-0x46ec50e) / ((0xced85*(0xf9bdc906)) << ((0xffffffff)-(0x5cdfd4ca)))))));\n {\n d0 = (+(1.0/0.0));\n }\n return +((7.555786372591432e+22));\n }\n return f;/*vLoop*/for (var jokhhm = 0, vdrxia; jokhhm < 28; ++jokhhm) { var e = jokhhm; m0.set(v2, t2); } "); -/*FRC*/Random.twister.import_mta(1044713080,14122757,-1250139041,21801874,1529368658,438334352,2059232886,1959757563,-619267806,1103256153,1853108952,1032570313,-1509020614,-337436298,163242649,-1610223209,1483019953,1637940621,-86605589,-1673829102,1338192422,-996864906,36773372,-815350504,639856421,2122419594,-2004939328,-1638475417,288053275,1768341213,-63502827,-520411941,420866745,-834378895,372317963,1559655759,1459585536,370885960,-1979607885,2132798838,-254787534,231926573,-1260624790,545015127,-510655102,967874641,1384697907,-2064278495,598834001,-1922238863,-1426587398,67993479,-182628364,-1789292939,615467617,968857406,485407999,1110458067,757181585,-853630649,1088147616,-1784557845,-1110224117,-1251067207,-1820899002,1835569448,-1243912058,362260677,-2042474756,1008578036,946491464,-1647180870,-854950750,867129419,-1019849607,-940690008,-1941755608,-1899490876,1279095654,-2014115886,1872403931,1803205995,-1485763370,185469982,1458198340,2017370611,1877044170,-113432654,288896353,512188201,-651434960,-1255812061,-788429299,969718482,748061786,506182954,-1479542565,-458842500,926862931,-1525006314,1645179997,-1028264187,-1453507470,1320762530,-1774928196,1441989586,-1133594468,1292963072,-1475464533,-20415620,440654088,-1116516367,-1133311458,708002740,1623766873,280872330,774102318,-182314495,1096199584,24232004,-1012172097,91501164,-1786873236,-1893559420,1340251444,-876051425,909256592,-1266270767,1848992646,1503725818,1931953529,602952333,1733418213,284993389,-254565223,30224479,2003741991,2146288882,-1987457387,-362137921,-1959784806,-787537287,-839569674,-132022203,-330761595,1713193071,1888769803,-1582482785,72296388,-290855018,-716161228,450599886,1727083459,1041681746,-378221029,1227574515,-1689282750,-1538063653,1695439563,-1610674413,1330294269,-1135548166,711531715,-1680816923,-1096766054,42003499,-831131631,1858284019,-890115093,240975634,1370622098,-1994366858,-1312617635,796617923,934169304,301905559,1295296012,480464561,507238965,639969396,1545124034,-408135291,1051757663,-459964573,-830365300,152114552,712257547,740923084,1471996835,1092010451,-2075280708,-1048440074,1610395073,-567334095,-1785215345,-246794091,-563718783,-436651159,990404460,823112562,1523405631,-1398305393,1171611797,-1375983897,1188409467,1824303589,-1761292934,-408064208,626874561,-1631117124,466651182,-766552952,-1895250186,-970755437,1926926754,873913591,864501015,-477134117,-1860042631,-394674667,1668285088,-656662805,-772545650,-1950358375,116778748,-327015283,-914581949,-1160407780,-152402778,-1807477914,-1046458324,1312601775,-59998549,-1092459360,64322569,-1002532952,-2054681946,1503957834,1925955637,-1520232221,92162460,2054821801,-1860444407,566004374,-1001499869,-1504203866,695503969,581686598,1944864279,-496003126,2075995010,-533786100,154175286,-41981737,-1856359105,-1677782584,-2002267908,-837535930,784524453,-1614343117,698224771,-2026792659,-1884308045,1895499730,2103232970,-297398608,1180320035,1679426394,604104012,-909006311,111936444,422284984,1727243700,524376041,1484490524,-630074110,367550424,-671714586,-1562200964,-1761998567,534326922,1991287996,973188845,-661870950,1689414051,-990428203,1075440523,1733753936,256838486,-1767625460,-1872818400,-1930954242,167902215,1300567595,1806900254,-1161732076,1285808457,-561832230,1933314635,-1754752102,365857211,-1879456368,-676899173,-733671358,-1791283645,-1183745121,-651192245,-1814874153,704657822,309766352,-476038831,30411533,288409860,-2016615992,2077056534,1144532886,-1258769670,-1798236802,860022226,-1446231960,2130256923,456660851,855407345,705338437,1042714130,-1367802197,-1587458117,1797118013,-1317030564,-803854460,2018291839,-520934260,-277300945,128701733,-1111044534,-319322057,1588470561,856865854,-583581839,345192601,1197401523,342065159,-281669017,-1399030618,1195240875,211299954,-1688722153,-753141274,-559881716,-1283758020,1014621721,-1494031779,-890287633,923990574,1457138128,-1072103152,1464494020,-1042985654,-1948337959,-1558853624,599467554,739801827,-742627726,-102899270,-250058406,-1830622624,922192534,-1995677629,-1414486756,-598064048,661382911,-1192887351,-784740772,2050241607,-1827890382,602850671,-1380219938,1407278658,-1143127049,-96206178,763160784,-1476942384,1689825688,19263747,-352998746,1744624760,-1318697444,-2006652313,1321689887,-1871283714,-1645840682,-1690261427,-750311546,1483906058,-1278837930,-174050947,1746859370,591157343,-1656539529,-1872124047,-487514927,-894743618,-1376344547,-633143158,827113734,337407735,-1918443036,402082233,1788424607,1319850969,1464119586,-1781620101,114863802,1034972752,-1863493884,982697653,426166064,1251419273,773248623,636660806,1013051122,480246106,-137204417,1470346601,71363471,1446827744,-1436605776,-888868291,1114788138,429320537,-837175695,-1838024762,1803372843,1854024636,-1001474810,-859310848,1212273357,2128215140,2119263286,822235758,-927255860,-375264036,-1022487707,998573862,1836055832,1773616045,-1584241981,866719031,-439112170,-269819114,-1333460446,797189630,-691394706,1130634841,-637375882,-797643842,-13890738,540475226,2067350854,91415114,820556959,1959868011,1061519547,-1553948413,985848654,-527892038,1148109147,1562689362,70124963,-1036562442,1866054885,-2000549155,-825621984,681633452,-851104038,2097389912,-652189523,1443047223,631627509,1472607942,-1531408746,1893137643,-759139363,-1449953673,1607467613,1420742260,1940211130,615285721,-602833177,-503797912,-748480800,890062509,1742440462,-1505429577,337496642,52943945,-25054590,363908534,1125128010,-830005009,-942816225,294006862,-1459310763,-979769519,-1123463448,-890585678,-1917298824,873555174,617614334,-1198247400,821710056,1719114169,1160628938,-2045589702,146275998,-1759063356,1566770681,-2101790155,430292487,-833081455,-132296616,1909839541,-2102039660,-840944654,-1185411809,-1433197335,-1593463449,1163999153,404556054,814596390,-548965186,-1560957120,-701152308,-1259431884,-2102286854,-163074642,-1890187245,948839685,-866295392,-974037150,-217258137,-1237831632,-1657980026,-1354734844,-1330407038,-355892482,-1342455602,300282599,-194271944,42706109,-1544684033,659888622,-1075574335,564325231,-498061468,1077234068,1787637966,-1817605223,-1110542608,1082237365,-311384242,-226933145,-449921451,1510997837,-695706022,1107955355,1707807888,172862052,-798522336,-674557418,-1854612282,2062060222,-14638074,-1141370647,-1774355636,-1119374379,-1602546907,-1922346646,1010136620,1882520083,1801737408,1896016713,-873347205,744720089,1391892412,861731988,-1384756120,1178555013,1811460450,1011395113,-1286497645,1477082016,1204056024,-491281316,-1536805824,1128118368,1147151176,-1313203229,2007673942,1671272778,1676037060,-587815397,288555218,-251351075,2010384585,1100908552,1653768804,2111813049,1712281740,-306209223,1414079297,314951453,-1588934323,-1987348739,1044323453,1443974996,-574139094,256385442,-1127458807,-1367342185,-1176895261,1058468076,1812998935,926708310); -/*FRC*/Random.twister.import_mti(52); void (makeScript(14)); -/*FRC*/count=429; tryItOut("switch(new XPCSafeJSObjectWrapper(((uneval(\"\\u89E1\"))))) { case ({ get x c (\u3056, d, b, a, x, b, NaN, x, x, x = /x/g , x, NaN, NaN, x, \u3056, y, x = /(?=R{1,1})/m, get, \u3056, x, \u3056, NaN, e, a, eval, x, c, a = '' , NaN, set, e, x = c, b = \"\" , z, b, x, x, z, y = /x/g , \u3056, d, y, NaN, window, x, z, x, x, x, NaN, z, x, x = x, x, w, a, x, w, x, setter, NaN, x, x, x, x = \"\\u8B8B\", window, y = this) { \"use strict\"; return z } , x: '' }): /*RXUB*/var r = new RegExp(\"\\\\3\", \"ym\"); var s = \"\\n\\u11b8\"; print(uneval(r.exec(s))); print(r.lastIndex); }"); -/*FRC*/Random.twister.import_mta(-1168156926,519419015,-791678280,-815450888,-944016778,-1868032730,2032956200,482844055,-302648572,-1164117880,-1875240062,2040407938,995804002,-1970179919,482667119,-203254467,-1805082551,881764270,1955558460,2122800675,1759355570,1863211153,37876426,-159848001,601833375,-202511393,-2122290939,-706873507,-75024047,223088997,577884303,-1745873751,-1480824770,470386987,620920254,1073907755,1703905560,1481035648,-1287126085,1881797332,-1590150867,1681872387,-130760678,-126668787,745607211,1933757347,-1594394135,-1514147729,-167120822,-185703746,-391701973,-547550740,1011782899,2077890509,861662817,1102432718,-76238353,1436159201,1878199234,-1623071970,-1276204816,-1126671332,-959623223,2035486780,40206079,631780600,1889781182,971242544,-1098393792,1482418559,1405992591,1655389170,48780044,-676715002,-348844023,-1997826380,1875177038,-1420060823,2130322097,937795231,-88684195,907892894,306262217,-1882348236,-708764467,-449788360,-1794251346,-1908103118,-1025126081,1597028258,-415835881,765005118,-1122043391,-987212595,974690360,-315308868,-736642935,-695591500,296418370,378452083,-1377662229,398362995,-1445216578,-858285247,2071966119,-1221332197,-1559141935,805758818,-1248952308,-1063666692,-1281330239,2062126833,-309488702,-1718179941,1848212348,1379673181,629897957,1746708558,-1751239962,-440530823,-1073536253,320504625,-1983289773,-1611915582,-851893147,-643008420,1319869893,-834487076,-2042388332,27180804,-846090712,-1296214085,-1577377201,2116425261,2065401776,1955243392,-1961330099,528347759,444204590,-892465314,-922680090,-1431832869,552152991,471870202,1547575512,1013948636,647909012,-225179040,-576884427,-984359084,1552432896,1578863622,494977556,241117741,-624423096,-1304182176,-360457507,165655262,-691896638,-1809787153,-1920860188,1911703630,-731811048,-1306463869,707887277,1528624770,-1268327573,1794644848,86274322,1293029593,249403999,294564177,427693224,-1968965206,-350265046,-642058496,748750702,2631305,-1370150929,-1904783548,666226039,-94011172,-612960899,203719686,898261493,1203990433,980897215,-534751566,-1965085534,-1353674442,654203902,-1660004515,-1973973138,1620232459,-1180182731,-1308625465,155420983,-102622218,1538941401,-267503096,1054961147,-1941394237,-328516890,-1719393498,1939882550,447833711,-2100160443,-1133374346,1325209686,796575347,1425547261,562772983,396793775,757361552,-1849288263,562161433,558106447,-274289506,-1155194751,-1400941446,-1171350008,-734680626,1918320900,-90115171,-1872801163,-1851338519,1784068312,-1054206639,1423424820,-1340089682,829677424,1619394044,-807852170,-1580302861,1054399043,-1355680169,-699485907,811027271,-232318164,2045110188,782551994,-1925073612,-1556295562,793196807,1738895997,-1187151149,1876079744,-937217690,1580831604,2141153035,-965779271,1732738052,1415245675,1344652101,-1742569543,-1076571857,1782975174,-333966846,18558575,1786499232,-2036730526,-69397576,947850178,1528950269,1868941528,1231918069,1109717881,-1288123509,-639683632,-1151155772,-186189999,520667889,-437596024,-1932871065,-2004411666,-1124212826,-552248371,-1177141227,220773823,1939997622,1082279315,-1219262008,1844681347,270874081,-286712364,-1762177320,-1393910474,-1270272677,-1215673702,-1897740199,1059122371,-563269597,-1704849614,1165642673,612584506,1105106747,1998218770,-1285878923,1763669567,-788027634,-799619890,435030939,-490135915,-1135490640,1860934265,-1956290997,-419121749,-1346972270,1059458294,-1164337986,1445793901,-581339057,-422136100,-387233115,-1403469831,-661026750,358104349,-1097356290,964635914,1533728979,1371336619,-1167190625,1631140417,-888864896,1488900670,-669848768,-100080462,-1252175803,2142608049,1291146846,-55702265,-1781834257,1844357462,-1108211980,-545942618,1137779011,-653203997,70474918,-1448566174,1462391236,179296071,-1061502320,74586638,-551731985,1850785655,54169778,-1942752118,-1353494011,1252472623,1325213056,362667827,826683469,-2111503029,1707510061,-296862636,-303656074,561256865,292962971,-482888769,-265899682,-249390205,1388688521,140793181,-208384288,1443661663,1090634597,1463848864,-1663478168,-997534477,-363566017,-1722128447,883083254,-662894048,790102797,980146184,-884952870,-1398574987,-663867868,590974281,1262401148,497350853,-1466673276,735676990,-537325682,2049039586,-831431220,1226445571,1944780468,2043245745,-1701689229,1720194426,1133646702,925218951,-1383733568,-1994345711,1898646439,-981169111,-1720405573,-1062022602,-250729953,-269067147,619479803,-1264879803,1946642413,-1825660627,-1467590883,1552177991,-1947081369,1144560111,-254497300,-1614060060,1994798760,1494964361,838985277,610370871,-2039722182,320058285,-1459781610,-1879637634,-1805158377,1859990950,457593205,1126604716,-1838461905,-755208058,1318449281,210039753,1608009070,428566704,1383026945,-792930107,-1625926020,770732977,-1594539322,-636358922,-1277869585,269891649,1808838118,956961472,872091337,1509203454,1766432980,2084791434,401865155,1114997143,853844287,1822649918,-2000205565,-1547642811,706068501,-1386028702,-1153809982,1763471130,1196920291,-1458544498,725727379,-536566525,217021907,1648135385,1319488998,44979737,-1200444735,663295497,-1959797622,1297306,152619870,1467463685,-1246004812,-1403383089,1302904539,-1305572170,12612461,-311561851,1232085997,-1230839350,-341765123,-1919531953,1303723804,1285842791,1174841376,-1320808977,676001416,1914034891,-1666794697,-967871176,952732850,-517660269,832174798,-1960755188,1372487858,-1733296524,1552420063,-1018734351,136975960,732140912,-425727343,-239425761,-714146572,-1589386663,520389208,-1006001600,84802971,1194958033,-2121139015,-593289524,1274320387,699052485,1391083628,-1424387900,898546935,-1172944414,-864028495,-1778504379,-391028103,-1076214727,1077115065,381085084,-352681185,1615435572,-429086946,-1533538252,635042288,657362626,-1296117694,2132421086,-1600843693,717196297,-598196155,27847432,-848649014,-315941360,99695519,-787344815,-1503893674,-728431803,-511330272,2144747235,1879285949,-1079912450,106460592,-1275637059,-489807302,-1892042304,1291973084,-873239935,1854066029,-1970237057,1804156215,1646491422,-372804511,-1733397641,-565942783,298528296,-887033088,-716704625,1257439958,-601283763,-1572260225,1820540394,1532426993,1573262616,887782483,-1210159558,-229324082,-62985420,-1689442262,1376552182,580654423,-1419818085,1288205421,-1570145872,1371598196,-942790631,-953333460,1761098544,-2087580062,138972469,1267164197,-1873478245,-1214828757,-1001436074,1388212022,585097413,135221887,148389073,-175336053,171026627,-992033998,-706129598,-2000410421,-1617857744,1978577075,1884950859,91460992,-45643176,-423967401,1803669777,-493932054,90966867,-376557630,-1737760545,1928484961,1791645675,1312933070,-123639264,309382267,-321266561,782455939,121841735,-654988479,1335057631,-208926565,331109997,-1894961694,1491228958,1462427172,-583640926,-504985183,-1915051398,-222296023,-233922890,639637061,1790259852,-659871832); -/*FRC*/Random.twister.import_mti(189); void (makeScript(14)); -/*FRC*/count=430; tryItOut("/*tLoop*/for (let d of /*MARR*/[objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), function(){}, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), 1e4, function(){}, 1e4, new String(''), objectEmulatingUndefined(), new String(''), new String(''), 1e4, 1e4, objectEmulatingUndefined(), function(){}, objectEmulatingUndefined(), 1e4, objectEmulatingUndefined(), new String(''), objectEmulatingUndefined(), function(){}, function(){}, 1e4, new String(''), 1e4, new String(''), new String(''), 1e4, 1e4, objectEmulatingUndefined(), 1e4, function(){}, objectEmulatingUndefined(), function(){}, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), new String(''), function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, objectEmulatingUndefined(), 1e4, function(){}, objectEmulatingUndefined(), objectEmulatingUndefined(), function(){}, function(){}, 1e4, objectEmulatingUndefined(), objectEmulatingUndefined(), 1e4, function(){}, objectEmulatingUndefined(), function(){}, new String(''), objectEmulatingUndefined(), objectEmulatingUndefined(), new String(''), function(){}, objectEmulatingUndefined(), function(){}, 1e4, 1e4, 1e4, objectEmulatingUndefined(), new String(''), function(){}, 1e4, objectEmulatingUndefined(), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), new String(''), objectEmulatingUndefined(), 1e4, 1e4, new String(''), objectEmulatingUndefined(), 1e4, function(){}, 1e4, objectEmulatingUndefined(), function(){}, new String(''), objectEmulatingUndefined(), 1e4, new String(''), objectEmulatingUndefined(), 1e4, objectEmulatingUndefined(), new String(''), objectEmulatingUndefined()]) { let (e) window }"); -/*FRC*/Random.twister.import_mti(450); void (makeScript(14)); -/*FRC*/count=431; tryItOut("g0 + '';"); -/*FRC*/Random.twister.import_mti(459); void (makeScript(14)); -/*FRC*/count=432; tryItOut("f0.__iterator__ = (function mcc_() { var ecszjr = 0; return function() { ++ecszjr; f1(/*ICCD*/ecszjr % 8 == 4);};})();"); -/*FRC*/Random.twister.import_mti(483); void (makeScript(14)); -/*FRC*/count=433; tryItOut("\"use strict\"; /*ODP-3*/Object.defineProperty(h1, \"callee\", { configurable: false, enumerable: false, writable: true, value: g1.h2 });"); -/*FRC*/Random.twister.import_mti(508); void (makeScript(14)); -/*FRC*/count=434; tryItOut("mathy1 = (function(x, y) { return ( ! (Math.fround(Math.expm1(( + ((( + x) | 0) < y)))) >= ( + ( ! ((y ^ x) >>> 0))))); }); testMathyFunction(mathy1, [-1/0, -0x080000001, Number.MIN_VALUE, -0x080000000, -0x100000000, 0x080000001, 1, 1/0, -Number.MAX_VALUE, 42, -Number.MIN_VALUE, 0x0ffffffff, -0x07fffffff, 0x100000001, 0x100000000, 0/0, 0x080000000, 0x07fffffff, 0x100000001, -0x0ffffffff, -0, 0, Number.MAX_VALUE, Math.PI]); "); -/*FRC*/Random.twister.import_mta(1325849383,-388682902,-1766018973,-1943280306,1824032872,-938651951,-479454727,-1512810321,-171431079,345593478,-146868570,1503000670,1821681003,1218551820,-702558999,-1977108366,1749464554,505823017,539447540,662528756,108141697,-1898448869,911457303,-1506141514,-1145564091,-1695671311,1636632414,909597937,-1858385684,-2068534447,-852951067,1247108271,-2057099957,-1036130790,639607478,523745085,-1932122874,1522360308,-876496763,-1719495672,-2134395336,84964045,-691395056,-1765497548,-908036646,-181376863,-601575125,963738034,1217630304,-2114432012,-412496395,1693393635,-1896842452,768059021,-1679776475,-844200142,-1265484980,-1628838545,618744092,-1175195269,1384338397,-1739416606,839665144,-1701553735,-1431916355,534312150,-1747049838,525344826,-63074498,-409348195,-2064718771,-1389479095,1719512536,1589425261,1152759863,-1701869918,-975873914,1356283981,1767599213,700813374,381391699,-594784292,1105230522,1118712662,1523750292,949168156,-612045010,1043672440,1464981347,1270283719,1733655633,212241875,-1437459957,-979127704,1779592833,809776234,1668225154,1668737873,1959790199,2118341301,129566866,-1246872314,-530055385,549374540,-2019773239,-1883661082,-644706552,-966500662,733498365,-378390278,-1231669301,-1646307035,-531800091,-855444388,2087279168,506667240,-591448482,-1273668278,-1411068838,-272644926,981430872,-39480126,-1449482113,1527526105,1225770462,-646713089,-1784705492,1010563476,-530952239,209148701,470702919,-933377296,728833795,-794370616,1068788063,1301716904,1894395582,-643301294,-991772785,458669200,-1135023345,1994256622,138961101,-1645722927,-50728364,-1669947766,1951134956,1010131652,204153543,-455831809,1149565748,1826821652,2011189672,-1245023021,-2023389391,-41782375,-1882248593,-31011858,-1712596610,-1695949633,-625995176,1186169958,-1689373969,-1848220271,425985810,887468880,-2027370634,-22228035,617386137,-865404666,-1286341344,-1478475313,1234798776,-672741083,1025349364,-1851872338,1580329655,-421914600,-995513920,-1030038703,1991615563,1692874746,-242914008,1199754355,-396924871,-1494419771,941586726,1303882368,-1574642416,1498318140,1397839939,-1866295563,1636170897,441067637,-1273365873,-1376557809,964860027,160565867,-557983661,-1376135373,2107889492,1935250976,-1521729967,-507788860,-425567351,-223614186,276352757,-1612716533,-1664802915,1605198686,-1485932121,-1785146545,-832070007,-562503460,977554376,-1709775595,-1193378899,-1669826175,18183193,-2145314906,-1946395322,-185531656,1452851512,589924179,-134492434,530476768,1630969311,627901885,-254097859,-838508581,-1133962320,1263803347,31637751,621331463,725881691,132629264,-709213190,-835880144,627510152,2076623030,1308719766,-2021546798,1150063662,-1029915637,-1682944353,1473120948,57473607,1768871227,672201537,-1939030892,-711351116,144560943,737430156,-191592355,-254442311,-468169329,-1296522672,346937357,2137568511,-2043682822,-1076662330,2048927575,-1414532836,-1151024790,-419223855,1943761382,420888850,-332910640,1486950959,900853095,1078490259,-82502242,710772045,-1738064804,1729074785,-1106145959,1142670113,955589621,1564353336,934930746,913203817,1947326651,1555344669,-2082032218,-711835133,1922303879,2061489929,155612816,1177243409,-191593658,749367671,-409487580,-462593583,-2053143409,-1497900168,-944718793,1732043512,1768550285,-2052200242,240570303,-1958542977,-321288286,-995663238,732439909,-865247305,-2083420569,2115959543,1227396392,-1044348541,-1275182509,-183877714,700043002,-705806959,346030093,1383721305,-2064287438,1425877048,1005251284,-1206169243,461692161,1100744824,-2088352898,365317034,254833053,1333763825,164918318,-1109046712,-513051371,-1814784471,1194871163,-212609948,-244588446,-1858035812,-1238874405,1048870580,-1640461869,-1419012439,-1572706566,-162893369,2081555609,-312503020,1045452615,-1464529344,849336634,-1249372909,-1375914465,555670815,-970696432,-623180286,979171129,-626550240,-787089500,848823478,-1564962810,1254666287,703132638,-1648047473,-1264766393,-1337028001,-890707427,550287187,-1567689938,1952233688,-2098930226,1612730687,-280823713,356128676,1192571305,-1694534098,-571612174,-944168662,-792234172,1391603667,1769871592,429210281,-1015928286,-1998349843,-1945072305,1232882986,-533029611,-1585422575,-762756562,-763431842,-220216290,-652319480,1684955168,-1558404123,2136742111,-755888000,-401983406,-1340117978,-1677825138,572997680,1521495585,523364017,-1626970542,433590532,-754281413,1181738015,-1486219683,479737991,-1101488759,1922410631,-827454722,730956617,870528188,1584044349,-1918805917,1552769292,-1100947494,1022482215,1574073506,652522756,-1289286814,1317113117,1923462169,1295009079,346740988,1140431393,384525890,-1897811952,-1786071719,1036940231,1358733368,-137346316,1106710888,-2112490108,1902535436,-1016689025,337306348,-1372525830,693293710,-489600395,2104506766,1597896227,1304867682,1782920621,-1142198073,359523572,-492973962,-354668362,73791885,149399851,15469497,469932481,927253254,491389944,1125417403,955470381,1076474249,2125768626,-2089420445,-1522722610,1975430552,-372938453,1506813027,293229037,343928067,1812397344,-1715643612,-1606868552,-511170432,40906069,-1783388617,-895410529,-1747687595,1629191276,-2128297170,2019380064,1570493045,468989282,873334402,-1434539107,406686370,-2051609574,-137139783,-357162214,1791174616,731809599,-1436549980,-1598950631,1356323075,1933811915,-778102580,1221140052,-688745239,-555539811,-1169961024,315057934,-1476915674,1277720538,1604860534,936278730,214404010,1181706823,-1183518337,1594266397,-1981729440,-1265148750,140072045,1139372622,-576984874,668058586,709512263,-1006118869,-790377723,516737292,602057227,-1210173921,1103071724,2094135585,107340926,-1614543260,-1137031734,-262702573,1299201503,1491169814,1552857837,-727587669,-1239324213,-680298377,-1256154087,-554707946,414316055,-533997701,1241161237,-1183686846,-879266565,-898837049,-1305285262,-262666123,2112677440,-788548148,-1923298422,971655480,656617005,318186194,-354757551,1788212258,1427973136,1707544848,367343033,-495615524,-401855065,-710722371,609986821,-146214075,1888334839,778914193,-1063664946,-115674558,127535589,742657454,1313734864,-2079132546,617133904,-1894489445,-2062398831,1170746821,-1079798512,894814253,627788201,-418190156,-713759949,-270208273,-1622395972,-195772691,1643675654,-1052975698,-1182682472,1518317440,258453952,-831810935,1432535175,-940745183,133689415,-2036861452,1267029042,332845294,1354736285,-874010723,-1028657006,-1259869634,10511416,391366749,1818162913,-393772156,1245192178,2145671060,999555392,1629173064,-1056577211,-302304609,731501192,-1388256291,1983327865,-324371705,470258780,-469737307,-2016448669,-1995471865,-1241996925,-464336827,-1263325955,1545624493,-434629686,778274699,992574445,1744512849,750775022,1376874636,164167393,1676211921,-814903446,1422489549,-60212015,32623709,-151896805,2073485125,1528827755,-1867999780,711688183,-1286343290,-413938616); -/*FRC*/Random.twister.import_mti(37); void (makeScript(14)); -/*FRC*/count=435; tryItOut("v2 = a0.length;"); -/*FRC*/Random.twister.import_mti(50); void (makeScript(14)); -/*FRC*/count=436; tryItOut("function shapeyConstructor(kwazbu){return this; }/*tLoopC*/for (let y of /*FARR*/[, , null, (4277), ({window: e, b: '' }), Map.prototype.forEach.prototype]) { try{let xcpmqu = shapeyConstructor(y); print('EETT'); print(xcpmqu);}catch(e){print('TTEE ' + e); } }"); -/*FRC*/Random.twister.import_mti(233); void (makeScript(14)); -/*FRC*/count=437; tryItOut("\"use strict\"; (Math.max( /x/g , 21));print((4277));\u000c"); -/*FRC*/Random.twister.import_mti(301); void (makeScript(14)); -/*FRC*/count=438; tryItOut("\"use strict\"; mathy2 = (function(x, y) { \"use strict\"; return Math.hypot(( + Math.imul(mathy0(( - y), Math.tan(( + x))), (mathy0(Math.imul(x, ( ! mathy1((((0x080000001 >>> 0) < (-0x080000000 >>> 0)) >>> 0), Math.imul(x, x)))), x) | 0))), Math.fround(mathy0(Math.pow((x >>> 0), (Math.log((x >>> 0)) >>> 0)), (mathy0((42 >>> 0), ((( + (( + Math.sin((y !== x))) >>> 0)) >>> 0) >>> 0)) >>> 0)))); }); testMathyFunction(mathy2, [-Number.MIN_VALUE, -0x080000000, 0x100000001, 1, -0x100000000, 0/0, Math.PI, -0x0ffffffff, 0x080000000, -0x07fffffff, Number.MAX_VALUE, 0x080000001, 0x100000001, 42, 0x0ffffffff, Number.MIN_VALUE, -Number.MAX_VALUE, -0, 0, -1/0, -0x080000001, 0x100000000, 0x07fffffff, 1/0]); "); -/*FRC*/Random.twister.import_mti(588); void (makeScript(14)); -/*FRC*/count=439; tryItOut("mathy0 = (function(x, y) { return Math.imul(Math.fround(( - ((( + ( ~ Math.min(y, (Math.cosh(y) >>> 0)))) * Math.atan2(( + ( ! ( + ( + Math.sign(( + x)))))), 0x0ffffffff)) | 0))), ((( + Math.hypot(( + (( + 0/0) + ( + x))), ((((Math.imul((y >>> 0), x) | 0) >>> 0) ? Math.sinh(( - y)) : x) >>> 0))) >= ( + Math.asinh(Math.fround((x || (Math.max((y >>> 0), (x | 0)) >>> 0)))))) | 0)); }); testMathyFunction(mathy0, [1, 0x100000001, -Number.MAX_VALUE, 42, 0x07fffffff, 0, 0x100000000, 0/0, -0x080000000, 0x080000000, -Number.MIN_VALUE, Math.PI, 0x0ffffffff, 0x080000001, -0x080000001, -0x0ffffffff, 1/0, -0, -1/0, Number.MAX_VALUE, 0x100000001, -0x100000000, -0x07fffffff, Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mta(-413138546,-1808200463,-511712006,1791261875,56003134,-1708452700,88905334,-931322310,2041552895,1710613102,-513039284,-204504218,-1708126244,-1896447604,415344795,1388834801,624731177,1586636135,1629160803,-687735896,-1966500818,-2116487947,100035353,1244990189,1106577534,1292431464,-756040033,-11671934,-1700400097,2106145449,-1924891260,1491053573,1963200993,-46187615,-1077823025,-457549578,271488628,-472540482,17299814,707194545,1617688958,1040775164,-1442872596,-1909716389,-403342078,-179871,1549055840,944460273,934865660,-134851107,-1469341675,1066102715,-1883057648,-364100097,-442320134,-9173656,-1547505680,-1145713243,-601789439,-516732708,408330482,889249756,234866471,1818413369,-1369156885,161430556,-635718102,-188753664,2098216004,-1167802731,1320906325,191077772,-338872164,-1599710810,961136083,-929822754,-379676069,672393971,-483286618,2028165740,1149567030,1265547874,-1962351345,-1915176493,1285442829,1585567580,-1903849872,-93764294,1780570837,1950428266,622344694,-1629037868,-987113710,-1607864251,1200234563,108656267,-1535881507,-451946077,526248186,1557796692,-1825166365,1571558398,1476800843,-651192075,-1706613083,1259897950,1232626466,148065546,-463808648,-594582986,-200952250,1592797490,658437058,48583681,159151114,-1315201717,-433001617,-1515905986,984604606,98487098,1650225292,425984075,1118814328,-202073448,9557177,-1809837312,1185680093,1225670732,-1765178556,779993662,-273051261,115141273,-1704885354,915049477,1529325972,-393567597,-1584870493,-1030511072,1787326565,-1781274742,-1850463194,-138840933,-1025395289,465299514,1541307132,-1739555926,-166290235,1253973249,-1892065627,-1794470177,1190934781,362635589,1131694200,597721349,-531398410,-223664058,828204327,-924378943,-256579120,-498308169,-431257438,-781745043,1849693959,2045234084,1058639873,-460943601,858405426,613026428,-1183232193,-1375911811,-1426059202,-1510991374,192571093,82928890,128508951,947640077,1712311435,-1514566975,-5100240,1690670862,2046218191,722757242,-1435077509,1724162910,147929903,-387426643,645640568,104965845,16364671,1478991738,-615390121,-1775363837,-1346787931,-501253936,250931997,674418301,-1235720350,454475563,-1178372801,-1837395795,631988044,1873727314,-149778559,1666586908,-861055992,895885280,575958823,-1958058820,-1982946715,-1529083001,-387079531,-1715447606,1132698240,255022440,-1647625036,-1500546088,408486773,-1924432610,-59132158,1141891838,-1937064857,282771417,-742622179,-1420463445,1705265287,448793526,1827536457,1174786639,1781732291,-1085576926,-1771650683,-1699784038,296207992,-1981403388,-879835214,1400028674,48455670,-1277681272,-835919043,-1120882025,-1925819419,2055725708,-360644309,-236178503,896868413,-106575713,2059280874,130636113,-2014401857,1866119491,-1754049627,1410280760,-297139047,864930844,340357274,-1007049417,-1361615248,737711908,1539851256,720217602,422025429,-1441382079,-1190643645,-89672253,-1707597235,227334639,473102681,-1791770442,-1109872240,282265722,-1280932716,735252347,-204546225,-1227109233,-1102370942,-859980877,1921283320,-2030784119,609721126,234705915,1229724029,1391484075,-24682565,1342406190,1542946489,2017867610,-443518060,-1572096091,256548479,-1029550269,1604915883,1163547356,-765964668,-1992270954,242169796,244206904,400095628,1282251314,-717206900,2003044604,-691365257,1528460526,71869875,1449166175,-252471009,87452674,1551307000,-43126744,-1952896108,-242353448,-654025042,-10362086,-1915132027,1051838979,-132908637,6278857,1773426944,-1608703589,1244398731,-437791954,-1578446342,224986518,-1729528166,448999802,-505027660,28265950,-1251533567,1138020392,-1489467492,1638914937,-1583716156,-756586133,-1996220436,372923512,-1631078084,686271731,-1917955765,371736186,-1175348319,294730056,-993669251,489091882,-388730410,1711034681,1783838702,-215481874,650962866,254931853,-582825208,1878789480,-1686216374,1507710690,-2055447805,-1161764331,1576679843,19093212,-314840126,781609075,-90166456,1393518816,667809170,554300920,-369570700,1217418211,1815767760,538278839,793890689,-1664379087,-1722841758,-1589828302,1943557016,-1414537782,-1393592354,1674883406,1795622928,1379934860,1242200231,574758504,-1131897072,-1967335633,1256464402,-1989346599,-1950037431,1574066083,-1160763183,2016545021,82499335,-818773790,-1520265148,911188244,874053219,1846161433,1356212416,-1514505803,722024789,-174766147,493927103,1363104494,793616899,-599864759,-2099930399,-404062069,523031154,-1429226000,-1136127841,1234162033,-81949728,397442889,874776983,1829121847,1210947855,463692205,-243543268,-667695319,-1508127738,-1083627973,1383265028,1671797144,-1654937054,-1463190099,835883683,-920952287,5021281,-1917827560,2079143839,-1194749955,-355950293,-1659852628,631488036,-536151300,939487323,1691173357,1272840999,-1799215895,-1381417715,635734124,539034427,-1571073809,-1467043599,921535195,-737601167,11557118,1072811739,-1890517174,-1763107683,-220416258,-57863428,167486894,-1446586430,-320458812,870792901,926598368,1612668282,-1056441853,-1276809055,-75068438,746336124,-1603944683,-1770916088,1102796452,-115197116,331243975,-1063002682,-21274522,1631232765,-1096721141,-1113402624,-250022315,-851264663,-411362406,-336908040,-1186806484,-1246032434,2019907559,-450339502,-222971086,442182319,464822501,1092670314,656035274,-1024552894,-1260384224,-348772015,-894178982,-1719046769,-1380883863,2009874914,1346644818,-1175828910,-551812178,-713840392,-2116083928,200219706,-1509032795,276891862,1263749313,337875658,-370332979,-151579246,-767924632,-1743374108,-308033937,1083190607,-913364942,2005787860,1798438816,-2063288799,-877940051,841979997,1508316148,1395756049,1410694539,643503551,78872130,1576737173,591013748,1978508010,-319729631,-2025695514,552157792,1255712069,1629019599,-606206228,-1094343954,-1315412505,-906402515,-1951989154,720650315,33751639,-445902506,680982143,-661896199,1134037447,8533092,2012534753,-2099070211,1575493679,-1404132161,-705728238,-1086656755,-1387536384,-920045235,-313431867,-1704102015,1798849990,-394211850,78232074,802473453,757458161,-463206469,-1073314473,-137894557,646466998,-1217501378,296782720,968492558,-1171370258,1517735673,-852057117,1252410149,-1652078477,-1387344026,-615158347,1666488547,1502488484,1523807240,1634564427,-463756886,1105603174,-2048154090,1649379801,-730968459,9556338,-1674381187,-708658319,-569822734,171878257,-1835726531,-393562253,965163026,-610854308,126471356,1098081472,2140847923,-2119064612,-823924086,907241241,406838872,1019475288,-646621488,-249948258,-2083568832,1977193203,-1594290512,2128130258,907151422,-281088228,-657403115,1900075684,1902118146,-1608494768,-2144936723,-1861155795,-1122835026,290330509,1924262922,237033990,-535755931,-1624043602,-1563659761,-1069639668,304931686,1602539336,-142156738,1745792597,2089995957,-1807872186,-790945506,-627931277,1484939822,1770485393,849396630,-2042846823,1858124408); -/*FRC*/Random.twister.import_mti(252); void (makeScript(14)); -/*FRC*/count=440; tryItOut("function shapeyConstructor(slkwpf){return slkwpf; }/*tLoopC*/for (let a of /*MARR*/[]) { try{let xbohqc = new shapeyConstructor(a); print('EETT'); neuter(b1, \"change-data\");}catch(e){print('TTEE ' + e); } }function NaN()Math.hypot(23, /*UUV1*/(c.getMonth = Math.min(10, -18)))switch(x) { case x: v1 = o0.t2.BYTES_PER_ELEMENT;break; default: with(Math.round(\u3056 = Proxy.createFunction(({/*TOODEEP*/})(a), (1 for (x in [])), \"\" ))){yield; } }"); -/*FRC*/Random.twister.import_mti(561); void (makeScript(14)); -/*FRC*/count=441; tryItOut("\"use strict\"; v0 = a2.reduce, reduceRight();"); -/*FRC*/Random.twister.import_mta(-1361053736,-530983461,-2048916488,1513371707,-1173356805,-726648656,1651154999,2083649261,1636762771,1285717478,645685898,-1025882418,413326673,-1874933817,501453460,2141278028,-1372265150,1803686230,-1476859159,-1175576575,-1361736815,1039146950,1330559397,1909890559,791527145,1266904766,778178585,2109288269,-68008584,1155934266,1616401752,-1151162809,-1858129817,-341938023,148865561,1737502549,2130367011,-1545539721,-1515865628,-1792129780,-1295955131,944281629,-1147117235,-551248651,-395152689,-545638951,806061197,-2003350424,609392616,-1234538190,1415528625,1483911285,1859684210,-145606171,1764912923,-1750644523,1220382557,1129222507,-664008536,-1036802388,555987679,-126193744,-1807560863,720499670,911540554,-1233403713,213152565,-490936493,1818095831,-67650336,1011665498,-1993985399,340272727,-1839911742,-1593098629,-15259263,-1649467808,-1648284795,-525641104,-1829016341,583799529,-1728249440,735568011,577710306,1955438257,-992388635,-529172219,-2101785337,667717582,124684935,651884473,-960961136,-425024486,339717424,859247861,-1211854877,298207210,-1649493857,-2002556310,14045207,1385261974,1613368350,966334887,-1124606645,201377879,-2054532676,-1303728470,-596671806,-220456670,613364531,-704244263,-1759188447,-1824490258,-1396737444,-1433825088,1918139205,-1711620995,-2012371933,-1421214165,-466363721,154344802,919205705,277126915,-442564726,1433927472,-782394977,-8159655,187317535,1898955913,585424299,-105154660,2101933370,230711018,-1875705968,915101383,1705872718,308029711,1116740236,2069654060,-1136664097,134312593,567875091,251069122,-1173000961,1353251470,-36328689,1944066540,-1297910044,1659139450,-2116935834,1824957828,-727695807,-1891817048,1265490749,1892611782,-729368817,-662839008,-2092384523,220287464,-1010072588,-1982786707,-395445848,-1835888075,-167131360,1319293717,30900063,1787713502,939955140,1202288888,2097044812,-327574456,-1247768226,205787392,-1863698109,2040505917,-2107410986,518522701,-745269493,-801529930,381135830,-1598474932,-1617197883,-1965132715,-2132876952,568283725,-942337462,-2086207065,438342334,1340688779,-2043889225,-784632191,1997615095,764105574,1651070850,-1174923698,132947857,-788153874,1876678269,-2048473597,-686416101,1025213691,-478805659,-828535376,2122997539,-951934493,-798923957,1883812057,-51883195,1009298406,97793824,1295509372,-571293614,-1890006190,-785995900,738246217,410798702,883859504,-1248698659,-1533599177,-1251086331,-987781821,1434454309,2000246185,-2090544139,1923133215,713808436,320610084,2063586683,695755482,1206588963,1416512465,688808501,1933024617,1163454817,-1414472255,-1794464790,1061453961,948277700,-965267347,2057816781,1961482858,304395600,-729745419,1809005744,-45002591,33511366,-535986027,1078520268,1941730298,1094149358,-178806524,-868304531,234623834,-39933231,1843656151,-918894735,-1965276771,1482226296,-1242031480,-1227854106,-508454082,-1384426958,-220277676,1486037115,-1784317148,1588317844,-1150345281,1945858726,-1185638540,231912280,-1938797105,213106251,1208528983,-1593987688,-1293519525,-493644414,1647416643,-526153671,503526875,1269432460,-2043561417,552478026,-1103911978,-1258570319,1458924143,56965708,-290650136,2112626150,-1574605729,452038890,-1502937286,-63125334,860515734,88595700,-678704308,1824581394,1942257144,-1816016774,-1984814033,-1287963264,1604269710,-820967052,-595412600,-1160525331,896030236,1636603663,941463477,-2055227715,1994193564,-1199371650,-1222913804,727072579,1362169226,-2006842090,-190562306,1708751903,-827437112,1613403574,1141692093,-237359029,1886018229,1702612489,-1038879763,1915085729,1138232362,2065949227,-2028346670,561542368,1408115396,-856573913,1923741525,-804925702,668863718,-1040219965,-1224508559,-537269752,-686201820,1816936679,96152917,180636847,1521721109,260590138,-428210234,-78780748,-960946387,-1686702437,734968764,298595833,1807970632,-95785963,-1030890742,528489380,2054393467,911631455,-489636414,-1545020396,-865323826,847722409,718942035,-1990588382,1629351642,190011832,-1395951081,-710699353,1115961977,156792058,-253019495,1460856583,1449660446,1617142158,-1956596953,-1082506574,1652043893,-1369504964,1510951250,-1737085308,-443560575,122475927,-988797469,1648819689,1355514801,-87879666,1854881679,1670846165,1689806247,-2128064839,-1796699968,-1855246357,-753411855,-1298575904,-2042360917,134223184,1774785286,-1068503810,1053169991,1617930176,1632115972,1045045147,-1462308053,1528704262,-1458847233,-1014151634,-448142135,1845278946,1414723041,-1299695785,-314569424,-1715453738,1261491108,717249189,92013487,-2015425481,981908929,-323949221,-586798323,-2052936376,-603720920,-1753170052,1396216063,1549536556,997214870,1923408106,-1918705568,-427510339,2033368172,-1368964093,-302059744,-515004189,-1300386245,1040029827,273830660,-1795878892,1660785626,2139718279,-1257394644,1402495713,-1119413193,-109898140,-653729957,-313189892,-1378585036,210694822,-228220260,1143050676,-1858464308,2059234484,-2007596943,-122505113,554183206,634916440,653906342,-1914163290,-1035989355,-1268688819,-124858026,-1382420487,-103281862,-1228737455,-185102919,1159931799,-1170972917,2118239402,-1316506533,-2127431987,-689306256,-2060337502,-1876864222,-880326675,-1196201073,1325620260,1411342736,-237667563,-780013536,-1435745841,-360994824,-1097659109,390398546,-1157711145,129843112,1970749537,430682382,707511226,543821374,1917586731,307569292,1452680506,-761276377,-2075077279,1747921792,919639000,-1504835114,-682391142,728338658,-2044177836,1560178604,819365604,1707188426,491062181,-2033042658,1748907470,-899050248,-1667869058,49785788,-797377964,607230642,1486915690,1045861209,1409380842,1161763857,-945961650,718962025,-1323191332,278245168,-1937930672,-706696472,-780460061,-749942432,-98064065,1824584453,783388226,1538616465,-1413643869,1151514416,1934517410,42288288,1784283242,-530309741,-1685266775,810905960,-995300754,210243501,-1202581111,-1799183504,2136362769,681349516,-566048248,-227860570,298525280,793449565,-199438038,-248752742,-993010947,-1751514136,-132905883,1482380215,638871381,1544493717,-535108161,945129565,-932198229,1108249647,-154255853,-1506170117,1830511080,1917294037,-715941083,2032191094,-221686582,-1342114322,-1240436191,-498320290,265695753,-1656039166,-306831436,-390795759,1347923026,505376346,-740315878,-770689092,201882820,354347961,2070649672,1014679965,1925195461,1208524688,-2016681971,1536944709,1319022780,2129333526,-613618014,162033996,1372600013,-837814921,1196284139,243661784,-365161165,-1020433003,-741037030,856099368,-520964230,997037887,-2066452713,1368729699,2065086189,-1038655293,-283039471,-49406624,-1925509875,511968830,-1634290306,-267485093,1145024154,-240450867,1831662104,-570580741,-64864877,-2059601249,-1370403362,-191169065,700716196,834372610,-819221036,1445609578,105545934,395746775,1303563230,1469431255,641124912,1796603746,-509313155,-763377029,2031969650,-346230517,1982326504); -/*FRC*/Random.twister.import_mti(250); void (makeScript(14)); -/*FRC*/count=442; tryItOut("i0 + '';function a()(window(true))print(x);"); -/*FRC*/Random.twister.import_mti(328); void (makeScript(14)); -/*FRC*/count=443; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( + Math.min(( + (Math.pow(({y: x, prototype: x = false }), (4277)))), (( - (Math.imul((mathy0(((((y >>> 0) !== (((((y == Number.MIN_VALUE) | 0) == (y | 0)) | 0) >>> 0)) >>> 0) | 0), (( ! y) | 0)) | 0), y) | 0)) | 0))); }); testMathyFunction(mathy1, [Number.MIN_VALUE, 0, -0x080000001, 1, -0, -0x0ffffffff, 0x100000001, Math.PI, 0x080000000, -1/0, -0x07fffffff, 0x100000001, 1/0, 42, -Number.MIN_VALUE, -0x080000000, 0x080000001, -Number.MAX_VALUE, Number.MAX_VALUE, 0/0, 0x100000000, 0x07fffffff, -0x100000000, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(579); void (makeScript(14)); -/*FRC*/count=444; tryItOut("\"use asm\"; i1.next();"); -/*FRC*/Random.twister.import_mti(588); void (makeScript(14)); -/*FRC*/count=445; tryItOut("var d = allocationMarker() % eval(\"v0 = o1[\\\"constructor\\\"];\");e0 + g2.g2.s2;function y(x, x) { \"use strict\"; yield (4277) } print(d);"); -/*FRC*/Random.twister.import_mta(-680639063,-366546217,-1358134844,755273309,-1445635466,225707021,-890440885,-39991433,-1797715548,-25281419,-1196596303,-1637282349,-1143502439,1267583717,-1206932591,765251424,-1720588816,1475538598,1079840151,308381247,-914837345,-308839182,-37752052,-1242684099,1466259381,60512435,1095799492,1154195152,-871084002,-573389428,1710508831,1676314327,-784723952,-852155689,1043707745,-997701100,-143571485,-404786466,420429927,2100234570,1012918965,1573936930,466610009,1088814988,-96773995,862507013,1080702848,-1022140872,1636324397,2071040246,1300451458,375679391,-2022071691,-882354444,523451155,1058437604,214868007,-726084350,-864011089,809591434,-1962949751,668883670,274456188,-1591812178,-59468758,1859468574,694629819,969690564,-1194696494,-838388209,1444736630,1805633659,1177143877,-1651356046,391536394,-1621721328,2105828562,-1708258624,1860570033,-550781959,-1233110521,-882999502,1681970192,-1159344503,-1857036393,-916979101,-1441260681,1102275947,-869674842,1492783908,-1492342871,461011341,2093958464,652030835,1438219956,1670034199,301448900,414177945,-374006224,1284052225,760219050,51775250,-280138828,358694924,-1638695264,1540553961,-1102103755,1566545443,-1813012180,-1940051606,-2036616155,211755622,-1849526176,2141107465,1359167137,-2057289263,1366549662,424469794,980042343,-1747630127,2018239044,-41284517,478081415,823038729,438042035,-1569998653,-1345074446,-1558571461,-501162400,-591813027,-450321356,917855773,-860514906,-825945071,-1971005650,82052904,1579041367,355640474,1498778168,795022897,-1741743690,674272572,1881069450,-1720178467,1663942565,-295039202,-515522793,690579722,654141670,711739479,1396853312,2144017545,886150634,2053764940,1166398795,-905487765,-1246261683,886521121,-189375777,-1530855649,-2030065634,1614875691,-854289999,471196939,-1774895751,-1475480851,-239774122,-882879891,1848148724,673423486,-1995446859,-1808646340,-1653223238,-254179208,2052727203,-368674076,-1040015969,538202187,-862964250,1271361763,-1738817023,-1567848477,-1694261738,-1068537675,1916452840,383042939,173904308,-1334186046,1881340215,850945546,827624254,633512859,-775545669,663854104,1579847680,2031613076,-1779176180,1508684573,497194563,982216642,629718368,2043330790,2027629104,1252483189,-1257787424,277342846,-900699291,-2081819384,-20437501,-1549334239,-2136461833,-1288267650,1096238950,-21795847,-1021998877,1283264626,-2054480001,-589972461,-1911782653,-1408049239,-704741763,-914234007,2032051800,841428267,1817741416,-489488743,-766460790,-1009617724,1356581145,473108723,-1601499240,155591709,-1227833246,1178348916,-1223125374,1383332159,-499321705,43928408,2050119786,-2119998292,1117753421,189227188,1484083512,1053949311,386745669,-380404478,1917186777,-257521310,-854798715,-954981490,1257883988,295394840,-1537426172,-1364600592,-111260233,275955727,-1308706640,2131248731,948089252,-1578967665,-1685550130,1197137227,835283702,-39585679,-2004183660,-1649377433,80916505,552968463,456722062,-2063634079,-1615556490,1194831969,588646089,-2146320910,-1302686471,-1986515373,-769072075,-1685423440,867264985,493473713,-1692449711,2812664,-60614685,-21191217,-720746460,-69812389,1320643705,48612729,1789301411,57582049,-553600005,-1512987935,1819726692,44224541,1336688205,-2128060882,-941108686,-1949479746,839014075,702959874,-1172649272,2031551438,1530342201,657477596,870379928,-337612620,1151127672,-840022199,-685770227,1070414954,1984324087,-1177069230,-848756504,-800455544,-1437111365,-344000702,686774783,469924904,-1163931273,-1645029179,-1922538328,-306694243,-2087652840,807123153,-1137271981,-365301927,473247601,78058696,-1134138402,252780737,1029941105,-843286317,-500855721,2093364818,849568551,-127724738,1668528582,491688528,-1862945554,630392629,2019201044,1648246082,-121195893,-1423451177,-838914384,1871519673,104590834,1303010016,1504152206,2100829186,2127470299,-1104508335,541604403,-1631874029,-219252687,-2078882809,485657942,1766654786,840456716,-1136958773,-882067251,99212026,-146965340,-1504383052,295608039,-131553365,-572336787,-1290071623,402736635,-324649274,-960165500,-1961289920,-112882048,-1941824578,621968968,-852345095,-255684029,-389879698,-1746873694,-2051218195,1191739211,-1412761005,1657037278,518196289,-1387550046,-1094574401,1971181621,1987900601,957197019,389948603,1477832611,-1563314950,-2010512238,937355818,-78151283,1586269302,-1374806164,74198271,-105043521,284721306,-1860228241,-1846123752,-1661458795,1898141616,-1604781249,-1171246210,120017032,-37508141,786700910,11874078,1520983665,-1234087465,-1182530807,-36293395,-223823514,505610403,2037922228,-1044352098,200058125,-864142864,516156525,1492901936,-1822613867,-378883270,-673734205,1801314771,-752546964,-440477022,-1103315848,1894908850,1088284799,-998676979,-1236558878,-791233421,1932358823,2036537543,-551648749,1965355653,-979626880,398294140,-1191963990,-98084435,778950824,-1927932519,-1584723383,321876964,1229140805,-2055574674,-613555643,1784827531,886258424,-1804582915,569041504,-1374170079,202781671,741854340,-564471292,1140357531,-220264695,851599160,958189345,919862384,-1948011898,-1991641553,1074172937,841150971,2103998341,-2016504491,1824968358,1920655856,-1623986134,2144189781,627961146,125313317,921157424,-2035396692,1130614330,153572992,-1305981193,-1467390589,-1145292499,-378844504,-1336117691,-1194055178,1413698758,-2000294552,2059536352,-274784754,1546818727,586051101,-1777713988,-583115291,-1633397171,1789757391,949936765,702142187,324354156,-1663201799,858303110,102943925,-832923955,-215924441,-1583066247,-2144327316,-1210433915,-1248685910,929658692,545815174,602146911,805738888,-433292255,-1656709188,-35095437,608647437,-212796841,50394643,-411712095,812151462,-1299618368,-660285965,-1904959469,771581397,-1198560129,-962236318,-1092596597,-1690769235,-47673719,-500141444,1531016953,-2072273872,-1575880761,2038538272,222554083,1355978942,-489741747,-1372949026,1999154522,-118793466,-2082917945,-1241568731,723867945,-509973937,243025327,-573947653,-1778319523,227601634,888609477,1212813401,1351050007,2074019024,-1837885689,1982004977,-1665900627,-1138862780,-1224316539,-1057617691,913672868,1701043590,264040732,-1828482440,-1574592631,1007030182,-1900536604,-1910407663,1969570937,-1611004989,209506744,290622410,607781664,1799452552,-1768810893,1254816417,-807027708,574595642,-683206087,-1386033293,1517765724,1102780496,-1818428160,1687945877,794509226,1289826901,2126026925,464548026,-983844604,-897164263,-707709754,-1829814823,898662727,864225252,1026975968,-530793975,1554729986,1709299155,1568880110,1720077131,858982559,-1987638629,-2074980865,407535218,-295842573,-2066788367,-1146861579,1194652385,266028664,1282809650,-762035710,-1538412161,-14094335,2048500703,964090539,-966882665,-1108910376,-406968831,1353027926,-1949317905,69550499,1839140882,185285531,2015187312,1263556755,1475430871,631209730,481398119); -/*FRC*/Random.twister.import_mti(125); void (makeScript(14)); -/*FRC*/count=446; tryItOut("mathy2 = (function(x, y) { return Math.sign(( + mathy1(( + mathy0(( + (Math.asinh((Math.max(y, y) >>> 0)) >>> 0)), ( + (Math.fround(( - y)) && x)))), Math.imul(y, Math.sign(Math.round(x)))))); }); testMathyFunction(mathy2, [1, null, /0/, ({valueOf:function(){return 0;}}), (new Number(0)), '\\0', false, objectEmulatingUndefined(), ({valueOf:function(){return '0';}}), 0.1, NaN, '0', [0], (new Boolean(true)), [], ({toString:function(){return '0';}}), (new Boolean(false)), '/0/', 0, (new String('')), '', (new Number(-0)), true, -0, (function(){return 0;}), undefined]); "); -/*FRC*/Random.twister.import_mti(295); void (makeScript(14)); -/*FRC*/count=447; tryItOut("\"use strict\"; /*tLoop*/for (let w of /*MARR*/[]) { m0.has(this.e0); }"); -/*FRC*/Random.twister.import_mti(338); void (makeScript(14)); -/*FRC*/count=448; tryItOut("\"use strict\"; /*MXX2*/g0.g1.RegExp.prototype.test = t0;"); -/*FRC*/Random.twister.import_mti(354); void (makeScript(14)); -/*FRC*/count=449; tryItOut("g0.v2 = g1.a1.reduce, reduceRight(f1, /*MARR*/[x, NaN, x, x, NaN, NaN, NaN, x, NaN, NaN, NaN, x, x, NaN, x, x, NaN, NaN, NaN, x, NaN, x, x, NaN, NaN, x, x, NaN, NaN, x, NaN, x, x, NaN, NaN, NaN, x, x, x, x, NaN, x, NaN, NaN, x, x].some(encodeURI\n, (eval--)) >> (x), a2);"); -/*FRC*/Random.twister.import_mti(584); void (makeScript(14)); -/*FRC*/count=450; tryItOut("L:if((x % 12 != 11)) { if ( '' ) {{}yield; } else {v2 + e2; }}"); -/*FRC*/Random.twister.import_mta(-394795701,-1371838115,-546146453,-2047506860,1313132993,545714159,-1763375916,-365658131,1544002971,-1032236657,738172389,-368611715,-59016525,-542688410,-524339609,-1254297103,-1775287362,1267634034,-1910803613,-993210076,-1223963161,1966300299,260152241,-327551128,-1069613898,-1275766793,-888177582,-237139508,95716117,953654844,1296247062,-1767787408,-1889525242,-2033220848,-432192761,1425770956,-1556544228,-1499306933,1207213154,1480181654,1540152596,1366513651,936346554,484511295,983269744,240698216,-1398818171,1212649600,781695903,1870830340,390131582,1104774048,265709041,-498985042,-1946483953,-1098579284,-2075410784,-211903121,1947696577,1110280991,269964528,-84744137,575484143,1193706804,1102668543,106469508,-1783639859,1550034016,-869672413,375783614,722059703,-690316453,2092156617,-728178769,1885766365,1538252627,175055941,-660862409,808657551,-2127862810,1820879129,-1073208065,754135576,1779656249,349174598,2086193953,1090857884,1918352533,-457644806,-263396117,992645655,1649751559,-1467463813,-1126792218,1978905777,-1772123857,-861604,205811045,-694817612,100483769,-1655271824,76423004,1284664499,-1049417315,130060172,663453244,2006405794,-1104286189,-205781985,-315875959,1724378037,721761391,-691964973,1470452654,116920203,-1789817284,685853596,2003659707,-1847401180,-1689242493,-1750743980,1706995164,1496001704,443674133,-1514141333,-278492922,237030304,-806345797,1819052892,-1883448173,543321517,2098969642,2047977191,-413950896,1005822900,-1153141225,1514916595,-832182447,546524697,2067734913,-1393356392,-1143580158,541822612,-1011141084,-693146176,-405394693,-1990265730,-2055320786,-2119272426,492191717,-291033406,1257220578,1185677174,700337533,-903224549,1600596052,2138929931,341177397,194955189,1963613867,-1941181620,-1338111717,1140969506,808956394,-251116017,-161302577,1922689016,40961283,-1947479044,-1846307907,1531679828,1786833789,321762228,1924642429,2143930323,938230292,-348308800,-250674998,1367984093,-816704125,-1980372098,-568511989,-1649211888,1447452766,-561782729,2073448567,59541339,608335168,-740659428,-847548071,419880139,-2072297531,1615579624,304292064,-589873085,1448262276,-1877001086,-900018672,2076441770,569857583,-1251841304,-1203775257,-1542357353,-186770685,-863192370,126141080,113248357,-373824090,-2069025923,197714982,-36242112,-1618783310,-599218436,-1040929275,-1604320594,640311736,282872023,-1901371384,1154358244,-137179582,-1873325447,2005166263,-133793990,2105285799,-7305660,1287070023,2102966021,420655384,959074811,-818417497,1482564741,1428992496,1134098773,-1922478187,436548525,-200190193,-2093583325,384217552,-355017685,71041610,-637236420,-863658245,861716369,77681091,2133275123,1848720080,-56650347,1216682618,381242700,1794998043,-457942940,-770661836,-459162737,782821974,552360212,491511629,-564458034,1359114692,525888104,-1029412895,2087345514,-19270020,-215825109,-411283498,1903356711,-1667926863,-783570994,1448107603,-905683044,2014694273,-428710192,-1307036981,240131473,1824145446,-1786562698,-561284774,575120988,-678368435,-697969497,-1689159930,-1571331374,750925857,1490280596,-288449870,398291485,-1975223518,-631776900,-1135825538,1649215512,-1798971955,-1933122405,931269453,-1644085163,728858420,1559726967,-1344654534,1400940257,-352298443,-1037454374,1639883693,-1475125688,-990533730,1211627709,329211017,-311676307,1383942835,1054142621,-1643174720,-1611744566,-1898401220,1996016272,1920695090,343787877,-1926877538,132695860,700971226,-28452097,-1083323789,-1247483206,-298027729,1392650487,876334525,1465574808,2028021546,-531617258,25676755,128895197,-2090484833,-636600349,-886370348,2124784939,-270861960,1508402453,-137473042,-2112067700,-2113545988,-477408095,1857892802,-524024022,-353616935,1723485455,-1550588399,1506464520,1310645444,-1717349192,-1828776995,-1115350541,-1149894381,1528996829,-12266726,-1670636574,1827447981,2033447888,-295745689,351531367,571854327,-1155900110,963526827,-99697264,-2035332514,-1515753171,7151078,-395443763,-1953745569,1803093083,-680881040,-1145431678,2046493626,-1920645791,1126763094,-2043167356,-1441944960,-1577638108,-606614694,988800141,1623687656,1765231570,-1521006701,-1858507957,-1138266100,-1521254261,-1152658444,-920772949,1775808090,-767800395,-399991952,-683895768,163942142,581544857,-251422932,559901591,-1256373178,-1383218470,-700803103,1832338232,-1662198710,1254962461,-23220140,586984240,-2102749476,978094065,-1463983034,1333651916,1645868928,-1407772299,303722393,1757114549,-561519031,-565729916,703568375,-730433430,457789804,-1669989666,2061032424,-228899378,-278498362,-308590442,-973586798,-1572592835,-1239249151,1046401272,1282506710,585622297,1660705980,654085670,1381071132,1395145598,-360958764,-1069098690,494353015,1340741850,-1750501569,-152621954,-430046487,1276041498,841669291,-397267525,-552012032,-732041844,-1070420055,636465676,-145297670,-1180050517,-653165268,-952313350,-110677351,-177210379,1692996484,-1682047187,-495982010,-296963194,-1352272012,-1028359288,-1571086807,252270426,369573113,935558325,-130476066,206413420,-971100646,-1778339411,536144622,700259527,2050854648,-1761641998,1298814774,-1630275521,-1402475409,-172429821,1019561860,-498122826,1838270318,-192570723,-403944947,1272069548,1997056593,1852757083,1688784832,526164010,544675782,1511870210,-506801431,1092733878,-1267030099,1432389488,1647929752,-177477402,-1954830362,1990619565,-131605643,283890171,-1490521890,1892353929,1410098735,-608958983,-1011941462,-277627486,-1075432557,671212622,-1334450648,-1943908246,1549381141,-1634505236,-526251583,-1923505384,-1915654395,-1961539003,716035618,885093605,-221417893,-1603349140,-264110853,1097815931,2063013000,1690592936,-922789353,-856562530,-1786620293,-1025978005,1077125251,-460882687,-642216553,-863466741,-1778896773,1066704572,632636481,279354003,1555781099,-959944314,-2143833215,1868532889,1925542211,2048132844,-1766076060,-921035217,-461706137,-1297276993,-1373838676,-1316200705,-655895250,618900326,-639740612,-1641387912,742725006,-106578942,920114951,1393675740,-498521693,167006165,-949461308,-1694963571,1996666143,1602806129,-987411264,2048266034,-2127234383,-107290345,2038160805,-430231484,-1846404594,-1446161347,-2059376130,1545459499,3229250,-129466116,-1493536778,-498762180,1957121183,-1775018539,-880056082,-1301081781,-1101952326,-1008680256,254682160,1959777909,907608563,-543596750,-1784519326,-2018896584,1855876101,1361538706,-1297674770,802026922,-1716026960,-987373960,-1863964685,1456497773,1718059345,430743060,-151702083,581621892,86811226,2089995846,-1787067531,-743401792,219443697,-555597884,1561734052,-433547847,265384322,12115069,-30050392,-1705686969,1859840238,-2090055670,-1200403894,1997084780,1137657940,1599058628,1286456097,-738239538,-1932532519,50280623,-1083286397,-1792353194,-105661545,-942923995,-1110292859,-1995182850,288185932,1690993621,2147024057,196913702,-402753689); -/*FRC*/Random.twister.import_mti(78); void (makeScript(14)); -/*FRC*/count=451; tryItOut("\"use strict\"; for (var v of g2) { try { for (var v of p1) { try { v0 = evaluate(\"this.v1 = t2.BYTES_PER_ELEMENT;\", ({ global: g1.g1, fileName: 'evaluate.js', lineNumber: 42, newContext: [ /x/g ], isRunOnce: (x % 112 != 104), noScriptRval: (x(y))+=yield x, catchTermination: false, saveFrameChain: false })); } catch(e0) { } try { v0 = a2.length; } catch(e1) { } print(uneval(a2)); } } catch(e0) { } try { ; } catch(e1) { } v1 = (this.g2 instanceof e0); }"); -/*FRC*/Random.twister.import_mti(257); void (makeScript(14)); -/*FRC*/count=452; tryItOut("\"use strict\"; switch(((4277) = Math.log1p({})\n)) { default: break; case 4: print(null);break; v0 = a2.length;case 2: case /x/g : ;break; }"); -/*FRC*/Random.twister.import_mti(403); void (makeScript(14)); -/*FRC*/count=453; tryItOut("mathy2 = (function(x, y) { \"use asm\"; return Math.min(((((mathy1(y, ( + (( + y) == ( + y)))) >>> 0) < Math.imul(y, x)) ** Math.hypot(Math.fround((y <= 0x100000000)), y)) | 0), (Math.atan(mathy1(((Math.max((Math.hypot(( + mathy0(y, x)), Math.fround(y)) | 0), Math.fround(0x100000000)) | 0) ** y), ((Math.log10(( + (Math.fround(( - x)) !== y))) === x) | 0))) | 0)); }); testMathyFunction(mathy2, [0x080000000, -0x100000000, Number.MAX_VALUE, -0x080000001, 0, 0x0ffffffff, 0/0, 0x100000001, -Number.MIN_VALUE, -1/0, Math.PI, 0x100000001, 0x07fffffff, Number.MIN_VALUE, 0x080000001, -0x080000000, -Number.MAX_VALUE, 1/0, 42, -0x07fffffff, 1, -0, -0x0ffffffff, 0x100000000]); "); -/*FRC*/Random.twister.import_mta(814265381,-733142950,-1068476938,-999923762,569811822,1141861286,-1911850839,1528588135,-1439795327,-1538519400,1921835432,963815426,1178338372,1025594246,-656434869,-681420031,522165329,1818119328,-1929372844,789978810,644423688,1015832122,-2145487691,1581362851,-1937545998,1197497648,437426266,-47284365,1312470530,1971957749,-517148948,-2013870019,1578171391,-1510209146,-36391975,-411324688,738689043,804558635,506870112,-978042063,1856629798,-809882543,1464506473,950170292,-260403378,921613878,-1120750228,1233106154,-827949285,-19952566,1141232212,90078474,-749805167,851018462,-265849310,-2137938728,1123868737,-334866075,-1374074455,1070126797,1548276506,-1000098108,-443716480,802467853,483960492,-1167965058,336354504,702751804,106518377,308258875,503451933,317308344,-1887332212,57986567,-649160680,1757067360,1386938313,-1966924748,2006784930,-2128457720,-576426656,1227176230,-1938418683,1350218401,1190004646,1638096504,341428536,1732048141,-2095600846,838209842,593071162,-68492593,-1504929146,-216351876,890176662,254962343,-1960386494,-251726941,408481321,-505873766,-39764931,-1757388088,163889721,-809363540,1335628043,-1520909123,1723616791,1838092744,1649398046,1635651392,-1507328822,-2035712557,-1725970548,974807670,-85378075,354415285,-666300022,1815417914,476049545,-2027747660,-413335403,-296925377,-737941674,1869597035,-1374959340,-1952911653,721981817,1235409682,-1151100201,-643883878,1647741950,1657276970,-1281458775,849763651,-160433513,-1908845750,679580179,5966332,1089326200,-1529571469,-201863251,-508978763,-113619396,1337204102,859697310,-628813241,1861890073,-1183678455,-512460758,1682070205,-2025915054,715239534,1254082725,652519903,414261557,-113316821,1443300869,-422454217,582575419,-4254543,-1200854537,-2074355627,-1981168901,138528741,1736016582,626074839,-1744735204,-37918462,1997215479,-1881099242,-655390210,-1616542705,1809318671,345981565,-1515738192,-159490144,2007606357,-2063366844,-2001159187,-1687967091,1671711928,-915171792,96295978,-412209578,1449432330,-1224538408,-1953055984,-322377226,1867722624,-2091140393,-44913044,1770617568,-1792563,-1781938054,1845886744,1956466695,-262740867,-1370396523,-2065208775,-1001190736,-1744734456,757635629,-323564324,1727955226,-1107880220,4062378,1510021693,1479699819,-40421287,1239574220,202301837,829153722,-1252055812,-2083562855,-539307003,-1818645477,-1204032377,-145895004,-1034232650,384763590,1595458049,-1257187485,-157556544,1526907127,-2136220475,-1407696517,-344510485,-1256903673,1792960726,897054571,-286259402,-1724748005,-608994125,1510035872,-132350913,1925053775,-281061776,-554746014,2070718759,1799242202,-1033163740,410613340,1278886719,-1182485385,1531367880,709321025,1263833991,758482606,-1862643352,-1304143737,927596473,1742408170,271853595,174372048,1786978314,1628909797,487102231,-293545000,1068256018,539350346,-1701776712,491610515,-1798993637,-843692705,-1195991636,1989405319,932502727,1269548008,716732750,1685302017,-123282674,777662809,11769381,-1208799529,641337415,-1618629579,1276070195,-1237350184,1224132233,-2107289352,-36688367,-598833560,-1208555135,-1876235888,-383228684,-1020091113,1643020402,762205974,1460267261,988196370,-316865164,-1966033319,-270861340,-1551947348,1041120673,-158223162,-1093192194,2132199664,-79799119,-1685571672,1628315080,610129049,-125982981,-48998880,2062879154,-234892493,-1910128024,-1840041979,239689784,-150310579,1766264632,-707243061,1731217719,1470999202,1943996768,624555666,-146258732,2039216487,368863367,1455767074,1880092029,513963610,860027186,-1156647607,691381909,-2105066856,2036504458,162435859,-220863198,-274816909,-131110128,-1168075938,-1631589046,666009041,747503030,-1971139695,371234721,-1773797537,1792528608,1934250452,-1294261855,-1777577375,839949527,-728187946,-1136513781,-610939729,1133557474,331669924,-772854094,-1707742553,-2146358302,-1835912964,633339319,-126232299,-1046442698,-1494305714,471895056,1597101366,564113157,2017818080,1922094000,1531988654,1391982906,-1003118367,737035204,489734329,-668395858,1815993794,-2143478626,-98463490,447924422,1673945868,-1217464342,-1434094976,-1995357955,-705700413,-270448213,1454045224,1957824616,-2128693185,2067873829,-449405249,-1915569402,-435055872,-1832545905,1227304751,-1151478834,808455396,-1126558781,1078904815,315581894,834626475,-683352072,-291842688,-204798169,-1956299610,-1330746308,-1986929562,-1628385439,-1342771160,12709982,-1038524586,-948788128,-123037648,1426457175,636334952,757655926,210214522,76343828,797335583,-1429567776,1482582117,-898667732,-1296360969,-1686384619,429820875,-509106786,897060653,-1416589889,-1597256271,-1276020847,-427901365,1172536921,-483875986,-2022058981,-1384941690,-244510502,-131982441,-90458167,-884752207,-199062950,-964394789,-367375103,1007056560,-667963167,1354145371,644750668,1713379147,-931526991,-408355334,-1201394204,436635919,-15658355,-609910662,318175287,568693139,1687916292,-875655864,-1004068288,-2118272765,212876109,-504241919,1681751728,-1393327034,656278180,-399022509,158039172,-1462319104,-1170376682,163288250,368780503,1976189571,1336097331,-465507703,-1202055943,-317856281,-1543174350,566225914,1176229278,2099109092,-817080384,-133387175,-1061555048,784174417,-1883675815,1053133722,-2146418841,954707884,2011202057,1027248026,-1551274629,169067985,-501034004,2008601775,-543396076,85573473,1704462009,2026601137,-1202307850,1169740089,-568165072,1507569335,-979539633,-2092536092,712817725,1560389535,-1568144873,-1398396631,912310861,1185070608,1087850754,695451313,1994135562,178493631,1776258949,-1804283020,-684475415,2125997244,2082505114,-406748361,1895999282,278364054,-28758189,1401729830,-1877390654,829495986,-382781968,360307998,1942083271,1150416315,1454104504,-1052587781,627383332,-518161760,-188425713,1785045287,752692610,1114253579,-45171322,383438952,1568562782,1207896772,-90031231,1939897760,2036791017,-837329096,-1610350565,-1467379560,-1179928228,893492356,2067955772,1019886940,1931181141,-879060267,-1142382021,1014271593,-18277844,-1375897016,1024874808,-415875669,1502027545,-1611045134,-1609196296,74027027,-1875091820,386934134,170655358,-888999118,-224813479,1397880715,1695697198,-611604740,-1969592144,704960479,-986134364,469069822,-1877915836,550125460,-204872170,-232676179,-1951367541,-575517589,-1677533513,-520098553,-1849634430,-31227605,-790308842,-1010556546,2094380577,221006590,-517316638,-1773766685,-1439337322,2125620012,-1907722736,-738251284,-763492969,2118556858,-115187537,60986744,-962334260,363275495,-1903840804,-1309581874,-1279306267,-1353972868,-1800764116,-1330761019,607050701,775563531,-1784690348,1563644929,-1568495180,-296260178,177429773,255231070,-1594287083,1424398663,1516818416,-1540548895,964612531,1253227783,-812076623,-238502427,-706649616,1177857166,-2018552718,1447465913,2032782477,2083073741,1215175427,-166374860,563263434,1910671089); -/*FRC*/Random.twister.import_mti(87); void (makeScript(14)); -/*FRC*/count=454; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var ff = foreign.ff;\n var Int8ArrayView = new stdlib.Int8Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n (Int8ArrayView[0]) = ((0xf847e7d7)-((abs((imul((0xd7bc278a), ((((3.8685626227668134e+25)) / ((-536870913.0))) <= ((0x81bab0e1) ? (18014398509481984.0) : (-1023.0))))|0))|0) > (((0x4c867e06) / (0x55c54df4)) ^ (((((0x9bcce99e)) >> ((-0x8000000))) > (imul((0xf9ea56a6), (0x18039cb2))|0))+(i1))))+((((i1))>>>((0xb1f902bf) / (0xffffffff)))));\n (Float32ArrayView[1]) = ((+((((-3.022314549036573e+23)) - ((d0))))));\n d0 = (0.00390625);\n d0 = (-268435457.0);\n d0 = (+/*FFI*/ff(((1.5111572745182865e+23))));\n i1 = (0x65e2f3a5);\n return +((d0));\n }\n return f; })(this, {ff: Float64Array}, new ArrayBuffer(4096)); testMathyFunction(mathy1, [1/0, Number.MIN_VALUE, -0x07fffffff, 0, 0x100000000, 1, 0x100000001, -Number.MAX_VALUE, 0x080000000, 0x080000001, -Number.MIN_VALUE, -0x080000001, 42, Number.MAX_VALUE, -1/0, 0x07fffffff, -0, 0/0, 0x100000001, -0x080000000, Math.PI, -0x0ffffffff, -0x100000000, 0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(450); void (makeScript(14)); -/*FRC*/count=455; tryItOut("mathy4 = (function(x, y) { return ( + mathy2(mathy2(Math.fround((Math.min(Math.imul(x, (-0x100000000 | 0)), Math.asinh(( - (Math.log(Math.fround(x)) | 0)))) >> ( + Math.tanh(Math.pow((-0x080000001 >>> 0), (x >>> 0)))))), (Math.fround(( ~ (y >>> 0))) + (Math.PI >= x))), ((Math.pow(( ! ( + Math.hypot(( + ( + (( + y) << ( + y)))), ( + x)))), (Math.fround(Math.atan2(Math.fround(Math.fround(Math.imul(Math.fround(y), Math.fround(0x100000001)))), Math.fround(x))) | 0)) | 0) >>> Math.fround(( + ( + ( + Math.pow(y, -0x07fffffff)))))))); }); testMathyFunction(mathy4, [0x080000000, 1, -Number.MAX_VALUE, 0, Number.MIN_VALUE, -Number.MIN_VALUE, 42, -0x100000000, -1/0, -0x080000000, 0x100000001, Math.PI, -0x07fffffff, 0x0ffffffff, 0x100000000, 0x100000001, -0x080000001, Number.MAX_VALUE, -0x0ffffffff, 1/0, 0x07fffffff, 0x080000001, 0/0, -0]); "); -/*FRC*/Random.twister.import_mta(-1548268469,-19339878,-842670129,1346019817,-534844795,1501538539,204217180,-652637880,2009838628,1416534434,272550523,663939126,823577052,531495578,-1427638982,484971995,-2070659161,-1644438081,1310033046,-225233510,725491760,848758586,1457760831,-1246706200,-2050060077,1223307892,1152855048,-530280678,247402659,-1040488532,584175446,211516137,-641874830,331375465,-1254533213,621886935,-1292595718,-684413871,-345764068,1362815839,-654986820,987232858,-67517280,-2141623741,1097978388,-511162309,-1088792049,-1397917851,1585600438,110716462,-916343859,1955127895,-656312212,883130460,-1581698195,-1672757681,66983979,-384166225,786152938,659494153,-1964567710,-923021738,-950436765,462911361,1761304764,94704727,-256804713,578686866,2099937573,839696227,684406054,1104878040,-1515254984,-471131188,-1940787095,1894005667,735839051,-193466744,1045734302,-289273385,1551184703,-388810540,-871406059,-2130809176,985819885,-401721488,-584179978,-568870259,1575139320,1949614244,-600392951,-344952395,1010142343,-2069495941,-951440581,-1072817810,1647421418,-10978314,1844304594,1162882262,-419030963,-343272562,1631827398,-1106120360,-1562940368,-1668640802,1013190747,1492674314,-1530145580,-1004518004,-1528550774,816800348,-1160990196,-713127393,-1022347757,-764565610,630602043,121504345,853580264,59311461,-78131618,432022892,-1439784495,1101937458,495325001,-370547641,-976480471,1887283131,111816554,1573283965,1930308638,2106143629,-696168938,-12512310,14918497,938099287,1938684254,1494225109,1165337694,1089951506,1096150173,-986276286,1385927239,1658615923,-2004876128,-1653681018,1311468046,-883778002,-681765912,-42572667,-122838401,-2126443083,1833752987,-858308772,980328504,1377742629,-1375088937,1483234518,-1312350223,-820676006,271036359,795201531,-1904630618,1454278733,1345029192,-2036673858,1423598430,666235648,470103541,-60390469,-166703796,523065166,1634121036,-1721521325,-1500683333,2128526402,-495046747,1284783275,714794162,-1590231478,-411178394,1040914484,1050369493,-1978133145,-1916275569,-268556002,148248535,-102506032,1264205912,-1395174751,176300490,1608024726,1229353285,-1314845120,-1226752965,799437629,2144426331,1757696038,-848984540,-659931480,2134036236,309706147,1564830086,-1956363738,489531988,378180725,1531374532,-1387236866,1808250680,1073142796,1280534938,1086807438,2093091698,-811922578,-1703486507,177076013,-1972480713,-1261695061,222506989,824935853,-708425513,40123629,-2002715031,-785168962,957465174,-853438240,-1302290387,-690456544,2104209136,-88220588,-2052380997,349168643,880738363,-1456826980,961529648,1079254812,991495699,-192926153,302893275,270753742,1402028468,368206970,-1725759681,-382249149,298900928,-222855798,-469109043,591595652,-222454874,-1806703300,-2040708835,349975553,1306028060,1911995405,1239918519,-1724650505,-155514304,2097670879,478777420,-722092754,-999398529,642982897,-624775257,-290471124,896920013,1772540320,1961822891,-844526309,-1847156987,-945116889,1316799024,-668948007,1668902799,1963978483,979833248,-1584577552,495362626,873619542,1975142955,1057087419,1518650216,1665857394,-731985273,2003446353,294384891,1580006867,838352514,946558915,-712468129,-237502759,-940073870,521542990,1411022977,918476440,423024113,574692314,1300749083,-1940083807,203358732,-718797348,1758282079,694653899,242094259,1453754258,1434499022,2034647722,1055072522,458326819,1247719597,-1196629623,857405330,-799867223,-1009196511,-457074106,-863288892,1715901842,-1845916472,1337999253,-1072501084,-1657091354,-1946893226,-555001950,1149358869,-1348221825,-31725894,291279127,-661662336,-563287332,88994664,492044366,-484329225,-309814635,1448804841,706932352,-994987491,1993551835,1443498748,-779107590,151669430,984191491,124785648,51431591,-131990915,-490758303,-201567023,1395180185,174814647,-744466169,-841850656,-366595040,149365580,-699317939,1289598994,-1524870734,587922844,1220176226,1918796518,-87471293,1101760893,-272029746,-756468067,697851900,-1929895176,645585084,-830422954,1767976713,921287155,1095459538,-1205447107,532870692,1396656629,-1825079467,-936612410,-1817478481,950910992,967116770,-1776084847,-1024154037,415687029,-1981494954,1732559068,2089287099,555116197,2120464079,-1510769762,-1402341866,-1760723928,-1757276423,-699786029,-2028071355,-679900857,2072636340,-237520770,-1271443438,1644653907,1146225643,-1196528248,543201827,1221996378,554061155,-1200683784,-986435189,42725466,301309521,1583539487,1007587337,-1485491849,-449077396,-1329555228,738074277,2134872458,-1460649703,799741242,-597471486,740562154,2072613527,1868817896,-2042439734,-1766468463,-1984529838,1536614842,1293431752,506602122,-1520106615,1048439781,-1244459447,1035174844,-1686657993,-287511260,659827883,1898885780,-249021429,1216982829,-296123541,1543736844,2029042078,-1779538058,-244917731,856892275,552607104,462487350,1022812748,1734293264,1511889395,1026979773,1057941615,348963593,-1210721801,-609070925,1475367696,2026046945,1259306254,-614968637,-504389249,2076933078,970854578,-287917996,-659187024,1343368798,-1484119409,180814850,-2020152586,-344139129,-29573968,453930011,1074744130,1090300467,1889315707,729582088,-1098591009,205107632,1905010572,1021381629,2061367230,2082590025,1807561930,-935578902,614838470,172061644,-988516738,-1376260550,2029440577,2078749055,-646627894,-1501330000,-1219681329,1905832105,-666534652,-578290766,-170684097,457876648,-1900810827,671475410,-1193679766,2049043979,430583505,150015340,-1941695543,-76417327,1125305102,-121732748,17374629,1037320048,-1335765665,1042811372,-2027215104,1079889381,1687454629,-912095690,-1394632418,2132907418,-1213738099,938124352,972332003,1624496794,-518061145,-1150611370,1730136014,-1537845428,2135912285,-1894317510,1266965475,315598474,-1360197949,1617349613,443651277,1830134150,1449795484,1644887039,550584220,1968767728,-237430063,9862266,-1688671583,1012542655,-2091646849,-320329275,1875847996,-1963839253,-25583041,-89881368,1812877105,-628922329,1426418954,-1997354882,-10067022,-876316734,-713037622,1954085288,-1320489914,-1604356346,-1374607162,-899618367,-795739446,-1780156313,5770327,953514455,57001732,489214351,1691493758,132595198,-2114156987,-1160121109,1956015790,-1670023931,16967956,1791790537,1049944315,-485971410,619804135,359532939,620071765,-1168145211,1116413302,901327181,-1516237589,-1950079841,-276477821,-792239054,2085132259,2000149148,1980778455,937646324,1971042798,-1825120843,-1315161239,-1863685741,2003875349,1749620032,-1347823074,-173934064,-910026568,832143854,-163666978,384656236,-227339093,-560111719,-1742695220,488823567,-1025275540,1681547376,703370442,1317974325,1247938248,-982522780,-1850548320,2057254186,1248896804,-140917228,-459161949,-1036887917,456627097,1300568123,-33698608,-195542850,-711084310,1966468934,1927667678,-594162675,1290274080,-1891763960,852375222,-441716660,813529970); -/*FRC*/Random.twister.import_mti(174); void (makeScript(14)); -/*FRC*/count=456; tryItOut("mathy0 = (function(x, y) { return (( + (Math.acosh((Math.hypot((Math.cosh((( + ( ~ ( + x))) >>> 0)) >>> 0), (Math.expm1(Math.fround(Math.sqrt((Number.MAX_VALUE >>> 0)))) >>> 0)) >>> 0)) >>> 0)) >>> 0); }); testMathyFunction(mathy0, [-0x100000000, 0x0ffffffff, -Number.MAX_VALUE, -Number.MIN_VALUE, 0x100000001, 0, -0x080000000, Number.MIN_VALUE, 0x100000001, -0x0ffffffff, 42, 0x080000001, -0x080000001, Number.MAX_VALUE, 0x07fffffff, 1/0, 0x080000000, 1, 0x100000000, 0/0, -1/0, -0, -0x07fffffff, Math.PI]); "); -/*FRC*/Random.twister.import_mti(289); void (makeScript(14)); -/*FRC*/count=457; tryItOut("/*iii*/t0 = t2.subarray(17, (void version(180)));/*hhh*/function lyhaff( \"\" , y, a, \u3056, NaN, ReferenceError = x, NaN, [, ], x = ({ for each (x in (let (nlygzc) \"\" )) for (z of []) for (c of window) for (x in 11), set acos z (z, x, ...window) { yield x } }), [, b], x = (Math.cosh(null >>= 1)), x, x, this.e, x, eval, z, x, NaN, y = this, y, x, y = z, eval, b, \u3056, x, b, x = /x/g , c, eval, x = new RegExp(\"\\\\2([^]{3,})|(?:(?=(\\\\u0007)\\\\w?)){1,}\", \"m\"), d = \"\\u742A\", e, y, x = -2, x, e, yield, x, x, x, y, x = function ([y]) { }, eval, eval, z, a, \u3056, x = false, let, x, w, x = this, (function ([y]) { })(), w, z, eval, x = -14, b, x, w, y, c, NaN, d, x, x, w, x, x, d, x = window, this.x, x, z, d, x, x, NaN, b, c, b, w, z){v1 = o0.a0.length;}"); -/*FRC*/Random.twister.import_mta(1324836032,842641474,2093171328,-1510229284,412210083,70140314,-2143592715,-1394127453,-1112499905,680975230,-1127909650,-933120898,1945985054,-2090676963,1280181470,-2122691392,-1559783172,1933017120,338733802,1074137191,1101022654,-1735480249,-1701928603,1172527183,372529915,375918213,-310962294,1612806549,798673141,934153749,-948618495,-2097373274,-2036619784,1332519488,1846869390,-1016330381,638795248,-2008621760,-663429687,-351547474,1961720011,-445988526,-1288679535,48746439,-1539631556,790443798,-801415448,-1285583165,-741064544,-1216865528,-51957908,1827005425,-1181547628,-1205620769,2015699107,1934740801,-1448142649,-1108995484,1372842575,-1594307200,-11172660,1088245939,1245081365,1815323671,1426405065,1663753269,535563176,1727776882,1935683195,496403780,1776196580,-756026728,-270387742,868428133,872820953,-187582399,-574559862,-1318894690,359815023,326944450,-175078682,1874756950,648423516,1924115164,-604462803,1283079852,-64451495,393957779,1794742264,-472655747,1527952371,-1016278398,1542642407,913446689,-1125762953,-1396381882,-1539633263,-173382777,2021608396,2097171802,1869131681,1913261504,719337058,911870310,1630314983,-1112038588,-1169199314,-968581974,-1048901126,214444573,-838763598,383663490,-1655562731,808749423,-1084637900,2144230798,572525729,-1704318974,-1937232821,918744818,-298386881,1177165454,-1013000643,1819164704,1229782209,257018111,320728746,-1803299778,-688638302,-1460540134,-1844812997,-1475230167,786495782,727225319,-633113765,1500380414,1677439788,635347262,-171367531,346240428,-526575386,-534359483,623964687,-144640689,299106009,242717357,229946909,-1104284734,648534189,-558950485,-112868302,1187608448,-111161399,2037606837,-1703423764,-128486000,1420946359,1374293491,-1376280693,-1277201257,-1668345073,491659458,-1141567024,-1075606661,1645407420,-942441352,-1469735920,735833937,756856253,-502038470,125323155,1901461276,1901688812,-1523929240,70001828,-1706070901,-441031978,-598480315,-41064659,1953047919,819370749,-837511136,-1806004140,-56024681,1776235891,-892491477,-1037552927,-1765638404,-2063140930,569576850,2133932160,959502793,1263664106,-134396352,-1607936014,-496344314,1723252660,-26906506,177897926,-292483589,-1607572621,-578899001,1241561661,-1126920264,-1453361014,412119320,-333899754,-700339799,356002728,1840935994,-602186981,494616066,1363446664,1500773397,203747689,1306744043,-843348477,-1506531509,-1721339269,-1859370384,-2053972694,1461605013,1038331143,-1676675744,155856561,-807915302,-408503011,1271278564,2011100967,-993512574,1697200370,1351977022,-1379291661,468022891,-1514554844,1848445000,-488623037,903933895,-1903061529,1135070347,794879991,552817786,-1597672655,-1707266866,-19328754,1637749299,1395508389,-1344449402,622991587,705284179,1109645105,-2114861297,1111366917,1319267442,-837790443,-214275847,1922383560,-213298236,-994244106,64934265,-788207610,1028061613,1977100158,1755467097,-1655965198,-615466700,1291326279,-671294813,-1440743967,1293977161,2082535180,-1525555061,723860017,-1318871001,320322352,1398947186,1440148787,491439728,2090080948,12753107,-274641814,1219233116,-2071276108,2113641874,-400521040,-1080602627,1047674282,1140294546,-779316296,-341441865,-492862330,-1531684679,2120412314,-1875037270,421442765,-810060685,-811505965,1614880089,1525212899,1505477901,883404903,967593086,415900944,1260128188,87653244,1084580381,-603876337,-1919362329,-658168584,1257896528,681910471,829974625,-236227029,2022241988,-861527120,-1346314668,1889872267,-400656638,-690680647,-978108635,-444269611,235715403,-788991456,-897322486,-1106736454,-942565010,546552967,-1260582540,139141699,-790338623,-1310323575,382949766,1998181406,-1655108236,-1587831562,84387275,820716021,-431150907,951455513,-1832719499,-1795645597,745420381,-955501310,-1078517888,-392350235,1317841158,273259638,1502813269,1809837887,-689929055,744825515,882599501,-646548057,-1448990207,131189838,931387142,-322155416,878031981,-1080620835,-878809143,-922980844,1987917249,-995535554,-1017155818,1970750166,1446411348,814008898,591311163,-748531909,-888961482,1296026712,662050445,-2130558088,-1417975809,-78930658,1305715265,-1301210882,803165285,881393219,-1806795963,1924779958,1918208725,-1351007961,-1398487731,1203767876,-1337701073,-1943641121,634290112,-161856800,-1829890864,1002840630,-1102189883,-2140097324,-263525611,1995241528,-664129998,296722077,710964448,-18708811,-1173842054,827164955,-1662403996,-541633443,1866662894,-2087237744,-117512160,-1726885435,2112649272,-1577227643,1602494624,1321008554,-762370164,470366285,1913339960,-1838868747,927682088,-40047703,934144138,-849248281,66788721,-201521634,927052142,-530643850,-429833047,118629817,-917922700,-785429549,-1665202224,999652226,261666813,-543028469,382931595,-654492321,1936431442,219568248,1270777267,-1577332569,701730162,-484332390,360313288,1662574009,-403554662,-932471719,34367331,-981258857,-75996784,656639575,-1870116835,1469192317,1190854229,-864893220,-160127460,95092033,1610946085,1430440661,68474606,-774932024,-1600296432,-483876228,-1664922632,-1235210181,-748133745,-1745397162,-509757071,-1602354163,-1732065585,958546588,-2142789563,792750258,-1659288285,968045235,-1266135792,-1632358136,-2082343542,-894961189,682586281,-1742799466,-844172529,-1539239510,-1109830235,-1089829958,-1351317960,104475033,385425033,782237595,-722616089,687008715,2124160608,147215524,1431049390,-719653733,527963269,-361169372,955100330,919681936,1945578768,1482742421,-349450789,-1173047711,-1697408817,-1622257356,-1279024133,-1134673189,-1229794616,1501344933,-1605620824,1928532678,169670983,-555354854,-348860142,-1001016873,-1088459533,-1863341002,-1271180026,143126534,-535686753,1126431430,-965961872,-1882700136,1565495970,-1034464555,1640288685,-1628081104,-830076729,-1416412326,-948603521,-68889742,2079811202,693137509,2099975749,619562571,574198150,1994425391,1596825266,455499815,340610969,681507849,28678716,-1521385449,-487242288,-1509159361,-80561650,-238185160,1157820494,-253026596,1866176623,1726801037,-1557652241,234444137,508042664,53468497,411479530,1367485882,294786592,769239483,852720641,556685934,-161074970,-102900153,675572325,-662877573,577353694,1407892491,1820889176,1094627440,1442799059,1553499201,361532537,-158963911,-1551902741,-113572576,1941987200,342527656,1932440999,-2143048841,827266241,782745582,1610104247,344001126,508658021,1592080535,282430106,1203071359,1360661360,-88825552,1078002460,1962065014,-1178970689,-416608801,1797094096,-694852728,-1587955434,-797803698,79407337,45524912,-2043775114,251403427,-1479010540,685598405,-1660680384,-1952714016,-323653008,939270580,-87842749,1592441255,1414880841,-457589172,1289707122,-427876697,186022342,190117334,244678343,166281083,531671538,952817665,-1728059414,962366051,-858158541,1641911038,1919435018,-1324392445,-1630797486,-1546174631,1993616637); -/*FRC*/Random.twister.import_mti(412); void (makeScript(14)); -/*FRC*/count=458; tryItOut("\"use strict\"; mathy3 = (function(x, y) { \"use strict\"; return (Math.tanh(Math.max(((x ** (( + (Math.fround(Math.trunc(x)) >>> 0)) >>> 0)) >>> 0), (( + Math.cos(( + 0x07fffffff))) | 0))) >= Math.atanh(Math.expm1(Math.fround(Math.max(( + (( + Math.imul(x, Math.fround(y))) & ( + x))), y))))); }); "); -/*FRC*/Random.twister.import_mti(588); void (makeScript(14)); -/*FRC*/count=459; tryItOut("m1.get(v1);"); -/*FRC*/Random.twister.import_mti(601); void (makeScript(14)); -/*FRC*/count=460; tryItOut("selectforgc(o2);"); -/*FRC*/Random.twister.import_mti(610); void (makeScript(14)); -/*FRC*/count=461; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(619); void (makeScript(14)); -/*FRC*/count=462; tryItOut("g2.v0 = evalcx(\"function f2(m0) { yield ++\\u3056 != /($)/yim } \", g2);"); -/*FRC*/Random.twister.import_mta(863808705,-1065146379,-1460319724,-468856811,-1627481431,1185041400,-1606937120,1145551824,-1397389921,-2022479182,433889799,-670836086,-952240399,681312197,-768474644,1300952115,194019368,-1736621184,-1908344124,-582170250,-1562243466,422485898,-134086263,1643092924,-1518532877,-689664077,259606716,-1982336740,1268132769,1805477516,-574535677,2027465086,1747904221,-391612980,-1368546835,-1946901593,2001270770,-131824061,1044079204,1116068893,459730395,598817677,-855464204,1896175271,-1334008559,-529124563,-1028976419,-1402401337,-1597740012,1498419681,2146568506,1264294327,-2082236059,694740562,1456795747,-2005548547,1056317207,-1532784851,342405166,-1369064530,1509651094,1597711657,869411116,99228544,2079702090,-1744740478,-757047992,13018095,-1777761171,231542638,-1456449271,1488024131,1576034638,-1162307072,401089007,-262912563,-615492539,420897459,554767304,-1562985243,-1166954076,-1223555708,-2071035701,201221107,-917923474,-1591287958,-1001650529,467874919,2081201158,-596442387,1596618529,-63469304,-679628831,1382111359,1226467110,560843059,-617599562,1257152118,1299647421,-153338470,-768685253,-1352356528,-2114020228,919646488,-1390906791,-512101044,-711943011,968962136,2132840057,1442033439,1098114950,1229212367,707143034,-604410035,-1057471948,418847417,-1190248185,-674539780,-1150064922,-315607290,-1518757833,923770201,729330354,2147064938,-10189555,-1753513115,-993533224,-1058449397,-1827830798,736711216,-1225312951,2116029686,-242225303,-1866150087,1318023161,1193106873,1304612397,-1194704590,1578947919,416313466,-391248959,1858161103,1078824872,2012037516,1694614407,1847557865,1511262639,984629845,-647715995,441321108,-1068718289,-1470234030,-67561043,236205351,1689065250,-1563268930,-1603297274,-1574250847,-231442795,-161389770,-1195302777,-467183953,-289595641,-1452000219,25168354,131625475,-1603414225,-826779023,1693883854,-2043930793,757494775,-836051761,-1310031777,-1154672782,-403744486,1722924995,-2079330214,1737336894,-764201303,-1346092465,2029154727,1588347468,-116547215,-1291709711,-1396969776,-1079394096,444281870,-1204299025,280528341,1265246262,1009420676,-1031540694,1357109744,-2038364047,-798193515,-1557584748,998838482,1207691091,678314324,-941384251,1349516840,-724202748,-2089926500,-550220123,-1594012932,32550335,149668936,343321715,1653105748,1404871454,40026483,-824353949,-1096337645,-1806811715,-1318296467,-1237562203,-710800760,-311340573,-798374190,2073421046,1046352806,-433785694,2087697338,1822607236,-1189078721,1225576712,322386191,-1852086387,-488161740,-631122323,-867757046,286456975,-1839710190,-1293629198,860962804,80555873,1150004622,-2019764181,551062544,1233466837,954357240,1532496043,9724500,1962674351,1908079174,1054779465,-895327435,1769714392,-1792881796,1075534542,-132134684,1567275182,-239748726,-1317416215,1765963199,853324997,1379520366,-1080046344,-1606455011,1085051614,788773317,-1803439534,648885716,2045577995,-1785931047,-1051731176,-260898413,-681466892,-601241482,-216867470,-91941315,2095483094,1640977377,-1960784571,-2049436802,321366610,1475703513,1102578784,-768449279,-1271709872,1295967484,1418828473,-158855372,182868815,1650497548,1263644411,-1885439385,1899838282,-1277127507,1117645679,-826767613,80005639,-1876965801,124237809,-1105876727,1758562267,-454741731,491559591,-312205286,-559216222,-1502692289,462238567,-707115501,-640882181,-1605606558,-1776719600,2098356553,-703388712,-764479316,164929655,-1974802660,1756664484,-580738040,-501278905,1275288397,-1655261156,-394512020,-1387773534,132556357,1018651348,-1938836219,1634082358,1143746614,-2076940053,688280257,-2076809951,-323831520,251914949,505293935,1074080487,2109283803,-1768646570,-271223818,-2059578650,-498445726,-27414948,-2258014,-2078256939,-651325526,-112010732,348570812,-478259019,1194104185,1414032170,-1332936065,-1286100771,1492191731,161406839,-2055770154,-465398984,-54747245,1255608065,1520576186,-2026961665,-618089592,-1519671866,-389334823,808714744,-2098754611,-1779312541,1928520966,1826342246,649259570,930705222,-1814986984,1180610670,-1874356168,1477940355,188779220,651323780,-44107243,1702945339,-1565884983,665962272,-984538198,-1067700454,-727114631,1124100305,997297967,-2103050634,-1372176238,-367458450,1837677255,-1013996252,587219177,758118309,-1534698282,-2081685001,-1387242297,-1285681636,794458520,1102599048,-420104362,-618943693,-494056088,-1255546273,-1826869977,-1956675470,-1825663118,1883567117,-1252406720,289162219,286277172,-2050731118,468900910,133394068,-785220013,-251366342,829313564,-564928604,-1706720969,2075640361,-2035523380,-1975447637,-476938757,-1216462626,280810611,-2087549272,443993677,1763531519,-584986426,-532477266,1225864735,-519523631,1667180905,-638495646,-1984160211,228934633,1242652709,901248454,223704895,361456780,2017812758,241231988,-1465819531,-344113960,123037095,871503678,-2073975929,371452176,-1481170192,1280383646,1848823755,1852517532,-1865588437,451982630,-354848729,-861950137,1548827479,1515641044,395875466,1660802880,-536417595,-1600197446,-1819210502,-905936176,-1976605851,-1110227660,1601395059,1348528336,1113082218,2024444639,-318029050,-1917051049,1391790995,2085203294,-793881304,1866621345,-857990427,-985314350,1857564199,1054925506,2133742220,922300167,-1541096877,-1725057609,-1077636202,-1438695375,-1701928285,-1372522409,-423390731,-1286090324,-1599567010,-595689348,216112212,1833874471,2145557998,727749527,-1104693243,-1792475322,-1353076330,-1599035957,-1657205427,-350512037,-291883652,1762727395,1603242816,1049099730,-1467485074,778599291,1271508071,1124041420,1216267062,-1572628396,1369313716,-1421087646,674624300,1649155697,554431024,229271296,-866034199,706170391,290194552,-874675612,-667122854,-764319282,1638637783,-1990417329,1784873814,675078114,-292720648,-1318120687,-1768279193,-1322479440,-402747193,-1869198941,-1554990365,734934226,-1139799910,1587811817,-925884104,36999594,-1181768119,-376839803,1161639115,1596536439,151940457,32151496,432943180,392958920,-1618589120,887460305,-2637765,-804669950,1138572618,-1382521636,-1272193924,1402711918,1849823458,-592220607,-2005451234,29836316,-1929417167,1666637090,-1889344486,243859800,2067149460,-1738587609,1539186107,1524852244,-737572599,1387773112,-937826704,-549268582,936857315,1852407125,1788620023,-1232254977,734593951,1001461737,766002410,-1162328789,331891409,-1042781033,-936254008,-1843089375,1387674940,-151250272,-587759764,-321385938,-1891253838,1643821032,-1914265474,-711890879,1343520886,-1197550090,270811747,-1737501898,425031694,234380278,1742058445,-68664641,-1660169019,-1860383776,1526771512,-717867942,893280782,809040296,1795350939,-412646215,1374387736,-1632685200,1681215460,584380533,-266176726,153964553,-456502961,67206942,-1349370995,1747107884,1573759640,-1090752629,586654556,569081865,-1886129662,1760995625,205159386,1605677287,2022470413,1736095624,-1803703398,711877147,1464550654,329960344); -/*FRC*/Random.twister.import_mti(155); void (makeScript(14)); -/*FRC*/count=463; tryItOut("\"use strict\"; Object.freeze(this.o1.a2);"); -/*FRC*/Random.twister.import_mti(168); void (makeScript(14)); -/*FRC*/count=464; tryItOut("testMathyFunction(mathy2, [1/0, -0x100000000, 42, 0/0, 0x100000000, 0, 0x100000001, 0x07fffffff, -0x0ffffffff, -0x07fffffff, Number.MAX_VALUE, Number.MIN_VALUE, -1/0, 1, 0x100000001, -0x080000000, 0x080000001, -0x080000001, -0, 0x0ffffffff, -Number.MIN_VALUE, 0x080000000, -Number.MAX_VALUE, Math.PI]); "); -/*FRC*/Random.twister.import_mti(200); void (makeScript(14)); -/*FRC*/count=465; tryItOut("g0.v0 = t1.length;"); -/*FRC*/Random.twister.import_mti(216); void (makeScript(14)); -/*FRC*/count=466; tryItOut("a1.sort((function(j) { f2(j); }), t0, o0.e0, g0.h2);"); -/*FRC*/Random.twister.import_mti(253); void (makeScript(14)); -/*FRC*/count=467; tryItOut("/*infloop*/for(//h\n{x: {e: d, x, x, window, 19: {x: x, x, x, x\n: \u3056}, z, x: [], w: {window: z, x: {}, x: x, e: {x: {x: [eval], c: (Math.trunc(22))[\"1\"], NaN: {y, x: y, x: \u3056, eval: x, y}, \u3056: w, c, x: x}, b: [, [, NaN, {(x.then( /x/g , /\\1/)).__proto__, x: a, w: x}, []], , , [, {d: [], e}]], eval, x, \u3056, NaN, x: {x: x, e: {x: {}, z: x, window, x: []}, x, eval: {b: y, e: [[], {}, a], x, x: {NaN, window: {\u3056: []}}}}}, x: [], x: {c: x, NaN}, c: [{}, eval, [[, , {x, z}], \"\\u4E30\"(-13), , , ], ], e: {x: [--x[\"every\"], , [], x, , ], \u3056, window, NaN, d: b}}}, x, NaN: [, window, , {NaN: [d, e, {}, , , , [, , , x]], window: b, \u3056: (4277).z, \u3056: {x, window, d: {x: [{NaN: [], x: [window, {\u3056}, ], x: x}, x, [{w, x: y, e}, c, {x: x.__proto__}], {y, x, x, d: [{z: []}, ]}], NaN: {w, c: {z: x, NaN}}, z, x: window, x, y: {y: x, x: z}}}, x, window: {NaN, x: b, w, x: b, x: yield}}\u000c, ], this: {w: e, x: [], x, a, \u3056: x, x: [, , , , , , , ], b: \u3056, new RegExp(\"\\\\3\", \"ym\"), d: []}, NaN: [{x, ((d = function(id) { return id } | (NaN !== w)))(timeout(1800)): x, d: c, \u3056, window: {w, x: c, x: [, {}, , , [[[], ]], ], x: {x}, d: x}, d, e, y}, , {}, {b: {y: {x, {x: {x: [{x}]}, x: [, , c], y: {window: {\u3056: [], x: [], w: {NaN, x}}, x: x, w, x}}: a, b: ((function sum_indexing(sqheis, dqhuly) { ; return sqheis.length == dqhuly ? 0 : sqheis[dqhuly] + sum_indexing(sqheis, dqhuly + 1); })(/*MARR*/[Infinity, \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", Infinity, 0x3FFFFFFF, 0x3FFFFFFF, 0x3FFFFFFF, \"\\u2D25\", Infinity, 0x3FFFFFFF, 0x3FFFFFFF, \"\\u2D25\", \"\\u2D25\", 0x3FFFFFFF, \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\", \"\\u2D25\"], 0)).__proto__, eval, x: y}, eval, e, x: x, a: {x: NaN, x}, c: d, y: [, [, x, ], , e]}, x: x, w: {}, x: [[{a: x, d: [, , x, b], x: {w, window: []}, window}, Float32Array.length, , z, , []]], y: x, z: [[, ], , {}, {x: y, x: [, ], x: [{x: of, x}, , [, ], ]}, a, arguments[\"getInt16\"], eval]}, {e: {w, z: {}, window, NaN, y: {}, NaN: [x]}}, [{e: {}, x: [, x], NaN: {w, a: x, eval, x: c, window: {x, x, z: [], c: {a: {a, x: [, x], eval: [, {}]}}, x: [[], [], , ]}}, x: c, b: x, x: b\u0009, this: [{e: a}\u000c, , {}]}, , {}, arguments.callee.arguments, , , , {x, x: [, [], {y: []}, , [, ]], x, e}], , {x, y, x: z, z, \u3056: c}], w: e, NaN: [, [RegExp.$1, x, ]], x, \u3056} = this.__defineSetter__(\"x\", /*wrap1*/(function(){ \"use strict\"; Array.prototype.sort.call(a0, (function() { for (var j=0;j<35;++j) { f0(j%2==1); } }), p1, (let (x = 0x80000000) -24));return decodeURI})()); (( + Math.fround((Math.fround(x) ? (x || (x & 0x080000000)) : Math.hypot(x, Math.log10((0x0ffffffff >>> 0)))))) << (Math.sqrt(( + (0x0ffffffff % ( + x)))) >>> 0)); (4277)) print(w);function x(c, x) { \"\" ; } a0.shift();"); -/*FRC*/Random.twister.import_mta(-1984028945,-649029673,-1705511094,-215819603,-1059940313,-1416268394,-1415872872,-125323836,1464373140,-1699920907,-2054314147,955234900,280326792,45028227,-200228438,-1829516360,-1755086976,1755899432,-834693028,-1180313764,609147914,442035849,1795397930,710379162,281949645,1875891702,1554298206,1555218186,-282636983,-618618596,1596360807,442855020,1628930022,-105263372,347158441,1812889614,229877522,1074312058,-274226490,396015535,-1595386061,-676242882,-1770984374,2144161903,-877584933,1088702585,1455260526,-1165863965,-347328500,-28757580,324266230,1001975617,138448496,-912934040,470999516,1165883642,-1469871764,770107351,1795307605,-1831877169,1545983658,801094887,-1932374256,2001041907,1784468336,289981994,275065265,1384679849,1074225689,-1723422767,1097973710,2012240084,2101231236,-730070422,-38171663,-729244868,-354521240,2144298685,567452659,986348375,-2091574751,-865155437,402334394,-445034757,339258521,-1542708683,1892958825,-772429450,-399544409,-755943753,2071825386,485191012,1919466038,-1167872141,-542632858,93011424,1188768393,1557041477,871951082,-1654261848,-1984815078,-197950370,448308754,-1009631081,1314574087,-821571540,-50887828,893600788,2038921508,1754790674,1985125395,578746875,-898551874,478124826,986553950,-1507713017,492398818,504216175,-494599909,-1288542690,1507365206,-1958623543,1886266825,-678867635,1049343029,-1355329716,-1075671192,1157750185,1747339999,-1877343218,866665579,-1640210254,-1535148967,416649984,352798402,-1343180090,-1178774352,1689097202,1489317834,1517999290,105208634,-1785952157,-1256187685,-1736772628,1704888060,-1022846850,91842160,1760285410,396041497,1712673316,1788931552,-969921550,1964611024,-2050595175,1948224538,-1050704068,-1570554274,1760192401,-272132983,1660605013,-2003951016,-812902870,-780390246,-360143632,1841709530,-1053516821,-1660628393,1573253380,-1402687354,-550217753,1065915078,-58419584,-1698751874,397090957,1784566357,-1761603400,2118460834,1098903064,1268743316,1634735456,-172195181,-1329596042,-866727171,1574882132,-1305922467,1214655111,1421815023,-524933001,-2086638936,853601063,-288559054,-1183272128,1969786164,1956063953,1568697525,-534823226,-818323594,1792114190,214621703,120688093,-2109165568,740468573,648762865,-1345516169,1253846123,954514756,-815016966,-403193328,1307108648,1627737280,827050688,-2100672517,109392269,1972104340,971938496,93088573,1796037365,307173927,-83551072,-1600826572,-1732233916,1573904401,1171168306,388762067,-1071748967,-1915338609,-233335702,325553236,-713887671,-1752710624,-794397819,-266729615,-1071864418,-455383354,622657404,1449772483,-1753855906,-1985699048,156027886,490553051,1851622618,-539447474,796982371,1887069816,-1174947872,7284781,862473108,-2066852197,359258548,-1552449543,1451254930,-245755841,-2116914678,65556119,-2127065619,-2088642707,314690725,-571134431,-1301228694,1894718054,-923456007,-566493071,-1375344519,-1090050872,1528036018,485620609,1949746748,-167496655,-604875617,-540600831,-288033732,566478218,-1535539432,35284162,-957414632,-1944757541,854849778,988187137,-1300034393,-1643439767,370839110,1915620189,1880188893,401203153,-573508198,1924804563,-115471934,1761331989,-553721510,1201535743,-579248134,-990472453,20497074,922441885,-1951337872,-434446734,-1888714300,1504781381,1419026460,1721519903,-646793286,824407766,1980430063,663557041,442737065,283886617,-1159981242,693736121,1479942483,-1936869485,377118130,792387991,-1681173477,-1410243122,-29184311,-310414095,-1746007924,-1257130915,1189163303,840260297,1634031577,-668899162,-1139483497,418847792,1326094779,391297301,1022173604,-1890802493,432377278,-547672654,-256373810,155809529,1776617529,-2019520105,27810685,1314088812,1593707848,1037778700,752275016,903600658,960747513,1961808889,-1433968448,1892086770,1767448322,-127191939,-1869155829,326397828,-9822251,954972848,572792285,1401230244,1444128434,-1088791633,-1144607821,1826519069,-312255757,-1925065785,802587408,-612842480,1817730810,-644244606,397197514,1457031037,1750551469,-1945007723,-1042539509,699131875,-1359424766,-1274426987,510408157,1213183851,-1287121646,1649662912,557844850,756093641,-1663457859,-1759966649,-364502346,1379545737,989115679,-1050283467,1536901199,-2033377051,-1893547634,1731662392,-1901842662,-143488257,-1740719112,-2103647585,1698278384,1931286894,-702428592,1438171963,-5197644,-137825066,300244576,109512412,1800820479,-1985750175,1666333185,308827035,-1533061386,-1504456072,-375318369,2097752955,-2001065788,-897526022,415129081,678430648,1440059098,-599008126,-2132751973,-1903831251,2071181151,-629261242,-939575853,716638426,-332072189,-2054852120,-1644486022,594423486,1199290292,644495344,-1866920004,-933178134,1000463671,-1996879409,1390444164,-962136289,-1628988659,381185150,1720162444,1235534851,-1737133754,1907050999,-1011259117,859531712,-676071153,-1831128860,-231890886,155083185,1627346216,445557831,1365272996,-139202487,369237559,-1580395278,-126987544,-1575304763,1342620580,-619878507,1620735523,-804888255,1636226283,-1663859064,-1549793756,-1695587537,178254574,364089900,1842928285,1489028492,410410078,-508955788,1936146980,-1062099206,-174707090,1840338725,-2018990071,-1591263423,33171731,1527217594,-509856746,1351043758,-662185824,1358797492,1161625727,-1257344038,-98456077,-433631264,1741576876,935032495,-787526235,1790508848,-1212471197,-576880245,1724144514,-919076179,-958828865,1462961314,954776604,814870623,1542964895,-1364737844,2128985402,1418448063,1404794056,929539762,-1992357811,-46458094,1133454082,847333538,-634781909,-1717333547,2001063822,-1518565309,735671185,1408972962,831750118,-145542479,-1067052014,1809545262,516709161,-377647127,1534628516,-398035374,-1422807073,1582210348,-1402390889,-1274512163,-1678936276,1794781676,360383038,1114441448,103127872,-636066348,742759826,151770620,427385865,1432633568,1175256016,-1736043038,1705353853,-1717993034,1601757234,1874681781,-1901637775,-561628295,1211596769,-2048287080,-907927880,-1488121943,846273418,-849390791,-1708022315,1627388998,1819189481,-392673570,182767422,769165644,1389171587,1945980986,553397326,-90202020,1149577592,-1293360539,375334493,-1805046252,-1786445128,1667781105,1494644638,-1672566326,-743752331,-335162690,487279079,14891947,-1905201765,-1564246855,-212727223,-1148398797,621919642,-1964813432,1056626207,2056321635,1733219039,-953169557,-529096281,1578737243,521339864,499619790,916981219,-1395617693,-1103536818,402235179,1286526676,1872965530,1617642674,528569801,1824799368,-1455704028,-356125690,-979343454,-1519876791,1271927016,160711679,2053851416,1275152940,1485153959,136422653,351205558,1387683362,-1463271032,1802915774,-2065997765,-774055172,-1997675832,-1478219465,1262129892,-2084101078,-1289021452,-1564935766,-575116390,-232780974,877868660,1558918000,2034797176,1809449472,-1729659303,-1200640798,1610594285,1631611686,-1915794339,-1008366203,-1942822456); -/*FRC*/Random.twister.import_mti(119); void (makeScript(14)); -/*FRC*/count=468; tryItOut("\"use strict\"; m1.delete(b2);"); -/*FRC*/Random.twister.import_mti(132); void (makeScript(14)); -/*FRC*/count=469; tryItOut("\"use strict\"; /*MXX3*/g2.Float32Array.prototype = g2.Float32Array.prototype;"); -/*FRC*/Random.twister.import_mti(145); void (makeScript(14)); -/*FRC*/count=470; tryItOut("testMathyFunction(mathy3, [-0x0ffffffff, -0x080000000, -0x100000000, 1, 0x0ffffffff, 1/0, 0x080000001, -0x07fffffff, -1/0, 0x080000000, 0x100000000, -0x080000001, 0x07fffffff, Number.MAX_VALUE, -Number.MIN_VALUE, -0, 0, -Number.MAX_VALUE, 0x100000001, Number.MIN_VALUE, 42, Math.PI, 0/0, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(177); void (makeScript(14)); -/*FRC*/count=471; tryItOut("mathy3 = (function(x, y) { return (((( + ( + Math.hypot(( - Math.fround(( + y))), x))) >>> 0) ^ ((Math.exp(Math.fround(Math.trunc(x))) | 0) | 0)) | 0); }); testMathyFunction(mathy3, [0x100000001, Number.MIN_VALUE, 1, 0/0, 0x07fffffff, -0, 0, -Number.MAX_VALUE, 0x080000000, -1/0, 0x0ffffffff, -0x100000000, -0x080000000, -0x080000001, 1/0, -0x0ffffffff, -Number.MIN_VALUE, 42, 0x100000000, Number.MAX_VALUE, -0x07fffffff, 0x100000001, 0x080000001, Math.PI]); "); -/*FRC*/Random.twister.import_mti(307); void (makeScript(14)); -/*FRC*/count=472; tryItOut("\"use strict\"; s0 = new String;"); -/*FRC*/Random.twister.import_mti(317); void (makeScript(14)); -/*FRC*/count=473; tryItOut("testMathyFunction(mathy5, [0x100000001, -0x0ffffffff, 0x080000001, Number.MIN_VALUE, Number.MAX_VALUE, -Number.MAX_VALUE, -0x080000000, 42, 0x100000000, -0x080000001, 0x080000000, 0x0ffffffff, 1, 0x100000001, 0/0, Math.PI, -1/0, -0x100000000, 0x07fffffff, 0, -Number.MIN_VALUE, -0x07fffffff, 1/0, -0]); "); -/*FRC*/Random.twister.import_mti(349); void (makeScript(14)); -/*FRC*/count=474; tryItOut("\"use strict\"; \"use asm\"; /*bLoop*/for (var kokppi = 0; kokppi < 28; ++kokppi) { if (kokppi % 41 == 38) { a1[ \"\" ] = [,,]; } else { v1 = evaluate(\"new RegExp(\\\"\\\\\\\\d$\\\", \\\"i\\\");\", ({ global: g2, fileName: null, lineNumber: 42, newContext: e, isRunOnce: (x % 4 == 0), noScriptRval: this, catchTermination: false, saveFrameChain: false, element: g1.o1, sourceMapURL: s0 })); } } "); -/*FRC*/Random.twister.import_mti(622); void (makeScript(14)); -/*FRC*/count=475; tryItOut("\"use strict\"; mathy2 = (function(x, y) { \"use strict\"; return Math.fround((Math.fround(((Math.acos(Math.pow(y, Math.asin((((Math.min(x, 0x080000000) | 0) ** (( + Math.max(y, Math.fround(42))) | 0)) | 0)))) >>> 0) !== Math.cbrt(Math.fround((Math.log10((y | 0)) | 0))))) / Math.tan(Math.hypot(mathy1((0x080000001 | 0), y), (Math.max((x >>> 0), (Math.asin(x) | 0)) | 0))))); }); testMathyFunction(mathy2, [0x07fffffff, 0x100000000, 0x0ffffffff, 0/0, 0x080000000, 0x100000001, 0x100000001, -0x07fffffff, 42, -Number.MIN_VALUE, -0x0ffffffff, 0, Math.PI, -1/0, -Number.MAX_VALUE, 0x080000001, 1/0, -0, Number.MAX_VALUE, Number.MIN_VALUE, -0x080000000, -0x100000000, 1, -0x080000001]); "); -/*FRC*/Random.twister.import_mta(-215482904,645770586,1765410536,-1707882803,1201858896,-246224454,-636483430,-2113577131,-380159394,1400130485,-1762194480,283436221,-1339081050,1876815375,-1791870626,-883853733,-86924231,1550613361,-2035492888,-1780982826,-1097609407,-642435178,-1867599195,211060803,344572997,1764355355,137586805,1042422215,-1510964124,-851826213,-2050441479,1651229047,-92663707,1303883782,549399673,1616792325,1772133822,-1348034523,-1553030401,1254486613,1491322079,-1668575446,1949640716,1325243912,-263916206,1268880543,-1631111831,616984994,-2003343213,1605102156,622449549,-61991472,-2033181583,504345418,-105669656,1957409429,536715893,-854624226,213701808,-843911823,339217795,217503078,-149316086,1492562725,1348773529,-1991477159,1373964159,-898874377,1427785165,-1792085623,1447656271,-1187530933,-1961279884,-433169356,826486820,-1796013150,-1234679505,1365653894,-728754240,-576766544,1244766284,-1310966610,1301502018,-1260733377,-1128933526,812506190,1111632779,1520709487,770550287,461020791,-951208929,-1231964,-754293820,1463596591,1918135983,-510467324,432552113,1729742927,1513699179,392324293,1300128925,-1000121532,1171950470,-1112869794,352493748,-1538113891,-1023265825,1267102492,-1858636342,-1980199609,-607325056,346810425,-1184039108,-587146435,-507324174,1348530008,2138300929,-214785290,-1310767779,-941758604,-1025061225,1297519788,113535652,1570774505,2103547466,1250575754,-1176151837,-1421996304,-769955885,-325513352,102098341,-766612742,420383072,1284462769,-1887548287,964364325,-338737073,1931114455,1115698664,-1920605460,1296617367,-1951415469,-908794002,-1154654778,-2033630314,1892526258,-114640312,150248326,1408587092,1497290265,-880782553,1885865430,-1238168865,683857294,1397920676,1909306209,400696139,-361868317,1520253840,303576945,-206625535,-46458123,371983241,804607859,635196640,69330049,-2098779588,188289444,-160325497,-776690440,-1669253127,-1106409610,1766978474,-1992940433,-2124194860,1104692430,1513033071,1115778197,-141048869,1134579761,105276128,-533670279,1932063332,-1229705454,1374369279,225344486,-1096139825,226419584,-1344541994,1460485291,1128074345,376470546,175676819,1561162371,-173016895,-1024185614,1052291055,-1762026461,-520405207,1294275116,-1751366186,-2105753894,-1711223086,-1360987960,-1262870742,1287890499,-148864717,-1222072216,-1200667480,-1086206889,-749272634,1502415923,-1980833346,-1102072630,1182199515,1588467447,-1535374408,1634319648,688006114,666507426,1862811278,-1702305029,-849280037,-666374219,1378671813,-1158789200,-981391390,1083585811,1841187914,-1738436619,2067166634,665631647,-2092999975,-2002880732,809045355,-487842191,396761657,-766415321,-2022520049,-2029912885,1077000616,1543174064,-211008153,-433422391,-2058133576,-1625755102,246923332,-198761573,1359362229,-68255508,-1389285245,1415642432,-1311409521,-1851777444,-420855122,1972949737,2059931156,-588196020,438062148,1191720518,-1147076383,-290101094,1071503713,69820647,953609530,-1720335903,-389064558,-1408082353,1784722677,56578578,505183437,-495438114,179087102,-1112492827,-71013360,-772893462,-607117421,-1521425151,709044667,-841131182,-1106246085,1488165081,-430445150,823515320,760930088,808702033,549959716,994540846,-164587322,-643485193,-1551546233,284739520,188310728,1413316167,-1184813874,313263407,1627313012,2080582465,326180891,-1482660439,-1094719649,-1823540340,507329189,575744292,-1071944875,-906093469,272319539,-14548934,781342648,112096923,978287659,676908472,1704292009,-1536439248,-1257036344,1713024585,-654642042,1026923603,2146381343,2058385655,2066481788,-1252609989,-1377211108,-1488599885,-172481510,1146070969,-1983084933,27042370,-338768483,1032228449,1611071485,-1191668617,1049282185,450801342,1823457450,-1102548114,-1760226623,-844655708,239469872,1019585567,2122252830,-192845678,671323809,1272933760,1443858455,1620872327,-1905798986,1683714466,287525364,-1897999211,1952617531,1449674003,-871376766,2098118117,1146716705,2107800181,858871364,1375642669,-915214,1864541725,1615041904,-995611420,-1960838332,1189895494,-333839422,-1150907598,1079550402,1513399830,1218680646,535448927,100808364,-1620227809,31737170,-376783119,-2022399427,-997116075,-1950686235,-1096596868,-2139247539,843178127,-1854366645,-1483242660,-341601332,1349731212,-1711940865,1573858333,-257309999,-1078953731,629005157,1689310833,377215940,248295880,-134924861,-1119915418,1893559247,-1098707017,-755554410,807578713,601152025,-2114953611,420134269,-1825771345,317828594,-1208536577,-1525855753,-204810311,652229452,-753795901,-200747611,1505899785,-1735278253,-2003574291,-752607057,1511739583,541195683,1428996320,39237830,-332414665,1421001958,1149570222,213542364,-703454437,-775868150,920922161,-221645226,606298477,-800020972,-18056556,942110090,1283175307,-440611081,-2013670548,-249989987,-82167408,1458945100,12271870,-421758793,1636191646,283153473,-252169821,1675113677,1980318799,-891162613,-1932771478,-1011288613,-83125210,928813787,322902010,1384985286,-1520279031,1825172640,-1150724341,199608271,743112008,1325397591,1013862232,1277071037,1048153309,762671753,752584520,-1526852126,1006773060,-768022581,1846917931,-234242726,-38151112,1758586758,-621978253,-1839081265,714727729,-878067436,-1247984205,-145008779,586427412,-1671827775,-359659435,-513165055,1227445925,661871280,-1036888103,326440404,1466258595,12889457,-132306182,725002070,1769890181,-90404913,1103431521,-2060653877,598312815,-2056706025,-1943683414,-1910103673,-1749187057,526321871,1136463505,418152779,-2088024012,-1662665897,1802188671,-1527770956,1339564890,70773983,-1603078060,786829823,-425254740,-467613949,-1495680568,-99438242,-2040207445,1157129391,-1154203037,-1652185222,1299968374,258229767,983629814,-1232961695,750347027,-738965135,1188028254,557868721,-1277383215,865764955,1676418772,1359485355,1163128530,-1557819561,722199940,-1174610948,1027295053,772940757,734071476,-986522440,2139567146,1374953279,-1328987937,-253371400,-950242556,715916020,23355893,1858468667,-332683251,-641878262,216700595,1296720496,-791621964,1325161368,1046373859,-1548028771,495408130,-1631884114,-439995843,2030073751,-343010617,-2116000849,971632236,934418795,717520545,1346636880,302120262,351926875,-1670189361,-934634959,1083705069,1423883950,-1871264990,-190010724,-1629571099,810529236,2055948396,1320076356,-1871031353,-992198295,617089286,-557570616,-133125640,2027596647,2079004119,1485541108,1314089644,-227654389,457518214,-1353317057,359021870,1714369504,-808998229,-102056922,1445038132,-801771274,-25362105,607940247,665252281,-561085626,-577097502,1728119450,1856189008,-1432342829,-1692773363,-1793444540,683633219,-34693579,-221280798,1609840535,-480997733,-86658280,1250363401,1474079229,-1868886434,-33421146,-1157632231,1051686465,-521805994,132560679,-555984023,-2095825471,277928549,-238298750,1246498229,-130295071,-950730672,584082583,-2010702382,-124092589,-1419454110); -/*FRC*/Random.twister.import_mti(248); void (makeScript(14)); -/*FRC*/count=476; tryItOut("a2.splice(NaN, 12);function window(w = (4277), y = let ([] = ({} = /* Comment */\"\u03a0\"), e, a, w = length, \u3056, sthxpz, x, vvlsal, b) Uint32Array(x, new RegExp(\"\\\\B+\", \"im\")))/*FARR*/[--x, x].map(XPCSafeJSObjectWrapper, x)/*tLoop*/for (let w of /*MARR*/[new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), x, null, new String('q'), new String('q'), x, new String('q'), new String('q'), x, null, null, null, x, null, x, x, null, x, null, new String('q'), new String('q'), x, x, x, new String('q'), null, new String('q'), new String('q'), x, x, new String('q'), new String('q'), null, x, null, null, x, x, x, new String('q'), x, x, new String('q'), new String('q'), x, null, new String('q'), new String('q'), x, null, x, x, null, x, new String('q'), new String('q'), new String('q'), x, x, x, x, null, new String('q'), x, x, null, new String('q'), new String('q'), new String('q'), null, x, x, new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), null, new String('q'), null, null, new String('q'), new String('q'), null, x, null, null, new String('q'), null, new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), new String('q'), x, new String('q'), x, x, x, x, x, x, x, x, x, x, new String('q'), x]) { s0 += 'x'; }"); -/*FRC*/Random.twister.import_mta(1662810868,390715757,367070668,2061224405,-1417313166,2147068351,1878863498,-777595688,58213052,765181604,40582722,-333493514,-1222348079,-1844912644,1949559327,927220332,-1390027304,588748375,532737291,-1005064263,-2131404036,-2048053909,-1681393584,-1611253983,2072929609,1288713711,-1325558771,-533613468,-608778913,196889015,382806768,-1676489369,715156360,1827399700,786318897,-976668094,1975638365,-1639293460,-53409525,1403333127,1875085835,1794768967,-679018841,1543130724,-1965998369,1552603744,-558954565,1593569613,-1797363456,-1126642750,756555026,-1997698015,-362431572,1343234388,1479818910,-1659656662,181223751,144808975,-2084599489,-1626720093,939714158,385465740,-643273211,365229681,-1582518345,599970987,-768923121,25964387,1847989283,-1694635266,1602106889,-672315403,1502531371,-1828169466,-1075526558,895992637,1246179543,-1240341215,-2074110323,-2072942297,1372014834,1102771857,1096268057,1294990945,257145476,-1192425365,1279757714,-1530346866,-36987295,1077079327,1043570355,-324412631,-784372569,625717151,-1125331160,1540001024,1027199735,-1421139035,-788231124,-1487207462,-1581587050,-32964972,1975405904,-294567698,-990278453,-54639121,-978206246,645770010,995350224,-1983464125,1971649803,-425406784,1911306986,874055894,-754698801,993322661,1961009165,-830253962,1498287180,1324984565,1242704197,-795444189,-250125963,535866772,-1768321260,-1235182859,913512876,-1592976739,857696622,2032651610,36491513,-176447668,-2106303542,-1331317430,-294371719,1776142400,-1627209954,1890846155,-1240747607,256445676,1535320690,1313239363,1559416598,765549296,-1806861228,-450303442,1217452912,1689307354,1699157351,-231423276,1181378312,564904237,1239826117,-1223547524,1143495506,-335948051,1202818025,-324075929,-1444068085,-1754449100,-850312444,-2107982517,-1661737440,102223915,124431440,-919007441,84184639,-152117710,-122908322,602177983,-1042779042,1156007937,-417797500,236939694,-258575968,1891858177,-1669329005,2080863482,13119807,2079955479,-755249612,555743174,1426685221,59993899,502403445,688629767,1406749934,1908590219,1028228129,1098681037,1561966141,1275137760,1240664281,-2015157720,1188881600,416965742,1341017644,-1904988719,137476934,-1586623432,-635172000,-669363667,2144278055,-1481404000,229041692,-43202607,-1195320657,-1495133876,-1943052547,1047996702,1700083864,-84576135,-438815364,-996363789,1455056114,366523131,-1368881671,-1751831504,55432756,-967850299,-570373097,126086099,847136597,-758203862,-1789903350,-1705317214,1378317108,1438866641,-2106479032,1752839961,-268098363,856857025,1001820717,-1360455456,2044226367,-777781377,-1648641688,-656741606,915866700,-683889147,-1074420188,-728926093,-581317289,-276008444,1822158662,1486556457,1728892587,1904146041,-1206227683,1415041230,-171554431,-93558575,67123905,-1014450854,66416079,-422395307,633610769,1541344466,-1080633788,-1367844057,464608345,-398976418,1591032558,1772793792,200805827,-2001296062,-1666927105,-2080677714,1800776014,1098936350,1791382795,-813208160,-614846259,-1555222093,906804024,1614730774,2004355485,-516867824,-1375526520,744818798,-1522442777,1797245007,-979809674,476065491,-1984903944,-1814276819,-2102819276,52079117,-484207192,291666585,1572378001,-1540350509,-1865098409,-828654488,-774726357,1582923161,1039454081,-808577317,1563805182,-1613132709,-626056000,1777527279,609179567,-213764702,1273387983,1430946891,-1142920902,109994798,-605717245,-981944365,1493407933,-1533952753,-1428623757,382607222,1322067317,-776543198,-2019519511,-1731413661,1224300429,-324440679,-1494726819,-367494746,-1855922298,1206239482,1348747430,1290436558,-409644293,223687559,969083259,-592084367,1795537418,45375312,-237956432,-203021937,962171565,-372117649,-283806575,849870739,1640934416,1322499045,240762015,504188480,517689445,-957492007,1741005546,1585308695,1020530724,1115917759,1324459702,305044407,-1379123262,-1331797163,1374647512,-1923651485,114595704,713540172,-925880429,1037423744,467827869,-1303015054,-1829657800,-1409563685,179037923,-1458585857,755449938,-702029496,575889383,2144528849,-658774221,1609815104,-1155576160,-725655811,1222968713,-1843250511,-1611603025,-1181559734,-1385864214,-1621360143,-511475275,-665665473,-455482158,838439604,-2084538581,-767306167,457300150,145822908,1371387797,115809897,688547500,-1748104254,24217807,-1516730770,-1750682084,-463303929,1890052406,-1848180075,-486709428,1228581261,-585639964,848626917,-1635671770,-1175541927,-231710943,1460542391,-1662341127,1404578969,-881208151,838276153,-722051683,-1068946093,-556650750,-311905795,-586239865,-621739296,1532274427,1013110850,-295445879,926995534,1849919671,1336818231,904037242,775715909,-626999127,1988801799,1164783032,538568780,-568839822,-2043170395,1731148599,-736509565,-464553962,-333255539,-2132681959,-742783863,-1497386701,642372217,1320423377,-198327705,1535234167,222076869,1720754955,-356373464,1405005134,1455181771,-367992285,-1041551482,-808432328,-146385548,-1942328824,1142599941,1450353008,1235905842,-1937796602,-330286912,1274313597,1031166409,-296861272,2142711134,629103205,701077724,-253228734,-909334523,1067553333,-1530959931,-1509554938,1124071311,1665314915,1875770012,415840308,-124965411,743071746,-1908476893,165747491,-265778924,-1656864116,1369833794,-1446261949,-427825959,1115550690,1304080427,1899147220,-1700820056,-623093976,1885303226,-160920369,466625916,1469212744,-2144364061,551840054,-982966726,800616597,-706499105,1516295834,1241743687,992827193,-30713548,1078318084,-1111738241,591021760,-920504169,-996073442,-1390412408,1879550524,-1190940227,-765286074,1159459542,2131350666,-666368696,-1322972347,1055770878,-1728921795,-948824251,-178147946,471012840,508220918,1634343623,-566854705,-313916938,-950537604,427579600,1316837983,286748377,1873769203,-1938263157,-311959118,-709905782,-899907943,-967751362,-1368917354,-1437665638,-425545480,1769944467,713629278,169006714,-2015202402,-1550348033,-1495888303,206936519,1026243882,78816049,-1177322577,571735792,248192932,-1593466159,-1331372487,797407809,1787752375,775785932,-1529097305,-1640142383,-1408341701,-1242772558,-534395278,1047385075,1369556145,-1156401903,1356795390,1126677538,196387315,1655004994,1691870775,-999002262,278224070,-981849146,983342594,463010142,-1733013304,1451123829,591981174,965489223,1473793509,-1667026303,203022484,330695360,1049352515,-1416346662,-1227644541,-2121664328,-1749559805,-237967742,-1057620448,-2005457608,1614077147,-70797725,-2093043446,1729569422,-649767576,-1158980797,1305342887,-1044553353,601126652,37749233,-1192560327,1372839594,1216573689,1424179333,-1955180903,-242068478,434658051,-283444660,-347736000,1761757371,288367576,-804275610,1662465322,1399154068,-803256560,-1680285567,-175188505,1168080084,-500090398,-1044761606,-1093170729,-1992353366,-676871292,300911213,1809890759,-1536895648,-969800122,1606825096,-529463826,-1780324800,-999985628,-1821156810); -/*FRC*/Random.twister.import_mti(352); void (makeScript(14)); -/*FRC*/count=477; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(361); void (makeScript(14)); -/*FRC*/count=478; tryItOut("\"use strict\"; s0 += 'x';"); -/*FRC*/Random.twister.import_mti(370); void (makeScript(14)); -/*FRC*/count=479; tryItOut("\"use strict\"; var ioycpy = new ArrayBuffer(6); var ioycpy_0 = new Int16Array(ioycpy); ioycpy_0[0] = -4; var ioycpy_1 = new Uint16Array(ioycpy); ioycpy_1[0] = 16; var ioycpy_2 = new Uint8Array(ioycpy); print(ioycpy_2[0]); ioycpy_2[0] = 7; var ioycpy_3 = new Uint8Array(ioycpy); var ioycpy_4 = new Float32Array(ioycpy); ioycpy_4[0] = 23; var ioycpy_5 = new Uint8ClampedArray(ioycpy); print(ioycpy_5[0]); var ioycpy_6 = new Int16Array(ioycpy); print(ioycpy_6[0]); { void 0; void relazifyFunctions(this); }x = v0;v0 = g1.eval(\"(void schedulegc(g1));\");s1 = '';"); -/*FRC*/Random.twister.import_mti(474); void (makeScript(14)); -/*FRC*/count=480; tryItOut("o2.v0 = this.b1.byteLength;"); -/*FRC*/Random.twister.import_mti(490); void (makeScript(14)); -/*FRC*/count=481; tryItOut("for (var p in i1) { try { for (var p in e2) { try { Array.prototype.push.call(a0, e1, this.b0, b1); } catch(e0) { } a0.splice(NaN, 12); } } catch(e0) { } v1 = a1.length; }"); -/*FRC*/Random.twister.import_mti(574); void (makeScript(14)); -/*FRC*/count=482; tryItOut("s0 += s0;"); -/*FRC*/Random.twister.import_mti(586); void (makeScript(14)); -/*FRC*/count=483; tryItOut("v1 = evaluate(\"t0[({valueOf: function() { a1[({/*toXFun*/toSource: function() { return '' ; } })] = p1;return 18; }})];\", ({ global: g0, fileName: 'evaluate.js', lineNumber: 42, newContext: false, isRunOnce: true, noScriptRval: false, catchTermination: true, saveFrameChain: false }));"); -/*FRC*/Random.twister.import_mta(-610863644,-672706302,-1762635568,-1958517985,1595589465,-976304028,2145219035,-581529945,1165358027,-900969592,133738818,376230954,-1991425107,1036217042,-154496821,-878944661,309491988,-843292511,-2023645375,-1374062601,-323030492,597718175,-1721921160,-785579775,-1856186771,1540799088,110260021,-1312882744,-53511096,-714038262,288778185,847187699,-496224887,1781066705,-825855572,1661568872,-593548673,1105167721,-694945883,-530744821,1482191515,-381018117,1623308535,-84898629,-2071510760,-438198708,-1597438030,-528492893,-1618523545,-1722006607,1782064059,-116869154,739418543,2053684799,1193524775,1343324794,1896367640,-752677059,-335809209,-1303432545,1959523224,-1868309064,-98348229,2033643078,19231375,-1883457555,2104606891,136167368,1333854960,-1779098696,-583800391,-318312578,-251068066,1941439027,1300604258,-1245039721,1915276123,1176058133,-1969879794,-1054314694,1604988750,-69296207,-232390716,1989898902,534888258,-1124101663,1648038141,293991200,-490609876,-779937842,796116136,-780963910,247757098,835589889,-1207506081,-571175106,-961634230,1403982127,-1383671591,278439631,-1028110539,1508204648,-31811360,1070945956,1246261152,316623569,-365075408,-808762834,-655352664,-1664935216,-350592472,-908913104,618744981,678958341,65066184,1444433231,995278803,1928188880,-551649694,1647828914,1544130360,651489817,1451494938,1160879573,-751856772,882310693,100027930,-1259842299,-381922265,1380099642,-51607912,-279062669,-233034689,143662875,496095667,621298129,-348101568,99556245,-466413943,-1961418904,-1300360775,324164257,308416073,-1275738747,1351060455,1786999324,-1822570820,454026325,379394859,163306547,-1478435451,421559322,-2051769489,-837139310,421040155,452309849,-1858986977,-1671440661,-257677173,913812604,-1694346664,1171084003,-1197078648,1734520863,2044745762,-887117050,-32684833,1187698349,-748549794,-1202165017,-1392152406,281321268,2122548880,1871934773,2110405086,-1689167998,1840625853,-1478004477,257965582,-1615968615,-788135077,607901774,1762779592,1459897925,100286948,1238923948,1512990201,76727237,-559818953,1858158249,-1662264269,-264452332,-1035145117,1085932700,237843398,-1625432529,-807307107,211529050,1146373785,-429634775,77057483,-16293681,-54316388,-1382642866,-826500212,-732365232,-2088848704,-1140315509,207548699,-491398308,1068166242,-2023567527,-1093036814,-1989407845,1381947992,820739060,-1024094286,-1778308962,-1413424688,-1645712621,2125303894,1174770995,1990289821,-1428612373,-657518575,-1384720450,546980993,-626122048,986905169,939160173,1271045920,-607569264,-759544812,-1707477861,1821360583,195571583,-1507770875,1555247972,-1527106569,-692612929,-829594060,24037055,-1134925975,1681886903,2029606634,770656459,263109652,1773892725,1233886456,985007463,890471862,1247050706,2048057565,-564106995,467611197,925228447,-123788701,251464939,-62155841,918301562,1580525310,-1582502693,1474089096,1080794177,1166333896,29957509,-1583297956,770876988,-913692684,-861265235,-583845269,1881336225,760198730,-70297042,-798966360,1026817654,-1446715591,1027191679,-1355140119,-1480933501,-1762661689,1710168860,-2027346484,1976575076,63280500,-1431357859,1791678278,1163540812,1092243499,1308076332,-232370064,-800608261,-386831911,-1936703775,-29773349,-931932689,723165194,-1280767162,2078448012,-1671523522,-1639332325,-961888662,-1939134138,-1898752413,-172700689,-1754910317,-2106630483,-347070192,6976647,128746309,-35971890,-746227548,-140992934,-598396264,962494769,941169159,82705312,-771235919,2117036457,-994514341,1153575890,-256473956,-1106874557,-291733479,1977233096,121946491,-818245677,1196520279,-289992305,-1952954907,1049590028,1923147512,-232461623,798563769,1646986566,913446463,1553487302,-604163040,2008185629,-1161485819,662614565,-1786393563,-328853508,1219522214,-992243452,-1049332112,-629233230,2071026787,-1228206307,1080168955,-2072634208,-1143461616,-1422525749,1184630182,-1582582749,1415377713,212356218,1746208777,-159965238,-1151009373,-999993815,-1043557859,-1467535759,-1111243671,788327217,739379621,771152735,120279807,2091626625,267233561,1084414500,-1375880708,-90513509,1168967604,1204194928,1076865758,-551719916,1311354240,-335434534,-136804090,-1763275320,-2114970799,-354621278,-594350012,-1744347979,1098007454,-1408461929,-1886953202,1311397634,1628861232,1974399784,842203948,539385434,-2040614844,-685119688,-1575175432,1171099390,-2087806120,-796480103,1908626947,-1435724218,-1646614895,1776216710,-87531618,1463015312,-1277926267,1583184986,1651875146,-585630152,108590665,-1195856284,-227169928,614530012,-1366522277,446935012,1889045164,895571086,851617975,1323526864,-658656802,-827553183,-1166679219,2102408307,-313004479,479680892,1800953376,1014440740,-301408113,1275277521,-1897623913,1116687831,398771935,613240011,1227479686,1982100328,-1307818452,1101761200,-882723706,418656356,345601448,-1139991153,998345983,-2101482290,1861570172,-151732387,-869728436,-431275607,951100754,-1124041362,1570257189,-1911804814,-554641134,-614544418,-597112352,1562230523,234216069,1210180802,-1066040627,-819071234,-355581771,1742147654,-1437091838,-2130760638,-182305658,-1530627972,206822169,-514757135,-1024853458,-1541349234,-360753304,-98024327,-1526633564,368774209,1093770578,23622868,-999896698,-796833836,1412267079,-176057576,1116452663,-751850279,1991312809,1326081346,1520686299,1125457493,-679303269,-1348249772,239522405,-2095553594,-1727506403,-208471439,682933381,-1111462407,624873759,317131430,-1448555018,1266454093,-1934747381,-843365067,1327441477,-1388272406,-1469880138,-1195731337,-1057649766,1605650964,-1866540628,-1952531161,1467342778,983170915,307808909,-1889427687,2037728191,-458834775,1710210493,-320371472,-150348525,995273175,-1852987058,-1661369453,1455911977,487799122,1357297789,1464294645,1571377363,-646000125,-2017192417,-9029727,-914736304,-1819425497,-12947142,1667529845,-521124672,-1838196050,-2120325278,596859312,-905346192,-661717127,-481394085,1221892579,1920570194,-1923297824,1044057827,-1315734608,-977853341,483185230,-765415763,-744084291,-811109666,648052907,1896475393,-1268062784,97046001,-1048930211,2128797012,-1009739520,-2032625808,-1442079756,-1570924246,1139951961,1497868557,228796940,711043877,349111260,30808775,-701413233,2078823289,1223860448,920307486,273376729,1585611217,-538360007,-2099814066,-928024816,1546909132,1857781134,1957326595,10939815,1453672318,-1020241327,-884013605,44537658,1220110993,-256403233,1295455487,463378766,-623528578,2132402397,998967077,2015007353,-110291697,636187726,-1417599118,1157359344,-1866476548,-1269677470,-535288046,1998881560,-1788983430,-1703885606,-1892146245,-1473998026,1331601308,1747482605,-1365838207,1738219338,-1005711534,591153561,1965643748,-482368197,-607882157,-1135613511,1583622273,99471179,-941657515,1584927975,-489506498,1931745664,381153291,1573919080,270458029,-860912796,-1256501206,-341501981,671544332); -/*FRC*/Random.twister.import_mti(45); void (makeScript(14)); -/*FRC*/count=484; tryItOut("\"use asm\"; mathy4 = (function(x, y) { \"use strict\"; return Math.fround((Math.fround((Math.hypot(Math.fround((( ! (((x >> (-1/0 >>> y)) & ((y | 0) ? Math.hypot(((Math.min(( + 0), Math.fround(x)) >>> 0) >>> 0), Math.log1p(x)) : -1/0)) >>> 0)) >>> 0)), (( + ((( + Math.sign(( + 1))) >>> 0) ** y)) >>> 0)) | 0)) >= (Math.hypot(Math.acos((Math.hypot((mathy1(Math.round((Math.max((y | 0), (y | 0)) | 0)), mathy0(Math.fround(( ~ y)), Math.imul(Number.MAX_VALUE, y))) | 0), (Math.fround(Math.hypot(Math.fround(-0x080000001), Math.fround(0x100000001))) | 0)) | 0)), Math.max(( ! ( + x)), ( + Math.atan2(( + y), ( + Math.PI))))) >>> 0))); }); testMathyFunction(mathy4, [-Number.MIN_VALUE, 0x0ffffffff, 0/0, -0x080000001, -0x07fffffff, 0x080000001, -1/0, 0x07fffffff, 42, 0, Number.MIN_VALUE, Math.PI, 0x100000001, 0x100000001, 1, 0x080000000, 1/0, -Number.MAX_VALUE, -0x0ffffffff, -0, -0x080000000, Number.MAX_VALUE, 0x100000000, -0x100000000]); "); -/*FRC*/Random.twister.import_mti(459); void (makeScript(14)); -/*FRC*/count=485; tryItOut("for (var v of t2) { try { o1 = o1.__proto__; } catch(e0) { } try { m1.has(p2); } catch(e1) { } try { print(e2); } catch(e2) { } s2 = new String; }"); -/*FRC*/Random.twister.import_mti(493); void (makeScript(14)); -/*FRC*/count=486; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return (( ! ( + Math.exp((Math.atan((Math.fround(Math.round(Math.fround(( + Math.ceil(( + y)))))) | 0)) >>> 0)))) >>> 0); }); testMathyFunction(mathy3, [-0, (new Number(-0)), [0], (new Boolean(true)), '', /0/, '0', false, '/0/', (function(){return 0;}), (new String('')), NaN, '\\0', ({toString:function(){return '0';}}), (new Boolean(false)), ({valueOf:function(){return '0';}}), ({valueOf:function(){return 0;}}), 1, 0, [], true, undefined, 0.1, null, (new Number(0)), objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mti(590); void (makeScript(14)); -/*FRC*/count=487; tryItOut("\"use strict\"; v0 = Object.prototype.isPrototypeOf.call(g1.a1, h2);"); -/*FRC*/Random.twister.import_mti(608); void (makeScript(14)); -/*FRC*/count=488; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return Math.fround(( ! (Math.pow(mathy4((( ~ ( + ( + Math.min(( + y), ( + (( ! (x | 0)) | 0)))))) | 0), Math.fround(-0x080000000)), ( + Math.abs(y))) - Math.fround(Math.hypot(-0x080000001, Math.pow(Math.atanh(Math.fround(y)), x)))))); }); testMathyFunction(mathy5, [(function(){return 0;}), '/0/', '0', -0, (new String('')), false, 0, (new Number(-0)), ({valueOf:function(){return 0;}}), null, 1, [0], [], true, '\\0', (new Boolean(true)), ({valueOf:function(){return '0';}}), ({toString:function(){return '0';}}), (new Boolean(false)), undefined, NaN, /0/, objectEmulatingUndefined(), 0.1, (new Number(0)), '']); "); -/*FRC*/Random.twister.import_mta(-394447911,-1677818383,-1385539757,1558791989,-1086471517,-1892097356,1298901010,-1400791382,-1762508479,497100027,1766061919,1085927217,1486439200,450189022,246625938,1838794582,291112660,-1071918949,-1097039480,1128148380,-98950617,1112384108,690192769,520769928,-677462411,-418270410,-175599195,1659955032,31460389,-303783905,1849677609,-465724726,1660439456,1709995265,1715471723,-1815451349,-1328633619,-999999387,1529498614,-1265695966,1724844964,-241410880,-1326873814,-28394237,1232159705,-757502185,-2017323534,541043377,428764747,174055595,70581949,1912708454,-106637595,882197438,-151513041,-472192814,1827798689,-1310133113,-841288939,843324686,-937137135,724889532,-1772800106,-28501538,880890667,1733262536,-248716446,-2096826108,111761093,381692402,-1268085359,-593207263,179037870,-588605752,653050544,-169354957,-80367353,69432915,-1527579109,-1084993421,-255163584,-1936495366,969281148,-589335688,-238649978,-1491116573,1382100299,1920331715,-1086116740,-132467456,654271928,-998613165,417850178,1989754625,1179581210,-560513572,-706614953,-1658005995,2028744270,-215474936,-530798273,-222951099,284527895,-2006674630,939818241,-1918622609,-1492112755,869024832,-555789116,-32273357,865883298,-236852746,-1620283184,-1903037059,-881732153,1611092895,1553552469,-1016546367,-2045627702,357985867,468672669,-1212447586,-313062884,881127660,-1817872464,1438415864,-556414322,887638223,-286964478,-1056934675,668753974,1938514919,578473576,-190569357,1803343095,-1479579506,1516329591,-2004721109,-1887302460,414795642,871309268,-655544808,-225722033,2081929420,192591853,-1203922706,288908950,-1903497468,1337323627,1499394720,-2093527853,-1116598845,369412424,1642994962,-1850039166,1357588109,-1446672642,579485082,-572309170,-1484082472,1504936068,1604405917,-1275182627,827524637,267288230,-222228116,-71581362,-8369120,-1093871915,510662837,2126022788,789227153,-264008812,-519283754,-1887450481,662510481,-691470958,688611977,-495584112,-248685355,79211353,-138892619,2042992166,5945288,1817532359,1151867644,-696859198,-1379483126,884841205,-396050917,1133864111,-2144052585,-1724901567,587066797,1023899834,-1174148511,-688781999,259052017,1243787865,-1402481374,869615554,-468623980,-638360036,-814031120,628285620,697773709,1771721499,-1195583720,-178986244,2095660968,-275742569,-1135382718,108708161,-715094891,1175557499,613877906,-1931483622,194541583,892222568,208851371,-1396864435,-7856775,-1669668601,968932275,-476038155,585139580,89253228,740097582,420154392,-2004150077,1896733309,-698294103,1529653286,-1574635474,811416010,485125788,1945681225,-499753349,-1293248591,1071640634,-1016429218,-1986611719,-2037468974,757509537,1340392481,-1186209918,-286578823,-555750309,-971108352,866796378,975203425,1939832516,1361655663,560969316,-529876664,-1532547637,865244853,-921522647,-1083994249,1306671327,-332221517,229535023,720836564,-1844657399,1569261176,1274687192,-495562692,1107957854,247594313,1199091392,525826316,1607899388,-281099776,-269333722,2124830090,-1805340408,-842298933,-1969137770,-1194036616,735810393,1180880432,-177435959,-1724712224,1829975067,1035460470,-1195403082,283705768,1906439387,231684906,-1354358866,258375420,-638494952,-1206922393,389581648,2117444396,1394869952,253013073,-912539305,-762631746,-595085956,-1077949955,1624856083,730251997,417817647,-694624699,2093867410,-889437957,704055772,374185351,120291355,-1256337622,-1979043157,-919223121,-1748574964,-143535585,-1120546388,1209133575,-1059036749,2133760673,2055665323,1321368911,-2142929820,819055887,-1358102989,126223991,-965093000,159913084,1309643047,779262824,1337078161,-1321934778,-1742817094,1130371692,-1778014162,-1308754048,-258769369,-739437021,-783427085,1972095019,1440454941,492544944,-1119691207,73360588,2129960151,-1546485511,-349346285,-236556123,-1719511092,1317158076,-278133684,1768481892,1597454858,921860395,1460183104,-942767736,-391027905,1812086838,484962259,-1221480983,-650061405,223010210,-1506282736,1613118053,-1810391248,126080550,7459252,-2111545638,-1800243381,1175669323,-757420963,1793680434,-281057025,-622126284,853221806,-1365427605,1614497377,1045046368,-1254647106,-962705088,1568116652,-1205952411,-455814957,1050828463,2093914235,1110645845,1391310938,-532086177,1051110149,1865052933,-1993787319,675973003,536695179,-236041906,-1875954990,-1366421156,-601222742,532108569,-1879871849,-823935665,-445267785,921286721,-74399796,437859422,-1118759334,-1444290540,-1923398979,-1072197008,708006981,764174670,1704575252,2036360052,1040525865,-890836722,-1691938256,-1786083492,772616370,1745705631,1692717511,-1402305928,1735320238,-422597420,-626535844,362851742,-1732662801,987561697,1410933707,40572346,-857968779,2053876224,565997608,1569721664,-1371736562,218350542,1384671919,-1581583346,-1786697820,1498965483,-1544906587,-1239427690,-2123038887,296284725,1196385052,1408085932,783092075,1837893545,-553440157,1344963330,-1304578822,139243828,-1686309058,1454954298,-1911595494,1289019788,-220755250,-1276206157,1025244793,834234746,379265282,974090284,684138501,-1223744465,1881321451,1719365855,563773815,1024918312,457871766,1588268333,-1854212839,-56025523,1653744177,2141591667,-1676545314,-1714220757,-295756525,-51607400,-1369525270,-1061925466,14722541,-1949166208,-508145188,-1019247505,-940602391,285112185,-1961842368,2077969723,-390978339,-1815486158,-306281904,-668798466,-902374861,1600007572,-631144357,-2140277112,-351939217,1457421989,-227079504,-668527974,-528323767,-1588479231,-107048843,-1144782979,-1141658002,-199330619,-1575899967,-2097267904,1679006772,1080130692,-1037663906,1699241808,126518707,-2002705125,-1762905603,1396766391,647676880,-1825723763,-915480802,-1484731639,-669904918,731536851,-1232711730,-1505531983,-862012023,-453501322,-1163692657,326204039,876118705,-1204115244,1869716401,524578446,-1019458504,681526863,-1615891694,1006817827,-1690964957,217303140,-486386972,-276532759,1216295684,-1288242430,-811883937,1372842658,-273125433,1189540674,108495648,1893238330,-1879753696,492130244,-2070245947,566835515,719634415,1960847380,-1103889786,-1190610990,677402876,224647839,2071418514,513604868,1237677109,766893283,1169264490,440257891,-1147502994,1768997787,1643971259,900808848,1374853211,1320614546,-1938382461,185282062,-1297909873,1067396208,-947569807,-2060149515,-960770462,987746450,-673580368,-1002526733,-772245101,-1550317512,2007085750,-363026985,1721630008,388127135,1640828049,831337836,1370877272,1569581806,-1471208383,59361608,852721730,-2116612983,1711154526,137246794,-670203925,-457284414,1031867335,-663384096,668010079,833341949,-1896262993,1433693792,58831170,-294089218,1300736965,-1758421737,235461971,1742939230,277463591,272521765,-108193108,-1963705116,-640857297,-401952337,377338099,265287578,381190085,461009043,111315775,-1896182014,-675706628,-895313209,1112812146,-2010551380,-1300136918); -/*FRC*/Random.twister.import_mti(176); void (makeScript(14)); -/*FRC*/count=489; tryItOut("mathy0 = (function(x, y) { return ( + ( ! ( + Math.atanh(( + (Math.fround(x) != Math.fround(( + Math.min(y, 0))))))))); }); testMathyFunction(mathy0, [0x100000000, 0x080000000, 1, -1/0, -0x07fffffff, 1/0, -0x080000001, 0, -0x080000000, -Number.MIN_VALUE, 0x080000001, 0x0ffffffff, Number.MAX_VALUE, -Number.MAX_VALUE, Number.MIN_VALUE, -0x0ffffffff, -0x100000000, 0/0, 0x100000001, 42, Math.PI, -0, 0x07fffffff, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(266); void (makeScript(14)); -/*FRC*/count=490; tryItOut("e0.has((intern( /x/ )));print(x);"); -/*FRC*/Random.twister.import_mti(305); void (makeScript(14)); -/*FRC*/count=491; tryItOut("/*RXUB*/var r = /(?!(?!\\W)[^])*?/m; var s = \"\\u00d5\"; print(r.test(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(446); void (makeScript(14)); -/*FRC*/count=492; tryItOut("{ void 0; try { gcparam('markStackLimit', 4294967295); } catch(e) { } }"); -/*FRC*/Random.twister.import_mti(459); void (makeScript(14)); -/*FRC*/count=493; tryItOut("\"use asm\"; /*RXUB*/var r = r0; var s = s2; print(r.test(s)); function \u3056(c) { for (var v of this.f0) { try { v2 = Object.prototype.isPrototypeOf.call(f1, b2); } catch(e0) { } try { (void schedulegc(this.g2)); } catch(e1) { } try { Array.prototype.reverse.call(o0.g0.a2); } catch(e2) { } b2.__proto__ = m0; }\neval = x, d = /x/g , c;[[1]];\n } Object.defineProperty(this, \"v2\", { configurable: false, enumerable: true, get: function() { return false; } });"); -/*FRC*/Random.twister.import_mta(1527028912,22947385,302633970,-1333794353,-1140011370,2091704407,-1424893681,2073587819,1518559263,1841223936,-1821961470,29409502,1760782971,2117728317,147442050,-1035212188,572672674,-893073512,1334978172,-871826605,96600305,569635431,1760283242,1409827633,-1456534585,-160672365,-373171645,-1557903316,-68959461,-327397647,-20798960,186093520,-1975321993,-138887382,1053913668,-865327257,-1447934398,-869281291,-1882806731,708829241,-1692092731,-294972413,1734021383,-333913338,-148151224,269264213,-407212820,-129793965,1126460649,-885502845,-1958905271,-1382651239,-1053403423,-187929614,-1955213,-1549488637,1932214354,1275816678,1681518846,-1935413331,1124161244,824568807,1474407658,1950825829,1132794255,1592590702,1612250613,-414508907,271222127,-577307846,1713403350,-1174606566,1290234197,751860011,1072344728,2101442935,893785829,2006796106,1761356556,-1194259450,1185485712,-684649794,-807802784,-1143162196,224957895,-523874045,723709566,1685773061,-1799389603,-1061792786,1451957542,-1806630817,1752364396,2088325145,-181789003,1939190524,1016794810,715680130,-874314700,822212314,13754164,1881394517,-39003672,2127130914,606669958,1050595676,-67662111,-1382969054,-2112689422,430921429,-86608475,721315640,-641019950,1947303719,2145855725,-469439422,-1641664785,-802901016,449665252,864013208,-1009791579,1563547869,-322685000,-1349395351,-1505722251,-879559887,2044715319,604231686,-844101608,-338388785,-809723235,242813370,1617358558,-1003905813,-1941387435,-935669817,108817897,1261620742,-1352732327,-160170493,1678353416,1400613754,-1315930567,-848952949,-207182928,242925577,20116642,-1911894320,-1554365072,-2050598542,1126906875,1791712671,437498214,2084403797,1330567455,-1377143635,2032485937,596802104,682758142,1917140294,-14851676,-1388163886,-2079277893,499839536,-2097482024,346891068,507323563,-203449563,-2017319714,1911209680,50020884,858450884,-1037739420,-517441048,221447782,-1370430916,188141561,199569114,910681093,527057536,1932303382,-545602773,2005723474,1165934315,1154084934,1008286590,925789588,-220510007,-57736566,-1521489818,828226005,-702975433,-89799093,-1621839660,-503881551,-94401987,113092556,1487375665,733143382,-2120274943,366586005,1565686515,-381403689,130883130,-1908238629,1136465068,1373225033,-308614039,1887191687,-920398646,1319138694,-905213350,1245046841,1895057030,-880357530,-295353694,-893832149,358148526,-1987467313,-1809054358,-529648292,1506758494,307324410,1652176866,321153228,-1971218150,-1534131395,1468078780,-1676469625,-209220077,38218052,-778397051,1841208384,-213957142,1978484517,-92828060,-978499870,1394272261,1580153027,1229334740,-1543892450,1267634667,231738475,-1663526803,-698275751,-1578171105,980401569,1724713201,2015810506,-319599483,1841822803,414392495,-421818719,-638286105,1753181718,992098462,1375578426,947639668,-185719968,626201457,677853538,732625326,1549989436,-948517506,-372062567,-1090679253,1262152726,88930494,-841530525,1760603521,-1007440008,-1061943992,1744142534,-1729542615,-227419945,-1127671597,-1905727672,-682146955,1634931690,-502844935,1467129417,-1283762429,1277527249,1844490217,1347724989,743272490,763077919,1172753225,646374448,273847188,1488951017,-2037757725,359744710,1593977955,-824632331,-1901567080,1616096078,258334985,-675334236,-1976550028,-978033923,-1289650391,-398820417,-2029860584,167491459,-729105490,-332756760,-729322100,1303143020,-715714571,1741755174,-252000433,-1423622267,-913131602,987771859,1774140289,2043597800,-1340809047,807062485,-702842092,2086399531,877283565,-48530118,-430916258,160728382,-1893265910,-1894871402,401117824,-822975166,-449402421,851848575,1167655344,899417419,-1559662303,1288740590,1928122684,-402584845,421208431,-1726276759,-681107958,-206003996,1036556939,1115034358,382197324,1018867774,-80293783,2143215742,-1534143493,1787288315,-1737472630,-2146811540,607194175,-535385327,1513660915,-917251770,-1146017789,2091900921,1294793910,-70134348,650346511,-684563101,1699965624,-1036976033,1170048762,1258956508,-1370694092,623015289,-1643597326,-484553333,-991638496,1676739883,-1630327254,1461145822,-1888167608,1730141503,-1132505280,-1621257171,543432539,74488393,-1626058357,-1755340061,-1994963305,176523343,-1053525820,182756885,-2120335858,-1273047013,1367402745,819879977,1228754849,-1958942166,-1173499265,1555741269,1232743429,-1647668240,1360084621,-283395772,-58577812,-661079232,5846683,-589289970,1077910601,-1325897455,1606565875,-733986981,1447832893,-746891139,1709878449,-306830431,1262278888,-1015768288,1639613633,1904915046,2112564794,-1512189808,1367416602,238366810,661190889,-1515322528,-910028767,-234399238,-1423493506,1863052821,-1025808285,-341595125,713517963,1056549732,1760329109,1301037799,-947111049,282289469,-926714052,-202272476,1090828878,-1487241285,-2049392467,1105078343,363831117,330908969,-1679220228,1398011656,-495970128,1614509768,1702332192,-1546531008,-509811122,-1926045929,-1538757178,1416705217,2030898791,1702729967,1968052234,-1276486531,1685119547,-1878764193,-2066764230,-120971630,524325202,1559345752,-281952632,304521920,-539471979,1941077504,-618215562,1589616846,-395178358,-655105401,1151741415,-1546702804,-1425297267,-1831837438,58724371,1338522441,1142553069,836915460,410842393,898346668,1747908243,1751648321,508361801,587985868,-1190599307,1051356222,-1256669320,-1792378939,-1123363847,1401705049,1148600733,-675732376,869130486,1934538124,-1444659747,1383584835,-1185061989,1014463974,-1580938706,-2118571782,173261351,628358573,-1558392921,-988770018,292967018,1959362156,-820512024,-1520530065,1094954408,-1022070442,634827233,699835653,-780294525,-1081210936,-1594069703,1056969154,-1109016442,558998726,-330419861,2086376545,-1803941665,-1647743228,-547862591,-1606040968,-1130031922,1257335168,-1327257902,-1938747250,-878550066,1686126707,-904505926,-1832953547,628975687,-1999277935,-822972851,1075379552,-1437373222,-452573954,-1553536441,-1318545801,2118807207,239052479,-1009988908,1732653202,1502825074,1787099665,1101172981,-1209106759,2125491255,1298042153,-1246248343,-1204770875,-949262032,-112639971,1427168983,-619240844,280482566,710097353,-1044636736,1490854670,-1122733103,1732363781,-1584770267,-1094431210,-1587523588,-618995522,-220616005,-1461002851,-1103075808,1213529620,-1237501981,-1114533485,498697422,-1408371925,-416788837,-1737803944,584124471,-1889390941,-1852818979,1770310044,-775535248,1608635748,1278232869,695623535,1539982678,308223636,1684620623,1710623258,-719904573,-1410555152,-1762229817,2084219545,1540503236,927110229,1327315705,457363742,1467827992,1505789134,-819688837,235208656,-500412150,10958754,1034774510,-1900805655,1344510912,1135882877,231565945,-26689235,931203174,240648263,105398062,-1244542015,1342150205,886730124,-404140515,1403540136,-1275517994,-1009489980,-1536431937,-748373279,-1941852757,-774826495,-1595717655,676346172,-1713494490,139559064,-2103838948); -/*FRC*/Random.twister.import_mti(105); void (makeScript(14)); -/*FRC*/count=494; tryItOut("\"use strict\"; mathy1 = (function(x, y) { \"use strict\"; return Math.fround((Math.fround((Math.pow(( - (Math.sign((x | 0)) | 0)), (x | y)) | 0)) !== Math.fround(( ! Math.fround((-0x080000000 != ( + Math.pow(( + x), ( + ( + Math.sinh(((y ? x : y) | 0)))))))))))); }); testMathyFunction(mathy1, [Number.MIN_VALUE, Math.PI, -0, 0x07fffffff, 0/0, 0x080000001, 1/0, 0x080000000, -0x100000000, 42, -0x0ffffffff, -0x080000001, -Number.MIN_VALUE, -Number.MAX_VALUE, 0x0ffffffff, 0x100000001, 0x100000001, -0x07fffffff, 0x100000000, 1, Number.MAX_VALUE, -1/0, 0, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(287); void (makeScript(14)); -/*FRC*/count=495; tryItOut("/*RXUB*/var r = new RegExp(\".\", \"gyi\"); var s = Math.asinh(10); print(uneval(r.exec(s))); "); -/*FRC*/Random.twister.import_mti(374); void (makeScript(14)); -/*FRC*/count=496; tryItOut("g1 + '';"); -/*FRC*/Random.twister.import_mti(383); void (makeScript(14)); -/*FRC*/count=497; tryItOut("\"use strict\"; neuter(g2.b1, \"change-data\");"); -/*FRC*/Random.twister.import_mti(396); void (makeScript(14)); -/*FRC*/count=498; tryItOut("try { x.name; } catch(c if (function(){for(let x of (function() { \"use strict\"; yield (new (4)(arguments)); } })()) return;})()) { (a); } catch(e if ((Math.imul(0, 9)) <<= true)) { Object.defineProperty(this, \"a1\", { configurable: (e % 52 == 44), enumerable: true, get: function() { return arguments.callee.caller.arguments; } }); } catch(z if \u3056 = Proxy.create(({/*TOODEEP*/})(null), '' )) { return; } catch(c if (function(){this.zzz.zzz;})()) { return; } \u000dfinally { for(let y in []);//h\n } return;"); -/*FRC*/Random.twister.import_mta(1696960431,-778284359,-2123468125,-2098839227,-1486791491,1014510921,-1157187815,1611218827,1620263357,-624373252,621464798,1086793283,-316107735,-955219999,1084191219,547067703,1485393398,-1038826578,-292695444,-706969347,-1365659387,-1847859627,2060353894,2140695750,1226419304,-2099006485,-1823912843,257621337,-978191316,1100544620,761772669,-777679101,-1135581982,1337711647,2013123664,-1490505211,-1105468821,2041683070,1238335598,-716913670,-74275437,-115573387,-1377480577,684082476,863959749,1407598782,-2141259818,1531660779,1560834256,1369756396,1804331093,-1377652882,57359262,-2088485623,-1114308652,-897581996,1114986312,-1575441120,462874931,-1723156996,-1629825922,1996581933,1276809445,-1427334440,-256979166,-625561563,1904999395,-1885187418,-960924905,-1411131284,1482185578,1555313753,611007687,-1926941106,-1540875145,-865894172,2144819784,94127234,68449050,1457465188,1136033740,260373617,1134731551,-55113232,274955563,1799035649,506290725,108886068,-581830130,952753354,-682200723,-1551868194,-1795557339,-791475703,-802233181,1278890782,-1408673958,428277756,-112971453,-2116958368,-1421175726,463835481,-596084938,-687597731,238631620,-801502781,-1713425799,-463996906,-1801669091,1735916379,1890157181,89375468,847096271,427107169,-1828840680,-384059798,-705193614,1815546036,-168700761,-994786708,1676301422,-1414826792,295180586,1785541277,1080351113,-1357502012,-1562228015,-1431759742,658546550,-1705591326,-1926573721,-1567871398,-1637804307,1475978212,870824305,-1708229813,-1882584103,1805749389,1096263065,-1016314765,1475853082,-1879103108,1014463182,513106250,-2019124567,1780318272,1185413021,-431793151,1012088974,-1245470709,433773689,-1254523018,1618830533,1206295629,-621980578,1049440691,25095706,1040858678,-123828893,1733432284,-340437576,-1136580473,-277927363,-1078381190,-348725662,1292681780,1379850230,-351547406,-961201848,1227448094,-1347927551,-1669120863,1831712826,-359370728,-268419195,1157161083,656645978,222915710,-1641736035,1343391639,1735627834,606577101,-142104945,185771852,1170659561,164112478,-1005825548,464620383,-2018454288,1783287493,619874307,-1738475165,343436974,-558787374,-1422241992,1478230776,-500813473,1276769381,1457761444,-572482747,1435360428,-1391617642,2118904051,278788699,838668694,-229612922,-1576489838,526274737,319873539,1762146948,592312835,1237552898,2005251454,286853695,-1864634548,-1342408606,-111847679,1578632444,-293737974,-1554800561,-525989372,-654727940,-1847698408,566365530,-1667306837,-1021398567,-380011966,-232476109,827794799,-1068636671,857980120,-776072547,99063740,1492690004,1563621561,38134476,709694753,-1827282848,1684288041,-53109466,1004505035,-545274087,-1207997474,-1431213819,200012286,716356707,2142418010,-1836394272,1051390152,-1792684144,-355906482,-478356505,1997619271,-411632770,315351318,-313579343,1571098838,386968525,436516452,-1469843373,1517199560,1506586446,-2070687558,1408905720,-1077417036,743634533,-673005659,1148302589,342661994,-1944287293,1218201480,1082407590,-962964619,1617865570,-1675135651,440140660,-1559772279,456286624,99190605,-237321115,53552727,1116638563,1703877503,-212355895,-1270999755,-1809609885,582049927,-1919310234,2133337575,-112334002,815861366,-1172935359,1816073931,-806369594,-923376790,-1232034128,895064119,1938276536,430713571,-541475482,1304246533,1228771703,-1880955800,-1574817450,802756949,1912682350,1016893858,627068666,-1138242732,810166412,1573051016,-587640266,267534550,-631911661,-1414900437,-508128262,-1177871295,374580312,-2003967148,1943846895,1409195680,-291284418,1058147761,-389868091,504723705,-1094486520,-903508448,-1942771981,-264866461,471060822,-171403387,-1912633154,1488322956,-4752114,-585002872,966034363,-1292707021,-450052330,1860193769,1268906429,-560341253,-1278930333,-495429300,-878001811,-928722849,-1976654696,1341856590,-1885271604,-1483516387,1369258396,-1585642403,-379110178,1526909410,-2041862542,1853435996,-1071660971,-1128217671,-1329448003,1759862402,753964163,626005688,-1946711679,-118441930,-1437656905,2089280407,-1966198790,-865592182,-1083167488,-309506196,-729331580,301790815,-332582202,1839721700,-1407145507,-126027871,-353027513,2096701305,-2098585214,599517036,-1294334613,-1704620071,111616166,504827345,-586936881,1053106481,999905713,-1768237185,1792202099,30883720,-353280216,2075618458,476263319,-256285463,1557896718,445374571,-247929366,929581352,-1008459871,1168578355,1130212157,327356131,1903475666,-1307488419,-1811206104,-9975233,781190268,-1141939952,-929024715,1102695865,-700585185,-490252813,2097381850,926793539,-689784388,1936786642,-2136322851,-520748434,908429747,1703494060,1836827219,-1960701971,1169623277,-528939498,251615109,-2142047873,1235187990,1889408336,-364688128,398669042,-1356141902,888947141,1208342788,-1831714911,682435472,-994410440,-352893185,-86555139,-1281759160,1144463356,506220282,539035239,-523873240,-1656243214,-390221663,785807323,837563742,-243820884,328605883,2104988432,979902640,459604319,476279882,674131995,2018762802,-1337760466,1295133222,-1880248664,492528116,-433664551,1291110108,-300141759,619431865,802586999,1158858054,-1490229467,-1860865099,126761738,708321245,334671744,-23635105,1920586195,-1257808763,-1850281910,1732484312,129766067,611264414,943326214,1207302321,1968313628,1721022881,1660565787,1302255369,-138184947,-1908892693,-794987794,-355848297,324036674,1907503868,2776885,-1120630148,-570384439,1341436234,-1443563657,-1982267050,1418973674,1420824343,1346229775,-1020458623,-939332182,-1542317062,685081175,-1505506709,1035468288,1755330017,2073278324,610516966,976825418,-1897741302,-214372611,977803419,975254154,-339862060,-1965987040,1914286820,582356492,-1743954168,1786273790,2118498804,1286798974,1008596983,-1849865055,-1383147606,-1360955943,1935741040,374796639,-219891195,-88959045,-1645599424,-2104781429,310439167,1548990127,1339385829,1730707715,1310700509,-304379130,2107322544,-697848064,-1009403640,-48285860,2085705887,-157520342,132159740,1483696991,993301442,-268229988,925504799,-267391484,-1762755171,-1927876954,-625074848,457427569,866052547,-157769845,1174708763,-1393710317,-1671944988,-1684973471,526435416,70390259,131344007,-1358472464,-1330847529,-638523847,2140079394,-1173582842,181023459,-910699885,425305837,-48639996,1836453894,557209343,-2070852621,1112445020,-784155456,1583457789,-749653293,2038307620,-829559057,1450682515,-693021046,-1414626087,1733738262,1797509677,-1908685132,54598403,1024659450,-24943425,-1035603157,-1507945757,2052670147,348730644,1898351384,-1586459530,-527933715,32168162,-1433456508,-443457535,1370451342,-218398415,-202023729,-1003396035,1085169216,1964720036,-624570576,-651516495,-1113630832,-1308747012,428202726,-128951449,75119383,2012748318,1460734053,577095770,-143596387,-1578135053,-244461017,903428386,-1973987515,-719707972,-1533970313,1345621277,1587748903,-260825500,-588104160); -/*FRC*/Random.twister.import_mti(109); void (makeScript(14)); -/*FRC*/count=499; tryItOut("s2 += s2;"); -/*FRC*/Random.twister.import_mti(121); void (makeScript(14)); -/*FRC*/count=500; tryItOut("mathy2 = (function(x, y) { return ( + Math.log10(( + (((((y & ((y >>> 0) / y)) | 0) - ((( ! (x | 0)) | 0) | 0)) | 0) >= Math.pow(Math.asin(x), x))))); }); "); -/*FRC*/Random.twister.import_mti(245); void (makeScript(14)); -/*FRC*/count=501; tryItOut("\"use strict\"; L:switch(\n('fafafa'.replace(/a/g, (function(x, y) { return 1/0; }))).watch(\"sin\", new Function)) { case 5: /*bLoop*/for (let wrabbz = 0; wrabbz < 114; ++wrabbz) { if (wrabbz % 5 == 0) { for (var p in e2) { try { Object.prototype.watch.call(s0, \"toString\", encodeURIComponent); } catch(e0) { } try { t1 = new Uint8ClampedArray(b1, 48, v2); } catch(e1) { } v0 = a0.length; } } else { t1[11] = this.o1; } } break; for(let \u3056 = (timeout(1800)) in delete x.x) {this.a0.shift(); }case (( /x/g )(Math.imul(\"\\uBF49\", 21), x)): /*ADP-2*/Object.defineProperty(a0, , { configurable: /\\3/im.yoyo(false), enumerable: true, get: (function() { m2.get( \"\" ); return v2; }), set: (function(stdlib, foreign, heap){ \"use asm\"; function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var d2 = 9007199254740992.0;\n var i3 = 0;\n var i4 = 0;\n return ((0x6109c*(i3)))|0;\n }\n return f; }) });break; }"); -/*FRC*/Random.twister.import_mta(1914865186,-1676108099,-1691993280,-650440606,-1237315159,916104206,2097618738,1445386814,66350210,-378927233,1909135051,-299550862,750609456,461397461,-196674914,460921272,-135735189,70774244,1934408828,783444531,-406795706,418251039,1387787312,-1347495463,-573677113,819269875,-799368714,-1568010391,693306400,-14321487,1536768606,1240139395,1375712354,251833325,-1030147879,1423408715,1417014703,-530759665,-1068161278,504801259,1444898349,-1949497572,1246719084,-1600730150,-919243657,-1654079463,470852747,5394355,423517224,1572524633,90666764,1019350751,-1566404885,1169129141,2036107872,1226103743,1767880354,1686151528,1100443864,-1065302889,-2922691,1495479668,1501727664,-1773447984,-793235596,-837039015,1120136213,1568206449,-991649917,1805784767,-1653951186,-1731231428,-133840776,-1184534729,-751395593,-295871122,1703788185,95824702,251704364,434191328,-650168746,-846465716,1489976665,-1279051951,-519312810,1641903808,-1928976399,-30044183,-1230061070,-1577852885,544349587,-748809224,1280688039,790584647,703174853,-1074766630,-988119384,-247891564,341372071,93887526,402092530,-432089551,1452843147,1875451701,391544405,-397355037,445368810,-1462412123,-825167212,-1687855701,-1941232260,1930332869,-1342555660,861814534,-1623996703,-534075495,67253950,-2126097280,-94945730,462255561,1804600216,75428587,-1876697498,679973050,-1174027448,1721294958,641047089,1173798628,-3152652,623857623,-861130131,1421061666,2038185229,-592913720,-607458657,-1178258384,-1563966140,1417210133,-987389354,-1113820531,-1003868746,-1557886405,1931208762,1816630177,1928222940,-499900338,-1860334307,-1372945701,-1262258747,636104935,-1938636250,1679879195,1615192985,909467742,-170868283,-165156730,1493286144,162158973,-269406966,-1370754371,-666312508,-359844814,1476967482,-627296831,-701857331,-252736062,1242227419,-648671070,1851694444,1198211916,-837777310,-1953559527,1480337418,-1069614622,2145749777,1373593585,-672789761,-931423892,575717831,1254609209,1167494870,-188953845,-1825045204,272980082,1672653625,1227225815,1525396420,10056059,-784410553,1978830945,1467825989,-333273676,1426163882,1096028808,489196132,158016518,529273856,714804912,494390777,-1890087337,1193910597,349619607,1655902525,-590353162,2038853379,606038509,207771575,1235903599,-1994700078,961566498,1029971303,-1013808680,-1778512169,2140532152,15676500,-943205627,-1736644893,-1764662026,969716447,1166687264,-433355461,-1644884304,-193954086,-948746089,-1507538924,-2066177211,1021892582,-1283349430,624352610,-1028135636,1760340467,-189539721,451343908,-896085071,1459891032,-1881516339,-522127537,-1695432960,-800065055,-396749046,-1388900730,-1346809999,-685171227,-1306713964,-2006580470,1284892241,670500419,-1198149086,310175447,668160535,1192756469,1062105403,57568588,-1723897475,220539886,1199672395,1839570312,1453023596,-992851339,1019798534,602209354,-1060054908,1026188983,1268127861,796691426,1923926031,-450441910,1546202008,348910626,771837864,-2133535095,1936780562,-312502872,-1962168582,1296846345,-1850405581,270787209,-1634007947,-1658332110,2050141471,-35616549,-762071296,-373837564,-1438118681,-1214655482,-1983418300,-968091740,424658193,1703264467,30542987,306762415,1068438734,-370397382,649649568,103857449,121692999,1382151907,146018432,-1223467121,131329061,83040083,-725094717,-1085520443,-1419148564,1018605705,290389245,189865117,-953363460,-1783701238,1982746653,-1648386486,-1494037955,-704699498,1104919995,-1896954348,1933836045,-354799097,607448121,867761360,1705701623,407826520,-278384958,312043239,320369163,-296172912,1900686263,-628490368,-152765540,-1472774502,-176923754,691460970,2064481939,-678729372,1947926958,1830268327,1319186386,-369950176,1647555415,-808007996,431908438,-206305560,-300946873,485980144,-111612338,-1001322804,-1649757287,475918639,-1588520887,1823501861,429255831,1546915541,-679172167,1706898263,1359544863,-51253743,950482423,-465116458,-1193370324,-607955780,1809069649,1079750359,-1481460092,1978271924,1166836816,1361051368,-1559122925,-500931571,-1293121024,-915984775,-1561517110,1515260610,71151278,1831650431,1948993042,1113108263,1404521126,614408230,-575721072,-465215887,-1266707286,1969680397,1674835954,1101881022,-1620337337,-1922153094,2109011562,1110059227,-660373760,-537551962,634587767,1302666453,2004779878,-1635630395,-565730767,-506830249,904575480,-7209917,902542116,858351960,-923459676,-125524981,-1729440,467322853,828202815,-1624007854,1067938127,-1214284932,-1136469803,1185582683,2069045002,1858377887,-517684153,1649714697,592654765,-1715148854,-1589257872,-1209473945,1706663827,1134031938,-912769149,-1165547999,756287855,-686014693,-2035426208,1314173499,624478033,-1166661417,214448956,54767822,-1580891904,-120782732,-370687988,1883895845,775886763,-1512474673,1836603635,1620878086,1602196121,-863721819,484851003,1341573036,1313663405,714193802,1444900305,-1910014375,24607113,-1790337886,-661631821,-2134827288,1623871146,-918359374,725303494,-1192144036,617178481,-719802023,583010870,-1944431146,-1023967296,-1832273639,-1260363941,32211122,-639116484,-1387056018,1786655746,1265874437,-1819745180,1682876475,-1529980602,167399937,924665299,831929865,-1061323985,1060382781,-1121861691,-1432215059,241296596,-1658773872,2108755579,-1794335436,-1424244450,653832742,-1345576777,-1718259359,99296511,-1158232456,-1921352108,68287864,-1158061297,-565535302,-886924916,745291984,-1567735674,910182564,-1888541249,-277242676,-1512198150,-1767933001,-455761828,561635567,540927068,19069712,328708361,1022207772,770324787,-1934959738,-2143598057,2101595930,494161786,381619090,-190371775,-1617493491,-219061866,-255088330,-686354270,357132949,280620844,1055969393,873573776,-1196859414,2017081781,1887417973,-934758630,2129685375,-1069400429,-1462829731,1396876429,1227292293,-591499959,76490851,141373005,361464257,-1775615785,-1354132020,1035786526,-1176417372,-1096993142,398757017,-483392028,1104336557,-290384765,36434373,1003602788,1859761900,-757357751,-425109911,197069778,-1210745114,1590003467,-2110316430,-969919744,-1814055371,1276919178,-1958688155,1442290390,-1194792466,2096570997,-1161545286,-1306041524,-504374001,-1073167332,-1253719782,-1729663388,828812611,-185252829,-1101128967,1912971090,-870709761,-851906838,-1732976060,-1788548016,1645804392,-1518973214,-1257509383,-362441970,301019647,269444023,-1478776001,-1375245757,-52687620,-1453145628,581066132,1349040088,1069209261,1022287752,-1504240943,2106218044,-1812037861,-1973659783,1133946682,2140049982,2099233244,1101510867,1247622074,-1563359108,-1481960894,581381798,-902130419,-98272635,-456151018,-1774401858,343697714,2027237621,2127932734,-788348383,-2090821032,-1128639729,-121800231,-800690847,-1192863066,2052150193,770419114,-1671650985,-553372421,-1948954371,958211788,-2061957321,-1175449334,656936075,-1136750718,1871754388,1746830077,-638554779,1536403176,-2038382766); -/*FRC*/Random.twister.import_mti(113); void (makeScript(14)); -/*FRC*/count=502; tryItOut("g1.i2.send(h1);"); -/*FRC*/Random.twister.import_mti(128); void (makeScript(14)); -/*FRC*/count=503; tryItOut("m1.has(b0);"); -/*FRC*/Random.twister.import_mti(141); void (makeScript(14)); -/*FRC*/count=504; tryItOut("m2 = new Map;"); -/*FRC*/Random.twister.import_mti(151); void (makeScript(14)); -/*FRC*/count=505; tryItOut("a2.shift();"); -/*FRC*/Random.twister.import_mti(163); void (makeScript(14)); -/*FRC*/count=506; tryItOut("L:do {e1 + m1;t0[15] = i1; } while((y = (Math.acos(( + (Math.PI ? Math.fround(Math.acos(Math.PI)) : x))))) && 0);"); -/*FRC*/Random.twister.import_mti(307); void (makeScript(14)); -/*FRC*/count=507; tryItOut("mathy5 = (function(x, y) { return mathy1(Math.fround(Math.atanh((mathy3(( + Math.expm1(Math.fround(mathy3(Math.fround(Math.fround(( ! Math.fround(y)))), Math.fround((Math.asinh((y >>> 0)) >>> 0)))))), Math.min(Math.fround(( + Math.fround(x))), Math.fround((x == Math.max(mathy1(0x080000000, y), x))))) >>> 0))), (Math.hypot(Math.trunc((((y >>> 0) ? (Math.max(x, ( + 0x080000001)) | 0) : (x | 0)) | 0)), (Math.hypot(Math.log1p(x), (Math.asinh(x) | 0)) | 0)) , Math.atan2((((y >>> 0) , ((( + (x >>> 0)) ^ x) >>> 0)) >>> 0), Math.fround(Math.tanh(y))))); }); testMathyFunction(mathy5, [(function(){return 0;}), -0, NaN, 1, '\\0', '/0/', ({toString:function(){return '0';}}), [], (new Number(-0)), false, objectEmulatingUndefined(), '', ({valueOf:function(){return 0;}}), (new Number(0)), [0], ({valueOf:function(){return '0';}}), (new String('')), /0/, '0', 0.1, 0, (new Boolean(false)), true, undefined, (new Boolean(true)), null]); "); -/*FRC*/Random.twister.import_mta(-1563472731,2126148856,-1536649323,984357888,-1532440985,626608252,441332256,-1630950125,-1843740113,1450328262,-1957674132,284441667,-275021505,1424483792,-1399306085,-1062700317,1632159583,-1604142604,789863606,-2079817404,-1329188925,1791757914,1195893680,1298703901,-327798327,-13536288,1323330315,452800555,-2086482986,-675629576,-1321924446,733768447,1061970985,1082730695,444911606,-1015300563,-2028402829,-973872050,-1149518887,-761552689,1519980823,-1448931181,212687062,-1302016696,-1712309890,-40806128,-817956137,-2101850035,-1230856070,-1745213660,1610218243,144238914,-1693105873,-169035902,-1766220346,-1939961843,378090949,-170718923,-1685530462,1794856599,-1368988294,-1106707263,-1077545677,1773639432,669158863,1429893819,-573901851,-267826917,2136039396,1794896556,-391538216,1979232829,-223919465,-1056587603,-1215048296,-721795154,-1074091430,-1390248965,43088164,-1312913989,460649693,1617146695,737340009,1451050765,-551380009,102683206,-470199340,-509499775,1149976222,-853523602,-1823053069,560526006,1168476144,-1584382867,-1116311829,1422751728,-135030411,1012750912,-1492000279,-1654340786,1321368475,-750976907,-1898849511,-1820232475,-1095275993,1906852841,-1601689666,-339565876,1417761821,996564388,-33834297,21108584,-1391970366,151409058,468484741,-1295338903,-676054302,1751315850,-998775529,188273085,-1356438470,-1330073383,746189288,1836931025,-1157314771,-186509640,-491167263,-1758916825,-1730300999,-159885460,-1226327464,-1590065606,641286953,-513391535,-892806449,-30771346,-829940405,-1686922609,2036055827,1976670786,732622886,945758896,1100639628,995941803,181130051,-1084243779,482759419,633363540,-1069374594,-1309925387,-1243790887,723345761,-584416465,809461256,923781577,-406842139,-936769865,-1892647061,-1294308364,-689944104,-949880491,-1913945326,1951297059,1196962083,-527390587,-848597775,-664908686,-915319729,1370504948,-351125042,301455417,-190122431,-1250193247,-2065527233,345067973,133191769,-1906810952,-640556605,-1402717196,-2062488492,223461145,-1254093206,-515871267,-1972127529,-302843284,315559759,-1515530262,398509613,-1636061485,558387302,-1135802973,689333103,1596234618,1938523374,1158818512,1167800762,-1214476508,806896737,-1140565678,816248176,1766303889,1285458007,-1201983291,-239604116,-204327716,-504613318,1826570441,-2014494927,-535660386,2131216309,-242274931,1796336914,94086509,765211520,649590794,171112277,-1061297530,-51130500,-1478747865,334324552,1775406035,-972640017,-1792958464,990701303,43289624,99077403,-1623167625,-262921708,1608615534,1226208179,-1711455772,-371477131,-1726312069,1909204876,2897578,2070022487,453680966,2055147331,1691957190,-1191180676,-1707871561,1577350838,-1717114199,628868826,1595996675,-1511559352,-1740482475,1626401911,-533915762,-37531371,-876138913,-306116753,1789294465,141754108,-1607121199,-1250949870,-50920114,173317447,1977096444,784210444,1625375877,-585544590,2142765768,-1868086654,1705848982,-1981227652,-1131465469,1358752518,-1096566969,-1781562547,-874726463,-1352666198,-1206612371,814771468,325740043,1740366305,29300161,292164890,-326562030,1022211485,-1666880510,-496876220,1081228961,1296424902,-1322209001,-122760336,-1085012800,95204812,669600347,803810491,1986010479,320117330,107355243,1205476782,1788971111,-815197110,1856109292,1781040832,-1357253392,1775663585,1919846163,1899841445,-2125560104,2024358593,1015919962,-1640937547,-1842811835,1369670744,-2105791594,623715660,-1676897588,-1243805156,-279484,-460443426,17361368,-387016894,103974317,-1970662245,-1967834606,1233321948,-1776014580,1832021319,-1001783766,-1059063747,-571408572,-1974133207,-434717056,450487510,-1450758722,-632637780,923761523,-1787634027,195412798,252395954,-862833371,1618531597,-747162416,-636429915,1302144067,-1798163274,-418835362,1435974013,-1905867442,-1248020092,-1077994343,324119903,-2103907002,1081533431,628815437,-1687468451,-541608750,1356000857,1164846952,1170810422,1383212291,-1426144558,-1441326598,-620359674,1306209741,-1625545571,-222355693,-1338122603,-588499642,-435690945,334756953,-1857995318,749199170,-703473723,1764340565,749922541,960629500,-1521155677,-2058722380,-1528646217,203159815,-770886803,-1623488707,1593269822,1898097460,1049709558,30842353,400123542,1904044697,-1902304246,-236321698,180866886,-89000360,-1466223482,1175107318,-879472490,2095542416,1993947448,994053430,833867142,-1820063565,-143626230,-1309173668,140733589,-791643757,1345417851,-82821105,-1066106136,-2041166055,-2118020591,520808891,-1213495734,1111044321,-150189845,-1997962769,1328189773,602499627,97524151,-1704057018,-1454857201,1197615765,1552378943,-895733904,-1652097150,-1798124431,-1687177035,-1140248442,-141261438,114153354,1237214950,-1148414186,943193574,1992485102,1759932662,1551648983,-1002589953,-2059137430,318666769,1878723888,-415544335,1750705047,-799266531,-911163866,1321586176,-1133886640,576767675,-1816987767,872359375,-1204424350,1587998069,625001319,-1384589450,-424806962,699532455,-1234987078,-1316955815,1855014548,518792630,-829698180,751076612,-1590417649,1508682885,678284371,1234251191,715336199,-638627550,1564461586,1451601053,240980822,-1480854373,1941667185,-1879649532,-1419302177,1204185960,-595434368,409290098,-1674720366,-1716363582,578748533,1411119228,666902045,-289564474,437479159,-1052679995,-1202919456,970600082,-2036572552,1979141822,1854744498,-510892430,1290379885,936437312,-1429595308,264505944,-1199046476,697180832,-2116001087,1049433284,391643004,-885785755,34749691,1826929219,-408595613,40434537,-1086258812,-1199180827,-1605171881,219985285,-398045785,132806658,-931200818,-1842812769,844599840,-1745163829,1094279611,-1766781064,876441357,-917150324,-1826268383,1828192597,233849434,-1583770948,904002163,1781838490,-167692713,-1487833202,1677608483,-1932456697,1983953884,-1546767203,-1702796199,310524781,-561905766,-1457413123,-335323044,310638311,-357248395,1797881788,-1058067654,-1898428009,250421021,1352064261,347416510,1710049605,462237826,669447289,-110702228,912536238,1485567545,-328294842,-816475790,-1856010911,-1075278714,-1757430987,237663431,346985967,-1496193288,1096297129,-525413566,-93140361,-39140045,-1260048029,-2091317494,-554687189,-176767845,1359422387,1132000896,220844891,-1022703677,357599603,-1559095796,-224881053,-229751869,-1420597892,522538837,-9783046,-1490575627,2083674810,1717789912,1399375206,-780541197,-1348496627,1432372131,-1579568468,73633451,339675554,1845329370,-727187830,-1266045674,540288077,-1513932008,-584277345,1127923710,-1821094770,-1879402614,-496773720,1608289929,920479108,-2144749068,2138199651,-2025701226,-717469428,-928488080,1260770039,-297049348,-814459091,25206034,863055768,1669653154,-561264111,-1717385370,-1804294393,-809841255,1571139746,-201752687,1737014860,431735934,123776764,-702162969,-1505794754,857671618,452116083,17360396,1660434257,17916786,-1773667177,-2075964437,-28451897,-198168669,2040041169); -/*FRC*/Random.twister.import_mti(63); void (makeScript(14)); -/*FRC*/count=508; tryItOut("w = x;for (var v of f2) { try { s0 += 'x'; } catch(e0) { } try { this.i0 + h0; } catch(e1) { } o1.g1.t1[2] = \"\\u1571\"; }"); -/*FRC*/Random.twister.import_mti(144); void (makeScript(14)); -/*FRC*/count=509; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n var d2 = 35184372088831.0;\n {\n d2 = (d0);\n }\n {\n switch ((((i1)-((0xa985b270))) ^ ((0xb90663c4)+(i1)))) {\n }\n }\n d2 = (d2);\n d2 = (((d2)) / ((+(1.0/0.0))));\n {\n d0 = (eval(\"function ([y]) { }\", \"\\u8FBF\").__defineGetter__(\"w\", function x (w) { \"use strict\"; return \"\" } )(x.unwatch(\"setMonth\"), /*UUV2*/(y.indexOf = y.getDay)));\n }\n i1 = ((((((-0x8000000)+(0xfde42c57))>>>((0xffffffff))) / (0xa3a4b55))>>>((0xff3b84d4)-(0x85413f92))) < (((-(((-(0x19ac3e14)) >> (((0x224200e) == (0x0))+((0xc7449c50)))))))>>>(-0xe94dc*((0x1e5927fe) < (0x99261b9b)))));\n switch (((((0x3e31f403) < (0x1dcaf73c))-(i1)) | ((/*FFI*/ff(((3.022314549036573e+23)), ((-1.9342813113834067e+25)), ((257.0)), ((-1.0625)))|0)))) {\n case -3:\n i1 = ((+(-1.0/0.0)) < (d0));\n break;\n case 1:\n d0 = (d0);\n break;\n }\n {\n d0 = (1.5111572745182865e+23);\n }\n return +((Float64ArrayView[1]));\n }\n return f; })(this, {ff: (4277)}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [0/0, -Number.MIN_VALUE, 1, 0x0ffffffff, 0x100000001, -0x07fffffff, 0x100000000, 0x100000001, -0x0ffffffff, 0x080000000, 42, Number.MIN_VALUE, Math.PI, -0x080000000, -Number.MAX_VALUE, 0x080000001, -0x080000001, 0x07fffffff, 1/0, Number.MAX_VALUE, -1/0, 0, -0, -0x100000000]); "); -/*FRC*/Random.twister.import_mta(2000574185,1542226566,224885883,1884067811,-1831328042,-1955504631,397276231,-821086093,-594368983,1200689495,645850645,640479663,626615205,-1397883207,-57895911,1942156342,-1183188747,283641038,1585654941,200771662,-387909457,-1217315415,617831268,322607293,-2012464014,-122334512,-574075348,-1168248067,1407887130,777546943,-1540295338,-623719908,2104595523,-2012845679,-1437919272,-1249952170,-2050836010,-1393766748,538528165,1039435378,-1021512042,-96669893,995270687,-548738250,1295485255,1185037526,-2030930548,2115081050,-427440924,274315408,771649542,585205746,-881425768,634226807,-1043607185,482862401,-1893355199,-319796386,-1248217327,1063173870,-1885478136,-330735551,-1389061466,-674874326,-451926753,-1179592069,1186455753,202625667,-1165284782,-1623988685,-1540193623,2094626068,-504424965,-941350562,-204505835,2105693528,-1685949090,1720230543,1869245124,-828265402,1752697273,884810251,-1947451957,805675852,922232733,1601277528,139724269,783039778,289458167,2053742322,1601204995,-1705327796,-1605465015,1179903339,1424731964,-1247378663,-1793239483,-2003665712,576117732,432856689,-1291924596,1629576407,1749940552,1711276187,-322952018,-134062472,1913334116,993466911,-1885616563,-1784479844,-681844097,1472035418,-768464983,-1597792624,1228442727,-117488048,415857552,-1228734450,2098023101,577947758,-1419748823,-1606562141,149384377,-411789974,-157284773,-1642808333,1901200337,1340542298,1774063835,-2047728970,-105029408,639070487,-1153932272,383258573,339493899,1050907968,1516844047,-347574197,1786646564,23093165,2042812445,994051652,-1556075917,1695254546,-1329372625,-1881116773,-24203156,-277561139,1352743492,2081332405,1538898778,-1179155057,1286678251,610185923,-340750332,498294982,618808605,-1530400567,-543877745,2044808063,-1744444254,374946645,-341603331,-365424099,-225126916,-1356471814,-387935349,-875951754,-955140476,599596800,135179907,-594528294,605245242,1952941768,-423442871,1632586500,-1501002408,-2025062647,-317201113,-1967117072,-1149651559,-305461094,-938580714,453247212,80267762,-1503869213,-220399740,871783598,-1920431444,-1005285904,1593298406,-1603741129,-609871905,2102762465,336656729,-1679294874,-1099512692,-1723831233,-1922092108,1694695911,-194894333,1802390081,-1213226981,2020181884,1132934277,-1931218407,1148577110,-374605015,1929376770,1853221760,674055723,1748770296,1900455820,182466683,-1687067255,-159701340,-666467712,-101074034,1392775127,-1394011334,-655106055,1266791282,1388920627,-2063004185,1706462613,1654172103,28483547,416191966,-428930176,26860681,-1649803898,1197334196,-208187953,398192402,1807125511,-786962038,-475650519,336756214,984412817,-246928863,-1011890718,1767330194,561977179,266417451,35369834,-1951747992,-494448982,-654937240,1352148476,-667386732,-53302315,1683470189,-57922130,1423596955,-521801612,764487101,-226848061,-1629685464,-846346470,-737573154,-1500852312,-711518532,-1121149161,-149675619,-1474781158,-413768709,1435169777,1162190314,701734466,-944485088,-1998253341,-2009760082,518654544,374339158,-725298315,2136145627,418165277,465237903,-442503709,-987482983,1425844949,955940576,979700386,246765845,-1868094746,-365709967,2106123272,90306298,1656047299,252454094,-565415677,2133564405,-1705126740,-353397723,732387494,-841230556,-1440242349,-1279362863,-1858406085,1104209581,1718760019,-211272071,-1730263833,-2050707469,-258428534,-1082741703,-1502581142,1766202482,1714139309,-2048232275,1793795650,1225128383,758552119,1221619969,450590339,-883870210,-433839008,439021066,-23348062,-1419994673,-1446878441,1993297961,1287770072,-68867609,1420837659,1365083300,1419783194,-1505927853,201590657,-1430064082,-172892402,-1458387663,-7864671,-850754775,-771506106,-1507828699,1638015889,681427073,1574199297,-1581863546,1392554737,1309404864,-1573840238,-568441597,1717790334,2084650014,-616494774,550867408,880860498,1732032208,370496153,-736684561,-1125111576,-1050435185,1519938611,1018534950,-395236683,106448601,-1332620410,1534024518,-674344872,2051694248,-727133056,-1969718532,-471273810,1009647493,-1285553008,-1805733528,-1273904403,-1075761395,-290867172,-228174859,1150911903,562822192,1601890724,-2043393787,326448042,1663626944,-1493229452,-715990836,800194952,1241945495,452850371,1545029426,-509339798,-489820509,766300476,-83836967,865276702,-1781517387,-782987647,-281750681,-1208219847,2016028429,-1334693517,-1612023126,-24897131,-1183964523,763379256,-2137792542,341690300,1021400346,-1197002029,1879392602,-1667351508,352570760,676247642,1711654321,324464867,1089626332,-2132493080,167762513,1810900027,140857873,-2067965330,-1463378668,-1965559247,-1919542527,1960294066,-2052943972,111139104,1467355804,-1086796523,-1548710137,-983854388,-1240578109,1366309276,1129624247,-797433119,-183654610,-1474425941,1954198045,645326654,-1454275518,1485660024,371698449,152505472,907569027,-1610297734,-510169961,-904455613,-2022990536,2154689,1408127980,-280637387,542307632,1631101366,-1010691036,-1974898943,629251193,-1971380420,1123248683,888859461,-2011153277,-315591869,1800494454,-1134953843,300996698,1806333477,-1660376890,-1510897277,1821902252,1539482392,57878606,334042228,-166209759,-1834279019,-303106142,627438379,795472530,1127750218,-903052401,-1582871466,1752166779,-274153717,-2070337960,1636858921,-1594566619,951754788,-4062574,773978820,-677157971,492246660,218559274,-2060154360,-655832400,-1813281806,-1160851470,-2125461524,617881256,-1470977025,-1548525660,1539780246,-1920246445,-364941292,-2096527572,529039435,-1757048287,1300182915,-674547676,-909566901,2045724025,1017627354,1020473978,-878300385,-1129044749,1473376419,-1385649449,866318684,-109900293,706735059,1077755817,88540420,2070988069,363675556,-1588786395,974552451,2084854519,746790962,1923762018,1972347513,1351025992,1161067957,2121246624,1677186488,-1099299082,-1941403764,276005501,589395413,881630466,-263188435,-789634025,1628583981,2014204219,-670711249,1819353970,773087440,1731051011,-1006750884,293994113,333604950,-1349108416,-43615523,-2121339687,-879911835,-1586496799,2043409546,2011163051,-443504127,1604926628,37850220,1692871354,-1251192512,-1283588516,1699181885,1302889476,1555191396,369242524,1486480439,-566524447,1389812315,1787695992,1971365955,1881876631,-925287569,-1107562177,-199286984,-2053462652,1908323005,1755997495,-1610127266,1431491602,1442143917,1794459884,-300750711,-952611748,2010148742,-852744941,-569863874,-1978755579,-349151542,14465720,-173588769,-91179207,-238639287,-787706759,1389722881,-1875698787,192656508,575546139,-1846097858,-470011308,-627284885,-1329519397,-20933138,-800722859,1132164777,-645133982,215271612,72993558,942894076,1857591541,813243602,1604603929,-1340469860,1479210599,-1149239139,-1891234145,969067185,371200252,1604784204,1404980294,-1311613892,1948472029,1869697087,857169944,1034197186,-774095048,2099224051,1825903123,-1643873743,1398969981,2049871133,1544782398); -/*FRC*/Random.twister.import_mti(184); void (makeScript(14)); -/*FRC*/count=510; tryItOut("\"use strict\"; testMathyFunction(mathy5, /*MARR*/[new Number(1), arguments.caller, arguments.caller, arguments.caller, /x/g , arguments.caller, /x/g , false, false, false, arguments.caller, arguments.caller, arguments.caller, /x/g , /x/g , new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), new Number(1), /x/g , false, arguments.caller, false, arguments.caller, false, arguments.caller, new Number(1), arguments.caller, /x/g , arguments.caller, false, /x/g , /x/g , false, false, /x/g , false, new Number(1), false, arguments.caller, arguments.caller, new Number(1), new Number(1), arguments.caller, arguments.caller, arguments.caller, /x/g , /x/g , /x/g , arguments.caller, arguments.caller, /x/g , arguments.caller, arguments.caller, /x/g , new Number(1), new Number(1), arguments.caller, arguments.caller, arguments.caller, /x/g , /x/g , /x/g , arguments.caller, arguments.caller, /x/g , false, /x/g , false, false, false, false, arguments.caller, false, arguments.caller, false, arguments.caller, new Number(1), false, arguments.caller, arguments.caller, arguments.caller, new Number(1), arguments.caller, arguments.caller, false]); "); -/*FRC*/Random.twister.import_mti(378); void (makeScript(14)); -/*FRC*/count=511; tryItOut("testMathyFunction(mathy0, [false, objectEmulatingUndefined(), (new Boolean(true)), ({valueOf:function(){return '0';}}), true, (new String('')), '', (new Number(0)), '0', ({valueOf:function(){return 0;}}), 0.1, 1, ({toString:function(){return '0';}}), -0, [], (new Boolean(false)), /0/, null, '\\0', (new Number(-0)), NaN, [0], undefined, 0, '/0/', (function(){return 0;})]); "); -/*FRC*/Random.twister.import_mti(412); void (makeScript(14)); -/*FRC*/count=512; tryItOut("testMathyFunction(mathy0, [0x100000000, 0, -0x080000001, 1/0, 0x100000001, 1, 0x100000001, 0/0, Math.PI, -1/0, 0x080000000, -0x100000000, 0x0ffffffff, -Number.MAX_VALUE, -Number.MIN_VALUE, -0x080000000, 0x080000001, Number.MAX_VALUE, -0x07fffffff, 0x07fffffff, 42, -0x0ffffffff, Number.MIN_VALUE, -0]); "); -/*FRC*/Random.twister.import_mti(444); void (makeScript(14)); -/*FRC*/count=513; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return mathy0(((((( + (( + mathy0((1/0 | 0), (Math.cbrt((Math.fround(Math.log(Math.fround((-0x100000000 & Number.MAX_VALUE)))) | 0)) | 0))) >>> 0)) >>> 0) | 0) ^ Math.fround(Math.tanh((((mathy0(y, y) != Math.fround(Math.imul(Math.fround((( + (( + ((x >>> 0) , (x >>> 0))) >>> 0)) >>> 0)), Math.fround((((x | 0) & (x | 0)) | 0))))) >>> 0) >>> 0)))) >>> 0), Math.acosh(( + Math.atanh(Math.fround(( + (x ^ ( + x)))))))); }); testMathyFunction(mathy1, /*MARR*/[objectEmulatingUndefined(), new String(''), (1/0), new String(''), new String(''), objectEmulatingUndefined(), new String('')]); "); -/*FRC*/Random.twister.import_mta(-1801952298,-1304743718,566043852,489805015,-531543359,1786345519,-829788740,1809833959,-272370180,-1569096817,-333771335,-1728908818,-810799265,1739212347,1881055306,-297506658,1074876534,854883583,-1388488397,665796281,1327904010,649992960,355955485,43632409,724351988,-774051325,1737934502,-1397833407,942326083,1130906423,775804857,935876639,1745232697,-46432185,784674102,1687665621,-14163184,-1853273227,148760616,681146315,-770793279,1688546986,-835577588,897871423,-1539669165,56220167,753310273,-603508153,1753098616,2009569717,-760031267,-1343082931,-294655843,865224532,-1785190316,-1436515526,-27780820,787748884,889061889,-1147729143,-19081051,1026571126,-152324397,1316039635,-1454843826,-1584274525,-1670221360,246186333,545690855,1505422878,-1820177112,-1936013047,1285284413,-1546185697,-1259493085,-1402571015,-2111631133,-669152663,-1547046789,-1935357910,597883391,-1539043810,-1480535244,-1403692587,-132406143,-2139773779,441511355,345790764,-438565431,626723500,-1209815468,1216344343,-554345278,-2111341471,543731447,-2008992405,-910007493,-1156309530,384260299,116909453,2128448661,2035927847,2109966518,-5698020,99510853,1168266856,-1203761238,1432576230,-161129667,-1519079101,-961144838,-2085397929,-1458388301,-678748865,2084740225,1227077836,1611744546,-232576475,-1334546670,-1230053304,-1252913799,-235395407,1091571159,-1747512949,-2038044562,-1533686654,1503404301,-836735734,-1132259411,-258590724,-630158807,1052592093,-420992453,1665565431,-809570633,-718400779,-727524927,-1388656067,-171328389,-1946305535,2056109345,1263965882,1660959368,-1836357218,1903082066,-2111757589,1866218592,-1545797305,106955876,1410804007,-234054733,448825771,-728836838,932824174,708745945,1041613585,941012711,-1819979995,-1471114908,1353753653,-1004135191,-197095146,841956400,731689125,1025303429,-1728556711,365833260,-1420697555,-333087041,1762719910,-1412252055,599201056,1385801299,175029157,636842384,1186012161,-1336408137,26323653,-2108138972,-1285290603,-1144413858,-1173380171,-947087757,-380356045,-1963300586,-1932966627,-1553229458,-150805985,-1291400575,1034853362,420464217,-6287540,-974365132,49677389,-300954265,-2052651475,1701421595,-1200157644,1003274361,-532490889,892574877,-1911838610,2020411560,-2131213983,-238956250,1380183673,-226943662,-916064355,1863320487,916329303,-1151860637,23173495,-1973896162,-887680425,679730964,-571400836,148868890,-1610881269,627304837,-925513759,-1273174399,-848055627,-145152961,1977060388,-81366463,-469798353,1349830865,-1481644522,1811902017,795466255,2124364685,1083333881,564432806,1650039648,1129589538,119035447,-395295372,1749402670,962483233,-1367618130,318893810,-106325192,1891386068,1092389315,924918987,-595657114,1272186637,661268468,178398538,-229206488,-373642128,359312675,582579217,1474576028,1668211520,-1742784259,201736099,1224422452,1573690224,994264301,-1745876199,-379858334,-2045436988,-1423199459,2066401879,-82829041,171686206,-957911072,1199507514,323494050,1906233704,-347109765,142483756,-1618197724,984022517,-50282327,-485338451,2037748211,1416135902,488181032,804223012,-2002080507,875732847,-167016353,-1025150349,1245343749,-1188564876,1452198683,985016593,1086668429,-1460906250,-1536806376,1307482478,-912138877,675375823,-325192047,-1720884567,1108836714,1970932352,-425047093,57392124,1636449167,2005701087,-93370330,514747562,-252590258,-133708269,-1983934090,1069122711,-759873515,299832789,2005425989,1024797938,-1909070299,825541587,-1764878343,1749974441,-2001833979,-2066150097,320658838,1615357098,101206299,750457159,982708841,-1816469580,1018646214,-1931346949,-1579729014,1815654704,119236401,841538651,-484104758,-1173379293,-784207991,-1619263957,532478506,674423260,1901369125,-1821897580,1503275796,-259069345,1834619336,-1088148846,320927261,-872172502,-1646990409,-423352160,-1357749296,-1033470503,-753789884,617884579,-654443494,1563208858,-1378310197,-797269223,296956456,716350543,-1036491798,1393224318,-854654441,509848995,-437615369,-1872613493,-1521045866,1780778272,-327565773,-1043143499,-1181881208,-1917931037,341108358,1924198587,-1976907710,-1830494989,1082214578,969905434,1339727281,1703108167,-512554103,1885988301,-2091395618,-1953350022,-1102523545,270426248,147111250,2079000747,-24708614,-197637370,-1645243034,1738553363,-1014117457,-988911159,-1421114,2112221696,-1795193782,-458957448,175096490,-1397794509,-49110667,603912913,414664077,337514792,-1599186906,1051966636,-1105782367,1259359233,-1770060279,426661778,728394224,-1703504933,-939603961,883124164,638241748,301161674,-1590348711,-1553879915,1868923718,-496163155,1667505408,-42907518,-2036092252,692915459,1754995506,1299706225,130313085,2054725386,1400167607,1491090675,-2079900366,-192054279,-1251295838,1674422448,-486890823,1189817432,-1639992594,1535021770,1805354471,-1264938935,-1420138658,-391995421,1985708512,-2002592565,-241492053,-200919926,-1502226465,-808280685,369080670,-382415373,1748034014,112970838,-228152415,-1918465554,2018752316,2129124529,-1075560017,-771274579,-321182760,1737602594,-767381440,1310066842,-363529288,336959926,1857387182,111264272,-511389874,-901341343,-385651916,-661866881,-658790472,-300064143,1361072113,-50169637,1743946464,826390020,-452401065,1697035480,-480072831,2065976037,-1243087774,713796714,1974045043,-448970859,767911938,-1633926808,245136039,613372268,339303049,1713644308,-682096401,-1154360010,188022500,-84796209,382295324,1692221305,2133066036,-2023510922,-1850476352,-2115872403,-1909851530,-1062593943,-174972970,2054377799,620043416,-479635052,1607072765,-1104727211,-1500984240,-1834620772,1983775882,756783911,-130688423,1327343444,-1069092623,-292904376,-1276022874,-551485866,-21649649,-403725527,-1095907601,-1657597527,-299763571,-505258201,-1814829878,-743824063,-1466529675,1563066897,861817158,932919850,-1946963511,2076996878,-693360362,185625330,-147865501,1442733836,1292736475,-7929649,682865919,2016096203,807406715,-1505619750,887363801,-1711343483,-695251358,1325519178,-1803549884,1091648938,-130222230,-1308911204,-880246411,1776080713,765187953,148989748,-1995639020,1695134184,1732964794,-2029814392,1113692674,203063295,-2022924641,1429231589,1248623313,-469309899,1018370773,-1096687938,-1789473612,-1230905499,-379092216,458717654,291046366,-1073245300,-1356357955,2039061524,2146544547,-1464971327,1220930619,-863091202,-1181857254,1821160978,1271948092,82970567,682918911,-306775401,1939967145,-168568469,-883341516,867603721,-1553406943,1545486086,1541306269,1841636773,-1734784108,-727140420,-1637742646,756128897,-1095586238,1218946173,1964751464,949150263,886740197,-2012860983,-1895995123,-287984617,569580403,-117439134,2106480777,342802533,-190753444,1576821326,1316744189,-1252467943,1070459054,555457393,1661085365,497016907,1518883782,-2073811606,2037544050,-345779149,579409903,1351117072,-336625721,1682341803,1086008105,610665397,-1495045928); -/*FRC*/Random.twister.import_mti(97); void (makeScript(14)); -/*FRC*/count=514; tryItOut("\"\\uAEA4\";"); -/*FRC*/Random.twister.import_mti(120); void (makeScript(14)); -/*FRC*/count=515; tryItOut("b2 + '';"); -/*FRC*/Random.twister.import_mti(129); void (makeScript(14)); -/*FRC*/count=516; tryItOut("while((( /* Comment */new XPCNativeWrapper(11))) && 0)x = linkedList(x, 76);"); -/*FRC*/Random.twister.import_mti(195); void (makeScript(14)); -/*FRC*/count=517; tryItOut("/*RXUB*/var r = /\\2\\2(?!\\2)/; var s = \"\"; print(s.match(r)); "); -/*FRC*/Random.twister.import_mti(285); void (makeScript(14)); -/*FRC*/count=518; tryItOut("\"use strict\"; /* no regression tests found */"); -/*FRC*/Random.twister.import_mti(294); void (makeScript(14)); -/*FRC*/count=519; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(303); void (makeScript(14)); -/*FRC*/count=520; tryItOut("/*MXX2*/g2.DataView.prototype.setFloat32 = o0;"); -/*FRC*/Random.twister.import_mti(316); void (makeScript(14)); -/*FRC*/count=521; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(326); void (makeScript(14)); -/*FRC*/count=522; tryItOut("((Math.max(true, x)).then(new XPCSafeJSObjectWrapper(this.__defineSetter__(\"eval\", ((1 for (x in []))).apply).watch(\"toJSON\", Math.acosh(x))), function(y) { return /((?:\\B^{2,})|(\u728d*?)|\\r){2,}|(?!((?=[])|(?!\\S)))+/gyi }.prototype));"); -/*FRC*/Random.twister.import_mta(-1542506216,1931503799,-1893261511,-1120009065,1285182702,435587698,1391478413,2096215807,1581976337,-160734831,1729302791,1688745131,757291973,212613089,287899547,1912337649,558349049,754430163,-1514492731,-973194200,1882919040,1860321747,518513143,1021006073,-646062356,1052545570,-2003059966,-1083879564,-339194381,-688494608,116105698,1502010042,318754142,883899947,1236914060,2037964240,1341368203,521168606,-421556515,76902646,-653725685,-809790619,-1248786912,62336445,692011639,2071841141,293535267,-1142060753,-1223375525,1499797186,-1497283033,-393967417,-1414559733,-2023055932,761525921,30134311,-392278619,1366358386,1746409091,-2114491729,-1931825669,-328506580,342154894,11662737,-1485489248,1217985272,1071267647,1124951501,-975299525,-783445781,134116323,290988976,-641501919,1048321173,-1463219901,-380072278,269393340,-1379206086,-1523527788,-1275230523,-1480197267,2037106160,-1165257402,3693834,-185136501,1253869418,80893489,-1888885929,1184161759,2111173694,711934139,-1806994601,-751833077,869202795,-1948158090,-1724596677,581832647,1427681484,197180121,662974456,730705722,-28582350,-901343016,-1584606022,103036844,-11968959,897076110,471674388,1832526894,-234953887,-1360062082,-526759263,184083481,-1472964149,-455660393,-561905447,333990507,-2028287521,-1511860437,609097034,1599694184,1689495453,2093138071,-1566528752,-1046936949,644646168,-1886994704,-1704740584,1259688632,-1012150303,1302700792,-776941364,1040701618,-1245205130,78674374,-1498971341,-2103950822,476802605,-196748768,-1671085692,361449254,-1748890210,1034005526,-515267156,1318547400,949997434,476459832,35733400,1262474022,301294746,534803839,1134280132,1985426758,-2064213369,252618307,-536192444,-142547209,-752143046,-1288603449,-1224621740,-45296108,203934205,-961899940,1669343016,-1446542682,-196687704,435588221,1505480933,-1645215909,-1749641667,1082296654,1883500666,857240496,1802708188,-979266180,696974533,-1861908090,-844994324,2033514511,828925629,-1881210311,-29557727,-988402119,-1463038436,-1395810568,-1538910756,701531876,-214089578,-37770792,-913216267,1678667835,255003327,1089141101,2057822672,1169765379,-961675949,-1568069544,-1941343074,-600678388,-83649370,870269138,-198137443,394918242,-1774887804,-774218608,-1069773877,-2144070760,-85036695,1994845224,-648490336,-1748789351,-1334541034,-1018244774,1968862459,1308272651,1508911046,-864218980,1339908471,-1005574307,677713836,-583500182,-1305719856,-1861961259,-1059195308,-1471405343,-715860222,-1254843437,1224228583,-40094353,694170144,75471412,1548227389,685393858,1935299356,-428528325,1785932203,-2109111418,-491484216,1939198588,1688448188,813234813,1769398001,-931331889,-1545627581,46714848,1498947484,-699715630,1969881637,1472793287,1782233039,-278481225,1361695803,357469548,-1188246878,711091157,885252861,-225706518,672001114,-584071149,-2146469875,1073927962,179520110,-1243237247,-1418825089,-1148139898,-1547546046,669435654,-1162382314,-971013324,-1923191148,-1357357473,1828737761,1958471911,-718983162,476404132,1603624146,-1126732060,-1930099640,-435679661,-1135070183,439843737,-294516279,-1547262761,283395139,-1385860689,1955327673,1941487613,143198636,1426148533,1242613,1384311965,-1048414441,-180312858,-219006329,-330617254,274734512,-1337569186,1027831459,-1157253494,-1737053985,-1749962355,168292723,-730912071,1599712233,-1783488611,1077648450,-148746626,1628539385,-918956763,1802284915,-1561017737,-360866574,-726743897,-985626873,486955124,-1413787180,-527794973,-250906893,-574284388,-485768610,-1446875335,78925578,494237648,728981533,188946351,-1799817221,2003808317,1569847202,1691278709,1247430186,-1877064097,-1037347614,249633114,-473103292,1405309697,2032358592,1348212780,-1487200460,-1940431061,-1414061591,-560377553,-79349282,236636936,904499326,1358433499,-696204421,1942430882,-1486689445,221949375,-1214224999,-1898031843,-1357949754,-1450678750,2125684643,-759554036,-951799744,-491258348,606132167,1849680152,-398541124,507142098,-712384804,-200485768,-141950838,-1285619221,228858021,-1063012416,-900419832,-571965731,-1645124460,-463683187,-1628589714,1491036963,8518069,-1127956065,-520696614,-1203482239,-19122362,1110464299,866003579,1121600491,1191286279,-462945043,1400754813,-328709689,-919773884,-101315609,395606722,-1259758347,1025840743,477433675,-684360794,-29816179,1805968065,478949808,313582365,1882682968,-2005580551,-451878301,957840164,2065959119,-1695003862,-1349926710,1837440857,1603623735,897831878,618484293,468515595,80423165,-1622696485,-1144083466,-1540083555,768884527,-513220495,-2070970059,1434552913,-1205640587,1521931386,1281545197,-1924870349,1323985993,-99976092,1548187698,-1615501347,1023126042,1766510250,-117439937,-795783695,-1366952116,1718562106,1044430087,-1297102148,-819768644,-309634307,1445659461,-173861677,-1930043121,2056939703,-883341850,1578569696,-1801499663,939110990,-1815970570,849145482,86162904,1770189179,1551722307,-563767231,303541983,-673710814,-1124848182,238517350,1403930378,1161793370,1049997067,-1907036546,4286976,1668587129,1768058593,1657834265,1140911691,-450507725,1521569292,2120383721,-1774895534,-2032453220,150896480,-562103398,-1729213994,1878297725,-802760397,443028706,-220931224,-1529317954,-573315270,-1286365334,1892239870,-1172086654,-218783651,-1093098887,-271679837,623657825,-360353935,-523479716,-1155927615,-297936487,850119845,496646529,1328102684,294914617,-536158991,284617189,-1672457512,609685821,-227637130,535175005,-901082193,1447420852,399072522,-1869942629,-950026678,768734574,-1451683341,986466193,-542023072,-1352992227,-951634340,-1783494955,1264604218,-1001883779,-1446015772,-635428725,762534250,472432854,-287610124,-1073861122,-968055203,-2062297962,798636942,481901482,-1155807006,479628325,-584849067,1205576073,619467264,-1597494369,76005604,-363361526,559015416,-1847124032,-37291257,-11718629,-4855952,1374256838,-1405033639,1814360607,-361490031,-1311389158,688332865,1096353850,-1375264714,2055647441,-1577365386,-2147294666,-854258362,-2059873966,533148219,1143256130,-1955523475,419808330,804592535,2043137883,-1491235034,1961758457,1017199267,-70561195,-790316614,1670307186,2115361109,-1511335265,614218225,1284750430,864563866,-1845213375,-739713360,-1040391232,-1558470650,-23422743,903759455,1927152898,-1827015312,-576218140,736789945,1434453597,-73019818,2071787190,-1840753657,363849249,576562662,106671030,-1637144280,1900772454,-1561848870,576980047,-1399057144,3210907,1557738925,-1311736353,-641369322,-1638363226,-1195703441,2095021940,318590852,1039717665,-254184900,1487519513,513056313,2035771318,1083946295,-1229127177,-915356461,-2142977234,121196609,729514348,-997417496,751724044,-1918144678,-1048666440,417817168,1844279690,-67866120,2075068733,-462850905,-71034542,1798127867,407946803,-177656497,875641795,2076865690,353535367,-755906678,-1749581643,29448049,573631188); -/*FRC*/Random.twister.import_mti(603); void (makeScript(14)); -/*FRC*/count=523; tryItOut("Object.preventExtensions(v2);"); -/*FRC*/Random.twister.import_mti(613); void (makeScript(14)); -/*FRC*/count=524; tryItOut("/*RXUB*/var r = /((?=\\1.+?)){1,}|(?=$)*?/gyi; var s = \"\"; print(r.exec(s)); "); -/*FRC*/Random.twister.import_mta(1760411773,2072763680,-25114192,493429432,-1778184685,536433491,-889883399,-373789088,-1749101615,-832804327,-1330622079,-1957546560,1652468,710042852,96565818,-1535159668,1847298247,257582984,931042373,-1069618635,-187743156,-635857975,169990032,1649705791,-1521207947,1477092787,-1073233817,-803783620,36830546,-1166683442,-61726548,-1476783645,-449838352,446454465,-1911315372,1909600678,-503092846,-62098188,-1209422680,964241877,-2075192870,-1852717322,-2033964575,419977749,-1823480277,41268024,-1235051838,-945786966,87063066,-703236977,858746109,-557262331,-1805470784,1934452293,-1747311446,-18231033,763884515,-1819208555,396880886,-551252958,356593647,592445862,-75448050,1471837083,-2123779761,-598417076,-957579568,768770192,2004173110,-771099058,-690820542,755450777,-1446890776,1565191501,1858360247,-1160538698,-1304622173,-1890877200,1940253911,-1172110185,-963214726,-273650946,-20673284,1287473977,1081213140,1910830262,2121274408,1096494833,-791207034,-1097540569,-1900597003,-1078561338,-780417197,-436574390,-983300569,1410328036,249252187,1854301637,203688097,-544455630,1767902381,1927942502,-1068721466,-2075286116,-1954682223,-205179852,885182619,-382963593,246233970,-1875854621,2096599898,-1760258327,1230695239,1118612080,745115704,-40907648,-2035477274,623030718,-304535717,-371190551,776124295,-1997280486,233401890,1121974648,1335938729,-622807507,183139589,1097268060,404061360,1649742232,-1030757524,2119305633,-1962620549,-1080113180,1964392797,-1090926979,-2032895729,-1771958711,571888349,-1598965246,-1170944811,2010641994,1912462060,-917727278,1724471148,-1345828374,-2129494534,-393550635,-1916640481,-1992312741,1709796000,-1336242482,-2106181162,-243599255,1237508729,1171606658,494638180,-63883745,-1605651713,-1371352400,-1131050669,1564512379,-735393525,813693090,917559306,-428096389,668016620,1142395330,321853441,-1017453407,-960798508,743604103,1197971308,-1312210994,275404121,594035066,860959275,506921614,-88050377,212821444,-205969170,-639761883,1379814584,-938613164,594048648,-167751512,469410820,-767311388,-34539458,-1210663569,792807519,1622718335,-1559527602,57616817,-964611838,1136253864,2078044014,-1631567302,623407434,1199259216,-632847449,190794118,-1113083979,-1583486309,2035430932,1193499021,-821819129,-1073746948,6426460,1598166089,-1723540429,2034240253,-1907821784,1140954402,1465326302,-1034421015,86120758,-802298998,1281510885,-604695942,1831280171,-1438607185,1971093165,534734373,-48370892,-1034704313,-549173896,-819238379,792446000,-54590294,-1438278663,-2106708494,643070685,1623675579,92883562,-1768287726,-1090113539,-914704193,-1190927458,-2127693035,-2015249597,-1191753086,1821912690,796913463,603351110,475726764,595811320,1176728048,1980528881,-1533395948,-1815553539,-1342999613,1151123682,205406546,1400798621,997458855,-294443805,1271755898,2129993018,-2060359299,533068790,233426635,-1116882874,-1077212463,-1381147179,-468005077,606245854,-415182784,-683740740,1212200465,-159333446,807051911,686238523,-128961008,-395656765,459001192,-1871710549,-651961589,434925782,1081196243,-579022210,1597097502,798180345,-1572996117,1893487382,-1217198889,-614463244,-1496762006,-1169044605,1271465887,-294389553,-70655172,1009077456,-1328944643,1709346376,1867933977,362872256,-883937017,-130767063,2064800497,-2126404309,-570722764,1282928797,569160882,-279556399,1211419624,1403220148,2063783991,51285400,1991662872,964920640,-1288842664,-1974728726,821245970,1418102299,966438184,1595529089,-531251653,-835480343,479346704,-1482669873,-874594865,-658578123,-1837993389,-36524313,-291807136,-247152669,-1039150392,1472672371,1363872054,-447213587,-871537092,-1037847018,-1003763260,-708978153,646133604,-2086849159,-1546351600,1539815106,-1088490737,1057896095,1801778620,-411368257,937009748,-1754636068,-1808091894,1666830747,-237547129,170617097,-745606029,358109979,459603384,1018276131,599223555,583312252,1766753210,-1454519644,-175107104,1246582527,-1004935534,-1789253494,252717921,-985872840,1181960485,1236841156,38242621,-979636858,1304970084,959398912,-1696920843,-2042998939,-1817292254,914359791,108572138,-1729002824,1223228160,-162421768,-1644563990,815606572,974366972,1274184629,-486649648,-1251797661,-1303969704,-1733846851,1169688531,-444010543,1072297974,-1696945257,1125711473,468010353,-794497645,178324932,697763636,-733523821,724869933,1583937026,758882618,1893319189,-469949484,-1128981925,1202631996,-861766135,-2053951633,83290989,1906732234,-1739478882,1758727247,1333099543,265886019,52383429,-326444608,1606193231,-1061825471,562803731,2028599771,-628238510,-1871146634,-15572935,1568078261,1047140227,-1465742053,-714352487,631356003,-1436211857,-2136948598,-1237637001,-1929021439,2020138779,999244265,-1194717243,516136778,-1460779988,1025063034,472305994,-552579324,-1157132083,-1125613888,374050061,487581199,536693765,1588995237,-1692824660,129189850,2112105448,-78360933,1842310789,-1121683045,-2119473602,721840200,1489295382,-724907855,-523473430,1493574178,-939451094,1864069424,1410202441,133962838,705616033,-1654866649,-883096451,1758588268,816028857,-1273188140,-1978194831,-42148818,-1374517544,-879321176,1443216483,-578555340,1649141062,446432754,1312242035,1298835557,529186373,241753102,-1182036907,1941616908,1771541024,-1435283604,-945762243,-13337862,1259481353,720858332,-1512363927,-1096266825,318031202,944858488,-1674872056,341862113,1857605372,-1551534919,792328042,487970789,834367281,1796409524,593643467,-43750081,-1588106731,1263072286,-1363620697,1709111781,-550150529,-1078507621,394663642,2052058104,-1818227354,-1194526621,-467841665,2071233931,1445288817,644218787,-1184406340,-334643826,-113889387,1082075250,155250132,-1178671864,-174752023,564701345,1737105200,-763639235,-1783428862,131519680,1111266327,-1166588069,1312399220,-773236777,-720832044,-1415823935,-951935904,-1869824663,549483659,-594824761,-1810361881,-1355009649,777828373,-200759873,-1820240315,-1655728143,-726085467,1148923424,2040257587,965955874,-1563830638,416857387,1048582705,990935590,-2023989270,1447876641,932783393,-295933580,233101251,1981583981,1726139197,1068854958,546072463,1129993112,1206959020,157620785,-496887829,-864435366,-1232493541,-362194399,-1020592656,172648129,1499140004,-51796625,1376515901,-285737465,1493856166,1536660191,670172923,1586181808,-1939264804,-1710754859,5355452,74875368,407447651,864304567,1527960368,867216017,-1586220734,-1090273248,746642546,-47612682,1173973154,-105343743,1077701810,6944592,941422239,1086723334,-2051845262,-34122600,-1198248905,-1351763005,-1502562002,1065297185,301490694,-885991591,1180355709,1113954887,1565866934,-736629492,-878787860,910728321,1521280928,125907613,-737612779,-2003227233,1452815385,865833521,945425274,152502131,-1429658576,963022319,-2146905265,637566780,1126506383,601482753,-79398991,229592052,976016967,-216619293); -/*FRC*/Random.twister.import_mti(299); void (makeScript(14)); -/*FRC*/count=525; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ((( + Math.max(( + (( ! (( ! Math.fround(Math.hypot(Math.fround(( + Math.abs((Math.min(y, x) >>> 0)))), Math.fround(x)))) >>> 0)) >>> 0)), ( + mathy0((y <= y), y)))) >>> 0) === ((x * ( + x)) | 0)); }); testMathyFunction(mathy1, [Number.MIN_VALUE, -Number.MIN_VALUE, 0x080000000, -0x0ffffffff, 0x07fffffff, Math.PI, 0, 1, 0x100000000, -0x080000001, 0x100000001, 0x0ffffffff, 0x100000001, Number.MAX_VALUE, -Number.MAX_VALUE, -0x080000000, 1/0, -0, -0x100000000, 0/0, -0x07fffffff, 42, 0x080000001, -1/0]); "); -/*FRC*/Random.twister.import_mti(495); void (makeScript(14)); -/*FRC*/count=526; tryItOut("print(h0);"); -/*FRC*/Random.twister.import_mti(504); void (makeScript(14)); -/*FRC*/count=527; tryItOut("m0.has(o0.h2);"); -/*FRC*/Random.twister.import_mti(520); void (makeScript(14)); -/*FRC*/count=528; tryItOut("testMathyFunction(mathy4, [({valueOf:function(){return '0';}}), (new Boolean(false)), ({toString:function(){return '0';}}), null, (new Number(-0)), '0', (new Number(0)), ({valueOf:function(){return 0;}}), [0], (function(){return 0;}), /0/, 0.1, -0, [], NaN, 1, (new Boolean(true)), 0, false, objectEmulatingUndefined(), undefined, '', '/0/', true, (new String('')), '\\0']); "); -/*FRC*/Random.twister.import_mti(554); void (makeScript(14)); -/*FRC*/count=529; tryItOut("(this);\nprint(x);\n"); -/*FRC*/Random.twister.import_mti(606); void (makeScript(14)); -/*FRC*/count=530; tryItOut("/*bLoop*/for (var kfvpnc = 0; kfvpnc < 2 && ((c) = \"\\u19C5\" >> /x/ ); ++kfvpnc) { if (kfvpnc % 18 == 15) { b1 = new ArrayBuffer(0); } else { /* no regression tests found */ } } "); -/*FRC*/Random.twister.import_mta(285101994,1335469773,-1387679096,784084365,-1856328630,1892709546,-246474657,-702467494,-1887377127,1493250177,763172527,259647341,451947313,33551320,-21663610,-1313217293,-954669179,-1556328722,-1040303074,-1595247244,1685907533,-1174238223,-179042059,-1245135386,1571778333,1818265717,1302996093,-344073274,-1650841107,-938330079,1206960175,183557731,-271983530,-1077682705,1714063257,-1712328475,1128202752,1204946718,446982961,-1189079008,-199189061,-870242014,-930907174,-1890447409,529333561,-2144811315,1684238351,1065096933,1230390275,-1387239388,189310022,-879083554,-878154827,1395247683,850825453,788997316,-909764425,-2083329839,1082734369,-2019173279,374611077,399423526,1871262773,1390504965,117153226,1406510033,-487198564,-1314028310,-730323191,-981732359,69045947,1122280727,707671117,-870220734,133549865,-1910436739,181364765,-11470607,-1972244838,-624898712,73567347,385209438,1428511279,-409350057,-943325023,1948918557,-1823323269,-1917797974,2028639611,-861409849,1737121691,1839081598,1721587012,-1794998992,-914192821,-1319312616,-1285663272,-1365124162,1154820781,-824512190,-1005492852,-2123290762,158213840,1913555248,473719807,475825901,304729983,1355844451,-346093994,-304364341,709755848,431523843,1512231091,1074893677,413276643,-97390897,-1097013935,1456606439,-1383623975,-949418296,-1111027579,-1285436936,13063197,-648886085,1711481332,1238271839,660973934,1312172623,-1956786281,1870556866,935912408,1233268150,-195862989,616631313,385412744,-89982765,246548028,1545308246,-1083904882,-363958624,-1880924518,-1417692365,-1175856104,-1478722797,1402931925,957539022,-723610729,2099271618,-984624679,1282715489,591215937,-966311167,-1208412982,-898571070,-860434635,56172017,-787695171,-1345346915,1754531830,-405924871,-1259164806,-185765898,1364911712,-113607698,1716294072,-446616595,-933064000,1404420399,-1292917682,973520846,868756083,1907899531,-166501920,-2009598507,1243853410,-1487786191,1368438775,671195288,-598720201,965551051,-242143195,1901465151,394448541,178710644,145785541,-326540480,-1776148270,1383637101,1070240414,-1957594030,1357676129,1371132693,-657009833,459042334,555415762,-1201838907,-224955003,-369093486,-1932516117,308004898,2060485090,-1776089853,49713867,989058935,-117668258,-471887894,-1947723534,-1951414974,-2132728198,-821675674,-500594884,-752052863,-359012594,2100541814,-1950819174,2060126177,553651894,1441837597,345769170,1871965317,-1440185420,-1600942074,-1254169140,-976584149,-175231480,1435432187,227255094,1197714866,1908810904,1633931179,1871395700,1534599675,-642028248,-208945814,-580109485,1225477688,-1531651071,1912399712,-689460680,-1073199537,1568954009,-1996920897,1057924023,-689712218,-1391341768,-801140254,-2080649844,-965581590,-1471179269,632870100,2067379416,1071714156,1786751196,-48387476,1875864266,866847555,-1376484836,2022330034,-1855923710,-1607786067,541035093,2023513018,1594017106,-1931404235,-1395142572,1219830494,-1971294208,-1614813851,822723317,-205317625,1314385491,-1829250949,-1140793915,-1990287311,1926361169,-664203383,1489581438,1203674157,1923764328,-451542390,1018243404,-1133018674,-1492030994,-1314377412,23321189,758723419,-725532460,-764130917,-350057674,-1044875123,788897179,1491680162,-759568400,-1878739016,521011385,-559392279,2044418981,-519082512,-1503315792,-1283041785,-1562589352,-121206856,-1630054876,-1536360534,-1689608955,-1549773120,2118717868,98945727,766442194,1239718031,-32556677,-2099248300,743685908,538556585,-1854017730,-831599004,1703248389,-1717885648,601294966,-330971652,1776653064,1020609550,1634560750,1421849204,-638817394,-1518353021,-1344464858,922373226,-1445682195,-1563782663,336083502,2100148468,2118738447,-503344469,59838673,1939418165,-1137605949,1202575529,-1623244453,-1666352349,1973676467,-1307104413,-1579335707,-1255549633,483350114,1159973579,1720327892,1641682142,61735710,-748434097,-723470745,-514636358,-1055031039,906492112,2056350610,-1610929467,364275506,-874055560,1804525311,-1090631050,-96360066,879136148,9694366,711876446,-1003422697,-1649862067,-1934995694,-1821049702,1058705046,1677478773,-301247998,-1848133379,976139323,-660188469,424946242,-26804187,42489748,2071177431,-613509249,185132495,-82850646,252704091,1517985245,72860988,1411060139,-1017593663,-1204099070,546786926,208248849,-979307513,1214299640,589042522,-240473993,2068417110,-1624825754,-1646534833,748384083,-1834189914,1078373729,826366994,-337596597,-176538183,2090010713,-1964805474,282236669,-797403784,-722496205,1327709937,-273534399,-1895442144,1021543572,-26838467,1440430527,1609517572,-150672289,311195959,-1016253207,-1234305374,-1509286128,1592485961,-1778018228,-760765375,1938098475,2125289453,-1437567785,1321533455,-841890563,-1611899216,317461800,-2019875338,1972508882,-326392760,-1118628905,-2047119273,-1540889920,1147821763,-1854798330,805630309,1151587929,2087711187,-882893829,-2043406004,957522956,535960386,-246274673,-76348593,-402038633,-352505685,-183458782,-1721988665,1990678188,-2048386819,957212138,696987043,820909354,-1027053085,1654505856,-477829125,-857813065,622682057,-2015147044,1546995152,1392842322,2025324262,256018807,-2115049132,-1513944677,-1349633929,-1506238811,1311461652,-609365665,318956382,1870820623,355869297,-1052374291,763552526,1550157906,1341291976,718842074,-1868074979,-2105043183,-1823551855,651214125,638691063,-1093215306,-669337421,-1140616431,774518737,-1415260139,1751032364,69932726,-78959647,-550012429,190150471,-1439276737,-1179627057,1417256007,-2013992058,-145513868,844368713,1656319004,-1002180687,515513499,319438355,2056874449,2071615195,544788068,-675856596,1489335252,353072265,999456306,500197435,1530916252,827516865,-1303650910,-276628004,-580449783,-859336144,-1858740435,-511907736,540140153,1440187448,-1656540279,-1043488399,1698463362,-1048971510,41569587,-933708878,872425863,-42592236,1965167041,1377965983,351092476,-1387419264,-881630553,-477620729,-353863025,784802438,1431271539,-553162855,1109667769,884519416,-760781067,1960929612,1291832186,-1516259919,-238159633,1783348477,-822372159,-475445087,1670481614,102150320,125385834,94686567,690027325,546971893,-2090354635,938502136,-526940877,-697247451,-2017234170,-1042451965,-1616563718,-576390085,-1686086890,-1282226551,1003559243,-2052152590,476341439,-849868746,32156815,-1774262848,1785090451,1623100346,-1244570133,1132910784,-782725701,1103925897,1637477310,-325785447,-1227416249,1781232435,-1065694507,1140197643,-177060349,158493358,455782441,-1705009369,877819452,-2053822706,168646109,-957786706,-481120255,1240000982,1573556644,1814221313,-1521784518,-419994879,759653262,-1072995622,1620848439,939440025,-731056477,1732720354,-1184934328,-164043601,-1849635746,1208158847,-766782645,-1472317682,-2070758149,1211503638,1591414695,-1386317286,-450054074,-1788511895,-1767847015,-252017952,-1409789819,1426072432,1033777068,456784794,1029192929,1692682374); -/*FRC*/Random.twister.import_mti(87); void (makeScript(14)); -/*FRC*/count=531; tryItOut("for (var v of m1) { try { ; } catch(e0) { } try { ; } catch(e1) { } try { v1 = r0.ignoreCase; } catch(e2) { } print(uneval(e0)); }"); -/*FRC*/Random.twister.import_mti(112); void (makeScript(14)); -/*FRC*/count=532; tryItOut("do {s0 += 'x';/* no regression tests found */ } while((eval >>>= window) && 0);"); -/*FRC*/Random.twister.import_mti(191); void (makeScript(14)); -/*FRC*/count=533; tryItOut("\"use strict\"; f0(g1);"); -/*FRC*/Random.twister.import_mti(203); void (makeScript(14)); -/*FRC*/count=534; tryItOut("function shapeyConstructor(owqzlp){return this; }/*tLoopC*/for (let y of /*MARR*/[x, x, new Boolean(true), arguments, new Boolean(true), true, arguments, new Boolean(true), arguments, arguments, arguments, x, x, true, arguments, true, arguments, new Boolean(true), x, new String(''), new Boolean(true), true, x, new String(''), new String(''), arguments, true, new Boolean(true), arguments, new String(''), x, new String(''), new Boolean(true), arguments, arguments, new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), new Boolean(true), x, new Boolean(true), true, new String(''), new String(''), x, new String(''), true, x, true, new Boolean(true), new Boolean(true), new Boolean(true), true, x, new String(''), arguments, new Boolean(true), x, new Boolean(true), arguments, new String(''), new Boolean(true), arguments, arguments, arguments, x, new String(''), new String(''), new String(''), arguments, new String(''), new Boolean(true), x, new Boolean(true), x, new Boolean(true), new String('')]) { try{let bhdsnv = shapeyConstructor(y); print('EETT'); e1.has(a0);}catch(e){print('TTEE ' + e); } }"); -/*FRC*/Random.twister.import_mti(445); void (makeScript(14)); -/*FRC*/count=535; tryItOut("\"use strict\"; v1 = r0.toString;"); -/*FRC*/Random.twister.import_mti(459); void (makeScript(14)); -/*FRC*/count=536; tryItOut("mathy3 = (function(x, y) { return ((Math.expm1(( + mathy0(( + ( - Math.max(x, x))), Math.cos(( + x))))) !== Math.fround((( + mathy0(( + ( ! ( - y))), Math.exp(((x << x) >>> 0)))) <= Math.fround(((Math.fround(y) - Math.fround(( + Math.fround(Math.round(Math.fround(x)))))) - ( ~ -0x080000000)))))) | 0); }); testMathyFunction(mathy3, [-1/0, -0x080000000, Number.MIN_VALUE, -Number.MAX_VALUE, 0x080000000, 1, -0x080000001, 0x080000001, -Number.MIN_VALUE, -0x0ffffffff, 0x100000001, 0, -0x07fffffff, Number.MAX_VALUE, Math.PI, 0x100000001, 0x100000000, 0/0, -0x100000000, 0x0ffffffff, 0x07fffffff, -0, 1/0, 42]); "); -/*FRC*/Random.twister.import_mta(745019423,1457681445,-15205877,-481429138,-1928198164,-583256919,-504108109,-837135698,636534247,1532604091,-778601064,2076350214,-1879433012,62471383,1068644507,-1352664414,242314611,-1745096112,1123632013,677113872,845417349,1168681909,68105914,1641717533,2107592868,-866604086,1259584014,2106970366,-1278956352,924914741,60588382,621345539,1098021854,-1617957951,2037705957,-590572841,-1508740136,813524871,1492800211,1919612932,1444177396,551709620,-1563539733,497997240,522767093,-768889644,-1723555601,1290909521,-304400547,-1381158220,-818925756,164372775,1774246969,-151736827,-1838445921,-2065278610,-244651756,-912114075,1477588748,-1329627363,-396117016,1645405554,-1788520172,-2069985991,-321444633,1652551196,543243411,-59364820,2052825207,2126872089,401922595,707212380,1748758325,23037460,-1927621185,-1276284450,-1281954090,-2072052320,1088587194,-2023981388,1149802471,-1723681518,979577065,2020353950,1884516288,-1234098097,1623849506,1537941972,1732378255,1456344067,417670126,-1729465673,1658821812,-102570676,-1545250195,-2036837601,1543871128,1364477110,-1629673106,913387137,-951289795,-1276858084,190009297,-173019844,1399135256,-1901704197,-1570059395,1328999162,-1801517983,1969213312,1113836530,-321082542,-1408561696,-1362378212,-1178587261,-1653002261,-1020046995,1031840785,-1942585672,445395604,-1787332916,1214170620,1423785194,1395683971,-398952632,-1896749250,2145256585,-107337322,-1228488597,429800671,-325472919,-1759431103,907947715,2120115845,-159655127,1404321250,-2092929621,-725543712,-1766907561,-1390815806,-495956032,163288703,367127247,-1293739508,674349215,1640013793,175194797,-145714359,1521308382,2036061840,-797921886,-1794698588,-2037302592,-1664986741,-558723433,-1225273237,-884232970,1567291590,-1972004394,-652284536,1300680707,-2009401853,-353508142,-186303526,1785026346,-74155878,762752115,-2097706703,-292447890,-1153581907,611978344,661509199,273367555,1694201278,480199303,-1683572041,1958632438,49401263,-2042037766,1889052022,-1603328695,-212845521,-372794205,730328314,1550828179,-1955865924,-1279071774,-359198900,215667847,-363577402,730580594,-2127450296,-935653375,444606900,1137661715,51493404,1021895583,-2102775026,621753872,-1742526005,1961775455,-181102028,1148860862,1558342680,1175548012,-1852245286,579916867,-114309771,-1849952228,-522973248,-1197608864,-1492705076,-693638219,-2125540682,-1403312327,1314588924,514757579,-278742481,1000620020,-2085320125,-1598862621,-244899229,-1360145734,1197029544,-386518728,1000205690,1196793439,344656467,-10804433,-925734991,1475959116,-1580224136,-1527125476,374163141,-1432357454,-1365089480,598203659,-85677948,-2100427522,2016459615,-1630715945,-113387105,-2077355151,1492749039,-1819999,50636107,1264763493,-11832921,393527775,965995734,2116688043,1218479306,-220823812,1022627691,-45554304,-1522602546,1264857964,187493471,-334111990,-2006643157,-1547581924,1458933324,1135914002,-260465678,1411905256,1572498131,-1531069847,-1751632815,-2146740632,1559036189,-1914861222,-668986168,260852755,2032461848,-103972790,-2118144542,393923709,-161151120,994517090,932726943,-389058846,-1042071960,-600686096,684963065,1177949975,1920112486,1083042575,-1645019533,-1681495573,1542399750,-1461053208,-980691169,712881600,-152138736,1244313095,-1614889606,1312999649,1153844859,-353587328,961907865,2101134792,-1032749395,-505737717,1731924107,-709962048,1069944172,480652084,1382017678,616057226,-1670642549,958146100,645574730,1064649924,1752632765,1016874726,-1937010862,1510186651,1225697237,-1362587575,372069680,-410499253,-1823215846,-1396209115,1895018335,-1696393560,-919362179,1829505204,1252956436,2072594751,1096241862,-885444282,-179757632,659632753,2058023882,-269300673,328168927,-1887333621,-722150528,998417948,1339181542,784918386,1881538734,1592096171,-1923810724,-2045120085,-1082953262,711014651,-1801423037,-119041148,-1482303738,597282910,297666327,-705553578,1117172032,1869548587,-65145870,1013792995,5665481,-2007100550,1262418556,611131471,-164483738,1182995021,944808831,52242713,-788920610,-459035761,-1107490677,-1588788454,585384910,1660974765,-332518819,-728037797,1188779916,1366008708,468285716,-571821532,1691309762,1233899676,-1156129643,1112349689,1787261094,-1260637451,2018415868,-439474055,-697766441,-1990899009,-759516972,870464735,-1898071506,-445959561,-877087794,-2043626063,585448512,1427297865,567582232,-1301577346,-581834233,1070430790,-1129077383,-2024875075,-69306764,-1630075912,-1512071081,718112531,1966572476,-1912501551,247368886,-1261252417,-1212784919,-1917034181,-1349849453,-1533247554,289943314,987333384,-1268449748,-1318928233,2022623738,2001513395,-1019618265,-354727093,-1559927975,-1521508043,-1329043157,2092958678,-1695587151,-673905005,1033395147,-151451441,1051932119,1789378108,-2119153320,1248719406,1887642915,34757323,-1727857889,568248237,63220627,3696890,1780438679,-1034625520,-254642881,1101137245,-1089523245,198413143,-693616800,1875026633,-633661198,616683103,-708937236,-593132535,-1267678259,-1236219020,1596101834,-1394110851,-1911176209,1612227731,-1466003896,1783213635,-1492627470,2019025965,-2095219045,-1829135285,-1123145361,-99361746,1227305196,-1224796229,1423556698,-1641516779,821054209,293141312,1361948921,-1869151060,-221677620,-1450573792,960890358,510317106,1799769286,-637826021,714933675,-329524996,925371337,792628842,1410293431,-30867239,723296861,1182311708,790305481,584769370,1101080393,1423228637,-1565197618,-2129108561,682506793,1380494441,1933518996,1595372766,-160147360,402825651,1053882909,-1039290593,798506712,288490036,-1287731126,1389403330,729499472,474208009,-2068982008,1382954227,-1040482583,-1087164357,1806295513,-204254119,1504183774,-365723491,1820154928,1032646174,2037925793,-1254776021,-479333341,-603632116,-578576612,1716575517,1021114272,1685765630,853096902,494522688,-1103863340,-53841241,37926452,-685593701,-539473474,694213036,-535352648,-1164750510,-926628846,-888171064,-1967969582,-1863208103,-948968505,1915442497,-1933097661,-151307276,2088532774,-1026961966,1327946977,-100648047,1509768180,2073033621,-586200766,1945696007,-1721792355,1391031057,-527120907,-1007994447,-483252742,447701306,1652179712,125419917,1689291762,-2092107244,-1608493886,-464143587,-1035878784,339019803,-10315162,1292179615,-101554702,1451885749,-2028432589,-2041870148,1780640189,-1892928497,-1451153711,-178054365,1229153670,1581985437,324347265,-1090731132,395388202,-1366575098,-698689122,82724776,-1612917955,1156532126,482606001,-551975632,2118392657,-185024799,-1702033284,455346600,-339951162,-1274121675,-901323939,316985684,-1276594297,-929611119,899925866,-869557456,1037934879,-1003701089,-497719286,1749738085,-1052436224,-2032430006,23836339,1176496501,-228572541,1050176289,1872616535,475373303,1403723637,-1060646694,-71100772,16825535,-507844148,-157222050,698329834,-1590123914,-1728075161,796508557,-759793434,329693787,1029127598); -/*FRC*/Random.twister.import_mti(107); void (makeScript(14)); -/*FRC*/count=537; tryItOut("a2.toSource = (function(j) { if (j) { try { Array.prototype.splice.apply(a2, [NaN, x]); } catch(e0) { } try { v1 = (b2 instanceof v2); } catch(e1) { } v2 = evalcx(\"/* no regression tests found */\", g1); } else { Array.prototype.unshift.call(a2, t2, h2); } });"); -/*FRC*/Random.twister.import_mti(179); void (makeScript(14)); -/*FRC*/count=538; tryItOut("throw StopIteration;"); -/*FRC*/Random.twister.import_mti(189); void (makeScript(14)); -/*FRC*/count=539; tryItOut("with({z: (4277)})arguments;"); -/*FRC*/Random.twister.import_mti(261); void (makeScript(14)); -/*FRC*/count=540; tryItOut("\"use strict\"; /*RXUB*/var r = /^(?:(?!$(?:\\D))?)?{1,1}/gyim; var s = \"\"; print(r.test(s)); "); -/*FRC*/Random.twister.import_mta(1864917194,-1722927204,-854238770,-1043867573,206101759,1998997246,-1026389760,-516069057,-1047272386,-1496697827,1935656757,-1288716071,1868722269,191745449,-1205529662,2058123736,448124474,-1028812271,-1605827036,827880842,-1018024705,1967861998,1792811894,-736828647,-2060896580,-1060733902,-1912438444,1696748982,1484217972,-702855620,-1240164715,-700435168,-1468239640,-1894418287,920563948,426036162,-1313528257,-1217936515,-1606973667,181728599,330669641,-2007499952,617102411,1422396341,-641227947,-1811356171,1082088100,-1539923930,-2139183558,140162411,131446974,-1993799524,2009898545,211349913,-167514246,-823803906,-1560593625,-1058105861,256036030,338262375,-644350735,1627062985,2085600689,-1758148991,-232617579,465679069,-2093663111,506903754,-280150209,604883573,1103780468,859649616,811567115,-1896013504,148572182,-916687929,-1326053092,-906280195,988297900,-450483938,1743197775,499296432,380311140,-730697956,-1256706255,1599763323,2044382813,1417760577,-1720511357,1242182891,-1167682739,1404375296,2102416879,-1674665164,2029020062,-283464477,268402,1562786014,-1324413173,-440797153,-1350172434,-995903868,67570819,-1413537517,-1312576518,-653273259,-727335625,-1047024083,1372889232,1030894320,-1295809887,74166787,-1767989273,2061211429,-1138899213,188894256,-1637816567,-332873791,557532538,926373240,492250463,-1621410466,1409121725,-400984664,-1694798717,-2135462010,1172331,-1508807404,-417425546,-1304578261,1823230507,1053676825,-1536870999,1964504784,-1241360561,-1312268378,-1971871544,1758228774,-1639436557,-1170755032,1466323250,50984673,-568430911,-1086650927,623884908,1791699581,-555974051,-1348508483,1938503593,-768053952,327070374,952592117,174510424,-2052521837,1529663607,927769962,-1910392426,-959318694,-1883417794,-446383644,-9467682,1913598948,516036127,-159493759,-1645582193,736517627,1513278151,1669186732,1005909231,523771563,1934376714,-945351317,-1251661332,286038304,-17202119,-177006092,837906649,-163092514,823080765,-680260378,-202011831,1394064650,1112724311,431286672,-739298112,1561277273,-359181157,-1685414654,703194194,-1965267447,2128399605,166561342,-674423642,-1546972418,-365683512,863154981,-887883046,1080248924,653366205,736680673,255429232,-1374255121,330077971,-417069911,-359066265,-1609942885,1692027749,-838440892,1895936339,441520453,-1578904859,-859623900,792376588,-747586124,881236747,1452812768,1434123092,1557308229,2036866098,1072819952,-937129212,-162641109,-78432717,453171473,-1887924645,-1459305045,-1374025640,-913489534,1680848027,-1494616728,-786431753,1580476913,-1526180541,-677547047,-1234413405,155761252,-1682415521,842581322,1446981033,-116629655,-285503047,1664789157,-1881666448,-1135641675,438792299,485545929,-1745519226,299957455,1770178181,-859725828,-263937668,-1136522814,129289048,-1331235948,935142225,1036339138,1250263244,-2145486064,192545514,-107179034,-462438473,386197221,559416891,-609821365,11683531,727837430,-670015584,1404056957,2133445377,572979430,953680337,118044035,-1466265095,2090441345,-454461737,1389064411,862467795,1517693071,200121356,1135290688,1818848941,-1743073406,59037021,417890419,-103293368,-1240692250,-2082949503,226261211,218927434,1748677061,1828298193,-1491315851,548861141,2133383077,300540535,291826576,-1620682345,1958481332,-157335357,247589615,919416521,-516014132,600394589,-1709088132,-1776794549,884682550,-871768999,1975202442,-1963189718,1243940222,-951109831,-1432187565,-227981958,1737813294,1388611816,1836739345,-142223394,873098166,413383576,-677591403,-712551239,-1214572973,241945491,225809190,-1598596417,-947319983,-1058098027,189404334,-469229593,563844128,-786714637,2070118941,-463819088,2052353015,291021853,-820192822,1460166448,-285027921,595760880,-2114261922,1120442226,174574841,233320734,1147449091,-1282341080,-318543400,-1536172538,1629809821,-863381795,36803986,2043594492,-1342021336,-503564506,-1364273759,-1742760723,539002840,723402384,1753432982,1532143655,794498385,1309597795,1280011958,887668422,317818011,1085370953,1964067819,2109834930,130076863,1383847686,1989600584,270835744,-697661026,161907131,-160869473,-1569990601,1568566971,-1604336095,935025384,-1136347040,-230101893,-1326794560,-666207790,1265364756,634264949,887960430,1377781438,-1942363762,1066804846,1969352435,-176209925,-1818097562,1207600776,2056569819,-374140612,1939311520,583087184,-392668297,749371945,1089894152,1875571949,1826857498,-1315830331,1049917696,-39910513,-857954816,-1358478710,-1876211011,1888768969,-1849417055,-1652272363,-679924218,-2120152289,363537616,-134507233,-2118589932,-397396794,-157613324,-596497933,-1317414670,1000868316,1799426957,563838093,-232900753,-1250690255,-736343845,-736911317,-332642341,-1387413816,1749528027,654264333,-402907131,-1884296080,21174997,-52701473,1536140564,-1192861094,-2101611437,-1577064808,1623471536,235985412,839989236,-849401478,-803798570,-1986294240,2005318901,-1753088631,317481609,55365876,-594446371,201934056,-667809752,-732894239,-963276850,560037817,395251882,-1926539763,-1297698228,1024222985,1303383560,1076565898,1327201355,1712858713,-825811444,-424571320,1454071100,-733473109,-1822376124,2028411372,-1572192262,-2023460400,231805718,309129789,1704225839,-1020232298,1296301620,1723314076,-110970465,1169282990,1879325640,832120614,1916421807,539124836,-1899341754,-325472129,1285069537,675696740,1998171741,-184365030,-1361263202,-1841632886,-889413588,-650721597,-432126147,1748810059,1781506359,1352823150,421319894,-305012265,-2123761582,278197929,727025133,-328173619,1263801598,1509980338,1338739495,-1664825513,1107149508,-1672035317,569360425,-988414561,-197869504,1496761531,-623342839,801752592,2067977923,332064325,-846322998,-278135653,1336023483,1320440787,300488747,-70697946,252350528,-1386543256,1842385239,-131880861,299620869,-778000571,-1608555306,-1856983473,-171096413,-1029166947,78690922,-1858046736,299454595,-277098290,259821591,373251658,1344130159,309616389,-117440688,699995410,323245698,-689884873,-896420583,-1129638257,-1151181969,1900550572,-1726172430,-291569457,-1731008585,1355502568,1858853236,940808338,2060650067,-1453346950,279360928,1269825514,1228654564,-436415558,709116310,-92616372,-1371797878,-2078643230,-793535332,-603411872,-1123819865,-1333451273,-1864157761,1322120512,-1468191998,756002288,550193775,1205265224,92626526,2057630028,-1835812979,1722853182,-70585411,-155587803,-981223058,-630671559,-1228513639,1231658335,-1438063,1960733375,-915298266,-310767668,17689224,2038086162,657450104,-2084635764,-1992652134,884207128,-2026095709,-1355233647,742852349,909209016,294447566,-1296535765,-2025592934,1329994202,2111627835,-483259388,-301584018,105118725,1383103973,1991130511,1988896550,-599158608,-1793908208,344906499,805228016,1437667086,256594568,238130012,-1582241138,-2093065891,-1836194972,-1272933438,-1058525873,-1555274158,1013623431,-552834286); -/*FRC*/Random.twister.import_mti(66); void (makeScript(14)); -/*FRC*/count=541; tryItOut("mathy4 = (function(x, y) { return Math.fround(Math.atan2(Math.fround(( + (Math.fround(Math.log1p(Math.fround(x))) == Math.fround(Math.pow(( ! (y | 0)), mathy2(x, x)))))), Math.fround(mathy2(( - x), (Math.expm1(mathy1(Math.cbrt(-0), Math.asinh(x))) | 0))))); }); testMathyFunction(mathy4, [Number.MAX_VALUE, -0x07fffffff, 0x080000000, 0x100000001, -Number.MAX_VALUE, -0x080000001, -0, 0, 0x100000001, 1, Number.MIN_VALUE, -0x100000000, 0x0ffffffff, -Number.MIN_VALUE, Math.PI, 1/0, -1/0, 0x080000001, -0x080000000, 0x100000000, 0/0, 42, -0x0ffffffff, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(273); void (makeScript(14)); -/*FRC*/count=542; tryItOut("\"use strict\"; {Math; }\n(x);\n"); -/*FRC*/Random.twister.import_mti(353); void (makeScript(14)); -/*FRC*/count=543; tryItOut("let y = new RegExp(\"\\\\1{4}\", \"gyim\");/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(464); void (makeScript(14)); -/*FRC*/count=544; tryItOut("v0 = evalcx(\"this.t1.set(this.t1, 7);\", g0);"); -/*FRC*/Random.twister.import_mti(487); void (makeScript(14)); -/*FRC*/count=545; tryItOut("\"use strict\"; this.a1.push(((function sum_slicing(elhger) { m0 = x;; return elhger.length == 0 ? 0 : elhger[0] + sum_slicing(elhger.slice(1)); })(/*MARR*/[objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined()])), p0);"); -/*FRC*/Random.twister.import_mta(537762279,645716975,-1776179177,-1278247750,-1979636038,536690048,336136143,-1407888353,1701505115,1888229880,-267713670,2138942032,20579614,-882137113,-50907149,418500557,1336274120,-778280698,-1325658621,1312466004,-1495813756,-2078815927,-2002073457,701860051,1106789012,-1256228923,-941436438,-131602463,-14810315,774814798,-965893032,1014601135,-126008166,-1131186061,-2095216239,-2137966315,1046513598,-1835215291,1686415406,308906920,-1512826064,-1415013558,-1115918591,-2013636991,508816223,-1339511676,-1686053325,934932456,1252268003,285654742,131617978,1048545306,-1823634181,-483131499,-1289604066,249602690,-669088357,1345222389,506944097,124124395,-730245454,-358653937,-759577579,-1358788514,-1292873752,1448423663,-1448423379,-133860740,524698446,-1283091842,1635353284,594365216,-2145722000,1237096221,-1345684735,1039100065,1053125687,272098146,1411693331,328827495,1263567862,2068951290,463474856,-1312890392,-695735034,724537271,1607575296,-651583361,-733218098,-215853276,-1663543142,159145910,-1674725360,-1232825885,2008227949,-1505998076,1185916196,-341797267,-1149878850,1323291809,-1887421803,1516424908,-1673275649,1941196816,436153528,-1207010630,-1547493509,656530287,-2105680337,-1047219381,1198239189,-1280819451,561022674,1932694502,479716003,1289766994,-1059772113,736064638,139545849,1512898746,-523869644,-1085007942,2058938631,-979624267,-1148023835,-703934166,-1101811230,509598444,943047465,-24817713,1473182998,723865309,-337947353,2009390555,-1706293426,1099655694,-450474909,-2013923547,-1302328870,1691334798,-1900866075,-434484272,-723423950,-1436016026,-2049691405,-1524455565,405156790,710712850,-1783160785,-220396996,-199026167,-1674585506,1967337561,1816936275,1265434973,1775961535,1534812735,1024307148,-605162616,1863414223,849896984,-548242380,1204505509,-38157042,914446190,439210806,-1247508044,1413568052,1251743210,-2069511902,173940637,-900619959,105626064,235493825,1471553802,-516209956,2096451751,-1005947617,1360983871,1919009526,255556027,1139485385,-94134291,-327933170,770154058,444941323,78435294,-1424032584,-390534812,790068867,-376648493,720069851,681522029,1379265052,1125061313,-1397524489,1417825078,223101602,600054590,735822789,-1204642160,-1051585896,404938144,1795677686,-2041858744,-1766230186,-1003407322,260987160,-1838955400,-611769272,282045085,554794400,-168702358,1448664906,1069731827,88322138,-489623949,872373393,298411044,-2052935924,1628556311,1982646434,1621708693,1583143613,1858516056,1801957035,-1144337453,-887950475,889725275,1740183731,1172166813,26066116,-314886989,-700998847,-391050963,-239179605,697334621,1109140849,-621595333,-280003299,603865706,-82103861,-539049272,-1681988574,1189919293,-1157189440,-1614648596,186540569,-1569257801,-259483599,2012515378,35792696,-1387524593,87355549,-423279616,-631454893,773947846,-2083478227,12049500,323103646,1847180254,179911251,877324143,-416214012,-2027150530,1217169406,-491183671,55070319,-1162090695,941154102,494304415,-1827269764,1466749211,821876103,-942348454,-904348587,-1523246514,36608700,531242170,1014074226,-281110444,1810427503,-1684254108,-453678401,187183622,-959204866,-657231783,-755032553,1200261170,2110634530,629412155,2074314077,-255202334,945197513,-256440396,-1979850918,-908356444,-1019309446,-50000248,41207499,2032371963,1730571888,822073759,-322830643,1248490745,-349641248,1766071074,1311674083,507720261,-1592837141,2112296862,-1347203141,1491466528,1991500660,1989944616,-276229855,-1457036545,-1870035626,-1145402333,1877385875,1950460437,-1450281605,-1601797481,-805521244,292332314,1107941163,192601846,613189049,179242204,767996377,-1760747071,735214560,1546452894,845675946,11515786,-369495625,1864198979,380298925,-1286256342,1075105131,-284572347,442759724,-136663284,-652367173,1566490770,1516676090,-1279801813,1602894213,-28517005,1180666489,-576901599,-882077578,408226597,1800719179,1313839360,767220833,-893063676,-479258150,-1518308182,1439995337,1373727360,-2143791059,-772073316,1551254936,611705359,-1937716605,-30973938,-1483800986,-581879436,-588038878,-2124585303,1477427441,119455331,-803508366,-571795056,479228896,-1459572920,-369015239,2080578748,758541369,6882234,785970903,-499860518,1091435400,335678611,-571407537,819618552,-1861213762,2095403798,236605334,-1639676342,-1832679844,787766184,-865121180,1159842844,-405239666,1274556649,707077145,1690069984,809134301,-1882657796,150740362,1190949828,446366631,-1819683750,-2147228994,-1826399283,-1630414796,-1809730660,-1847654162,900470366,1731333154,-1200603557,1148232404,-550050085,-1812633570,-668542299,-1322245974,2000642101,-2076767628,-604969851,-485967447,1862417072,-1484464252,-28499352,-858093556,2105351329,1427765410,1260717633,-1294697091,751840206,1608681725,836512998,-1443435860,335374389,1245089422,-1955145980,1621995589,639176866,-319203952,1895255031,1472810776,1099855690,1769686,-1590226294,-1044912705,-2080061578,-699283674,807955158,1286622081,-1384374382,227308479,-1562402392,-1341308026,1418717356,1817933949,-1606968344,1661329305,563623681,1404975689,2083731634,-808286677,-2098810993,1120261571,-248471813,-1824298343,-1824722453,853237143,-1196881629,-1724495037,192949731,-315736843,-1700884981,-110914058,944092631,131000999,-1840221210,1341559254,451851435,223976839,354796207,-509581277,890809267,-781878167,-1745646305,-1573667923,700662675,964155665,1134841494,1362409337,312657850,1832628351,-1516606588,1319518605,723089112,-1238004398,-1745314046,1573028022,1112856823,-607214798,-1613996354,-1568740059,-417824756,467169026,-1790686776,2136276440,-1420666456,650234015,-798318465,-511299004,291944509,-1085487267,-1858645258,2088414183,1108532714,1632475479,-1821313872,-614617799,-974054293,1630918440,95555546,-1221439596,-1622123282,641428688,1713895060,752898901,-1280563786,690764432,-1232696952,-753808879,345856604,137505228,-477569128,-1197472836,2039703172,-1057633647,-1441753906,-857652874,1065472230,1687815816,577726973,2134773353,1576089957,1432815788,1473560270,2130907467,390245957,2026894188,1204372931,1978089875,-1483140784,638144416,1577065314,-1357124352,807621124,1123835404,135351852,-1282358733,422318653,151969621,257595660,1471263951,-1410022330,121939213,2024715165,1960580774,-2124484785,1047588677,2097479820,-471582067,-1885701053,-734800518,2039337566,-1317705468,1658339619,1846392426,889706982,2037442336,691590459,2056574866,-1620566008,-1943796077,-804871663,1815697811,564314,-2126995271,594121263,292003780,-1132133084,-1033049440,1571371102,1625859906,-690406001,1689373952,1763323377,309988053,-940864514,-1986325938,-665106501,1153387950,-1212652641,2047727698,755594722,-570181633,807930084,-869035375,-1888894431,992940073,16531087,-1463997742,-1841158442,66939499,-148273976,931122108,-1777801200,1815946833,-695348249,-687704072,-925642819,-678887984,-1647739059,-2112083584,-933315321,-2097787707); -/*FRC*/Random.twister.import_mti(120); void (makeScript(14)); -/*FRC*/count=546; tryItOut("\"use strict\"; /*vLoop*/for (bzucze = 0; bzucze < 49; ++bzucze) { const x = bzucze; ; } "); -/*FRC*/Random.twister.import_mti(149); void (makeScript(14)); -/*FRC*/count=547; tryItOut("\"use strict\"; testMathyFunction(mathy0, [-0x100000000, Number.MIN_VALUE, -0x0ffffffff, 0x100000000, 0x080000000, -0x080000000, 0x100000001, -Number.MAX_VALUE, 1, 0, 42, 0x07fffffff, Math.PI, 1/0, -0x07fffffff, Number.MAX_VALUE, 0x0ffffffff, -1/0, -0x080000001, -Number.MIN_VALUE, 0/0, 0x080000001, -0, 0x100000001]); "); -/*FRC*/Random.twister.import_mti(181); void (makeScript(14)); -/*FRC*/count=548; tryItOut("{}Object.defineProperty(this, \"v0\", { configurable: false, enumerable: new RegExp(\"(?:(?=$\\\\B?|(?!\\\\D)\\u6833))(?=\\\\b[]\\\\b|(?!\\u25d2){3}+){16777216,}\", \"\"), get: function() { return evaluate(\"\\\"\\\\u713F\\\";\", ({ global: this.g2, fileName: null, lineNumber: 42, newContext: null, isRunOnce: null, noScriptRval: /\\2*?/ym, catchTermination: false, saveFrameChain: false })); } });"); -/*FRC*/Random.twister.import_mta(-1609303759,-157020364,1776146048,-892831583,1191347018,-705675012,-1785128585,2016678056,-1203376574,-1423517072,-512815844,-1799573229,761424834,-757121672,-1304274149,-1616721857,1824428631,507531525,-186107340,-884145561,1781757137,-1436371795,1238728386,-83049009,1620030100,217272901,1117756587,415929133,-1681009109,1582026381,-1842511190,1998300172,1972728219,-195665959,-2036161368,1860988729,967848273,1639922722,1124223834,-1717773668,897187296,-508585987,906808847,-1495921017,1339890010,-1790531444,1539831586,493726116,-919291180,-2014778069,-915537109,-1601823628,-1541340012,-185793123,1258038014,400053178,1091749923,-1029900989,-153012521,-1978978127,-1891442879,-775133740,71269990,625680198,1039183491,255555398,1053256957,-1097613476,-1971215450,-478138231,594409479,-1197180517,1692446738,-2056412996,718354554,485787855,-243768249,-1956685695,-1760912565,-1208471011,1918781867,389987583,361164147,2120627244,759111463,451967027,1694047369,-36278152,-610103233,1739550686,2110387914,1303548574,-1820438697,-260839597,2116392445,-959596266,-495011228,1990354951,1213388765,154153623,821290960,-713194665,-1575711942,-1825322782,-1099313032,804372334,-784321942,225580544,-2036984670,1374633885,-1508022334,-2133662954,-669025353,-2044331597,-1724062860,676689598,697635288,-550319287,1281038602,-1558985302,-2064144668,564516919,-621582163,-1049363721,-600365311,-1065778145,1762951590,-483022881,-1968552851,-666150083,-1514787551,442733508,838538275,431708667,1761057995,1209223542,1649559793,547578473,-1299048746,876719843,-1075026786,1441883775,833492923,-108150437,-1264063217,300032190,1078544293,-1006133754,107843669,-195325026,920133187,-1537184464,-624300315,455549217,-1947435616,-357229918,-1315095834,500542400,-1401137612,289766688,-1673921495,-473888976,936525266,1411003067,1520917844,-1322876772,1835273751,1575008616,1989080631,1568231518,-2108649666,1042340964,2112366258,-1539216186,-458329068,-1627403566,175694676,-1822455197,1463637777,-1416440348,-1047674213,-1929270766,212780565,-912527571,409867337,-766456834,2041980879,1951721704,1337700135,-1901640551,-585458314,834808909,-344580178,-450493983,-273044378,-1130883052,1645734993,2029527150,-1633723416,-604846922,-382592254,-1807079061,1899799381,-1264731845,827417593,1326574065,-1715168397,957999832,-1577647947,1577494448,732409593,973396410,-1013889673,346812912,22852166,1598636846,-142027477,-1628677630,1860989399,1057850675,-334228567,1636817064,1638801489,-1431689887,782716426,1286826033,2121762208,1671387459,1550857138,-767849967,-905009469,-392713780,669203843,2026450238,-1713138654,1971675955,320894999,1428039518,2048114498,2090683127,1985615170,-575849857,-763512274,-1765769322,63113573,-1157034174,399147956,-503298219,1261324394,841955547,-98707885,-283048628,-681469228,1912422059,-320060837,-857925944,-961860412,-763990908,2126164419,1117367412,1744990767,93284288,1567941947,2049319118,100237277,-346657951,1093684596,-1322467677,-1113327514,-1581301601,-1352857799,-1117535992,338719376,2016248975,-513194159,-1683081229,-956325771,-960819850,-1094788659,-1816246082,403817077,1194462156,-55945670,75944224,-504025668,58736164,2054950757,-326657192,-282412859,-1879718364,-2121110217,93608818,-904360067,110948135,-93499151,-294884876,-2111866444,1575976771,1620486689,-1048984400,-1224829052,-1415158678,-1281570954,222686948,-1093981583,-475490598,166184371,-461938602,-1632529963,1802856124,-256433362,1095623607,564758921,1605832221,1394231351,372871583,803974517,-1189347324,-1555467512,810953346,2109500721,-1217502103,-1590434492,-1429672983,-827444403,1307556006,-2105622380,899966398,1519807332,815442693,-958728942,-1871728713,918700475,-786962001,-1601806844,1745883612,-1011680236,-1078475945,2043688316,1989355978,-887880539,-1563314958,-573369540,1195012497,-234775884,-863483200,1440639415,584677506,-612192812,1832210274,-1530547508,152375884,1826312549,1311984934,1826650416,-1345834129,-1443047472,-143255692,-377394689,420192611,-2135964366,659589,640183226,-379582167,-1075070985,-847141167,1736888784,-784009180,998832366,-402123728,209883644,773849825,972003079,784124781,-1974491146,317573105,408125533,1222217757,737405939,-620925128,-1790711147,-1158274995,-1976309914,580160624,-1440376136,-200186040,432893439,-498379358,-456384261,955285239,494662037,232616064,-1760483666,267708441,1846345007,-1971691876,-782011763,-1341211954,-1087022891,2047628108,-532717053,-942649866,180026334,62654841,-748782788,-2019276248,-453363202,-1952638123,-974246299,1450757434,-100472516,-1654735941,-1335321964,-819600259,1034837223,-1163890006,-700492596,1066245555,869902711,528932147,229305834,-1741115074,-1353025578,489782629,513107048,2032756071,-243386137,1437083901,338208522,659863218,40127898,700413322,1542102183,1228054454,469937567,-1538495689,-1218916531,950740648,209220466,585257043,1062164092,563841507,1598341957,-418161554,1732188162,753799788,1411737248,-1275058494,-555790921,1997549464,1969532001,1070112478,347458034,338719222,-860203614,1282145862,984732930,1137315228,1480590391,435855834,-970400012,1100510010,-1913702131,-1297053771,-2051595571,-1434093720,-1124576029,-217702132,138325761,246750208,962580787,-679149889,-944192071,-757012096,2028962521,1107718553,1439985712,1851931865,1887796048,1157352284,-668616091,795387741,2103908387,341465748,442958221,-1286364971,-953487325,1238390116,-1273131869,1411745510,-709670866,389302815,353237880,1421669912,-1439270902,-161499161,-815923004,394255261,-1870360431,1540775375,-1340456254,-1830484137,-700317582,-866286447,-1190038630,-1424493287,1507204142,-1456725355,938545902,756136699,-2111307183,-1452374841,-457843960,1534419344,1160374060,-426589539,2069078119,2053264349,1963897062,-926840688,486918381,-1245348218,-1116610660,-1324580098,-761797066,2034284794,-1779443208,-1380068544,1529229757,-103650728,157088258,-1894824515,-1074227452,1965979377,1560622529,-877012046,218482183,-1351103651,1929437427,-1449751128,-115295754,-454400934,1015682505,67236370,529873022,836801781,204591924,-951025905,345339007,-1291883028,-104051655,-508674308,1516391974,-630232682,349850296,1587465330,-1336247613,323243219,232812738,829361469,1674019607,-1250149337,-1296370811,1726813445,-2049325052,-529010172,-1331433801,-174684957,170596715,51813826,757308204,-1899531365,-734855614,-1111819783,366977975,-1056882393,1368210674,693201038,878672261,1668235617,-1859518800,-1645504281,1088171897,-1443325443,1860368375,557649975,297299585,-1628616800,1631348181,1224538005,-652977528,227514863,-1076281263,-905742345,1097944465,410860817,-1396335337,-106462466,1283433526,-1153755625,1404708676,-1664410361,-1528517423,1078428719,-137827958,-179324356,509761523,204817677,-1364675292,-1022168051,-94205542,-1850648356,-1347517802,315169271,224228949,1451391447,1399932171,-535124332,1712918120,1090333143,1325071577,-1825893517,1376372769,409091786); -/*FRC*/Random.twister.import_mti(443); void (makeScript(14)); -/*FRC*/count=549; tryItOut("\"use strict\"; v1 = g2.eval(\"function f2(f1) new f1()\");"); -/*FRC*/Random.twister.import_mti(492); void (makeScript(14)); -/*FRC*/count=550; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return (Math.hypot(Math.min((( ! (y ? ( + (( + (Math.min((Math.min(x, (x | 0)) | 0), (y | 0)) | 0)) && ( + x))) : ((Math.imul((x >>> 0), (( - x) >>> 0)) >>> 0) >>> 0))) | 0), Math.trunc(( + ((( + Number.MIN_VALUE) > 0) < ((x | 0) === (Math.sign(x) >>> 0)))))), (mathy0((( + (Math.fround(( ~ Math.fround(x))) >>> 0)) >>> 0), (( + Math.log1p(( + (( ! y) !== y)))) && -0x080000000)) >>> 0)) >>> 0); }); testMathyFunction(mathy4, [0x100000001, -1/0, 0x080000000, -0x07fffffff, 0, 0/0, 1, 0x07fffffff, Number.MAX_VALUE, -0x080000000, -Number.MIN_VALUE, -0, 0x100000001, 0x0ffffffff, -0x0ffffffff, 0x100000000, 1/0, 0x080000001, -Number.MAX_VALUE, -0x080000001, Math.PI, 42, Number.MIN_VALUE, -0x100000000]); "); -/*FRC*/Random.twister.import_mta(-883114668,-874794091,-966729789,-2084691034,-316117624,-646002758,2141585709,-813921251,-768137456,-1806844048,1489761027,-1822483580,2132235142,975926382,1267167099,1597989728,1494055968,131744253,1175339846,976117371,-1280018630,1462965782,-1157099765,2112697504,122267843,387778908,-2007202772,-1971634270,-1895550210,-127338062,774241019,-1209356520,-2072565375,1094000590,-943590711,-566610736,2045575591,1032030258,-1467873671,-303812163,-1854644855,-831085398,-1467881521,1487002321,725147045,849819860,-375027524,1134904680,-166538202,-1449469974,-465360648,-1932537859,-1804722807,270187806,874821379,-1389093572,-1401504888,784498198,-1872308543,-468186499,724320118,442481412,190787193,1104689514,1174784153,193216428,-1376167909,-1057492194,1112399859,1950750783,1985785118,2051995400,201575518,1815563534,1089866247,1712080709,239596831,-1436385373,-2131568568,-1242307526,-50998663,-481379018,2076758346,1471317289,-1156043877,-703387976,716268200,-289474227,-1065085126,-103937210,1862868011,615128023,-1256929904,866726415,877827732,1681040970,-1226476860,387425083,1808735859,-685247700,-1530287383,-1047603956,307214782,-282678530,-987899680,-18736825,-1964732527,-1168475701,1525209608,1255714767,-381332706,-1024057366,-150210819,-826903573,-45858920,-260090908,-303778581,587492265,-149217208,958952213,-1279783143,-1048595345,829474100,-367596622,1290865750,-906256561,429842894,248149215,-1938971205,1581023159,-527689054,-623703181,1812428410,-1540389704,-1425612538,400098211,-59279590,1145847466,143768604,317977672,1552402621,-220242959,207150554,981204910,-1407486971,-2052716860,637680913,-978632565,198008122,-833262390,-715109993,-520539182,1717849507,-63278359,-1795902547,44880725,-1803174794,48521634,373060322,659436552,1654968139,1443458603,-2106940225,1318333885,-1376813975,1560298577,1209878961,664142784,-825533909,-1316247256,-1433998639,887032370,288762785,1601478950,-1044867342,-1861316632,756911127,-414598944,-725079083,-1471976096,1876016519,-352277936,-559282648,1142309963,-1262224104,-1525707711,-1814893175,-801664837,-1083833692,2134188090,1594155353,1418160642,-1553512518,-1362588485,1405326821,1473906342,-159422528,1312743525,1971609418,-665022314,713696916,-1377221309,947747413,-1843779993,575363360,823022007,483094851,2117851407,-1706235420,-1833357232,288827856,375957312,-1991832331,-87240519,-1105856181,224549084,1572812022,-484180383,-804516975,-59507712,-1864545600,-809062753,-861893704,430529500,746198964,1831996145,-1331354956,-446389107,2077148738,980368509,-134875328,668025750,-451260123,1935133500,750161243,1118809028,-1094538017,1707224226,874057248,1144674599,-1913300594,582595180,341793963,-2115745715,442418780,233505436,-1842950898,-702328049,-684967260,521032957,176010758,1828283817,-152361258,656545246,-334121786,-330193764,-1856778256,-932179259,-1767474910,696164425,1139977262,1886597259,-483842889,-501674346,-1860170403,-937811773,1819991603,-811228742,128037946,1713886348,101726805,1629545709,-1749464500,1075420107,-1753551282,207992003,-892907183,571798721,-988746846,1097747564,864270584,175217694,-277383764,-1668534954,1862426884,877683116,-765737007,-978201653,1571117078,-761354179,51516627,-100581384,-775751456,164053180,-1212037148,54682409,-2085021887,-551597871,1525814608,1467778972,971276091,423127484,548319287,-2010459912,-608815922,1560906318,-2016914415,715500108,-1762390424,1133723869,-1373846483,851730304,1623200105,-1707805076,2091549021,1316581727,-448787644,1051567535,2088832662,314721239,-1323912988,1691051062,-1470209183,1220205501,1910538088,1794145849,-1913273869,-1987928229,1087058001,824361783,1041878522,125061346,1331780943,-626548589,-833457883,2066850818,-1945370949,-1783805536,-104887537,1267287152,-1612797550,-1817332218,183163891,-723224143,1161842377,83665996,675598164,-1636214285,-1209723938,588389458,-1365482860,-476834757,-287163940,804183382,-2144936521,-661402029,629634061,222568066,257846045,1817220323,2099395621,-1206725413,-1168001048,982129726,-1148953315,2069026036,978421850,21214410,-958705175,1243190564,-1268560383,702811993,200332205,589688554,366285740,-1628688949,1932596251,1502678193,-846756786,-1244854218,944362000,-772980706,1407620461,-2120781526,2028786182,-1009617726,376151769,-1983221783,-1820728945,366996650,1215993341,-1503137986,-2081259390,-434927623,581643406,1064457138,-376638385,1813313124,1238967188,-1205785985,1016891357,-2065306851,165165963,78819721,-1533305356,-1498073302,1954893845,-1808917910,-2143499059,-475303242,-1817073335,-319311790,1536544416,1410167589,-848844306,-730224446,-1174708676,-538933955,-1035160508,-1515048625,-1563110364,74362382,-2142631733,-113912332,-341646839,-734792730,729822263,547255569,-1102897638,961502360,-2033869662,-1766414420,362225260,-1950181549,-183149493,1491615389,-823352572,386601065,-1643036746,-1763661877,1930011799,146745398,1055651563,773896439,-178981033,-98649919,-428609695,1723489476,-1269909165,1864002903,105714867,639693645,1730818570,-1762129819,-2091820114,1721117891,462043827,1121797508,724308859,-972145057,328987297,-1287020286,-2097194815,1695649126,813733654,-210922354,1035553185,1357037265,635649132,-1846016787,858687437,-527821729,1687909980,2002369725,1848171292,-37354820,-1321731506,842992558,1317306375,1139886907,-375458129,1269729288,-428045866,90767337,1221685872,1815851500,1301711611,-1057695072,442627064,-906985312,814455622,-1683558175,-498836529,2036458038,763546262,1611576408,-1265596003,-1755659582,-1782351147,-1884001491,-1872516929,-61084041,-213662124,-1773148004,-292045166,-1443109451,-856625671,1752904079,-2047741508,2003551323,1362354154,492342400,1508561252,-254856121,1878000218,-1190905606,1990668556,966085792,-564003920,105425993,321257471,-377935830,1539580502,-353180582,-1547758420,1342568876,27422268,-847259846,634477712,1677774134,379962105,-2075492532,-1097465367,809664046,259606421,1233018292,-853535316,1318323339,638523732,475024786,-398343103,-1142473882,1283033174,-360016005,-1084924150,2056906508,-1469920113,1649719812,2109002432,1303442850,946717891,483481723,1204275954,-946281297,-1496450718,-1041318417,-511158911,954856859,-2033484125,-410375141,1494290015,235386936,-1857053089,-1897456967,-443109214,954649739,-1471498530,1136891384,-1842939673,477828709,1250914467,794374632,-1020696465,-73159088,670124479,-551318105,934979605,767258249,1261110356,-428423548,-132931078,2034268884,1432826482,-872497367,-2066602426,-1635062654,1663448883,-1800094192,90447822,-1762944340,-448438250,1029721578,-2024022064,-1008624051,-1804232035,1236348861,919229531,-765682662,-1385089907,1647165455,-1270296394,-558893797,1741119235,1221943518,590795183,465444712,719264367,790464642,694979271,785895840,-917512892,792433485,331237606,-1983015636,998499293,600437717,634568672,997593801,521259786,1032277553,1989066399,-760776639,860048599,-870143259); -/*FRC*/Random.twister.import_mti(208); void (makeScript(14)); -/*FRC*/count=551; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return Math.fround(mathy1((( + Math.tanh(( + ( + Math.atan2(( + Math.atan2((y >>> 0), ( + y))), y))))) >>> 0), (Math.sinh(( ~ y)) >>> 0))); }); testMathyFunction(mathy3, [-0x0ffffffff, Number.MIN_VALUE, -0, -0x080000000, 0x080000000, -0x07fffffff, -Number.MAX_VALUE, -0x100000000, -Number.MIN_VALUE, 0x080000001, -0x080000001, 0x0ffffffff, Number.MAX_VALUE, 0, 0x07fffffff, 0x100000001, 42, 0/0, -1/0, 0x100000001, 0x100000000, 1, 1/0, Math.PI]); "); -/*FRC*/Random.twister.import_mti(349); void (makeScript(14)); -/*FRC*/count=552; tryItOut("let(w) ((function(){let(c) ((function(){return;})());})());"); -/*FRC*/Random.twister.import_mti(367); void (makeScript(14)); -/*FRC*/count=553; tryItOut("v2 = t1.byteOffset;"); -/*FRC*/Random.twister.import_mti(380); void (makeScript(14)); -/*FRC*/count=554; tryItOut("\"use strict\"; function x(x = x, x, x, NaN = /*RXUE*//(?:[\\d].)*/i.exec(\"\\u9b27\\u9b27\\u9b27\\u9b27\\u9b27\"), d, z = -26, eval, \u3056, w, x, delete, a, e = w, x, \u3056, window, x, , x, this.x = window, x, b, x = undefined, x, b = 26, NaN, z, NaN, x, d, x, a, eval, x, x, window = new RegExp(\"(?!(?:\\\\b){1,1})\", \"yi\"), x, x, x, w, x, a, c, window, z, window, z = undefined, x = \"\u03a0\", x, x, x = undefined, x, \u3056, this.x = -16, a, x) { return x } new RegExp(\"(?!(?!\\\\3{0,2}))|\\\\3(?=\\\\2)\", \"yi\");"); -/*FRC*/Random.twister.import_mta(1689288574,-95263266,143351188,-989578517,-843374873,-889400052,-1131758620,-242318506,-1313562696,-1651703576,-1091149921,-1275303292,51435471,-1245870162,-1534307549,301763750,-228137051,-647042843,888525198,2036892186,-1129230148,1806496059,1439784561,1349212268,345665458,133305095,-2025856320,161823627,1116881191,779480279,-382620492,-2130522540,1985279969,-1830555374,1843361049,650249646,1902925224,-1058717310,-1556907886,-1999530126,42859198,1466114662,368826106,1139040011,1944313100,227050439,-1512513771,2044941295,1692452843,-620559921,889887371,-2075160242,1893635696,738112010,1445683972,-1716915497,-1240656516,27006591,-1004704439,-996987187,-1900334084,-1969115640,312865994,2008465089,-349317641,-2083569094,-820109175,-703017256,-2143460646,-422061692,-466733867,-766870284,-229622105,1338538315,-1484739541,527013408,839174891,1805343413,989726097,1067544462,821442076,-1258950607,-1783164229,-7972376,-257658478,1854750244,-243043015,-683463678,-1618885221,1031953394,-799421209,1901693868,-865006450,-996148106,-1998580825,1902574075,1861972529,1713988842,-587983678,-1982078262,-341907837,-1729033446,-1032177225,2004071258,-430818130,1890192734,720013088,-2056319576,-996162202,-1755064191,673260781,2015921040,423555,-1979198699,1069532562,-1057343409,-401951712,-1696153480,-559006929,1119366440,-120780669,1575471255,-472115321,7350439,-278380073,-945498519,-1081132392,2075625599,-914935814,405387163,1690856334,-892301624,1298947310,-1077333677,-2034229498,-1782000381,20126092,1281273619,1225581196,-1239591435,-832111660,509209611,548697605,755712592,715855465,2140289440,-1631637080,-9172174,-1453438450,-258929375,1843013904,-300263775,-187499529,1714774181,-248208015,1843311967,1051901731,119737777,1229987059,-30549174,-1119251970,1119072172,1167419007,1317475663,972077899,-1015558657,-1380815293,-2135580312,-1114289631,1927834603,-142182019,2010079426,-1945361750,-407993075,1908472626,828946493,-1057392580,-239045377,-534732787,2127413838,-1439350116,511476417,231523164,1363917646,951612042,357679152,1486875781,24944604,2126499301,497535992,1475742201,749268727,1016379826,441503324,1795631633,-80989420,-1096598459,-611740291,797783182,-2052412251,1361956810,767963387,-9435332,1534771765,662426514,-299252329,-1467394971,273001950,-383448415,-1290027823,1412736584,-548689927,776964705,-1715197110,39683984,-1926181008,900788100,625823049,1882077382,-1685552141,-1225402939,-1642316679,-849970026,1119479570,141282332,1631064948,-168818412,-1504205180,-615512616,1148933629,2112029298,-957404727,-1873343079,-1964943829,-2064415673,-2010113995,-565475148,-593026242,-1881253721,-452240226,-1650849766,183505368,1344228531,522507259,752677097,-2065604819,1453263784,1839082684,76663093,-2023770138,-1826016170,1063309227,1123244836,-365169060,-520437961,247931187,376038353,-44940853,-48984864,-506316289,-92782926,-194703021,-578336788,1942024739,-1393105617,-1082847629,136932285,849916378,-222840451,-403588548,1325160374,-747255276,1873753461,-1385487128,-373848431,1254661946,-693256491,1995016756,-1692080484,1894321793,-243883689,-259494039,-2103054047,1797586368,-2041625686,-553954480,218858516,341175055,-1785699802,418211885,411295635,382801678,360888680,1578448107,1801025439,1631442889,1065422501,2030618828,-1018762656,1748503839,774229688,-657324525,1412694730,-882457797,1970466702,-1568862709,-2099710383,-1943110966,1382970674,377723994,1651062952,-1346678712,-1850413301,1675132200,527811627,875241048,-1635902654,-669463323,965374761,2031750490,1339776508,-1965978511,2028971931,-1585610825,1277094430,-1913741984,1470829132,-987734748,309090194,-1160672792,-1137302084,854303899,-1081652236,-857753804,1496226800,-1646414539,-519537392,-260728800,2067992396,-366130226,-1769296065,-469619031,2013535211,-2096409588,934484901,2005223116,-698824156,174978013,266419450,-317458932,1368296825,-820617254,-244937186,-613471692,-1806498152,-757851668,-1828866878,-2084973104,991915716,780134538,-100238456,826078692,-23090538,-478687069,-71193070,1953083176,90105321,1442420126,527679174,-320603603,-958299639,559578835,-1958474140,835791521,2028801584,-564953856,-1427833404,-765003355,743582974,204377546,-1526207031,-678169761,-912762050,2024784410,1192845725,1666162203,168669873,-1757076283,-909793426,-1099748043,314318856,-1008961751,-1521808528,1453038788,1061943492,1838710483,-180315231,-187644551,-1803285762,1838165296,-1162614642,977240162,1548609104,437416812,-2048629474,-913947245,509293762,1508388174,-1582912996,-557797332,-1480458708,1677462552,461293982,-650533408,-964507965,-1239580742,-1421356098,-1585597677,1751018985,391716652,-2071460990,192440692,179522678,1174186751,-1893567516,1525240365,2112003278,1264419920,358835746,-1469378364,-2004384770,-2007845560,-393685847,-2059448061,1787807423,-247344745,2139336306,1735068132,1398383357,-1295108052,926376401,-1024874413,1430484852,-67304863,1051584532,1063166647,567885755,-1122512492,1923768330,-1207713144,-1126122052,349796524,-1960259202,-161831837,785820093,-1427819329,247726373,-1744573165,1020332799,522587539,163153252,297947344,614206114,408868116,68478279,1917332864,1248336084,609185317,1573591648,1163547102,-1958725070,1362390906,1870653257,1712915125,166993648,-567573745,1257514527,202592973,1115261558,1964617989,128479338,-1116476223,279322043,897253548,-154118555,-784336644,1355582239,-2137009862,-655023337,-1247325914,91822900,666208720,828078824,-1865270684,-1708838807,-1413668343,-1526210305,-1249530512,461336396,2115641397,-653775232,1550887368,-967993200,1693519890,-742766267,-220920510,832760351,446700403,-1687215071,-1627401737,-1602772699,288064257,652860672,1406832684,-1290600513,-2067464928,87919142,-1012368029,-1553927577,1083816175,1625790659,1437386513,-1462589455,-757684241,-465129638,1478310373,-618370685,-809436455,933573669,1585121779,-2010275295,-1635551775,-1397965628,1845426403,599667575,-1948997252,-600517394,1637546579,2134435890,-1719910366,1536534515,-1050291789,1767645830,52699697,-691722325,164406573,-753125314,1325101505,-1971373320,987166602,-1509805998,2068514222,743430725,-1255926306,108010323,-95474157,-1890795920,34955315,-1668143274,858514256,574437592,1935287222,619895185,-1243728948,-80004731,1222141678,134975701,2023095868,1637368277,-1960020939,-196823468,-468833300,-69848785,435459630,11487798,-2096759931,-1323903342,435001606,1214519670,-101398308,870205147,-54210811,827004596,-1501315996,1350942253,-1879203508,-180491326,-1166813192,647624668,597194406,15068792,-383115216,-1180865381,1375598250,-1890568531,-741966894,-1637559402,1493461564,-21917029,1153277065,-339034617,877257690,-1390959094,-1233220869,1810479076,1020626014,-233995991,763401421,-479768032,-744703684,-480928315,89155834,-230945612,592662287,-197313018,-639450194,-1688624030,-731238797,1758940291,38992735,-840506087,1177674593,1277543757,-2028428258); -/*FRC*/Random.twister.import_mti(78); void (makeScript(14)); -/*FRC*/count=555; tryItOut("e1.has(f1);"); -/*FRC*/Random.twister.import_mti(91); void (makeScript(14)); -/*FRC*/count=556; tryItOut("mathy4 = (function(x, y) { return ((( + (Math.log10(Math.fround(mathy0(Math.fround(Math.hypot(Math.fround(( ! (Math.log2(x) | 0))), x)), Math.fround(x)))) >>> 0)) >>> 0) * (( ~ (y | 0)) <= mathy1(y, ( + ( - (( + (y | 0)) | 0)))))); }); testMathyFunction(mathy4, [-1/0, 0x100000001, -0x07fffffff, -0x080000000, 1/0, 0x0ffffffff, -Number.MAX_VALUE, 0, Number.MIN_VALUE, 0x080000000, -0x100000000, 0/0, 0x100000000, -0, Number.MAX_VALUE, 42, -0x080000001, 1, 0x100000001, -Number.MIN_VALUE, 0x080000001, 0x07fffffff, -0x0ffffffff, Math.PI]); "); -/*FRC*/Random.twister.import_mti(281); void (makeScript(14)); -/*FRC*/count=557; tryItOut("\"use strict\"; let (w = x, e = (void options('strict')), w = (new Uint8Array().unwatch(\"wrappedJSObject\")), x = allocationMarker(), d = -19, tnlant, z = new XPCSafeJSObjectWrapper(true), \u3056, c, qlyxaa) { { void 0; void schedulegc(this); } }function z(c, [[[, , , , , x, {x: [, arguments.callee.arguments]}], , ], , z, \u3056], x[\"wrappedJSObject\"], x, NaN, x, a, \u3056 = (d = Proxy.createFunction(({/*TOODEEP*/})(6), function shapeyConstructor(ykztso){\"use strict\"; delete ykztso[\"getUTCHours\"];{ Object.prototype.watch.call(e0, new String(\"-14\"), (function() { t0[1]; return f1; })); } delete ykztso[\"getUTCHours\"];ykztso[\"getUTCHours\"] = x;ykztso[\"keys\"] = /*wrap1*/(function(){ v0 = evaluate(\"h0 + this.h2;\", ({ global: g2, fileName: 'evaluate.js', lineNumber: 42, newContext: new RegExp(\"\\\\D{1}(?!\\\\S)?|[^]+?+*\", \"gi\"), isRunOnce: (x % 3 == 2), noScriptRval: null, catchTermination: \"\" , saveFrameChain: false, elementProperty: s0, sourceMapURL: s2, sourcePolicy: 'SAVE_SOURCE' }));return function shapeyConstructor(xnneyv){this[\"valueOf\"] = Uint32Array;if (xnneyv) Object.seal(this);for (var ytqptdtnj in this) { }Object.seal(this);if (\u3056) this[\"valueOf\"] = x;{ (new RegExp(\"(?:\\\\d*?){2,5}|(?!\\\\2\\\\S\\\\B{4}|\\\\2)\", \"gim\")); } { p2 + v0; } Object.preventExtensions(this);return this; }})();for (var ytqdaaogi in ykztso) { }return ykztso; })), x = Math.hypot(let (b) window, [[1]]), eval, y, x, [], window, x = '' , x, x, y = /(?:(?:\\b|[^]{0,})*)*/y, window, x, window, window = 10, x, e, y, arguments, b, x, c, y, x, \u3056 = \"\\uF61A\", setter = \"\" , window, window, x, w, e, x, e = window, c = window, eval, a, x) { yield /*tLoop*/for (let b of /*MARR*/[(1/0), (1/0), function(){}, (1/0), \"\\u9140\", \"\\u9140\", (1/0)]) { t2[this.v0] = ({}); } } m2.set(g2, v2);"); -/*FRC*/Random.twister.import_mta(1230079670,-1187993390,1491661901,-678873107,847035961,-979057194,1113505623,-218083664,1230999896,448147273,-325783007,-1871482215,-447387481,907852739,1500882306,1892925040,331637150,1018379942,-1945100288,-618835202,-1425217023,-1645416724,31659750,1063415753,-1184389327,-1337378273,-807378618,76760816,-1184142856,1803273944,-1045044646,-1015729043,-125939862,-1076177132,-1436810418,680559636,-1845050976,1633809600,1346778895,-1905624095,146324582,1079330788,-1729118433,-1719129015,1124618795,1061740290,-448895609,-939280592,701569616,-1337768405,-1430235463,1131922300,1378945466,1020246044,2140109845,2003434412,1689635276,1470354721,-594884319,-53184709,368564964,387642790,-358284078,-424237141,-830827054,286783376,-229327403,318392533,398714174,-387234260,-2142998065,-1098232047,2140605822,1796165987,1976321084,768677266,2025701241,-1016787366,1412464152,-522563412,96765991,1582684853,1647356798,-1679871263,-389960931,1441298206,2055206546,-1581879592,-101394411,-1709588868,130362169,1605923378,1516387565,-716814966,559697993,764311968,1958833046,1108371560,-673076412,-294885390,-1025063531,-2007304009,-588026082,-481199114,-1129418054,-811785469,-1580976614,-1949683476,569391917,-622025768,-87141644,2048636269,-398875303,-70779772,-643398552,-1241737357,1971363222,1923219400,-2065010895,-123753151,-931025970,1221761029,1881929570,-1728378751,1985525096,-111804665,-209046069,-418483981,-298505746,-423136064,461224780,-1686957216,-1729593644,567224297,-738563873,1775191774,-1839042572,-158010469,-1888094157,-1188433074,259891321,-450335743,42748062,-1479783118,714515945,-268651535,446155393,-550724182,36989714,1846262458,834575406,1149707455,-357505611,-1095434098,1504599396,-1736959475,-925944543,121119931,-838296597,-87180577,1776329690,1632380006,-1191911884,-1517375083,269330794,2116306995,-78842757,-574879349,363964880,-865788332,752404501,1056873394,814832262,-414235587,-317029151,1673735379,-1035672118,1887036478,-830415728,508722428,1619120327,-31416458,-765751885,559538064,-1800514555,-337837930,164294401,935558742,-921836445,-1316887492,1880843222,-1782183426,1262621072,-656184122,-215284469,1262908781,-1324713941,567679579,32939935,733641933,1582400184,-357541496,-715097052,684270318,-529492367,-977277302,-121741520,1958864938,-1667659923,-1388379827,1595832439,-2090531452,-1343173214,508998520,-788665177,1429399851,1562555243,-1615467850,1360748668,-1679692725,-1044513593,-1675718247,1840018390,1720869025,957346461,-707277391,-1549150175,524543480,1490058457,-1499987936,293814659,-802404859,-1023288203,-1920671963,-1113239684,-1860325281,172038669,-733354057,-1465339183,-1201658790,-195941002,1984858190,-720802082,-139277379,1784401130,-1236327588,883435237,-1255777537,-1536951358,1449223058,-1340197207,-2073858996,724533798,1551750740,1422317890,1809337110,1508691772,332192508,982031566,-1835539512,1678772310,-1591750115,-1834372936,148300457,-770530461,1130829878,1411723484,912691832,-2100548331,1128520166,586617800,-42335263,2046436659,780562570,-984245132,389082774,740307385,-1711564141,-1169738108,-361246533,1799755712,-1643465883,-919215748,1108747947,-1405626847,1762355958,-538138063,-1962170158,-2100289527,-1555342212,-383131826,-1335707038,-1265588561,-1087870294,-216744454,-1256785356,-2144721645,822432913,438096776,822425208,1434761320,696453266,1039599604,-959352604,-1798486287,-1993891496,277290471,-784179656,-887403754,-604621958,1961890120,-1795836948,613347558,122067233,1535667459,274152677,1426359262,-206832514,194365944,1058302325,1422818913,-713118184,1145606074,1587957616,-752109234,-628544585,-1437302302,-1982638514,174756779,-1061880832,-442351697,1910754614,67651264,-1031041773,1756747739,-1929432466,-2005101660,1146037550,999715,-1571716757,159488153,-2000927561,1545585827,1572118894,-865103895,1723115839,-873596130,1767597048,1986933404,761251605,-293179644,-1556461674,-1547996805,-2025021891,-164668444,1104489074,371923185,17214582,1919939770,-1046698392,1070862273,1471596168,-934065239,417292895,-1326857964,-1221003856,1317324332,-1803679363,-1677803478,801532625,1306810481,-1716125876,-746273725,665601242,399380766,-2107552905,-1429893103,1683880429,2012973840,-2023729315,1958842513,353378274,11066723,-797315543,-271149263,-1892185641,643629796,-796311250,1348985149,-1260325799,713459401,1574293742,901390049,1005277254,-1876568618,952348476,-1240386835,2016471571,1762106526,-318939265,-1091256536,-2132299391,552505452,732558100,-799675472,924536636,104144595,-1614498958,1531565403,167603498,2099553385,-2090353157,821137759,-97389491,1714971338,1631619261,-622344646,-1139807277,-350254054,224133320,384603891,-10392445,-1039066716,1637921486,795723540,-2107827172,719766434,1353990933,245031208,2066224187,-651881084,-1959795927,148647798,753914972,524081961,705859638,408997724,-310868561,588148351,1765533872,-870119123,-2057980254,1394471609,-769019897,229816842,-1429005210,-788369983,-930392406,-2011468186,-2138333046,-1821339,985270731,-1688388742,-1480473870,-818710861,568969475,-1352950050,-2053034559,1877951507,-1751903694,1994936914,1133838215,891277724,-1364958900,-1535781392,-1495695191,-252100403,-784860901,778267671,1605438049,744487993,1176034941,-1897160794,1610738185,1078081679,-677656048,503518714,1628989052,-586645046,-2005323370,-1509950465,-106893258,1374913144,1989818612,-1465419682,-731990826,1143381824,-939845473,253972715,-482174248,-1019397693,-1912332562,610659287,1081592817,-1805503276,-1330108752,-1774726763,-490136787,-307220694,-875103115,-295909330,-249503257,779938729,1017264893,-1892617539,636631524,-1106113835,1521861986,-1865981899,-77424657,-272901047,-923555637,993886934,-632356853,250552455,-1590886154,1864083007,-579615461,-1706315512,-1555660803,-1893757501,-595563638,195896256,824182222,301930532,1288614462,194493334,-986722927,1438258821,1823163746,1017922379,1900190577,2010382469,-761082995,1915818035,1203266341,404062961,1601110690,1425363291,-2047195285,-1263105870,-1269449767,-443482297,-395919927,2088507956,-1645775676,2116154875,798332042,-1248196459,568828819,-2122313293,1586383696,-1521969189,-1331188694,-875949360,1876795528,1440653689,354077361,38624272,628485595,-1566603128,1880630466,1444475845,998084035,342525244,1330530919,-1680712566,208531150,-2116310073,1524892394,-430813606,-156354768,2118032610,1867550617,-1475318749,-1272584920,-1583331930,1044143533,1952577317,-1507305321,-1286314486,771310597,352748007,160683309,466202910,543476116,-2120714396,652117711,1409079015,1635879611,-517161450,-1521358644,-307225520,966286389,282768949,745502166,1425882310,1783059786,191717761,1000828941,711252881,-375099767,1636277712,-1687937893,1020976658,-1329822315,76420701,-1206505924,-1503567433,1500700952,316165870,-1548891091,890816936,1418877716,1772559488,-555568868,541063685,-1673818589,-71677947,48040359,1541042344,-1650421237,297591429,-1833307722); -/*FRC*/Random.twister.import_mti(46); void (makeScript(14)); -/*FRC*/count=558; tryItOut(";"); -/*FRC*/Random.twister.import_mti(52); void (makeScript(14)); -/*FRC*/count=559; tryItOut("\"use strict\"; print(x);"); -/*FRC*/Random.twister.import_mti(62); void (makeScript(14)); -/*FRC*/count=560; tryItOut("mathy4 = (function(x, y) { return Math.tan((Math.log1p((mathy2(( + y), (x >>> 0)) >>> 0)) >>> 0)); }); "); -/*FRC*/Random.twister.import_mti(113); void (makeScript(14)); -/*FRC*/count=561; tryItOut("g0.o1.i2.send(a1);"); -/*FRC*/Random.twister.import_mti(131); void (makeScript(14)); -/*FRC*/count=562; tryItOut("mathy5 = (function(x, y) { \"use strict\"; return (Math.sqrt(Math.min(Math.fround((mathy3(((Math.cbrt((( + x) | 0)) | 0) <= y), ( + mathy2(( + x), ( + (( + (y | 0)) | 0))))) | 0)), ( + mathy0(( + ((Math.fround(Math.asinh((y >>> 0))) * ((x | 0) < Math.atan2(x, (y >>> 0)))) | 0)), ( + (((y >>> 0) + ( + ( + y))) >>> 0)))))) | 0); }); "); -/*FRC*/Random.twister.import_mti(346); void (makeScript(14)); -/*FRC*/count=563; tryItOut("g0.a2.forEach();"); -/*FRC*/Random.twister.import_mti(414); void (makeScript(14)); -/*FRC*/count=564; tryItOut("mathy3 = (function(x, y) { \"use strict\"; \"use asm\"; return ( + Math.atanh(( + ((Math.fround((Math.round(Math.fround(-1/0)) >>> 0)) !== (Math.fround(mathy1(Math.fround((Math.asin((y >>> 0)) >>> 0)), Math.fround((mathy2((x | 0), ( + Math.log10(Math.fround((-0x100000000 !== -Number.MAX_VALUE))))) | 0)))) >>> 0)) >>> 0)))); }); testMathyFunction(mathy3, /*MARR*/[new Number(1.5), (-1/0), (-1/0), new Number(1.5), (-1/0), (-1/0), (-1/0), new Number(1.5), (-1/0), (-1/0), (-1/0), new Number(1.5), (-1/0), (-1/0), (-1/0)]); "); -/*FRC*/Random.twister.import_mti(577); void (makeScript(14)); -/*FRC*/count=565; tryItOut("\"use strict\"; {v2 = (g2.a1 instanceof s1);m0.get(i0); }"); -/*FRC*/Random.twister.import_mti(622); void (makeScript(14)); -/*FRC*/count=566; tryItOut("mathy1 = (function(x, y) { return Math.fround(( - Math.fround(( + ( + ( ~ ( + Math.max(Math.max((y | 0), ((((x >>> 0) - (y >>> 0)) >>> 0) ? y : ( ! 0x100000000))), (x !== y))))))))); }); "); -/*FRC*/Random.twister.import_mta(1688780410,-1669638553,1580299350,2126663915,-1573530774,-657883368,304731212,-1258675428,-1555503033,-1451763940,1324727009,-1326722601,-872710124,1369339560,-1156685117,957587856,-462918882,1613787850,214835650,375981029,-218522459,-1410463895,-1947891725,-1822952012,1045250387,-1511970553,602476982,869823464,-136249488,171717263,-1475974660,1923466909,616923057,-1945431005,-546856669,31412134,1549741628,-1374195599,-1271980775,1547473263,-850254243,-1234108113,-1124643253,883921127,-1695426269,-125144923,-1238864993,1499084578,737808300,493549122,-1456425196,-1593578821,-1628668796,1496005552,17757213,-1459101796,353933501,2021565180,-963952063,-442469460,-1909696750,1522386554,2110255416,299178171,186582095,-1791148119,2127689209,-1349245073,-1834212417,701745397,393899596,1370024616,-214035953,381279783,1357927604,733868229,1102277924,710543235,-403250618,-974528202,-684049415,-334441355,480122937,1217896110,-1823159367,1825339697,1715539864,1297458315,-1722651672,-1630750205,-400088698,-1155858878,-907954147,177971512,-1732042178,503668252,1635778501,-1080893066,-946989751,1850475392,1072486313,-2083940187,-1166130802,-1341394573,266780857,2124345508,2034705035,1187012596,142895112,-1015733329,-1095717109,1037238854,-2038339155,-2090295683,184898477,1107151901,-484442129,-1785550912,1147823753,190542808,538065350,-1570878791,909331298,-197929097,2032280790,-345994758,-609251992,1726319827,1068304478,1177118256,-929676255,432941551,-1522244023,-1940273157,94713886,2128951167,819987103,-1400677131,455907970,-962338286,-185367427,364082452,-1776524814,2029349529,446911230,835955416,-940510436,1030107069,-1427986023,1727970284,-1797343734,432720528,2126324692,-313049343,-876939639,1478999444,1781730984,1975971834,-1951150792,556724372,633133186,506934026,-289798706,-359048131,-704466940,-222938841,-861193767,1588744660,1769784653,1421248607,319988503,-1718417788,-263516117,165133557,507974022,1595731463,392985990,-1890581909,-83043498,149429530,19665430,-2075885277,-159074465,537656535,1477952590,-924105032,309488134,-1505233936,2024029066,-107624817,742228528,912121391,1307589848,28413004,1509581477,1815974042,-260316729,-1993783003,-1598358673,2077621658,1595898254,1641897875,1875108218,-2091638666,-1954833972,500740680,-519772018,-1415664261,2133571052,-234251591,-1180390146,-241629338,374978724,-1548875678,1346111591,-2105466686,1531489871,19573950,1243281382,-638995271,1262253616,-1922272786,-1466136280,-564840135,776193036,-647971254,-585628854,-775409463,-1892198793,-1879546808,-807615690,1522371983,117678165,1291547634,1702644716,2137052574,442209304,-2086055082,-321141766,-1311598929,716780175,-1853172308,-608013167,-1857712789,2065163108,-812481937,-1779261883,-1597480636,-1059146080,182594680,-781827182,1809481792,-1948270035,160070935,104093283,-619276050,64643057,-1253955685,2079209337,1456307098,93081074,-1775011457,-591622611,-329330862,-811271062,-1640135305,1192220755,1430028296,-674173476,-1383282769,-1827003960,2131000165,-272021280,-1803377243,314720361,-1528649809,-2002809900,-200070058,1295036985,-347113628,-819539235,1704199331,1359248406,-1710505102,217782151,1886758790,-1608144955,1447884745,186148932,156442271,1239696778,-933238841,-894891268,123448068,-182494603,1269924329,-396766622,443811720,1227518356,-637776325,41441902,1309398862,148195511,-1830977917,1858721583,918412394,-313995734,-1296589198,-2115252792,1726353565,1122846552,-1055673398,-160987778,-762476090,-596211162,-1278203385,-1491516356,-1376926342,1033402919,2056140786,539293236,-85498397,827750820,1223304034,1272890482,-1834723912,715499687,-472830301,-1550588251,1369960070,-923133976,232973273,-959215886,-1810531911,1086310083,1287266778,-1588416200,666877765,-1242336724,1531516222,507383033,-66977501,1864866986,1545636036,2143306624,1637653254,2146877988,455417992,771299820,24149216,-1515260740,-1309201228,835614267,-1598545766,101652970,-1380961031,1185558539,-241058180,956332763,1671876982,-1484610369,-1199297259,-1417529713,680845845,-148953555,2087647636,1435784819,-1190337432,-614928221,703003925,1949275455,-362184704,1644529845,-870843501,-1520551207,1720242510,-1915160635,-1356631166,-2089659935,-1646961853,-404803344,1390815463,-384566689,-2066680337,-1420452914,-660779958,157962243,-729311037,-1655703047,586282613,-999050166,1440157611,-280784636,-994454734,47416906,-344134428,-1314501239,663842136,920984036,-1355722817,-793979670,1311791536,1254627213,1061587038,-723671563,1629414624,118113443,-176142236,-2135279690,1360942516,-1196387595,-1721254850,1828392001,1634622307,267323249,1440209047,1050313657,1504855101,1895030347,-544290946,-1492546862,955444855,485345789,-405994931,-2012756181,-171337026,-897094449,1481771290,-985537199,1129409464,1607164221,-820670857,196040806,2006070725,-1097341600,1931203138,1572694193,1898654494,-989531330,-1455387411,-519777485,-1598406172,849168414,496104266,339944077,-1147964967,-1112793108,254918915,-852909653,1315316549,436243715,602757553,-1971298509,596183244,406086807,-1734698728,1411400311,555995616,1366787222,2088208764,-197542674,2146673442,1748165944,1214349024,1238180829,229626691,1078057725,-461360037,660267075,1424308818,725701258,2086808759,647677876,752562909,-1962572724,-1881195427,980295494,-1965193,803608715,1076399885,1968833804,1858967391,-530873196,394912734,-546472464,436041945,-331856118,-619358888,-1483590637,606773779,-1419984859,77511006,655282256,1295958585,224432976,96712137,1172372198,-440256931,-2081966720,-1729680137,1964664201,-587954846,599460366,370098773,-1494601564,-885979252,-2045405739,1582158360,-2127691893,-1076813075,1736091592,1365628652,-1000695972,2119862105,1188722610,-442692732,-1092465459,79797518,16017638,338590914,1763417793,-1328952427,1394705166,-525967760,1007902359,1289858143,1650661420,-240262669,2019456511,-1886660147,863273956,-869570638,-2031875725,223934188,140713791,350862447,1230082508,-241213654,1525031072,-1405304537,296740085,934692186,1592509500,-651736794,-1558282472,-612356091,1833237943,-1545518431,857474293,-1465990750,665650890,-1066254528,-889748563,1329635791,-1807745305,276039366,-1037944063,-908281376,-2041534997,-677625162,-333878312,-222621698,-938715164,-1419250778,-1726993751,-1206231959,494920281,-2015663675,-1854930858,1544469383,662147932,14618097,-818123755,-218741526,1094177308,2099854143,-949558551,110542833,1005301792,1751401790,1867264583,-1786451514,812740272,1263462532,-510403914,969687401,-1446960434,393510675,290216087,-1693161084,2050758259,-2117654523,-1180014767,-990790218,-1355063677,-249139520,482695088,-393112288,1857194201,-297839198,1640856584,-711068623,-231575588,-743073588,779452823,1480452624,-2116137891,770126068,1046435947,-528491224,202285862,-237371622,-220962368,1035591235,-67714995,1415099428,-1243315781,547758231,-1917764697,-1028740784,1398876904,-754628649,-501214145,-1007545676); -/*FRC*/Random.twister.import_mti(141); void (makeScript(14)); -/*FRC*/count=567; tryItOut("mathy3 = (function(x, y) { return Math.log1p(Math.log2(( + mathy1(( + ( ~ Math.hypot(Math.log(y), Math.round(y)))), ( + ( ! Math.fround(( - y)))))))); }); testMathyFunction(mathy3, [0x100000001, 0x100000001, 0x100000000, 0x080000000, -0, 0x0ffffffff, 0x080000001, Math.PI, -0x080000001, 1/0, 0, -1/0, -0x0ffffffff, -Number.MIN_VALUE, 42, -Number.MAX_VALUE, Number.MAX_VALUE, 1, 0x07fffffff, -0x080000000, 0/0, -0x100000000, Number.MIN_VALUE, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(285); void (makeScript(14)); -/*FRC*/count=568; tryItOut("mathy3 = (function(x, y) { return Math.fround((Math.fround(( + mathy2(( + (y ? ( ~ (x >>> 0)) : ( + ( - (Number.MIN_VALUE | 0))))), ( + Math.max(Math.atan2(y, x), ( + Math.log(( + Math.max(( ! 0x0ffffffff), ( ! y)))))))))) / Math.fround(Math.trunc(( + (( + x) | ( + ( + (( + ( + (( + x) & ( + y)))) ? ( + (mathy2((( + Math.ceil(x)) | 0), ((( ! y) | 0) >>> 0)) >>> 0)) : Math.cosh(Math.fround((x ? (Math.atan(-Number.MIN_VALUE) | 0) : ( ~ ( + x)))))))))))))); }); "); -/*FRC*/Random.twister.import_mti(596); void (makeScript(14)); -/*FRC*/count=569; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return Math.min((( + (Math.max((( ~ ( + Math.fround(Math.hypot(Math.fround(x), Math.fround(x))))) ^ y), Number.MAX_VALUE) >>> 0)) >>> 0), mathy0((Math.abs(Math.atan2(y, ((Math.tanh(x) >>> 0) <= (y >>> 0)))) >>> 0), Math.exp(Math.sign(( + y))))); }); testMathyFunction(mathy1, [42, 0x100000001, 0, -1/0, 1, 1/0, -0x080000001, 0x100000000, 0x07fffffff, -0, -Number.MAX_VALUE, 0x100000001, 0x0ffffffff, 0x080000000, -0x080000000, 0x080000001, -0x07fffffff, -0x0ffffffff, Number.MIN_VALUE, Number.MAX_VALUE, Math.PI, -Number.MIN_VALUE, 0/0, -0x100000000]); "); -/*FRC*/Random.twister.import_mta(-1331398988,1509794767,156817173,-1045021345,575989308,64814507,624662992,477192457,900009838,-109565684,1962741840,-448268356,970026720,1010766667,-974230282,1590639054,292971014,159913872,-940840518,-1628504780,-1790052522,-1408651923,-1775944284,1629985444,-1291138517,1293500710,-31376455,-1275610989,702493478,-561752015,-1207412085,1311500886,-597929610,-1452277389,-1879430748,629198712,-107922142,2106121011,-2079512022,-501429440,-1290069162,41411780,1780479041,1970573181,1173866857,-259928818,1899817179,29238619,-1255798024,-1456192410,-960985983,-2107662359,586399389,-2087761966,930002559,1493476274,532044210,-1569098392,-364207922,322333182,1283273437,1872002058,-308955650,1757318678,-328889303,-1907183845,-962339448,-1718385955,-1068595226,1274867163,-866893553,-2016585317,-2035194466,54098128,-256613366,105083174,-1593933373,-1191250577,-315896634,-923028891,283302290,-123624376,1684226138,-436678641,-2120017128,-746912936,-1473543868,-742111228,-812411641,-1741957175,-2036848007,1516918978,1634169487,-1489153734,1268520528,-1900437651,1391964802,-139515605,1927656457,-1021435411,2100185808,-556231353,1508533393,-1411271414,-474219216,-2045760620,896495023,-1566047072,1937974916,1078293135,10769211,459668354,1735253260,-1141850431,-392986563,1826478196,882103481,-1108872151,-533679512,-1360310226,-1931081587,1542311255,-1220597850,361401514,-2055631000,1056327098,182200518,600169144,1878335303,-551515421,608323035,-202050044,1353681647,1906712555,1783712978,127711459,-2112755639,1173705342,934825318,-1440685267,-1152981600,1374163033,1229898932,486428042,794791990,2098445746,513601063,795319051,-1459655181,1730913970,-284940311,205690143,121499389,-612840111,-1402871414,-1178375,1973671474,-1847191429,1088650892,-788768960,-960028571,-1324505332,1004035191,-2028456998,317236146,928086999,-1002513588,883357904,189376665,-1912732915,-1961694585,1885157532,-2115119838,676600735,-1235629523,-997567786,1817638144,1018281911,962409906,-940512286,-1648603201,-643736752,-1586951286,1128779872,-1309586790,2034785203,1483542908,-1648244877,-1676799247,-2104362,-1789779749,934561531,-1681084510,-808871938,-1210458040,413083501,426617339,1718522859,-1932750835,860547959,1098353206,1498642532,-275429991,611365102,-1687048939,-1028645989,527597230,1373657953,-130967661,-586409438,1428927303,1970504761,-240592615,-48752694,-258379909,108561976,1026328604,-553927746,-509288793,-797263197,638589024,-637567181,881624339,71354606,-4908814,-1934879334,840874511,1849126224,503419371,1857468046,903891783,-1193441591,631325778,394640422,599854022,948487522,-122912601,43053485,614861876,-175814792,888830365,822601313,-1889185884,1828557748,-1219893640,337253959,-829764202,-182277114,-377963695,-1097458579,348838532,804101090,-1865101454,1681104983,-1635978012,-247813119,1563294499,1559753192,1699567515,-560302193,996216083,2024595053,1404020945,-1639759081,-1415665321,2122479324,-930968764,-1728877128,-843499572,596829349,-1812069872,1913875737,600321795,-1588234192,-1966619053,-244723950,-750923187,958950722,-1208474533,-597137620,1749939548,535595124,1409368587,-1060937042,-1706842453,1666237427,-518479163,1240532735,-231390310,-915957957,-711340758,-1993275049,-838894951,1696907373,1698951926,-194875689,113700383,-389973563,842780249,-947042135,607949687,1842770062,-1775927624,1318247051,-1549788326,-611341357,-1851753124,1343700854,316284121,1159062518,-982447638,-91170393,-1170356293,-971979689,321187288,-1675675879,-824363660,1096591285,1731019579,1903495573,54940436,322382466,-1429434660,1998115003,-16972809,-1094725499,1811809891,-1242625699,-1240767996,2107076453,1947759673,-1059963319,1427253143,-868729327,-2064313267,1663729176,-1970135566,442362413,1992388893,-243635281,486084239,-1627369880,1120771094,192148857,-1926645334,-540290182,-1552301974,-1709538181,1532359463,-1511498248,1299258096,1150682282,782915063,1239131187,-1407881189,-1784105059,-403679779,-506804119,-1037590849,-630822801,-1259554370,-1499928758,-891389642,546753408,1002581684,-2072324480,-1230597863,1340222766,-1676419572,-363741452,701140362,-950672205,-1039077212,-717536364,1545860012,924559054,817504115,934657990,-610236319,1959949957,721644029,31501434,613338833,537467861,-39272866,-1654725038,1672948734,292056134,2038295785,434210386,1962607824,625568560,1426952782,-2057889687,18386594,-896385406,-566839903,-1872730507,-20107364,-373571753,1330394951,171274548,-618064135,-550463707,1279184327,-1546606788,-47132720,-572435356,-1322356342,607777327,267652735,1585740901,-789068067,-963501541,774020071,441181170,1242460439,874741537,410199364,-934778165,179851290,547861609,-1301211500,-999884111,478830260,1887934133,1600385018,-85997503,956026296,1501054424,-1695365366,-559546074,1618063782,3771422,678277696,1340576532,-442921043,2007616216,-1193577840,404881503,-1387972808,-1445475468,145784733,-1375360635,1513796493,-1082994351,250276605,-1718847382,667213390,-1601932467,-1933650711,1677559732,-580349444,-1492371301,1652171228,-317128689,2116509310,492538124,-2031730057,532519461,1752985015,400062810,481851922,1161994646,-1655723821,-1651617387,1590553994,-27281053,460684104,-1698306335,-876333776,-1543207518,-1686159370,-888664144,734364407,-1269844750,409971977,-634296802,-1762562885,-1434857996,-899818713,-1370409298,-1157734930,1922778587,-1996358309,1397847070,-1290740445,-241129531,-1280229445,-553027556,-603185224,-1206271617,-1055545569,-835534100,52037507,-280409409,-2005184684,-770844464,-1486337091,-1068651240,-1892730239,-619035820,1667686119,-1068971489,1555099268,1845124718,-1286697440,-237782458,-653481507,666636783,-395212328,-1200689915,-2055917440,-1032480484,2067759933,877450531,-1962452548,-706479783,-2094647498,1618609446,-465005192,215167857,-1003404817,-1043861109,1471749941,51003983,1716717711,-1055188649,-216322889,-811647158,1753704786,2044374844,-1658597211,211370524,-1016376930,913495103,2111458403,-1476257350,1971718635,1810007326,-573839622,1011945414,-1332964470,-1622013192,-1248587928,-2004382401,-108193766,-1010769487,125323859,-115733063,1461833499,42889982,1075261629,-118928945,-36369858,236113755,427373461,-1372023277,-1424220398,589206139,-1251624466,-520929345,916031435,1595062393,-547851066,-1586089746,1805610898,1413549732,1745855348,1366709688,-1844133026,868171647,-1498353393,-1008588444,1032235323,-504483188,2141958879,1350877920,1889805877,-2147156981,1125765328,-198326461,-1341144097,-684083066,606361602,-691597352,148170553,625091882,-1424829560,784909008,-1182929059,-31478333,-436074405,2016644743,930159182,-764316204,-568757148,-946112199,-263565726,-1292480864,1727859027,624608322,1589734056,-24613017,464210638,1111957136,572649215,-1390119657,836715246,1653186370,417719384,-2067624258,1519040940,-951780601,2068067924,-91808533,-793106746,-349492772,1142833048,1019021114,903678813,-385862558,-1419036712,-2040230149); -/*FRC*/Random.twister.import_mti(186); void (makeScript(14)); -/*FRC*/count=570; tryItOut("g0[\"fromCharCode\"] = e0;"); -/*FRC*/Random.twister.import_mti(202); void (makeScript(14)); -/*FRC*/count=571; tryItOut("\"use strict\"; e1.add(a = x);"); -/*FRC*/Random.twister.import_mti(242); void (makeScript(14)); -/*FRC*/count=572; tryItOut("m0.has(i1);"); -/*FRC*/Random.twister.import_mti(255); void (makeScript(14)); -/*FRC*/count=573; tryItOut("\"use strict\"; h1.fix = (function() { o2.t0 + s1; return v1; });"); -/*FRC*/Random.twister.import_mti(280); void (makeScript(14)); -/*FRC*/count=574; tryItOut("m0.set(g2, g0.a1);"); -/*FRC*/Random.twister.import_mti(300); void (makeScript(14)); -/*FRC*/count=575; tryItOut("mathy4 = (function(x, y) { return ( ~ ((( + Math.fround(( + Math.imul((y >>> 0), (mathy3(Math.fround(( - (x | 0))), Math.fround((( + x) && y))) >>> 0))))) | 0) , (mathy0(y, (y | 0)) | 0))); }); "); -/*FRC*/Random.twister.import_mti(427); void (makeScript(14)); -/*FRC*/count=576; tryItOut("\"use asm\"; mathy3 = (function(x, y) { \"use strict\"; return (((Math.imul(((((Math.fround((x > x)) | 0) >>> (Math.fround(( ! Math.fround(( + Math.log10(( + y)))))) | 0)) | 0) >>> 0), (( + Math.pow(Math.imul(x, x), ((Math.pow(( + x), ((( ~ (x | 0)) | 0) >>> 0)) >>> 0) | 0))) >>> 0)) >>> 0) , Math.fround(Math.pow(Math.fround(Math.log10(Math.cos((Math.atanh(y) >>> 0)))), Math.fround(( + ( ! Math.imul(( + Math.hypot(( + y), ( + y))), ( + ( ~ Math.fround(x)))))))))) >>> 0); }); testMathyFunction(mathy3, [0x100000001, 0, -0, -0x07fffffff, 0x080000000, Math.PI, 0x07fffffff, Number.MAX_VALUE, 42, 0x100000001, Number.MIN_VALUE, 0x0ffffffff, -1/0, 0x080000001, 0/0, -0x080000001, -Number.MAX_VALUE, -0x080000000, -0x100000000, -Number.MIN_VALUE, 1, 0x100000000, -0x0ffffffff, 1/0]); "); -/*FRC*/Random.twister.import_mta(1704331085,1667888329,1348997415,510018649,-1831616706,-910894575,1207998334,1458326128,-1620266054,-2024912904,-280842310,-305740038,-1557214379,755185668,837017730,-666044450,-1034540589,232222522,1430035816,11045564,-80799416,1398913942,-1193564263,-1976203824,1177228538,342440855,76912167,1214629671,-959640974,-1703972256,-1647690390,383116547,-1798769218,-586165288,-1939446118,1555640119,-403353256,711665493,1055520436,-1139539450,915552442,349976687,-1148127426,381051731,-1852363277,-383337681,936512503,1084864241,-337054878,-188868510,1101727553,-273305121,-1589391196,1308704521,1333778029,-759972571,-1238334929,392131003,-1534970640,-1055819825,714192649,-1339254648,1810029870,-951706756,-906387960,2146014422,-1870409689,-43455712,1635293095,-504398382,615622001,1479395719,-614901111,-207747275,-416989903,302567368,243254744,1565549716,1228594463,1344192960,-429804486,-457126762,26023212,-1970514261,-940787966,-286548660,460939737,2009106183,-2041827547,1767143616,-1667920988,436876835,-862465919,-1178463088,642629142,-1469153698,1827530406,-480219816,1473178262,-152278468,1684611756,1385548074,-709003363,-17644519,-1743628642,-1596335889,-786642865,628194758,-724543498,705959778,-60733561,-356890789,-1555235248,87095577,-838860481,104098307,1166988247,187161097,1664711988,1417473317,555593517,-1732664091,717177715,-420195636,1403523500,-1050716788,-802874153,-112517047,-1248675871,-1384473923,-119446955,38033695,1849983072,1571802939,-484686958,86217822,1852042019,-659065043,-1167452810,544816819,1509859657,1361144753,1704829915,-899404063,47763743,650794054,300513186,954403150,-82682266,1460124465,485039073,-1645343246,1303305166,17907678,-462307235,986110884,1762850093,-1650150024,644670715,-485354632,-155302507,1878557174,546474902,-65935305,1649619595,344386157,88196113,1140068437,1048674743,-1222727154,745509610,1761167845,-1672157016,271619735,1375344148,-795112561,1152534112,556282850,-1038727299,-1468193313,1012166472,537961456,-509144005,1541502365,293689925,-1673966751,1087499232,-215227995,-1456931277,-613070965,-409946488,-1493924775,1227622703,-493805703,727223978,1941728377,-770934867,-1474305385,316453040,-22892161,-348994293,1585994865,-523364649,-229806330,-580224688,293099007,1332802056,-1095028264,750850945,-776173693,244647892,-1878810947,470127783,-106831046,-939602526,1142750626,-398907688,-1835079208,196276581,-2085475594,1591486106,-2024747570,1050501965,168265508,-1353302353,1802295808,-1317062573,-207716505,1412607886,-745503653,-1694484510,-1073537769,-1032453118,1507857053,1252534465,976372534,1594789873,-49174112,-687577786,1616594756,-1400341525,911296336,-1372439036,-638395665,-556608314,1920596899,2050612415,379319359,-1792932481,-222377253,-1648146399,1312912195,-8889501,195816533,-1443880456,827541308,-1273722220,912533112,-1601147365,1349567464,2018577457,1018757677,-896516509,724743468,1428823099,447263510,-261245734,1347330908,-602015006,-1301285322,-155753216,427526829,-108263625,-340174847,941445496,461286043,-1473630525,-1017141837,-2122218935,-714790390,1106737971,-59258953,-221115278,1645863333,-24419,218551629,1021396079,327882436,1301799882,19807163,450244360,906924955,-1804385217,-1574819492,1582394516,-1156362121,1283944943,-458952062,-488383220,273654765,-982171790,-331906451,-330755502,531613813,-1449197150,32170929,940924539,1979976329,-968213139,590713305,1858898599,66774016,350965688,1391138613,-523785132,-517818977,-1863148603,906730214,-1145568714,-852166389,-1336311343,858519928,1256892124,-895756414,624375237,-1153869448,1964203597,1064080302,-1252602297,1991900510,1200843746,1804858762,533559096,175043254,1424245450,-778479345,-30256469,1577668566,1259323987,1949878728,179363373,-1352216780,-1702551456,1125781250,1690448820,847617281,-2139545657,-708843935,-1974629863,1275579915,-994094951,-571110520,2092578634,1596396549,714591064,1600269776,1150766678,16391637,-159392265,875748543,249805982,-2039251191,1432940958,1937964153,-628482963,2016537893,1200105508,1475825231,604615883,830006558,1892052071,1674619213,1280832908,2146995828,594467369,2051531008,1289577682,-1473122546,2123335279,-1054351377,31549923,1866340330,-1278548335,1472637442,-754203055,1471639812,-341432997,1393034046,1661485791,451873278,-290103889,1221983148,-1893345658,1171096384,1723666196,-929928264,1713777131,1393100068,-2060704111,1660568532,355085837,-446288457,638283970,-1146777508,817913980,-1131536235,-963801107,1690523533,-351999432,2136318939,-307496080,-1594750476,1719200435,-1899489588,-32632740,354907751,1483491524,-341236694,467141091,208675106,1808430482,845153760,-2004377090,-1672914697,156539154,1030571853,1522918784,-1219550249,1916042909,-306743982,-1658949739,-1387093629,291804144,1531325224,-1723271086,-2029689720,-1435999505,318291612,1159343693,178720571,-1387657600,447627955,-904488513,472698817,338637231,-707840828,-1888217405,222185917,236602551,-506807834,2079933694,-2115865007,-1578994030,-1069406019,1545228223,723583153,-583188259,24880646,383082714,1866498566,1376529968,1156847048,412292093,-928912569,719204789,-1201499261,-964941014,-516766129,-1573190401,-875551588,-1947166658,-1821553859,402521211,-1227641573,213659206,1075667748,-542737964,1337151139,461215161,56493615,1552119554,-191951089,-787065586,698139878,1607244919,537964629,-1314381611,-1199496397,1396555299,-1533660737,-298392244,-1398243477,2108805728,686294980,-18696484,-1742709432,-613868962,1007415297,2036161569,655567528,-2043381333,-794390828,-1571651765,-965584511,-173897084,-1742289575,-1383270615,-1267097854,916553631,-957691746,-1490671624,-1119536931,1815878083,-663341778,-1868182390,1209290516,-220760120,1531262099,1177784584,-1504244093,2101542971,-448693060,1123555437,-1101836630,2083087226,1220733332,-1446338663,636492278,-1946673720,-1744132357,591568875,1040603439,1202078399,429979316,-1271541687,1638902659,926194948,-1928905075,906733199,974044357,214143190,-125704815,-1366576925,-902259599,-348066650,-948007365,903624972,1793922087,-1766961285,-1200426610,-874713347,-1674306236,507858240,200923986,-512932644,551741266,-122878328,303916139,-1558967192,92253135,-484450890,-1767886352,1729672684,-778147640,246568865,1052800410,1578651290,1052184471,-2015500824,-1819328049,-2083708830,-292357140,1400146355,1202912133,-448200921,1821434793,1682288507,1709568860,1157580114,490135330,-63355013,-342320536,889123219,377840215,731486777,723328692,647220778,459986266,-787014047,-790710545,-1786406329,813934751,-1658807623,1546691843,2127557797,1258622713,-876746403,149113686,984321565,-1507737094,1835396181,202272637,-603232660,17351093,-1995284410,-157826609,1321031099,1494141076,1585109067,-1078455107,1437068637,-1102144889,-316818344,-1778106767,-146588268,190140860,1870306576,-1933950365,1451980849,214164471,1900910961,856200440,313039898,-1914332526); -/*FRC*/Random.twister.import_mti(107); void (makeScript(14)); -/*FRC*/count=577; tryItOut("\"use asm\"; /*RXUB*/var r = new RegExp(\"(\\\\D)+|\\\\2+\", \"g\"); var s = \"\\u728d\\u728d\\u728d\\u728d\"; print(uneval(s.match(r))); "); -/*FRC*/Random.twister.import_mti(312); void (makeScript(14)); -/*FRC*/count=578; tryItOut("v0 = t0.length"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=579; tryItOut("var r0 = 8 * 0; x = x - x; var r1 = x ^ x; var r2 = r0 ^ 3; x = r1 / 5; r0 = x & x; var r3 = r2 ^ r1; var r4 = r2 % r3; r0 = r2 * 6; var r5 = r3 + 9; print(r1); r4 = 6 | r4; var r6 = r1 ^ r4; r0 = r2 | r0; var r7 = x % r2; var r8 = 4 % r4; var r9 = r5 & r6; r7 = r7 * r8; r0 = r8 + 5; r2 = r0 / 0; var r10 = r3 ^ 6; var r11 = 9 - r0; r5 = r3 - r6; var r12 = x + r2; var r13 = r3 + r1; var r14 = r10 - r0; var r15 = 9 - 9; var r16 = 4 & 7; var r17 = 5 | r13; r11 = r15 & 6; r2 = r15 % 2; var r18 = 8 / x; var r19 = 7 - r11; var r20 = 7 * r15; var r21 = 3 / r17; var r22 = 8 & 8; var r23 = r5 + 0; var r24 = r14 * r6; var r25 = r3 + 6; var r26 = r14 * r13; var r27 = r16 ^ x; var r28 = r2 & r12; var r29 = r0 | r6; var r30 = r5 | 8; r9 = r9 / r6; var r31 = r30 + r27; var r32 = 4 ^ r1; r31 = 9 % r8; var r33 = r12 % r3; var r34 = r12 ^ r32; var r35 = r15 / 3; var r36 = r15 | r24; var r37 = r31 | 5; var r38 = r16 + 2; var r39 = r11 * r2; var r40 = r37 | 8; "); -/*FRC*/Random.twister.import_mta(-72003681,873504477,-188624601,474214802,414511200,1108032381,-1865173660,1064712609,-14089367,-1322461136,304100592,597376845,701775833,-178648271,-1932234213,-1638183291,-937189039,-728736024,359871289,1710998624,-2112226847,-1631755536,1231741898,148897775,-1587795724,331733554,561187771,707927083,1885011581,337705781,1697472905,2018509890,-2093966146,-617784104,1510377159,580795228,-1753544611,-2042887416,-1727044213,-249463118,-2120347020,1490179538,-655061427,1015619750,-147476485,150416539,-1519344538,568018974,-1349502731,1990796732,-1544806003,1589357797,532846269,-984735977,833820700,1676838746,317006015,1314608583,-761197687,293415814,426633794,1663307341,1289981880,921755956,989912995,-1982182607,-1240097065,-1016411463,-2003489430,221006157,1412207187,379525476,722966489,1634383481,-630641447,281157271,-1736728751,-1322651626,1746011076,-325671991,1037248744,1538989871,-1626301019,1064643715,-2080718423,94524733,-1955317830,-975029446,1421511733,-1075649273,1821149437,-327227716,-126403593,-1123009977,-1197522876,197599539,425210216,-1794784361,-1554618282,-1453487352,356586644,-896837840,-1050478469,-901950748,432198268,1406446515,-1798641822,-540368513,-852701464,179627061,1479281776,1728512183,494535885,422483896,1733803267,-671891209,1156409589,-1590070768,-81622695,2068910209,-837724610,-1973125010,-1792202779,345442541,-974203270,-1277024551,1543401041,-1075279787,-2022239211,1286774380,-36010586,-1126539784,802550201,315407906,2090308352,-375453711,-1393295875,-385819918,-1466203131,-2101117569,1017068426,-1647458371,-2043405462,-727234426,-337326158,-1501623502,-699852586,-691420267,905307004,-1566571485,1679430366,-260496740,-1191547295,1626127884,-1051234154,-1278966007,86737390,726894206,292286190,452629661,1709253776,-1285731933,-1568674037,188675116,99349529,-55515333,1768738877,-1996871771,625942685,137332719,-1815929926,-1980264004,1117764187,-1422906520,1607962356,825076355,1462166132,1565224006,-1582906983,980392159,1978507940,-316375152,-372320973,1844533894,2089586439,1419117667,-1239932326,-435857921,-542175826,1432065390,-786946135,747219497,2023655820,-1070998254,-1873465732,757993904,-1858607977,933342461,-312678759,657210119,-22030927,-1815857751,-553159047,64016637,-574950051,-72147096,508909913,1182423385,1195455185,167237201,-939018475,-1989107001,-2090277600,911772556,-599727018,-654233804,-548713827,731051513,176964807,1347165,-1894636412,-1865582264,163586149,-1165575,1186920952,-1826639636,1830950398,-1850992552,-2066715601,-1186870570,-448081978,2039476833,-1208778004,747573723,577706042,1235678286,-1885074208,2040661587,1404476655,-1499942157,-1368217447,-1681036007,1806340909,-1488270542,883168230,-1318621767,-138506592,293620609,2129311554,-1635518715,-151521647,132691354,-820470585,898308935,1922809781,1783675703,1326639113,-328341925,275277238,638626425,1551461649,-431609559,1996972490,619099807,-1956095357,-1590050842,-1727647972,-1349456123,31829705,-1548796723,-381922001,1392188607,-467455932,-109179686,-1251168884,579706699,-1911666758,2049200246,873019872,-432956421,1652378643,1222254117,-1946761385,-1273872338,-1848602690,1440291169,414752996,1067850663,-88366257,1099470908,-1258350554,-1473131165,-657760353,-650303331,1206637149,2011047234,1065234444,626883797,-944736179,162334816,-1904621680,-1404197392,-971158926,-1934352512,1758736657,-317711322,1318852178,-2013362559,-1826003172,830367785,1049124483,-1987090827,-1243648392,-1156062832,746311978,-2050264824,-454612876,1901103590,334244582,961760192,-460994821,-1645604054,780847858,-758441131,-2003210453,1087862703,-1226063137,-1763523736,-1311266401,-492089974,-743391,371485152,1457771240,-1095186937,1846459687,725440354,1706050526,-459055738,1562076243,-2127897852,245231650,706030899,-1233205386,1988915503,561187919,1645655653,-2004462738,306127853,1970263988,779763574,2054016297,-1145844257,91823108,1320520701,-1873174851,-1522748610,-708370343,1609423746,2144043896,681848822,-1996639879,371452879,1230424338,415122196,202415295,-1956671465,808479367,-1215082192,-2056145614,660577670,2085072127,-842058380,-1719448568,1593230621,-336973035,328945941,-1229392988,-2108333770,1239580084,1627548239,1467201017,1102754561,-668478968,-1247358439,1082670844,-1112519524,1937675522,-848448224,-1104491172,204337411,1867778554,41492314,-1638521189,1513248695,-1397550471,-816544585,564856189,140359725,-125128618,-788390526,9145708,215103125,754934445,256299594,-637219629,1541977776,-788102202,1081071544,193339042,-551868277,1032347260,-1766307199,1408372485,-920704396,899571219,-208066100,1619986299,100439943,716290744,1299952453,-652615710,-1810432381,-100528876,-711088098,-1340096636,-1069673383,-1518134733,515725856,-1524658432,142668140,-864997149,-1794589531,-703591684,317793648,100199197,-1954696327,1082886431,1937903852,355177861,-1781668256,-502851062,1615009878,236976139,1280598677,24473499,-734068871,-545056164,286766592,-1607981637,1950122522,1712831758,374325937,1781929069,-1708686594,489957599,860257438,-100918827,-299860053,1311748962,-1628072460,250944319,-1221713637,-184635086,1136895205,-56885427,814254458,1326014731,1718065721,-31097001,777183026,2012536435,-430809852,856034283,-1310680701,831453715,1362725800,1616044171,1648462994,-1622210990,-514250938,-1765528545,437294386,1050597700,-100919571,1701645998,-1850424061,-480736449,-1393622305,1829077289,1839980,-340117003,-172969037,-1253196796,-1502120846,-478101087,1817256934,1688368146,1285180384,1098025451,2117188686,-1859302480,2102207222,-658767020,-186711304,-1354792443,-70782293,-1139977094,-1608170749,1806662250,-664415061,1941466271,2126918528,2044855286,1357530785,1538014253,-1009772373,-1256017238,-1746480990,571669245,1063415645,-341993789,-1080070476,1761051159,1097499057,20711455,1247643486,1532298395,-1954166412,2034255442,246723928,180323272,-770727791,-507484292,-846311767,1847714719,-2001524322,-1359657040,-58376933,226527432,-1279351277,509584263,-499730044,2044694511,-1857593817,-1947763164,1224881760,-1792184052,1994019225,-1043108883,-764670637,-1664018953,-943994485,1160485382,-2040700751,-963399487,-1920914725,850218848,-293687787,-846000936,1735146547,-169287937,495118289,66216710,-1142826799,-71080117,1914127134,125430800,225641174,-86360821,-141011129,29691097,-775817143,-658015368,589995042,-41950490,-565858090,478725848,1477603200,-1255628210,-1569910938,997836489,1395545771,930525898,1493392794,1248023768,1820484717,621888859,964595350,-414973849,-1701006098,-638113916,-1685561028,2085581385,-1772150774,186214035,967307587,1663973421,-132457682,-555756151,1983449853,-1040629124,-974159837,-904429296,-1305361529,1612067086,-1212913738,1300565509,-515479293,-949089920,737973369,864628613,906420432,1874518907,148835272,-2000216578,-1986559020,-1820827411,-1659304643,-1659871618,1073240828,1136008651,-1511564172,-911848962,-981921171); -/*FRC*/Random.twister.import_mti(132); void (makeScript(14)); -/*FRC*/count=580; tryItOut("for (var v of v1) { try { i1 = new Iterator(g1.t0); } catch(e0) { } let v0 = new Number(e0); }"); -/*FRC*/Random.twister.import_mti(162); void (makeScript(14)); -/*FRC*/count=581; tryItOut("delete eval.x;"); -/*FRC*/Random.twister.import_mti(206); void (makeScript(14)); -/*FRC*/count=582; tryItOut("var ikcxpa, a, w, eval, a, \u3056, x;throw x;"); -/*FRC*/Random.twister.import_mti(296); void (makeScript(14)); -/*FRC*/count=583; tryItOut("/*bLoop*/for (let tpyolp = 0; tpyolp < 5; ++tpyolp) { if (tpyolp % 7 == 2) { h0.getPropertyDescriptor = (function() { s0 += this.s1; return t0; }); } else { Array.prototype.pop.apply(a1, []); } } "); -/*FRC*/Random.twister.import_mti(351); void (makeScript(14)); -/*FRC*/count=584; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return (Math.max(Math.fround((((Math.max(Math.fround((Math.fround(x) || Math.fround(y))), Math.fround((x > Math.fround(x)))) >>> 0) < (Math.fround((Math.fround((Math.log1p(Math.fround((Math.asinh((y >>> 0)) >>> 0))) >>> 0)) ** Math.fround(x))) >>> 0)) >>> 0)), mathy2(Math.asin(x), (Math.imul((mathy0(Math.cbrt(( ~ (x , x))), (Math.PI | 0)) | 0), (x | 0)) | 0))) | 0); }); testMathyFunction(mathy3, /*MARR*/[0x10000000, (1/0), 0x10000000, (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), 0x10000000, 0x10000000, 0x10000000, (1/0), (1/0), (1/0), 0x10000000, (1/0), 0x10000000, (1/0), 0x10000000, (1/0), (1/0), 0x10000000, 0x10000000, (1/0), (1/0), 0x10000000, 0x10000000, (1/0), (1/0), (1/0), 0x10000000, (1/0), 0x10000000, (1/0), 0x10000000, (1/0), (1/0), 0x10000000, (1/0), (1/0), (1/0), (1/0), (1/0), 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, (1/0), (1/0), 0x10000000, (1/0), (1/0), (1/0), (1/0), (1/0), (1/0), 0x10000000, 0x10000000, (1/0), (1/0), (1/0), (1/0), (1/0), 0x10000000, (1/0), (1/0), (1/0), 0x10000000, 0x10000000, (1/0), (1/0), (1/0), 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, (1/0), 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, (1/0), (1/0), 0x10000000, 0x10000000, (1/0), (1/0), (1/0), 0x10000000, 0x10000000, 0x10000000, (1/0), 0x10000000, (1/0), 0x10000000, (1/0), (1/0), 0x10000000, 0x10000000, (1/0), 0x10000000, (1/0), (1/0), 0x10000000, 0x10000000, (1/0), 0x10000000, 0x10000000, 0x10000000, 0x10000000, 0x10000000, (1/0), 0x10000000, 0x10000000, (1/0), (1/0), (1/0), 0x10000000, (1/0), 0x10000000, 0x10000000, 0x10000000, 0x10000000]); "); -/*FRC*/Random.twister.import_mta(-883079268,1541597210,-1625037493,215086428,-1260446732,613857311,-906658235,2090401208,58645160,-1743349314,-928319295,-2040221295,2092867020,-487925842,1084054812,-1360302222,-1554578176,-433096880,-1050358788,-125088940,1252140799,1308937053,-803406739,-910701672,-571206758,1941125142,1502353108,289042533,1395054876,236788264,580212737,-1534607009,1695964928,947569503,-2075680501,1151680013,1374627060,-797447929,-202568672,4489253,535509509,-1604754820,-880183757,1083538728,-1120911676,480750136,481937050,-1883913410,-1351979609,1467857477,-415051603,918675002,-812434098,1053700352,666272028,-95669011,604149954,-1385423420,2079910237,-179639052,1186646098,1751020734,-2054298258,-1971469263,717993052,922537606,-1149341338,-1194235400,-283763453,-65562371,1831343755,1923482724,-2014366511,-1010239296,926671504,-1506577252,-378248824,1166539761,-25531757,1052472575,-694897702,164624479,669712856,238156820,-1043787917,992264857,-1693643920,-1774651285,390924127,202801054,-1697615487,-2009682931,-946028912,-1208641065,693867509,-1176394576,905782630,-1305741942,956294754,771948120,1776279672,-1194638071,456070460,-573824370,-844118032,-757501723,36889240,-911612559,664088686,-1877257662,179204999,-65353517,-722296969,-652541247,-868785372,-2103703725,1081540521,-1086994338,661659700,-1842734667,-757821291,-242427440,-333358092,-915735042,2137443591,-1677720096,-946440892,-611372342,738510952,1706575432,-706156664,-1214116271,131263049,888425032,2143851446,783362397,-1190255664,-1553690302,1356474366,-256189835,1802202650,1318749565,-638778800,1806550110,-1324794851,318440324,1663766322,-786591846,-1051032402,-417302429,1323745495,78048258,-1575333291,-1132810820,122763984,129915633,-1812683890,-836352074,435474506,6151464,1859697179,94653314,586368549,1846907948,-1160633197,-296961081,647265244,812402650,-284676042,244867533,1233701384,43864313,-503299341,1848560547,1348443607,-212596158,227486209,1956918005,444255334,645797770,1853902920,1489467400,-728391131,-1674104427,-529669051,746234855,-1291237446,632607247,103788250,-1802115504,-164435107,-620018527,-1165469081,-1847742278,-853579292,-304336675,1418151595,-1530944256,-214344673,-982425046,686846245,676650602,-1361456548,1982629901,-1204416617,473275747,134504436,-625076039,709311553,-259103408,1022789823,-2032502000,1892733375,497638830,1518761802,-1726482710,-1004617237,344559426,278230053,-1796115793,-713049703,1090059923,-1727532705,552165687,-1402436606,-1086897407,-844161471,272482644,121769329,-309951832,-383861581,-1356408190,-338067411,-658312616,1481344927,78437592,2110728776,2021197417,203446327,-1299220129,906285565,-1405049771,-1118958869,-117109517,1737781587,-1162113876,692313675,1977056606,-666009600,846182394,-1975283371,1668345126,-1333918358,-104236591,-1122329311,-307814969,-1591518758,1788963546,780608700,-769500841,-1840158956,-3927570,-807479907,-850151062,-2132068620,-1083302994,-830191752,-971940418,679890117,639626363,-1327479896,-1893619994,1612229717,1175425116,1207680068,-1469231494,711955070,-45724579,-1663982824,665136024,-2085908787,-1153084824,-1606085382,1827331869,1585979819,2007284015,1938903544,-487610070,144324768,-1611503235,1198363231,-542725300,-1016403433,1099114647,-2093057191,-257358587,2008127048,-671573390,913342548,-2133600487,-1779553736,1412777897,-529958052,68602335,1930425826,-1724620358,-1538488480,-1627389868,-931627884,-1582850490,-1812004879,-1691961265,1722757713,-852433947,-1797439249,1698599781,1958624109,-1826200334,-1801516563,1826024754,-117403582,2115958412,160209349,-390520276,1263074946,-1165838382,1702076396,-1472428952,-912333876,-35786253,-1763830146,-421646716,1418568505,-331543340,-600355136,357372289,-1572143999,-47484559,-57694895,-1816369306,1427711111,-687341409,1624411931,-909653679,389424051,590547331,1111308444,-396133553,-424556949,1209994687,1304144846,1037714181,575828161,1454508741,-1995347115,-537925477,172927881,-368237004,-1544545878,-1700494806,-420671632,1533278015,586025175,638508368,1069803926,-1848991134,-344755475,701740163,490032062,2126931184,1296719588,-37184999,-460795435,-808016281,30971855,-637076100,-1509242632,706215437,-1389401606,279656566,95372515,725799892,-999980254,-206521104,-788635144,1615567563,652937144,835574965,-625343524,358171352,1864964993,754026241,442310851,-1446690241,-825313954,651493975,-1816261372,1976406563,1780244024,-1572502459,-246456266,-550986658,-185113753,-1182401353,424700333,855215493,1179253846,1799577369,-297640814,-1974366949,241411082,278680344,150288093,1892604012,477644521,-278880840,258153804,-479578623,1690185180,-1778076266,1121877796,-1340182674,-2028804910,210278761,1571299315,955277785,-1976578246,981448357,1813292764,300546802,-1516214656,-750908695,1431113691,-1812948315,1174958554,-754300911,-917541594,-1351880030,-1942190048,30629050,1837683077,-998163568,641038207,1571604217,-1482801119,2136275211,-595940945,1549999003,988200862,-1442041896,-1295634256,8077035,-1306230146,440253169,161414939,-1565216444,60689826,-1911986942,-1604579208,900447597,1516065290,573890310,-62538123,-628464335,540885716,-1297328019,414450844,-1877025143,-76952628,532469005,-903077263,-1491090311,994275506,-393473123,1565243530,1902919834,55538099,-2048650628,333217413,1645519802,-1262406840,-1571425917,1213310574,-745152883,-76302204,-970731012,492660967,2111510367,-3532712,1661696440,780357740,-632428298,-329932393,642553719,-1338389427,450328268,5425547,156350338,-1338410815,1754139021,950599975,1806024174,-771567866,-453450845,430769623,-1026094811,-289457466,-159632392,243206370,1083282026,1401538269,1652105296,-958846304,-951058639,1510938016,1376477685,-738131668,-1888722946,1495215165,1873580457,508338125,1850542733,1226110210,-299425128,-220833315,-2100120890,-2062470237,-380761839,1399790853,-449398088,-1273386680,66045532,1727788593,1247069808,-1688628069,-1627201716,1189982228,-717309035,468802457,-1333243059,-64241881,1899640775,-191525719,827163775,-140017726,-1643531925,-1900841695,1088525675,-1910488838,-554916895,309098038,702362497,547665749,-1624049837,2012520922,-1865923460,1407850022,-266891246,207650882,-143557479,1005899747,-573669565,-1850389194,1185153019,-2078224130,-13413543,-1794775539,-243496227,902601699,-1187464792,2016380330,2069208591,1923499922,2088946159,-2025741532,-1460296441,1679178367,1462762217,1827456182,-421125254,-433221297,-1834339792,-210876842,796852709,1162126557,678431704,-2045000351,1279770524,372092232,1310038805,1808461262,-655564691,-1696255385,938963323,-1408697091,-1247090825,1120602471,-1154677505,534556600,-999001877,875157161,1691572039,437693536,-704524161,835571158,1390763559,-1191134168,1712865315,-407623369,1151968319,-390869864,2116788378,1680088879,579373383,1963335007,168723317,-1025675111,564212926,1930275455,-1567711495,-1154028539,-1440902751,-580830274,-166678838); -/*FRC*/Random.twister.import_mti(228); void (makeScript(14)); -/*FRC*/count=585; tryItOut("print(x);\nv0 = -Infinity;\n"); -/*FRC*/Random.twister.import_mti(261); void (makeScript(14)); -/*FRC*/count=586; tryItOut(" for each(var y in Math.trunc(x)) print(y);"); -/*FRC*/Random.twister.import_mti(330); void (makeScript(14)); -/*FRC*/count=587; tryItOut("/*tLoop*/for (let c of /*MARR*/[true, ({}), new Boolean(true), new Boolean(true), (-1/0), new Boolean(true), new Boolean(true), new Boolean(true), (-1/0), new Boolean(true), (-1/0), true, ({}), new Boolean(true), (-1/0), ({}), ({}), ({})]) { /*tLoop*/for (let x of /*MARR*/[new Boolean(false), function(){}, /x/ , undefined, new Number(1), undefined, undefined, undefined, /x/ , /x/ , new Number(1), function(){}, function(){}, /x/ , function(){}, function(){}, new Number(1), new Number(1), function(){}, undefined, function(){}, new Boolean(false), function(){}, new Boolean(false), undefined, new Number(1), /x/ , new Boolean(false), function(){}, /x/ , new Number(1), new Boolean(false), new Number(1), new Boolean(false), new Boolean(false), new Boolean(false), function(){}, function(){}, undefined, undefined, function(){}, new Number(1), new Boolean(false), new Number(1), new Number(1), function(){}, new Number(1), undefined, new Boolean(false), new Boolean(false), /x/ , undefined, new Boolean(false), function(){}, /x/ , new Number(1), function(){}, new Boolean(false), new Boolean(false), new Boolean(false), undefined, new Number(1), new Boolean(false), /x/ , undefined, /x/ , undefined, undefined, new Boolean(false), function(){}, function(){}, function(){}, new Number(1), new Boolean(false), new Boolean(false), new Number(1), new Number(1), new Boolean(false), new Boolean(false), new Boolean(false), /x/ , function(){}, /x/ , /x/ , function(){}, undefined, new Number(1), new Number(1), new Boolean(false), function(){}, new Number(1), undefined, new Boolean(false), /x/ , new Boolean(false), /x/ , new Number(1), function(){}, function(){}, /x/ , new Number(1), function(){}, undefined, new Boolean(false), new Number(1), /x/ , new Number(1), new Number(1), new Boolean(false), undefined, new Number(1), function(){}, new Boolean(false), function(){}, /x/ , new Boolean(false), /x/ , new Number(1), undefined, new Number(1), undefined, function(){}, function(){}, /x/ , new Boolean(false), new Boolean(false), undefined, new Number(1), new Boolean(false), function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, /x/ , /x/ , function(){}, function(){}, /x/ , new Number(1), new Number(1), new Boolean(false), /x/ , new Boolean(false), new Number(1), function(){}, new Number(1), new Number(1), function(){}, new Number(1), new Number(1), /x/ , new Number(1), new Boolean(false), new Number(1)]) { s0 + p1; } }"); -/*FRC*/Random.twister.import_mta(406644270,-58385342,-466780437,-350163508,342585486,1225092250,-943095189,418317561,1056096602,-1156304663,-1317423346,-1877142924,-1155209524,1848445572,132768929,1499378781,64578500,2093622039,-1826277358,-214253844,1566630768,-709303499,-220245926,740587241,-909642907,-1412108360,-1659039356,1950053245,1073671373,40752101,-1321933099,513771868,-1797510270,1049298650,677651760,2109382049,583261945,1073674186,169916636,1605517563,-1085848676,1894810598,1637474862,1930481383,-1965887860,678007858,1517692774,1763952173,-1914530570,1993568550,117699718,489627961,-177522856,-1591906242,-1537895358,-534393313,210482195,-311805078,-1743665346,1623419275,-1171890339,-1566907697,-375525462,255363108,961198149,-503675194,-2031955507,-826344310,1437541580,-148324602,-1454515013,1637278075,2119739757,-1850617031,-1274642889,1341735030,323444410,-75612900,-1220982214,671426654,1477140108,2752105,1695309232,221053998,1724850192,1171727318,25236071,702385140,-1071059405,-1992433416,-1597443706,-1677441264,-1577515636,-484038327,-960677202,-1230294236,1062825394,-330940548,232131040,884816311,-1942182439,-38866337,1181227210,1585373919,-1681803965,-1826898358,1495572932,1248304608,-891641852,853586906,1366943566,-49350778,-1256938539,898791247,-1170238682,1072358827,-657122530,162989498,-1038688784,610531769,-139840746,789545415,186249046,-118011503,1615661181,719310752,-2082423811,-1529594391,-1341222430,-1343930265,731365094,-1987127042,-11755620,-1946296173,-1916804563,2055006169,468094673,-214661276,1045889705,861407001,1803241972,923261617,-983649950,2108133878,944223749,-989852880,432227250,-1760936555,1955675525,1892197781,1119019882,103143695,-2133723841,1371859806,-1291145690,694085266,-132000632,990824959,-1863931160,-40961036,-221923885,-2079222897,-1065634161,-1080726155,870355583,-1023446824,1586879510,-1281046299,561501024,-1312718071,1765446270,-1648096699,1462201510,-922158178,1124047662,-1385602483,-539467702,-1971534569,-1144344894,1398149723,2068596461,-542202501,838142831,252957618,1570755356,-353704565,-458368963,1179874224,574290160,1678376976,-1194676973,-765382492,117130056,222648636,923420892,1773019629,631809019,1285349933,-686664094,-1883537110,-1358468150,145770134,644514866,-1321573955,-1279186647,504660890,1649831164,-35200215,1789029519,2121484456,1702198699,114618679,1249708776,-974063811,1923111919,-1625043195,1758220006,-465299566,-1719760131,829037706,-657065176,-427367921,1811062461,-1392333308,1821278462,582878273,-1106358688,-2104143799,-901358314,162173037,-1129086835,-124846009,627316150,853864827,448359061,1397886,505414402,778120138,273817092,2033073901,-519706511,-1069133557,-1126923525,-384046158,1637344577,1586259944,-909049789,1900422000,-1936770872,1861625903,1570504826,-772214320,1312351119,1519972299,-1679798975,1869561888,2000512648,-1502120821,-1366944472,-571172856,1097403949,-695992543,454246676,1656112515,1615460893,1835178848,1018883620,1913443617,-84425468,2045363194,880811412,1674971257,191781916,2039216452,2098553104,-657105463,-780605481,1231758602,1325249781,1840660705,-54535926,-193520065,257429838,-1161358311,1336989474,-1579585598,1370799390,-26524915,879453870,321099354,552328578,-1040745071,406037074,511007934,803393239,779612136,-590024129,-227173231,-117982680,883932273,1654898738,-2077047911,-1795517370,717268043,-136049215,-450950774,1736779892,1010262214,1358573898,-1241804137,-642324266,-1936717337,-95952133,-756612401,-1035308391,1669284698,-2136026495,1938802095,-361811575,-1652994643,-1675013617,1534314131,-2097700302,1526534899,-251173739,2138031638,547584899,-386673601,440973945,218567669,756151709,1754256384,-1526384608,926877348,-1714838017,1123511963,-713180227,-1237940935,-1261386699,1183875401,-2028025889,1398695028,-2113818148,172407320,-2128203356,-485998146,-1990527807,502948092,-771180601,767834801,2131941580,-395542334,-1735493091,509656712,1378580859,1814131961,-1696345219,2054140467,-992175637,-1942349788,2135206867,96491161,1769703793,67598874,-70134187,-756675840,-21402233,1709304875,140830921,-470049264,-632591323,-754225616,1004792028,-1071138678,-1173798101,664033785,-1127486900,1411733399,1315980596,453961617,1147503284,-1858572361,1351006442,-1872829324,-769412027,-2087507660,2086708593,-543640515,-826461469,1860668304,820321834,-1480150335,1326801176,972195513,2043083025,682153442,1378876103,1546960226,367950008,796974269,-1499679311,-1584620990,1755524297,175694915,168342282,-1729212183,-62200,1282238628,59691817,1992612202,123599422,-1058146131,-762476099,1939426198,1910717804,1703638614,-860378161,-896156675,-647796113,1737784538,357199499,1954757301,-1226646138,-1837884195,-907255266,-771378689,1267526311,-1727186780,4504559,884651890,1101911062,1081024027,-1897628137,22172689,1298888702,235264540,700887545,594229691,1178427242,-441330955,-407868683,-1196273521,687676582,-502538711,48683976,776695541,-967630440,-978934553,-209652253,848398053,1949794734,1973207489,-156735002,600408370,-1815148309,-1953932345,246293228,-325220175,995257902,139115699,603889400,-1114438288,-195504583,1312727656,-1371556061,1544035402,-399908490,-1666118249,378571602,13247260,597473617,1010195736,-205332743,-1485513722,1240466237,337653966,1812209937,-1921347609,-520970227,1415084587,-1833261099,-3629450,-542302279,176470730,-983131019,2032144772,2047976312,2123104769,-1492761603,206760226,1334882808,-1888773623,-1488166908,-1112622883,1063743047,1674973470,2101418043,-1248587477,-1902527392,-1909298096,1280911283,1410598547,866229447,78042595,-251129529,966928790,378034461,-1149215365,-734013686,-1080802561,-1946450895,1826374258,1534468229,1018378190,1315324712,510387768,1419098533,-714278077,1864992154,-1910678165,-1336186585,191411286,426016420,1018654222,-1289959950,595039014,-654309338,-1843593617,-1230397755,-822722334,1798784869,1569801734,-1070241102,-215919898,1941311328,864872768,107773826,222754245,232558750,492473783,863152627,1627915282,-1563348550,-1149407904,-1518096955,876493766,1677801415,-1690733966,-1391646788,-876504791,-686081044,2019397600,-369226400,1532570478,-526911999,1941811562,890035196,1797371324,-901784941,1643638542,-2133816870,-787283100,-1196547655,-680668222,1353161802,1733986284,-1490651912,1156594417,1338128544,-32083191,-1360738880,-1200287123,1145148822,-1963317933,-796392800,957028903,-1621395686,1231338135,-618688129,1922040421,1463134096,731667024,-1567210284,558445004,1851242463,1591331716,-367409174,1951563127,-1144902708,1553923990,-1317422349,799801273,269812578,1907729190,-1506005169,-267789147,1734716592,-1784333319,1748625050,-117460137,1799791606,-1224600293,-1784938215,-466809689,-463517605,1391467296,-250972321,-289986832,1784941943,1692360358,-280284103,2033781517,199220552,-538240255,1133987160,1994078832,1043796431,-1872004150,797527394,-1954109499,-168493386,393635022,1403028103,506563024); -/*FRC*/Random.twister.import_mti(129); void (makeScript(14)); -/*FRC*/count=588; tryItOut("mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var imul = stdlib.Math.imul;\n var ff = foreign.ff;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var i2 = 0;\n i0 = (i2);\n i2 = ((imul((0xc9740844), (i2))|0) >= (((-0x8000000))|0));\n return +((-3.094850098213451e+26));\n }\n return f; })(this, {ff: Math.log10}, new ArrayBuffer(4096)); testMathyFunction(mathy0, [true, [], '', null, 1, /0/, (new String('')), [0], ({valueOf:function(){return 0;}}), (new Number(0)), '0', objectEmulatingUndefined(), '/0/', (new Boolean(false)), false, (new Boolean(true)), ({valueOf:function(){return '0';}}), (function(){return 0;}), ({toString:function(){return '0';}}), NaN, (new Number(-0)), 0, '\\0', 0.1, undefined, -0]); "); -/*FRC*/Random.twister.import_mti(255); void (makeScript(14)); -/*FRC*/count=589; tryItOut("\"use asm\"; a2.__iterator__ = f1;"); -/*FRC*/Random.twister.import_mti(268); void (makeScript(14)); -/*FRC*/count=590; tryItOut("throw x;"); -/*FRC*/Random.twister.import_mti(291); void (makeScript(14)); -/*FRC*/count=591; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return (( + ((( ! (((Math.fround(-0x080000000) | Math.max(( + x), -0x100000000)) >>> 0) < Math.min(Math.pow(x, y), (y >>> 0)))) >>> 0) ? ( + Math.round((Math.atan2((( ~ ( + (x - 0x080000001))) | 0), ((Math.fround(-Number.MIN_VALUE) ? Math.fround(1) : Math.pow(x, 0x07fffffff)) | 0)) | 0))) : ( + Math.fround(Math.cos(( + ( ! (Math.trunc((Math.atan2(x, Math.atan2(Math.fround(x), Math.fround(x))) >>> 0)) >>> 0)))))))) - ((Math.hypot((Math.fround(1) | 0), (Math.acos(Math.sqrt(y)) | 0)) | 0) >> (Math.max((y | 0), (((((mathy0((0x07fffffff >>> 0), (Math.hypot(Number.MIN_VALUE, x) >>> 0)) >>> 0) >>> 0) >> (Math.log1p(0x0ffffffff) >>> 0)) >>> 0) | 0)) | 0))); }); testMathyFunction(mathy3, [Number.MAX_VALUE, 0x100000001, -Number.MAX_VALUE, -0x0ffffffff, -0x080000001, 0x080000001, 1/0, 0/0, Number.MIN_VALUE, -Number.MIN_VALUE, 0x100000001, 0, 1, 0x07fffffff, 0x0ffffffff, Math.PI, 0x080000000, 42, -0x100000000, -1/0, -0, 0x100000000, -0x080000000, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mta(1651913539,-17795310,1511041627,-324465162,-2062668785,-766550749,-553134368,359781287,476903490,-1488726385,73654686,1578934351,30563368,-1650345807,1967788636,-748603297,-722146622,2020712805,471214368,-1576543625,2034334392,-1609776574,-1467025551,-1465833498,560549225,-127118012,1902187964,1327211687,1245440210,-903993070,-700253174,170569262,1811887135,1436534414,-407183340,109912500,514666484,1216031632,-1194046786,912592951,1528002632,1995550333,1160840537,-489087565,-326722922,96866069,1335004640,68653491,1428346470,-976036901,1379501220,-919245233,1646214906,639454095,-1668901359,702874416,360488071,-540546188,1658871773,-1967800931,618154249,1335663099,1339488417,-1504480763,-1922152941,773918208,694279213,-991419067,1738294217,629653492,1970458101,-1330352325,-1860535713,-526961003,1540029731,-94277212,-1697922424,309110304,1076012257,1073843799,342278156,-764113195,1389295676,-1579337763,-584904803,1181034069,510295856,2088393651,1035919864,712367035,814621065,-134561477,-456569511,751709359,-734133349,-119482659,-1953650845,2039245495,-528466662,-497550840,1380702427,-307384315,939896288,-659468851,496622006,1597230117,563419923,-731561659,1624404091,1043638970,-2063128904,398276159,2085996935,-1763422814,-1440645000,1998368010,2020128019,1869426128,-716002757,1866506286,467897215,1789227569,728648060,1500863942,503796614,-2120445051,-136986587,-350515965,-309492790,-1932798123,-1763995120,-921710325,301990004,-1260386644,-1180203723,1422826757,-893709996,-1248510229,-1289201133,869391224,-1882347454,796117039,1669940556,-1235631570,1132986762,-298807197,703644533,1187218392,-1789732397,1163413106,19082794,879586812,-1557926778,-828478209,754121897,-705763548,-1613299890,-387669131,226151568,-714690102,-1339962204,856338699,-1489639061,1076391994,-261309688,-672870478,1471612783,1865210,-424479049,-742703673,-753234164,609324787,-627962170,-811923369,935924628,732800435,1456273159,-1922214463,-911694891,1005970611,-4499211,451781655,1964633020,2046447134,-2015258550,1237850133,1113622548,2135608231,1826409356,1869881788,493020453,-121664920,1513902856,-1426284899,-2106302576,-1681268160,-822910225,-1917516674,-1210835920,820386133,-771942222,2064426115,2037003094,-1414625347,-133671722,-1531496601,1138150892,134663875,1841938292,1522039125,1960177332,1331333123,-550529561,252946705,-274703280,2142894651,-305590072,-1776242439,778974261,308145243,2048965138,-1015500061,-1660423993,-2085372215,-1625172431,1286055351,-965504725,123018696,590188539,-582886718,166083850,-675535148,1379243329,1263784821,360413592,326957507,-1334623382,206237340,-75296794,-1470621489,1686773995,-1305943042,-1477653114,1027057853,1463259793,-1577707042,-626734129,2131158748,1316972170,-2042562740,-2141364466,-545420175,1277727358,-442924093,950797495,1906662294,1076700040,-2130577762,1691410986,-1841101866,-405370431,-1439481698,-1361136726,-1216257499,2127193632,-1500955220,-1771320712,1718131402,168120192,1601244051,1245358416,-382618472,956560311,1897413992,-1317695608,-1533668014,-1587066530,-330306047,1726414560,1547752063,-986811313,-617963850,-1383187997,1923413782,-819241835,171573586,747154628,2129525342,1175278294,1604523616,530611218,-1049127110,555458655,-1483207783,-741092687,-788624887,-977944221,151589089,1944781276,-1605658042,2072438662,297252608,906597214,942765239,1625498341,870330587,1578778164,1008457897,1367471937,1041599575,2124252145,956845631,-1239541779,-431491421,231078430,-1528743833,-893744717,-1666119278,542037810,869618817,-662732999,-716844414,211218299,705078774,104565180,1775841284,1327931592,-2040056520,1915128096,-1215961103,-319379507,253445542,78401399,-1267107533,739657431,-748413574,-64530183,1181217917,-302135740,-422438217,-11829352,-1423877994,843051014,2029759937,518589711,150429828,566071376,-1410375613,-1521492042,350692634,1833115047,-884416937,-827536191,1204341831,1141082016,2046089899,1760870035,767389242,-1894589159,-190126782,789093695,336785746,1456283656,1851476641,-588891285,1434213391,-668361294,318205177,512624423,-1750842495,-539200202,511309284,-836547546,-302198209,-1946083333,-1959318283,-1237164698,639306928,-1595756821,-2129580580,1594551291,1152491740,-574515938,1875875251,-1456654353,-364761353,1671584523,1316480266,1148810435,-1085839746,-893150843,-1746531452,1377123377,-228799688,340270859,1454226187,-39754890,-638733488,-1432792974,1356129473,-1621277322,-628083409,-1214683315,1405660802,403885418,-1235802799,1573081313,1735688638,563071138,1991710371,-1065090409,2008017995,805617118,2056328866,1301246092,-745558348,-1825157987,-388243251,-1955220475,-913189742,162902808,-1727712941,1274764529,-1442491424,2109697118,1260050876,1012958471,148370842,1632763706,1505548637,311539823,1718803202,2098638256,1701017107,251929549,-534620329,-771402409,1472938241,-460664410,905908290,-901631607,-1143025149,-676026896,-1397064404,403552092,222799097,-377090313,-1696042948,54051150,-1491324912,544567030,-1535778110,490956078,1453106561,-610729740,1685757581,1913105989,1414466077,1251067986,1137367613,1436176845,-161504677,1952688375,1046751268,1649336505,-812122275,2131242715,801269058,-1303514512,791290353,590120497,-136426190,-229869603,659847822,1964441275,-512375075,435486816,1764540375,744030651,-595758773,-1703031560,-831374412,887555827,-73998995,-40763812,1507341206,873312777,1834817760,-333827057,-1994986666,691806206,762074658,1633079581,1355861380,1468240453,-1381141694,-592202791,225867616,-1373076816,-970469199,-1038446850,833483060,1070452604,15462690,-1331758390,-190160207,-662156259,-1355702326,501747478,1903905572,80401967,2073623560,342071989,196840784,1909983554,-179355941,-333587682,1748287199,1601276240,-532765677,-500411982,-547230237,-828031730,-600071270,1488116082,1600849359,1884116398,-1176856517,1993119601,-627408845,385472436,1090099132,1248893352,666974596,635284489,1387776128,-1581365654,2020854718,-1364346821,917500875,-691800918,481125059,-111178025,24375182,-961670031,-1958282226,1045032376,-1896223513,699248329,1729852045,1445487110,851742476,74818995,-429528297,-4592243,1755374814,-2112537297,1356986971,2145432097,79956890,-588187519,-381032748,-1194134373,-1804298532,1976219531,-26280904,497202960,-659921976,220385741,1699582694,-1110862808,2093598660,-1803369742,1241092352,1851940239,-1428003781,-379729778,-641440313,721973178,-449437943,1376182639,1430824394,693125709,-958933597,47287288,-1172422932,395012902,854165721,2052951705,-679916114,-1601829470,-722683174,1839631772,1379875530,-201641356,1832702335,75394722,-1413446021,-1156670320,-1149231651,1869965421,1606922152,1613306489,1566919060,1331888416,24061339,-162873692,-1288675937,1994264463,1936506845,-1973706518,-1396516533,1556026280,40499623,1964668978,-1033220869,-1217209445,-1660469452,187558073,686769002,-1175979681,-1534005609,1505066979,1435683336); -/*FRC*/Random.twister.import_mti(128); void (makeScript(14)); -/*FRC*/count=592; tryItOut("var egvxev = new ArrayBuffer(0); var egvxev_0 = new Uint8Array(egvxev); egvxev_0[0] = 23; print( \"\" );"); -/*FRC*/Random.twister.import_mti(165); void (makeScript(14)); -/*FRC*/count=593; tryItOut("const v1 = evaluate(\"/* no regression tests found */\", ({ global: g1, fileName: 'evaluate.js', lineNumber: 42, newContext: false, isRunOnce: (x % 14 != 4), noScriptRval: x, catchTermination: true, saveFrameChain: false }));"); -/*FRC*/Random.twister.import_mti(203); void (makeScript(14)); -/*FRC*/count=594; tryItOut("v1 = a1.length;"); -/*FRC*/Random.twister.import_mti(216); void (makeScript(14)); -/*FRC*/count=595; tryItOut("\"use strict\"; t0 = new Uint16Array(4);"); -/*FRC*/Random.twister.import_mti(229); void (makeScript(14)); -/*FRC*/count=596; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Int16ArrayView = new stdlib.Int16Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = -295147905179352830000.0;\n return (((Int16ArrayView[((0xad55c1d0)) >> 1])))|0;\n }\n return f; })(this, {ff: new Function}, new ArrayBuffer(4096)); testMathyFunction(mathy1, [-0x100000000, Number.MIN_VALUE, 42, 0x07fffffff, 0x100000001, -Number.MAX_VALUE, -0x080000001, 0x080000001, 0x100000000, 0x0ffffffff, -0, -0x07fffffff, 0x100000001, -Number.MIN_VALUE, -0x080000000, 0, -1/0, 1/0, Number.MAX_VALUE, 0x080000000, 0/0, -0x0ffffffff, Math.PI, 1]); "); -/*FRC*/Random.twister.import_mti(313); void (makeScript(14)); -/*FRC*/count=597; tryItOut("\"use asm\"; let set, x = (--a) == z instanceof x | (4277), x;for (var v of p2) { try { m0.get(\"\\uEEBA\"); } catch(e0) { } try { e1.has(o1); } catch(e1) { } try { v0 = -0; } catch(e2) { } t1.set(a0, 2); }"); -/*FRC*/Random.twister.import_mti(489); void (makeScript(14)); -/*FRC*/count=598; tryItOut("v2 = evaluate(\"v0 = Object.prototype.isPrototypeOf.call(m1, t2);\", ({ global: g0, fileName: 'evaluate.js', lineNumber: 42, newContext: x ? intern(length) : (4277), isRunOnce: false, noScriptRval: false, catchTermination: false, saveFrameChain: false }));\nv1.__proto__ = b1;\n"); -/*FRC*/Random.twister.import_mti(591); void (makeScript(14)); -/*FRC*/count=599; tryItOut("v1 = r0.toString;"); -/*FRC*/Random.twister.import_mti(605); void (makeScript(14)); -/*FRC*/count=600; tryItOut("mathy1 = (function(x, y) { return Math.min(( ~ (Math.fround(( + Math.max(( + (y < x)), ( + Math.atan2(x, x))))) || Math.max(( + ((( + (Number.MAX_VALUE >>> 0)) >>> 0) < ((( + ( ~ Math.fround(y))) <= x) | 0))), ( + ((( + (x , y)) >>> 0) | (x >>> 0)))))), (Math.sign(Math.imul(Math.atan2(( + Math.max(0x100000000, (Math.fround((y | 0)) | 0))), (Math.max(y, Math.log1p(1/0)) | 0)), (( ~ (x >>> 0)) >>> 0))) >>> 0)); }); testMathyFunction(mathy1, [0x080000001, Number.MIN_VALUE, 1/0, -Number.MIN_VALUE, -0, 0x07fffffff, 0/0, -0x0ffffffff, -Number.MAX_VALUE, 0x0ffffffff, -0x080000000, -0x07fffffff, 0x080000000, -0x100000000, -1/0, 1, 0x100000000, -0x080000001, 0, 42, Math.PI, 0x100000001, 0x100000001, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mta(-426407719,1587131776,1719689786,1154671534,717171553,-669348803,-2139555954,371503435,1023311561,535994414,-781033146,560391862,-512787932,-1172239431,-954744645,1518258367,-1616808241,1132749852,1535439696,-275320383,-119701012,1178238818,-1648277663,-1073109645,-1523377167,860608047,343945580,1487050807,1846922549,1463941890,1304601229,-844704278,1936931354,558680165,624184280,1916811850,1096737755,325977746,572026771,-7542413,-172284192,1595597781,-1650774460,-1140753214,1614112086,-260185344,934872362,849140847,-1230603829,-2137338715,662337476,1916231219,756688136,-1220635359,-259562662,-1896506446,2038386747,870424517,-131534692,-1184679394,-360057281,-193854243,-907291680,-1977236965,-1588648613,-103025090,-2061989287,-2004323966,-581689177,-591791874,-1366236672,1674084224,-966194588,-675198849,-890309152,-1087793511,1851926942,-871425004,1484632361,331767910,-652326814,1161723301,1436244602,1843723241,877140033,1003633003,1554202731,-481390944,-706056556,-1253961198,-811022174,125182588,1182354910,-1708413204,-938177133,-1114066317,-1256306688,1740868808,-595161530,748613483,-1566040131,-232106944,1937229448,-1932107227,-2026067975,-1240468950,-1278090913,1509913128,-340772884,-636756159,2112336906,-1161143542,2047438325,1373246995,1485453,-1319145245,1007492024,-1032196992,-2098237748,2028252798,-999377128,1254534638,-863761680,-315623311,1185355006,742878659,817812932,779360407,-2147066182,991992998,1146470497,1070372683,-1058372763,-752704015,-1281988127,1865224450,-469559762,-448712225,190784828,-1504144821,-1228759178,-1620501859,763564764,-1224215441,-1296197075,883908530,571616866,1427097671,-370483401,1054374573,-1798350311,943478922,-1721961427,-1722176371,406060190,1268701716,186583666,-1190884411,1108589627,-637150339,-1871965695,-177015221,1691366279,-456743675,-2101640947,1241630707,-1803899871,-543458289,247190020,1949298838,327816302,543938222,-1685543406,-433250846,-266885694,653003182,-699954369,-1816216390,1846552253,1334367275,230295315,293902948,-640993274,1375087946,-1465640673,140510791,1618608303,884993598,-1918620110,-2144163477,246828525,390309661,1527755327,-507762070,-1727509510,-1814590412,350599413,-1475265428,-1404605174,746644219,1330537701,-2017753797,929033948,326189574,-1802206012,29523087,-1066492374,2038947482,-1254381074,-870299138,227912001,-1069451869,-1376920694,-1114927422,1242993801,1784388556,-797896444,-1155149065,1380715017,-1973254510,632542874,-593059835,-264360751,1870635672,1540066451,-477886551,372786412,1846280187,1882806497,577993919,1863119044,-626175714,1690031448,-1966781630,-2037219979,617078652,1507317600,-323754315,-331195890,170056334,-1556776378,-1797151112,-1645368258,758255448,1400858867,-1344395672,-1877638481,-538824023,1159333060,-571479834,918541204,-1020833074,-1735416047,-773946392,1617966588,1308843249,1472266317,1068159896,-997764095,-1718563291,1951754282,1918571021,-1333249145,1044107467,2791492,1764592303,-1934056426,-256278240,-374679869,-1199146260,-2003196274,-1514394542,-923664972,788775662,1624757958,-434774684,1874168698,1409878196,-987789357,-1769623568,-626271622,1061736308,-139993031,-941470034,1996267372,-294869250,-2045393103,-913350828,-610037779,-969150999,-1432483450,1758086571,1931428653,1979306974,2046788697,646344905,20299857,-1754963218,1944957603,-1146455641,-551906305,-773178289,976854045,-954529741,1291302054,2003873331,-1799144211,1758855965,-1019475119,-203609251,-395809751,-1236294808,-772181275,440515940,1748410956,700422802,-82143525,-1617976517,-2020329245,-212974947,-259438675,391596785,-1466179448,-1241281314,1395594442,-82452958,799897079,-608478419,1893734247,-1677449807,-883179274,476197021,893124204,2094166763,1884126357,212544335,540054944,1259951912,1353442958,95212089,72006232,1493783182,338302684,-1435423264,-972923710,-1842239772,-199512448,-1765189437,11878243,1663907068,1367549829,-1191591359,-693388481,314512916,-1954101987,762622252,771632059,-623632846,1167713770,241597733,-651436712,-1729037851,-1056439155,1400421188,385330951,659287013,1982567656,546122810,229870466,1114449991,-130347363,-1783874498,-614889870,-48623296,-1986203934,-1295257212,1842740469,498515379,2025115236,1875980559,-1157530397,919811601,-1519280110,-2038357670,1429023841,-1429593759,-46257672,727193791,-355383948,-1732685926,-1355439929,1924771786,1932501615,1196823419,1841631573,812344255,416885054,1187429463,-787934191,-1809447767,309180330,852731579,1325948655,-632361590,295542477,-1711718894,2083689716,494789442,-1277713942,1619102098,-1289131088,-1331279888,891850006,1186838761,494418276,1563932835,1834478034,-771479760,1938509140,534080435,1949696540,1711101277,-2032851516,1782189786,-1919135566,729784150,686495798,2145819512,846027082,-1491107276,541601671,-1440755172,-1434749095,1592016659,-794933778,1160885146,1053645217,1070645650,-1698759294,298087313,2037143324,567068273,1007068506,-1669870934,613331028,-7881299,-954810740,1680848445,-819415027,-1610310742,2101695481,359284228,1371727286,1005896854,-2059534238,-802013412,-1856222866,1245975789,1648397535,-679588511,685910704,1705712081,1005964142,-235399197,1383115204,181337532,499378223,-1173126274,1518077535,359882745,383592897,-1286478910,-59499729,865488173,1984979224,165709044,1886455762,-1180965994,1947294388,-709803667,-1226334670,-1559558566,-356482408,688521059,1397148243,1200176602,-1354874283,-615464206,919627686,-468306824,680393690,-1450622955,1095101549,1047649771,-428918655,519815152,-29540004,-1618090026,1604809941,-1443054901,2010462836,2133930360,-429906443,2012935711,-1219196621,810750210,-1055039467,-1805656591,133524198,1825192945,-97636182,-440016151,-340697002,-1090927728,1780510950,-1381146014,724107865,-2061054674,-1042438275,34171892,-2092853776,514661086,1218158852,1835838696,567824598,1271601268,1045398885,1031039128,1706019977,1900378055,-412630035,1775237234,1687171825,522541622,1099818845,-740087708,-1880830334,1714815211,1947265618,-90666832,-853558054,-846080520,1762028885,1095052348,-634593988,-659501505,1832518705,1029120022,-1110293656,-2087726709,-1352545448,-937593140,1362074486,-914803730,-1343542974,-387827409,1836869699,1839409465,503330128,-2109000973,141984129,-1255361017,1183932449,-1008894278,1949182260,511360262,704242653,-606903711,1806670845,181329096,-736768510,-868008517,-154309020,1512190104,447797761,1947982628,-1765296448,67571800,325745946,648051543,941311217,103175396,-1760040158,1821830727,-941948604,240930937,-1910896234,2098047691,-1286840526,-1857354148,957277737,1613031881,240416384,1339428306,-820251558,260881619,-830088283,-1514389291,1365541391,904626843,-755382636,545313537,-1669769906,1248099429,-2079744095,1133613366,-1354649825,1499909115,-1771185888,-1604554649,1240005920,997369269,855010669,-944564767,-1822061027,677419110,-700788736,1940644932,1724780159,-153817569,-1944660753,-1743315333,446826171,-1298440819); -/*FRC*/Random.twister.import_mti(324); void (makeScript(14)); -/*FRC*/count=601; tryItOut("/*RXUB*/var r = r1; var s = this.s1; print(s.match(r)); "); -/*FRC*/Random.twister.import_mta(696936087,-498522868,-1236306562,-1640328507,-2015997830,255075624,139724272,-1763045002,-1778356731,1418437719,1305382937,-2090853128,-1533428591,1235893042,1150391152,-1544517970,662670055,817512652,-202084196,288958756,-1323755391,-463249861,-421983787,-1079558341,-1521480043,-1936376462,-547098082,597559031,14639831,-1761412689,1496707469,1272235079,783374041,852626027,-1824534727,333231723,1465072730,1486537464,-469796868,1141951185,-917176153,-1804375392,1338297840,158786999,435304433,1742350287,472978498,-1495974802,650275616,-1800698514,-1002657285,-643454327,580084197,84337236,1376842717,-1267335820,-1156793429,-1188399060,-1937530349,2098201262,-1451907492,112551215,191110323,-515045182,424075982,-529449315,-1245958366,-1512961720,1687290307,1250662703,-872956738,2034795373,-409253095,1940542257,1976408145,-1958408224,361874215,-2090464941,242887,1560159203,1108110747,1591539593,2051771462,902505165,669690416,1570345586,414103603,968097049,489174227,-924178940,-1729375284,367837513,-385621234,-712045108,1850583539,466274413,1301289871,-936607838,-776177510,1986133597,-426193418,639408017,916404998,-1388062377,607570029,645948805,453332747,-2104716603,-1000452483,-1074873840,-1992626060,-470192957,-584089561,1663948083,1684204103,-1246237302,-1614465584,727172992,-773900963,152984021,-532309031,-408968699,-308926701,-535683185,-1853481760,1355074534,-480374660,568033163,375084583,-2056399478,-1147497502,-590201372,-2116250144,665077698,509178099,1452390886,-192056826,69367235,1506267550,-729448135,-1333117574,584147772,2014560856,222937363,-1748600287,2014280292,-221611840,2010186360,517227446,-27977246,1632177235,678726049,1445705490,-478661353,-304997434,1419779663,1291044563,1474971520,1558733902,-1136471652,-1911364925,-178217908,690016430,-802950696,1227154721,-710637842,890794082,863223862,611140941,540862954,-874084042,1718339828,2044219961,-1407312669,-1623901844,1155930916,335376069,-189761152,-891878930,152176022,214261098,1066393881,1314614770,-1253967711,-618731752,1042439082,1992890712,-1056369059,-682773485,1347002303,-274413158,130234098,-1584065687,1972028372,701444051,-584181211,1541313508,-1724366113,-1060864655,1881823496,1063858839,181106017,1012081560,-659323658,-110535271,-1135732133,916951848,-1634448554,629257673,1887685472,-531709451,-1063570203,-23480570,-1242888261,241133651,449766895,53038149,1665874886,760339247,-2065482931,-990903143,-2015778616,-2123677869,956015225,819834224,1371415757,479597231,-2002879944,1786260364,-2117530340,-1284752822,-175392042,173441161,-770339947,-997589304,-1158969931,-69539886,1005567262,-965643841,-1258094158,64677902,174540143,-177635070,-1748464063,659903480,586547476,-406814545,-745268509,-896226744,-1115234273,-1640720804,1881107906,-461734778,-1352931104,-1651042224,-1304997330,-1999138717,-494998702,-1642851446,1419502284,-1829293134,309551653,-708186415,1464234104,-184240272,-442292745,1011616321,612948761,-936355882,193470135,1537799070,2106247467,811321016,744161057,-1780493604,1360572061,-1095827148,2143017677,-1830322831,1338412248,1520600558,-255085794,-679159261,-1066208227,-1910756525,1451356500,433564932,1571606901,-56614140,1579882608,203463368,-1178471545,-628238478,273374673,798589427,-50310860,1094264920,722064688,-40562847,287224377,-2108162615,-1311119744,834681638,1944721780,567733909,-1821730194,-1315073358,-90515220,-1103441160,-1753806195,1861022585,-702635107,280579264,750119189,762064976,-1179791519,505759558,1110015842,-180137768,139456519,120330347,2046843319,1087049218,604475882,-173633357,526545598,-1028332780,132150938,-1323944554,1395841917,2054844870,1051408219,-2115900369,-1171570274,500283325,-733608787,-1704849020,-1586560205,2015868160,-552936181,1336507508,1853350185,-1601209478,-54256719,1649349874,-1412242915,-613268117,957854903,-704038789,1549730830,1701203568,1675325856,429605100,2140521005,2002855709,-1716718811,-1475880301,-648650473,1122612137,-1387693236,-220951569,-405421462,1059972164,1727927642,-1903218450,1657936874,-993847516,-1236010821,-1695594560,-586746423,1201659660,-93669096,109212356,-1241247823,783612602,-248115949,1770452964,1561553761,-2037079559,-761022020,555294400,-9778225,400592610,-1083318212,-611850257,578252978,1894149404,-1149616007,-1187234943,-407719918,-1451284931,-373586743,1862745996,-1695397865,-1303461578,671207890,-1705572578,2053813217,-1250919809,820939244,746553185,565814980,1774284257,-1036316292,-129177975,-1261548652,128775223,355372447,1338975696,1473239082,-317531303,-2121621101,-2072758527,2020935146,1989835475,-505003782,2034994215,-1771999440,-1860094988,-1685187993,-562243163,715504945,-1473045176,1561377725,-863531660,-726535830,1339626676,643800626,423933051,-176192380,-843289096,895244010,1244968205,518566367,-66284901,-1544574522,1869327273,-317604044,292666866,-1037067128,1007015004,274479870,351600826,1366168687,-981445169,1322943593,1878806668,2053957696,-673454819,1723934320,844021115,406642603,1279542918,503911070,-527997514,584453947,2112075701,457493754,1195125945,1579652561,2043197346,-646767745,455032475,-1830636752,1049150400,1368929655,-1475690483,-135504898,-1714005428,1729078589,-1906278496,-1066930512,-499804323,-588730333,-681289575,-223598175,-1588915756,-465814778,-1009812053,-1089883233,-18977843,-386442980,2142969152,947668373,-1044744769,277054079,959677365,-912326559,544765977,-2121329860,-628465491,212791705,1670609885,-1770838306,1811219681,-147916936,1146023260,-1384908501,-260299631,1269914498,331507613,1072132345,-1276287667,1007547762,663900748,727809444,-1662921985,425210013,1604722233,-359415178,731428278,-71001224,167579804,1825019255,1266311236,809243383,1555594983,-171509335,-121289091,-617800310,1595789502,198463857,-877263040,1372913715,250370314,2075819276,262440565,696822610,276032956,-1686410737,118351181,-1969862862,-1661454475,139710915,-747942690,-104286791,2103753255,1424262736,-346888251,1983287981,1249706985,-1058556379,-1727047297,858991064,-1216763742,450290207,384065548,432355807,-1563491923,393997230,1074342540,-1657709304,1004464969,-1790871627,-359015726,1587589480,-51642562,1970957166,-1501159683,1557273648,968206914,-409880718,-173491216,-529201890,-1370333776,-170658767,1810619620,-1552547499,1796247373,-1970955141,65877427,422159296,-960234927,1327667380,52058405,-580197605,509381666,1825796349,-377226028,-1667345845,2089216095,2095764108,1995388121,-1947575759,124844532,1172617058,1254563574,-344808330,-1351597756,-90036337,-807087775,-1985672274,1161370883,-481366775,1755125261,614800077,382756220,-1239077164,2039990410,805212558,2135742190,545804317,218924030,-225802005,1021027322,138200745,655912094,707785296,910967587,1930752114,1004274233,1542742406,-1733932387,-1604576563,-280359862,-1843309695,-1637400016,51417565,1272529689,-1341856476,1341224949,1712812724,-1471885365,1469744266); -/*FRC*/Random.twister.import_mti(107); void (makeScript(14)); -/*FRC*/count=602; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(116); void (makeScript(14)); -/*FRC*/count=603; tryItOut("\"use strict\"; v0 = Infinity;"); -/*FRC*/Random.twister.import_mti(127); void (makeScript(14)); -/*FRC*/count=604; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( + Math.tan(( + ((( ! ((( ! 0x100000000) >> (( - 0x080000001) | 0)) | 0)) >>> 0) ? Math.log10((Math.fround(( ! Math.fround(1/0))) >>> ( ~ mathy0(y, x)))) : ( + ( ~ ( + Math.hypot(-0x080000000, x)))))))); }); testMathyFunction(mathy1, [-Number.MAX_VALUE, 42, -0, 0x100000000, -0x080000001, -0x07fffffff, 0/0, 0, 0x07fffffff, Number.MAX_VALUE, -0x0ffffffff, 0x0ffffffff, 0x080000000, 1/0, -0x080000000, -1/0, 0x100000001, -0x100000000, 1, 0x080000001, -Number.MIN_VALUE, 0x100000001, Math.PI, Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mti(333); void (makeScript(14)); -/*FRC*/count=605; tryItOut("testMathyFunction(mathy2, [Math.PI, -0, 0x0ffffffff, 0x100000001, 42, -1/0, -0x0ffffffff, -Number.MAX_VALUE, -Number.MIN_VALUE, 0x100000000, 0x07fffffff, -0x080000001, 0, 0x080000000, 1/0, -0x07fffffff, -0x100000000, 0/0, -0x080000000, Number.MIN_VALUE, Number.MAX_VALUE, 1, 0x100000001, 0x080000001]); "); -/*FRC*/Random.twister.import_mti(365); void (makeScript(14)); -/*FRC*/count=606; tryItOut("\"use strict\"; {v0 = t1.length; }\na2 = r0.exec(s0);\n"); -/*FRC*/Random.twister.import_mti(424); void (makeScript(14)); -/*FRC*/count=607; tryItOut("\"use strict\"; testMathyFunction(mathy0, [0x080000001, -0x07fffffff, -0x0ffffffff, Math.PI, 0x0ffffffff, 0x100000001, -0x100000000, 42, -Number.MAX_VALUE, -0x080000001, 0x100000001, -1/0, 0x080000000, 0/0, 1, -0x080000000, -Number.MIN_VALUE, 0, 0x07fffffff, -0, Number.MAX_VALUE, 1/0, Number.MIN_VALUE, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(456); void (makeScript(14)); -/*FRC*/count=608; tryItOut("mathy4 = (function(x, y) { \"use asm\"; return ( + (((Math.fround(Math.min((0x080000001 | 0), (Math.expm1((Math.cbrt(y) | 0)) | 0))) | 0) >>> 0) >> ( + (((Math.fround(( ! Math.cos((x | 0)))) ** mathy2((x | 0), (((Math.log10(( ~ y)) | 0) ? (Math.tanh((x | 0)) | 0) : x) | 0))) >>> 0) >> (((Math.imul((Math.fround(0x080000001) / y), x) ? (-0x080000001 & y) : x) >= ( ~ x)) >>> 0))))); }); testMathyFunction(mathy4, /*MARR*/[arguments, arguments, ++d, ++d, ++d, arguments, ++d, arguments, arguments, arguments, ++d, ++d, ++d, arguments, ++d, ++d, arguments, arguments, ++d, arguments, arguments, ++d, ++d, arguments, ++d, arguments, ++d, ++d, arguments, ++d, ++d, ++d, arguments, arguments, ++d, arguments, arguments, arguments, ++d, arguments, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, arguments, arguments, ++d, ++d, arguments, ++d, arguments, arguments, arguments, ++d, ++d, arguments, ++d, arguments, arguments, arguments, ++d, arguments, arguments, ++d, ++d, arguments, arguments, ++d, ++d, ++d, arguments, ++d, ++d, ++d, arguments, ++d, arguments, ++d, ++d, arguments, ++d, ++d, ++d, ++d, ++d, arguments, ++d, arguments, ++d, arguments, ++d, arguments, arguments, ++d, arguments, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d, ++d]); "); -/*FRC*/Random.twister.import_mta(1263411559,-296238912,-419729327,1871992668,1713615952,1844145945,-917628473,709124436,1199778144,-1203565340,345932771,-2071246009,857392563,-816180511,-1871519036,1321419437,1613243788,1331708573,-1451568024,-120606536,2102948082,2068121537,1565867301,366767664,1827611528,-947723193,-1781069799,1440779456,1178090850,-1169466195,-1698870066,-1760251960,1964913006,1563114171,-440746752,1637690144,849727651,-839702171,1492089969,-758539483,-1490548124,1989401354,1604083340,-1443594373,-1162241594,451775131,1107593816,-1763614625,1150240478,-1796557650,-1883861541,530244912,1682069338,-2108787638,33956113,-1999983732,1117531784,1070466144,1549667948,1767466139,-1055469902,-611937729,1853952432,896255685,1883452654,1103177994,-1072973932,-708217858,-304789185,-1913577902,306227863,856903455,-2016265094,764281687,-976918208,838190609,1146291285,242037285,1172015247,423991238,1381691421,-18171000,1021612582,-315932971,-969175003,-354094714,-1112732730,1445388041,888574333,1967549011,442617882,351898014,-347564582,883164299,-1740429968,-598489403,-1301997297,53164204,353810569,1996655527,1735721532,-348931822,-1005058058,-657345676,-1246760220,661090839,-1539109681,-592067155,1955995820,-662918459,-240372189,-1472631051,34445360,-2136903606,-518033987,1176472180,963409591,-90355147,-306475326,-174980140,520198260,386327851,841786002,400481998,1672885378,-99020930,-1741680855,-1664531770,2030868425,1382666116,1205974432,1352509260,-928429586,-1859523093,-1579246655,-1497461130,-750101507,-7822319,1250084346,622961818,93075406,-681900311,-375733509,-661221850,-1126167785,-1603640033,1222355172,-1206679175,637300462,-12036358,-1795699248,-1982146012,-1076936198,920659823,1852433136,-2068858625,-1095478155,-991041291,1082251686,585776768,264906056,-233408854,1958995164,-1003526131,-851184635,-1356561471,-104012539,627855305,-439516988,1310234751,-800856785,-822864242,92414677,1282910469,2069540434,1446378988,1970971764,1718737362,-1713118768,406725271,-367251282,-827438547,523640516,285842387,603717465,1301002357,845570496,-169962718,-1261909918,2098559547,-1466745073,649230383,-2140715419,1108080215,1044035171,685135089,1994030265,-1846044566,1555052105,-1871950616,709371067,1740527942,61297653,-1695495939,-408424977,1449085546,-37704384,-149698111,813507353,-1908949829,-747972355,1224775840,-1326857360,-436533553,-811883602,3824736,-1845917906,1625968898,156794616,1696067747,1090274745,-1838912401,1970373831,1470079309,-675229683,1057453635,1406515606,1047671969,-290240946,-1085444748,357665335,-1174387509,-571926004,-1425348957,-298249391,980310665,-441134485,-1364292637,-569717858,1928835508,1398866057,-1429855675,-1674594990,864193648,1578844695,59909344,135073046,403842518,-1131493615,307197451,1842600145,1590828491,-1875963849,-618888143,217785815,-1688517236,-881579772,-709409525,-44474706,2087037111,-1927660682,1448540855,171840284,136809243,640289601,-1614689906,1501906550,-2093997681,-1436588914,1917331267,238660401,-1567327590,-1782037036,1223385910,1734707150,1540933188,1916791063,533562300,2021237596,1225987501,-1171542587,-255001377,1912299869,-1667593218,1418656970,1354094830,-561529602,-12132560,-1265426937,1754356948,-1333555239,486924119,-1863567555,1322239922,-347514012,-1924539117,-1737100086,-1249731080,-493574436,535917121,1969418263,-1658489645,134269611,-844053568,131628818,487932374,1678310320,222796129,744066577,-761636027,1596776388,-1905838523,1706472915,-1424288786,-738686874,2078552798,1414714850,549484662,-908672702,1909860656,-1867736945,-1205427599,-833614288,297722249,1285161459,877447427,888320234,2147358967,463627379,-114999531,1586272262,743945260,2054345432,1940088782,1872656164,967256174,298032003,-1916801885,515158191,1708729866,781332481,-245837824,-1586153613,1212939470,1987873764,420093096,806447440,-1391610730,2032756524,10454442,640902686,1870370036,1557880503,982002808,152537995,-1274557857,-1479913520,-1080173397,1178147562,684440774,-490533666,-28808733,-1782479653,-737295478,-1897813532,1759727208,-419370984,1224447022,550554834,-1974129283,-442248534,-6213003,576770584,528602553,427835183,1363088668,1221153685,246754803,-527759622,-280768870,-1872891305,630826369,-1692841759,1249843037,-1781116756,2029186856,-1503678877,-899905449,-2117128541,-1183529187,704256694,-1161794621,995432213,-1595177570,1902946080,-387579061,-1440386736,1408461007,-1769778568,-1967837766,1554741863,-692934531,1999140178,-1873516561,1008139288,1128082196,-1952328569,-839146938,-448158152,-1330134089,-926647355,-121023482,833698432,-1876693898,-986860705,1365622446,1982188963,-536631563,-226639421,1985059432,-1907255280,706951367,-547964432,1352251907,-72392481,995933203,-2092727311,-1075655079,1560386308,1702454537,-1067523192,1538590646,-1071406502,1523471570,-1494999774,-557824494,-1195416799,-1680734716,1746360036,-286578338,-304800848,-975100941,-1316624760,707861782,-1634753559,1051088574,1478591619,-233240600,-519766185,-178361691,-1031176633,-236784818,805568268,1670777677,-166624285,1229598027,-1292956919,-1345901388,203112188,-519224867,515627971,985545923,857670417,-1158630517,527049095,1392974663,151100491,529149359,1078542340,-1692431742,1404140328,-1240909466,-185676754,-88632955,-129203751,-332705797,1615948680,-1791174949,-1738640165,1984468238,-1352193857,1931914103,510515097,1923195652,83768555,2026385323,-1046308776,1143912357,1452372777,-25980011,-679984376,-1897200016,-1795663135,-1250462503,-1196991949,-931655136,-33985783,-284227162,-951265445,86099653,-837784683,-409238089,98450685,1643561009,175979886,-285082884,-1665680068,217059846,-981131804,607599494,-1585920446,275805316,-2186614,-80048932,2119198356,63410603,-881159969,1441373240,1888702866,-10297502,-768778283,-829269820,2091642325,-1627137969,-2006998146,2085508409,188033000,2103117513,160461067,-762410798,-923017127,-793979785,-1070327320,1304255967,-391416990,-874290211,-119007123,-208855815,1819594700,-645888776,308312099,108499974,578659890,1340998067,-190596698,-1029377724,-465828608,415475846,-207923290,-296445066,522604301,-2005023608,-1478180346,1102994819,279855171,634887148,-2087187806,-725145689,1111407156,1722288121,1080802423,357182172,1235069665,1189786971,1851696740,1799446237,-311781761,-1038956680,1829940962,2039160181,1155476782,-870988269,2124108018,-1466632931,447772100,906436925,-1342272245,317888628,-1204024050,-1148151225,83707198,-1419206344,687495064,-462277846,-1653635302,1666880913,494071549,-1250218884,437373691,1799052468,-1864415651,1970640826,-1068726221,172413889,-1012815465,733544044,-1857570281,-1721223441,-396461390,499562863,-1764930200,520519376,-244129354,379880040,-1817969032,-217632587,-95144014,309551897,471063992,536869154,1736779678,9291069,-1311485295,-772102074,440701256,-822308933,1643396908,-1793192987,-1564337839,-979035088,-1814020924,-62492646,-2094317298,378196284); -/*FRC*/Random.twister.import_mti(370); void (makeScript(14)); -/*FRC*/count=609; tryItOut("\"use strict\"; \"use asm\"; /*bLoop*/for (let ycggas = 0; ycggas < 64; ++ycggas) { if (ycggas % 6 == 5) { for each(y in (x = null)) {Array.prototype.forEach.apply(a1, [(function() { try { t0 = new Uint8ClampedArray(o2.g0.b1); } catch(e0) { } Object.prototype.watch.call(m2, \"prototype\", (function() { e1 = Proxy.create(this.h0, e0); return o1.h2; })); return g2.b1; }), t2]);/*ODP-2*/Object.defineProperty(a1, \"assign\", { configurable: (y % 5 == 0), enumerable: true, get: (function() { for (var j=0;j<37;++j) { f1(j%3==1); } }), set: String.prototype.substr.bind(p2) }); } } else { this.a0.splice(NaN, ({valueOf: function() { t0 = t2.subarray(7, 13);return 4; }}), g2, v2); } } "); -/*FRC*/Random.twister.import_mta(1691912367,2096519823,-42007020,1874501711,2035265326,-897070738,-982100155,534210728,1595714918,1491477929,1454815034,634156094,236091928,-2130900313,111166863,27600966,781942247,-779036309,755132146,143259098,1151964618,1172303758,2092936560,-1205466668,-1863648709,213224739,980024419,-659325330,-1083071846,-836950634,-194471491,663651251,-756791157,-226247416,729518630,1081735892,-448827201,1402672069,1856781151,-349477357,-526652543,1205434786,1662625340,-1333143725,295655009,-1870158940,-1203167770,-54001530,886246633,-2030931279,-1110149776,-752495366,-193376128,444784144,-175659384,1364060232,2087782781,-666991403,-454152231,-1838912432,1527567732,2069607972,1655706208,647643572,442411078,320526555,-803992972,-259508793,369071214,-651593249,-1626653953,1134583353,1422932982,1901318024,2012965553,1339031259,1686747208,1135211841,-527858664,-797662375,-1438020833,-970179128,-640304453,1433555058,106222516,1086018170,-2135262113,-2020750198,-614225315,-862818219,1314026346,1664432580,1026105615,-614870608,2043303373,1422026425,-186455921,723826344,1794238252,-834409961,-627649233,-1522477920,1766399871,-1798860057,757107811,-1896412603,-1767599560,1882598712,1513561921,2104039154,-1042016861,-2071735812,610763683,1224720451,1937748414,2053122318,1602001177,143499765,2030997569,-2063967003,-949854606,1770324187,-192040955,-470399596,-207691909,-1447339362,-781747924,1842436165,1434104571,684064056,1427494255,767874556,51564280,18619750,-2081189044,815367369,-1418608888,-1914039905,-646729328,-97647734,1093152594,-2119098770,-1244937237,-719794825,-817228202,1175482944,-890276400,-1503818031,-50275783,-1371020312,1546569108,-1401096357,741095454,672317045,321038376,1639340259,-1161815770,1894689936,883066028,-2072176634,-305390350,945768538,-575208672,-1077741910,-607069213,-1401722692,-1923866016,1555588614,-1790598595,1547949111,-1519858625,-1227157673,-960988888,2037545479,-418432795,1143341768,-1683219980,373392684,-485457751,-1695509156,-324203075,-140049812,706537329,-1945630131,346410461,835282808,-560104773,-955522261,-2066180013,-1875656283,2133500084,-2094343914,-1825171648,382381491,-132772579,1646855856,45948916,888210028,596563992,1567299733,-1430840756,1887789975,-1984533042,2081819456,1948900325,-812468458,-198846889,1385553707,1830051383,183102227,1995648841,73874432,-200619366,4781641,1083239181,-1188523770,-1584430905,518565428,1702872885,-662524625,86281485,1098017773,2002943049,554230813,986545124,-1430151739,-1866761293,1400974216,592505909,786396112,-340643083,398139944,101321440,727871026,-605489869,-187796340,-1766207353,968086261,1555541220,-1096136061,211200858,1219993382,1482976894,-1734448077,-799421669,688185465,75556657,-1008318819,-1779375020,-748752441,239581166,32883455,-130842652,-451092905,-719397720,-624183784,1036924876,-1966852374,-1061886153,-731294416,10514572,778345384,-580743290,1864549824,1551628034,40802404,1941685771,-1246471738,-1477059876,-49429637,-1580996066,1534817419,-185462209,-1946427903,-786144348,-1799075651,-1995132049,-2115459874,1856302835,1885615805,-68415328,343058169,1593879991,372668184,-261855070,-877792858,-305724472,-1739724120,252909646,-470194861,-250601792,-1960836345,1954364162,-441407546,790915985,1506110987,-2081933533,-297703023,-1789896762,-144051422,-422984386,-1426866373,1763155771,660965313,1294161322,-762447424,1340071734,627965128,1986633909,-1237068455,-884376689,-309905022,1429658509,-381274004,-92285467,-246759252,-588100498,1790514123,467545436,-1401430633,507654231,518148821,-2062178654,1269258409,-1475714314,1888010073,1756649139,1313822665,14351349,101667708,-2098444047,270132495,-1222198878,-1586779734,1826994447,-874618273,-490844036,397868331,-1234222343,-1440339076,1884530755,-1160930600,507893609,1682103531,67678113,1627792617,-1837332818,-1141445148,1774895630,-409730294,-733245458,1157349631,-1258337118,1290013750,-287699531,111121683,-301751374,906582042,966855583,846416023,-416245432,1344004606,1520395532,-335451142,-107235669,-353122916,-1638676067,1363167547,496187407,-954586434,868279442,-1636139174,-791140285,1596447384,-1899887521,1080869676,806733262,1818969833,-606269418,-49647126,-472458134,-2019115897,-1652464750,-1339346576,211278596,-1098521790,2019290354,874724220,-34759925,-1991635333,1001026452,527622326,-1140413837,-169709072,-238823556,-1068033387,-1397567345,-1373018877,-209610358,837121220,-886858010,-1667562932,-721124896,-978884616,937365670,2143869493,-66239361,-1643520351,921981800,-680105396,-261316530,1283281053,970494275,620958667,-1346814852,650301021,960143872,-1625493366,-134081502,-1809917112,-623673073,-675458587,-1821545618,-1503518908,-262673222,-1155028673,-1684877466,-1002973234,-617520692,-1449583606,298616987,1412958920,-1560961665,-413673274,1039531042,-1471979656,1191241745,49841211,856860847,-2099230910,-72296593,408033353,-332390515,935387628,1102808427,-798509653,-510775589,-324124039,-1563038112,-1892781131,1509531066,1657570402,33695932,851118749,-1372811790,-1557145234,2034034058,-1379947125,-1103810023,-799057954,-1355431796,1534051428,1891540374,1074032795,-1992757367,-1052782050,677899403,749865816,1161321063,834458602,-2086997888,-1439781620,-849897372,-508684542,754667967,-438808176,1086859893,-614449828,2060552312,1988647780,92748595,1126205371,-476354662,-1497784986,799576544,-530207973,796311101,-1293911609,-2007637315,-1226920446,676808440,-1894815059,-1042443561,-1226777651,-779595562,1073864583,-1970649176,1533882732,-2132596938,1257412394,1631497221,180604165,1027053690,-1943392808,-1234675296,553594989,907820990,-651256238,1181301562,1337773718,1577995610,-812959257,-1238321208,-1829818238,10916514,-1280909058,-1995592881,-916867575,-1265537866,-2073877449,-2097575004,-931582556,-817089805,-943200612,158266322,-1865759694,1355595929,2064207204,-2085291182,-1805459512,-700752603,758733150,760997872,2072667783,-644547079,-1827333028,1452141562,-1116529559,-1052279810,-2062657725,-360844689,-348059908,1337290922,-425488195,199977833,1774202844,-535426604,663722884,1774722926,1401827835,1335474925,-67632139,-1990254265,-101988787,1554291263,18284196,-177966992,-470608405,-1169861076,236705606,-1412514620,-786178912,1906542637,-711916722,-1155603814,433240345,-886093632,115015474,520135869,1009402366,-616526019,2068121560,-331026760,-551240628,972934565,-415419308,-1360179408,-933918359,-2143601405,-159257027,1498438826,-1163450759,883330182,-1598791617,-559111667,-1374630850,684646057,858836202,1703301028,-872909059,-1766088665,1085620845,920132771,646688137,77346317,-1942465061,312901910,1206901195,1234277170,-608268553,279242224,-1233423228,188645912,969161458,-1931448724,-1493759025,758870201,-304139594,-2007416810,-1371279267,694510385,-1921695085,-696731807,897164374,-1974088578,-1927838563,449690454,-205271069,2107666094,-168381423,-1950266883,-1336510469,-1961725429,131474439); -/*FRC*/Random.twister.import_mti(300); void (makeScript(14)); -/*FRC*/count=610; tryItOut("with({}) { Date.prototype.getUTCDate } let(e) { try { b = window; } catch(x) { try { let(b) ((function(){for(let x in ((4277) for (a in w = arguments) for each (z in /*MARR*/[function(){}, \"use strict\" , new String(''), function(){}, function(){}, \"use strict\" , function(){}, function(){}, function(){}, function(){}, \"use strict\" , \"use strict\" , function(){}, \"use strict\" , function(){}, function(){}, new String(''), function(){}, function(){}, function(){}, function(){}, function(){}, new String(''), \"use strict\" , new String(''), function(){}, new String(''), function(){}, new String(''), function(){}, new String(''), function(){}, \"use strict\" , function(){}, \"use strict\" , new String(''), function(){}, \"use strict\" , \"use strict\" , \"use strict\" , function(){}, \"use strict\" , \"use strict\" , function(){}, function(){}, function(){}, new String(''), \"use strict\" , \"use strict\" , function(){}, \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , \"use strict\" , function(){}, \"use strict\" , new String(''), \"use strict\" , new String(''), function(){}, new String(''), function(){}, new String(''), function(){}, function(){}, \"use strict\" , \"use strict\" , function(){}, \"use strict\" , function(){}, function(){}, \"use strict\" , new String(''), \"use strict\" , new String(''), \"use strict\" , new String(''), function(){}, function(){}, \"use strict\" , function(){}, new String(''), \"use strict\" , \"use strict\" , function(){}, function(){}]) for (eval of /*FARR*/[...[]]) for (arguments[\"delete\"] in window) for (name of 19))) for(let a of /*FARR*/[Math.max( \"\" , 3), Math.hypot(arguments, \"\" ), (-\"\\uDD89\" ? this.__defineSetter__(\"e\", function d (b) { yield [,] } ) : /*UUV1*/(z.catch = new Function)), x]) let(x) { yield (new decodeURI());}})()); } finally { function shapeyConstructor(mgstdw){if (mgstdw) for (var ytqxsliuf in this) { }Object.freeze(this);this[\"valueOf\"] = (1/0);delete this[\"includes\"];if ((function c (y) { return -256341890 } ).call(null, /x/g )) this[\"includes\"] = x;this[\"valueOf\"] = Int16Array;this[\"now\"] = eval;if ( /x/ \n) Object.defineProperty(this, \"now\", ({value: 'fafafa'.replace(/a/g, Proxy), configurable: eval(\"print(o2.h0);\")}));if (mgstdw) this[\"valueOf\"] = /*wrap2*/(function(){ var vzlrvx = new DataView(); var pffvez = d => { \"use strict\"; var v2 = t0.length; } ; return pffvez;})();delete this[\"includes\"];return this; } } } finally { try { g0 + e1; } finally { let(b = x, yhjgap, a = (window = '' )) ((function(){with({}) let(NaN) ((function(){x.message;})());})()); } } }"); -/*FRC*/Random.twister.import_mta(-1679816253,1261856853,515938102,-93921004,-1115194403,-2040055704,449570140,315120884,1725981675,-775367455,-1342007591,1082582178,77664968,1399582805,-1520364845,-637472975,-1468987370,-1629318318,-148682338,-551238193,764037949,571786865,824931866,1544629585,1941956162,-123536355,-1977092922,-1076583493,-1827428463,1654322355,-23555438,837438103,375643905,-1549351320,-2072401073,156169645,-1633078528,1965846595,-685679415,1739897205,-148191943,-1292236576,-2038167922,-737915263,654048694,-1181911261,-1028269882,-170726617,1462468489,1821804782,2003574506,-105293871,1629200226,-1561031139,-1230068951,-1715194232,-2103324027,-446487222,-325937611,1832374288,-1527390979,-1283755034,-1533462710,921892787,909344462,675378620,-286256253,-1199950636,-588878550,-315624109,-1034730521,2093547619,-1431819339,982531370,1838195188,1017668119,-71853454,1452979457,1357656078,-1096479961,-1465046100,-660423526,-45953383,1771219558,-836755069,2049303535,-560453067,285380905,-337415221,-2008697671,1351425136,207864845,-720532772,-116167836,-1021247700,-826137890,-1373374426,771389294,-1624127497,975035411,-401286742,-86651763,187545046,-150472100,874054607,-1416012278,2089904492,-1389061439,1697558694,-1631985518,-1785326118,-497467843,1811839969,940472037,-1563026204,1263660655,-1823263036,53052727,-817291748,-1921032131,-1238523582,-920054734,1510941950,-1665910328,1114962991,1118292929,1226322413,-722223050,220566329,822141902,-304469509,1611475578,1968559020,-968262102,2133131409,1559987056,-401715931,-1110871296,-1537735550,2046396673,1368942269,-382953299,-1531461610,818691486,-1324398285,-851013923,1321689228,-452719759,-1208930924,1254132631,-1446970452,-1587249838,-625483570,-476151883,-771425627,1866574577,-842127376,146759879,-869071349,-151512856,1758451835,970697052,480275236,1884785971,-1647710281,-1053672844,-840381499,1657064045,-1650510614,1926783276,192497315,373928165,1742779320,-442222822,172609163,75324495,974076446,919257835,-1968001487,-497811055,641783050,1347800217,824710073,-902818374,2076141287,-823178286,-705148793,431163987,2110136471,1052154693,-1694309972,-402363808,-982849922,960033969,-1057259518,891226387,-816652777,-1464037101,1804269848,533722084,1501621573,1177033202,-1915242169,2013284576,-1109853498,1590170474,1996306263,-882247082,-1989469962,-293765333,416875036,-1451885648,159541023,278259993,2102432150,415215443,356580042,1116094392,-1107907667,-905975918,-1732024813,-572564305,55312156,1544574002,-1187170227,1430942119,332877795,-154609545,-1412544954,-1713058853,1040228366,-536580833,-1723911011,-1294439510,515624101,-156536809,-1064120953,-338498780,-1649684149,-1700897547,-97666742,755281624,1912312471,-1305972763,453859446,-1494633436,1034538915,1995918958,-1668582268,-519190413,-1620913758,1305746296,300952529,1919563620,-21777486,-302664808,1498383989,-1104724619,967718899,2143443247,401911431,571007007,362379408,-1746453072,657061881,342240480,1053021111,1554669711,1112820898,-1444584061,347915891,-914118087,807317442,1936030649,-31948411,685989007,421904191,-762488603,1602055544,-1609107181,-58342084,2024964190,1594089579,-756860020,-350481893,-2133021945,1190800719,1848766605,-1363783724,1120965996,-1223686713,-636638282,531126884,-706313551,-1906995612,-1803087948,-498160913,287943742,-654746652,87021128,1177646036,-1907586412,56203715,2017697028,1863850685,-959590287,1787337318,925418679,1910813543,-2055886451,-118660234,-1458119891,2055336808,1447743689,-257645798,-102323054,1443364259,-1980177705,1791898394,-118740890,2137900676,-870360498,-1250297297,1979018976,-1655716005,642397253,-348051520,-1624211106,1127137602,-1376515760,1772001431,-25579063,-1505954428,-86529500,-625028268,1270093147,186213322,-1179207137,-1414773898,-811767990,-1286701761,772368035,17249723,-721268033,333388725,-722802850,-448523293,-1540938827,-956828489,380282573,-539383147,582105104,25619955,961937918,1412400466,1358989383,1159293579,-1394840154,-356527030,716333458,1071153732,-1587775862,-450205407,1361878533,-505882684,512229461,751621826,-670873177,-23469798,1020105661,1281028111,-1280845132,-735009760,149785362,796403145,1046978833,-781985994,-915577242,803116440,232181795,-1377048324,-200171501,-1784503059,-1592413420,926786216,1509050127,-1159102810,1280731220,-1497050257,-1377610973,1885293503,574427034,2041374546,-1524427614,-1424398576,-1697056059,-1250995278,-1071192231,-1320943214,941728483,-598862788,199845460,-92268588,-120620364,812610790,-2123547282,253927867,1434693803,-1048512073,196483772,1089147832,2131475192,1897211048,-232223742,-243934187,1370282956,434425469,-1475611268,1207347950,1020613004,1160990448,1806237344,393438306,2126148072,1251092146,-1066321364,-1554385113,356776109,-452127025,403527492,-1377251192,689426654,-1937838495,761043037,-345489551,-1024177546,-640951500,21954913,-525726761,-234300791,-1763343550,-965477668,961802176,-1004228467,-1287229996,-353188389,-999048849,-1744809285,1284812926,279651331,42982142,-1808524029,701106746,-1561782712,1017610366,1289608024,-457100544,393839676,-1773532162,-1329804943,-1611861274,239933629,-1323126599,948932793,-1767950956,195716724,426466366,-2046004112,-1517834509,-259308430,-1692078577,1065461325,-795228770,-2041392725,-2009814768,1959577894,262083588,1102265224,2119856353,-1527872100,1271504383,259159101,-1191607319,1980220954,13227437,1909853321,-503689442,1461312823,-1368622351,-1627273290,-497414182,-1927762432,978057251,1529911035,-1249356589,-2078194501,531922844,2142264212,-1422344697,1857121490,351309319,-153591727,2058447329,-786060219,-1545362982,1996112026,-913743501,672337255,941981856,-2036162402,-282198153,1490049461,1437827650,-120137488,-1976373695,1419900628,1354095800,460220113,1452088359,442449621,-777566384,-913584781,1739940097,1880487040,1676450673,571167546,860726718,529042136,-846029299,-823229281,-253664370,1157395663,-1828329536,-631223248,67559821,1114805040,337354937,1146447833,-1204091529,16097872,1954399936,-1658413642,479543713,-768229554,1216912901,629154540,1450655192,-512442507,88766759,95472275,-1057986536,-972263859,-459491049,2052613050,-179452490,-827502184,1706877021,1300873042,1055567102,-1613649630,-713727017,1633184461,-756959009,759277156,-950155286,1525100846,-105727362,-301181371,562747291,897626009,-2008937110,887138852,1958380997,-726651608,-1651051890,1857068760,914731985,1956162295,-1389863974,-645731601,-1120329197,-799375274,-285060342,-1014210530,1382381281,-1245075041,1815363653,1094421285,370127095,-1185268901,-1455680926,1642557650,1895031217,913556504,-1405520345,-195873104,1876628485,715638348,-718901169,-1059564548,1812512778,1920840978,-1261881841,1878593803,1459801906,1662714144,1638465556,1568828178,768690905,546873914,769450648,-51791603,1471071691,1076957567,-1754003855,699335371,-88031152,-123287417,1790268792,-1583087643,-1549267160,263527171,-749874525,563603340); -/*FRC*/Random.twister.import_mti(316); void (makeScript(14)); -/*FRC*/count=611; tryItOut("/*bLoop*/for (gjwvfe = 0; gjwvfe < 49; ++gjwvfe) { if (gjwvfe % 2 == 1) { this.v2.valueOf = (function(stdlib, foreign, heap){ \"use asm\"; var NaN = stdlib.NaN;\n var abs = stdlib.Math.abs;\n var imul = stdlib.Math.imul;\n var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Int8ArrayView = new stdlib.Int8Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = 1.25;\n var d3 = -4503599627370497.0;\n var d4 = -1.9342813113834067e+25;\n switch ((((0xf973740a)-(-0x8000000)-(0xffffffff)) | ((0xffd2ea67)-(0xbcf117ca)))) {\n case -3:\n d3 = (+((NaN)));\n default:\n d1 = (+((((((0x8aa68065) / (0x72f7bdc3)) << ((!(-0x6c72064))+((Int8ArrayView[((-0x8000000)) >> 0]))+((abs((0x701d41c8))|0))))))>>>(((0x187ad18) >= (0xc1c45af1))+(0xa24024c0))));\n }\n switch (((((imul((0x9293620e), (0xf9c94c4e))|0))) | ((/*FFI*/ff(((d1)), ((524289.0)), ((-2.0)), ((-1.1805916207174113e+21)), ((-128.0)), ((590295810358705700000.0)), ((-2049.0)), ((-36028797018963970.0)))|0)))) {\n default:\n d1 = ((0x6203816f) ? (((((-0x8000000)) << ((0x7fffffff) / (0x88eda16)))) ? (d4) : (d4)) : (Infinity));\n }\n return (((-0x5751411)-(((((0xfe58963f) ? (0xffffffff) : (0xc435bffe))+((((0xc5784a96)) | ((0x39f0ea3d))))-(-0x39ef5bf))>>>(((((0xfc0b246d))>>>((0xfb5f7599))))+(!(0x8e00b582))+(0xfbfdfb27))) > (((((0x2ab7ba45) / (0x0)) << ((0x7c24dec4) % (0x0))) / ((0xcca1a071)))>>>(((-0x8000000) == (~(((0xd99dc49f) <= (0x1ed9e8cb))))))))))|0;\n }\n return f; })(this, {ff: (new XPCSafeJSObjectWrapper((z--)))}, new ArrayBuffer(4096)); } else { /*vLoop*/for (var tfyznh = 0; tfyznh < 93; ++tfyznh) { c = tfyznh; ( /x/g ); } } } "); -/*FRC*/Random.twister.import_mta(1018520492,-1104918007,85119593,461707533,1222310496,-1209670278,-240429874,-1709705780,813819841,-836019704,901825274,-1009749805,-1156885943,-883742194,-1962705473,623747235,-1118190165,-1964738342,-1489630732,-701932740,537470619,1600328163,-1948944389,2095889873,-823054223,1382063617,-1202155286,-1710013019,674558122,-1676296594,-725717703,1999915408,165557360,1994175984,-189261097,-2094368799,-826142557,1508909514,673621523,2069236087,1479673105,-1545074544,16928022,-979862119,1136521618,1476985763,667252161,1104896719,-591822420,-3820006,1037322636,1008304079,-1730554926,-1060095051,-657062329,-242068569,-799505171,-739869765,977679184,1874029985,1321483727,-1006202789,1926038135,-2064298623,443392611,525470119,1689422547,-118750463,-466277374,-515224302,1633698974,702221302,-1379706137,-1376993547,-1193465959,-314439513,1947679732,-1606242025,-224986006,1539932626,769811909,-1712085134,-802697041,-170836511,-345492203,247277100,-1483850159,-1406083945,-1392744950,-1984118490,-937390098,-2064990305,-477597180,-2083884980,-361119889,1834615856,231583052,588777463,1076304493,733877065,-1680732915,-290560788,1429377532,-671826113,-485175468,83483991,1589072378,-780863095,2040967379,-2092799074,-1070128474,-724431473,61680435,-28905211,-1536156067,1545214240,541764276,-1382653617,-1961429483,195234841,2147151048,998936152,335880753,697665944,1909495884,-634271448,1517032603,-1133059534,982196957,-1666711140,1871585253,-147294245,-305513590,377180953,1786885495,1040871821,-2071661136,1445651404,-1484331153,-1512103112,-372532400,-362748548,1486077087,-168635770,1653434887,2079781351,2042563113,326109391,-639051784,1117208590,-1312390692,1745979712,-310950506,821732757,681839594,-1032082705,-1492163834,1247606380,-1244570132,-1999389505,1365535740,817535340,1056104292,1117332691,29456375,756903394,-987008115,-913154657,596312504,1694935536,2082488040,310021703,122860564,1416518384,-1344883492,1774000330,1457388674,29824329,-2037240113,1705367892,-977601436,750052057,-56958926,1508778431,-148036161,485934998,375215592,-175188363,865752290,1639264403,892976661,1958396872,2093937116,-1992175005,-1570749308,-833470875,-81445810,-637793621,-72036542,-636235144,162777781,1254431795,-1126664308,1927593321,488225959,381623675,1246620704,330777417,-1926427030,767918362,1228445386,-266810999,-1311054231,326412883,1774116475,1561245870,1634864803,277341048,1297150210,799654790,255972879,722512630,-1884563972,641606609,-65498353,1135527309,-2080687256,1766998159,1809751867,1511162478,-1299210403,-1655844623,-292958033,670958147,944438552,-910151203,-1144901734,-501376384,395832950,-971141396,-1647215262,720765995,-1523505266,-253793904,-1718574392,1625972474,-313328629,776772825,-1225964283,-1000071382,436645997,1593939270,1800766899,-2029958861,-320234391,-577010865,437161995,291620383,-773990952,-1691560980,-19892960,-25909601,-1998984903,73292672,1405302714,-1370489065,-871659025,2031625024,772934286,-766206224,2018580570,464692851,-122483040,-2118023716,-1935508393,1227091692,1334553271,1382743856,-1256541287,-426036916,-1131840614,1851737773,-656159135,1021197631,176201447,-1070361304,-1046272712,1503599141,-1519461651,-263344053,-369911718,1438224209,-1398147040,597183969,-1297120037,203082154,-1445029107,1293740396,1800200402,-1898192115,-1429537857,1618566055,-781990363,-627865995,439151088,-2016235175,-648719530,-1944548183,37864299,-1403952876,944955560,-1775711071,-1131348329,-1612943396,-792491298,1593255940,340263058,-1119381917,-1197691988,-1673621178,-1513759381,701362855,396407616,-1704788418,-382358262,1971816845,1680233446,-96113236,-128688060,-1191875224,1908463364,-1341475434,2039613509,870856784,765871099,2083127606,110200398,-1780415715,-1289961942,-1023236749,810218123,1039873119,-275545952,-257058895,-2015161632,1622953787,-1061671652,-2054576564,-371757599,-1562294364,2026673552,-400859542,-962934313,1887163954,234755790,-2129713337,-1966721201,449967552,-1570683118,-232359256,114649180,-2128858824,-812347824,-1268212142,-2140777671,-1310684146,282474292,-1769509923,755932285,-407473081,-333365284,143996951,1065366638,-150231022,-1790220136,-245810077,639759165,-433468656,-135114354,-75320856,-738540221,-75634365,-1829670043,-57560494,-5413580,-1465523521,-285701995,-619793772,-12353502,-539637148,1401398046,1024918622,1066198963,-1868054523,502698018,2034018401,-1675793789,612515361,-681381911,695582218,295365082,-1835614410,366650768,250234609,24218622,1477168845,-697519650,2087858272,1768943495,-588289554,1718353091,-811091989,635601303,-135328963,-1655129197,-1503624445,1974520365,1455614818,1792043790,1582782116,-1131041485,-1445333323,-250673519,-563335401,-104556611,856720398,163225329,-1572998899,113489809,-1439948856,644830470,-2110883000,-652615286,-420396217,1926063730,-506928144,-194334347,-530242562,269751314,-89643064,1884116797,890710427,-434876361,953235529,-50974390,-1235116694,-90088956,1762364976,-1169323992,-1897121661,-1255367281,-1459775982,1390038697,-576128169,1329376547,1505625787,296632432,-1180001630,1545274518,-1585468964,-103792958,-1177348709,210717022,-1332890288,-1480021574,455229545,-988039980,1444551364,1387505170,1907089494,907479657,-1310965753,-1161066768,-1454856061,1412102218,-1323118841,-457342226,-1138542398,1299634056,-1749419117,431014898,1771957570,-1499963326,-2090677758,-1333628796,-517934505,1772653992,1894709383,-1309391548,-101388588,1121062016,-1745978508,450823349,1338446681,-1577045566,1640510784,-309546182,-188352634,1827278874,1808005500,598017323,1760721016,-122058735,511343194,689430397,148288511,731514656,-1600406582,1829639906,914194693,-910253766,542728134,-61277872,498262727,869261647,-1925958479,1693594620,1539155606,-1046568732,-2072355960,-564847737,1484620932,873477098,18900586,1545158897,1927950861,-2128632223,353043558,-1643730633,-1458341918,568659149,330177040,-354248895,39752527,-1390295759,-1857772568,393437735,-1119366452,-699261559,-2035409417,-1857085177,125934289,2012084131,-385548465,-1350072555,-1817758400,898399779,2120765735,-1306712271,936937292,1617721799,41107806,145471568,1585492285,-1659648672,327327925,-1640910143,1857388923,-1075683065,-1977611919,-632504855,-1646383285,713740804,624911803,-124609654,-1882856683,755777166,-108582503,-1103899828,-340621803,-1428307293,615964893,1256479151,-1905044389,-221124320,1805452502,27632128,1851308157,500341698,17754113,408327705,2055159627,-523692216,2063351008,-1724018224,1299437551,1270026213,-1797652232,79273034,-1693808799,-996465093,555160382,-1428591102,-1614660360,-324079483,-1007966560,-219834527,1606072100,1761153513,1233409131,-835358053,371671872,531432505,228627620,-677098624,-953757308,-716995487,1545261296,-349063074,-2078342615,1542315531,225621774,297130719,2085239666,382829358,-1037836278,982392568,652020130,-1261548685,1851318311,1316355419,-1386690132,704076711,-2109220011); -/*FRC*/Random.twister.import_mti(378); void (makeScript(14)); -/*FRC*/count=612; tryItOut("testMathyFunction(mathy1, [0x080000000, -Number.MIN_VALUE, 0x100000000, 0x100000001, 0/0, -0x0ffffffff, -Number.MAX_VALUE, -0x100000000, -0x07fffffff, -0, 0, 0x080000001, Number.MIN_VALUE, Math.PI, 0x100000001, -0x080000000, 0x07fffffff, 42, -0x080000001, Number.MAX_VALUE, 1, 1/0, 0x0ffffffff, -1/0]); "); -/*FRC*/Random.twister.import_mti(410); void (makeScript(14)); -/*FRC*/count=613; tryItOut("var mxftqn = new ArrayBuffer(16); var mxftqn_0 = new Uint8ClampedArray(mxftqn); mxftqn_0[0] = -24; var mxftqn_1 = new Uint32Array(mxftqn); print(mxftqn_1[0]); mxftqn_1[0] = 15; var mxftqn_2 = new Int32Array(mxftqn); mxftqn_2[0] = -20; var mxftqn_3 = new Int16Array(mxftqn); print(mxftqn_3[0]); mxftqn_3[0] = 18; v2 = this.a0.length;( \"\" );"); -/*FRC*/Random.twister.import_mti(497); void (makeScript(14)); -/*FRC*/count=614; tryItOut("yfkwsa((\u3056 = (d = z)), this.\u000c__defineSetter__(\"\\u3056\", function shapeyConstructor(xvbgqh){\"use strict\"; for (var ytqwsyasl in this) { }this[\"arguments\"] = new String('q');delete this[\"arguments\"];if (xvbgqh) this[\"arguments\"] = Uint8Array;Object.seal(this);Object.defineProperty(this, \"toLocaleLowerCase\", ({get: e => { return function(id) { return id } } , enumerable: (x % 21 != 2)}));return this; }));/*hhh*/function yfkwsa(y, b, x, x, e, d = x, z, x = '' , w, NaN, x, x, c = function(id) { return id }, x, c, x, \"-29\", window, \u3056, x, x, e, x, w, NaN, x, x, e, x, x, a, eval, window, x, x, x, x, e, z = true, x, e, b, e, w = \"\" , x, NaN, e, x){print(x);}"); -/*FRC*/Random.twister.import_mta(-1567052806,216217090,-1111522733,905417962,-1989915253,1829703671,1138867223,-1069954879,2132698057,-1936928605,-997017386,-1377634692,-1186530071,-1159531837,70899557,-1572416611,-1298319536,-826032279,-848023907,-1128470081,-528755892,-164470740,-1188448109,48596436,1507920234,-316453148,174931226,-1377898520,1025137465,-85124942,-643312187,36482473,-1857927888,-2059671374,1521741927,661674244,-1979100254,-2718300,1164662676,1098580770,-242145354,1351955097,1097640411,294891508,-2145707883,1828608520,-2127283727,-760548964,-914143641,-1538556222,-300973816,-1239326271,2005702022,1078931059,1228672798,-1543586816,760444501,304067723,-143720268,-1346048440,44130896,-1133169294,973979587,770596652,796041623,-1478574872,368247823,-707641413,1804035808,-1247045989,1123524415,-581256258,-1101721613,-210687622,1584788619,-1061151990,543244503,761366143,-590999570,1799618771,-1327830149,-1133670656,1952044476,-183735897,784563796,743952309,1282544790,-419675263,-1510042940,230214239,-1416423529,-1070564282,-1206790414,-1360632856,-515671700,473551379,-951869315,454757419,-316699589,2037187939,-2087533072,108222692,-651094468,1378837121,-1283054068,-673046292,-1345800639,-859031605,158828080,1266783859,1408896466,-1244646492,-1873393320,42868427,1314149206,-327308278,-1838062913,-280221030,1374487138,1527727512,1182327226,1385464099,-1867473084,-423798879,1969578000,-1070691976,521869171,-1739300544,2092839619,1875908940,-1214279852,-387730190,2066116273,-1918015831,-1784442359,-392106599,1766580905,669648473,-1012190604,1670819727,-931684238,588477209,-1135119180,2030118107,-1552788739,-767901080,2041859063,-2089554711,-219376313,762265293,174101895,-2069461510,-156408487,1950252082,-1169808138,1529612755,1001310731,-2013566058,-823931339,-159152321,1994968525,-1600450891,845425607,1134868173,-1957652038,-1860707555,-654378069,-1453909162,-1119438867,320610810,1773330021,-1113945786,-1048204435,-1120495411,1349020856,1636476910,395865632,1754287768,424667260,595123250,-1593148978,597683163,-185513983,-1161251815,872701056,-337134148,-650909947,-1057965151,-459145351,-936943568,-1366859492,987686052,111337103,-1783954311,-550060845,-682889179,1781827954,-1854630108,-1360900196,791986916,-472872478,1989487151,-1442924032,1504779287,-2073002718,982250025,-1653373473,-785199947,-1849421559,-236990716,-48364309,718568373,1420683231,-163970583,603319129,-1207669423,1946798798,813300655,-705232439,-1540995808,861232345,-1290034803,-1538309872,-378469373,1434917813,671794707,1877363661,243225784,569014069,1039203618,-497431475,1730680067,-1476870647,1606730395,2110873840,587166724,-41804317,-1889972243,-1897123574,-139574696,1989230601,379667618,-634820779,-27957708,-1095331820,1658183751,1922176780,1644544273,-1811910727,1830965370,761614199,-180126868,2007718562,-451853327,1511759504,-384457757,1800751970,-246857943,1337640031,-299204704,1661537058,-2015906780,1700754628,-1545025409,1912195824,-1167711300,1039602306,-426237199,2042592737,1027876342,-2059252718,-1136484411,740202726,1584248581,-1237645590,2001609699,-1921121958,1837787163,-982714009,700983371,-1368900102,-62564111,1687753280,-1323595271,839286303,-1749118424,1510200197,-1994473479,1566268808,1324643310,-566613925,958815623,1863985863,-1783859523,-1814078610,-429876295,-752491987,2001858390,1128266471,1916322547,440743030,-271800506,880896239,1836528687,-1216319988,-1335056827,-1270811048,1760737809,-1438302326,678471144,1729150760,-377245248,1673132123,605278713,-1987586173,-1344630131,-1978420815,-136494527,-1909508891,1945864344,1661479524,-359456564,285781260,-1277593864,-120555470,-552819256,1146074037,-4655662,1510600272,-1580106306,1244280906,1447531249,-837403452,538126179,-220645552,171918615,-663115998,175395527,1297732034,1367048386,-2055523269,2040369926,220452621,-780080177,102415832,1907430636,432772798,-1415845995,65282801,-321464948,-760153964,-1893682140,-1206689183,434379796,31146556,-1596614213,582542252,-1498469155,-1846507098,944560799,-1927053771,-227945183,-1298881872,-1334805526,2132426846,-1950340626,-237131074,133717651,-1983841819,-901256358,-1539110897,-1129166646,-373352863,856817595,1658307079,955571206,511433541,1905900864,-110633714,106477351,-1870120884,1781935515,627364090,1148745873,1252076054,546781856,-1694179723,155782620,-814617721,1537735240,1563374818,228481724,5016512,-1778011206,214040505,708883059,-665481675,-620029618,-383756733,-917971072,-1266825386,444939888,-576439,388017119,-576906975,846835859,1564591106,213204690,233332524,516687551,68411187,-152428,1226344701,244779539,180898559,124857008,-481946239,-1678814053,368398326,-2115979063,1481592828,1052348228,561338225,-1881247117,-922954461,859287611,-1490908483,968483573,1669539275,-87486333,1487282611,-386101785,-788798635,-468371738,-506020531,1928984940,-2115150085,-1256976670,394291281,-1249641314,1975068155,-1980271715,2103722410,1249038955,1799959834,-1465406261,-794590664,779327693,1835339027,1741799176,-1123037430,-1511879618,-1613362329,-1854886525,-1146558662,691885837,556118131,-1940632058,2006434285,-619667096,-1708787575,999736415,985247404,-1369028290,1539366662,-1402868896,-1667018950,1606980352,779400329,1479168702,2142500584,-472689812,-1351023399,411527977,-476309939,-430002482,859032603,1272849587,1737963130,997407579,-773868208,1230483121,-1465596190,856978208,416413405,997098123,1331016508,2079533440,-80886962,70677124,-1474300475,-1516308363,76356303,754387555,-1770244015,1333339260,1193729589,-214481889,-1985780869,-1530615124,1779731257,326070845,947068622,16604731,-253132485,-794690825,965080494,-655411573,2121476268,1078346461,-516479462,204079799,1081037716,-622029827,378279294,790774902,1663738021,-17467351,2065395779,-1724377125,-107825921,-1982381413,-420435828,1679946378,-684964209,-625436408,951926976,-1940991950,-1153098569,-42246570,1688221991,469341555,1749770045,1004053535,542174181,2029272646,919817358,-1791950541,870060004,-1307125753,-19157938,729390221,38821365,1155056356,-1106323231,1306639147,-708374316,-485619421,-1317051542,-1204412112,-1293887913,-58350566,1766083977,1254510853,795940183,-870742033,1333988828,-858540010,-1973475690,976802543,-134971367,-1482924462,-2119678187,-466556185,-727837806,467652229,-189750063,-631054947,-1790156589,-1052408189,450046846,-1168105008,-276820450,1621320238,-564828674,53933041,1123170669,-598100619,380596475,758159794,-1110232210,834652568,-575961141,774253380,1495169013,757186187,841079523,-813715440,1726228046,1238466930,-520359307,1786181471,-1004456046,511861283,1712164291,1773830794,-1516588856,154611748,24695328,1470963699,2013421083,-200675132,1042585172,900333189,302699906,181317601,1750458207,-1525619613,-1322181552,-778399968,1119953686,-613189722,514991897,-1871962142,676920793,-1841896197,1221164697,-566189692,-474310032,-1098988110,-2136352916,-1053629771,-1301549306,-1994794040); -/*FRC*/Random.twister.import_mti(485); void (makeScript(14)); -/*FRC*/count=615; tryItOut("mathy2 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = 0.125;\n var i3 = 0;\n d2 = (-8388609.0);\n d1 = (1099511627777.0);\n (Float32ArrayView[((0xfe5296e8)+(!(i3))) >> 2]) = ((+(0.0/0.0)));\n return +((+(0xffffffff)));\n }\n return f; })(this, {ff: (mathy3).bind}, new ArrayBuffer(4096)); testMathyFunction(mathy2, /*MARR*/[this, /x/g , this, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), /x/g , NaN, objectEmulatingUndefined(), objectEmulatingUndefined(), /x/g , /x/g , NaN, /x/g , /x/g , NaN, this, NaN, objectEmulatingUndefined(), NaN, objectEmulatingUndefined(), this, objectEmulatingUndefined(), /x/g , this, NaN, NaN, objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), objectEmulatingUndefined(), /x/g , this, /x/g , objectEmulatingUndefined(), this, /x/g , NaN, objectEmulatingUndefined(), this, NaN]); "); -/*FRC*/Random.twister.import_mta(-1652915633,1861691317,-1816979979,700928332,-183891628,1192188573,-1372258464,991598618,-1388877795,1057527913,1514423788,-935095929,-625619199,-553155490,2010543493,274076501,-251763336,-176493202,-1071124816,-1820591065,-520723315,-798416032,-1064142301,1958726473,136849462,1682164220,-1724840569,259606624,239156322,1392103552,-509147906,1797392211,-1202395942,-1393071777,-79388315,-704689532,-1677822924,-2090658169,1380219133,-1188704992,1146496881,-1371632541,-1119212700,-323217042,-7840103,-453579379,589802149,-1769986314,-92138582,-1482407236,-328492814,379799504,-553740050,-1718499195,-1273114050,1349976210,24626969,-2145425568,2128551977,1618280795,-1838230337,-1281773869,-840462594,345249949,679057963,-381117324,495445564,771976310,800887026,1691365498,1902497503,-396983377,563267075,-1987986318,-1011654935,1715541101,-1757472567,-838921798,183770744,-1302984327,367584051,498850980,-1728200873,-2034365830,-965412428,-1902261079,-1721572801,1244577727,-457549957,-1013675992,468391843,-1490737097,1397048176,-658617997,1921687971,-1104905682,-126731095,972770963,-1429793262,1190116557,-1341200275,-1522800539,1423682355,1943509055,2023645771,-157289167,-7080703,-1269677533,1818853649,276362055,-1039716519,911739904,-1744175769,-971173967,974443698,-1872801260,-1387624784,2121962575,44426938,1075236984,1320650855,1933787105,1936592084,-2095053577,-1447033305,813011946,1745601066,813428529,-313485906,594708330,-130086325,1608424240,1655004637,-1216790276,-157199520,-2048516426,-1322969108,25522911,-1875388066,317234359,1571817568,771208638,1470036661,1986672111,1113914809,-410859311,-597064625,1584407197,-2107730798,1241508552,-513979426,1394696473,-1037492439,-1346124756,135991340,-308570029,1228661966,-787987822,777057455,-1375740955,1167495059,1248166826,-2099103402,-228799292,1981743875,1960806943,-1331992756,322304187,1381097080,1499560764,-995124930,1820722618,114719290,1927748898,-1968868825,-464766706,1424704866,-755854912,311074280,1383531914,345960519,-1243651036,-379817119,-405725906,72095558,674940054,-682178997,-1304020842,1228017299,1700948589,-1844395454,-54658602,-636701807,375921859,-1730429038,-1321503957,372779441,830253581,1042342904,-1804405703,-344648212,361205536,-1568857817,2050646154,809810191,-1449794460,-1002952704,-1008701991,1914783843,-1882034699,1769105766,40853344,1938767627,-1976342939,1585050065,1689698942,291001066,-1683239454,-1071266197,-2006228950,1590018461,-1315095816,1406072684,1935862377,1279209827,479230527,-1910083180,344393994,1880054052,999768844,-1017386222,2147411599,-1310356721,-1864610024,711270936,184473139,-508784832,489839977,-1282101077,955637722,-732486129,-1010141456,1870438479,-1348129422,488156562,-110172874,997305456,1946084238,-1493693603,1328049479,1310619391,1945994599,-809248549,-197342513,-1560598194,2079037907,-212467765,527619598,1547122819,-909090485,-1357073587,-1981080825,1560518244,-486370996,-1638922407,213905852,325151879,-1585370786,-1331913064,-1075114643,731244115,-1450765590,1388873424,943335888,1949272024,-63106297,1214891630,1473598622,-615521494,-909474285,2126238754,-967746786,-772639567,-1048819511,-1950339468,-1965655756,-34410888,-54297989,-1797023964,2079468044,-787511679,-2030289001,2056656885,1416121227,-1002729099,-551104197,528009169,-906853517,1212305929,749755448,-1100484655,16472641,-906871131,-1929433137,214037063,1356096852,1596449966,13270262,1233358416,-1418338109,-1300245862,782284102,94147722,78231841,-2067053018,951795580,561158615,-973849330,-556209029,1656837698,-302524139,974059301,-1480015534,-2078670672,1451039863,1374191383,2033436196,-586539195,-1244440902,835630870,-1040391784,1603632169,1067374175,-956338519,1749373047,1079333504,-867538181,-458504264,518376545,62707621,-1160526286,-1517449237,563582764,-297281444,1185029689,239087077,-858549395,-1773327936,1160271143,439775390,-995074331,1824589768,2089262560,1759929140,-1189506253,-1140005768,-1456627237,-1329115496,-1695529312,-46378472,1464146611,-1343552968,-572644541,-827836477,73754152,-388428799,-937688287,-1067924403,1221869587,-1665675667,674435466,-1347172778,654477267,1946867091,1107971230,342608367,1899181160,-571562663,-1996125611,-898825457,1137730110,447314001,1454314692,1818980805,-1052516414,-1160107190,-379888373,-81343857,666271374,-1401576665,-191635046,1983465187,2145211330,1878206543,-1625484963,-411850307,887420827,691471040,136473210,1558747537,1067811354,743856348,919919678,-483559123,315029846,1009418217,1412274915,308994001,598857636,1918708775,-667956380,-104274969,-1233522368,1262113771,-1308709426,-510020468,-1315081985,-655727175,1699026285,-1238690705,154458977,292136181,803011277,-347147265,-235945265,-1262938503,1369879964,1136408534,-1309952066,1462141217,-682846554,-1053689734,-610304233,769377913,-1164144273,-337684543,-715625852,-1145377391,414097711,-1873076951,398487412,550228228,-662234220,620546151,384871256,-1468790921,1180310675,-243271733,-2106202756,1296634089,563326070,-1696824305,-853500895,-739114487,-653192621,-107662910,1035822095,563657531,1383511611,1711261588,1411358184,926545230,500036268,-1941118781,184723673,-37415114,1460770394,1516620948,-270573649,1353014075,-1639152444,-743661791,740679805,-1816717431,13743337,1718181263,-204484671,2111172034,-145971179,-416546189,161459528,-1230419393,576823363,1714795642,-1681053804,2073944349,-198576757,-1836428566,-873455035,-804989863,684023209,1159609057,-2083732398,-2124955536,-969032864,168247645,527966141,-162732239,-68859972,-1094028397,-1467670511,1746274495,1699417285,-384453076,-1500702406,-2020795907,2092281225,25313396,2138753711,-513153092,509737293,-1409841218,1051230229,-1229658937,-346924992,1014921129,-578804025,898272895,325616805,-1621623467,-1987356135,-1220295373,-1388959618,-1377414071,-1532047369,337441385,714552353,2060308821,2118579562,581604073,403396009,-1578308346,-735017084,-704175741,1018192853,1391077399,954585221,-342764184,-1365022310,2062631597,-937572424,485218307,450321934,-1484962440,973885508,-197434351,-1974541812,-1253545824,1712711613,1739594406,-94842179,-1143502228,-310122678,-142345136,1645112429,-770518956,396847901,-2066517293,-1686002303,-1653856628,-1791934080,-1315323102,-1421502676,-1509596366,810324005,-1112199466,-142276172,1769817732,1546124405,1828586131,-210253644,828512566,2115083506,-470212206,1323229415,-44435122,-1391322373,384783943,2052672273,1651377239,809076728,247783433,-350228006,480914174,1063198978,451418894,-628913648,607586708,-1962687871,1957391014,580648115,645266913,1049660879,1645376799,-192576248,1511594103,-668182913,680491162,493746544,-2113202175,1309552113,488114100,-1749580174,2016829097,1098990198,606590245,1106100705,457763862,1919172545,936346959,1104333334,387087505,-1293146949,612340536,1798637613,-623218403,-2091519003,-2058441566,688268346,1065990260,-1771902518,-970397986,-1543551911,-481229213); -/*FRC*/Random.twister.import_mti(106); void (makeScript(14)); -/*FRC*/count=616; tryItOut("a0.forEach((function() { try { Array.prototype.push.call(this.a0, g1.b0, a0); } catch(e0) { } try { v0 = r0.source; } catch(e1) { } g2.v2 = evalcx(\"function this.f0(g1) { s1 = new String(p2); } \", g2); return v2; }), g0);"); -/*FRC*/Random.twister.import_mti(201); void (makeScript(14)); -/*FRC*/count=617; tryItOut("\"use asm\"; a1[7] = this.h1;"); -/*FRC*/Random.twister.import_mti(216); void (makeScript(14)); -/*FRC*/count=618; tryItOut("this.t2 = new Float64Array(a0);"); -/*FRC*/Random.twister.import_mti(230); void (makeScript(14)); -/*FRC*/count=619; tryItOut("x;"); -/*FRC*/Random.twister.import_mti(258); void (makeScript(14)); -/*FRC*/count=620; tryItOut("mathy4 = (function(x, y) { return Math.hypot(( ~ (Math.hypot((Math.max(y, Math.fround(Math.acos(Math.fround(y)))) >>> 0), (Math.pow(( - 0x07fffffff), Math.min((Math.min((x >>> 0), (x >>> 0)) >>> 0), ( + Math.max(y, x)))) | 0)) >>> 0)), ((mathy2(((Math.fround((Math.tanh(x) | 0)) + mathy2((( + (x | 0)) | 0), (y | 0))) >>> 0), (Math.trunc((mathy0(((( ~ (-1/0 | 0)) | 0) !== x), ( + Math.trunc(y))) >>> 0)) >>> 0)) >>> 0) >>> 0)); }); testMathyFunction(mathy4, [42, 0x07fffffff, -0x07fffffff, -Number.MIN_VALUE, -0x080000001, 0x0ffffffff, -0x0ffffffff, -0x080000000, 1, 1/0, -1/0, 0/0, 0x080000000, Number.MAX_VALUE, -0, 0x080000001, 0x100000001, 0x100000001, Math.PI, -Number.MAX_VALUE, -0x100000000, 0, Number.MIN_VALUE, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(572); void (makeScript(14)); -/*FRC*/count=621; tryItOut("\"use strict\"; \"use asm\"; b1.toSource = DataView;"); -/*FRC*/Random.twister.import_mti(586); void (makeScript(14)); -/*FRC*/count=622; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return (Math.pow((((Math.hypot(Math.PI, 0x0ffffffff) | 0) <= ( + Math.hypot((( ~ ( ! x)) | 0), ((( + ( + mathy3(( + x), ( + y)))) | 0) | 0)))) | 0), (Math.fround((Math.fround(( + mathy1(Math.log2((y | (y == y))), Math.trunc((0x100000001 | x))))) == Math.fround(Math.expm1(x)))) | 0)) | 0); }); testMathyFunction(mathy5, [0x100000001, Number.MIN_VALUE, 0x100000000, 0x100000001, 0, -Number.MAX_VALUE, 0x07fffffff, -0x07fffffff, -1/0, 1, Math.PI, -Number.MIN_VALUE, -0x100000000, 0x080000000, 42, Number.MAX_VALUE, -0, 0x080000001, -0x080000000, 0x0ffffffff, -0x0ffffffff, 0/0, 1/0, -0x080000001]); "); -/*FRC*/Random.twister.import_mta(-951836219,-1728884641,134951223,86017712,-690404019,567190414,-1096796896,-1655308921,-89750782,2031073301,-1354520627,-672956165,501149192,986464633,1760254610,-1912159236,830940508,-772973930,825031232,1492054630,-1327565815,-1677420381,1434206484,220254074,591937547,-1169372975,-1393403953,-154182402,-1647968711,1635071971,-1356495712,-1379809837,-1739225775,870741707,-1412539080,-1772075763,-178061851,1253449166,-145903279,779864547,900537215,1175172253,-435875426,-250810137,-877127907,270302745,800906012,1806803597,-72997335,812634346,-1171368925,-1391810293,-1735834508,2073904489,-219741114,1418973042,-738348615,1064710808,1353122224,-1383940465,-514007923,881160516,-1229096187,-651435998,60668788,1393426866,-1689430280,484237472,-810742005,-156515862,-146391652,639536241,1415939330,1721604975,964994504,-1095574330,-179789996,1168882645,-431298068,540216967,1929905040,1648019297,-1535965362,1789251986,1760500916,-136814205,-1708500102,815316214,441951497,550817413,403732014,-1571650563,1699954751,-930562649,1510737910,1727883993,1151522790,-748801943,-260558876,-1636312236,1037673436,142615290,506007379,230859243,-900644104,-2088089958,708061154,1236363629,381276289,-994145542,1521370740,-361331517,460312763,1131123476,-1546113356,1745732429,1350639167,-369054947,477437845,1674793515,-1792827056,719291087,131026929,1147398613,-277279546,-1724659349,752030478,-1845066464,1168486876,-1887436325,354589901,-702747813,957756055,1666972697,-484449699,-1935537038,265103411,883658618,-2104043885,373150901,-43380809,476357663,-657659771,1881606587,-1239282508,-303354634,1364059369,992156173,-1866165899,-1159706653,1171286259,-569779978,810678448,-1101702485,336787098,-1994517203,-553132775,-1406228763,1575325049,-328950773,-1579044090,-1695499990,-465420050,2000056542,318682866,-1291311990,1989619632,426016537,-1861905592,-707607253,524174425,1598865768,1435339778,1865269624,1128531377,342113859,-897554062,127643155,-731743349,1045811719,201385045,-1744846210,294030016,1914670171,450462274,1505501728,1166620341,-1026648428,-1320050969,-745805007,1516893567,2131569558,-1499999208,787882874,-404687701,-326882872,-475754298,-342493964,-920071500,-1382622071,1649196810,-1789142724,-15325116,-819674711,164820358,-173305230,-2133927782,-1583786344,-1161407744,894760274,444548006,-760541029,-1411479902,-1209630175,625548718,-1170207282,699037129,-1842390073,-1628454648,1967105012,-1652543010,1088511884,-1624212065,695583140,1365797662,-1528005485,-1458404634,-12350121,-2059865639,698795198,-472431320,1461923861,1772127234,-342711252,19015233,-898579294,-1365367170,797003591,-1952878826,-1359098416,1529444865,-2040677782,-1714137787,2131456917,-312858611,1821650040,1628537761,984236408,1654136543,-344208716,-1378435818,-1650385735,1499077993,-40909976,305275080,1030205699,785145060,406235198,270615977,1456696360,-300201065,-984641014,-1478423125,591548054,216655120,1744156621,1052466508,1843614771,-2131328268,717705832,-439387758,-1562618763,201419505,363534576,-861430831,-1617771234,461732517,-1752586826,1357339357,-405492123,1488316646,51809985,-1390060599,-1776441725,2048724482,777942668,1256960877,-1423108321,1232888898,120719514,56446774,-404881327,-533556056,542650013,-364431134,421125180,1264201868,175088711,809935469,-765541835,-1075280240,-2072704443,1640365054,706795176,1841400191,-908518469,542519548,1472840888,-293042209,-45289981,1039502129,1780569841,1820593612,-1739589527,1824858952,-1813620419,36622338,-294342452,-751687460,-895476630,210204394,1239967583,619735681,-1231755006,1654832957,-857617162,704275497,1731201153,1348958577,1054310303,-83841248,1284937992,972898577,-954319098,1771814957,-1449896669,-1226086106,-1932259173,1923112910,101069730,-2002394050,-216799966,1596862307,-1428643332,1948781872,-1558944004,687195851,1858026268,667204224,-1130377124,839084593,-784678346,-1388250895,-1453888952,-872351972,-2009345554,-672946537,1482342301,-1467825577,-876867823,1957592325,351814435,1929291596,1308597031,-1714439771,2140170204,-283572660,565089,-1959267338,-1932173248,1744759440,2091646850,1323759328,1883816614,-1474408923,-1470297279,220177808,-1738924794,574089646,1371130287,705255004,1061518584,639835408,-5885192,-247221440,-1337945309,150948243,-231044031,365090918,-1643401181,-1792908432,756031251,502857842,-535750719,-204137704,1384077402,-1052162997,456094052,-399491713,1247759631,2030497046,1479437230,-1124453878,-2082269735,-2138693320,1736181285,-1368912592,500699015,937026738,1032941426,-1745662601,1105558242,-1523991798,1568038994,-1308472110,1888982599,653682994,-1312567530,-49278594,2063927671,-1085652513,1762015506,1076617448,39567742,683790103,-1577351046,-1941387422,2058970325,1740646771,-726637801,-1346617964,-48891182,978239889,76030194,1300123047,-798333374,-243190971,-819944466,1133391568,-532762344,-1484559709,151687268,1899419938,584196197,522053795,1690992542,-729225010,-591740064,-1085446361,-1879463004,-1122815108,-1359964719,1411239240,1553120016,-2088168010,1122956033,-1604179460,1407495914,1708970975,1135561462,-267493749,264560407,1432224796,1914159821,291751132,-535714757,-2083574886,-171023095,1996990248,-1762519257,-1881830182,574646508,-62449821,-1200494326,-1869193376,-1032369696,-1785643947,259545539,2000661855,496356301,2144589480,-636862410,243100478,590008110,-51320721,-1287843917,529941853,317450858,876955897,1787499424,-1731861703,219121465,660494325,1571127548,-1310178238,373439989,-1997958865,-1740776884,1689378147,-1052030426,-123163536,1728753004,-1424482808,1220802104,1296538007,-1212859194,-418017697,-33538706,866286879,2065504176,-2082052772,-1136525609,-1408453584,1061330765,1813683220,-21706754,-989855878,-1813922373,1904037412,1040157051,-487490341,-1126421283,-689813817,-2147096664,-647402068,-1140488030,1982896704,-2134115291,204010478,-188161547,987144235,131713725,1003633573,-418991671,-407609236,1811078978,-930872137,1789149180,-1907275912,1217064464,1328719031,1638829135,-2141652095,1596520480,1298248219,-1776985638,-1878775750,-427477525,2049993228,-2133544192,-343987148,342051992,-1222626594,-1040850240,1312383147,-2101576672,-1514768855,801688895,35686990,1936056785,-1613570409,1010371515,-90774342,2009436651,-1844541456,157473556,1924698336,1069460187,1550079156,1721092921,-227955353,1260438345,-1830226379,-695073177,1343473595,-398129374,1860225952,-1775796378,2030399682,-1252246771,926788243,-108064783,-965819247,-934529514,1429123610,-2050816161,-1717072933,-400085862,1856894576,-88348214,-942811896,529485725,-678302324,-715406136,-200498299,1042901014,-661464051,1766331944,-458833059,-1326886713,2126823804,-1547334372,1296995530,769590443,323045195,-1681278591,1545453476,-1976305309,-1112928640,113932315,1831320687,1899827650,-494970177,-1536328358,1180632080,-849309365,-592648590,-1046384275,852804393,382235799,-2096798546,992086507,-1159763020,1004790902); -/*FRC*/Random.twister.import_mti(229); void (makeScript(14)); -/*FRC*/count=623; tryItOut("\"use strict\"; mathy0 = (function(stdlib, foreign, heap){ \"use asm\"; var cos = stdlib.Math.cos;\n var abs = stdlib.Math.abs;\n var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n {\n (Float64ArrayView[((i0)-(i0)+(((-0x8000000) ? (0x30ed798c) : (0xd3129c9f)) ? (i0) : ((0x0) > (0x6b847e79)))) >> 3]) = ((d1));\n }\n i0 = (x = \"\\u8FF5\");\n return (((0xef3c2e02)*-0x789fd))|0;\n i0 = ((((i0)*-0x4c7d)>>>((/*FFI*/ff(((+cos(((+abs(((+(0.0/0.0))))))))))|0)-(((/*FFI*/ff()|0))))) != (0x3b410593));\n d1 = (d1);\n {\n d1 = (Infinity);\n }\n d1 = (x);\n {\n d1 = (-7.555786372591432e+22);\n }\n d1 = (4398046511105.0);\n return (((Float64ArrayView[1])))|0;\n }\n return f; })(this, {ff: (x = NaN).call}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mti(586); void (makeScript(14)); -/*FRC*/count=624; tryItOut("\"use strict\"; /* no regression tests found */function a(window = --arguments[1], {window: [{z, : [{}, {z: /*iii*/v1 = g2.eval(\"/* no regression tests found */\");/*hhh*/function wppqwb(window, x = \"\\uB072\".getOwnPropertyNames( /x/g ), NaN = (4277), \u3056, w, x, a, x, x, a, e = eval, z, window, x = window, \u3056, x, \u3056, e = this, eval, {} = \"\\uACE4\", e, a, a, (function ([y]) { })(), \u3056, x, x = x, x, NaN, e, \u3056, NaN, \u3056, x, y, b, b, x, b, x, w = /(?!^{2}(?!^){0,16385})/m, x, , x, delete, x, b, x, x, of, x, e, x){v1 = evaluate(\"(false);\", ({ global: g2.g2, fileName: null, lineNumber: 42, newContext: true, isRunOnce: '' , noScriptRval: (x % 2 == 0), catchTermination: (x % 3 != 1), saveFrameChain: false }));}}], x}, , [[[], z], , ], ], y: arguments[\"4\"], x: {}, x: x}, x, x = (4277), x, x, x = x, w, x, x, x, x, x, b = /(?:\\uA075\\w*)|^{0,}|\\b{4}/gm, x = window, w, x)\"use asm\"; var abs = stdlib.Math.abs;\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(d0, i1)\n {\n d0 = +d0;\n i1 = i1|0;\n switch ((((0xa0cadd72) / (0xe315650)) >> ((!(0xfd2cede7))+(0xa30dfb6e)))) {\n case -3:\n d0 = (((2097151.0)) - ((+abs(((Float32ArrayView[4096]))))));\n break;\n }\n return +((+(0x7fffffff)));\n }\n return f;v0 = this.a2.every((function(j) { if (j) { try { Array.prototype.unshift.call(a2, o1); } catch(e0) { } try { /*ADP-3*/Object.defineProperty(a1, 4, { configurable: (x % 4 == 3), enumerable: false, writable: true, value: o2 }); } catch(e1) { } a1 = Array.prototype.filter.apply(a1, [(function() { try { v0 = a0.some((function(j) { if (j) { try { v2 = evaluate(\"new RegExp(\\\"\\\\\\\\2\\\", \\\"gym\\\")\", ({ global: g2.g0, fileName: 'evaluate.js', lineNumber: 42, newContext: true, isRunOnce: (x % 6 != 0), noScriptRval: this, catchTermination: (x % 2 == 1), saveFrameChain: false })); } catch(e0) { } g2.toString = encodeURIComponent; } else { try { m0.delete(i2); } catch(e0) { } try { Array.prototype.sort.apply(a1, [(function() { for (var j=0;j<34;++j) { this.f0(j%4==1); } }), f0]); } catch(e1) { } try { for (var p in e1) { try { v1 = a2.reduce, reduceRight((function() { try { f0 = Proxy.createFunction(h0, f0, f1); } catch(e0) { } g0 = newGlobal({ sameZoneAs: /x/g , cloneSingletons: -11 }); return o0; }), x, x, e1, o2, p1, g2); } catch(e0) { } /*ODP-2*/Object.defineProperty(h2, \"call\", { configurable: [z1], enumerable: /x/ , get: f0, set: (function() { try { t0 = new Int8Array(this.t2); } catch(e0) { } try { /*MXX1*/o2 = g2.Object.prototype.isPrototypeOf; } catch(e1) { } try { v0 = o2.g1.eval(\"[1,,];\"); } catch(e2) { } g0.e1.add(this.o2); return b0; }) }); } } catch(e2) { } this.s1 += s2; } })); } catch(e0) { } Array.prototype.sort.apply(a0, [(function() { try { m1.__proto__ = o0.o0.p2; } catch(e0) { } try { for (var v of f2) { try { a0.shift(); } catch(e0) { } i1 = new Iterator(a2); } } catch(e1) { } try { (void schedulegc(this.g2)); } catch(e2) { } t1.set(a2, \"\\u195E\"); return g1; })]); return m0; }), p1, m0]); } else { try { o0.valueOf = (function() { for (var j=0;j<79;++j) { f0(j%4==0); } }); } catch(e0) { } e1.has(g1.b2); } }), this.p2, m2, h0);"); -/*FRC*/Random.twister.import_mta(-1899344055,-602203584,-1458337129,1752064668,1637315107,582795944,-1936849439,-2022857113,-1468756485,1798129909,1286119200,393830630,-1971865439,1773530267,-225523656,-279654955,66054787,-550011202,-823435259,-852077696,-561613146,-745868386,467123079,-1830735880,-760642882,-1143043648,1397775829,-958862640,1341155611,1130839572,2094407357,-459850481,1693338180,510568565,-1190548587,1491765093,-1708072469,810198458,381908524,-787290007,1404978540,246902024,-161883398,-313921512,-1452106788,-556327705,1035044396,2107696371,-1429259670,-1082209056,-1445950475,-979514124,-1445682644,1397744432,1980691675,-1167026794,-648597204,1432788549,425677621,1346592012,2118492837,-1067654593,-235154532,-1381054867,-1584709691,1711011818,-86866561,1480333866,331071091,-1701888456,1343999247,929896141,-1690172767,-703658438,-1908930639,-1510716119,2052948879,1198917572,855228316,-32989327,1568402473,-89000386,673033759,1880025127,-523902600,-1043021075,-1937908440,-1287158133,-405842811,509369266,2124517625,363123161,803098662,-2094140961,252809079,-882306897,-128384980,726172843,196847821,1976593333,104723019,-703401407,-1981727712,-1690664784,1875585067,418458942,1623649566,-1280071902,1500699692,1456825935,-38126057,-1096857840,-249750571,1961341673,-542222505,2055988213,-1785150229,2077723401,-768974623,1470457385,1461517453,2127730218,-387140723,-1120606153,59399312,-732741112,-81950271,-752601355,-1032470094,1377773159,-383565283,-1633329166,-1345774459,-167308812,2107256236,1097916085,354551069,2116289311,-723353765,618491117,1846905831,-1541934469,417653100,-731979021,-2080992962,1391006445,-807016969,439453635,-914580455,-2062848684,-476529248,388442098,-194671755,-1893907233,1441585993,518449279,-743453620,-1120704307,1910375111,-1338920714,-566715927,1056250672,-984858329,-55427492,1521114533,1918343598,1647791125,-173659385,1044919916,1575349619,-1556675307,-1768876904,-1990361795,-176388825,-905644071,988544090,1257544449,1960157864,-1558300509,-1715690482,-751745158,198521795,-1317740379,-1497273780,-2146863826,197274867,-1853682517,1283846322,2027699680,484287633,-922898794,-511139481,374086069,-1094854183,-141450669,389513137,98042848,2124701970,1109898749,1853304657,1989489983,-1549398898,-1567007325,147486441,461999500,-1882912865,-407049340,1478888953,-408544016,-883132088,158211743,1196436107,-2090710474,1138438508,-1539806887,-1252420694,-1598827252,560775393,1311272648,-2092530010,260611900,922066242,-300374441,-2030461897,-299185289,608844083,-701031208,-1071855907,-938213658,858725832,-1416843755,2116618600,-1250929334,2070931079,2064855163,614478980,-57492868,417496459,-1993028473,-1634159831,-836787576,-1118018212,-1293433440,-1659517234,1157698150,-526662876,-1333483233,611521033,-1590863216,-1815067971,1310710714,-1073274793,-1097212021,1978370885,448942302,-401154216,-1952267425,1079134954,-627746351,1837319514,2139906429,-1727732024,-260050855,-989102628,-693112088,-223057378,-2118564449,1164213023,663171530,-1642703171,-1949125919,-1250732076,226393385,762845575,-786825279,1149935119,1539446021,-512226065,402957841,1237480535,179375984,-888995881,1216546554,1500628532,789478062,301628196,-2051744541,1379912619,1721572648,2136895057,-1133270597,-136525005,-1524355946,-1477263237,1486956034,-1564133114,1104782469,2126241391,-1409658666,-125763657,1117356399,1085412741,1615904667,-1603896408,-1423642471,1111915334,-540166612,1133158844,810678073,917040796,296350287,-1848947450,-805691305,-639378249,-1533362364,127907869,1860658275,-485075466,314730057,1591705126,153269236,1314393042,-345987861,1751896737,1025682340,-1651436256,-2095720651,229154565,-1032723450,1026880944,908937923,1007141570,562375988,1165597104,2101797479,640060148,-1301689173,-1906102456,39990794,-1112774806,-184696542,-1490964842,205222642,390190362,-1065220586,171094447,1682887228,1005054921,236351896,1867340189,1115661217,-581860600,-1914340190,-912851522,1112728383,-375502148,1369739534,567387375,-540936855,667796371,-1024274575,503560838,146775330,-307494979,1336166391,-1248351440,-1817799743,1064722342,1684879952,-357483101,-107657139,2125479951,228128837,-1924396579,944500757,782595366,-1566208819,744629350,1008691458,-607084502,1128396913,-1246429755,-40346761,144994602,1546965867,684280765,-1005890782,-1822424773,1005690169,1442264694,-1840282043,-1024234459,-1968649450,-909641590,285509577,828350083,34680093,-209162997,-565144141,2021852652,789903160,517084582,-846047811,2122540449,-902009893,328531952,2074591936,-1778107342,-2098802634,-1320739265,910437903,1945557132,370220920,-550991195,-302226016,427300848,-1642343959,-1377764838,1174239147,-994884236,1488197324,-941251942,1490797550,91717796,-323692875,-1009259711,-14004345,1638325850,-251963190,-2142124219,1301459480,-179339152,-2027024904,1374956432,-803888034,435321331,1893512721,664307461,-2089933125,-933123877,1927388712,-284753398,-70278459,-2029263194,-1815763825,949795411,-728832967,1961512606,-1846385189,-1078840979,-1524659428,1215412592,-1148437153,-2079948904,653279273,2038789072,567693764,1420640278,-608966983,1581486018,2023644828,904163022,1370041052,-224110843,-548790420,935803187,-973037095,-1440136962,-1950881847,32663486,-389842368,-224942625,1608649497,369219335,2042201777,2134297855,1127463739,1412530175,-1198042535,-2034336041,-860202991,-1118173548,-486948090,106688578,1003582974,-793650010,-981951873,-1343049392,1782894297,1274721842,-741661039,-326479359,-832971577,-1095647316,1979750281,258196734,1764190362,-351678741,219048628,-506358793,1463339739,-587486981,795551654,-1986836902,-859890894,717482456,-1516174191,1464621873,-2019664932,-1871965228,1972584975,-389664010,-1574164392,-679334852,1291023187,-525926767,-122896,-811405579,982853083,-874208478,715841012,-597120897,1207356658,-1637264349,1465824281,1256628506,1923468897,1660743170,-323500029,-328836640,-300001237,-1088639854,962219630,2002864524,2079536995,124004314,-1148728995,531976777,-669968204,936811041,1873275059,-516617677,-2084163926,-2067700663,-1040367373,63494432,-618561335,863308753,-1152968844,-742092489,1622225274,1903991854,-1148939913,-339926196,-956351459,1868816835,332862269,-1741829069,-436955750,313716846,-1078279926,1718753140,-696613062,477470835,846618802,-369160512,1694911413,-684736096,329110128,-1819193484,451318514,1169966667,907730598,-507874161,168573297,-922190241,-663126735,-514515564,54877293,-1561057319,1852850419,1740731051,-763911978,1181965255,695149899,257496334,1517365336,-1186524575,-6564026,1055490966,-19885808,-1490921261,-1853041495,-1068674548,-1295544464,577308440,1903512708,-756693558,-198824203,1539997055,891900496,900324886,-1590437653,-1043652926,970521832,953072835,1465934999,1573309900,2003969813,-1520677556,-232658396,-840831232,1076256931,1295735259,-1124322210,1132188884,837529519,-805839327,224393047,2064599450,1338090393,647371663,-1458080609,-595805594); -/*FRC*/Random.twister.import_mti(535); void (makeScript(14)); -/*FRC*/count=625; tryItOut("('fafafa'.replace(/a/g, String.prototype.italics)\n);"); -/*FRC*/Random.twister.import_mti(607); void (makeScript(14)); -/*FRC*/count=626; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return ( + (( + (Math.max((mathy0(x, (Math.atan2((( ! y) | 0), (( + Math.pow(x, ( + Math.PI))) | 0)) | 0)) | 0), (Math.atan(mathy3(Math.fround(( + y)), ( ~ -0x080000001))) | 0)) | 0)) , ( + Math.min((( - (x >>> 0)) >>> 0), mathy2(Math.hypot(Math.fround(Math.min(Math.fround(0x100000000), ( + x))), (Math.expm1(( + (mathy0((x >>> 0), (y >>> 0)) >>> 0))) | 0)), ( + x)))))); }); testMathyFunction(mathy4, [0, Math.PI, -0x0ffffffff, -Number.MIN_VALUE, 0x100000001, -1/0, 0x0ffffffff, 42, 0x080000000, 0x100000001, Number.MIN_VALUE, 0x100000000, Number.MAX_VALUE, 1/0, -0x07fffffff, 1, -0x100000000, 0x080000001, 0x07fffffff, -0, -0x080000001, -0x080000000, -Number.MAX_VALUE, 0/0]); "); -/*FRC*/Random.twister.import_mta(-1652170709,332521511,213136546,-2032664842,260863218,1390274450,-1539504563,118398457,-16061611,1576242512,-1648849855,517323961,1553291437,251873811,-1655435591,-823239962,-256690694,327247229,2145599024,-245830982,-1004174379,-1860298057,-842804600,836818835,-1710561670,-1468310053,639366604,306467559,-496733109,1481240582,-890900478,-2104721944,376316832,-937502963,3306269,322883026,164723021,-613146808,-1468809960,419665063,549663105,-1203582010,-1094364969,643355590,425999526,-1525194285,550708224,-2036188742,1730403363,426643740,371501284,-988269363,-703217419,118505902,1430909883,-685267511,2008907877,-1286121108,1369759062,-2013515703,-309624362,-1555165321,-1852023765,-1319931487,1192858939,-171386692,-1631954416,1335849098,981509679,923137921,681016135,522081862,1794499747,920111431,962933652,-1144751615,901436645,1623546239,-650497128,-1266221584,1768522976,1972450697,665958939,-52909907,1152964413,-1530450542,-957316136,-784437405,-1616907905,1663099612,1009281379,2108417738,-748356094,223039989,1345743497,-1300931375,1914522918,-355077328,-1400684037,-214884000,1493698324,1241445540,-1404251217,-1177162223,-796705180,520638761,-1874160181,-1610189532,-1734219232,41200453,134478009,1712875241,1930918527,-1018373765,210465747,837352178,862017895,-51448836,310181210,1299763561,-255089184,-1746154302,209086438,1802499004,-163509893,-1552893747,1861484422,912544960,-1159625994,-549658704,766394875,576452254,-1754935014,-1865199875,111964951,-1429996481,-780404516,-930433007,-872275597,361086065,-1800004693,-1805424638,-2064557177,777822252,290010010,1027370126,1355880311,2085338656,1095593866,-1427251687,2028378152,410870289,222462855,-1823478783,-418948914,-1840023727,741091317,655920545,2004564408,-440144106,-950582869,1582958038,1827401536,1273454343,1599724451,2120847855,-1079114449,1834122116,1577404582,-308971040,-1670951956,-834937807,1881652536,-420718143,415873126,-1972886535,-607083045,-2104781313,-2049561512,-1310597492,1035416746,-2097701664,-241921281,779418212,-1154952179,1136563804,540124062,352402363,-1740671079,2114977555,1351348749,766864195,-1195384923,470872294,1974556628,-1822370471,-14720379,182248785,-1940250513,-751343932,-1019821171,1013068027,-2035812652,955094166,-1421611770,-756175575,886089953,168555152,1566605415,-1965040889,-412719018,1992491534,-994978310,2033544791,-1756551467,276793893,-2071623308,-1679293638,1121490823,1982849073,-728952704,-1554312029,-1585760418,-1579387139,-306464823,-2113078541,628779479,-108257448,1246129859,-2139434121,-104629694,355753559,-1235049458,12332719,358516667,-1052526997,-2004221110,2775773,-929999374,999983593,1370323133,-1004016535,-2140882559,-1842103095,600605935,-1096164768,980013921,-726454627,1107200822,-1429455019,-1997801625,1548663136,1267083430,729472419,642727243,1052615995,945870195,2124934197,-196223163,-1331649599,-996367255,-519750674,1908110140,1652981817,-1574032825,1906814728,-491185673,855681380,776032327,1646573944,2095151148,-959204627,715382223,-1856541889,2112865890,-741710210,-1327847500,-1020376269,2029108793,-749910195,-1147564390,822636742,-73447725,1614462258,-1146460930,-898235400,2011915587,-557510846,99190912,380450857,1404413159,361464688,1060702302,-219494127,1593699337,-1016806222,-1856984983,1030378284,-94987966,-1833855797,-1887014054,-1874469754,-1409857579,-115336074,31876316,-153294706,-716985042,-397815901,1858421447,-1234308125,-197325266,-1169328183,1363047190,-1799496582,200868786,837088145,1386989607,-331224424,1388599769,-671766536,711414812,-57767901,1598555486,1821120756,-467830368,1946229438,753786429,2016474391,392466044,777176593,-1479143568,-1069438722,1035247089,937514023,-1290456994,412990634,1162165473,1228071868,2026788188,157915886,-1864626640,1251396266,977801343,320887404,553589748,542872644,-914123694,-138371796,960876755,-1270806807,1170682424,-1330399446,-943995374,-1764606266,44790174,-768357775,1457306904,-1689908336,-390748280,789841533,-539847746,49528198,85898046,799108088,-767464055,484038732,1245615010,-1501526397,942884364,1630752638,-938725132,-1903296665,-1567434561,-1778622558,1796801715,-921233101,-52638678,1726557353,898970116,-169160864,278733372,12830122,-704557116,-1690370401,-1435199328,1434357801,897277780,61292520,1956749037,-54223683,-1281992246,437108264,445279658,1847916052,-319486950,-972722441,1297743802,1783083498,-1300603193,1739441828,-377138414,-1492639129,1814110710,1741037801,-884872697,-1207579336,-1159479147,2093243569,1130144544,868103463,395286050,-1340056655,-182295599,1456443726,1505570883,238694322,687833630,-1417807609,267176441,-723135293,1071784363,433894947,-1847913205,1347270912,-230711250,1791473523,-1545336343,-78942232,-448633978,-529616936,38425774,-388699142,-1172850463,484080334,-537231690,-66688080,1779802,2144979924,-1946458436,-1111418130,1320611666,1940014952,1408924022,1416621036,1588522700,-241740476,207275902,1165791922,1703591114,-202050864,-974869947,1769281977,-1072708289,-284493540,-984701264,1521305121,-1439927428,1293040065,2048235958,-1976726720,441326024,1032458965,1629039926,-416346884,-1027508581,1922676161,1854810518,-1921107066,-2065768522,-1274739551,1919999737,-717934148,748781884,-1614962458,1914763325,-110107020,433860725,229174932,-2045167916,-1261194127,1977081577,1463016648,2106613018,629698444,1459552870,267985573,-413533335,683045850,-990355209,-1051307861,-1916069402,1544189179,788492510,11657964,884034331,450028554,-827789614,979783030,1865665481,-667481987,639766429,710563249,-687618733,-695915987,-1773158433,-215380818,568580618,-1202281612,2034137388,408835851,1415160905,-356749102,-1581836826,-2003145675,2006892757,2048296824,-394985588,-1745385771,813290209,1785489060,1171664369,1023838832,1431887484,1677148858,404292513,1510788781,-1546656822,550840196,-428412810,1173412639,-1498527169,1565213675,-848540600,1907525184,-335815602,-368175434,1623190040,-667581836,2024704518,-1755248,1026550204,1243223271,-359861910,-1419913087,-1381661176,-430167710,390566607,935649190,207908967,789618147,1412585187,1624736196,31427352,-694488852,-1769360087,-2021148867,-1152610089,-718518851,-1994862391,577371508,1155030941,-1742179389,-810558388,1551764664,2110612700,-1824145319,587102782,-653072632,1130261776,2000378118,-1460221546,1005745319,-1987174692,361576501,1246499548,-864952684,-991197149,-1653789487,952177689,696997556,1010448204,730898933,671274829,-614228126,-1662353129,-980601948,-1430306926,-1608550371,1569160269,980876214,-449251506,59750146,2097115466,324883482,-139197169,9035854,1212263835,722966353,2053140743,-1207537257,-1893158743,-494381031,-1443719598,-1607421346,-477707753,-2027048816,-620123770,-1305706135,309191436,-1357792554,-36828897,1399789614,-353661925,721765755,1645925762,-178456091,1110950770,1815155390,663362277,-1537078087,-462992628,1635126922,-1472515132,-1701593232); -/*FRC*/Random.twister.import_mti(263); void (makeScript(14)); -/*FRC*/count=627; tryItOut("Array.prototype.sort.call(g0.a2, (function(j) { if (j) { Array.prototype.sort.apply(this.a2, [(function mcc_() { var iffnky = 0; return function() { ++iffnky; if (false) { dumpln('hit!'); try { h0.delete = f1; } catch(e0) { } try { t0[new (/(?=\\1)/gi)((\"\\uCD41\"))]; } catch(e1) { } /*MXX2*/g1.Date.prototype.toJSON = o0; } else { dumpln('miss!'); try { o1 + t1; } catch(e0) { } Array.prototype.splice.call(a0, -1, 12, x); } };})(), b1]); } else { try { a0 = a1.map(e0); } catch(e0) { } try { o0.a0[7] = x; } catch(e1) { } v0 = Object.prototype.isPrototypeOf.call(g1, o1.s0); } }), p1, g2.p0, o2.b0);"); -/*FRC*/Random.twister.import_mti(534); void (makeScript(14)); -/*FRC*/count=628; tryItOut("testMathyFunction(mathy2, [Number.MIN_VALUE, Math.PI, 42, -0x0ffffffff, 0x100000000, Number.MAX_VALUE, 0/0, 0, 0x080000001, -Number.MAX_VALUE, 0x100000001, 0x0ffffffff, -1/0, -Number.MIN_VALUE, -0, -0x080000000, 0x100000001, 1/0, 0x07fffffff, -0x100000000, -0x080000001, 0x080000000, -0x07fffffff, 1]); "); -/*FRC*/Random.twister.import_mti(566); void (makeScript(14)); -/*FRC*/count=629; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(576); void (makeScript(14)); -/*FRC*/count=630; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return ((Math.acosh((Math.acos((mathy1(Number.MIN_VALUE, (Math.imul(Math.fround(((y >>> 0) == (42 | 0))), (y >>> 0)) >>> 0)) >>> 0)) >>> 0)) | 0) % ( + (mathy3((((( ~ (x >>> 0)) ? Math.atan2(0x100000001, -0x080000001) : x) | 0) != ((Math.max(x, x) ? ( + ( + Math.log10(( + 0/0)))) : x) | 0)), Math.imul(y, x)) % ( + Math.pow(( ~ (y >>> 0)), Math.acosh(y)))))); }); testMathyFunction(mathy4, [[], 0.1, null, undefined, '', '\\0', NaN, objectEmulatingUndefined(), /0/, ({valueOf:function(){return '0';}}), '/0/', (new Number(0)), 0, (new Boolean(false)), ({valueOf:function(){return 0;}}), (function(){return 0;}), true, 1, (new Number(-0)), (new Boolean(true)), ({toString:function(){return '0';}}), [0], (new String('')), false, '0', -0]); "); -/*FRC*/Random.twister.import_mta(-1163398874,-1272953706,1690712543,-1371313813,-1905864274,-415821297,-1119232310,1842098034,-688125040,758593130,-1431948750,-199311447,-1388896015,-2144525919,-682133822,-1921255124,-2046323921,1716301659,915823343,-739904725,2063221891,1762468029,354226133,854020758,-722884591,-1026101267,-1066983252,1510288084,115560304,-2036928024,-1173532388,-1368034730,1567192193,-614736385,-515142381,670545048,828405098,-1950113734,697241916,-1989017531,1677241911,1301380616,-286428403,1107620097,-132036770,60025718,1463744305,-1271418878,-48210486,122196748,-17287157,-1752634257,-1333997049,1984488263,-605127806,584693202,-157198934,-1382234085,-1067716902,-588663913,-2051174747,-1412233348,1267499855,-523607158,124681867,776208446,-2132757319,1183421779,-267125026,-473094934,-2098130779,682401080,912675037,1858225971,1373617251,-277587055,920108166,1589502449,-1557358452,1835594245,-1368865649,214522630,330780920,-1904015960,1162889729,518528246,-736106270,-2143794682,2120831947,1615167239,375619775,-313909258,519784590,1020828797,-600282548,1475466829,903551860,-67609799,1665823930,-1574113960,513357604,-534965567,500518826,1315147951,-53031430,1177436009,-2038034241,-635483441,723216851,-1125476727,307372255,-641895220,-1594848407,-1961579137,-230158933,554633610,-1225976373,1050721912,-979214573,-804180612,-603823948,1984094482,1608228730,-402777709,-172595511,572596671,2026203354,90817242,898802037,1813017576,838393035,-305915653,-1802384194,2096153451,-786297557,-1512984538,-1929418089,351435816,969177169,-202615022,-1845217675,-1545693414,-1463064698,898330737,1417945760,1542244878,-1787295855,-1929170483,1780643505,1798627035,-1561141647,-1815248517,-1077945540,665975428,-1326019917,-826202051,1545471715,-1389090315,-1251589962,1106215133,-1174321322,-1083365527,-1634541016,-226753901,1041501163,1232104964,718745978,1389346959,-1517323095,1825431496,654817743,994947980,-582630087,-460188251,-1479617148,2104425710,-843038187,145163504,-1803472430,-1708125578,-1676221791,-654053959,2125540230,-1197019755,1246751451,941229698,1223406176,167610884,595754226,468874827,801996131,-657448128,1954448325,-538944348,-1825084047,-1703382825,-818178451,1754375655,1762808620,-1328382846,-332513293,2033420909,-462373924,-1702279638,318127698,1787982589,-1523234026,1413362427,457895372,-1464164947,-917700498,808782321,1250147618,1868573354,-2108133917,-391559007,1727087846,-1703006562,1464056098,1752255282,-1533794256,2000126282,1837401880,196223031,-1183268052,1670297584,-1504333604,1183610520,756391410,405243134,2110912159,-1789426775,1046590855,787361224,-731560808,-1833366987,-198530085,-1896965941,819678082,485043312,993421130,242064093,1567266711,1323917703,2031633003,-223739008,1622463674,436535576,-446459960,-933215047,1556090406,-248857534,1315123683,1246236374,-598521706,-2082761450,550352685,421727841,1865257833,-1506830742,-1411825656,-1718209395,-1883487141,-1182805866,-217024578,-2116342504,-789424905,-305088821,2088968884,-794964197,-127559512,880286054,-1842287050,701043712,-1647148227,-1521676784,-2685366,461920200,656867094,-307227318,785177380,2133420084,1388637003,-344692779,-928527897,581364900,-208980938,-951498011,965553079,-77667869,-368074190,418577060,-1908812695,1989603938,1731983114,565385781,-1116205700,-1076208636,-117643390,1906665840,652257648,-1658015914,-1813752406,1982107368,1708365238,-913486309,-2142984949,1073927475,-1896410584,1772738543,1252855443,768570250,347534027,-1847367365,29524753,-835451129,1449495115,-435610484,-961491958,1271456384,-1684576077,-1281595165,1639438903,131442596,-2114398618,-332125317,121382668,355168282,1849475350,238962706,776160464,990131165,-992598619,-1626568560,-1773038438,-1867430020,-1737234601,775228017,-586565189,-1466004367,-295712726,1986311499,681518268,-1500342223,781022298,-513567430,-1410243606,430454786,-177548615,1027081830,-5783034,-1771338304,1766342364,965791765,-1250388163,1593638905,1639151136,1168248591,591833882,-1149729439,1032396200,-743615308,-1308555814,1020750988,1520341006,484127104,2040833164,-836921997,-1824051035,-1932689412,-339394787,-1664745952,286451167,2046571799,813698443,340529316,-2125924272,-1204271245,-1455888693,-135181790,667949137,-1678365359,441903021,153373363,1585697086,-1344540900,1077681961,425277695,403167720,-950415667,-1082466937,860962110,2120357134,481145719,-1463433429,-1021082764,1508771645,-1489885581,1218138334,-377000784,773764169,-773962369,-679125947,1902643145,1420157548,1358455111,2103086321,-1111968975,1507084277,1970725015,968781970,-1445565460,1400753701,-46294370,249601501,939376125,-1757136361,-248272576,1806334462,-1299766321,1241954154,47339307,-228676521,-165394822,-2063937919,-504830201,-847787146,-1634791888,151313793,-1521118837,-1360841769,-688565507,620711834,-1966574515,708642595,1531410913,-1755940793,-860835024,1859486854,769182347,1454442782,-1415229096,-1029784233,1235628928,-1565162436,292477597,1255080555,-1773046187,1322121250,-1770102043,-436200396,7836012,336317310,-990715004,-1294834345,939762764,-408540991,1088109124,-1874770423,1934014819,-1457286019,-454438397,-1590784949,205693001,1856697076,127688521,441856435,2035878033,-848844718,-1118156748,1685322073,793281269,-42675213,-2136205189,649261602,814032685,-827051021,1607243084,843830949,-1384092088,1641144498,-493132261,-1860197680,196228638,-2015940628,-980820478,-227233913,279822508,1614130183,-916862808,1316117044,-462434351,-2122064786,1403142565,-524696370,1540838877,-1917916768,1458883987,-2123682425,1479104807,-1511223801,794546507,1460087769,771254650,1646039455,2010583571,-241482512,1381230514,-368118930,-505378384,-567648324,-1736686828,-1873311,290251907,-96335527,230118513,699241046,725351325,767871478,903508558,1746253658,1301780532,273202024,679230579,198478733,-384100761,567278258,366727499,1725723142,431734890,-2121687102,1130738578,-1319891653,-1246147796,889577064,-22485212,1169364693,922373008,306047042,1243678229,770102167,881130404,43146136,12011855,-1792604099,337360306,1344965971,78504031,1025283789,-760856167,935225158,-2129194006,-948350195,-714060473,-807396517,-1433257566,-39790061,-205022101,1781583207,2142419636,168821166,-242844996,-24231648,-1500162759,-1096852862,-1938389852,-2078801931,-1880031582,1308170696,1021591671,1650660029,709524276,850246143,-1898485116,1066456904,236430967,-360308527,986708181,-2102514022,2002068858,-1253035984,946949188,1934438472,-1227979148,660903645,1981363411,1920960944,-901639343,-829019793,-2137162115,2098247437,1692477611,360029069,-613017900,-1906743980,779048631,5112971,1342027585,432961076,-812774060,-1850693180,1685669538,1146374539,1770203524,-72442053,-994299384,938457673,1860626903,-1937838022,-38185987,1620297380,-218191892,1666317694,1899066856,-1157630766,2031892561,-247380078,901210154,-1201108035,206680200,1813427250,-1126670647,-1905632052,79560622); -/*FRC*/Random.twister.import_mti(270); void (makeScript(14)); -/*FRC*/count=631; tryItOut("i2.next();"); -/*FRC*/Random.twister.import_mti(279); void (makeScript(14)); -/*FRC*/count=632; tryItOut("\"use strict\"; e0.delete(g1);"); -/*FRC*/Random.twister.import_mti(292); void (makeScript(14)); -/*FRC*/count=633; tryItOut("selectforgc(o1);"); -/*FRC*/Random.twister.import_mti(301); void (makeScript(14)); -/*FRC*/count=634; tryItOut("\"use strict\"; testMathyFunction(mathy2, [-0x100000000, 0, 0x080000001, -Number.MIN_VALUE, 0x100000001, -0x07fffffff, -1/0, -0, 0x100000001, Number.MIN_VALUE, Math.PI, -0x0ffffffff, 0/0, Number.MAX_VALUE, 42, 1, 0x07fffffff, 1/0, 0x080000000, -Number.MAX_VALUE, -0x080000001, 0x100000000, 0x0ffffffff, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(333); void (makeScript(14)); -/*FRC*/count=635; tryItOut("\"use strict\"; f1 = (function() { for (var j=0;j<21;++j) { f1(j%3==0); } });"); -/*FRC*/Random.twister.import_mti(351); void (makeScript(14)); -/*FRC*/count=636; tryItOut("h0.defineProperty = f2;"); -/*FRC*/Random.twister.import_mti(364); void (makeScript(14)); -/*FRC*/count=637; tryItOut("\"use strict\"; p1.__proto__ = i1;"); -/*FRC*/Random.twister.import_mti(376); void (makeScript(14)); -/*FRC*/count=638; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return (Math.log10(( + ( + ( + ( ~ Math.max(Math.fround((( + (Math.atan2((x >>> 0), (x >>> 0)) >>> 0)) < Math.fround((Math.fround((( ! x) >>> 0)) ** x)))), y)))))) | 0); }); "); -/*FRC*/Random.twister.import_mti(502); void (makeScript(14)); -/*FRC*/count=639; tryItOut("let({} = c(NaN), w = x, \u3056 = /x/g , \u3056 = ((function factorial(vjwpbt) { ; if (vjwpbt == 0) { ; return 1; } {}; return vjwpbt * factorial(vjwpbt - 1); })(2)), \u3056) ((function(){let(y = x, a = length(/(?![^])([])*(?:[^]){2,4}(\\B\\b{1,4})(.|\\v*?)*?+?/gym)) { const o0 = new Object;}})());"); -/*FRC*/Random.twister.import_mta(-1478233732,-1119368770,758447822,80602259,-1566064082,792630057,-549721576,-2020265244,-793865441,-1794202108,830971482,141630337,517180928,1780583369,158987169,573545153,-216953438,1859685377,-1865255322,861808449,920758708,-133120984,802935451,1220207137,-1060345804,-580801839,932095780,-1149898568,411385009,1573144551,146437944,1906607306,-165931670,-1321837621,1567122054,-852052783,-1325972375,1641775484,1033093091,2975228,566454659,1278409307,218736544,1096485512,-1612585441,-1003748398,-632371958,-259257216,1579076517,-1972555522,783797345,-4413297,1601388147,-1055651825,1237311620,-1163661621,-1897558133,-803799477,1526773128,-1430592875,-991308503,1011826310,-1291230711,-14351636,976951295,-1739054469,1937385018,-1490485218,755195379,-606546829,1413401285,266511821,1878589446,2093355602,1095458379,1971195430,922226214,-1059415532,1107997956,1068395401,-989701726,120092998,328319322,1807597753,1248454997,-1832167708,922114186,868141534,-1531730837,-2042210163,742100452,-1050487316,939427831,1456538284,1935794156,-1124749882,1905809864,-1666013640,1447794500,611017344,-824163017,-60264516,-489619535,1616608682,-1012469359,1461885666,-952301746,-1917287900,-785122557,1968935736,1238589317,-1892614705,-201344613,119804359,-2104231563,-1726842659,-617577142,-1527195743,-14094478,-1833152220,-1323617868,2024036092,-1409519877,-1583402566,407624375,-258733077,86206417,175450422,930409222,1471599003,657327084,-72327806,-2050911775,-194032047,-1521407108,1664062368,578604425,-618654528,1732362460,-413086189,1068279190,-967666314,2143836747,498360342,1328245982,1750433895,-1135795107,320456331,-1751374292,-1299641602,-817422989,-694110387,-1740801851,295048554,93159974,-677457350,1009183437,1830525984,521555793,1264984749,2024405313,1581024486,-506753660,-1064588018,1971079830,1034683056,860350013,-1305328092,-344176898,77522726,1591843378,807155798,-1641080323,-1089925514,-136928089,1382986246,-1756347738,1277421269,-298035872,1127365765,643238975,1787753615,-671255287,2121406240,1817790547,-306842110,-1979007821,-1578435175,-279486207,-163866876,-1319777389,527826501,-2130080507,-1198163611,1489028980,-1926451203,1912296349,578946927,934360044,-1899615352,282727200,2002369990,-1989837424,-782326941,-1554159118,-2119777543,1537047201,-2039145380,-228577658,-232805664,-376018144,697060951,-1577699790,-1710900379,1644834152,904711456,-639890545,-1167150617,-1762074170,-34306637,-1898247203,-462973093,853901362,-1552680169,1565849988,1045218727,373352328,1763368683,-580855781,-914679589,-478159087,-309554996,2044774967,1374991351,-181781180,-1953126474,1332701734,1033791215,-914337088,2026263841,105561598,-1946937146,996437186,820133287,360072052,1992512187,-1655656308,879478672,1137855036,1328288853,184466999,-613878399,518955427,1421735677,-292353307,-2089179547,1850843359,-1486534158,-1969093694,-10820890,1171449397,1829776436,1869532105,1995733038,2048403616,-1397082848,1244769099,-1069730790,1489149211,1430746273,1893819252,-845735913,-436072782,67625789,-1508080481,-676742704,-504735899,-1422989037,925794133,-62241701,681869231,139137483,-1047240842,-818676289,843277621,-1587142617,-1027298070,972381785,-27942266,905142668,1354921544,-2101532452,-1164856666,482557461,-750098977,602328685,-1285534059,-688834505,264462888,1115185160,-2117421034,802028329,-1367377990,864901885,-2083316671,-943548339,-372309061,1999436677,1281856707,366651150,350457940,-971640581,-1679251519,1493867087,2096241548,1411365908,-1527903196,158183780,1964342356,1739256361,695690842,1059299055,1579697907,-1751661329,18189980,-344407420,-652896244,866624197,502800000,878636939,-834657437,1540041414,-2025721478,760556698,-545958054,2146378511,299568083,1053796340,1931380978,-572409731,-260666401,-109203653,-708872172,-475682045,-1126470084,1671168171,845629616,-549342456,-237768306,1384981796,-653598185,1287565663,1025681435,-484833941,-1533488216,2055578286,1115671977,1933455607,-1414032792,-920465400,-802571545,612222167,-748634656,-466282375,1072622442,849224567,-54535589,-423925898,1842951544,-1037831041,-1597669760,-1941176980,1198451665,-2050924119,252661151,-650393915,661263330,-1009061294,-210782373,271241793,70807419,-898168725,877126171,1031376010,942040844,1704224221,1473973079,2001144996,849636985,1914579030,746896973,-1842798027,-1452500710,-1070621637,751639291,1886547508,-426012548,-1600039932,-440041271,118905901,-334330967,413325808,1644543715,1275762071,-1484883201,706503091,-2023187805,-1870855930,1575360796,-1187556045,1410800452,-2122126697,1117329534,153874222,1086538808,-313308994,-1077671933,-408897754,2051210120,-604465131,702868175,-911141369,1652936337,409801810,-1814793962,-1095592599,1815975180,15743680,-2012688733,-1673942474,-595781884,1594157649,-353920179,2060257368,853052669,-1461149835,1196955110,603137639,-2144591973,-683359711,1895802161,-2122334511,-1706152541,-642977434,-2100598794,2003172646,-380523524,-2137673965,-710436752,1789726395,-2130801840,46662452,1837229804,-727917788,730239996,-848230609,-1129822212,1956123300,2103693185,1518387142,-1141632667,1896444486,-1962659934,23419238,2073447001,-1012158187,-729623349,1165433284,-1511398073,-59682100,-1597447887,41407088,1618377265,-1426880966,1774779687,-1880909445,-1228550270,64682419,1638965447,-918344904,1405702032,9555424,426833738,-173113160,950207670,361755873,-493541884,-480237087,1861547019,1101115285,1235157933,-1061160539,-55214577,-1554753477,1655231467,1963692368,1104622766,1003816110,-635527695,-1551978513,436463436,586851841,1243461549,-618877931,1926307165,1377886652,-587713929,-110351773,2117433195,-1665335794,613531043,-1195270396,-1877155986,1549524793,394920291,-1559418671,1634787499,1801137824,-1187591434,-1958886282,2003306720,-1582147731,-92629088,-1927657083,-1522170698,101714416,-1354322856,-476032361,-668890780,-592457187,908678407,-1380661025,1867235998,537154112,1642230951,1251404706,-1911157867,-323393140,227804639,-538286067,911396460,1058489314,1953926868,2051540286,884307679,-1932659308,-315274508,-1745585542,-2021198110,632871395,-708123205,-445977338,691522045,-674800585,-49533988,-1944203063,-1797745529,1069011719,1479164197,1262683213,-123824378,831602650,664575356,1447440913,-44414776,1975808696,-1065222167,77158837,1334302058,-746527216,-618679462,-414380800,-791881056,-1648500522,2117488944,-2086977415,1918850434,88262715,354408123,-561489670,435170243,130451627,-1960761855,112510144,2075255168,2091659750,-85965867,29686142,1335488015,915636709,-223525926,-1912761995,1154980233,-1065401391,1933278427,2166806,968607686,240640835,1799833263,-935108336,-1579389360,1232669930,-2047616627,-1012529540,1999641425,-2120395433,1110078484,-1149982427,2108257167,-886998079,-1644550835,1901576538,-2002713926,-525482999,-1108273030,-363205581,2052933595,-1549811412,-143567035,-1491665486,1356689678,169183504,-197867536,-1251317566); -/*FRC*/Random.twister.import_mti(187); void (makeScript(14)); -/*FRC*/count=640; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(196); void (makeScript(14)); -/*FRC*/count=641; tryItOut("mathy1 = (function(x, y) { return Math.fround(mathy0(Math.fround(Math.fround(Math.log1p(( + Math.sin(( ~ ((( + y) | 0) | 0))))))), Math.fround(Math.fround(mathy0(Math.fround(( + ((( + (( - x) | 0)) >>> 0) ? ( + (x > (x | 0))) : ( + ( ! ( + Math.cos(( + (x != Math.hypot(y, -0x07fffffff)))))))))), Math.fround(Math.fround(Math.min(Math.fround(Math.sqrt((y >>> 0))), ( ! (-1/0 | 0)))))))))); }); "); -/*FRC*/Random.twister.import_mti(430); void (makeScript(14)); -/*FRC*/count=642; tryItOut("/*hhh*/function oqgxgh(\u3056){/* no regression tests found */}/*iii*/x = (p={}, (p.z = new XPCNativeWrapper((oqgxgh.yoyo(Math))))()), x = (ReferenceError.prototype.toString).call( /x/ , undefined, 6), \u3056, x = x|=\"\\u3118\" %= /x/g , z, oqgxgh = oqgxgh, x;;function x(x, a, x, a, oqgxgh, a = true, x, delete, oqgxgh, a, x = ({a1:1}), x, c = /(?:(?:\uf166).|(?!\\b{1,})|\\u002A$\\b$)/, x, w = function ([y]) { }, x, e = /x/ , oqgxgh, b, oqgxgh, e = /x/g ) /* Comment */oqgxghv0 = evaluate(\"/* no regression tests found */\", ({ global: g0, fileName: 'evaluate.js', lineNumber: 42, newContext: \"\\u03ED\", isRunOnce: true, noScriptRval: this, catchTermination: (x % 2 != 1), saveFrameChain: false }));\nvar okxipk = new ArrayBuffer(2); var okxipk_0 = new Float32Array(okxipk); okxipk_0[0] = -22; var okxipk_1 = new Uint8ClampedArray(okxipk); print(okxipk_1[0]); okxipk_1[0] = 10; var okxipk_2 = new Uint8ClampedArray(okxipk); okxipk_2[0] = -29; var okxipk_3 = new Int16Array(okxipk); okxipk_3[0] = -13; var okxipk_4 = new Uint16Array(okxipk); okxipk_4[0] = -9; print(-10);s2 += s2;a2 = r0.exec(this.g0.s0);\n"); -/*FRC*/Random.twister.import_mta(-1361917198,-735066112,1571103103,-2017518164,-642470267,-92162230,1510694859,745263617,-832325203,1877789970,-289808093,686642850,1986250546,1809002805,-187654115,-115997897,309667733,743014591,1242140681,625359305,-268166582,297257066,-1545431163,1008312932,2139152285,-1409286986,-73705691,857124027,1164744732,-189308997,-1317763035,1329346298,-675928064,1991483181,1762911459,155399261,-1015267387,1309365613,-60423640,1768531837,905467705,2097457716,341260100,83657682,-1002789289,23377026,-2036763012,756978809,-1282800227,-145555290,872164781,-222114512,1573406919,1012641297,-486121327,-2020256823,1848613386,-694666212,-1436786970,-2100019566,315202282,1275377092,-564117669,2143765174,-163747547,-1745979526,2141739317,1946122250,1466375762,-1065468108,246394614,-770271998,-423690402,698551069,2121651679,862590210,-838626736,1613151870,-1032765864,1108875408,550687811,1729432352,1291994183,-282850278,715070081,1923048541,2121972508,-1989277737,-1482336740,-1240251982,-1522873905,463246710,204915274,-1592195304,-1625100495,1405280639,-616731100,1620168039,708808678,-1333531344,-184808087,1903613908,-1459135821,-953412655,-1746952417,-1195319619,-749363222,-1719001040,63117877,1362973303,158856481,-887736533,-1740453605,377380892,544864377,-1661710953,1692698951,825903341,-1957645583,861540395,2026175994,1208645190,256294312,-218299956,-2011122990,744621812,1093707692,-2063161632,-85797445,1158914129,1668759368,-949987942,-762303908,716443943,1865908366,-1306843054,1326079609,-366357435,-1804170665,-411523565,1719733690,57486711,1027886367,-996552217,1130502641,-1248770137,-1244057137,1290866525,965431767,-1638508403,87369074,-1783330459,-1898852331,1634256952,-2035012856,1358039838,-1388463053,-1941414869,2063532812,-1543757390,-682665639,-471775151,-1686241219,-1122941434,-52273052,-169571169,-576102416,-430134988,-1484086837,840568264,-882788277,-246063875,607062483,617721718,470050342,1441051934,1305654445,-895444344,429343910,945322035,-1654585114,-118127779,-1628164986,403274133,-306456799,-251473857,-232835590,-1238544221,1200206788,1021132647,2054756860,238741782,2053052859,-995823910,2079787514,56473650,-277764578,-1160957079,2002212365,93075688,1438374353,1348011662,-1720760691,-1046079302,1770356844,-945734131,-1746684219,-1181478711,-1175930520,-796909618,-1169543919,-1098693728,-2012069541,-266169623,-625056746,-530796510,-158214652,-1559597164,-1476740725,-774799222,-410172581,2141836453,696098334,-2094643801,-179477169,302261952,-461506917,-1985500292,-297244426,1483125779,1196513228,2122927935,958631606,1409218545,805147088,-497691970,-501024911,1816359893,-85927674,1347381286,-1731440306,1357654163,384085965,-31710194,-454071901,-331235490,1483136991,739256034,752522085,-42099232,1210248123,982168780,1731993784,-1265743589,-643682530,-1584583177,-904994023,237625928,-2062451647,211681521,-2001779428,-127136028,315972102,1272378299,-1116421686,1379497741,-2069586623,796505179,-1010769532,-507647359,-1782550723,184750523,345159257,270397866,550103907,1598826976,-2059574567,1910619935,619767642,1632528723,-1233212588,-2051862678,742844507,166801136,531874980,-1420861500,-937520960,21144996,180172558,2016891025,-92440814,-1529519984,533260809,31070462,1208256057,1033209995,390146719,1463485526,-1284696331,-1921309026,2119744578,-90221247,-480420038,-149831682,307177679,-1189336705,2107819847,-930026134,-907025865,-17738437,1487470099,-397100763,-2104254390,847537975,-410537758,-541439426,1404440563,-430592323,614849409,-1369097364,-713696920,225927119,-66472044,472736382,1699461996,-1400021870,-1794280664,-330250337,130748414,-1902540881,994126568,289668835,-1577189912,948082584,-2059522373,2096915837,2114224742,501927661,-660803926,-185499047,-1934031076,-1277283092,-1202383869,612952687,-779965889,1500959444,-1650270600,1451725337,-432207834,567272226,1749103193,1436225907,1096047761,552482717,1517573579,-188623042,1623358176,-1982610640,-534380103,474174341,-915075577,687871165,35786311,-553618320,-1986698106,472961018,583944713,-1774627833,63200980,-809648486,1775508004,2000310246,-1884231683,-1330763019,267334608,-105224235,97981802,1156822178,-293133441,-78751692,-22603261,670367447,-1219073263,-853859458,-848691663,1072475225,848108070,-1079045953,1758455319,-765441543,434196446,1258193028,1827973648,483344761,1027046753,-1202033230,-794024059,-1964244086,-522742547,519673668,-1360985473,-1221044726,-119172448,256231790,-1166306499,-658602599,-1028665350,-866358347,-584520647,1349673225,-1456884096,-999864151,1604203655,-1547528390,-696190978,599823724,-1325503973,-1845421216,288312590,1808897125,1622724324,-1233798019,1672731691,-131552835,-1033677629,1333804950,301452799,89083759,2075394928,-1710012126,-540358494,1873553531,2127933867,257261473,-200583773,-421492644,1046147056,1824440674,1487259914,-222924932,-270167541,729690945,-760774707,-267510527,1719876270,-1723354283,-1058391111,-962358476,1749396994,385095733,-1638166126,-1612707428,1955748235,1181772260,-1040655603,-385233751,-680445393,1209500290,1120223852,533420804,-1044192004,-1791347577,1158333323,-1433744921,-1759703938,1504743635,1939727884,349136262,1231974625,-1718880341,-1612426839,-142866,2097149743,1782220792,79550837,1036332649,-150280229,1850304682,1265798265,-1411674162,1691343400,779947157,-229840402,1683507763,-372129372,-496446414,-1601221267,-1286136712,-1359426376,-857726332,-1328203735,710548236,-2008518979,875250473,-1132123443,-352756800,-1755547512,1621585990,-1564844156,-1672022606,1100149543,-296396852,1521658490,-1545914167,675707231,-2145542201,784420210,-495181491,-962177130,-911920120,-752870130,1946297186,-482703663,1604033558,1712454319,382893676,1227177273,-1006599308,-874026211,168692241,20380893,-986381605,-1489055840,-503694008,92145120,-428156472,-1867080441,-1962666198,528210161,1954774874,752472616,1747430126,-695338210,-1984621913,-1227112938,473649475,1659051359,760381097,1191946522,-464386950,1667700905,250918471,-1509141564,-182436649,-1636328590,-1486275785,-1260400851,-2064422641,-959181264,-1282348319,1694266603,971260421,1434223889,101216690,-1655803865,304053114,1786847818,7354994,1357941249,229384596,-625821515,429343748,1553303559,1816940249,-1931779477,1069320694,1386974366,43932056,-1883855760,-1524166953,1356316655,-1889697785,-1260575043,-1506793339,-1654941627,1172216871,1183125609,1012377389,-1562845107,1628961969,-1770781028,-458516528,-468800037,-1020257033,-398211315,1041881882,-839775824,-224650770,-1433116505,82355391,-1414311765,800779265,-465826546,1048072905,-236499820,209489352,1796326619,-1769403997,1796538981,516404290,556347164,1008242370,-1848918093,-759867977,1975498871,249908124,-46148455,-1507033480,1950763755,-1246803049,907889730,569361817,-1936984627,-1779563823,-1520676672,-1425623014,858701148,1306282421,1373474040,-144576805,-1062965748,1376682971,-1802611310,-943373572); -/*FRC*/Random.twister.import_mti(408); void (makeScript(14)); -/*FRC*/count=643; tryItOut("/*tLoop*/for (let e of /*MARR*/[({}), function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, ({}), function(){}, ({}), ({}), ({}), function(){}, ({}), function(){}, function(){}, function(){}, function(){}, function(){}, function(){}, ({}), function(){}, ({}), function(){}, ({}), ({})]) { print(e); }"); -/*FRC*/Random.twister.import_mti(492); void (makeScript(14)); -/*FRC*/count=644; tryItOut("Array.prototype.reverse.apply(a1, [x]);\ne1 + '';\n"); -/*FRC*/Random.twister.import_mti(533); void (makeScript(14)); -/*FRC*/count=645; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( + (Math.min((Math.cos((y ** y)) | 0), mathy0(Math.cos((x | 0)), ( + Math.max(x, ((mathy0((y >>> 0), (( - Math.fround(Math.sinh(x))) >>> 0)) >>> 0) >>> 0))))) >> ( ~ Math.pow(-0x100000000, Math.fround(Math.max(Math.fround(Math.imul((y ? x : x), ( + x))), Math.fround(Math.PI))))))); }); "); -/*FRC*/Random.twister.import_mta(-520362102,386774157,489036178,1530127842,-898069073,216567194,-2139582287,71499572,-1354177776,1828425652,-1742028572,-434565216,-57456308,172578385,568654317,-1884547182,753854394,1787596581,-1469367977,-1996724418,-623181995,-1713981933,903693655,-965733899,-1551220186,-2022258842,950751039,-522905395,-321707884,-800769742,1657885714,1349457776,2017605227,1917553164,-234552694,-966582634,-245865016,-902277961,190638909,-1112640333,1379701880,1385058984,-255316331,1425043967,1808558336,-773077773,1066002402,-431060801,-487705850,1875376,-4000340,-1616299330,-1848541214,919605509,1159860391,59085966,1832679402,-1797852034,-1469852704,-1642727590,1846925408,-184685282,1613298271,1674895537,-556986566,-1546231858,-1821018654,-1129413801,2039451465,885666167,1036267271,976293710,1414710010,970328985,-431432849,1543388679,438950087,629491289,1556685345,2120957221,1573121338,-184869243,-1672902205,-1467422793,-1908797852,-848186272,-102237945,-1174181206,-1184795413,1796905301,-23505213,-1461473891,-596860664,1716322158,-625747092,-1512646225,-580184763,-1449464514,-222778024,1948962531,404495276,791757314,1724402821,-1821012873,725452877,857236879,-283236143,-256949094,831227427,-1284372675,1593805319,328172484,-2103835642,1511281133,-479152778,138441389,-569505601,-89058552,-696793434,1967604676,-536496041,-867945015,863013623,1160160692,-1828453983,-2019124106,-478581192,-519577630,503036223,-1592982877,-1464582681,1983106527,-1194211562,457314927,1898593991,671114493,631851098,1709722594,-158354795,295934850,-1242801971,-1063174326,1595300950,-1679907698,-1925929653,1709734908,173018022,465208134,826976174,-163226220,388078946,414471909,-1021014275,1738957167,1369261962,-622138409,-651890824,-533597791,65104803,-1741799879,-393728379,-2075706688,1394901655,-1530689401,-93474156,843130879,526522947,1175880273,1722912530,-300687260,-482588871,1151963206,-1219503764,1591053564,-1515201912,188533812,-2090834495,-779077098,-1057353503,1211470874,-651831716,-308087282,-1273237340,966876627,86134544,-1660864730,19793017,-1954078993,-1182796682,-254900914,-176067227,246635685,649778130,-699870122,773074968,-746267135,-99189854,323245901,247108028,-658204436,-1096447260,-22408708,2115287071,1441525546,-2034196197,1127404558,393735436,692839619,1722107003,957510350,-110239832,-1454908775,1421259324,1531084361,1371643272,-138207537,-999607013,1873394906,-1007781793,-639587282,-1426058440,1164133367,1878686935,587885684,453808315,1069030912,-2095671486,-1746938895,-499753381,1049539188,-41946462,-689353996,-1138800963,-1752803239,896013931,1196501111,-2083355007,-1520784281,-1908491341,-252354069,-80219449,-1281483052,-1331559019,-946740300,481054858,1565582951,-1628146609,1438582328,-1486325533,-926646187,-617264237,-1877716358,70865716,1417304240,689651433,282911175,-1756248042,-112108819,-1893161001,2081789157,243109246,-1150308471,2055264148,-270400211,975986670,-1878649534,1931091521,1943856314,-1151854793,589343188,-2005317123,-124943629,-639288282,-1226464628,-907502513,2037920437,-505089312,-306543103,906411720,-1964103096,1946785456,-1979067307,125633526,1659213240,-2123277412,-865297536,-558586488,1800094695,1374614921,1561739734,834556153,136432353,-1556393039,780109345,996997069,-349721895,525841244,-1116072798,2089589761,729717979,-1651437082,-1746504462,544662008,-905511809,-1610358215,-1156517539,1512262544,-1606636290,311100615,1763001877,95030266,-814490047,221984548,-903601802,-706850891,1236452301,-1053229356,901975004,-1076809685,-1227469380,-1174413226,-457768794,-339711856,-271660813,-1076083849,-1203890996,-1693835789,1543085139,-1317719798,996727281,48022489,1002665657,1868115523,1955172179,400148219,243910416,613404820,1924267346,-251661769,-993622136,66800539,642944936,-1022576827,1875373439,-1777698206,-660166246,-2029241833,-753189820,-1666988968,-1638358268,-152855086,715562806,249116519,1464595458,-613993347,1838842959,-1511726277,1102024164,-1592077118,90435786,-691361554,-382498501,125853381,1633942041,737160223,2128619342,-2085125794,-200378457,-411049977,737956164,-1606188163,333735530,-1531453863,1302827598,-1100021645,1939942683,-734230587,-1184187390,1695775487,629125923,-1386959141,-750861603,-1134069144,647536831,651106130,447211184,519112377,99052881,880783075,533996920,-2118334267,-870848612,-1523697764,-1729031124,1513862280,-1745933297,-1419386463,174013840,198532068,959965324,88713209,-639822888,1285433475,123018368,617072645,-1582434532,-1223487201,783880351,479426133,-1601229852,-1030076072,-203037300,-1931445061,1785626502,-630762407,940077476,-1177679618,-1122579486,-1571609016,384218272,1417329335,-960139566,1989687808,36659484,1954826374,-1622554724,1131122564,-2088793252,-207374995,301063246,-1154135096,547539217,-577709311,-1267009790,1513857261,965227395,256709247,-717276371,-1877152473,-1169372186,-1745496266,-509963599,382509200,-1221941172,-100477521,982766940,-1162779212,-551369671,-686686414,1624749086,1828350138,-129168223,478161650,987908635,2052294010,277246867,1518695221,-602057836,-653465738,-1661061949,1142158021,-823801999,-887292837,-933494594,1351242961,-1208989515,-91040984,1183349352,642995678,1717083550,-1200682173,-69526590,1749919131,94513194,-766172717,98941905,-1075825664,1736752496,-2047240803,1985920544,-632525275,272452126,-67603455,-1548146492,-2006634252,1181200830,633215705,1493297954,-585122101,-1142752417,-1160836949,-1493116817,1394279433,-196068360,111167834,-252302477,1400050167,-1725667777,-1230571478,539293034,-2117138070,-1531852430,-241361394,751795856,1958541629,1634080881,584616497,391822715,-287617455,1861029233,417629193,702851115,-1549707893,1958012928,1612872913,-327885878,2132148332,-851094104,-735150282,984128768,-1779583085,1760792605,-1680165763,1575530924,-1907918778,-1377869219,1862047566,1260670273,-1381512353,907675884,-32167672,-1958404170,1724041425,21927067,1999221888,-1158530377,-424359522,640671607,-44376964,-444593233,1414974090,-958896553,-1440060039,-1912392851,-8444264,2092328802,1839679972,-627710130,611829001,11985466,1781815598,208318752,-1153815531,212178239,318120430,-2076860369,995149000,-1280559610,1024812659,-620182842,943861073,-1600409049,-1582870365,-1142238850,762296745,-643156872,-980833468,69212579,-305547236,846190701,-245260893,1433164259,313920775,1353271018,687653512,652868787,427540557,2122800427,-1020931663,98776105,622739434,812175951,-1794491669,1221439586,514023529,-2015113190,2083388477,445130850,844065723,-1957607857,-1347011386,435038872,-1194017035,-1153161452,-1305464509,1275048629,-1179622070,1287762576,478657611,-1272755753,1403770159,797077365,-2081212641,938208033,-1105716788,-1031528340,1986628639,1316961137,1356978121,-412492727,-1352142164,-1182638741,-916957433,1281306329,1348743516,1843982413,-1607290499,-1454240071,1857003566,-981729126,1761535262,1350344257,-200438415,-619179420); -/*FRC*/Random.twister.import_mti(137); void (makeScript(14)); -/*FRC*/count=646; tryItOut("\"use strict\"; this.m1.set(s2, s2);"); -/*FRC*/Random.twister.import_mti(154); void (makeScript(14)); -/*FRC*/count=647; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return (Math.sin(( + Math.fround(Math.pow(Math.fround(mathy0(y, (y ** -0x100000000))), (Math.tan(-0) ? -0x0ffffffff : (x >>> 0)))))) + Math.asin((Math.asinh(((( ! (0x080000000 | 0)) % y) >>> 0)) >>> 0))); }); testMathyFunction(mathy3, [-0x080000001, Number.MIN_VALUE, 0x0ffffffff, 1, -0x07fffffff, 1/0, -0, 0x07fffffff, -0x100000000, 0x080000000, Number.MAX_VALUE, 0x080000001, Math.PI, 0x100000000, 0x100000001, 0/0, -0x080000000, 42, 0x100000001, -Number.MAX_VALUE, -1/0, -Number.MIN_VALUE, 0, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(346); void (makeScript(14)); -/*FRC*/count=648; tryItOut("\"use strict\"; /*RXUB*/var r = /\ua521(?!\\1)/yim; var s = \"\\u614c\\u00db\"; print(r.exec(s)); print(r.lastIndex); "); -/*FRC*/Random.twister.import_mti(434); void (makeScript(14)); -/*FRC*/count=649; tryItOut("mathy3 = (function(x, y) { return ((Math.cbrt(mathy0(Math.max(x, ( ! (Math.min((x >>> 0), (y >>> 0)) >>> 0))), (( ~ ((Math.pow((y >>> 0), (( + ( - x)) | 0)) >>> 0) >>> 0)) >>> 0))) >> mathy1(Math.fround(Math.pow(Math.fround(( + ( + ( + (( - (x | 0)) | 0))))), Math.fround(x))), (x * Math.fround(y)))) | 0); }); testMathyFunction(mathy3, [-0x07fffffff, -Number.MIN_VALUE, Number.MIN_VALUE, -1/0, 1, 42, 0x100000001, 0/0, 0x100000001, -0x080000000, Math.PI, -0, 0x080000001, Number.MAX_VALUE, 0x07fffffff, 0x080000000, 0x100000000, 0, 0x0ffffffff, -0x0ffffffff, -0x100000000, 1/0, -0x080000001, -Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mta(-657369335,88495917,346954365,-1182969359,-1616292587,-710225916,1165255450,862173581,-674221882,-1157205651,1572181839,1658508019,2091069459,1264616817,-197923259,-627634330,-970946357,1465546797,2088124987,1303103371,1760895028,1639265340,-1395258235,96443300,-2055336607,-1278923456,-1420993115,49141964,-143959291,839067021,-1421344540,1451892359,684988744,-2110272883,1133725274,-1522734619,1215196550,-2036505172,-1101547259,1716738115,-59239815,829442738,1228686278,-1575754826,1348976663,1225282401,486890700,-1955214292,2057149316,-2058346654,-1862903450,-1611054909,-1565062077,-681324490,-108017946,706613511,814297124,778202250,1603045438,764387077,-429677285,806365830,874312772,1802859864,-1626412906,-2103032150,251916746,-1253760086,882761937,2105046132,1536228815,209335459,-474273651,306435627,254587934,-61736665,-1905771559,1698234396,-1546087012,-1862155619,-990805267,1389748643,-1156416220,-1655609065,1988464686,503527517,-21455471,1306344030,-1428009525,-2080767641,-1804038861,-1289097649,-926645016,-1751718627,1826817127,-1532608908,-1600303769,2147229686,334232797,1602034721,-1900230850,483028663,-1332313202,1297710483,607472490,1595587257,1419304157,-1250850061,-505959632,-726663187,513637529,-275362734,-1695574696,693952178,-187948638,363782411,166486404,186228610,-1764263384,-702780264,846200723,345934482,406573018,90638236,723574310,-362413215,762011229,1504842758,609309651,-1548863134,-1456137359,-1311823660,-491540220,1602782900,105749783,1947626748,867873130,-714679019,-232523914,1699370279,1182744786,-1831734697,-395355672,-1950078736,-1272161367,-1358796630,-2082573618,-405113521,1200933288,641173333,1338473699,-1662176600,-361930158,1123744491,-1206422508,-676832343,-441066192,-905042720,287969260,-702782635,-242242714,-846227481,1348580954,1165292571,1622380807,924773725,32055433,506953248,-291257270,757020679,1718931840,-160541526,1560616467,-474582809,284311545,-1978757320,945904609,-779519449,1123235518,904473443,139863596,-1725421085,-1069864417,663689314,1055410652,1284868104,-737767478,1109170770,-8088899,-1612318128,-992397585,554828370,-1602933660,-121887542,-1457195705,-975207644,1810807917,-1251116643,1738407619,-421355464,865385070,-91926373,-1630093758,-909953667,1310393714,-2008497767,-1169774177,339872558,-569566965,1256154059,-2083232030,985304791,1405113266,-2021180312,460022483,845512021,999026868,-392446548,18392666,-172836639,1391140765,-1067831654,-721865056,-59761252,1335923009,-175716656,167725891,818071803,1510018583,705815340,-771099509,1487816340,123817207,-2033657616,-1983668887,1328661337,1889769345,-2086503863,-2086087975,-1741653585,313494043,896162896,-1184891204,-2005491570,-520438847,-368785213,661931159,-498488166,-1663056695,1480858003,1303753369,-949836549,-1711800040,650670606,-1819600656,-54280434,-677169116,1976886224,-1316461526,803921911,109620630,1054027152,197483436,360202865,-1902219507,1590822650,1606232606,2027727165,1625300568,-737650713,1197314576,1016421892,310018599,-520510924,1858168233,1248846580,1787161789,-873134590,-1701947929,-659306725,1265601219,-1171175651,460119003,808558058,1213473098,819387130,-1054699991,1469869824,513477229,-1244959513,-160620297,396095889,1284584805,-1950532877,433997337,2067151231,1673887269,-1126300912,-2133997039,-311189378,1504767058,1595393250,1079654343,1197570586,-1581660051,-825675692,-2128636702,347910225,-11013514,-1178109735,601896680,806882236,990980326,224332436,-1341330585,-1971440991,-652508023,311993849,-398276463,-1808042813,-439524018,419639343,1246358226,1719393283,602084752,-949599493,-1417059625,-1777967173,-663309680,686838461,-911182320,-1970180972,-61420081,-964915329,-1305122437,-208649350,-302579388,-1075169955,-1913319530,1109033034,980785510,1279445727,-79321237,48848053,1732954959,1280956412,-1080954182,2084445631,1538448144,1665794355,1345603591,-1253771958,-1044121248,-1714391876,-1233656066,-1347710319,-1015414896,-1179094768,-209792847,-908663437,-1306922250,-595262806,-575725265,-1085663302,-367604046,-201836583,-2042241493,-1396178930,-953165067,1631987849,-1036641339,1065288794,-909008499,98648616,117592861,-192791915,2055395668,-1538887357,391797734,1708099040,-1301468326,-433796832,502053673,-153987431,-950151240,-2024129425,1307010338,1924713672,-1033534117,-910728473,595527637,841255625,2070308683,1827994317,-1933027080,572097605,1748018895,1671330930,-353001236,-961970896,-816252661,-273310873,-1985740424,-1291186372,-1050705495,-2140008722,-71494669,-1625870887,-1989166063,-1586098509,1585310372,-510605474,966965195,1614648633,504930944,-480012606,-1049714783,-1779391029,1784764418,323011040,-606170205,-764876729,-993512534,1370265646,-1161192877,103299329,-413309546,-749875193,-1300382020,-2092164186,10150186,-103032787,-764036584,1314113846,-1852923344,1084432619,-112701822,1389535406,1738337060,406501417,1849869807,1343042203,703605107,-545117508,-1244506366,473961600,53176866,962846724,-1338903403,-494664963,1499343635,31491128,1912558338,886475262,-1584840211,-297072814,69159654,-1097890000,-1881543638,-60816054,951225239,1967477659,723501830,-2115105482,22212300,-18760883,-76266341,25567476,105255583,1012976578,-174379665,232053203,-388637482,-1755945823,968081837,-2094014775,730220331,-700331896,-1135739925,769033941,1859573505,931107375,-1390466196,-1819172770,384252687,979360153,57289318,-1324367316,-97853216,-810914010,-537878887,2115722710,1694112518,485297843,-642839461,-1873729924,1100141607,470740485,1820796081,312280722,-1298053491,370141870,470310332,-908910340,1649326821,317366304,1242966393,-452289228,1414492538,-1911150336,-1110738656,-1064551600,1250733818,1748697246,1638269669,1628441179,-1821784525,-1669718164,1255128849,-546349453,1724662306,-1925468936,365060521,1692844550,1933116129,-139230794,1374238209,-697583326,68862100,2135991107,46396865,1271930074,1466354374,-1165275486,-1865605675,-1945266503,1943545789,491608278,-607076684,1362775459,-1220834976,2081516804,1417092040,-1499195451,1824757320,-560894877,-1183742108,788412181,425214258,2136196677,1615758483,-1485393083,406599867,-1561169376,219430771,-2048995084,824592830,238188022,-1491792393,964651960,1329194675,2079224309,-1369101371,575171919,-1824575647,-281945548,-1727906748,210847080,-1937926602,1526585701,-245907301,-149324525,1678603401,-1410362370,-163425479,-838366231,-989782151,-391245824,1857937281,-749934955,418164036,637160276,-875738464,1428225915,-1169581795,341876336,-997002942,842463220,1076171090,-1972093108,-205716746,1869881623,-1369824173,1180005973,1346333067,-604510128,119992769,1434285375,-1134161810,957152197,-1960262323,-1611433907,914325466,1703859634,-989568651,-177853130,-604460921,51736673,1285068763,1247756927,857458931,989416676,2021465052,1708490124,-582745039,1265921338,68605284,1411962818,278563460,253302212,-574487246,801517215,1335201143,-1655652972); -/*FRC*/Random.twister.import_mti(39); void (makeScript(14)); -/*FRC*/count=650; tryItOut("\"use strict\"; var jbbstp = new ArrayBuffer(0); var jbbstp_0 = new Float64Array(jbbstp); var jbbstp_1 = new Uint8Array(jbbstp); print(jbbstp_1[0]); var jbbstp_2 = new Uint16Array(jbbstp); e0.add(h1);return;/* no regression tests found */print(uneval(e1));break ;"); -/*FRC*/Random.twister.import_mti(137); void (makeScript(14)); -/*FRC*/count=651; tryItOut("\"use strict\"; v0 = Object.prototype.isPrototypeOf.call(h0, g2.g0.e0);"); -/*FRC*/Random.twister.import_mti(158); void (makeScript(14)); -/*FRC*/count=652; tryItOut("mathy2 = (function(x, y) { return mathy1(( - Math.fround(Math.max((Math.log(x) | 0), Math.fround(Math.acosh(-0x100000000))))), Math.imul(Math.fround(Math.max(( ! ( + Math.ceil((x | 0)))), y)), Math.fround(( - Math.exp((-1/0 >>> ( + (0x0ffffffff !== (y | 0))))))))); }); testMathyFunction(mathy2, [1/0, 0x080000001, -0, 0x100000000, 0x100000001, 0x0ffffffff, 0/0, Math.PI, Number.MIN_VALUE, 0x07fffffff, -Number.MIN_VALUE, -1/0, 1, -0x100000000, 42, 0x080000000, 0x100000001, -Number.MAX_VALUE, -0x080000000, -0x080000001, -0x07fffffff, 0, Number.MAX_VALUE, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(366); void (makeScript(14)); -/*FRC*/count=653; tryItOut("mathy4 = (function(x, y) { \"use asm\"; return (( ! ((((Math.log1p(y) == Math.atan2((x % x), Math.fround(((((x >>> 0) & (0 | 0)) | 0) % y)))) ** (( ! y) | 0)) | 0) | 0)) | 0); }); testMathyFunction(mathy4, [42, -0x080000001, 0, -0, 0x0ffffffff, -Number.MAX_VALUE, 0x100000001, -0x07fffffff, 0x100000001, 1, -0x080000000, Number.MIN_VALUE, -0x0ffffffff, Number.MAX_VALUE, 0x07fffffff, 1/0, -Number.MIN_VALUE, Math.PI, -0x100000000, 0x080000001, -1/0, 0x080000000, 0x100000000, 0/0]); "); -/*FRC*/Random.twister.import_mti(533); void (makeScript(14)); -/*FRC*/count=654; tryItOut("a0 = new Array;"); -/*FRC*/Random.twister.import_mti(543); void (makeScript(14)); -/*FRC*/count=655; tryItOut("\"use strict\"; null;"); -/*FRC*/Random.twister.import_mti(567); void (makeScript(14)); -/*FRC*/count=656; tryItOut("\"use strict\"; e2 = new Set(p0);"); -/*FRC*/Random.twister.import_mti(580); void (makeScript(14)); -/*FRC*/count=657; tryItOut("mathy2 = (function(x, y) { \"use strict\"; return Math.min((( ! ( ~ ( + ( - ((( ~ (y >>> 0)) >>> 0) | 0))))) | 0), Math.fround(Math.imul(Math.fround((( + x) ? (Math.hypot((Math.imul(y, 0x07fffffff) | 0), (((x !== Math.fround(y)) ? Math.cosh(y) : x) | 0)) | 0) : Math.tanh(( + ((( ! (y >>> 0)) >>> 0) == ( + y)))))), Math.fround(((((Math.round(((Math.pow((Number.MIN_VALUE >>> 0), (x , Math.hypot(x, y))) | 0) | 0)) >>> 0) >>> 0) ? x : Math.fround(Math.pow(Math.fround(Math.asin(x)), Math.fround(x)))) | 0))))); }); testMathyFunction(mathy2, [0x080000001, -0x07fffffff, -1/0, -Number.MAX_VALUE, 0x080000000, Number.MIN_VALUE, -0x100000000, Math.PI, 0x07fffffff, -0x080000001, -0x080000000, 0x100000000, 1/0, 0, 0/0, 42, 0x100000001, 1, -Number.MIN_VALUE, Number.MAX_VALUE, 0x0ffffffff, -0x0ffffffff, 0x100000001, -0]); "); -/*FRC*/Random.twister.import_mta(-1204426949,2041191693,1126130967,428139358,-2057243803,-350342923,867394341,-357066294,1157203591,208627851,930280575,775328967,500104404,-43209383,-1931788051,-1011203215,-1835525648,-1188351166,1556006360,-183234629,-1523957803,-452792673,1369377842,1080632780,-1953857817,140914087,282752072,410289934,-970908904,-218536476,553676699,-1508396520,459230783,1632846343,1917656064,-1237152549,1293777888,1471008365,-1434305515,1585248097,174753271,1124256455,154356210,-1619421893,-310268940,661817109,-633811798,-929260864,518527793,1263552145,-275255110,2019738219,-1992955162,630835296,-840483740,1773914896,602390459,-1907423758,1636071439,-1373230924,-427322765,-1781033464,-908410906,926285788,873885902,1822309347,-1689477917,-1038832005,-1067613833,1337232035,-1632400774,-1366084090,-330723320,-233998496,-1426811489,921268709,-439688017,677350243,1386712920,-789170558,639862918,-1580939911,-92896639,362028822,-1586053410,189519227,-176210575,-1700877003,-492148235,-799089632,1905493460,-1639406956,493464951,814328949,1816675052,-1380184726,1662189896,1230127850,652679347,1187821496,-882677375,1959552374,-315029372,-1598299336,-1601566931,-1353940211,1248023898,312831869,-508170487,-1672468502,-759055587,423148502,-625457575,-2018678287,324270858,1316658744,1840762719,1791868913,169753623,1398180133,-1774888411,1188190460,-572727875,1935420721,553655703,-629178792,1212139525,-132572201,-429613817,-1669657754,-1903415992,1967331350,278192153,-1729262699,1910188708,1320915571,154177783,-371399058,1738542325,1357350868,-1926426334,-1343811008,349723099,1948587115,730880337,362291887,1279368637,252310172,1417813782,127568330,545828417,1819209755,-2027549713,2084912793,1437216334,1793512995,-940220336,1166096517,936923521,1239522317,-235073830,-819603750,-2100453014,-429351185,-110512252,932776798,760468063,-1536242364,548861672,-1439148924,933654333,2079828448,-231845431,539389880,-232899953,-1590335066,438541874,-1757689754,1308339847,-1054208913,2100474926,-1750533551,-2138346844,127437226,61902672,-506589883,875475538,478371996,1536320344,1073142506,1656747741,1344243552,-165008087,1042794634,228319365,1118161594,-974423484,-1158076875,-393824180,1592569078,-248025683,-217231537,-991571548,-333101068,48212062,-229336118,800051237,1930059055,151071756,-636314634,-952072235,1702411778,1235016779,-408499899,-1161608559,1706615686,1368957786,-1647814884,-391806571,-194254219,1946534031,2061898196,1897995018,588971341,352669175,-1839032311,473524534,205377775,1822616731,-216846451,1976811540,534308289,-394634099,-296084146,338151609,-442434152,-1799953040,-273797684,-81389361,-846100218,-405175439,-1871396941,-2021584074,2079192271,1428285436,-1777576116,-1003431434,1917676910,271078025,-296917599,-86980754,-948535701,1526863008,421525552,1712674953,-1376745718,-2012015604,969170318,1760193852,404429044,2117784783,2008003030,636886332,-749011783,952421648,-2057524966,-82177248,974818011,-267496981,1788707066,-2127349191,2108971576,386815503,877711009,-307532870,-1297982032,1856685456,1004038806,-1926000327,1972019032,-1584800975,425320790,1906509285,130920222,-1775998833,-669151292,-974643404,1891805082,372936868,736403266,-437209141,-1957274973,-263711163,1319833392,1720123931,1756860090,1373342507,1205723053,-668277191,-2137922015,-578382575,332480163,358206696,1813950534,1329271625,304629033,60874357,428372413,1680853450,-1417242123,228072136,-1124193619,233066545,1953626141,1185481914,388963182,1719811,-591769277,1297983530,1871650768,-452950851,1231861637,126440372,1927449472,-202779832,-366274297,-1798887238,-1487392567,-1178796809,-907988084,-437037710,1202311445,1434088557,-1972285128,1802325696,-1756467285,1521323419,-1808057130,2016803827,-947746070,948223041,-1208379296,-1777958723,-954590681,1289835535,366396746,-1270794459,-1142147155,-293607238,1825458529,1778276244,1105322279,-1768471546,319044474,918839872,-2015862065,-1062784018,1849423311,-2002724240,1234704738,-156300608,-2046555412,287218094,2084304814,153636189,-1115008193,109283283,2008173703,1179432667,-1395923738,731551302,-1771030200,1466467259,-691534612,-1405067511,700675004,-1934556748,1797620658,1586049771,-1643078078,257382921,-2108374267,-930656848,-1537504372,-1624992147,1361830672,1891498601,1237810344,855037814,1249546847,1718774612,1574057214,-1729378585,725089827,1818935225,-1918495408,-1678284099,48021323,413341560,210410899,-822865196,-1228129741,-122655176,-477827527,-687681775,-1456629855,396962396,-1601316103,1578847703,-273309706,928049669,-966171542,1222145798,992142098,758295549,-1574069161,-335136560,395270876,1505748880,1120785447,-837088138,1879046480,712214189,1099368370,1625655914,-618132857,-1371343830,-1475759373,-1297399140,-2069323471,1237326653,1810199890,-1786937519,661160253,-1974239867,900008781,-1283732575,-191958457,-261270839,-407564701,1453908183,926148343,1249507032,191989979,-739746468,-382716796,-388359561,-183137766,-1834180491,-2071544228,602586961,771417206,-2012619530,-1779074785,2065191750,783108584,-329978859,843003393,1642653540,757836185,1307575388,27797818,-447218941,-736128490,1238778037,529828445,-1923966596,2113026785,-1908090286,608449886,-1542510343,1632307607,1152374211,31558143,-355323179,-589053501,-982679067,1040091716,144018910,-178139137,-1683455496,1889193279,-466069723,1516779860,-1109196387,1767864335,10287586,53454015,276465221,-754523473,-1403563438,179945619,304258716,1321543122,1915886053,164596519,-40745177,779622590,1962596721,-1755953770,2136423414,-475052700,-1773417010,-2038093763,850213510,825242970,1192219074,-877763700,508753366,793164149,1737208502,-211664910,-335540341,1815326361,-649981336,-2037988510,1708757236,429906076,1038697797,-2094123180,1211554124,-1251048944,1522855865,-246433148,2080644982,701943270,-1415300432,-1618217637,-1250828323,-1926199593,1240907307,1686664746,258859640,-758194112,-964294082,-2067043637,-1524615778,544228754,1298906275,377066625,175722143,1821542750,-1653235629,1987835175,1794791341,300247960,-1577536379,-374561756,-271719304,-1364811486,-128883971,654278602,-78503913,1262847964,-1514710861,-516958168,-822605449,1869701974,454452425,-336709653,781113629,-447255555,1600317907,-902124812,-475803188,884270545,-2117457826,1052407642,1133495309,933613615,631116913,-1477484908,2165941,1449700966,1172783750,368564185,412696929,-2019030901,-246472014,-622783836,33103568,321046288,1950395821,1149980607,604748535,-1427529007,277045912,-692223383,-2093083318,1757419733,-1836492806,-2029129813,1202215114,-1215003703,1514780847,-1663598876,528346790,900308593,1409217653,-873180734,3737621,-142614300,453253477,926646737,295081257,-1434593673,1184011949,-1340890821,1047778021,1208097046,-1188614658,-1558570109,1673616854,-954775378,746408501,821935556,1617885630,1849634326,1516158492,-1240808322,-438543949,-760690211,-2096215142,1592076799); -/*FRC*/Random.twister.import_mti(324); void (makeScript(14)); -/*FRC*/count=658; tryItOut("\"use strict\"; mathy0 = (function(x, y) { return ( + Math.imul(( + (( ~ (Math.cosh(((Math.min(0, x) | 0) >>> (y | 0))) | 0)) | 0)), ( + ((( + ( + (Math.acos(Math.expm1(y)) >>> 0))) >>> 0) < (Math.hypot(((((y >>> 0) <= ( + (( + (x & ( + y))) << x))) | 0) >>> 0), y) >>> 0))))); }); "); -/*FRC*/Random.twister.import_mti(509); void (makeScript(14)); -/*FRC*/count=659; tryItOut("mathy3 = (function(x, y) { return ( + Math.cbrt(Math.fround(Math.tanh(Math.fround(Math.min(Math.hypot((y >>> x), x), y)))))); }); testMathyFunction(mathy3, [Number.MAX_VALUE, -0x080000001, 1/0, -0x0ffffffff, 0x100000001, 0/0, Math.PI, -1/0, 0x100000000, 42, -0, Number.MIN_VALUE, 1, 0x080000000, -Number.MAX_VALUE, -0x080000000, -0x100000000, 0, 0x100000001, 0x080000001, 0x07fffffff, -Number.MIN_VALUE, 0x0ffffffff, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(618); void (makeScript(14)); -/*FRC*/count=660; tryItOut("e2.has(f0);"); -/*FRC*/Random.twister.import_mta(-419364590,-1608248020,4779068,1431100345,1514902166,945909621,-690019620,745979021,907187003,-1793531716,782114885,1358705597,1208711557,-399115604,1052570893,26508286,1740077747,1131268369,28257109,664508389,-66675380,829448585,1660503745,1389790170,-1295753380,572439689,1304249397,1140131814,-1571506059,1741321016,-1157469185,1712084316,755609837,1894159677,-372472864,-202128735,-1783179564,102421328,-1013727198,793131397,1275537403,-185272784,1895920673,543700269,-41806430,1734709389,1866450363,93642779,1435543315,-552476118,271342576,-1774824186,-699770260,85533027,1495728638,15905780,-1831666714,-1831673954,968777138,102733299,2027224325,84261015,1991333495,1476082747,-1360034796,1912145325,740128244,-1326436143,-515473453,-2113184703,716939746,-127921578,1564643054,1753076457,-1556676166,-280881333,-859374447,-1014893191,-191309182,-1770240602,-1273735129,-324633535,-1079263116,-1961632105,-1405642915,1200585026,-1909465327,1438549432,24122911,2018851592,202110453,-943267807,1380615242,-1703709916,476562982,1672158776,1785463975,-129424029,715772155,1093354296,1411262981,1114004787,-955534326,-1239775041,755086397,-210081949,383725404,-1686143523,2132289199,-1217938285,-2026750361,-1442421211,-174539438,774000435,-731942674,1137924347,-1067597378,1162198204,908408623,-137654983,2063004898,-1978688700,1669894419,-1044486312,-1739506372,-1479296156,1414236080,-1774264022,1743472725,-320721900,-450201264,607330062,407827394,823864185,-623046708,-1828906276,-434072713,744406171,-1397184223,-1548305137,2005126322,-1643175791,-1251758485,-2034642200,-11130666,576577106,1912540265,1086019622,304623485,682906490,1184066806,1968591184,1233948337,-763071014,-1971018748,-660041665,-1332892863,659800236,1557636849,-167342566,149129275,1517335676,30591043,1379533535,-1097077166,-792481757,-670184362,-1275549000,564711315,1125232415,54633386,-477078474,1740040179,-2053522967,-143267257,1295041452,1576356437,-1173215974,-1402314447,1711283062,359974268,-1324705824,-1725081999,2185592,-1160941203,777516164,1254817777,163744603,-1257058396,-1194055383,-21872167,555987713,936639632,223090535,-1503720714,1700652520,1944100876,772465801,-207542113,-1091639121,-718829303,831265959,-1108938184,1096211514,-833245951,-707051096,-1749672039,353764143,-2022401140,-1137023592,-1028653510,-2085286881,-489042581,2102279273,-775525824,1259146363,-906796256,-1054393824,-742328287,-2090555098,1397499644,1657680793,1049561607,1985367959,1116812550,-854393087,-1041010345,1213777792,10826293,2057374774,-1012393594,-142734321,1330405842,96761439,514245185,2085216643,-489687462,-905601795,909440830,-1561392926,956765610,2105310358,-446025402,1294436685,1215029943,1672955822,1589453138,1830421719,-1621204090,529606006,-1469772752,-549104372,781271185,-406890322,1426932835,-430099853,992501247,-1888002719,1778506022,-1961072043,1261522390,-80245378,1129712674,-908808100,78940125,-1105278542,-347878345,-318193711,-2118502835,-393192990,1588729905,1863159418,-465221886,1508536422,1556467395,583386587,-1023551647,-1883429965,-319612246,1602619179,1236652488,-117558317,51668091,13139838,-19130244,1531597352,2122237502,1942598999,284686134,-582894259,-1957125707,1338195945,380404277,-2041166810,-2069104756,1352862361,955056968,-1616485855,555766169,-1433832263,-1197605529,-1449400370,-649244824,1918092778,1402824498,1816135015,61918631,-2046575422,1617789028,-110637808,207911710,1942818714,-457230957,-1384424116,1579747343,-1737115199,-822041738,1789207008,-268341303,-104696117,1741527097,530804732,1524259832,1402531075,341055807,1623868582,-1953502333,-1849105247,647415029,-1242423629,1288098026,-1632354604,-163393537,1667860540,164690647,-1958326083,-1116069128,1646293825,-1983438000,819090349,903774979,106201199,-1185487561,1059445606,1336860185,-1257431966,859121200,231276735,1700794155,1467464409,2017863444,-1826971841,-296638759,1328133776,215638162,129552802,49767980,-512093080,1090458559,588871330,1914252815,-1840102629,-1394548469,2075919622,-1416419877,1995561495,23538579,-844290304,-2006265118,-525408952,-1920872884,233494996,154786852,-1093168334,341500408,342929319,1562808995,-253803172,2052988529,-1758489750,1252435079,-288947492,-1970973191,1712804008,1338388772,-41817318,-756731826,295232384,-431665780,854326761,2094209184,736542206,475070445,1999643477,-1255432176,-178533870,-1686683547,252717078,2094899744,1087172249,1207374895,-1959928485,-1510341521,-1350787838,2005687829,-406916065,-280082731,-479079608,-2033166309,1536005036,588639053,-559854866,868648205,-983885104,-2116225617,-1022241844,-216824761,-764562927,-1722947123,283015851,2058611663,711883135,1168008753,1133667641,-1701424875,-1535094134,1944224009,-1938675641,-355402528,1074679673,1956931219,1575199350,526889449,194449796,-691259818,130141827,1601547364,596764545,1768373233,277155295,-2129971,-184905428,-675448631,-536392306,-1245765534,1051018693,-101815253,-2095921639,546139319,-160242320,1621835180,1184226173,518058833,-1132504844,1594778484,-1350044448,-1162467351,-212047308,2028169244,1773429756,84959938,-1257926881,373696648,523003615,1556572428,815643520,1159636301,1042643075,794715705,1852118501,-1534411431,-214648695,-95472754,-220428057,-1704766231,1692406699,1097752660,-1406154017,2096955948,1665466477,117083886,-31858898,-1956040999,-1127125522,1657819577,1783604695,327354581,-637223381,1270631670,360555787,360767690,228968595,-1719903397,1263693850,1894238877,645637377,-1079224899,-37239722,1688644785,-1678845191,1748882132,400566308,-124788454,-1683273182,-1759168226,-814419381,2052142829,110930723,1985339318,819051808,964255879,299151206,-1269090885,1390399242,814404838,1645952844,-779202301,212120520,1314137155,1924656787,-1662974674,1891709071,1745147867,1190071539,-1957886766,888294593,2084847307,2066588246,1980437626,616472738,1075314431,1412142606,1160213831,1626589368,1567537528,855481003,-1453330471,-1277618800,-503745275,2022384131,-1691215389,-912561927,2051077005,1668626559,1649906732,2046133588,-1928059687,271280645,1223704429,-1074111911,15160038,-1326073365,90736456,6092549,-513865547,-656248687,-1035292904,-666545583,843814398,940381102,-926249699,-9879839,-1369766457,-861156834,-1586318986,-1994246273,1871669248,-1928212006,-2071013209,848388048,751989804,-1766397796,-1640412335,298223475,-1640342644,-266068156,-844427709,14792269,-26601875,-1364383311,1186518296,-1343060325,-1124743518,-1980101752,1829139935,146711283,-1857091767,864429226,2134572974,-1515959562,-1590541812,-934868546,-197973204,-179615973,-1010395022,-942398031,1668455087,1031144617,672198965,-802297615,-2056756416,-1060086379,-1763319920,-857380632,2095652536,-2145393160,372175656,-1936196310,-892989865,-1776893178,-1366102602,1042718671,-569749683,500376971,166083938,-697159341,99904226,1375487918,820240321,-139041813,-2022901916,-190020131,52555314,-1460158228); -/*FRC*/Random.twister.import_mti(7); void (makeScript(14)); -/*FRC*/count=661; tryItOut("mathy2 = (function(x, y) { return mathy1(Math.sqrt(( + Math.min((Math.imul((y * Math.fround(x)), 0) | 0), ((x === ((( + ( ~ x)) <= Math.min(x, ikmigy)) | 0)) | 0)))), Math.fround((Math.tan((( + (( + Number.MAX_VALUE) ? ( + y) : ( + y))) | 0)) | 0))); }); "); -/*FRC*/Random.twister.import_mti(197); void (makeScript(14)); -/*FRC*/count=662; tryItOut("mathy3 = (function(x, y) { return ( ~ (Math.max((((Math.min(x, y) | 0) , ( ! ( + (mathy1((mathy0(y, Math.pow(y, 0x07fffffff)) | 0), y) >>> 0)))) | 0), (( + Math.pow(( + ( + ( + (Math.hypot((-1/0 >>> 0), (Math.atan2(-1/0, x) >>> 0)) >>> 0)))), ( + Math.fround(Math.ceil(Math.pow(1/0, (y % (Math.atan2((y | 0), (y | 0)) | 0)))))))) | 0)) | 0)); }); "); -/*FRC*/Random.twister.import_mti(443); void (makeScript(14)); -/*FRC*/count=663; tryItOut("\"use strict\"; mathy3 = (function(x, y) { return Math.atan2(Math.asinh(( + ( + ( + y)))), (( + Math.tan(( + ( - (((x < ( + (( + x) ** ( + y)))) - (x | 0)) | 0))))) >>> 0)); }); testMathyFunction(mathy3, [-0, -0x080000001, Math.PI, 42, -1/0, -Number.MAX_VALUE, -0x0ffffffff, -0x07fffffff, -Number.MIN_VALUE, 1, 0, -0x100000000, 0x100000001, 0/0, 0x080000001, 0x0ffffffff, Number.MIN_VALUE, 0x100000001, Number.MAX_VALUE, 1/0, 0x07fffffff, 0x080000000, -0x080000000, 0x100000000]); "); -/*FRC*/Random.twister.import_mti(590); void (makeScript(14)); -/*FRC*/count=664; tryItOut("testMathyFunction(mathy4, [0x0ffffffff, 0x080000000, 0, 42, 0x080000001, 0/0, -0x080000000, -0, 1, Math.PI, -0x100000000, 0x07fffffff, 1/0, -0x07fffffff, -Number.MAX_VALUE, 0x100000000, Number.MAX_VALUE, Number.MIN_VALUE, -1/0, 0x100000001, -0x080000001, 0x100000001, -0x0ffffffff, -Number.MIN_VALUE]); "); -/*FRC*/Random.twister.import_mti(622); void (makeScript(14)); -/*FRC*/count=665; tryItOut("\"use strict\"; h0 + '';"); -/*FRC*/Random.twister.import_mta(1593975424,1023005758,-211668070,1792204132,236313150,-1902799615,1615819675,-175265961,-315456447,554296872,1376221769,1004360710,1872195322,-448585452,-563382511,-1726642037,2112179847,402903258,1238673633,-854537503,333263370,825883250,968178502,1674691681,-496396316,-95914764,1651041994,313834992,-681219306,-143981527,-9174295,1700566089,-512379592,1078077283,-1122831367,1438440067,1218082860,-150612409,-915774818,-528576698,434871449,-1997590210,-1715886186,-1054968548,507570613,2032806603,2076544348,109036340,288208080,-1309130285,-2012615526,1269318017,771147038,1278786899,1189905031,394890914,-183093445,64048557,897617606,534047156,1758856864,-625773576,-616477378,308781256,1425128726,4756082,-1638085016,-1251154374,-393173633,272856508,34959784,1107239246,-1017951154,-1257161340,496829427,86310169,169132676,-533775960,803090808,-2106786664,1131693088,589881878,-1077649415,-907414113,-1646369905,360083854,-703713486,-77534615,1449474131,-1936833808,1626308324,580456147,407116953,1538458585,1013991311,893577687,-293711244,-1128558017,116262045,212594784,1174166032,1193506484,1508585081,-1481263083,-1219122358,-1277135180,253510675,1906416278,1305451741,-1597990655,-896063250,211386655,-20436378,324458736,-382356540,-1804216988,813502804,-1299120210,-1057601265,-1393218702,161709674,-1499931627,1382604095,-792093776,589884733,35722243,1307606118,1638928423,42162891,248578659,691285457,2049731995,-1522825791,1836677401,492116832,-1354789853,-1345051094,-767926985,-97618701,-761394816,634795271,574624495,1003998071,-459731576,-1732933680,-608713370,1126732908,-229952691,1840229609,-1369599326,713048749,-180434710,-1766301516,1168441572,1168720171,-1004084681,1408571219,1446800146,-471779428,523492314,-176355217,-1414905600,-2011651554,-678987212,234903087,-1034034196,-1789419710,1756259936,832720943,1848621525,-1126563903,1851595649,-1454033925,-832556592,-265385654,701193892,214930942,1359469515,-2094787841,-955159299,409271741,737414538,-289569523,-1026105999,-119964455,9963909,336854778,2005864973,-841218376,1998493562,-98611723,1691550182,973795738,-1306671241,-1159070902,-842826966,2068219264,1662958818,28041529,-1863717132,-55002587,920881193,-1333360916,994706719,-1438778047,1144414339,526834080,2136167294,-570239180,2004421685,1413860346,581064765,1907977709,-2039359338,-1029134035,-84672803,2101393563,-116461139,-1748998720,1817344412,-107745603,-1230181859,1435890943,-1507562009,1261259394,-86972858,-858021076,-967308475,27873829,-759808167,-2006619204,1773398743,360652529,-166419868,1386342217,-598376596,-586966903,152895958,715837559,857007151,-604168353,-320966734,1720646898,-1059582205,702051085,1720334408,1653962837,477234121,2129750217,763870558,208891623,740919155,-912795485,-1847135196,-1198353386,335148342,1775770182,-1972048262,-103149124,-2064837677,2111431132,-591792664,1901494957,-1815573731,-401952098,633549914,267542641,-1069664416,-56156721,1877482321,-157765087,744639028,366940920,-860890398,-1911189242,-1453592641,1865310421,-26189361,-1117523253,153890298,-380693403,-1636958107,401453341,-898090235,1853121721,180350425,-1086815296,1622015291,1830493569,132492603,-326201373,-961590061,56864865,-603376210,1144378281,-186243877,-2036796301,-879892037,-843895859,102040098,-505622941,1899734087,2081234924,601518365,1325894596,-1223760012,-2123554055,859997202,530252958,-101293450,-267423150,914966937,1137434408,538057706,1850902102,837118440,-102968832,-1041794593,-948927127,-223715238,1415754791,287140467,-2054803575,2103242292,-1931562900,-1709096573,-582536465,-1883273035,-992818894,1065895436,-1460689025,1434221674,-1034636630,-1828943449,-318111209,326274465,1222119550,-831211194,-839378922,2100288312,-1988876264,1821798784,-874039081,-1901932921,-1474924129,-1720919529,857283570,-1575237344,338407846,1850461877,1078748400,-855077234,1706413899,1268599855,1651276022,66644445,1047267415,-800910127,1805702858,88056345,-44505013,-768746694,-756969824,588579864,810156259,1670730213,-196568576,1642290294,1377263691,2098670673,-1569955486,-1675007550,-992211713,151381136,1635505217,-634104473,-1775095796,-827851446,-22478497,1793294888,1925611914,-1713153272,-1221768605,1947602881,1761386143,-1970032709,1476373018,-966807895,1809256235,-1234096562,-1032575797,-1725916922,1624064665,-1883091126,302220137,-451854142,698854878,-2101924143,-684467182,329648435,1392406434,1004223394,2121601061,-301921749,-70250213,1837859146,-1230404263,-1039900305,1177732188,1715454068,-309954554,942837376,573932781,-839568142,369621995,761099332,-2027880787,800131532,-1246458772,-1638157150,1042434839,19822733,1963129193,-284877355,828282279,-514715294,265832968,-1982806955,-806609078,333186426,364631076,1015453034,1107159105,872465035,-1514470176,-239599354,-4632790,-100735267,-1276613107,-681680172,-66285568,813606294,-1963960294,664742058,1062527888,843047690,-1261196721,819849273,-1919575899,633367081,476459142,-581598219,-454079940,-1554214250,-778309323,-973410034,-1424487869,-199958606,1567218473,402075536,1973343540,428012301,1254882524,-211801073,290708502,-1859309042,-1257314127,1432001692,1122260383,-305982847,541778840,1426057930,-2031301404,-1230216450,-150291773,1581668579,-1567037202,1913516017,-2071742566,-890593324,-1360389197,1680782245,1301365697,-2118614459,643533902,1762862345,820509721,403163047,1326421938,2073490120,202563467,2109485036,1080691799,-1366739488,1242256703,2054784974,285997434,499340454,-1197631593,1640102802,-950022416,-1303223925,-460436818,616365146,12757045,1497618786,-1821718348,-765068354,-2046370059,-1839615615,-1030591306,-313438533,1674578524,-1484920397,1369465501,-590051873,1102574815,1387015453,1727793989,219362038,1029774646,-381744997,1318654589,-2093058534,150765316,1788445815,998494985,-623295394,1667560470,-988917684,164608538,-191069768,-2022243544,-1344635323,-1288373864,-1841544275,-1608849218,435910671,-742102969,-681942266,-573104311,-1971695793,-1722333944,-923330538,-48383115,1492264922,599221639,-384689330,-1746339968,-973764870,-64060898,-831851576,50825950,1960838762,2059796514,-1510498626,-895328261,-238391936,1232795069,2134459643,1950393864,590295083,1965516974,409028805,334303782,-1170232298,2074555349,1379660948,903798376,-577895743,-2047231287,2114086120,1216817521,1006908980,-636893566,-336165288,-1221352116,-428744935,56011401,115975623,-982728771,1008114599,1191570457,-773356953,1293219191,-99621455,1560064076,-1027237988,-1056965055,-2106019930,1194754247,1246991733,-2143796553,-1783900615,-1694368143,-1163485757,-89874726,795650343,758590821,-2039988897,-261784955,705248137,-1136205549,-398016688,-827846730,-1245808437,1822981309,-1901250946,-756532597,-530301768,-1307709191,-554628634,1567788449,1393341611,1953367775,690829914,-1634792039,1124957172,1005787180,595278123,1822211451,1402172528,-244670284,1176943774); -/*FRC*/Random.twister.import_mti(7); void (makeScript(14)); -/*FRC*/count=666; tryItOut("\"use strict\"; for (var p in v0) { /*ADP-1*/Object.defineProperty(a1, 3, ({configurable: z, enumerable: \"\\u43FA\"})); }function x(x)xArray.prototype.push.call(a2, 1e+81 instanceof \"\" , i2);"); -/*FRC*/Random.twister.import_mti(134); void (makeScript(14)); -/*FRC*/count=667; tryItOut("mathy0 = (function(x, y) { return (Math.sin((Math.fround(Math.trunc(Math.atan2((y !== Math.pow(y, (Math.atan2((x | 0), y) | 0))), Math.fround(Math.cosh(( + (y ? y : -Number.MIN_VALUE))))))) | 0)) | 0); }); "); -/*FRC*/Random.twister.import_mti(257); void (makeScript(14)); -/*FRC*/count=668; tryItOut("/*RXUB*/var r = new RegExp(\"((?!(?:(?=.[^]\\u73eb){0}))){4,}|(?:(?:(?:[^\\\\t-\\\\u0091\\\\s])[^]|^{1}{2,3}))(?=[^])((\\\\b$|\\\\d{1,3}|(?=[^]$|\\\\f)?))\", \"gm\"); var s = \"\"; print(uneval(r.exec(s))); "); -/*FRC*/Random.twister.import_mta(969799090,-2100805613,540269689,1808233372,1584418611,520606260,1666130606,718341800,-1870940453,-1242132845,1902555837,-1269821291,1553747668,1254722371,-1766906764,-1845209203,-187598538,-1389220829,2088718929,1841129514,667543905,1350704932,1524930875,617635935,-1927241331,-113889525,687170130,-1433757816,1485013683,-248791371,-1253527390,165724068,-1743922367,93870645,-2093210340,-1565482947,1019035287,1086224162,-453230184,-1648761392,-1181584507,1132175845,1363149358,413124205,1685136640,-1153068546,-221769322,1064598564,-1542533779,-1675054392,1395048381,-675600969,-195115063,-706688179,2134561522,1652542201,1751816845,1122166638,1155853060,877727393,402465945,314021480,543463327,613269095,1039953864,2127923092,1955363193,933744359,-234951293,1763645186,-469227708,-1280062718,1464351932,-657096144,-635096127,580150132,1913150157,-1849241752,-1888428440,944269755,444009677,-1086899343,657862802,1178805658,-543432284,-1671955296,-1790076187,1572382412,471016281,-1875161823,1878722661,-309096133,-1228642166,-1554308574,-932168929,1021082274,-26459234,1509473378,11998773,73231416,-1879503,1131220965,1704503752,1330781214,-719046765,-1741412877,-803679299,-704315540,878024243,416908954,-1231172687,549100233,-518709038,-1332513979,2064888880,1075858176,1251249533,-2063752622,290682033,1839322991,-576228823,-1792166857,-693644608,516430710,-1793314046,396369488,82746042,-985386507,-7958163,1285691556,-891569790,531701145,1280729903,-1502379857,1235183760,-1094399954,-393458268,418619093,459525292,184889401,-114285558,1448486804,1353857113,-36944637,-61263529,-626767598,1468812497,-1200826867,475848983,-130470958,1057640792,1421282554,336943698,842986740,1008069131,1191246925,-170201840,-486552244,1132431622,210134119,1296416056,-9839351,-981835376,-1552484290,-742295676,-831736678,-772289532,-1512406752,491761946,827549605,-963471099,1745388745,1085556711,1497680349,-413761871,-874040574,1478947754,1991612564,-881306273,-693862677,1566184899,2144090835,1058901248,-294512516,-733091346,-89641634,1414483495,-1344750552,-127017929,1831004227,-101067122,326637972,1990548540,1956265658,-1053242765,1083708810,-1896940505,1709882080,1510399469,202694601,-1816606213,1049739892,1665297046,-1125733409,-519441958,-2112253299,-1624457370,-1652300554,1708967151,56637682,-2099147749,1870389528,-1244609428,431545204,-1532786009,1247736453,-1228728856,1944642605,-1650057078,351242604,-1623632877,-1369271464,-743546155,998474704,-1819622844,-454427475,-1854478492,379928804,180230627,-1524003038,818957489,-783229970,1103906598,1048218759,-1768247019,1751450144,-1674770601,-791422314,-1000069294,712404112,-591726163,1911686844,-1811120786,-125732730,-260179284,-913831481,1695780877,2015301329,-1655709941,-2081861595,-583245892,-347973246,-465753192,-663371818,-1324678963,1856750844,-1100601971,-1487089966,65803481,1597380711,-873908652,-1181600353,-738770911,1967843670,251991043,2027512899,-1865366035,679396098,-793130512,-163444098,387547845,-1243927491,1402479096,-805589270,-925452993,-1887624336,-1712018938,-439191287,-1945699602,1430638573,1323298280,-610384836,683198967,-1696312736,1747223924,-1493501837,-1774349738,48540003,1785860613,-340743740,-586487851,-788242552,-826330041,1530410779,906227708,1284724591,1814365059,757280463,636343819,1548018845,2037180248,111940069,839417488,-1229880592,-761148178,1530505932,-680863938,87949324,28786136,982972366,33232865,2111634861,743165501,-1291579197,-1385357141,-1716636629,-448607204,2118321379,715404671,580844783,146584732,1434788603,184938665,-598067130,1547376457,-282134895,-213378731,-693036152,-380386007,1589459832,706092508,-1608834647,2026657102,1054765863,-332961299,1557665283,-197134921,-1788389220,-703181076,-1590368744,1683195844,1237851781,968574010,-315971542,878992450,1533453068,-36179395,-2116963479,-1752870244,-15000360,-893773514,-11555263,-1018898471,-1715013342,1697579420,1695680118,-803111697,-211236225,-2143887052,-1570291989,-1345447748,-803466921,1220366502,242239730,-514806980,-806417889,-2098864056,-1050531360,-1253114382,1065258105,-1280325459,-495333396,-1173095206,82079496,1661377940,-2130553699,1004092584,736678463,-2103599357,1905575354,701064965,-312059489,-414438741,-1637805209,-1573446045,719720266,1761106242,-546696147,1342521467,790555118,-691990503,-1879590959,-797756971,413231516,-979170746,-1240519573,445740132,-1295959933,1642598965,-1447213338,-2044297031,-1759373933,-1085220180,-620421962,2132861393,527503378,-1628626158,307595702,-2099238435,1091925543,1104840234,2025725375,-365308396,-1276258052,995900469,1995767215,-1592692688,698009663,1900784991,-1371335650,-1441825760,-1464838830,1918479528,249337785,-964874783,437161244,-798128590,-302645332,-2087370715,-883759762,-2003774421,1618997033,965240861,1251917294,1356865764,-311764664,1617178177,-827847937,-119661122,1710184334,105180761,-1876332524,1053455408,-443812043,1574589851,2042271544,1537697848,131927919,-1110720262,368240261,-322084311,701951663,-2113250178,-2105297498,529510221,1724237600,-2098904573,775600248,1125644926,-1930721721,838720921,982341060,1831334145,682980047,-911613919,-1056524366,1084294108,-2076858541,-21128046,506666464,-177583601,428966979,1295623310,380151421,-160996475,-108163992,-2100509694,376096682,-1440841970,363948882,-300033518,2137546665,-1474440833,2128846663,1828562708,1130698274,1388744306,461235847,-1933784431,-35673146,539223533,186399322,-621097800,1513043196,618151172,-586955757,1407401892,-102299562,1973868220,-1688907277,316879842,-1890323475,833785808,1399911503,1476136336,2049633159,1079220420,620384157,-1768490752,1437581624,278829082,1203357037,-1526719725,1876981689,1796506049,-745507425,-329810434,-20856315,-1414752166,1746804189,-1834560170,-295640130,-742264254,2134716016,1063533366,2081237706,-157699738,-912910813,1633578392,1068712730,1406507527,800897097,-474095602,-1991536160,-344390083,-1781678819,2135126764,-1432547964,2103627462,-229820644,-216511577,-158478314,-1227315916,2131719176,1804765547,786409271,-1824631446,187626307,1853041479,256296528,1202000374,-574091993,-2029115678,-1809302712,-1043358304,1059034245,-1035273193,471340367,-2009850351,-1669615210,341424457,1167082989,-374971803,-1889608384,502853620,1949591532,-329083064,846994245,-1881066958,1067504186,-851857519,-872632353,-1629899314,1465677561,-261383302,960310081,603885778,1408641640,1372320861,1948377302,-1063057140,-1648785149,-2142768033,-2018702984,-1109092975,251689086,-370838513,1608850329,1960218830,2044511683,-1543109274,-401243157,-399549568,1764282150,512865123,1896437170,-1905058896,-1328410053,365725510,631959360,337227002,-1031964199,-1224846811,-640488049,-777214265,-1911230022,741018783,1244134362,-2061861243,-1447817493,1460315848,-1162299383,316690654,-540698066,-546662674,-1884650508,-880367717,-1490260453,-2073952075,-1702336122,-844274647,224108248,-2089422602,108498621); -/*FRC*/Random.twister.import_mti(296); void (makeScript(14)); -/*FRC*/count=669; tryItOut("v0 = (this.v2 instanceof p1);"); -/*FRC*/Random.twister.import_mti(311); void (makeScript(14)); -/*FRC*/count=670; tryItOut("\"use strict\"; mathy5 = (function(x, y) { return (Math.atan2((Math.log(Math.sinh(Math.fround(Math.pow(Math.fround((Math.fround(mathy2(Math.fround(y), Math.fround(y))) , Math.fround((( ! (x >>> 0)) >>> 0)))), y)))) | 0), (Math.acosh(Math.abs(Math.fround(((( ~ Number.MAX_VALUE) ^ (mathy2(x, y) >>> 0)) >>> 0)))) | 0)) | 0); }); testMathyFunction(mathy5, [(new Number(-0)), [], true, (new Boolean(true)), 0.1, NaN, false, '0', '', (new Number(0)), (new String('')), undefined, (function(){return 0;}), '\\0', -0, 0, /0/, (new Boolean(false)), objectEmulatingUndefined(), 1, '/0/', ({toString:function(){return '0';}}), null, ({valueOf:function(){return '0';}}), ({valueOf:function(){return 0;}}), [0]]); "); -/*FRC*/Random.twister.import_mti(506); void (makeScript(14)); -/*FRC*/count=671; tryItOut("\"use strict\"; let a = [,,z1];m2 = new WeakMap;"); -/*FRC*/Random.twister.import_mti(550); void (makeScript(14)); -/*FRC*/count=672; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return Math.cbrt(Math.fround(Math.max(Math.fround((Math.expm1(x) === Math.fround(( - ( + y))))), (Math.acosh((Math.max(Math.fround(Math.trunc(( - ( + y)))), (([,] != ( + x)) | 0)) | 0)) | 0)))); }); testMathyFunction(mathy4, [(new Number(0)), [], '', (new Boolean(true)), /0/, (new Number(-0)), [0], null, NaN, ({valueOf:function(){return '0';}}), '/0/', (new Boolean(false)), false, (function(){return 0;}), '0', true, 0.1, 1, ({toString:function(){return '0';}}), ({valueOf:function(){return 0;}}), (new String('')), -0, '\\0', objectEmulatingUndefined(), undefined, 0]); "); -/*FRC*/Random.twister.import_mta(716023893,-1460056874,-1671495896,806754303,-1734214519,-1896395781,-831676446,-300578205,-595400828,2136394387,-1854590685,-324137289,-42400935,1250759696,-1464564058,-1873712497,2088533554,-596957758,1076513210,738014303,31180717,-986623715,623088878,899128377,1294201352,639835521,463068285,859069543,-1147936103,-1966481821,-1459249026,379264346,278296747,-1995520347,-1473310744,-18987127,1791067775,1654521896,-1548342368,-1515870372,907897554,-797041495,-257424281,880573657,-1920222997,1202617595,-1171142361,-690650126,934202972,-1422096583,-1257755285,1592529857,-435538948,-1823470768,-2115912948,792175079,-1544370671,1040046799,-437915473,269705360,660697932,-903020178,128313771,788785789,99063310,-831947422,-1435622045,1751000639,-1249297357,1923420286,-571718958,-1793490228,844750072,24142640,1222358521,-315279049,508281289,-1310782287,1017186410,385872571,-1862669619,-108697785,915470751,-1043322176,826515961,2075372754,272616481,-67336601,-764411795,-1137460577,-1262707003,-673251628,-1401799977,-585938755,1433536267,-439554697,919825101,-1114962239,-550669809,-182835613,22626171,1198162520,-1124311044,-1585866508,1514230219,-1061792047,947031033,-1797360042,1984309450,-1038758461,-307252698,-1508087447,-1796290491,1830240770,1739186413,423816562,1839113872,-1162507450,2085105399,1535931445,761243841,-1057001158,662311014,-1742156585,-1515131754,-776552673,-996702635,-642792609,442246808,-738955865,524691504,-562172720,-1249758318,924462671,819911774,-1745107236,1547365973,-423042965,155686366,1138450665,-1045029298,-869047755,1436788034,339502035,-1679821665,1142305667,-97407023,-1129035457,314782430,-860127802,561345854,1685685870,374979626,-1062775764,1732297694,-1109176214,-447226386,-1603249885,-1605101975,-454548853,-1163637996,-360108327,-843002487,2109276811,581312416,-2124577689,-575431216,1398749049,-174758687,1445161749,-546248194,917741854,-1979054581,1738154006,-1374734754,-221590501,1812380339,1289683210,-882400021,-732222740,-182941730,1313157853,1125706984,-1434059269,-521298004,1936253843,-1874765972,1490733909,-526795648,-719741112,374937427,1334066896,1133632158,496160896,-2007398098,1984992588,467505750,-1432720054,-301233527,514314130,-275057919,611168781,-1563358608,1688032279,444137536,-110621290,-1760354316,977957999,-1885016637,-1269597619,1033505622,-1611522893,-446143663,-598486204,1184854420,159504938,1060722919,-776370517,-975354046,1561509197,-266524745,1958576384,-951474066,-999815925,-433598383,-875658428,1294282447,-1225124741,-1167226041,1564371375,415136264,-129507558,146980199,1546155959,-1708717197,1268569328,390014936,-213441910,-1181402881,1244450640,846468942,-1565345775,-334375220,71467876,564630014,-1414844061,-1896217624,-1770743561,499993040,1270725424,1077326072,1060988868,1243202154,-636162876,1147256345,1034436736,-647513846,1912281805,-1610047050,895673217,1288662197,1490820903,-2072300766,-196363103,-939916586,852949385,-241514787,507612714,-1419830890,573339098,-1214686696,-465065961,1616096142,1196565351,-1855253942,2069142367,1088228194,-217362404,-1387903768,-1050295032,-1096865458,1286958888,574982359,-673151829,-1215818199,-1359267452,-932608770,-1957639535,-698996,-265803106,1199687097,-72303374,989713968,-1318071651,-685818537,445844781,-46385210,1444026632,573784157,250589012,-1691428067,1373604529,-160565169,1998268350,-599533097,387212277,1415639741,-1876790239,-456254304,-1352285520,1714873545,-1100024264,-80145300,-545133397,774057133,-1596889501,1511688241,954610853,1603874940,-1473486695,1859741983,-906473600,-874385068,-1043967562,320130390,1065471610,-1639797849,-319263440,674504676,-1443409646,679262463,640121708,1188159389,-1754689584,1673186696,-716086578,-2002361971,-2036034224,-158983579,-423162969,-788791905,2071216880,802666855,934054065,-1761158464,-609523914,-2106843810,1721565583,-1082982570,1109859581,2122820392,1561999269,-1655323762,-1241512293,-349781916,-1421596624,860403783,1599953066,373736314,-496681012,-971205061,1417704461,-1866210651,1821555659,406312379,1211459066,594179097,-1693359945,176461014,-713231925,1694532645,-959051022,107217927,-877469413,624808878,1328524426,1078436870,-1187837344,481551539,-1682587785,1864157244,-1913756076,1809541382,759489024,-184328570,-1809302840,1381341250,1269718006,-49915346,2141779290,-1555404356,-745064555,-854773591,-10348301,-1857023597,-1193419053,-699709557,915165243,577569389,1343354504,-1258055168,-240690424,-1622654400,-1969325436,1130858755,-1005505182,-1653477833,1835017199,-1211680495,1677045757,265438203,-705596250,715001837,1424488873,-89651875,-267320168,417090440,-1208717021,1487254751,378954894,1238039081,-243966086,-399086001,-1578388359,-409130044,-969062000,1750937668,928572364,1103413434,2140262586,-1918233764,-1615493999,-601402527,-1084027002,218044619,1721649724,168808429,1106576777,-318392460,2135073954,-733516978,435833740,-1572040337,-925056267,-312160969,-401673378,-940275163,-285685814,-1488174435,1747429797,160154243,-417137042,-1970316905,-1679144522,-2053572629,571972249,170079635,959809335,1731898598,-919280780,1097784661,901530412,-959521464,-1427937513,-1815840429,-641353455,-784421850,1294653703,-307546399,1336689428,-779947622,121324473,972542594,750846709,-357409085,1554721745,8968421,1429835647,1977995885,2098671459,1017672655,-915937671,-607043588,-283547008,1346998748,-1989417329,-1579900899,-744900318,640928452,1298297099,-238706292,-360225654,1606509559,-470362017,-1446454020,-1028749756,517992945,-850775738,1894101041,690107007,-638358962,-911059550,-874229337,1797459370,1461097728,-1922070390,1242583577,-1244375602,643993524,705348826,1832179394,1006676863,1073984135,1693152449,999309441,-1981879437,373324611,307726740,381092547,867089563,-966810814,-1090534282,1695390229,-493999523,1746177133,427792622,-215214950,-343806511,1309027132,1183810963,-103953595,-308467248,1404152581,-1194016388,1137449584,-1687181866,-1171569550,411534250,-2025296458,465404256,-1530461024,1968143927,-547955609,-153387941,-1233037343,1443240649,1957931495,-1058517917,-832885592,-399279697,1982523386,1351867943,1972753374,-22715017,712972205,-1877356240,2129914730,-1251080408,1746576295,-1779059738,749280761,-832484251,-1828844434,-967174537,-1128356186,-1061727807,653375194,-687119226,614738925,-1874600336,-883265663,-664141785,688778389,-1168518941,-1559550736,-1366444225,1809582537,-815078951,1728759758,-1123793144,1641312965,839748244,-393040756,-189644208,417162389,-1145255518,345965279,-59253156,-244931021,-2101288938,-2121217311,1814067323,1017184873,-1255531145,-1550464402,230496526,337463305,803653510,-737968814,208196218,1938091304,-414561693,-1160877422,-1315354694,-29789507,-743517661,-1096400230,-191281247,1077727742,6175330,-1458565413,-1133283607,-1144326177,1038144309,209394188,30259516,-1254722936,2020858169,-1630338218,852701794,-1177561185,-1863652888,1659808082,1511334782); -/*FRC*/Random.twister.import_mti(102); void (makeScript(14)); -/*FRC*/count=673; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return Math.fround(Math.min(((Math.hypot(( + Math.sign((Math.fround(Math.pow(Math.fround(( ! (0/0 >>> 0))), ( + 1/0))) >>> 0))), Math.acos(Math.min((0x080000000 <= Math.sign(x)), (( - Math.abs(y)) >>> 0)))) | 0) / (Math.max(Math.fround(y), Math.fround(mathy2(Math.fround(Math.exp(Math.fround(Math.atan2(-0x07fffffff, y)))), ( + Math.hypot(x, Math.fround(Math.PI)))))) | 0)), ( ~ Math.min(( + x), ((x + (( ! (x >>> 0)) >>> 0)) | 0))))); }); testMathyFunction(mathy4, [(new Number(-0)), NaN, [0], false, (new String('')), '\\0', (new Boolean(false)), '/0/', [], '0', 0.1, 1, 0, /0/, ({toString:function(){return '0';}}), undefined, (new Boolean(true)), (function(){return 0;}), '', (new Number(0)), ({valueOf:function(){return 0;}}), true, null, -0, objectEmulatingUndefined(), ({valueOf:function(){return '0';}})]); "); -/*FRC*/Random.twister.import_mti(448); void (makeScript(14)); -/*FRC*/count=674; tryItOut("\"use strict\"; v0 = t0.length;"); -/*FRC*/Random.twister.import_mti(461); void (makeScript(14)); -/*FRC*/count=675; tryItOut("v2 = r2.toString;"); -/*FRC*/Random.twister.import_mti(475); void (makeScript(14)); -/*FRC*/count=676; tryItOut("\"use strict\"; /*MXX3*/g0.WeakSet = g1.WeakSet;"); -/*FRC*/Random.twister.import_mti(488); void (makeScript(14)); -/*FRC*/count=677; tryItOut("\"use strict\"; i1 + '';"); -/*FRC*/Random.twister.import_mti(497); void (makeScript(14)); -/*FRC*/count=678; tryItOut("v1 = (e1 instanceof v1);"); -/*FRC*/Random.twister.import_mti(512); void (makeScript(14)); -/*FRC*/count=679; tryItOut("\"use strict\"; for (var v of o1) { try { this.g1.e0.has(z); } catch(e0) { } try { p1.valueOf = (function() { for (var j=0;j<10;++j) { f0(j%2==0); } }); } catch(e1) { } m1.has(p2); }"); -/*FRC*/Random.twister.import_mti(558); void (makeScript(14)); -/*FRC*/count=680; tryItOut("delete f1[\"toLocaleString\"];"); -/*FRC*/Random.twister.import_mti(570); void (makeScript(14)); -/*FRC*/count=681; tryItOut("mathy3 = (function(x, y) { \"use strict\"; return ( + Math.atan2(( + Math.fround(Math.tanh(Math.atan2(( + ( ~ (x && x))), ( + Math.pow(0x080000000, x)))))), (Math.pow(((Math.log1p(((( ! (x | 0)) | 0) | 0)) | 0) >>> 0), (Math.atan((((((( ! x) !== x) | 0) >>> 0) !== (Math.hypot(0x100000001, x) >>> 0)) | 0)) >>> 0)) >>> 0))); }); testMathyFunction(mathy3, [0/0, -0x080000000, -0x0ffffffff, 0x100000000, -0x100000000, -Number.MIN_VALUE, 1, 42, Number.MAX_VALUE, 0x07fffffff, -0x080000001, -1/0, 0x080000001, -0, -0x07fffffff, 0x080000000, Math.PI, 0x100000001, Number.MIN_VALUE, -Number.MAX_VALUE, 0x100000001, 0x0ffffffff, 1/0, 0]); "); -/*FRC*/Random.twister.import_mta(586217040,1816296953,-1861071448,542889115,802442794,-125923919,1687949162,757529281,582148340,214156921,-2109762453,1349716066,112403957,461897896,80834878,1419784436,2060610376,-1698881152,2095525480,-2126964607,207907186,171212456,-1789584819,1868235565,2070700389,2096246958,561588885,1667000919,441521790,1021304955,2081779041,-796439504,-501349577,-641887064,2043811722,810492033,-1909715054,488901915,877435282,1359051396,-255673598,207160728,-1133237743,1267337188,-484063954,643613987,-1548352756,-1229739495,1687683101,74984527,411467509,-1807131805,563063821,1232805637,699506242,41847360,1545344014,778223459,1780361937,429100085,472057728,-1109333780,1203611285,1134368338,310967709,183598886,1204077783,268982165,-1600704210,-3633841,128325729,-1266165603,1326740108,1827118009,-1465290755,-270892359,-1390005134,-1260201226,-824417709,-1845715620,-1326216189,-1213915523,1577007619,-50261012,-188862448,1254517043,1273993580,-1602674379,1316653855,1652711328,-1200175544,-385718416,-1159502454,41161430,1097442030,-1650432434,1681648608,1599526180,556475818,-948183405,-285249430,1855692751,2040462853,769356404,1893846549,248882308,1632384641,741704037,896392884,1019710218,2144522661,-182625463,1551984091,-941058453,815914438,1993138639,2041688418,-591599835,1024483766,-1712906244,841494793,1158286064,-1498256849,-1803037431,1328294694,-1638995488,391215917,624598817,-1450369310,-1131478910,-994108487,348599029,-2079710613,-509434518,-429864258,-1532728080,314048918,124768415,596288893,-1695528107,-409566609,-308691177,-2002059178,807423536,-1907566807,2068233040,831121435,-2044274,1885053994,604574584,-220950700,-981994819,-933178439,92964373,1315075602,121519401,932575545,-480400314,2070245546,597806816,1495408795,-1745717828,1914798716,1039798825,1472675465,-64503162,922565908,528262153,850285716,155828773,-1940737015,-1196845001,-477180293,-597822290,940037877,-972685037,-1674162074,531646042,-996138423,290474534,826329192,1183232442,827197738,295877907,-760132734,-525203654,30906149,680639189,-785381882,-960808535,-608845516,-793883780,-1945532330,-2051273098,386413277,827312962,-1603851310,1301856245,1122959047,-1160216234,-455561633,-982779798,-416364370,2126015752,-604091224,-246946456,1974783314,1625535619,277864410,-529840335,1651046695,-1417654135,1853346752,-899697135,-1196188676,1029630835,-1942708033,1855306157,-162769083,338710924,36510137,-1116219551,-907050952,1406439272,-183654326,-1653305622,-664757860,-422673620,-1680475663,-1655869268,477641494,-222453690,1331824309,-259573236,1223200953,690844440,895506236,1207810251,895840202,529083986,-1814434689,1926863448,377581894,1778492343,375392750,999960476,1393288229,1115868570,803906352,-1253162447,1892004047,1583382608,1375225548,-633256634,2106083863,920832763,-584393278,1813069242,322866479,1567688114,1826302948,2079297051,-748532210,-305066247,-582500096,-1786164701,505527697,-445827127,1565474677,-1481079011,-1600036048,-1827925783,-1661115313,-1425831383,1376868201,1157006764,1040024641,1311071361,-184829465,2126526634,790734993,-1583617290,-1333364534,-1630490683,2032083873,237693102,-986490462,1675210054,-973800029,-1116343146,2118469675,1341527685,-1957812553,-1253840221,-1001823780,-1643566387,-1799257653,-1883830128,-1276113097,-611602467,-1660883394,177677061,-1806233242,437217350,1717590995,2112138194,15013779,-1030454701,-535298267,-1209206600,-499750672,-1994212826,-1139920967,-2047426587,689513179,-1166049320,-403049171,-1749393802,1679615971,1418158554,646460694,614029892,-45920619,766610763,1083585049,-1224556378,-1324881909,-1159364712,2053125958,-1264053595,1053347778,-897478396,90268524,277958725,110964738,-399090003,2140520866,-1650889656,527855173,-1376506933,-1168984301,-1102925398,-200141496,1915935746,-1318497090,2082893593,1939943396,764497570,-1122945967,-1712209989,587365892,1099352801,1548114546,1656888095,1889045305,1763832350,-1826509609,-811828732,636857619,2114771369,317337523,1997114163,1273332170,-2018813036,594895458,-1422446674,242240465,-1563113468,1580169005,1663300251,323701577,1417045493,-946373886,1662452172,-663283509,1350071849,948999752,629525970,1369808345,-1074874457,58570047,999277201,295455785,219436666,-1454788318,307215499,108454683,1738608012,-400158959,1669641890,-851887812,-1471605246,446594592,-413301502,-635765825,-1065138290,-888710425,74221024,-1868471437,-116456581,-1534174934,2007234517,-2092352431,1686971448,1035525355,319841677,-18289906,-1280580545,-1368074597,-1347446776,995755840,519503019,1405700913,-1517607596,1352218777,-1654774846,1145680359,787458948,-605718213,837043613,-1123638837,-98847451,-122510943,-743850448,780540733,918578917,-1586171728,-1002779134,-89976777,-503594752,-1469440097,753227207,-1359584597,-1429999128,1403818397,-1937733389,1503229226,1424630429,-736034088,1146381927,-2036165673,815621012,-1070056746,1670280955,445825026,213820040,1665938025,-930904024,1349301100,1411568038,1615196255,692237406,-796808655,61100726,785252031,130864103,417268712,803564901,-702033412,-1226975040,-363258982,1804598813,-447451060,-443884726,-1307061092,1576679897,-535498226,1006946256,353352658,1044384139,-1332432204,177987759,-1259200967,-10847333,-1243617107,-1230602339,114963793,-750786266,-102521026,-693841932,1744438949,274781673,1097760699,-1257368276,-240353758,-623088130,884857123,1069731462,-1000995263,-343892280,-1735213892,732938276,1031444179,1254478831,-2076543765,-1960282286,-2128764994,1104874487,513128713,-1341861528,-807755528,-1360277659,828834681,376884929,1217566916,150675508,1680478797,2081484619,-1264678757,-2044980309,433605285,-1072281027,-1520967151,1106495805,-29464544,400322781,-1268895652,-334071403,-819333097,-1469974762,-365164392,801577993,910593852,2042853154,-2096577305,-1973025414,927197674,-100402272,-1328000749,834225179,1824652462,-1766834546,1636748140,1627593387,-819769160,-1123918564,-72402579,-510501333,-990086506,-1368543767,1717153825,-1615135689,1478127914,632417794,1706157005,-951221297,-302254284,1101374274,-913811892,-2041168536,-1661939065,2052905974,291029698,2100351746,-1293314304,85574387,-1373695695,-741527858,-1065662217,-901948081,-1364638040,1340225077,303293769,566924017,1690989687,1276032296,-2039375480,1896354362,-1235001710,146248279,-2029032242,2095518251,-134072393,572833180,-471915038,1375174762,659324808,1351032291,1594157413,-1247489073,2076499541,1154604415,326685494,1179102786,-767418667,-156066653,1077360263,-212743051,912915256,-1843047323,1756616566,-1540533367,682267082,1606069990,-469089149,-852925450,1959825752,961213920,306318536,-27980394,-910519262,-2062537342,146068980,-561733687,-715516900,251051156,1554687144,1667489216,1000398752,-1675822181,-903520815,1839495698,-709401138,4943389,1732759826,-222480811,-2034898207,-1034897257,-249524429,-1619974864,-1356271114,-1418875114,-309733839,-629202481); -/*FRC*/Random.twister.import_mti(181); void (makeScript(14)); -/*FRC*/count=682; tryItOut("var mlecdv = new ArrayBuffer(1); var mlecdv_0 = new Int16Array(mlecdv); mlecdv_0[0] = -19; var mlecdv_1 = new Uint8ClampedArray(mlecdv); var mlecdv_2 = new Uint16Array(mlecdv); mlecdv_2[0] = -29; var mlecdv_3 = new Uint16Array(mlecdv); var mlecdv_4 = new Int8Array(mlecdv); continue ;a2.splice(NaN, x = (x) = window, a0);v2 = b2.byteLength; /x/ ;/*oLoop*/for (pugsad = 0; pugsad < 89 && (0); ++pugsad) { ( '' ); } "); -/*FRC*/Random.twister.import_mti(422); void (makeScript(14)); -/*FRC*/count=683; tryItOut("var qtpqdt = new ArrayBuffer(8); var qtpqdt_0 = new Float64Array(qtpqdt); qtpqdt_0[0] = -3; var qtpqdt_1 = new Uint8ClampedArray(qtpqdt); qtpqdt_1[0] = 27; var qtpqdt_2 = new Uint32Array(qtpqdt); var qtpqdt_3 = new Int8Array(qtpqdt); print(qtpqdt_3[0]); qtpqdt_3[0] = -18; var qtpqdt_4 = new Int16Array(qtpqdt); print(qtpqdt_4[0]); qtpqdt_4[0] = -10; var qtpqdt_5 = new Uint8Array(qtpqdt); qtpqdt_5[0] = -22; var qtpqdt_6 = new Float32Array(qtpqdt); print(qtpqdt_6[0]); qtpqdt_6[0] = -21; var qtpqdt_7 = new Float64Array(qtpqdt); qtpqdt_7[0] = y; var qtpqdt_8 = new Float32Array(qtpqdt); print(qtpqdt_8[0]); var qtpqdt_9 = new Uint32Array(qtpqdt); qtpqdt_9[0] = 5; m1.valueOf = (function() { try { m0.has(p1); } catch(e0) { } try { this.t1[({valueOf: function() { (new Function(\"( /x/ );\"))return 6; }})] = s1; } catch(e1) { } this.e2.has(this.g1.t1); return p2; });t0[({valueOf: function() { -11;\nthis.p2 + '';\nreturn 1; }})] = f1;if(qtpqdt_7) { if (this) Array.prototype.forEach.apply(a0, [(function() { g2.v0 = -0; throw t1; })]); else /*MXX2*/g2.Date.prototype = this.g0.a1;}this.v1 = Array.prototype.reduce, reduceRight.apply(a1, [(function(j) { if (j) { try { o2.f2 = s0; } catch(e0) { } try { t1[12] = g1.m0; } catch(e1) { } s2.toString = (function() { try { s1 = s2.charAt(13); } catch(e0) { } try { a0[10] = \"\\u753E\"; } catch(e1) { } try { for (var p in p2) { try { a0 = r1.exec(s2); } catch(e0) { } try { this.a1 = r1.exec(s0); } catch(e1) { } try { m2.delete(h0); } catch(e2) { } s2 += 'x'; } } catch(e2) { } s2.__iterator__ = (function() { a0.forEach(this.f0, g0.a2, this.g0, t2, s2); return a0; }); return o0.m1; }); } else { try { this.f0.toSource = (function() { try { h0.getPropertyDescriptor = window; } catch(e0) { } try { i0.send(m0); } catch(e1) { } v0 = o0.g0.g0.eval(\"a0.pop(t0, t0);\"); return g1.o1.b2; }); } catch(e0) { } try { this.t2[15]; } catch(e1) { } for (var v of t1) { try { this.a1.toString = (function() { const v2 = a1.length; return g2; }); } catch(e0) { } try { function shapeyConstructor(xsqoqd){\"use strict\"; return this; } } catch(e1) { } for (var p in g1.h2) { try { selectforgc(o2); } catch(e0) { } try { t0 = new Int16Array(a2); } catch(e1) { } try { selectforgc(o1); } catch(e2) { } v1 = a2.length; } } } }), o0.o2]);for (var p in this.e0) { this.o2.t1 + i1; }"); -/*FRC*/Random.twister.import_mta(-1421538365,-1742191193,808081897,-1285259713,-762052142,-251184156,-350819961,752987281,-1938213266,1728025060,-611164146,874902718,-1570006948,959627231,883352785,1856011925,-1462389356,787132333,80355165,41649502,737514704,1212630210,-549358380,431497638,-1000166030,1896252468,2064595908,598642690,-1314445817,108459743,-327587814,312779123,-1926952108,-729607078,-1379240616,-1444911774,2103003066,1233837396,-1543490127,1643653291,315007057,1393796879,563176853,-1221562048,-88362534,-773637296,-1579216088,-237604653,-1752562576,-167264820,1538233670,-1717316171,-375918853,1956462462,679342462,-24141770,-1919042088,-2100667640,-1844599518,382631976,823466259,754037353,-1760341015,2048251275,1861697934,1606329080,1954955359,-1571009525,-1156132959,986664673,-1085301951,1921352340,-1858374520,1036563861,-461500116,-496958464,-1523902752,1270442331,-27774669,-945077361,300275399,236227296,-400275966,497360557,-334802513,1687794445,1010447721,261720946,-342015442,679918087,1262746942,-1725451132,-1430612061,-1205441077,629142275,1332175651,1701755261,-1800411586,832383172,-161339509,-1348569905,-1152223532,-1494652846,1856173869,-1451156185,-1731614490,-1721450836,1378121630,379119025,-1026831808,-543755728,1138133673,1021372481,1099473990,1652066821,-1718666592,-156956048,-1598662405,456130339,1950521351,-829195027,1165524447,2066394445,-1918231285,551577849,-454655371,-229210003,-1748087914,-736000709,-871050007,694735365,735441145,1097340590,535927281,-991819530,684903335,-71548357,1206825689,695388265,292341893,240529791,-2136343875,-159544591,-126391446,-501636705,-640272904,440502597,496775640,-716633485,-728649570,-1172903229,883986255,1570492093,-1144919666,-523536963,-1818587519,1285424417,-816107691,348726659,461812131,-667675632,-1184134711,1305011332,474114355,1911674742,1231911875,-1216581590,2107465277,-777853723,424702803,-1269534978,1588365680,1721329664,1107572587,-957570435,-1239867516,1845272241,1485276185,425698681,1072438204,1942242622,1201925616,612187545,1385986964,881385186,-895768453,-888683529,-86368810,216510632,770561565,-1694045749,1886207763,-788835490,-1170243897,-1131760088,949552163,-1602338365,1551207231,-800775331,-1615563096,1543440853,1641375903,-2130101486,-465194378,-38543562,1919857501,2013132119,-585237519,-1479823405,-1265211164,-273988261,1285240384,540774476,-1770221521,-1442594956,1252361550,-301399532,-982955409,-1197138285,514578146,1172562936,-1781051601,-157588860,-1783749165,-438835101,-2118542593,-1458020263,2141669348,-695271951,2115388514,-1975865828,741192279,-918247710,376049924,947328285,-1765204496,-603325090,-1054812181,1004626839,848289468,1079931635,1072061554,-1029169263,-1545227933,858241123,-1270391408,591061907,1006683464,-873933563,1043012716,914907534,-325153260,1546004119,-1664897520,-1579727456,-1624094490,1887332354,2096012882,1008477098,-1152868698,1887200136,-2072292769,1174426305,335193914,-1706637158,1914198950,-901381232,-446066892,-641248162,1908528141,1740556779,768455458,493506203,1373571139,-743624187,276592271,1209901907,-119867030,-423376416,1729071724,1683016197,1883163931,686769931,1746574551,-2048970913,-1332475405,1730303627,-1964517603,1917536290,1899579171,-991531498,-229055990,-1676155018,379777201,1951426994,1753137051,2098514601,2143235077,-2042042971,-541391977,-510946104,-296380001,-1352224733,252939222,1967865010,1730284069,2146022009,-119105142,1440937660,-1723895174,1496597438,721745580,-1083548640,-239201061,312882334,23660647,1666946364,-1606074864,-1285290903,-1174500056,-1435844375,-2099845994,-2135485095,-601026386,-1892776339,-266965986,-1424975801,-760320148,940494681,-108195917,1273118639,-349066095,160018459,-1708513619,-13113321,1766983008,-871924636,153449933,-870043757,-121568489,514456723,410091681,-527018847,-300834769,1202577320,587163857,1653227350,1226003994,-1870130467,715887183,878823588,247678400,1284456229,1393720622,-1554074983,1153033103,-1411716629,-493177773,-1915015950,-787107416,-1115820873,-518993901,721905261,-1442385142,1383408910,-146645666,437383,-129418698,674280239,1724948362,1262807375,-1043194850,-1470253794,-1351436801,-324486637,-922664617,-967616905,197956848,-1303419837,-2060606211,1057929241,1896735606,-1794071108,1480252848,527712719,-1896160047,676738917,1966056263,-928394600,1800697882,1214702130,1019144294,2059647298,1132051754,501022202,757725513,1533424035,621571992,-1155287022,886981781,-1596097442,1581288586,-1000370792,-366460901,-939063808,640405758,-13543044,-1107910996,276046324,2043690553,-990923490,-2073769051,-664913199,977530724,-193655753,-137635708,983172063,805102985,-1315459838,1467003748,1580864650,1507546663,1364056891,1849031810,-568522606,-1057006843,-39251543,-1079627503,287868959,1278510082,725592138,1941987004,655313833,-2027745978,1112870743,-888728250,132893045,-977550281,-1212566100,-1167955592,-835575323,-1977638369,-1570107668,-482319851,-1019864277,269203320,988418806,768981582,-1077532676,1605446260,-2129690628,1419742628,-1066683484,662056921,-448160056,-622756859,-252952049,-1591130398,2000903735,-1134023889,-89825579,182267195,-468946859,-2063460592,919960536,199957136,1821228372,1255780122,-1177622424,-622704949,2141254123,-1336539232,1390596226,-522344678,-27571623,294485874,397732095,1249489425,-2016613906,-1227647718,234583099,409520802,-2051718544,145250067,293644461,-11894812,-1532364315,-882913161,-239395525,172559519,1177372456,502477612,-831389042,1364429114,-1593985891,-1723229311,-2010848983,-235100752,902814614,2055675623,-1616748754,303432550,-2108710608,1817505585,-56137360,1306423321,-1072739050,-417907049,-1439140847,-49556858,-786888426,1316777608,1231379890,1480417947,1476485036,1751404556,-1640314058,981082818,-1503127167,-385227974,-666251670,1869819436,1419707402,-443017211,982265528,-571928240,-491061689,552537246,797018957,-1727639948,72062097,93083908,-827639889,1484266021,-1503152380,-1321346347,1895755184,994737909,-449146745,1431188719,1735121439,2125138955,330432358,-930360315,451628840,-979763213,-651404151,-1901138993,-1040319966,1472711877,-1593606827,-2021464308,-829553249,-1302047801,153763530,-1240860898,-1871996716,-1294521589,388477673,1591546703,1691585896,1865853548,-524288825,1735063168,790769497,-820190377,-2142959094,93869018,-987563691,-485367098,157981157,-492538708,1944925727,1399172519,568890927,-2094125799,-1679774623,-2098524983,-1927701256,-1469718320,-395173042,-1427973374,1738159278,468932190,13322973,1959266158,1907746637,-431419093,1896534782,1600032214,555280913,102788587,-660665811,-1425326567,-1629647923,1381563267,2054546810,1113976619,-17261867,-863961329,-302341314,-1460481815,2135670380,-1392616327,1287113402,-1676003817,-1264825827,585029577,-435474844,1762311051,787013817,900723496,1473766144,469098476,-713455438,318478135,-1821076338,-1442966156,1929804542,760725945,382692001,-233789891,-652289679,-1748237155); -/*FRC*/Random.twister.import_mti(484); void (makeScript(14)); -/*FRC*/count=684; tryItOut("\"use strict\"; h2.valueOf = (function() { for (var j=0;j<7;++j) { f0(j%5==0); } });"); -/*FRC*/Random.twister.import_mti(501); void (makeScript(14)); -/*FRC*/count=685; tryItOut("this.t1.toSource = function(y) { return y };"); -/*FRC*/Random.twister.import_mti(521); void (makeScript(14)); -/*FRC*/count=686; tryItOut("o2.v2 = Object.prototype.isPrototypeOf.call(s0, s1);"); -/*FRC*/Random.twister.import_mti(539); void (makeScript(14)); -/*FRC*/count=687; tryItOut("\"use strict\"; /*RXUB*/var r = /\\3*(?!(?!\\d)${2,}|[^\\0\u0006-\\u77F8\\xAE\\u7B2F])?/gm; var s = \"\"; print(uneval(s.match(r))); "); -/*FRC*/Random.twister.import_mta(-267321964,2050892857,-1268462763,-912819017,650318200,685525380,626009740,-834953929,1431574540,-755472005,-404462349,21097946,-1136537335,1203009449,708592688,-868949989,-197261203,1863889734,-151643605,794872247,199182312,-1640556696,464298935,2081112627,559420477,1825195737,2145563779,1606822734,449614005,-879385180,1878839671,398069173,645205551,2111476454,657484813,1503914100,-1545182228,-916609712,586396108,-1753208446,1966778223,1048164281,-1577430568,-1284507384,-487702601,-226130056,44296867,-1997334253,1795713438,1463670869,-1207115701,1376084062,637515211,-1791916221,1809341887,-2035978936,1712521821,-1404089255,-1853473775,1903066713,777596681,-440252644,1483370805,-841023982,620919879,1195892901,220496330,-229200681,-813429441,-366821333,865824336,-1319939540,487501022,1302329725,-1050245728,7822322,470393704,1484775967,-347050390,-967920829,1299445601,-1277244689,1628023443,-1560908749,-215178245,44099611,258249386,609094074,838963768,-2130180230,-942929355,1039066677,-816674139,-1919283594,-1555549598,1707994863,1527020069,-130866945,997210267,1189309329,-1403674918,1723559871,-1797335634,308961634,1584584469,-822215066,88528126,1860414327,1824232761,-1346096114,536136476,759214318,-573603675,2033056971,1119613912,842520714,-1854996935,-1935798046,-884101936,544982431,-1043419918,49676280,1993629024,288443081,-1006051383,-1262685981,-1367392818,-913023750,585878523,788932506,-1408416707,255164442,267792979,641372394,-923956216,1786619501,-1568148586,735470575,545459784,-287488560,-1575603340,118285600,695566682,-1888503281,306190071,-946238693,-968504087,-1454933298,-1345247300,489658679,1308499127,1983425955,1244084226,1215199060,1464275091,835303376,214004914,-632939308,583147280,-1133407524,2003459888,1908654251,-906717431,1546348243,-762796206,-83770158,-2136151743,-1627656716,448555553,-1703985803,1791891298,-160543403,1528514988,-1290504188,-1180107922,-1675900520,-433135756,-1269828532,-1663557433,-1576890626,-1589970383,103789291,-2127831782,-231322561,380092384,-1693358710,1721653429,1186501257,-80323393,-448912521,125255293,1501002577,-1689681302,2136846597,-1016832219,1370003987,1547258713,804760252,495108311,-1904029361,-343413829,-25426084,-1096669644,-1826403163,1221409176,-574753768,460853598,-2040877684,-967769499,1514231919,1150504169,-166271422,-79936701,2078883587,1358770575,1624465930,-532035068,270776100,1571716166,-1316657806,974979644,139185084,-24616049,-47436209,734321565,345659778,-400578705,1113535411,87361032,-1317430181,109647171,39928329,1676230918,-1604117283,-983624753,995157667,727757393,589063655,403047044,90593455,1481070992,-1839138009,80644213,883254403,1966808462,1046731581,828418835,-1222402635,-1054697122,15242096,1245971769,-700205143,1655411153,789124691,274665277,1660134580,-169678195,1911734434,169755366,1581989867,-420508906,-583469646,1348385769,-1362819167,-1336833917,131117060,-449516008,433655104,-544084640,187532786,-1517739879,1968416805,1130541958,-1300380802,1506120331,-703723288,1800447200,-882047813,562210152,-1897963498,874926353,-425242907,731943932,-34331347,1829632127,2065672075,-317381368,1467779864,1146508370,2048476734,-1259172073,1795788796,-1793185758,923579667,1600209861,1745279156,1291183862,-1447580579,1199989560,1842046650,-1547860627,266169710,1207868953,648822065,-219785262,1303119753,-96600186,662867007,-1086229550,227773260,-1217128603,-325480981,-478719319,1178044645,-1108198058,61626534,-1859479438,125221086,1628545185,57629198,-856589251,2048591889,198928056,-2053404212,-2143807760,-135216025,800349223,1767524777,-1015719751,1747417766,-1090910219,-2084651065,1524653551,-472543190,441100743,1253583627,1918778935,-1594987510,-936869446,194235955,-333607868,-336041641,-600328126,-222817811,82383957,-100093061,82996882,1350702403,-827816448,1826928946,374401065,2068312196,-1657418124,651744349,851451362,-1374810159,-951857812,-354364860,1740593358,-935299881,-809876420,73830369,2139021288,-876781295,276254016,-108468012,-755377973,1862720060,879012581,-1780529886,-1350126592,1181666424,153641275,689512767,1422879418,1441807448,1489621839,-841933239,-1381576958,-1935092527,1894287087,1573864013,1574230280,-1703680886,1144249955,-270420867,535753632,1396618876,74054822,-305666544,1114903264,-269911053,-625141177,-1908238404,292004239,-1375223249,-1997993287,2002766699,889839552,1266022275,-600555967,-1685635678,1879529802,-2110956428,-413524941,-1556050823,-50740824,-385815861,-1546707672,-1554249835,688691506,-478145961,-969895368,-978555279,1029537483,1064562063,1808327020,532474108,852435683,-1269528529,-893867319,1925841511,1722967122,1933037328,-696207391,-94439204,1213823256,974856043,-664386211,-1422003695,-1430035461,-1035850605,-567512389,-480631254,-1546049745,481056256,-510391637,525309503,-1423453442,86893422,-1477550381,29898489,-2005146657,416970574,1478913176,1088124221,-1485850539,637407682,1737711238,-32514959,-1755060067,200344143,-567673167,-625252341,-1238942354,-464807984,-504545494,-467662201,-2057443519,-2018287949,2080717471,1850841914,2043800875,1879707581,652863663,776002606,537562914,1151348132,1712941213,-501858209,747530067,474641871,235735216,-683295008,-1760756,1408261630,-1126368601,1235382734,-1926595292,-1117873389,591229698,310750725,-1079033886,1680477700,1314389840,-1052635445,-1561565425,121288020,18137890,1934104701,-1606640073,-1754756668,1870230681,1816298633,-864718753,42675499,1943263018,-9515694,-786917495,1286839313,-76102963,1491223059,959238063,1426264152,881495144,25494499,1683771266,-130884666,-1742559322,1126963063,-1698033047,1237276326,-838228455,-1055552802,1666097950,1263219145,656693087,1053700872,529366625,-113586409,1085612549,1965998528,-1010670487,297005482,-2025642763,-1345082172,1035788533,762703892,56511060,-1663834994,610931123,1287355610,-1197950396,-384949244,-434843254,-952236790,-1992424215,484569081,523642691,1237979001,-529875393,-1272266011,-1092550021,-597737498,-1129121800,-1802551750,-584016074,-1408270036,-1997513044,-2108528435,-967116214,2121770208,936009051,1797342018,1918808614,-1958701869,-1471913988,1818324574,903382719,1753848667,-733035236,-1289885829,957173835,-54027964,510176638,-2012609345,1231022046,1468284977,-1703897036,25838703,-1008063557,-468238459,1253234039,-1928424102,-937577712,441475311,-1265004663,1356605013,796197100,-385032237,1940503004,1091372981,-1544051458,1580128477,-796601869,-965928009,1651264669,-1220596413,734644490,-151381441,1369827131,-1523550071,889571079,77573618,-1625155806,157177944,769983080,166873525,-1188691168,2144678052,-462882412,728413580,-628645189,1049769490,1523889565,1860197075,1154420714,1139610077,-1337807017,-743958133,-2136728290,1876439011,-501523573,894580729,-2092184264,231978721,-1187451734,1006055327,1615473648,1221730248,776107133,-455049752,2095673534,-253660045); -/*FRC*/Random.twister.import_mti(387); void (makeScript(14)); -/*FRC*/count=688; tryItOut("const c = (([, , , x] = new Function));for(let z = (Math.max(18, x)) in (void options('strict'))) {print(x);(/^/gim); }"); -/*FRC*/Random.twister.import_mta(-1823970904,-1238168907,-1229522681,-1890208003,-1880549024,1655654924,1010311728,-1913647051,322177051,369312526,-1449124826,619136371,1502514334,1007860522,1553126021,623322833,-1306511406,-1624325375,-238339701,1848066712,279405384,-435043353,324639209,1125912584,-576220716,-1068790068,1557453495,1122914148,-543938034,-1498439300,-1462851218,1381266069,-1781482654,542369058,-292300631,-807451827,-2013989758,-224329783,392970945,33679811,-1719927492,-1143277038,1553604586,1334964695,2022372677,1344448081,-2052371688,765614167,-229824056,576813231,1291624941,-328977220,1839181583,2072475293,144946411,875089728,1435795192,1743557561,99883043,1875449969,-691984119,1885368068,-1587797574,-1215515549,-721757257,2135141838,-802559735,-668770577,-1034351388,2043099146,1544127666,681459442,1573981246,205333891,1550964790,645380,1651703600,-900917959,-1444957056,1131262408,-918182810,1688606898,892149205,-1012690400,-891458857,-1206028617,1980566233,1465333324,-1043985034,1476580042,-1060800879,-1078643025,897916742,-241662202,2089209452,-604767916,-917265367,147184845,-1192089540,1710823495,356239954,-612893346,92712096,1296505240,2140978464,2073011664,-75860676,-1679821269,375855588,732310028,-292387919,802019115,-1498261043,-1147671675,1352973027,1605790170,-2024111441,115897718,-2105646119,130220326,2142555380,619139281,1756027564,-71697090,-1233647250,-1795294578,1970921431,1329492439,-1202667767,-1296895436,1794060313,-1649548382,-1882280709,1890231,-1601364173,-1445248113,636331308,-162179410,-263149598,-667607725,1600626025,193783790,-680172895,809633179,250525623,1154176208,-1996717439,-346397658,1125139070,1657217458,236676898,-1377582419,-1503308953,1962001116,1720942344,833283842,1174555944,591379886,-1787273795,-739151772,-846709036,-2010481180,-1617651475,-49637707,-828570350,-531393484,-1279627330,-901896015,473246426,1010363503,-172239292,-134398750,402684013,-1623304692,-1441080503,967162573,-685150340,528028588,1263609744,2097955406,-1966911489,803270241,153045267,955934252,1283831152,1236285563,-461758138,1947684723,771406547,-1193319556,42737716,644679743,274494050,-383813514,1424786783,-2112761228,325351596,149669782,-1760067552,-1053931670,1993099803,-428404678,-1353963991,-2146540200,95702912,-1757697516,1035952340,-1594588048,-1698150853,-7464639,2028364540,1423195689,928265941,835859718,1605476070,-767574391,2101603435,-1382223077,353436760,-466195020,1070778945,-972641560,-1353926608,-492263060,-290631383,-772926506,147217781,-1848448340,931624007,1828373369,393062182,-1105348125,-342461251,-945874168,1230033851,-1618157076,-1635401438,-1516036764,-1084433925,1974280278,-1406503322,-2013452704,-1501748145,-2000832235,420978240,1886641373,-323076963,1882599399,-1503294881,-1351406678,-248153341,905636323,1321710906,-839651850,1939316030,2087579543,-564739795,-1379825635,-461808193,-1498972439,1322229755,531903874,1102409794,1188331548,-1320638517,636892621,1324183395,-1229780084,-28559125,-682213511,-1406102246,1497083014,1226590190,1883320962,111500323,-2015003720,-1629533651,473822041,-351566665,-1367066792,-774086352,1567882517,-1814401783,-1172688360,-1016336221,863931047,74931709,-185990368,1298975771,573429486,-1039633507,-562704474,-1110620264,1720842292,-333434187,-467402849,-199991557,1070249262,511413679,-720929193,1272156980,-427415579,-1973979325,1526846681,898868770,-1799271613,-1985722616,-689627761,577756436,-1214273864,753394698,577663836,1108214298,1760826482,377559583,-917290673,465145509,1766135326,-1107125336,-1963650681,362656721,2037087536,-650232398,-1991266479,-365621727,1981855472,-933458868,-1383475503,-1352384499,-2081218683,-1785661788,-1947983096,1248161221,794267904,663442289,-1237273056,1003559945,-1970879636,-217284371,-1866686481,1466134513,1052731074,-1075654157,1546041434,-1562076140,-1073261424,-1232422056,1491111924,1385499720,-91611545,-971373188,-1193087404,1587093631,1813631270,-1053702432,-604939841,-943547626,422616190,545614102,-401371419,-618192744,-1624084281,353190872,1842742156,-896458044,2423640,-1346998195,-597854012,23283071,-2135541599,1400202151,-1821231115,-917539696,-1566885924,-1046316534,-159638778,-584638903,1489502371,1925126170,1192861903,-1021390043,1215894412,1016272199,-1122823482,-1916283057,-628153235,-93443238,-809713529,-1094086932,-22113891,1408670611,986396910,-1485643798,1644236710,1144355193,-1052172455,-559957755,-281069148,1263499260,-1357719662,-755119907,-770082836,951260407,1032638906,-674110129,892192580,-1870362636,-618348181,-414818956,1570309514,-1875714088,798882924,-1301364836,601632508,-223999637,404671077,-1224665342,-2099052134,-1521484553,-334981159,158517658,1739962230,-1148570116,-1590914173,1975827448,-214221652,1160476672,-1007167382,719411693,1663379211,2015871950,-206911998,-426329855,-178568292,-291328144,856355761,690053761,1836419971,373477278,-1112823453,-398549339,-1031479338,-1638759122,1364253223,351926618,-1615959891,-1228315307,203121922,1611265039,2113272993,1045993620,1488002734,633018124,1406518210,-470343356,1198648274,-2015201563,-859052967,1691133541,211573037,-256387435,-323971599,1048663789,351897002,-1300008077,-1353081238,1476212356,103707383,805222032,1764927289,529543981,504437272,1540424621,-1823691365,432931096,553863123,-878570675,-140491375,-228780875,525929659,1572440619,1816134351,242804885,-109232507,342376359,738713319,-449174461,1313209962,-1088911005,-928804986,224445694,1610394968,-1965045930,-237017197,1862151622,-945433730,-387884592,1572105729,-1502948783,-307259817,-2059885740,-2093249749,-1385892972,-2070279143,-2047360393,-651844746,-1835181381,-1647496477,-1511176591,129488098,-557475509,2103939952,1408520136,1976568946,1212623643,-940157077,1028312938,1422294130,2078284018,1151297093,1543936212,1422504030,-1392900278,1857911902,1747149644,-642953974,-1010989475,1249687070,-386935390,1097518917,2103208628,702544640,-532260543,-89247795,-1250287862,-495681,1625809307,-1166784652,-1618754497,-348918310,-1410742817,-788976643,-1484988740,1172370777,587368707,-795159501,-588066543,1374002311,-1588921975,-1173143401,-160137951,1759023187,1135613777,-244066977,824257639,-79269901,-171726678,376702244,648568442,1614942027,-271461790,-502969461,-2010940798,1961183926,395014636,-1750895870,578162472,1515922411,-411896790,119502065,-1222273209,1588938352,-964682179,-763075888,-1933570212,-774800557,200064402,-778009334,359412066,659422353,-711466461,-792062817,770606350,1988641584,-485580422,-927203449,1787078811,-1899772899,1028115719,-455671654,-431583465,152793496,40578465,-1608025124,-1728949016,395428939,491236516,1340498487,-325537881,-75823014,-147952358,1978211208,-1456144369,1766192216,-156197611,1356373999,-1599234,1110914129,-1197101162,2093030344,1408742888,633522773,422481742,-70529594,274574120,-1571424071,979220109,1674808939,513947402,693851403,1349595474,977387814,1613829567,-1757704751); -/*FRC*/Random.twister.import_mti(60); void (makeScript(14)); -/*FRC*/count=689; tryItOut("mathy3 = (function(x, y) { \"use strict\"; \"use asm\"; return ((( + (( + Math.max((x / (y >>> 0)), x)) & ( + Math.fround((Math.fround(Math.sign(x)) | (x | 0)))))) != Math.fround((Math.trunc(((Math.imul((x | 0), (( + Math.fround(x)) | 0)) | 0) | 0)) | 0))) & mathy1(Math.fround(Math.atan2(Math.fround((( + x) <= -0x080000000)), y)), (((Math.tan(Math.fround(mathy1((function(x, y) { \"use strict\"; return Math.cos(y); }), ( + Math.hypot(x, x))))) >>> 0) <= ( + y)) | 0))); }); testMathyFunction(mathy3, [Number.MIN_VALUE, -0x080000000, Math.PI, 0/0, -0, 0x100000001, 1, 0x100000000, -Number.MAX_VALUE, -0x0ffffffff, 0x080000000, 0x0ffffffff, 1/0, -Number.MIN_VALUE, -0x100000000, 0x07fffffff, -0x07fffffff, -0x080000001, 42, Number.MAX_VALUE, -1/0, 0x100000001, 0x080000001, 0]); "); -/*FRC*/Random.twister.import_mti(365); void (makeScript(14)); -/*FRC*/count=690; tryItOut("print((yield /*UUV2*/(a.substr = a.getUTCHours)));"); -/*FRC*/Random.twister.import_mti(430); void (makeScript(14)); -/*FRC*/count=691; tryItOut("\"use strict\"; t0.set(a2, 13);"); -/*FRC*/Random.twister.import_mti(444); void (makeScript(14)); -/*FRC*/count=692; tryItOut("\"use strict\"; mathy4 = (function(x, y) { \"use strict\"; return (((( ~ (mathy3(x, Math.fround(Math.max((((Math.atan(0x100000001) | 0) & (0x100000001 | 0)) | 0), Math.fround(-Number.MAX_VALUE)))) ^ ( ~ (Math.atan(Math.fround(x)) | 0)))) | 0) , (Math.fround(Math.hypot(Math.fround(Math.atan2(Math.fround((Math.min((Math.sqrt(-1/0) | 0), ((Math.cbrt(-0) >>> 0) | 0)) - Math.fround(x))), Math.log((y | 0)))), Math.fround(((-Number.MAX_VALUE * Math.fround(Math.cbrt(Math.pow(( + y), -0x100000000)))) | 0)))) | 0)) | 0); }); testMathyFunction(mathy4, [-0x080000001, 42, 0x100000001, 0/0, Math.PI, 0x07fffffff, 0x080000001, -1/0, -Number.MIN_VALUE, 1/0, -0, 0x100000000, -0x100000000, -0x080000000, 0x100000001, 0x0ffffffff, -0x0ffffffff, -Number.MAX_VALUE, 1, Number.MAX_VALUE, 0, 0x080000000, Number.MIN_VALUE, -0x07fffffff]); "); -/*FRC*/Random.twister.import_mta(757992481,-1994605664,1907407923,-1794554771,-1555115286,649004527,-1568904833,121852317,1043097283,-2074834457,274715405,-880731333,1133533215,661849669,-1543053349,-1417763723,-180093021,323691889,1863150377,-1085102426,685985974,1978368220,-846815267,664863088,126906384,1290332280,-2141473743,1510911743,-1603474414,290204855,869618175,537461852,856479130,-697917627,223205243,-1519598784,352554151,1008484047,-1425885297,631020575,815330954,2014298219,57401687,1299403992,1939684385,-1668865886,-1635170605,769617342,1469473829,163546492,975798108,-1882287273,-650184912,-1560153538,1118140686,259074160,-114607423,2013633930,-375531723,898257598,-1258564645,1952626360,-833440829,63048593,-1827585258,-1885531466,-505374206,-743443199,-742784401,2046424285,308374926,18231439,-165378777,833150774,504755866,1793621045,794990552,1294064472,1085644599,-285163138,-2047653432,1908615808,1049150891,-1579184225,-1455027893,-327754458,-757684829,881539356,1074182018,1548758996,-2003315230,-438696256,-261108731,1931715528,1912951282,2004788637,750074154,1921464792,743567234,-495141639,1880068270,-458652671,-888399205,-1158218300,-1090758205,-1864775414,1350387667,-825995643,-856246672,1021094844,1394829737,800905800,-1015770625,798979301,1388095389,-917389760,916731593,-797922776,-2078812168,43034896,-541236027,1337292196,2034473178,121281635,515329305,1330534526,-802491286,-318534633,-2131479536,801287822,1152010191,905982720,-1737747391,-200124942,-465901032,-1297052713,-1048279910,-850244357,183128521,-1772314640,-1078840189,758236592,706371528,899034843,-224624235,973745955,810403658,1116383292,-503757590,-604020096,-568537842,1802559717,-1066688007,-985808219,1879958482,1622225349,-521401464,-1567247770,-1832986687,-1828210752,1382104022,-261446957,-2016414514,-2002824981,-1842577007,-771863203,-1997345231,1502733441,280475114,413918218,564510106,846887107,142630903,2065713724,-1687213111,-317412989,-1657214202,-1452761964,-279487884,-1752847694,525877989,-1997855436,993054599,-204130149,1830467709,533960109,-1786031018,1828408524,-724283847,734181505,83751133,896136246,-799490911,356023655,135501986,1272517111,-1538090985,-1820748552,1996941310,-14075530,2094918186,573967468,-1149486346,-1242281254,2121584258,-135614363,2034218592,584847063,-1239997552,-2087409280,-246047846,973538339,1680343371,2083486363,-1781160498,-24655452,1947010196,1523919108,-1873883549,-54762638,1087429407,1225026322,1477378493,-1104205543,1387710669,-1118139430,-1613563769,-270203171,644442819,2047242144,319760451,1334663275,1163954283,1608298621,142942571,1903068754,-695924907,-688320721,-1319662832,1434805036,1687000437,1848704291,1982384160,-1178062717,-1300595776,-1067792968,1581318538,-1562827450,575804681,739545731,-464206498,552839821,1779506819,-107971922,-47126037,374291547,-559654810,-656322561,-363721737,-849106248,-641956476,764899162,-2046393522,-1800441955,-135293706,360493281,1053104601,-692692448,-1968410872,1433643994,569279131,1460871126,-1532511773,80959517,774754402,-2114883092,-559297521,-1767633448,-661878533,-1311717464,1420868715,-767492267,1383870844,26636879,-1196267514,1924057364,268391214,1262814473,1702125007,1985886930,1828252738,-839393062,-53088596,1324888967,951499281,817405389,639413834,-2074862714,-1298317445,-1815262019,-1679590373,-1036583452,-1637865850,900416713,-565588442,73907379,494600038,-725309630,1779235292,1761294254,-1326926287,-2009003962,-670247137,1084135539,-1993725596,-1798127601,1760732379,-1751738314,967327452,598320434,1335237968,1587171115,-1429093654,-1062793499,160916128,142584228,766568270,-1095434121,1012448028,-2117836343,-16454592,1120296958,-2022571638,-625975628,-706472555,135694507,966773258,-1280468736,-18209440,835557080,817940356,-733642821,-1488788883,668367043,-1334640544,-548238764,1860234986,-151526687,-336016824,441358948,1531702089,-386699783,2034413805,-256764134,435392535,-485131877,1666900145,1424552772,-1694415699,-167803891,579067214,-1363391500,-2074375663,-456387080,-1925172905,-2076583632,-126737518,1712006883,-1268618945,-626499900,-1524136450,-1774502947,1799861453,1352464975,968140223,375552785,781439502,-415022845,-772505507,2028763316,-1593750685,-145958482,2117646502,1057444080,1457164431,-276184468,1842440028,218496160,372595394,2000423384,-1778725732,-2120880540,-1593914738,870376018,-532816910,-420423241,1865709784,1140983396,636687114,-118092986,304935370,1581125997,-204291746,802728318,-201425098,-418047602,1663007448,1828416607,-433608719,858366059,-1541683539,1949165491,1312654035,902881340,-1174628063,-816527944,1790130252,-816660871,-630911227,-1797138324,652388060,366379612,-2109216535,-558840341,-1427895634,361978878,-556608189,-1331300861,-1968427210,-2022712559,-1943983653,-1808325923,-1924722261,242147800,-497956912,999236111,740744350,-92996523,-1109761971,-1992294714,493688176,-620959911,254219368,2121398329,-871715443,1378012182,-1162751501,-371420729,-285858403,1193496055,-1837652402,1080771403,-1800377797,-1373018075,-1939999948,-1131355794,-2056573613,-127808594,-791952350,-466365442,-1332983206,-825410878,2064794759,1456213555,-2125086694,-626454446,-811931000,1936903741,-1012851104,-521641623,-1228882545,110774985,1358177194,312869126,726677104,-1635013520,-825491308,74645467,-162030577,-574264503,1454951190,1661218174,-1275522106,228128618,1474957395,1103603977,-1438558835,1597534698,1237756057,-1061756623,-1152304847,-226461859,-191122441,1236930362,-177949793,-19086368,-1566495739,-1412211860,-1194564574,-432281527,-599380649,2023729576,1521796927,89824747,-97067933,147494265,1715400198,-1622233204,-1852107484,-468300538,2133179383,-1857531934,1212600109,-1294698884,-239690141,1003567738,1547502827,1359536187,1991303975,-757685562,1688005544,785103284,1206264802,302850028,-1467826941,1246448778,-151840846,-1349216566,998976153,-1597107236,558152009,2002932313,-533193846,1204285667,842014786,-2089305650,1975587860,1713497329,-36110677,351307055,-1310016174,-627816902,1865026172,-528789371,651379440,-824580469,-766256210,-969158325,-1701093441,1222855845,767817235,-1320691241,-1446054956,-332873310,438208337,1186557769,-889298085,-330251395,-336598908,-1332025157,851069870,-1846171436,1919167984,844788476,-1199824767,-1345248524,-2048346126,58310033,247624988,634951953,1217190907,171687841,-1240417476,679536964,119009175,-1374776191,849271009,301855736,1650271086,-897453789,31436170,1325716112,-665757693,1390260236,-1447183272,2001444927,1805047516,-450327790,-1663579207,1852865861,-1606308556,360519512,-1809160994,-1274344986,-1261734887,-1161707667,1683218176,174285554,-343490576,282100288,711489419,-1272539801,1656783165,-1933366181,371703339,-301511646,-2130750909,-1118593880,-1993583542,1472422482,-1259436795,1515050792,-764664689,637514440,-2060996573,-770494117,-539132366,-1700014311,204534846,-2000268761,784335553,1227743730,1952821120,-1599353321); -/*FRC*/Random.twister.import_mti(122); void (makeScript(14)); -/*FRC*/count=693; tryItOut("M:for(y = x in let (a) \"\\u1B6A\") {a0.shift(b0);e0.has(h2); }"); -/*FRC*/Random.twister.import_mti(243); void (makeScript(14)); -/*FRC*/count=694; tryItOut("mathy2 = (function(x, y) { return Math.min(( + ( ! (( - y) | 0))), (mathy1((Math.cos(mathy0(x, (y >>> 0))) >>> 0), (Math.fround(Math.imul(((((( - mathy1(x, Number.MAX_VALUE)) >>> 0) !== (Number.MIN_VALUE >>> 0)) ? ( + x) : Math.fround(Math.sin((y >>> 0)))) | 0), (mathy0(y, Math.fround(Math.atan2(Math.fround(y), Math.fround(((0x100000001 >>> 0) << (Math.hypot(-0x080000000, x) >>> 0)))))) | 0))) >>> 0)) >>> 0)); }); "); -/*FRC*/Random.twister.import_mti(483); void (makeScript(14)); -/*FRC*/count=695; tryItOut("\"use asm\"; mathy0 = (function(x, y) { \"use strict\"; return (Math.fround(( ~ Math.fround(Math.hypot(Math.tanh(Math.acos(y)), (-0x080000001 ? x : Math.asin(x)))))) >= ( ~ (Math.sin((Math.imul(( ~ y), Math.fround(Math.log10(Math.log10((( - (y | 0)) | 0))))) >>> 0)) >>> 0))); }); testMathyFunction(mathy0, [0x0ffffffff, -0x07fffffff, -0x0ffffffff, 42, 0x100000001, 0x100000000, -0, 0x100000001, Number.MIN_VALUE, -Number.MIN_VALUE, -0x080000000, 1/0, Math.PI, -0x080000001, -Number.MAX_VALUE, 0/0, 0x07fffffff, 0x080000001, -0x100000000, -1/0, 0, 1, 0x080000000, Number.MAX_VALUE]); "); -/*FRC*/Random.twister.import_mta(1082940340,-1004274228,1803164079,1133222079,-1805573307,2078557502,-177098385,1977678984,2084040098,-1304943743,-801943267,518470433,-1181183082,789584287,-1197865642,-1382756899,-444743077,393387114,-788687125,1052938263,-173572585,1705963572,-953067308,623550164,866317920,459440686,717169227,-1160610649,-1002570374,1580256611,-1600031699,-1825946117,894706796,1401909945,-2038348931,1590585127,-1989652896,1859661000,-263594785,879405019,1601940671,627515449,-1350150998,-1112851521,-725649656,-647297058,681463526,2127114048,1459424936,-1482330531,1999857843,-2107023867,379827432,-215672119,1205065587,825051012,-768891168,563849329,-430585807,102659169,-2108649230,1860840732,1020946153,-1190859823,-1996246119,199362950,-1508686740,1904243186,1063082723,-961913777,-353278299,1639705644,-1204023566,-1177925950,-1427717108,1195731014,876014762,-1845343948,-1458844465,-1942641552,2090035867,1880837637,1411521625,-1693221012,356467693,1134227912,1474128868,2011777938,1877982947,-1375027332,768963210,-1460011452,-1188613931,-2108452408,1345819980,-490655902,1895404502,-481541026,1458187587,-626596782,9382323,1145231792,-1153395029,439398761,821251373,-1417489399,-1154479498,-1672640677,1453637799,-693638643,-2003778904,690613508,718358443,-814524186,-1243574078,-1977850730,-1695800472,-1279429217,2056875762,-353696170,919755497,1242640202,1212374056,-221250053,158111115,1878219223,-41653960,-386357493,497687501,1303282826,-1265332406,-1363832730,-624477915,1398393925,-1221417107,-2131076665,-1201248703,-296896391,-2007370186,-1290748278,817432105,-388640433,-1758256483,296504647,513401204,1997335001,-1052900197,372236421,-1557768245,-1117930199,713757158,598097820,-1284170456,1438975994,404222442,-1715931632,-1117644655,-901161874,255505577,-1546715472,1298997963,-1475865885,1843261457,-492520519,1610759845,-1357518281,-946196381,-1339557260,-1551576847,-1791334081,-2092158673,-1819612616,407419919,-600572224,-440837185,-124989761,2083825422,1891386029,-439598632,-465942196,361259362,-1496451982,1784929713,-296074901,-639260519,-761990616,614471274,450833307,-1146991456,-253714835,-6524663,770909494,-1109069015,-1538760347,-1449578628,520853514,-38288486,-817362970,-2058017834,440216085,460874948,-164060533,1244309293,1431441610,383483274,509565453,77962223,220999651,-1345513246,-128606322,2035854950,573629488,-253988928,-1107011614,621687802,-1469405499,143992394,336095181,-1404239646,649962338,-1104551280,-1187003329,249132660,-560736648,1468048415,-1568382180,1313996198,-1968153078,-115291620,-67814063,-45775787,802805679,-855462433,1748734213,1297596321,-830611753,1078727881,-2003266411,1948617399,316074483,-2130651183,-2087820986,678978883,-1136590917,2002779830,-1076029906,799933108,1032242252,-357824086,-182764933,-329516211,-1616721410,665501561,-852498847,1761432149,-344993463,-1421288893,1283506441,-174354265,1502242478,88392980,-2055077158,-1919852490,-224426981,-1116814233,1982062828,523340491,439196475,1340011988,645506360,-1776110508,1608784678,34216719,1065920215,2117179318,-1600038800,-319330127,-2105697263,-629064239,-437036542,1124980156,787337165,-1460744580,-831352093,1489816827,-508927578,-1162590662,702680778,1438986357,178655432,-1610671172,-144096049,-174677862,591440315,-254505013,743640518,-998223476,716655047,-1319765331,1824849952,-657377232,-438905009,-2070381827,454167481,1228482482,-1481198724,-1504184367,160765557,1147590098,-715196514,-550241457,-533620547,-1159918290,1397260118,-1534551222,-2103550895,-1514015897,1895919076,-1188221731,-1628684675,873858690,1163883577,463083727,875700870,-411856756,1077042916,1559549110,1587770429,-576169589,-993861493,2069077654,860507624,-958727341,1221242979,1095660497,1248535970,-814668147,-135933928,1909401192,850469993,2086229988,2135511339,1090512936,-2099928232,-602656587,233380231,1217939449,1127104461,121004664,-51504813,1606351832,-322601694,1470779994,678760940,1081781017,-183510198,1742404904,538746307,1296229055,-1954097278,1141369279,1813500602,-224636101,1741606453,-1403955999,-194975745,1495112996,-1283423639,-2055078355,-979312542,-1011261322,-231568435,-968219615,1156376219,-2078904878,-1267745076,401911159,-612769513,1607467974,989661254,778267437,1728818617,-2042929560,252174345,-41042600,2043807495,-1521745696,1182240682,-1818880497,1730188895,-1569829749,813521890,-152724706,-142287462,1515660912,-736170851,-1220842995,-1850361686,-1343098981,1365165290,1780762281,-598721776,-1352623616,1170970773,53923434,-1807483724,1263488956,-1080884667,1716622488,-513372616,222560877,1744034095,-931364298,-1588139483,2104838471,-822357882,1312911758,195446356,1736689920,-292183993,-1365041077,833776599,-379893216,-1463433523,-2055099879,859109800,-613981749,1580102495,747110364,-1791851745,-2042547845,-915389056,1499998945,898463751,-907866565,-1176602963,1550274939,-1094898017,1722751827,-1100290696,175281297,1654503886,240839174,-1214726061,2098790854,673011908,-883205282,1348092033,1135006235,132293971,665765634,-992992803,1821927377,142541884,-721932611,580775018,-2017077114,-1793038780,1572879952,-1790670606,257756260,-1445581507,2081646865,1088877764,-439608132,334036979,-228114894,-1596958495,1794302253,-368014501,1711630848,1596321635,-1232202067,973478284,851645044,-1916139040,774567241,1316521365,1749601413,1291246322,-55709474,1895947190,-1381782788,431317685,-177494702,2041809598,907435611,-1196482169,1020379805,1227967601,316084074,1579920707,318695281,-1131715621,1698953931,-2021207287,1938819214,-901478843,-1242472483,-182338181,1137144323,-899463946,990160474,1222948447,1594910322,-375502126,-363590204,197156654,1558636878,1316266840,-959007470,-1511580750,-121611624,1533524436,1946850295,-489487649,-1154822134,1034935024,-570288724,-2015832754,874870113,-752378310,626360880,1237958610,1335029634,-1976798860,990858053,471604643,-172892511,1295160966,-1179938230,2032478839,1566440402,-1085282320,137284242,1048993752,2135340345,2027369669,859925237,-1574415481,1040342091,-753033612,732644556,-156741089,-815452546,-804994806,1694066183,-531424894,-1205443916,-1804381415,-1248231758,-1282086554,908475957,-1997330495,-453545146,1642060025,736244202,245656276,-233862806,-1618485628,1076913161,947676457,1397103836,1246201362,-1609744030,859536785,-368752002,2067295594,-189944452,-38718198,515951703,-954438357,1504275749,-769982227,-853424814,-948846889,-200220497,1854958191,1351431532,390431903,267876516,-178604089,-1671363764,1929650948,-1028522749,2022279633,-1189965301,-1822114628,-2111349561,-490961503,762332569,-1505466738,-1369087220,-1703897097,2011753728,-139980371,-1064218341,-159760498,-1168454931,1249292091,-940106505,1820237203,721852478,-974142787,-327530746,-2035869128,1683277330,1794457864,216669328,88386613,1646332829,1303584704,724426339,1054304302,-1233737768,-59201258,-1283601140,-462014828,-1391017426,948775585,-753783453,1617293744,1564719945,-679655465); -/*FRC*/Random.twister.import_mti(57); void (makeScript(14)); -/*FRC*/count=696; tryItOut("mathy3 = (function(stdlib, foreign, heap){ \"use asm\"; var cos = stdlib.Math.cos;\n var acos = stdlib.Math.acos;\n var imul = stdlib.Math.imul;\n var ff = foreign.ff;\n var Int32ArrayView = new stdlib.Int32Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = -1023.0;\n var i3 = 0;\n var i4 = 0;\n var i5 = 0;\n var i6 = 0;\n (Int32ArrayView[0]) = (0xfffff*((-0x46ad7f7)));\n i0 = ((-((+(~(((!(/*FFI*/ff(((2.3611832414348226e+21)), ((-2.4178516392292583e+24)))|0)) ? (i0) : ((-2251799813685249.0) != (295147905179352830000.0)))))))) < ((((yield 5))) ? (+cos(((d2)))) : (+((+acos(((Float32ArrayView[((0x983f4728)-(0xcd075414)) >> 2]))))))));\n i6 = (0x4f859643);\n i5 = (/*FFI*/ff(((d1)))|0);\n return (((imul((((+(0x5a1018ab))) ? (0xfe043d47) : ((255.0) <= (-68719476737.0))), (i0))|0) / ((-((i6) ? (i3) : (0xf99b7bbd))) ^ (-0xfffff*(i5)))))|0;\n }\n return f; })(this, {ff: void new RegExp(\"((\\\\b)(\\\\u0012?)\\\\w\\\\b)\", \"i\")}, new ArrayBuffer(4096)); testMathyFunction(mathy3, [-0x080000001, -0x0ffffffff, 1, 0x100000001, -0x080000000, Math.PI, 0/0, 0x100000000, 0, -1/0, -0x100000000, 0x07fffffff, -Number.MIN_VALUE, 0x0ffffffff, 1/0, -0x07fffffff, -0, 0x100000001, Number.MIN_VALUE, Number.MAX_VALUE, -Number.MAX_VALUE, 0x080000001, 0x080000000, 42]); "); -/*FRC*/Random.twister.import_mta(-1281079732,1128551315,-376194966,-115578924,-1583212145,215020136,1060890321,1026373819,341269931,-1168222227,1776824074,2057166163,803615272,285802694,-1473179874,600495044,-353393648,-872205587,143796306,-308642214,2037464654,1142646122,-1140789459,-1217242245,1006840512,1695312858,748963905,-408988508,-987484218,1379887874,-1900813955,1982721514,637373084,470360090,1059047116,1574702545,1122070115,1758417035,2061735327,-355321861,889589340,1902915846,2042087544,1613573909,237517345,1511378293,-1996728333,1449625234,-1563992267,701128664,-932815012,150407279,-1485268760,-581985180,-599358945,1166914721,-1044750117,2128247418,-124098939,-2031251201,-497717046,-626672133,281955781,-757832329,-332977666,1864026919,942066749,1667891474,-1447730933,504839615,-804409609,1995236948,-1225414598,863373318,1015503680,-1399496456,856112406,-11647796,-875504680,-915672869,-276983224,-615419274,1098868036,792388087,1355588434,-2041766130,574736252,1536477948,1857475840,1627186974,-1395401051,-112530904,135824533,2060240332,1867201266,1786916506,-1926413836,-1757520715,-1428840160,-1428214648,-395973987,827958359,556881168,-1028234166,1185586733,1721541473,-1614101203,-1387612418,1539641099,-1373868912,1599383980,-796460476,1775046443,-1675166349,-521590279,-1246344404,-1682852924,155591822,-676953612,2034978209,413617493,-98321480,666344300,-375681157,2111209998,462927532,-1531093880,-1739631941,-1392823503,558173408,1262933392,31126252,-1114193797,993685795,-1605323189,-1738115027,1365347091,1275212169,1728970909,-1106082062,-709530435,-506442908,1945552379,827239665,1905482311,-1841498530,615977602,1207874884,396537665,834465524,-243268020,-1583551456,-23998236,-1181579705,-1085762962,-241204574,-304641546,979540429,1882761121,-732164016,-2086087814,501858749,937243527,-1455830140,-1224859411,-1450986446,307526440,1757911493,-525403695,850125366,855447670,562119588,-743912854,-183185065,575847083,666058402,1934463332,-3676738,-1251173775,-1093349346,2113310806,-1129026709,-1184885515,-99804105,-1676620077,-835647367,-412940778,-547300525,-1712228808,1607735888,-979554777,98407820,697304524,2042417703,-373183861,-1866562879,-36400124,893549803,599667832,-852663431,1416551956,1179068836,1625270110,-862281166,-94797750,-1336089322,1517381011,-73610377,-91367937,418943265,2079142672,881077104,1514571716,816190048,-1064371075,1869040966,-1378096361,-1605359703,-1356433241,-1402389436,568419412,-361072364,398770589,567988147,1898430526,980108698,-769300270,-818666686,-1481212444,238668447,939015388,506199999,-507147723,-2137486882,-2095356145,-310778096,656059768,-1963828594,-352446091,-1234245345,1355690085,1694862688,-1528685370,-1858053301,-739395078,1598368008,-212263812,1277639323,-1482798968,1394975316,-123519100,-153172573,-627890123,-1043181132,1260391647,159969848,-1384662183,762747377,451468989,660596758,516432247,2044163799,-1113882877,-2057388913,333357309,-327950299,2127317689,317289654,1649468314,1923519058,266281606,-1775925383,-589746495,-1209754584,1178020522,1303665586,-235134705,1009676651,2047780206,-956403146,1395772253,-936254175,-1145287409,886355577,1309625001,-1514125928,-769878118,1371494447,-537479777,523354139,812152783,-1762887245,-1481494747,-1723581689,893618161,-1946859059,-767284861,1370481534,9332292,-1700973534,-661269634,-406595871,2014631419,396078799,-325771918,32739567,346671934,-850462559,-235009607,-1209128900,-970285706,228730309,-269934427,805669593,-2083302389,-1520526228,410800620,692975636,791954889,1377011668,-1049899249,-74545590,1889222617,-1097561678,-148409401,-2068853893,478553673,1605990023,-902798131,1553504859,-619494722,-53521573,-1678685297,644172826,-2004933585,-445305710,-705788772,666057368,1356257455,1474405593,982181177,-1063854611,-1260610944,1823677249,-692447086,1793200855,-1043012968,456948841,1566312398,1214834304,-537316886,369339171,263011930,495499739,-1563902178,-552186459,-1471941922,-185658352,68786477,1184728187,221354110,1453833,1921626088,-566128196,-1355091287,192990735,1054504729,243082100,-2097136811,304772544,-782280248,-1950418808,1765946828,649864299,499739170,-984594139,-2063028576,-1637349457,-1126012925,1890112941,320856132,-1135264422,789889657,-753838246,-545052015,1654564817,-1217931387,325806242,-143574451,-1075665635,-251173259,-1920144030,-767436033,2139088912,-608149676,574356488,2054241891,-66232476,1227760081,2142394849,-616772385,1977808811,-597802441,1926690385,-169468956,-791986769,940958179,249453082,-1945686921,1724556572,1358708863,-1204908088,127061428,13701738,-132304112,-19804417,1510422906,-161690969,-1415580304,-406248138,-1200793837,-580120677,1574228344,639431127,1826095167,-1761266622,993192457,1110254074,-707340044,-1158181060,-1474133774,266675685,865266122,-410496431,1048264958,230083997,-1632717135,-1850601882,733043148,-2038989485,32034439,-945583746,-308044368,-749245452,-1268872245,-1970547448,1565306075,-1724203642,1887673186,68395548,-1699057790,-1637661943,1045743492,1632751443,-1636117129,-1537961561,1151990205,1494754292,344570822,-1502934009,226176927,1679450968,-854942350,368878374,1510905256,-741505428,2131654064,-1128271828,-922388462,-673142330,668605477,1369571955,38151630,-365390522,1254243947,1770226419,-317632447,1435494681,-794449702,-456798118,-1185760145,1576130977,-598019139,-1748866576,1370447022,-1729412785,-1577007094,-643272474,-1001955280,-1259276106,860084977,-2086050918,1799282967,-1788541181,-2010993171,463005661,-829660753,-869319241,1975380251,607266591,-1831518637,464877959,-254889918,-562818506,148984834,254059404,-2095161951,2101526522,-284445555,-1730734202,1713847200,846161893,-931948174,1896967870,-102864481,-2107384422,1105603939,527007001,-721415404,1688741194,-1328024550,1743341289,-1357801948,-175284670,1421466564,-1006537927,228297260,2068155633,-2124767838,1690377438,-234779861,-1036263269,508846871,1354673783,-770844851,1465246714,311231105,1182963923,-2051097383,702594655,428557795,-704186771,117573052,2144257747,1095735441,-1002420715,1647971093,-1653014955,683646745,710377600,-413205247,893180930,434038852,1862115306,-1235342812,-540967880,1540009777,-501971445,-1291011047,1658964308,-1554788783,-1579406783,-1068044389,-974642131,-416926577,1708424592,712872556,14431111,-1102166168,1655983220,-701129461,593895135,-622386562,-1488715727,-510913571,-1101215930,-1507302552,-138433700,-2069243469,139887112,-1104325913,-319275336,-1500226521,269728896,295919655,-2120720137,254794277,-718633278,-398402298,-1120322053,-849108229,-133676241,-542100181,1160642969,-1398695043,2051023623,1763142151,360352865,2005737418,-743371928,-913581443,139077181,2125404324,-214594269,-583300429,-825750774,1171420457,359329292,671079327,-2029193368,-171386694,1394439551,2113213382,-1403222935,1834433577,-1362109237,-841367977,-1483995294,1220724973,1656781969,256708808,1818833455,-1869746372,597892421); -/*FRC*/Random.twister.import_mti(138); void (makeScript(14)); -/*FRC*/count=697; tryItOut("\"use strict\"; mathy4 = (function(x, y) { \"use strict\"; return ((Math.sin(( + Math.imul(Math.fround(Math.cbrt(( + (0x100000001 && (Number.MIN_VALUE >> Math.ceil(x)))))), Math.fround(( - ( + Math.pow(( + x), ( + Number.MIN_VALUE)))))))) | 0) && ( + ( + ((Math.abs(((Math.max(x, (0x080000001 >>> 0)) >>> 0) | 0)) | 0) ^ x)))); }); testMathyFunction(mathy4, [-0x100000000, Number.MAX_VALUE, 0x080000001, -0x07fffffff, 0/0, -Number.MAX_VALUE, 0x100000000, -0x0ffffffff, -Number.MIN_VALUE, 0x0ffffffff, 0x100000001, 0x07fffffff, 42, Number.MIN_VALUE, 0, -0x080000001, -1/0, -0x080000000, 0x100000001, Math.PI, 1, 0x080000000, 1/0, -0]); "); -/*FRC*/Random.twister.import_mti(355); void (makeScript(14)); -/*FRC*/count=698; tryItOut("mathy3 = (function(x, y) { return Math.atan2(Math.asinh(Math.fround((Math.fround(( + (( + y) ? ( + x) : ( + (( ~ ( ! Number.MIN_VALUE)) >>> 0))))) ? Math.fround(Math.hypot(mathy0(1, ( + (y | x))), Math.fround(Math.fround(Math.cos(Math.fround(( + ( + 0x100000001)))))))) : (( ~ (Math.min((((y >>> 0) / Math.fround(x)) % ( + ( + ( + ( + 42))))), ( + ( + ( + y)))) >>> 0)) >>> 0)))), ( + Math.min(( - (Math.log(Math.fround((x - (-0x0ffffffff | 0)))) | 0)), ( + (Math.cos((Math.exp(Math.imul(x, (((y >>> 0) < (x >>> 0)) >>> 0))) >>> 0)) >>> 0))))); }); "); -/*FRC*/Random.twister.import_mta(78104178,2112355812,54290955,317026503,864718495,1523253632,-179774765,1724188142,1424795270,1289877094,-1432877972,-1678494365,1850615167,1155844080,-372513238,853876668,-2606141,-1135335623,-937627182,650094173,-732858350,748106297,628668500,-429079949,-269862282,-762428025,366173061,239736796,-31817277,-1520194968,960222991,-953672262,-1259135183,-1213373548,-1207725102,-1947537884,1256671947,-1711129874,-1579718977,-1003638369,-1459349787,392871408,795433478,-1611373752,1939988251,1893009046,-1201362755,1010144398,-563152156,2038399861,1145669998,1665128214,1790209070,1838259794,1705847174,-2021570762,507310702,994006762,2116741383,897794520,-1388163626,-974770693,369725027,2070461280,-1969244652,1209093043,608805807,-673409550,97429612,-838856172,-943095034,-763384817,-1906594363,966373765,1206432271,1539685189,-710953184,791303047,-1807824319,-1699767963,942100514,-1340466568,1783631998,-1858802234,1591170598,-1921380349,-1173877618,1727280686,-1466617152,761370503,-1525873166,423858853,-1986618800,82200456,-1226279721,1839743469,1207081350,-582451843,1324839321,599139390,227237699,1696940947,90772794,1753792922,-1309435672,1713594891,-1999550135,-66362536,405444036,-323745417,1426178776,48595911,265083360,-1889853565,1756643955,-2052374384,900889849,-770889371,1741605781,-725796074,578330821,-2032410974,-915582424,-834882275,1780653503,-1118881696,547506112,-1681067389,-1801194167,674816228,2074670471,110710080,-1605069680,2065785041,385903698,-269740479,-273217940,2021812188,1214029955,-513866752,912964961,1699573499,-1471194888,-1203087329,-552039102,1431932157,1546755185,-745111570,-593612433,1526335539,-843675579,1475835755,-275352708,-1191529418,1307778387,1865755839,-1429969965,390777131,-168856560,438224524,904451594,837457157,1987914902,1629777656,-182587304,-1988308465,1753438224,1316616376,1015123083,855842391,270307925,-1751506339,-2127129600,504656001,817856910,-482219316,-1733823762,573763130,-516509879,-657249469,1894592054,1091658518,-329728820,1764590929,317196891,-718938324,-424975882,1566300987,-294490657,-1259733527,-1748743164,-58138656,418374711,1619773281,694137488,-1587904727,-2037936333,-1115782847,-975297948,52430093,911808691,1206045797,-168011151,-1264117160,1348752566,-1969284430,1475565639,964022419,465367877,2015685793,254344116,182229117,-1621098920,1283921499,615437276,-233810286,1702635362,-1546866523,-117751063,-1658254211,-1833878552,-1708648196,-349852777,937357527,1901891810,-1180738731,1144589540,1467807872,-1544312716,415265893,-2064105529,-1704920230,445072751,768465291,276428390,123859002,1234754337,1190115337,1506537779,-1625191022,1986396480,-71636919,-481459514,-1775311042,-738806851,-240091156,-643527729,-945922986,1158013715,422127510,67833981,464199347,-1301844643,-380900043,177106624,1906961584,1792038479,-1387853682,-729290319,580894549,307128352,1069980812,1347223740,-1711232406,892566051,1203368764,-849802300,-1741920472,775550169,679922501,233705515,-2067400540,723994754,-612418072,451918167,2140691132,-1101001953,2035211225,1077997069,-1708902049,-796795875,-1585725474,1155771605,-1607211035,702510118,388276938,-1001104112,464627654,326532393,-1758132901,-384419994,1078858073,-1648630033,-404696952,1261339083,-169603982,-1495800917,-946950108,-550423010,-502184838,-747574742,-1561696211,-922690307,-472565351,-153408721,-1637208098,620778986,-640621535,-336785818,155541189,1324175355,-265587029,1282434480,585700948,878409752,-458548682,969370509,731879369,810176847,808176904,2032207021,1470979044,1927415092,-1519808326,102180895,-1715678622,-1788727390,-1315185158,-1839088031,685814885,-1880631064,1694731760,890356742,367422337,-1900940015,1927141258,-1083337669,-463331760,-1340219020,-1954473053,907592106,853151539,1794801135,519008432,1047826641,1193589465,2864637,215393058,-1561350686,-426652963,473288787,1844707986,713282642,835065935,1833919630,-1065219034,1380936428,-1599305266,-1126219870,-1496557393,-501037174,776256422,-1060315489,555929575,-1538609148,-835114032,-429812294,-1360916460,743986203,-2132741092,-40557477,-1413900380,-552653289,1389701472,1748429731,-1642437057,-1933132997,181341339,-1230262942,-434535586,-1496307045,-2089694032,1186826002,1544373828,-15914468,2002005773,1403744989,-1755776013,-149719212,-1745473677,669128777,87404024,-154982905,1164146618,526649020,-1733188763,218477029,-310168990,827047538,899695280,-34751605,-2020077494,52568379,-1571487972,-748699598,607448935,-541325746,-270137134,846475672,1563307052,1966785205,1361144961,-716351975,-626657154,-1153725285,-2089684638,382675045,-1039419716,-1888727685,-573440159,-1758105485,1203100204,727496477,702758899,-1224991904,22013887,574002672,481457353,446237691,-1578296824,1784494197,1236082771,542344005,147781688,-1499068798,-1914496830,821947282,1525700434,-1863346677,1185098180,1867961060,1384062212,-1682185368,-1503931816,-427206111,257270875,-1850453314,-353307047,-1742616078,-428303274,-504897140,779547424,272567331,-770910592,-1671561076,1487922293,877421983,-1900223964,274582918,-986553729,532736039,922532063,1302307241,1688179189,1862892351,642567147,-2122418812,316980553,-1874150230,698891275,670521048,-757751462,-995347121,634201125,1784098288,-360317972,-353999931,744080400,1774843550,2009498549,515617082,-1112823871,977852488,34076696,943331574,-2054713932,1313572646,1886246968,1707008215,-1864082149,-1680598105,-643515785,-737951646,272690669,1290314777,-1871219503,-677780159,-298298247,265575412,-1153079436,263008756,579395958,279073703,-99573474,2128382495,-658018302,-461019486,2114762372,-317705187,938488069,537715912,233224351,1873548693,1639176448,1518356747,-359802041,25758472,-1013563668,840565756,-2049958686,219988771,1554402009,-1893555373,-863302071,2089204071,-1711475960,1186673373,-740449029,-796203454,1762175415,465598731,553233019,792578106,-1794240877,-1300621860,2074296313,-1291017613,-717577912,1037277531,-641894498,-1864180291,2010806982,1111804288,-2140661990,-1867054052,-664804326,-1482751235,-1267303426,1116117924,-666514581,-524613,184048701,-1363010153,-1907541328,-562338842,1720473894,-2132654145,1332295227,343107930,-1112501263,-603926914,2006069763,-1994295997,1442201251,-1769463656,-1524422590,317174463,692052510,1132472585,-655883339,-699085056,319226350,-1920071138,-370864948,1408811137,-235168682,-1655824525,-949384107,702497686,-1398944258,1203373843,-1492256190,-2004102554,-1013552608,963119466,1648386671,-1940317234,-1778210551,-372206204,1064681277,-1003594065,1385830990,900111299,1765402843,1254797640,-2116333113,324338419,-967595074,-2107567600,583169014,-1879536991,1466001393,1049104497,2069089981,1839925534,1296705321,-324209576,740784011,-2131249404,1012525903,-1400157148,-1040735233,-126689818,-1140302826,423077193,150411424,-1003475774,-628372256,-1386405009,-244994461,-362848654,388165922,1349033240,257315548); -/*FRC*/Random.twister.import_mti(97); void (makeScript(14)); -/*FRC*/count=699; tryItOut("\"use strict\"; testMathyFunction(mathy4, [-0x0ffffffff, Number.MAX_VALUE, 1, 0x0ffffffff, 0x100000001, Math.PI, -Number.MAX_VALUE, 42, Number.MIN_VALUE, 0x080000001, 0x080000000, -0, 1/0, -0x080000001, -0x100000000, 0x07fffffff, 0, 0/0, 0x100000000, -0x07fffffff, 0x100000001, -Number.MIN_VALUE, -1/0, -0x080000000]); "); -/*FRC*/Random.twister.import_mti(129); void (makeScript(14)); -/*FRC*/count=700; tryItOut("testMathyFunction(mathy5, [1/0, -0x080000001, -0x080000000, 0/0, 0x080000001, -Number.MAX_VALUE, 0x100000001, 42, -0x100000000, Math.PI, -1/0, Number.MAX_VALUE, Number.MIN_VALUE, -Number.MIN_VALUE, 0x07fffffff, 0x100000001, 0x080000000, -0x07fffffff, -0, 0x0ffffffff, 0, 0x100000000, 1, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(161); void (makeScript(14)); -/*FRC*/count=701; tryItOut("a0 + m1;"); -/*FRC*/Random.twister.import_mti(173); void (makeScript(14)); -/*FRC*/count=702; tryItOut("Array.prototype.unshift.apply(a0, [b2, g0, b2]);"); -/*FRC*/Random.twister.import_mti(200); void (makeScript(14)); -/*FRC*/count=703; tryItOut("s0 += 'x';"); -/*FRC*/Random.twister.import_mti(209); void (makeScript(14)); -/*FRC*/count=704; tryItOut("Array.prototype.unshift.apply(a0, [s1, h2, /*UUV2*/(d.toFixed = d.add) , (this).call((function shapeyConstructor(pthlfd){if ( '' ) for (var ytqtzbbur in this) { }this[\"length\"] = \"\\u8DB2\";return this; }).call((function ([y]) { })(), let, undefined), ((Array.prototype.reduce)(\"\\u97D1\").eval(\" /x/g \")), [,,z1]), e2, b1]);"); -/*FRC*/Random.twister.import_mti(503); void (makeScript(14)); -/*FRC*/count=705; tryItOut("testMathyFunction(mathy4, [0x100000001, -0x0ffffffff, 0x100000000, -Number.MIN_VALUE, Number.MIN_VALUE, -0x080000001, 0x0ffffffff, 0x080000000, 1/0, -0, 0x080000001, Number.MAX_VALUE, -0x07fffffff, -Number.MAX_VALUE, -1/0, Math.PI, 0, 0x100000001, -0x080000000, 1, 0/0, -0x100000000, 42, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(535); void (makeScript(14)); -/*FRC*/count=706; tryItOut("s0 += s2;"); -/*FRC*/Random.twister.import_mti(547); void (makeScript(14)); -/*FRC*/count=707; tryItOut("/* no regression tests found */"); -/*FRC*/Random.twister.import_mti(556); void (makeScript(14)); -/*FRC*/count=708; tryItOut("\"use strict\"; mathy0 = (function(x, y) { \"use asm\"; return Math.tanh(Math.acos(Math.fround((Math.fround(( + ( - ( + ( + ( ! (( + Math.asin(( + 42))) | 0))))))) >>> (y ? Math.fround((x >>> 0x100000001)) : ( + Math.max(( + Math.fround(Math.min(0x080000001, Math.fround(x)))), Math.sin(( + Math.sin(x)))))))))); }); testMathyFunction(mathy0, [-0x0ffffffff, 0x0ffffffff, 0x100000001, Number.MIN_VALUE, 0x080000000, 0x100000001, -0x07fffffff, 42, Math.PI, -Number.MAX_VALUE, -0, -0x080000000, -1/0, -Number.MIN_VALUE, 0x07fffffff, 1, Number.MAX_VALUE, -0x100000000, -0x080000001, 0x080000001, 1/0, 0/0, 0x100000000, 0]); "); -/*FRC*/Random.twister.import_mta(-747582320,-1445119064,-1512420852,2099268635,-1426222966,-1601241971,-784957973,-114715791,38016084,-890239880,991208124,-597978120,2136756180,1105146272,139715423,1940519719,495409981,-550112142,1227264659,1021809772,222863231,-1647308463,2012163719,-524260024,-1208334288,-121787904,784741405,284814174,1409168011,-408695128,1059486228,-639093572,-96752702,912060828,207116097,-601319681,97510735,1866794242,1996320978,-42512321,289737130,-2024064248,1230575712,-1886483018,1779801679,511772649,-129951713,-910284973,-354233026,-1282370039,-613474862,-1384382491,-793750657,-751733425,766922939,1596028180,-812417547,977519824,1114522777,585974644,1967604742,-1034831256,-125419569,445592365,-872632871,-961298271,1332861708,770584329,21807841,-493177849,-489432175,1315953303,-328444906,-1660174592,1715457063,-295440673,-347030215,-113182705,1054508929,-1225405484,877971756,484572833,2136798550,1909463593,572399391,1733090831,1904075535,745570710,1245705896,1556940255,-1513840203,1635102207,-761823521,430477587,913844830,-134574943,-1477680244,-1298420726,-2119407922,1213528639,1168262511,224448873,-1895757895,391445888,-929963860,-1916647460,-2078994254,852082941,2006303846,-1912240178,-428423240,-352954131,-1454043621,-849447634,255006935,-1401054410,-776077971,-1334862818,-1059895604,-910300235,-1057238595,1454156520,2076636851,-519750365,1107416809,-546078541,1483065303,-1344277732,-840924294,-496502591,-795803045,-1063212022,-1919899392,272650018,-1912139388,1491487500,-380682883,257750338,1259126265,1899056156,2123671274,703870247,479259470,-9528548,-2072114073,-178997401,-1448924947,1743826036,740970716,407696896,1183150228,1968022042,-2076667536,442573,-1536525635,581475489,1558245114,-460531218,730020448,-1709822790,-829109146,793640721,-1927109491,-426887598,-1440420901,-43984565,1925890815,297817602,631904182,-2082387126,-1141226513,52126473,250252074,-838135865,581432456,-1042418839,-1191412783,-93640710,77248808,-449279896,-404668962,536026608,1090764681,-674843935,-1918954028,-69311843,875771746,-1755738278,-1589892028,-944030260,-398014727,1018156864,-1774654382,-796817433,-616590075,-269620091,-1366419292,673554554,1497621406,-1854849419,2091547987,563580919,2022833882,-406150918,1378806440,-864482163,-18770389,-109199261,-397352538,-348616318,-1337881750,-1890039768,-1022177091,-1092868662,-117471050,-1966289321,887534747,-62737182,-546623935,-1922518730,-1751138146,1103578747,864184023,-755952125,-1830425513,846469994,619196060,-1031202646,2092282181,1051649328,806367670,2125890274,794861719,-653621544,-90608788,-1082078949,1888446627,-1896224006,-741649103,74403700,-452266661,2046108220,952010936,-311119300,-1477588092,-1124309077,1596504647,-155001303,-1857781094,-320727450,1948078798,935415361,353430597,1803617149,674045190,-6379149,-251639057,-865255917,296704969,-216227886,700432346,612292383,-785857590,-966858623,1285160092,1347548464,-1319017557,-548322535,168881781,-693722966,-1913884188,1065761294,859740445,742290539,-160298483,1826250862,1446988602,1648876043,962679701,569904558,-2087933280,-691063282,-701483463,-1686321178,835818933,1615096337,1865781399,-436942259,1354991642,-1945295748,-476017826,1546251889,-1253857051,-1276237002,387721520,-886078485,-2124551147,-1924448098,1063745706,-2049695485,1433811913,-1682500986,109167308,154507377,-1233784864,1817881972,51710235,1101155871,-1051991780,-1054678412,-791866973,1143352775,1983403301,1800429315,505744525,-1881869391,-804618524,619264461,2036353915,1997491286,847133921,252258500,-447855364,2112833372,-1102723781,-887262945,278467778,-1785058688,-1072153724,-1997345843,1708473208,-770112849,507101891,440752869,1269246776,-248791388,-63665946,-1099417854,910058979,-229019954,1295762024,-1555654913,-1559616658,1468990938,183857581,1506684141,-808011228,-779352244,-1125318823,-1395347899,-671138710,1463827648,1587035211,1858237840,-1885407985,-1530448372,-231621594,-1895916150,181284994,-58602811,1197609713,929680916,-1853907936,-76913281,1749049514,943486756,641745942,-1313850312,696536873,-78460484,-1431154482,1928407987,-1673649193,78704099,-235589708,-213795426,-1004289902,1573955109,104948661,1314403554,1102980757,-952846028,212746115,1667660788,103710391,-1688325167,145940892,-1256359988,-37857161,1205540982,-468393810,139315207,-1613667690,2105065889,-2070923409,-98533477,-1256140165,-480273194,432751185,-1458248144,-1916336158,-96578358,-789082905,-783049784,830070934,725924367,-1832154111,-1092934382,828640230,-493457908,1717482622,1043402247,-1769169246,-257539600,-689866773,1934821545,-423696750,922243227,-883976145,1152050356,-1285854479,1469677140,1645527971,-1242557164,-242556038,1213770086,102806734,-387037071,828441331,-1799892417,1511292940,-619734059,-937529199,-307063446,-1081324542,-1339157393,-968842709,557772976,-334897974,-189154865,-1746687160,-182290174,-639555717,-559240876,585160208,-676264162,1628994245,-611376025,855312464,1131517457,-2050330733,66247321,460484650,1791438554,936794703,-6605995,972067874,2017384309,-987299070,-108501925,1534880360,1163791207,348631358,-570202653,81215440,-747343885,-736780017,-315643122,-1272345370,725951444,-1004641647,1555259900,1997686118,1778592959,-1015012385,2101281703,-1160842130,1090103681,-1792360636,441267416,-329490366,1963553058,-23243393,-316848492,-827393847,1988794458,-886410290,-2107080850,-1258010291,97156806,864290149,647503021,-2122763495,236814712,1315064238,-120280054,951204425,-905552866,572819892,1961361895,1031406800,1730908929,1372729569,-1336295702,1311007242,1260642500,1593726700,738984049,339713619,-969522083,75967350,-1626394720,1352500881,-612563763,1236965169,268897694,-1379517686,-1163031904,1589764096,1791326635,79019653,-1987721146,878883856,1712717945,-2118829798,-986558181,892486561,1026771176,1983641218,-1838592362,-2143158893,-1578431491,-2811166,1512571893,-1518640836,1103429882,-1413500208,388787665,1761121800,-1488876764,280846944,1057450061,-1881081796,-1739457302,1220987840,-1280869670,758411689,1396535603,-1172079186,62720894,-1583621731,808221487,-1942229945,2141496625,-421788141,1499572356,1984872463,1877774293,1439300488,1882826236,-125504709,-700505786,47714602,-143615830,-320232669,-431682461,-423190591,-168597965,372910074,-937409298,504137005,204633250,758950539,1059220155,-378418841,1799569471,1449711792,-2096063071,1091492415,-1538420963,2101643441,-874832836,-989068516,-1366968173,651566178,216186213,780676766,864704563,-237264555,710935464,-1842911144,-342123116,-1784138858,52763826,676668420,-114917745,-663020445,-343746106,596644424,46847576,-167186748,2008651603,1474357791,-218741731,-495123090,806820249,-2126299144,1103494423,1113164,451647889,-1701504300,2048331844,-983949862,-585006105,-1318650980,-542749162,715062790,733135302,-369643543,-352399953,921286960,-1398507037,-41199883,-1667713997); -/*FRC*/Random.twister.import_mti(117); void (makeScript(14)); -/*FRC*/count=709; tryItOut("mathy4 = (function(x, y) { return ( ! (mathy3(((mathy3(y, y) || (Math.cos((x | 0)) >>> 0)) | 0), ( + Math.max(( + Math.max(( + (( + y) >> ( + Math.log2(Math.fround(Number.MIN_VALUE))))), y)), ( + Math.fround((Math.fround(y) === Math.fround(mathy0(x, x)))))))) % ( ~ x))); }); testMathyFunction(mathy4, [1/0, 1, Math.PI, 0/0, -0x080000001, -0x080000000, -Number.MAX_VALUE, 0x080000000, -0x100000000, Number.MAX_VALUE, -0, -0x07fffffff, -1/0, 0x100000001, 0, 0x100000000, -0x0ffffffff, 0x100000001, 0x0ffffffff, 42, 0x080000001, Number.MIN_VALUE, -Number.MIN_VALUE, 0x07fffffff]); "); -/*FRC*/Random.twister.import_mti(335); void (makeScript(14)); -/*FRC*/count=710; tryItOut("/*oLoop*/for (var aigyyf = 0; aigyyf < 111; ++aigyyf) { o0.__proto__ = g1; } "); -/*FRC*/Random.twister.import_mti(367); void (makeScript(14)); -/*FRC*/count=711; tryItOut("\"use strict\"; mathy5 = (function(stdlib, foreign, heap){ \"use asm\"; var ff = foreign.ff;\n function f(i0, d1)\n {\n i0 = i0|0;\n d1 = +d1;\n var d2 = -1152921504606847000.0;\n var d3 = -17179869184.0;\n return (((0x602d8e93) / (((0x574e303b) / (\"\\u7BFB\"))>>>(((d3))))))|0;\n }\n return f; })(this, {ff: (function handlerFactory() {return {getOwnPropertyDescriptor: function(){}, getPropertyDescriptor: function(){}, defineProperty: function(){}, getOwnPropertyNames: undefined, delete: function(y) { yield y; y;; yield y; }, fix: function(y) { \"use strict\"; yield y; continue ;; yield y; }, has: '' , hasOwn: function() { return false; }, get: function(receiver, name) { var prop = x[name]; return (typeof prop) === 'function' ? prop.bind(x) : prop; }, set: function() { return true; }, iterate: function() { return (function() { throw StopIteration; }); }, enumerate: function() { return []; }, keys: function() { throw 3; }, }; })}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mti(546); void (makeScript(14)); -/*FRC*/count=712; tryItOut("if(-21) print(22); else if (\"\\u2689\") {v1 = (h1 instanceof t0); }"); -/*FRC*/Random.twister.import_mta(-1213136638,1260808023,1317826786,-1732653145,863083091,560202445,886039215,1885072060,238860339,-817767073,-1862865682,1321872396,-1032194340,-75500274,-1628617909,21464035,-549667895,729452157,1830863519,2031229426,-1592203028,699449267,1959449104,-391754007,734505812,-1400936078,-1114840901,1098730208,2072596018,1504938436,-1004907985,1283249938,-812012815,-986702989,1813209205,334574313,-636479509,-2064452501,396168367,-1897781506,580087092,-2002431750,-209780972,2078397616,1667910185,2093554603,595397154,1469168783,393346245,212857900,339372874,-1012166352,-1277059991,1243215633,744644627,-1514963441,937872562,-1880504100,-286420241,55784993,1494616641,543992890,768036114,-410350501,-1089512472,1937726648,1375519416,-1652953473,2066842927,1014299672,319878810,-2111854867,1707146324,772355165,-225827252,-1682789595,-1884561305,98947264,1715856973,-521891592,-679352818,-1434139153,-1146255085,1683742482,-542658822,1596658727,-81459617,-340720739,-1041978774,1086362571,1809455438,88557309,-803830128,683151434,-2073171422,-762379553,1464883069,246708937,100032970,-2090096607,1438549109,-1129530697,1061322535,422769798,566931695,332970168,1882582603,1978564665,1277240099,767898928,-1065378600,-643978879,-1600553270,-636086334,-1993219525,-1588868872,-2092250430,701707351,-305051493,1421042443,-772022316,-97899642,-1018210331,-54663890,1060419776,-1051138268,1912207863,-414877529,755572132,-999132589,1566777069,821273090,-632723193,-2025687727,-845664645,1383740547,495352148,435523359,2036180724,-1795825243,-1696675939,1722868655,-1728657750,-880094068,-593132767,1111088277,-341202224,1590944686,-1082064422,242665955,1771806782,-1203817194,-625550393,715543580,-126843488,-1572103366,1306708422,-1289905373,1416281817,285517372,-1589460862,-900720367,58638037,882783753,830995772,-491405174,-7294037,-29579016,-407524922,573771497,762734440,290415215,1982690258,1331658601,-1244381751,-397793348,1108867398,-1422092813,1507787787,630736479,-857140391,-125323996,380004018,998965851,792501677,-1625974611,-1524007106,1984432704,1866408835,-1012662979,1843245971,-87566468,-618106748,1722814981,90561289,-1024507964,1463274639,83154379,1754681706,1059492373,1648471778,534310181,825198117,-1625318512,-930242102,-1315401259,390075635,-1772784195,1166761304,-647759283,107600131,-124705587,1166379892,-420815217,-1501968464,102889288,-486483562,1205591139,-1726867827,1632706121,-765865436,1765682269,1519318641,-426508348,-174164906,-268484165,-1109641114,1357080959,1416697295,1451518009,-1478324522,-1110869305,232866209,1233344281,-1231864082,-277627715,-935516126,1612445353,217942966,1777613998,-2021301232,-2102261993,939383549,-1932894709,-334754441,-1682165917,-612645319,-373642847,1606530176,247757687,1783519510,-1203278423,12015635,-1449497032,-407196026,-1711154278,-1500666350,365252372,1978833147,-1689881316,1309130787,1149698448,-371788170,-1134761563,-1394995469,-1775956571,2017605549,-23876911,-1544159057,-1249327130,606259639,-469911944,-203517631,-2125676549,570199224,1013864792,-1534809610,-1853722017,-749234201,-1306015431,561933334,-562902064,-401793540,-167332169,650333451,1082124923,-1465785384,829935180,644496900,1545013437,278318012,1017528133,713574691,443733536,568762197,-1567112198,2060541015,1285769935,436012723,-1770827409,601013534,-1312110806,102815682,-1802430569,1942521466,-20458977,1497171752,-148629888,-904547115,1254338845,-1623164626,2108896439,-208958599,1832857798,1968425626,-1444834024,-1950564366,-832402388,1052827862,1344350271,792495144,-1228224420,-1401380495,-780532417,-231574887,1304095659,-1985561247,900897207,1641906062,1302913691,-1456028402,-136388271,-2014141163,1441168343,1299930987,842753872,1928933041,40378102,-525263130,-972775426,1388178530,-659229812,-896775659,523813579,-1673751810,-902163063,1014325421,377819303,893963387,-1464809008,-1759642802,-1989142982,-163979796,-281136209,-1255742559,1410450359,-2096284522,402917036,-1749289025,552652960,-1661562277,-987242389,-1228425501,1772505345,99333261,1786610943,-1943142471,1460949206,1528399729,-844108083,737866122,1269965333,-1721165125,-749519606,661863777,-577707629,-107599314,-206331589,-1626132633,1667332178,154929286,657402558,-1812420928,-671267262,666513940,271830551,193600986,1184193638,-1447193302,829738626,-374316331,1047481463,83955845,1691359427,438577130,606957604,1402781826,-124029281,96801143,818868259,843076876,1151814501,-2132546984,447416589,664172587,-911052076,2062931158,-1805969750,-909344222,1703492749,-1113901689,612029180,-414795691,1464955924,-1763098933,1549816010,30893487,-781004965,-1735219930,1535997219,226274607,-1385756153,-669567666,804437298,1624801656,1803946765,-1839659278,-1543921852,-1937001243,1545979427,730916517,898247005,-951985312,1216754418,1464520533,-1079788398,-1979940331,812463974,465914101,242507472,-1669602802,1401021650,1769251810,-1301237090,1812160492,1888918320,-711050075,-1960552948,-779200630,-1050447513,1046618711,-131642301,-627255594,1061135774,-165265398,143220702,-208424100,-2056188073,1476786229,1616868501,-232463755,-1125063055,1501216403,-1974028342,-794201713,-5138,526641449,-577658269,-686778627,-1929749654,-493621515,-679137340,934611427,1672701705,237869229,1118228151,-139452568,1624966836,-178128955,916023346,-752953687,1107080422,-326141744,1490184873,1853883193,1348968732,-630043989,-1920117670,107101939,1763460123,907564844,896411552,-785658599,1601377146,-1023804204,1722264916,-1869878807,1966116205,1082197588,-312241367,735168164,-1877138409,608339501,-1013540621,-1273789891,-64439151,1026128350,-1301736480,1684101409,-1437693881,-108977817,-679133540,-188098366,1433671839,963922051,814293889,21089773,2146843580,-1865665713,-1311103298,514863619,2077738333,143946521,2047590618,-1221406051,-630417476,-1997867749,416237151,-1191288735,-553084460,1567367862,203557643,182149946,1266726838,-1748592899,-540381763,-1738721494,-1422118358,1846800677,-1143653815,-340511681,1923331716,-439784595,-270542318,-676253375,-246257443,-524869511,841825023,-149664285,633208160,275023991,1831285861,-1419769364,599789239,1493323253,-1007505578,-480897618,-2083374902,-809356369,582511703,1056566132,202856446,159591173,-1652207617,-398317544,182116825,636853304,429981599,-56307205,478328924,421656730,329938788,1285787659,-1849346879,-97779609,511483939,808466399,1855071886,39739755,294857067,-892093007,-677322193,-1705267423,-798608729,-2021791551,-2130714384,-1606595482,1024717358,-1877483073,-1076624689,476809163,1329573190,737086118,-1744343621,-225452210,-1372800609,-1200717266,2050160814,1255622969,-1569886759,830948988,-1785988943,2112058178,-2002212711,850435368,-1615679333,-1702152698,154433184,-1286449495,-1632490582,-1426665888,85409017,-408174789,1396269076,692484973,-51189207,615362145,1145243134,-770139521,1584778269,-343239443,-35046321,-211182878,138690563); -/*FRC*/Random.twister.import_mti(10); void (makeScript(14)); -/*FRC*/count=713; tryItOut("mathy5 = (function(x, y) { return ( ! Math.min((( + Math.fround((Math.fround(( + (0x07fffffff | 0))) ? Math.fround(x) : Math.fround(y)))) >>> 0), Math.pow((Math.cosh((y ^ x)) >>> 0), (((0x080000001 >>> 0) ? (Math.expm1(x) >>> 0) : Math.fround(y)) >>> 0)))); }); testMathyFunction(mathy5, [-1/0, -0x080000001, 0x080000001, -Number.MIN_VALUE, Number.MAX_VALUE, 0, -0, 0/0, 1/0, -0x100000000, -0x07fffffff, 0x07fffffff, 0x0ffffffff, -Number.MAX_VALUE, 1, -0x080000000, Math.PI, 0x100000001, 42, 0x100000000, Number.MIN_VALUE, 0x100000001, 0x080000000, -0x0ffffffff]); "); -/*FRC*/Random.twister.import_mti(194); void (makeScript(14)); -/*FRC*/count=714; tryItOut("print(x);"); -/*FRC*/Random.twister.import_mti(204); void (makeScript(14)); -/*FRC*/count=715; tryItOut("mathy4 = (function(x, y) { return ((mathy3((( ! (mathy2((Math.exp((-0x080000001 >>> 0)) >>> 0), Math.hypot(0/0, ((( + ( + Math.fround(x))) < (x | 0)) | 0))) | 0)) >>> 0), ( + Math.atan2(( + Math.sign(y)), ( + (( ~ (-0 >>> 0)) >>> 0))))) >>> 0) ? (((( + Math.ceil(( + Math.max(Math.acos(Math.fround(Math.min(Math.fround(( ~ x)), Math.fround(x)))), ( ! y))))) >>> 0) * ( + ( + mathy1(( + ( + (( + Math.fround(Math.atanh((x >>> 0)))) >> ( + y)))), ( + (y <= ( + y))))))) >>> 0) : Math.imul(Math.cbrt(Math.ceil(Math.fround((Math.pow(Math.fround(x), (Math.fround(( + Number.MIN_VALUE)) | 0)) | 0)))), Math.min((-Number.MAX_VALUE >>> 0), (y >>> 0)))); }); testMathyFunction(mathy4, /*MARR*/[(-1/0)]); "); -/*FRC*/Random.twister.import_mti(620); void (makeScript(14)); -/*FRC*/count=716; tryItOut("v1 = -0;"); -/*FRC*/Random.twister.import_mta(67171819,579021062,-1516591313,-219141894,-853673252,59550672,579271763,-1182755603,1998204068,848208545,-214040404,-386893492,406242826,1810179325,-36592686,1372607854,-1679522827,963768155,1625906227,291181017,480387165,-1560818642,-153689464,1486846085,-1151811906,534377932,1330387010,1562125921,1197461487,693935930,-976751411,844091714,-1481278651,-997071296,-1518731018,1933664330,-1812465640,-2054358563,-1194151955,-659213169,876584731,1652176767,1938076808,885422021,-185738792,2026514163,11590662,-21819055,1992384806,-545060608,-1427005804,292956513,1030175280,-1319394687,1945519003,-2123386737,952844784,408435106,-802655215,1175455395,-1790486198,1323720380,-896368025,-1381806207,-984659923,1904533455,501411882,876151751,-507144734,384537188,1167507914,-1510938409,49705371,-606667309,55888521,-379041521,557944681,-1542988972,1926530763,-1670321041,-1399728996,834634643,1152681915,-53673516,-1218343382,1209355040,-1274913864,242374156,-1458612186,-274774516,371607547,778665403,1027623998,875471421,-987687408,596334200,-1054761279,-1073558479,-31798885,1666980620,-227647255,-2044163816,-503649942,-1573114356,-1712228277,-2058305065,1617520688,185312115,-355850743,488028082,1202681855,875423300,-951745626,605118629,-2027889952,-1251164765,-1735052693,-1768661999,-1009245477,700195335,48443007,1751328866,-813378519,1093299811,1534834383,-379568323,-794702762,-508142513,1633492554,2136197810,11966302,215114813,94442403,-1566014124,-65560171,68706192,-562904858,-1419229817,1287138736,1278927931,1097659170,1651020400,-569356273,485377392,-1967658991,-803357179,-2135544891,-932073044,794934515,-730140570,775069812,55021791,1894700910,744278695,1006828024,-846107377,-1555663879,-1438670266,-881787832,-201886225,2146600093,393600026,-1577072756,641340906,1028503483,-280772081,-493151357,-1684472581,-1026828686,860794764,-2012217737,-944609262,-1574586569,-1698474335,1737450682,766012584,492031719,264975037,-1783090221,-1890840916,315751452,1225609778,-1788995431,1145390008,1092787878,-925953858,-1421723769,703252959,942059185,1339762032,7346576,-41690627,1434762002,-2016290160,1850225316,-646161346,58046337,-960169989,683098186,-1991355041,-321503517,-884458764,-1377656815,1438750361,1414463620,-1353987612,445293208,1349858180,705428834,1085762136,-1401662439,-779054317,886043698,-104190536,1174914909,-701770768,-1445183750,-1127759628,357750226,226576243,-1445682417,1716998552,1832662015,-1857704250,320744525,-1383627055,-113425309,-1221537837,-1865830971,-1234444220,891036998,317057747,-1102729085,969892644,1462893164,319076533,-611587798,-180304521,-603298021,469005314,-1280010327,1059585651,-826422604,1961506193,-307804107,-1805905936,-57739818,1933769245,1016938826,-1007563261,-575373682,1644929640,185909968,1016155905,270322604,337190118,1673410736,1714817135,1072491468,1505635211,-422418808,-1852736563,-1268276153,1553092542,1469501392,1576731876,2129940792,-53727341,951997580,-1197645684,87600377,336208295,-1587230255,1347328602,-528204291,1686320605,239763696,1515382200,-781353694,1842875451,-1637693591,133221733,1667521291,-224241750,-1586529216,-998734339,514580869,-2039331256,-102405571,-1025906759,720953596,1224989795,2092807391,-1810296993,628286010,94735126,-1447917604,-798952884,935456959,1394552596,-1020027322,1078239592,2049471003,1487260756,40665732,508167519,-1478301905,1351859753,-841552958,1259649836,454830928,397212489,1049285443,-1901347083,444767360,-321845281,-2001862630,1229338512,-1619961477,719195690,793495059,169211511,-767630280,556799826,1071057211,1673603060,-1601313016,-1031741650,972310666,-178156563,1088155259,1124112926,1990937827,-539199654,303435995,1253966222,472037577,2012739724,1462741435,-1373932137,139139427,2070826805,1677224985,-1769243884,1786897930,82453074,-1141499253,-2125465443,2084261002,-2079708786,93480318,543643705,133666357,322571609,313920843,1624997889,860998116,-1838949282,1554648173,-1831671215,1496565182,1048365627,-373044273,1167043199,123615015,-744070477,665898064,-169312187,-575154743,-1947391798,-1606425435,520869267,-1179377536,1241974186,2142335418,1403693540,883658788,-122452200,1928801526,1953551149,1070292984,905882264,-1502622162,-258249997,992933266,-826936667,-792863780,1798065672,1339013979,204424761,-536542450,-1497002202,1143176881,-276232074,-1987164951,-351947213,-1777621988,1407567379,1188929756,-1157259855,563626956,1744736662,-101361423,-1752153555,722602967,-389883464,-2057206279,1983364365,-1564377941,312160901,376974022,-343313837,-1553487180,960370749,1205526970,-1580880711,-26545662,1278823171,156095411,-902668966,141225804,37988355,-1903885657,857339709,1779384994,563856179,-659383555,865817678,1012033850,555901852,-703843608,2012212532,-888614755,-1473808915,1336208845,-134411081,411169259,949895356,-693453701,988939573,-1878335535,1925027500,-820802881,-539127540,-2071163540,-1500152993,1209232501,-1055684406,-1611769356,-1425698293,878622776,2119190310,-233286626,-1037147034,-210476996,-1459587989,1843124016,-1072273021,-1144856506,509571430,-20995901,-1568401926,372237136,718790962,-1967181696,179512144,-1405872660,1093954568,2035995590,654085393,522756723,796228635,1015876779,1653639519,-887542375,121982718,-1281602215,2114729395,960960113,-1147987621,1550783858,643528644,-512190099,-839480845,1309006049,-1948418490,527991206,1022085422,1008199967,-1351905327,1176853614,-435447421,843222361,1602793298,-1885341383,-1443688281,1527617253,628633555,-1145874196,-192140669,-1052198770,732810804,-599733893,-850661071,-1118958801,-1879457331,1961657803,1968888614,-1948304999,-2035516569,-1721710364,-619999199,935999853,-1692830437,121530199,1615674388,-48039321,-1147778684,300863292,-1427301119,821714222,-1204786327,950037371,723738189,-1118389870,-356762899,-2039464732,1178869417,801172866,345924416,-943949554,117519129,998923908,889789582,-1501677528,-2114424745,512401977,-182623459,-1823549774,-765953661,-134584905,-1318151703,-1690375466,2055088229,-1461210335,1981970840,-356506742,-1916186563,1489701063,1124339932,-1901380161,711396813,-1423339408,352612653,-478574459,1214202461,-1266116728,-1104001165,-1957421846,1775745369,-640164699,-1881197178,-579594578,1745071301,-1416480577,1171613607,1002683015,-1357790911,892277531,1869123668,-1621213018,-707223856,-1795159827,1609083495,1467553875,-47454278,-1287439671,-1649023724,-1314489261,-1147733966,-505230191,-963417596,-1847580275,-370700965,-769905626,213166686,-866446522,-936344130,-123831421,1056880885,1645247708,313111156,1185768625,1593254903,1006005333,-2122279714,-151759715,475853030,-1758080096,-512261186,-641054419,21022747,-822719113,1844698800,1851944842,1068677109,820701309,-1083521933,2057813837,-216749794,723010640,-1846306096,-1490468177,1561745077,-866284605,-2070815564,772719814,1342308078,1358420471,-387021800,141895310,-264599144,909059821,218328630); -/*FRC*/Random.twister.import_mti(7); void (makeScript(14)); -/*FRC*/count=717; tryItOut("\"use strict\"; mathy4 = (function(x, y) { return (( + Math.acos((( + mathy3(( + (( ! y) >>> 0)), ( + (a = \"\\uFF73\" >>> y)))) >>> 0))) | 0); }); "); -/*FRC*/Random.twister.import_mti(125); void (makeScript(14)); -/*FRC*/count=718; tryItOut("print(uneval(g0.f1));"); -/*FRC*/Random.twister.import_mti(137); void (makeScript(14)); -/*FRC*/count=719; tryItOut("mathy4 = (function(x, y) { \"use strict\"; return ( ~ ( + ( ! (( ~ ([] = x)) | 0)))); }); "); -/*FRC*/Random.twister.import_mti(212); void (makeScript(14)); -/*FRC*/count=720; tryItOut("mathy2 = (function(x, y) { return ((((((Math.exp(Math.fround((Math.atan2((( + ( + x)) >>> 0), y) >>> 0))) | 0) - (((y | ( ! x)) & (x && -0x080000000)) | 0)) | 0) | 0) ? (Math.fround(Math.imul(Math.fround(( + mathy1(Math.sinh((mathy0((x | 0), Math.fround(( ~ Math.fround(Math.fround(( ! Math.fround(y))))))) | 0)), Math.imul(( + x), (x <= x))))), Math.fround(( + Math.fround(x))))) | 0) : Math.fround(( ~ Math.pow((x , x), x)))) | 0); }); "); -/*FRC*/Random.twister.import_mti(519); void (makeScript(14)); -/*FRC*/count=721; tryItOut("/*infloop*/for(let (4277).__proto__ in (4277)) v1 = t0.length;"); -/*FRC*/Random.twister.import_mti(588); void (makeScript(14)); -/*FRC*/count=722; tryItOut("\"use strict\"; a2.splice(2, ({valueOf: function() { print(uneval(s1));return 0; }}));"); -/*FRC*/Random.twister.import_mti(612); void (makeScript(14)); -/*FRC*/count=723; tryItOut("\"use strict\"; mathy1 = (function(x, y) { return ( ~ ( + (( + ( ~ ( ~ (y ** 0/0)))) ? ( + (( + (Math.cos(y) ** x)) == ( ~ Math.max(-Number.MIN_VALUE, Math.sqrt(x))))) : ( + Math.log((y ? y : ((-1/0 + ( + ( + ( ~ ( + mathy0(( + 0x100000001), (x >>> 0))))))) | 0))))))); }); "); -/*FRC*/Random.twister.import_mta(1118065296,-854047852,-1031960116,1192672930,641254526,1908315655,307804292,1352605061,1754085431,-1124170321,38764971,-287694930,-1100935132,680590127,-2090772252,933059473,-57778353,-291045508,811635850,1764971251,1564650772,1915134711,1064653255,365342739,1303335653,-1457320314,-2069932846,-794290806,892701870,1666830404,1790754031,-1233099705,1131057340,-2068761965,240082193,-1024250735,1944697308,-1966798108,45033007,-610890055,-1867781156,-278337985,-1181118968,-1434700995,-1747962614,-817109828,2039261563,-1294849,-1990918177,493593407,278932645,-2124561172,715191188,-726849238,-403755074,-1367477018,-838698825,1114172139,1392560101,1735949205,-1486534947,126030250,-779721095,84980746,1129237186,417241925,-1446785010,-1168246159,1103555170,-1895860983,-893081412,-1591125036,-1843444953,-947226648,-2100697021,-182092864,1888707829,729538083,-1871345642,-439048425,-1076149083,-2112494221,-2047501903,132108903,1112658516,-75909967,-1966103819,1518499058,-65872576,-849145212,-1294481620,582471424,745827856,1689638758,-1211223361,-1948585242,-1501464171,1771711787,-664986335,-80603570,1718381407,-884069287,-1517142651,347649140,-267575808,-1401651869,1371967575,287549684,-1049454060,-835481877,1867261956,-1468139446,1303149546,-1695505004,414547503,-494399353,1230760908,-2439451,-1382310456,1700519303,-1884824139,-1356589577,1399888623,-2075183466,361284648,1357942096,-1024409419,-839371081,-719986764,-2043971765,-651846552,-1273441140,97133034,549394715,1158487249,347291383,-105541998,-1071501584,1055765141,1044175784,-1003935195,625888874,-1674618053,1806246240,1080620596,1114460139,507965619,1717558663,1545535915,-1109822544,358754445,1622958960,-870136496,-1867890365,-1784214635,1669470547,1075552270,-2034108767,-1465104267,1383687449,-1249334914,-1683226836,986362796,1585035175,561407070,892414896,-1127783833,-889728122,477245537,-1496517277,-859245240,-46827425,-1157526565,-325455109,-1022580604,44130113,-1056603162,-995249819,-1165106964,-97794873,-1187820531,570540224,-642491922,-1049394238,-487267749,1565098641,605706603,1460128673,727267558,-865919090,1878645151,-1839454710,1024873917,355755406,1041734763,-1642131538,-459413291,1873661040,472845998,429390643,2046356892,1489777527,312473645,-202520209,384117993,-2085413829,1170818930,2070384955,535364313,-1076333906,1319779621,549471572,-806240318,-787278047,-1159302360,-205038126,58046159,-2030771926,458870738,-1544804962,589977122,-10391337,-531868805,-655196041,2146564655,-742837245,-812402432,-1815595859,-1775389770,-1728865425,-680723692,-1609388832,760817557,968902066,-1072303872,1162398882,1599494091,-180223239,-1558174289,1051978543,-301222711,-1539326530,-723455610,1398098826,-1534527356,1311239777,-1986355422,1124863409,-891882199,1370451584,1690525991,1210397581,778246617,-1936641788,-626746375,82481398,-917871444,1967835401,56082781,1879286776,1433485226,-848019475,-1397093554,1478680116,-1539798890,1037373107,2096638383,-856374886,-215591303,1645045931,963744561,510320957,-1486050927,-792328358,346363854,-1905147993,809685475,941003316,1857647150,-1130815233,241041223,1331016420,-1758666957,-1632254313,-1185146678,-2057467912,1682004145,1117733660,-1617239,-2063985145,-1197872412,-468148110,-1948603339,-75849453,-1198571526,1428138380,-422638545,137158716,-2002334626,-1283027964,-1482152100,651518353,-646472214,1906648503,-1118409645,445401950,345360604,-1724894908,-408962843,-2005169127,-1795088612,-1004795094,1696914196,-946934603,-169719870,-1203380915,-1447032500,610786126,2010695701,-1562821178,-122184574,-1630453597,-616367793,543313367,1484439249,-937693531,-1703773735,982929178,1760975216,1559722599,892926331,1380976814,-2087041330,-2117785371,880584755,1449883311,-171412819,-573355002,645460574,-1870575740,1045377745,-1337853700,-372396787,1008408777,-38807604,694689874,-1124822762,-239436816,-1390345936,297379920,225716821,-1887715347,-1067107549,1386444495,1688028776,-860013754,-1894082204,779627137,611914107,1767097141,-1500918567,-387692055,-277062889,1662133726,1895411574,1832244413,-1648350379,872050718,1622727183,1429739958,-1121682570,1555228276,661572926,564021358,1334479221,1179306425,-2122272708,1813626614,-1014187463,-741905748,-1974135793,-2037322622,-2100880139,495770311,949206828,-1057839717,669991453,191349772,78965999,180892203,219902004,-630232103,49655691,1627975884,645773376,1467474543,1446422197,-274324186,2042562136,-338843075,-546915792,1727968291,-798896504,226768594,-255009351,1630900943,406366878,828064391,-230364835,-762819443,1841269300,-1287178495,-1730265520,133638582,-554848990,1416380903,863439568,-229146471,-1220212569,2032345627,-1927478960,-1604473369,1587234031,-778417788,-429351626,-1451298033,1079660820,1741805825,1214055097,966386009,-2011545611,-1435896712,1319638546,-1156349621,-644765761,-895399181,-1550363920,-50867257,-458098927,1593598197,-1471292297,73860776,-1674996396,1093922937,1287056474,-430388937,-2090475013,1826454232,871041293,-1167913113,-405101596,1191039008,-1297218000,-1238791906,1581301319,-524265426,569384817,-1970435273,-281209773,-1961998549,1753370447,-1962803032,1344486459,1510592395,-1340370095,-1254477991,1579801899,-760816342,776555497,1115426912,-572045992,600231438,-429450735,891205937,11446990,1242587994,-1214135162,-513254720,-857468929,1079284576,-1615033626,1930454928,-82221872,926955523,1889826346,1290502542,1853245295,-764249094,1137264858,-811031175,-231759318,1678868197,303126810,-499161620,17168662,128462292,-373698659,615006023,-47954781,-943131178,-2062491584,-1550990420,1910306784,-135437141,-421346803,-1916305388,-2043392660,-1833249964,-1794424952,-610485439,1782103640,2075243683,299470250,-1093215291,1924783382,1484693317,-651087163,-261190278,1751555629,-743996766,2120885368,2111290008,-645482891,-127643418,-461746795,-878783956,1236022159,-1337437795,748310577,-89546387,-1423110940,-1600961775,574745,128636104,1086634416,835868966,738037064,-593071035,876119860,-2016323312,103878814,-1199754583,1551006112,616259587,1601628034,1119410640,2100634887,232433726,-1085060915,1159714639,-329679890,1307473641,462513900,851840324,-944677141,1924272820,-1696143103,1888679694,-1078762275,913905731,-970280410,1522967396,-1151201262,2030689837,640765706,-1567514686,503388155,-36697213,-2013941546,-429748898,1459050401,774333285,-543898178,239119840,-818968531,1837640843,1600346842,-860904285,-760167436,698150324,837469133,-1251614095,558255412,-434860169,1747091374,39098584,223052266,1137590727,781428044,-562797191,1783037156,-894980623,-616106599,422817184,859454065,-2100674402,454451653,-1229024602,738797483,-763143817,-130638660,-235331823,817047265,-1229879303,-355969581,1123122904,1434105930,1846442870,-1088767987,-682934563,359995311,-233853276,930168350,-1731643613,1227827798,1404276364,583585116,-1134023664,-300406315,1187986636,1494594560,-463299607,1375098228,2003079165); -/*FRC*/Random.twister.import_mti(233); void (makeScript(14)); -/*FRC*/count=724; tryItOut("mathy2 = (function(x, y) { \"use asm\"; return (Math.acos(( + (( - (((Math.sinh(((x & (-1/0 | 0)) | 0)) >>> 0) ? Math.hypot(( + Math.hypot(Math.trunc(0x07fffffff), x)), -Number.MAX_VALUE) : Math.acos(Math.fround(mathy0(( + (mathy1(y, y) >> x)), ( + y))))) >>> 0)) >>> 0))) | 0); }); "); -/*FRC*/Random.twister.import_mti(416); void (makeScript(14)); -/*FRC*/count=725; tryItOut("o0.m0 = new WeakMap;"); -/*FRC*/Random.twister.import_mti(429); void (makeScript(14)); -/*FRC*/count=726; tryItOut("f0.__iterator__ = Array.prototype.concat;"); -/*FRC*/Random.twister.import_mti(443); void (makeScript(14)); -/*FRC*/count=727; tryItOut(""); -/*FRC*/Random.twister.import_mti(450); void (makeScript(14)); -/*FRC*/count=728; tryItOut("/*vLoop*/for (let mnsxqv = 0; mnsxqv < 37; ++mnsxqv) { var a = mnsxqv; v2 = Object.prototype.isPrototypeOf.call(m0, b2); } "); -/*FRC*/Random.twister.import_mti(488); void (makeScript(14)); -/*FRC*/count=729; tryItOut("/*infloop*/for(x; \"\\u82EF\".eval(\"(\\u3056--).__proto__ = x\"); (yield (encodeURI)(x.watch(\"callee\", XPCSafeJSObjectWrapper), (x.__defineGetter__(\"window\", function(q) { \"use strict\"; return q; })) %= (x = Proxy.create(({/*TOODEEP*/})(x), \"\\u758C\"))))) {/*RXUB*/var r = g1.r0; var s = s0; print(s.match(r)); }"); -/*FRC*/Random.twister.import_mta(-919993108,411157182,-2008615572,-864364529,-953593857,-649227574,-1128068913,1568862589,-431857465,-1072178540,104222032,-1384881841,533234117,1812932166,1904290326,1066508584,1889818120,-2032277657,-100837311,500587610,1380737341,838275227,-355939635,851581181,-1261688156,483716742,-1177664703,-1124967583,-1731060947,-334708804,-442934275,703089383,-1563834161,1446322594,303616751,928828156,-1099889607,30311543,2120400240,-339564770,306909191,-1199755243,-1832203852,-475674894,1673721078,2045210934,-405971367,-1860951190,837134455,306005878,1819515054,1723560135,-1875534862,-1808976837,298003027,1286048436,1310018740,-288854678,1249170747,-1421210432,-917765150,1593218992,-913957586,1227172398,510000597,1153619004,-1641053588,-788994464,726476034,994806133,-2110623552,-28419419,565783444,92996006,1498706926,119937204,-1179916545,143945413,-1577943026,1900336651,963254438,387347448,-1699493236,-1097571380,-677114601,662046069,1510015610,1319966858,710543564,924689657,-2094424966,1442021330,-34451766,1891634090,570165142,-665234161,268092326,-1272723623,2050041587,59198189,-1744332364,921037502,-1919635476,-1122603200,1824476610,-2143875308,-8605487,-967078137,1943467966,-242067090,-2038157455,-203619715,-689641077,-1083526768,-738390977,1970567244,405997672,611587058,-1277443751,1206545600,1056192350,-1730780283,-780133911,883836524,1437596720,1643538160,126942050,-1896832433,293853526,624885179,-364626981,1853833412,1946066239,279130707,868379829,1020396112,1740358576,-2034577371,785134834,-1864259451,-1912515728,-1557685642,-234501728,637889412,4400515,-900091610,-1902363105,-395192440,1549033480,-1366523490,1032100230,-1723717019,-1807595727,1065504507,-1524118881,1000126187,-1464973621,183486990,-2105143065,-2145206850,1028065432,-489276149,-2142407857,-695107575,1079916220,1007227390,477247470,-251598875,687822252,2019913055,440534899,1132316132,153535740,930153443,-159417318,-15334323,-182532723,-1838581669,-1986691529,-1695396861,-1649457981,-26546429,1227172949,-644349377,1120506854,-1438396066,1419762296,2106516445,610604831,-473965062,1256215234,-384811187,-722577474,-330989042,-978834906,805351724,1860520856,1026407718,386469336,669652747,63978434,-1135711390,1920797983,709671447,1764237779,1381467480,302710715,2083808352,1562199951,-1423501817,2121161180,-1729992724,650773906,1208364603,-1947467699,-272411226,-1682749514,75746751,1111858243,1935533645,449848484,121024695,-1279341528,-1075447352,1421259063,910133748,-1484249740,-2109940425,-839860266,-470775578,-1670148481,143486186,-978472941,-1664487345,1059493676,1356987389,1673423671,-827396264,1797596167,-1312429186,1041299609,468800213,1446708461,1658858058,2026283144,-47179824,-447157667,-298865802,1495312347,1101122177,-1881656860,989140631,446461444,1301593698,-24702182,-1133041285,262237159,2100956044,300522267,-2005838054,-376992117,1145427784,1531815398,-1402126222,-970148879,-652863112,-843528237,-221213724,1349727391,393916659,1972897459,-377745183,293892763,-1382033986,254037094,-255037351,238423660,1529815481,-503361433,1309922446,-1282937527,-2090994411,-1695164128,314261713,-1402556778,-1587754564,-1979339442,1874270825,-2055000980,-1781864356,992573975,-1031791856,-1602800534,-1033364079,-1166593370,-2128473142,2136865131,-2040457489,-1483924313,1919760442,-806813263,1978645787,-419677520,1040736265,1171409770,-1413979040,2111622825,-743607285,-903674581,-801946366,-593861031,-1523162979,-1648770064,552608155,-1954068749,2126122090,1697532254,567101615,1151328561,-2119597941,-1499456732,-715797522,291554107,-1160827887,153518292,-1375688000,1590455648,-1401113332,-2120816814,234906510,-1807848681,1836215973,1507666873,1011504151,1952875663,-801472969,-1619263635,-709339554,-73555521,281788476,-1488302610,1041459814,-1301199625,652534670,1891632091,-1381922350,1060589880,1751431110,-804603987,1311947804,-1441060539,-1399467650,-1850774200,903764054,-1464975380,1443796452,-351643612,1634730937,-1008856703,-105722996,-36067720,-579538463,1297813695,1606882315,690522788,-1188785785,-920874870,659918504,-1984194899,-325585893,1213995198,334775068,-627665647,810666618,1381761931,1553217558,-662675739,-2058718139,-257843405,1214283241,2093627578,2102195258,-330142889,-1259890339,-1281480676,1215889718,-2054070344,-1508520400,2126156993,-2034185387,1655604538,-1741925978,210594200,256699342,1135846925,-1695762903,1337360332,1721599071,-275537883,1721080292,-586749651,-565208226,-1177280732,1416633230,2080047587,-2054608008,458710431,1032159410,237402522,1073408335,1496525152,245796046,-373799547,2078870761,-1901038607,1037996663,1134341481,-2008390066,210312863,-765405418,627303458,871184526,416126446,500237571,-258313090,1998857554,-1928705196,-1091171775,965356305,-277306822,2138587179,243018458,-690555614,-406152005,-2140376634,215412471,1280593723,-1791094133,1855252297,-1411097738,171289967,-2047292697,374480197,-1108856421,-1364780549,-1694507935,87251745,-1708322563,-2096134181,-1068261926,-593817128,1306636847,1831554427,1369492104,-1302531808,67109041,2143223202,1927656585,-738000992,686040939,-1723273189,-834684434,-454185753,-491056576,221988907,-1657177523,-1734965781,-264442446,986667749,2026415681,855854413,-755131041,1052244887,-451952838,-886596901,1123042712,823519201,1889699524,1524588327,356660087,874286506,-1022647950,2128577957,938692850,1531956043,-1076230029,-1589089561,-2006766874,-90622677,576353523,1198346207,-819716228,-402019442,-1925563560,-251355890,-39361650,-601481329,-771582915,-1969722870,1393296059,-61262744,2009741206,1379037907,-464527435,499966387,-1562020143,122600740,-117280115,2006653034,-269908468,-1234490785,-1534433213,658445441,-212253755,-629086956,806553041,-302141727,-703429154,-346826175,-549312938,-58474275,264034627,-49267783,-1805095042,-475103239,1515435455,-213802965,11311478,-776741518,-1284850494,-146181794,-1663133383,-1469247996,1572770417,-884713320,-539114609,1734922239,-2038028861,-1495348203,-559854657,-1513748464,-440501725,-168883020,1251293855,9512007,-485637267,-2025532268,536940445,785551510,659324620,1160816570,82719650,-1218204574,-467897654,-718947242,367862541,1984501769,317680038,-1354345893,2059956906,1361642917,1775733894,901128702,-1939646232,-990864961,764779165,-1221888734,-458189435,1294085321,1073897464,-1459625245,1594515716,-360587486,-2119686671,-2019028644,-4515136,-244457838,-1019000641,-128211036,273857649,-1234953807,-133359242,-66297216,-1625593869,1616531413,-981741196,1096637360,-359631650,1799779202,947416781,-476286420,-578600777,-172144809,1233730925,640724711,1563956880,-137839288,-2024784972,-1547870344,-1500652721,-777652947,-1827856348,-557561035,887932115,-466433239,-635649258,2137473106,-95431581,-1881023605,1071665247,-1914679793,-400115949,-585815432,-519648621,-1882453642,1876882031,-1728783011,-1935007473,-78917696,537375640,-1535830299,726174903,945176840,1797488058); -/*FRC*/Random.twister.import_mti(245); void (makeScript(14)); -/*FRC*/count=730; tryItOut(";\nprint((4277));\n"); -/*FRC*/Random.twister.import_mti(294); void (makeScript(14)); -/*FRC*/count=731; tryItOut("\"use strict\"; e2.toString = (function(j) { if (j) { try { a1[ /x/g .eval(\"/* no regression tests found */\") << Object.defineProperty(b, \"eval\", ({value: b >= e, configurable: (d = [,,z1]), enumerable: (x % 2 == 0)}))] = (new EvalError()); } catch(e0) { } try { s2.toString = (function(stdlib, foreign, heap){ \"use asm\"; var NaN = stdlib.NaN;\n var ff = foreign.ff;\n var Uint8ArrayView = new stdlib.Uint8Array(heap);\n var Float32ArrayView = new stdlib.Float32Array(heap);\n function f(i0, i1)\n {\n i0 = i0|0;\n i1 = i1|0;\n var d2 = 288230376151711740.0;\n /*FFI*/ff(((d2)), (((+(((i0)) << ((Uint8ArrayView[((0x6eb4059b)-(0x2b895a08)-(0x8304730d)) >> 0])))))), ((((i1)*-0xee827) & (((((0x34b24d59)) & ((0xfddaf644))) == (~~(-131073.0)))))), ((d2)), ((((d2) <= ((0xf92f848c) ? (1025.0) : (-1.0078125))))), ((-((d2)))), ((-0x6adaece)), ((-288230376151711740.0)));\n return (((i1)-(/*FFI*/ff()|0)))|0;\n((4277)); i0 = (i0);\n (Float32ArrayView[((~((i0)*0xfffff)) % ((((0x46493d57) <= (-0x655abf5))+(i0)) & ((0x1e6a8bb2)-(0xca3cbb91)+(0xfcc770cb)))) >> 2]) = ((274877906945.0));\n i0 = (i0);\n i0 = ((0x1fe0396e) <= (( '' .unwatch(\"1\"))));\n i1 = (i0);\n (Float32ArrayView[1]) = ((NaN));\n return (((0x32058a2a)-((0x0) >= ((0x47d2b821)))))|0;\n }\n return f; })(this, {ff: (function handlerFactory() {return {getOwnPropertyDescriptor: function(){}, getPropertyDescriptor: function(){}, defineProperty: function(){}, getOwnPropertyNames: function() { return []; }, delete: function() { return true; }, fix: function() { return []; }, has: function() { return false; }, hasOwn: undefined, get: function() { return undefined }, set: function() { return true; }, iterate: function() { return (function() { throw StopIteration; }); }, enumerate: function() { return []; }, keys: function() { return []; }, }; })}, new ArrayBuffer(4096)); } catch(e1) { } try { Object.defineProperty(this, \"a2\", { configurable: true, enumerable: true, get: function() { g2 = this; return arguments; } }); } catch(e2) { } /*MXX2*/g0.Boolean.length = g0.o1; } else { try { m1.set(o1, f2); } catch(e0) { } i0.send(s1); } });"); -/*FRC*/Random.twister.import_mta(719152384,-340731245,-1717549764,664469005,-1293331909,2126326684,-1548102673,-774733473,-444414414,1481407287,-1305018166,-657815129,167606892,1643363435,292445274,-773165439,-510701691,1799778062,1932901466,-206426840,163143388,-1595552986,302607287,1057354096,2106019789,-1658714991,-627009428,637258039,19036812,1724798581,1930076141,-1310294103,-2073939221,-277046909,366104484,1357301729,1042640479,-1084412034,959954296,-1669761049,268974686,670139283,-633948145,2077546260,-1190432132,-1128529226,-178118610,1868397855,-1813938214,856332150,813176897,-1961539038,323860248,225588270,1806858101,1243736865,1724185661,1315842914,296027857,454622291,496959313,-255725257,1282847356,259178030,-329329680,-335909423,-1966644880,1486740138,429133352,-1718633077,370372671,1779683119,2047682194,531199162,-781283067,-1150633929,944584839,-606151972,-1554342334,765520818,2066333496,1468447329,1242038929,-960087042,163058455,1407124632,279305399,1315098413,1029466832,-1596152614,-493185777,-1000336818,1513779494,1469271060,2046821668,-1342911907,237201451,353681064,1701606951,-802827435,-1989123742,-1940767236,226964763,-1979280759,2010230812,-1266378140,510306537,1680317036,-1708369306,-586933693,434389868,-2048795536,-1336090940,1184701599,-567258011,723947701,-513586628,1516615015,1407595441,-225987250,1131480259,446391914,-2062219936,-699121979,1061677627,-19380728,169381510,-1418751150,-775652419,1600851225,2006137108,1900290866,573805876,2007037915,-2101897199,-1682903076,-940881220,-1675476255,1319479058,543712839,-686429960,-539219771,-1918632323,1022306830,-1064131920,732537700,1051578715,1857754179,-196377694,-645490601,-1247237520,-33881135,-511317650,-827592150,-1071065080,977027032,-1586784307,1299055866,1442610642,686464069,-1165178884,1986550563,-2004352399,822484731,2010317945,999242249,770415557,-1869663383,-2001756947,587384388,-988907657,1236356791,-1028493610,-1816109842,-1182149635,151391547,1368664323,1516904088,734694430,649251884,629051361,96567633,-1516892751,-687812542,-315821607,-1773957188,953460418,-346000251,-190562423,606958289,1192287143,20011101,1314566090,-2125961409,-2055006175,-1026563429,1461707774,766781451,-674910774,-165633879,-1720250875,1133209896,715339419,2084132123,-1171856760,1321829431,183957219,1404360753,1451751626,5270716,-163649643,-595273406,-2098464867,287244022,-1614340672,-1865643613,978295955,937850760,-814173802,-1784885489,372885899,-493573676,2146783100,1462173345,811026509,731009970,-1288330242,1277508331,-1706516768,1318138588,1675380856,154614509,-1445895324,-64317319,1621806206,1297433462,2132479131,1588404758,-1071088616,-805456129,-184310306,-1552191757,-526746716,-571727935,1440638182,-1735296597,-2069497709,-64897554,423468729,367358789,-76035356,1892250831,-1142400096,-438103583,-490148523,-537231456,1481855923,-487136577,-1243687900,1772701041,-1923190233,947166551,1188063192,-1002731656,-740940862,-958173618,-451857899,-516353842,-1253807307,2045905801,-698191941,1757543406,-1435244439,-1292892643,-835455508,-721782548,-2020231307,-1718681427,-333668251,-1819872925,-707494277,650681317,-1703609450,1895279478,515919804,1420284022,-171195976,526346599,-1172011751,-1997881432,775074726,-1134212667,331797446,-671287261,403493711,-13483454,62359075,-589476173,321213234,-990833003,-61465880,-502231971,2103851244,446962994,-838670100,1153190345,-1652629144,-2026861198,1067391200,-1118994078,223722351,1197798127,-1699765110,-1938895087,826263832,264982143,691187794,1507710280,1572627156,157973684,1027189219,-1413950362,731638922,1253058625,34925512,168444055,-971273773,-910486837,-883815365,-1634684849,1706497284,-1036544737,866713776,-1118741903,-718137944,1285100815,-1210568340,-48094356,-846971794,-1543899085,429173164,1577076417,2018828658,1074526990,1286959502,209558317,-961155411,-226693174,2105686116,152051997,-2145462662,2005949599,-1539872221,508531056,-1066870368,-465479761,-1227113446,-814448373,228411124,1558136328,-2146287628,2098372753,760993030,-746647570,431536893,707522391,1942135059,1254134641,815751703,-376573406,890571648,1959876839,1937851993,-1903468479,1089538120,1090722831,36377258,1425069366,12815866,-538905293,-267548617,1862884732,-112770135,-123436093,693273697,1463079438,2078309213,1557740867,-335507882,-102809364,1024472616,831893685,1009340398,-1791297508,82958498,-277568757,-1991985996,1808734138,989561413,1966713503,-51932863,-446440337,1665007868,-178185939,1487833892,-9858546,946867317,577614636,-2093726423,-1995466495,-799828443,1090020292,1925167383,-1501286427,747081057,1281546722,537412086,-1738742729,671167446,485187035,-1732314248,-1981426986,1429196997,1867700673,1445345954,-784299936,810751318,1555737426,1949775925,-870865327,2064072822,-1857185767,-1541113163,1254149632,-1932058731,-375033976,-1815620314,410789102,-914950919,1593414133,-1964364966,1306960829,389030321,-199974735,-477025945,350858457,25360302,-826885447,-2101516487,297322384,-1461807255,-1614127569,54671094,-1441014930,-1758623124,-1516773327,-286566329,1239234472,-1001547385,1014868918,-1691007858,-1948996910,1007209046,-1601300399,-918999057,359370290,-1209810906,829208691,102206732,1611886045,1838834097,-1819465230,-1441356234,2017363233,-1655070942,-1732256362,766783527,1326503336,-480191061,-1578754699,-999898792,78618456,-1006381095,-319027511,1678988889,2087866760,764989442,1763334253,-263120911,-59871000,-475428666,-1479346683,-2139196446,-1651278702,-1612013303,1113576493,-1979977400,-1825678658,-1739634068,-1805684131,-921362986,2116189274,2144675817,1350268787,301271834,-1346633993,906983674,-1374031282,289167587,1481236070,-1145426040,-732465885,-201080501,-1735675086,-564241584,366142134,-471597753,-1030492583,-742106386,-191921289,153756765,-1081311668,-1257867779,-345503488,687613107,-1282591752,-2069407186,-728763311,-1146760644,113410115,-842800783,-1707839506,-1284788178,-1193489116,1909906538,-719073344,654713692,-952996422,-1321408529,-934502270,1740194527,1271418690,-209099793,-1334668626,-246184927,505284766,-1067299931,709943720,-1205933312,151240535,1221013904,430259705,2013559282,-1400285192,440742802,1769877728,-1746467684,-350450442,-1085035446,-2110442819,-1984259022,-806812329,1252571515,1286131052,853565181,-703494401,1219035694,-435351785,2114021693,-182214436,797887372,2046139935,-710854390,-2057181693,-1918803286,87349037,-239520355,-63765080,-1498303880,638440996,1648958923,-1100027680,851727497,1610492719,-305567311,1832119084,1771535463,-172947915,-131717336,479587344,615915370,-93410935,-672677570,-103659841,1683789881,192625843,-1440354312,1691067452,-1096874593,-2107962352,-955387821,-1231315699,-2105684295,-1455765535,972993725,2138058195,2077208541,787862829,-1443773044,1723847793,364865685,1205342557,-1094776936,1007058918,-1304496981,2037534759,646111412,1085657544,1637247353,-1222937533,1503006360,417003558,-622518826,-1674967500); -/*FRC*/Random.twister.import_mti(412); void (makeScript(14)); -/*FRC*/count=732; tryItOut("\"use strict\"; M:with(new XPCSafeJSObjectWrapper((new XPCSafeJSObjectWrapper([,] ? ({}) : e))))b0 + g0.b2;"); -/*FRC*/Random.twister.import_mti(510); void (makeScript(14)); -/*FRC*/count=733; tryItOut("this.m0.delete(b0);"); -/*FRC*/Random.twister.import_mti(523); void (makeScript(14)); -/*FRC*/count=734; tryItOut("b1.__proto__ = g2;"); -/*FRC*/Random.twister.import_mti(535); void (makeScript(14)); -/*FRC*/count=735; tryItOut(" for each(let y in \"\\u475D\") print(x);"); -/*FRC*/Random.twister.import_mti(585); void (makeScript(14)); -/*FRC*/count=736; tryItOut("mathy0 = (function(x, y) { \"use strict\"; return Math.fround(( ~ Math.fround(Math.ceil(((y ? Math.fround(Math.atan2(Math.atan(( + ((-0x07fffffff !== (1 | 0)) >>> 0))), y)) : (( ! ( + Math.max(( + Math.fround(Math.hypot(Math.fround(y), y))), Math.fround(x)))) | 0)) != (( ~ (y >>> 0)) >>> 0)))))); }); "); -/*FRC*/Random.twister.import_mta(-954217940,1982570715,-1073978042,2090567811,-1707259487,-336963116,75557213,711977021,172433226,560696336,-687847648,-942999521,553580523,-656099320,-251272101,-1687114230,-752412574,354243404,1975242614,1691676312,-2010250844,-133351726,57255267,1064692801,511467585,947887347,-1532523131,1454835684,2066682757,-1864439169,-582933415,-1357999713,580999759,837707684,540429110,574520645,1433295295,-800276183,2123457700,-607926263,-1836296712,2103777313,588511871,-1771072924,330867430,1837183398,447917793,-362703222,1298982754,-2135536815,-885252184,-887374667,385998215,68099084,600972128,-1456932809,-1926443297,116898267,823340743,2032965424,-390758420,-1569275719,1002763425,-1390793354,1730227429,2037086958,-859769596,-973920005,-2136678360,1709361382,-1653739717,990977605,1875367808,-601515540,1462814006,1865976490,1439819855,-856371197,-831543217,270593979,-35964857,1600941116,-2105212790,431126540,759176468,1431931229,1388695936,2059232049,1813775333,-975361446,187322698,-1655951518,-676866334,-559314348,689972212,1583839016,-1759960122,877931205,-213545640,-851197447,-720944064,1199857726,139758534,-1291991592,1684025704,-1444363454,1651030597,484648489,1479623433,2063423820,-1394008970,1225930625,-1576017674,229291365,416058790,-994941867,1823594846,1856369239,747714577,458477561,-807510676,-783361954,112012490,-813604449,-2132779704,-267767106,-18890583,-652826190,1160775083,-1083259228,-332536376,-1430513498,-1541780623,1435540902,-672393216,-794946192,1875205259,377753571,1545555004,210556704,836028679,1860544526,-1774504571,1206915975,505192176,1977039773,505915472,-881441296,-338299798,-1699340643,-844771169,-925098057,1851147842,684940692,1153114645,-239533365,-901884539,817565051,-469512675,-1969133726,153096632,572464557,1136561439,727428817,1260791948,-984234938,-572005369,-272687020,-2020547107,-215578294,467474579,1599626838,-1128034645,-364735827,-1535236003,1684249940,-1470830257,-1740364635,376287547,2047787698,1742435807,762446975,1301134853,-1915234824,-179359938,1856899048,-213474894,244565674,-1506942309,-753426069,1814108868,-552898355,-2059833520,-8445019,33679387,-1134022463,1979769445,1337872092,-379331528,2140592165,84807848,851848717,625940034,-635535081,1224208329,504235287,434641702,314394840,2136480653,-640127800,1085782412,1905036957,774941450,442295925,-1766398637,2056288526,670385186,-1786598304,-1431009409,-191449938,1912571170,510447303,92322764,-659219871,219402751,-1015034839,1664101278,-902068900,291715509,-1911406214,-519527126,-1898579949,217556279,1960152930,214256006,-1396561448,238886171,-149653204,960271295,1518281988,273792942,-2125932151,1821249845,-1178064367,-2141364410,-1360952352,449065071,1572372007,1811365807,1053966353,-568727815,59264401,-746150692,1288391664,961165364,-1911682429,950873087,-2018619829,1121092600,-1123626109,-186869296,56522970,2342649,1015367774,-1287817714,-1794028175,-1419820946,1361498301,-1735086790,-1859486339,-502304877,-1618352627,-1376681353,2108380183,-2145604868,-1750168569,1434024920,607846213,466646235,-454864283,-832315103,786982571,-783078004,-2108888831,748966368,200723995,-1349807268,1823444415,-435970195,1826467186,706754891,784483590,-878856672,432942204,-93713958,1484231654,-763044000,-721467742,-2141116976,300735220,874868509,696506688,1651147827,1926274105,933381176,-1060054789,1404610818,-1575701449,1103801485,1562865122,-1559711324,538431313,-1973002742,173683980,-464489263,2022005708,-382484226,636772384,-1711730376,1345565388,-881467289,2095961521,-499657769,-1777117662,-1470514607,1228994926,815200323,698806914,-1849390906,2056192324,183418760,1035252016,776527525,150057105,-475587471,1138580415,74205434,-903151039,-2115601593,-289033184,-1147001126,619117855,-457729582,1256939929,-241987810,-1765572712,1651357724,-1323351714,1288599567,111298551,759299855,200497286,-1087505914,-554980231,842969786,509467558,1104951038,-1427945806,-2066498654,-1542237045,-1307476687,-1052642685,-115240313,-1173245654,-1701230441,-50942870,-1327223225,-1332492077,1512263967,-860770235,-460320981,-1093366525,-342213790,2120166516,1929345832,-356483777,-1328647162,-842787230,2116343281,-1890045306,1599599402,-519032034,350483445,127903594,455173244,1090208620,1036339484,1059083923,1592835547,490116619,-1432762796,1429376891,-808929208,-1616967594,1091420430,-1020084345,-2034171241,-1616352914,-53724218,465106644,33279045,-706664413,-941907683,-1006392099,-1477382750,-748877858,1798839076,-11933804,-251824096,-1129527864,-307502054,1427653482,-454778683,1007540189,681749083,-1238777248,1177641903,941720367,1215721215,-1989799188,-1148335410,-241258330,315223294,1561591604,1730022124,-1320528237,1372294540,-1508033427,-1916449286,1489811065,1269890500,-2081594804,2070831639,-2037701581,1718615836,918286622,-1780056385,-50040017,-2013727048,725991079,-442038412,69616980,-644703863,-818585522,1191103187,-1435108184,1254447405,-1448507807,1454419215,-1998110553,240682409,1286785668,-697163362,682028712,33080731,-14801591,-352527698,1512495414,-789893688,23922544,826268171,1388391597,630035759,-207013325,-1113473483,583889836,-1681798686,324696360,675930040,-1018457806,-1341210904,-715781027,1274442159,342425598,300388588,-1541040285,425339589,1990277363,-898370572,-1313487760,245138524,-2109512953,1635301688,-743690228,-1181260145,1411312633,277041002,1442620151,2104049838,1912044186,-161184893,-217952257,-606538952,2107809845,-1459516812,-1670818402,-658681822,-1373058395,1286533116,-914682724,45771322,654215639,647726945,1568931413,-1427132191,1087883430,-202396862,536182159,46959000,-863094200,1903158095,-810745446,1202919298,-1062945036,642186468,1325060369,-1801655679,1136792636,-846384030,369104081,101192538,971080699,767792998,535985638,-851845282,-1036875577,-492597245,1777829379,-202757698,-578567084,1070246862,1847041071,-1665221015,726910775,-2004528169,306822435,2126404415,1654551180,1144102672,1622298554,800985773,1151104505,549196443,143831601,1794860143,549487669,85705240,-679832089,-1587234107,-967554273,63535105,-1805941080,1594118802,2108973450,488237810,-1707668856,251742015,1430743469,-442066767,1788186812,-166886683,536604691,1703492873,-2079008933,2016113121,-441255344,1154188148,1571431067,511126897,-1284441068,-283566519,-616361061,1299921990,616368457,1787664919,-317042146,2025571619,2115577395,1492497300,385991740,-1042491383,-229365727,-1465221394,-298831111,-595938524,688960846,130246478,-838701403,-1895103349,-344285902,506352945,-244668408,420954090,1539494532,740746837,1328654051,-1093377445,1658273083,-455925,286552980,-1139125715,-1429656405,659926544,1966710407,1802809428,-624184640,19556559,1269764588,189229561,-2026571936,-1116004581,75425712,519601311,-1110277226,-627978657,1303498113,1030520559,56246839,-675838587,-1560035580,-1812827067,1820282853,-1926775651,-447813759); -/*FRC*/Random.twister.import_mti(120); void (makeScript(14)); -/*FRC*/count=737; tryItOut("Object.prototype.watch.call(f2, \"getFullYear\", (function() { try { e2.delete(o0); } catch(e0) { } try { v0 = t1.byteOffset; } catch(e1) { } this.v2 = g0.eval(\"this.m1.set(e2, e1);\"); return g1; }));"); -/*FRC*/Random.twister.import_mti(177); void (makeScript(14)); -/*FRC*/count=738; tryItOut("\"use strict\"; for(y in ((new RegExp(\"(?!(\\\\b)*+)\", \"gyim\"))( '' )))h2.get = this.f1;"); -/*FRC*/Random.twister.import_mti(415); void (makeScript(14)); -/*FRC*/count=739; tryItOut("s1 += s0;"); -/*FRC*/Random.twister.import_mti(427); void (makeScript(14)); -/*FRC*/count=740; tryItOut("\"use strict\"; /*RXUB*/var r = r2; var s = s2; print(uneval(s.match(r))); print(r.lastIndex); \n/*MXX2*/g1.RangeError = o0;\n"); -/*FRC*/Random.twister.import_mti(541); void (makeScript(14)); -/*FRC*/count=741; tryItOut("Object.prototype.watch.call(i0, \"min\", f2);"); -/*FRC*/Random.twister.import_mti(557); void (makeScript(14)); -/*FRC*/count=742; tryItOut("e1.has(g1.g1);"); -/*FRC*/Random.twister.import_mti(573); void (makeScript(14)); -/*FRC*/count=743; tryItOut("mathy0 = (function(x, y) { return Math.log2((((( - y) | 0) << (((( - (x === Math.acos((( + (Number.MIN_VALUE >>> 0)) | 0)))) >>> 0) | (x | 0)) | 0)) | 0)); }); testMathyFunction(mathy0, [0, 0.1, ({valueOf:function(){return 0;}}), -0, undefined, '\\0', ({valueOf:function(){return '0';}}), NaN, (new String('')), (new Number(0)), (function(){return 0;}), (new Boolean(true)), '', null, '0', true, ({toString:function(){return '0';}}), objectEmulatingUndefined(), /0/, false, [0], 1, [], '/0/', (new Boolean(false)), (new Number(-0))]); "); -/*FRC*/Random.twister.import_mta(2109016540,-483260059,-50494902,-1779574710,-1609300791,479421804,1211951132,-1563205113,-1008156202,1085814964,94645060,965391114,-1864459828,203532008,413144175,-1921569548,1988329083,310332896,-2075937492,1109812093,1143412806,-1865806703,265573395,767248945,1957285376,-1718445341,910720198,-1014942735,539857779,-1503416449,1754449021,1167937538,1077642667,1537988703,200993841,-925762025,933622904,422006094,-2108512827,-593472445,448679904,259636056,544372629,-1401203193,853990791,1304657446,-100291829,541636962,858155487,794515193,1429006564,-2076642541,-1964978527,531728409,-1053948352,166524462,-220888422,-2139495897,-1014468911,-559520424,-1844115019,335669063,400560587,-609747802,1853133274,65925037,139992721,-34353631,1346115551,209686176,-673560875,531248248,-312910396,-610870157,-490059512,-132762281,-1424349408,-270994412,1966952545,-1094777287,420941549,-885951567,-43190154,406620886,837228406,1209684472,2012885323,378656674,1995472596,1427531727,1532671302,381332447,514047920,-1561030023,-600705941,-799776037,-1098906232,-1868346152,1673528765,-1304497662,-840238406,1216653855,-804917648,1888121486,839575670,-827888996,-889528930,536846778,2108253184,-442817159,-495659376,332102115,324259877,2097784220,1962705775,837548845,1862203136,-1459171277,-631536078,-1284258761,728070163,-1898208761,-1463282495,1182285310,1105500836,-878393363,1937320255,917073236,-578425963,-1800051993,1017743952,955235545,-1219786105,339519438,106469015,1918148851,-1189515239,-1500842551,336582323,-10711197,1441572491,-702237427,-1706887514,548429269,-411084568,800048819,757698761,521248346,-191677532,-87975288,706489059,-699426332,-767695403,-1197712940,898610962,-1558984561,-1126082584,-1240416989,-546850503,1267814371,-582985820,1567715041,-432998645,-744581469,1028723248,-1837989931,-204781711,-1561611312,-1675510027,-1876049950,1912999344,-1726063877,1599669661,607042232,-1452090063,-1067845570,-241718332,-1196166571,-803392697,-765538541,-240610093,-415507383,300560064,-1149546602,-2063389739,-1861669321,-1451634260,1449456310,-644623068,1909713452,2022663708,-845696221,231586879,-970583581,1985347767,-81789433,2082338282,412551241,-1443726802,-1135384049,-490956062,-312573910,-1525447744,1097405718,1019649791,732013443,2087140075,-842003123,-165182300,1634841609,-362682755,476003452,319960197,791207277,2033638199,218291854,-1223436890,381893951,939169750,1167309950,-1788570229,-713566109,374440683,1282616421,-725083858,-54548142,-1068292817,-1408490023,-465884712,-1938173729,1267700892,2137482893,653894365,1314802911,-1263372565,503250820,2066875426,-1070411196,347414920,-1728690661,-1785890061,-135287766,144410915,917361112,1158646800,1344871876,-168629071,-388745394,380345414,-1177544784,-176694234,1567267950,-573669,720199900,1569621615,-445401517,1018968197,167478657,-1038710500,978700611,436528178,-1830583406,-694986184,775638911,-895001815,-671283726,758877378,385096061,-555469511,-931303293,2058819038,-48845725,-1440848654,-99877259,-224964674,1503319091,-1538352764,-1043570090,792849150,1960414958,-775091309,-376991610,-775802255,-1534612886,478819829,-733108353,838407000,941389532,1651454462,-1678197327,-859382235,1270500042,1326119315,896342652,-1849161774,2038331503,1711287793,-1746217923,1465669890,1849907861,-816369453,1257749454,1484180372,-1328872132,1454909622,484508896,918416637,-520427404,-442317504,-320298844,-784343647,886323315,221727614,-589644804,1792244292,1114218155,132929503,1470512602,2124640953,-1575878820,1166723198,1948429663,-1688352310,1940154495,-201117585,-494679741,-1494381757,-989282599,901982909,-713903692,1850747414,-1138345989,1406599691,1646388089,-417743686,2141143165,1501959302,999250924,1688839155,1317192520,-1234015284,1185369990,-845743298,1446457487,-496537601,-1418896836,-1409522536,-737479477,344076579,660626329,1132564925,1584555943,1037672718,711356514,965181575,-43257622,-2117811778,2126534529,-202463677,2001437888,-309006768,-473895157,794589286,1834837133,-655252484,-713723569,1042144213,-1577730341,1769266672,1895973356,-422401141,-1833810599,1350586505,341192029,-1283911654,-1393294937,-1675390535,-871960380,-773619545,-1114235840,-2011938725,-420020681,-1596187846,-1317935658,-1771234155,-1048240713,-854993803,1798355350,-891120325,-209972191,537878977,448089620,-574751746,-1823627274,444226764,1179225953,-537293995,207622227,-725474927,-961784992,-1747542410,1402453344,995139215,-1569727211,-786599494,-1518256427,-302367527,-1982453565,-1183990099,1732238541,-772313565,779733864,1443329286,606090334,1299190662,595842092,-187983004,-977477188,-920339883,1342921048,-1092007504,1060304584,-711589475,1335029916,-1724214305,-1055408920,911557862,-1537328097,405826505,-2134115038,1084204080,-663150805,-1309900475,256951653,-695339582,1708919588,-2030355135,-1449288415,-789228560,566343487,1832648647,-856217812,1788374697,1298399248,66700139,-879719521,-934293615,1731490771,1208797423,-931827488,1781156135,-980511,-1460871674,1504180029,176916386,-1857731441,-513098684,1677329016,1070720309,-1485897977,-29988266,1065094307,-1121791422,-1125487641,-1856738414,425051513,-782534001,-2119592657,-699767629,1352455767,-988911831,-1174666216,1511875131,-50256697,1674464288,-1022477829,461912854,-800184868,95452758,-1195803339,-1295752832,758307571,-861557163,-109102307,-84131678,-900256087,-1985795865,615531621,-1441251617,1957276454,-827140001,-1488248139,807724343,968575480,1489023922,-1296392920,107062542,484467232,-643093971,-347909649,1887177281,2027044049,-296510522,674361643,-1582856699,381042527,-1574207242,-794079393,-809464414,813527817,-2091832665,2136194612,-199231483,1658481962,-2039894389,-248908703,-98977873,-369081324,-1716326275,1276047422,-1332384930,-2027303839,1988576924,1084015198,1878728833,-1090182692,-2085607093,-157146100,607541732,127114867,516455412,-1041250467,-801089628,-1409813047,819365434,1140152320,-576218654,-215543255,76357550,-2082409737,1738289631,-477772842,-550996116,-1416014537,-556871905,2083427253,279184752,-1943001661,-1912588273,1135723797,2039065387,-1686038234,-598083194,-1470005702,-938263651,-347391491,1725543869,-980691311,-915603547,-237407322,-1261130833,1289065185,-459433201,-1130685271,156640964,114057801,-111189286,541150635,1595879820,588432581,-1566701155,-2066026020,540765767,129112396,-494412348,-237542547,-2124122017,1878739063,1441957305,-2076213803,-901458771,1842528240,326850889,-268855252,709365030,-267446812,-918420659,857332938,-1770151534,-112991711,1441280137,-1803928567,-124512243,-1325000672,526769525,-283747326,-1721667666,1076272849,-633832301,-679098048,-667284521,-522991854,257982011,-1449539181,-513594972,142476319,-1740532554,348079224,-445872761,1734943848,-212953586,1675781,-546546564,961119109,-1797197943,1297881747,1809417701,-1831070756,1261736342,223113475,2088415451,-2048839075,-1377416066,-1591537733); -/*FRC*/Random.twister.import_mti(86); void (makeScript(14)); -/*FRC*/count=744; tryItOut("\"use strict\"; m2 = new Map;"); -/*FRC*/Random.twister.import_mti(96); void (makeScript(14)); -/*FRC*/count=745; tryItOut("v2 = Infinity;"); -/*FRC*/Random.twister.import_mti(107); void (makeScript(14)); -/*FRC*/count=746; tryItOut("mathy1 = (function(stdlib, foreign, heap){ \"use asm\"; var Infinity = stdlib.Infinity;\n var ff = foreign.ff;\n var Float64ArrayView = new stdlib.Float64Array(heap);\n function f(d0, d1)\n {\n d0 = +d0;\n d1 = +d1;\n var i2 = 0;\n var i3 = 0;\n var i4 = 0;\n d0 = (Infinity);\n (Float64ArrayView[1]) = ((d0));\n {\n d0 = (288230376151711740.0);\n }\n return (((((0x163edd78)) ? ((0xf90ebb74) >= (0x20d3a3d8)) : (i3))-((0xffffffff) == (((i3)+(0x46af3416))>>>((i2)*0x89b4a)))))|0;\n }\n return f; })(this, {ff: /*wrap1*/(function(){ v0 = Infinity;return XPCNativeWrapper})()}, new ArrayBuffer(4096)); "); -/*FRC*/Random.twister.import_mti(295); void (makeScript(14)); -/*FRC*/count=747; tryItOut("\"use strict\"; L:switch((void version(170))) { case 9: print(x);x = x != eval, a, osnpoo, yrukkm, this.x;this.m1.delete(p1);break; case 4: /*bLoop*/for (yocndb = 0; yocndb < 16; ++yocndb) { if (yocndb % 3 == 0) { print(x); } else { Array.prototype.sort.call(this.a2, (function mcc_() { var qzmxrd = 0; return function() { ++qzmxrd; if (qzmxrd > 5) { dumpln('hit!'); try { v1.__proto__ = f1; } catch(e0) { } f2 = x; } else { dumpln('miss!'); a0 = Array.prototype.concat.apply(g2.a0, [a1, this.t0]); } };})(), f1, b1, t2); } } break; case 4: /*RXUB*/var r = this.o1.r1; var s = s1; print(s.search(r)); case ((timeout(1800))(Float64Array(), '' )): print(\"\\uB8A4\");\np2 + m2;\n }"); -/*FRC*/Random.twister.import_mta(397710010,1935131599,1893517259,1009462796,1570272767,108014632,-1059162703,-1468976100,1388627460,1534881183,-1075116562,-278527576,-453746893,-1143568077,1050000894,-1812939111,-1367179306,-1771827596,-1163052486,768859732,1484831506,172076147,952629162,-1524271422,-952699296,1366887143,638881148,206989706,1747339188,1715701522,1497102211,1860058499,-1243588058,885150966,-2121262021,260083841,444706108,1549529619,298671526,1175939227,525117856,-84095023,-27676581,490173198,-1586310156,-1922094417,-1738886271,303841835,1620260140,-724229704,-1524915189,1786890604,1445298533,772894225,-1386567130,-272891458,1433129829,-790391066,-198025397,-680138595,-126236360,293759426,1636762128,1889477696,424355280,2131864302,169870863,-1953580419,-2123583208,557308961,-1798798185,576745114,866886447,-1189483584,1216864573,1026350352,1513084381,1613940445,-227477647,959676728,1057624584,-812893934,-1803565138,-1290257932,-851891020,-1802572405,-1738216036,-2004095663,-278377772,790159814,897262002,1897632220,-390033624,-2037050053,111281774,-351996329,-990913188,953162122,63606798,-62400065,-404198635,-494632283,480178079,-1636744130,-1707749455,-1450107328,-814351386,-174882098,272906923,-430589336,505994321,460094766,-644541227,-676620360,1357646823,-1461497814,-1608922738,903457955,-1498302608,-1179956968,-286305050,-372930386,-1933585589,-1328780461,-267039472,1403939035,-50915628,1486150970,736324659,-1232829327,1981323050,-1639274649,1202723349,-1919409030,-28403322,102955938,343300662,-1199789797,953699253,1693456556,-1629143526,1249244992,405610689,1059627030,-959746854,-661493061,-1916859852,-541365327,1613183052,1836805504,-1584316495,100547013,344507523,-1743736459,1587673848,-1783734062,742762200,-1260883611,615140516,-595627736,-111382738,-1701736238,771050544,-2137791584,944606356,1408349311,940489128,-1826497128,1052316683,203859099,1540834056,161808077,-1776053867,1043416163,-1886210388,-2134949773,1703566805,687274339,-79694113,-886073148,-1066027030,1230286757,-1730225310,-1533940855,1319048190,1568929539,-1427911907,-820221961,-1839848779,-2021003671,-1228670515,-1330822067,-1535911400,-563968230,-529830041,-1128848944,217255503,567855529,-271705304,1433648436,913864714,-1109033631,-1590021697,-1047404629,-105795032,1350969858,25278259,172782263,1111153536,-617080158,-1578275890,1873183401,491916880,121712695,-949694404,679454899,2050665022,-401379203,-883797435,-1598276888,-1865372416,1521364877,1854146426,-1571113712,-393395541,-1482627786,557239550,196343103,-1845329720,-1530973278,-92208558,-870099662,-101599435,-1357348644,243094479,-2013838911,1044952553,702042216,271577717,164968681,262476428,1558157732,298113444,-514174775,-21281198,907624780,-1958657979,1516316934,-361338843,1163018698,1223625700,-1167276095,595409647,-137997856,-953606039,837341328,1183301618,-1415732668,1270439287,50881568,-390788407,-645970952,1734650581,-286964954,1772004665,1275624405,-114859076,849129817,-802394892,1724250139,2111718908,998705632,-1443618231,1010137303,-1762365684,-376497241,-1191541305,788510135,872743618,-1482405987,31557576,-1534883205,1875582613,1089986603,1282825201,1640197087,2021887268,-2052213191,-767497050,1507361251,-8801271,-782098621,632419100,-262463802,-379608414,-1566712196,-645155880,537397041,-2063992334,-937500201,799643808,824468735,387606772,-1665976752,-162516892,-395970584,-372356571,-230082557,1729068380,1742192011,65809673,2106351105,-2024927155,168787970,-1298905587,-749178808,-1092753227,457979114,-1377304341,616395047,-326656094,-620067544,-1412571956,1878762225,961969015,-2007778736,1349406248,-1619103985,-2036952935,1074989325,-667671498,1851480780,-1185481059,-1809280676,879514970,1972908488,2051158164,-2080225070,1653488456,-2003275206,-1172813238,287387298,-970747593,-984970089,-1627487534,-771185878,302637427,-1277334184,-1791704369,-2093937774,525808237,1660502904,-2041251900,-1117532366,1183128141,856296908,-1981272651,245944512,-935824938,-873434790,-101613051,1235623543,163636336,1988715561,1389907279,925073350,-1504639797,115062921,-1097825636,-1430411179,-2055553856,-1143537468,782183323,371463277,-130925663,1021193741,-510070055,-1487269546,-212633145,59161212,-1717829337,-2057893176,1104728820,-1587732487,-1652536865,-582151695,2016426497,-1403193467,283484542,2136401954,-1224268817,-1720655064,1421892446,-1736106605,1604370857,-1449405013,42917010,-187476391,1330382567,-712488094,-1304323842,-890598189,-457188255,-392423234,1549811164,1666925727,-1210205052,1778755131,51304186,-1964031899,-1752599136,-1625735326,782742897,-1847055960,-2015341456,-1865323573,1461550692,32722215,2056048881,-1954755048,-586912377,32366289,622183237,-1900867033,2111822835,1139010017,-1193973113,-326415770,1927400485,573251039,-1071970850,1797610834,-1338163826,-679706198,-1160783180,-1518490439,-1207720241,191750613,-290741412,2053807171,1518834631,-1752414477,-1995724809,822570209,-2061456322,1571198796,-923995569,1679117558,-739306586,1250436542,-354372681,-1652320809,2085410362,-1377064053,489215960,-1720127429,991819754,-222360427,-202447564,-950444773,1981328386,-1449662088,-437075380,-1954177489,-643824748,-1136959042,-977001575,-1300818676,-213608309,-1759482091,7512916,-1565440824,174540719,476664800,-1025988651,544578456,-1893853818,-980625130,1903895341,-1186839658,1013406701,-1757581272,843850269,-1107757594,-1130211563,-1047441793,-1461628870,-1479536516,-52605960,-1885719154,540330370,-1262836383,-930855825,1609033764,674983015,-717523090,1404906527,-1705908284,1151643190,1677987439,-1629874516,-1519807266,-1477476911,-619288669,118670638,-1452633863,-1915026136,-2118081230,1045424650,-148403628,-108883460,1757006715,-1943782514,-1073504611,-725078413,1397097058,852059543,941732113,-1843703996,1086068015,-1159208969,-60604764,-1879523897,-1648840687,959389863,1654817332,153800255,-1816543204,303054635,-249427205,-1579653974,1773504571,-787884160,-388802988,-1083673295,2084600719,-1851203541,204090812,890431237,-251272330,101944853,1131129631,-1106983217,-711930254,1429767299,-172257429,-1400827350,2038791197,1575914746,530525387,1352508945,-1260734586,1349596058,1225937555,-267345256,1946119296,-797581531,1064100025,-1325535696,-1657960401,-87510629,1845782363,1008276032,1853803486,93758644,-111528765,-1054319699,-1712942981,-391820880,-1256545802,-1250789390,-43113509,-611972060,1842394976,-1330858897,-534248191,2050315242,-1895380150,-97526796,-148195230,1873386826,263887150,2108587184,1261288217,-1423529300,-889169164,533124347,2054386071,-1518923300,-287028907,1711783371,-390290529,-304640729,731341915,-1810629650,-1620777012,425542580,-880764947,1286791266,-381326956,-77867379,1412941941,-681731545,-1815549280,1983209933,-464102844,339355753,1507179341,1727467319,-1885638357,195772413,-201693083,-1042556479,1110976159,1016031200,1664488272,-2095268195,1336403928,-812659458,-891741501,2028412468,-589134259,1782928410,156538319); -/*FRC*/Random.twister.import_mti(131); void (makeScript(14)); -/*FRC*/count=748; tryItOut("testMathyFunction(mathy3, /*MARR*/[ 'A' , x, objectEmulatingUndefined(), x, objectEmulatingUndefined(), 'A' , 'A' , x, x, objectEmulatingUndefined(), 'A' , x, objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), 'A' , objectEmulatingUndefined(), 'A' , x, x, 'A' , x, objectEmulatingUndefined(), 'A' , 'A' , x, 'A' , x, objectEmulatingUndefined(), 'A' , 'A' , objectEmulatingUndefined(), objectEmulatingUndefined(), x, objectEmulatingUndefined(), x, 'A' , objectEmulatingUndefined(), objectEmulatingUndefined()]); "); -/*FRC*/Random.twister.import_mti(239); void (makeScript(14)); -/*FRC*/count=749; tryItOut("g2.m0.delete(i0);"); -/*FRC*/Random.twister.import_mti(255); void (makeScript(14)); -/*FRC*/count=750; tryItOut("this.e2.delete(o2.h2);"); -/*FRC*/Random.twister.import_mti(271); void (makeScript(14)); -/*FRC*/count=751; tryItOut("\"use strict\"; f1 + '';"); -/*FRC*/Random.twister.import_mti(280); void (makeScript(14)); -/*FRC*/count=752; tryItOut("{ void 0; void gc('compartment'); }"); - diff --git a/implementation-contributed/javascriptcore/stress/regress-159883.js b/implementation-contributed/javascriptcore/stress/regress-159883.js index dfc0ab729ff51592cdb6f94bec119890b32fa348..ced2d163df07dbd858ba62cdca7a6cb6c5d082de 100644 --- a/implementation-contributed/javascriptcore/stress/regress-159883.js +++ b/implementation-contributed/javascriptcore/stress/regress-159883.js @@ -1,3 +1,4 @@ +// Reviewed // Regression test for 159883. This test should not crash or throw an exception. d = new Date(-0x80000000, 42); diff --git a/implementation-contributed/javascriptcore/stress/regress-159954.js b/implementation-contributed/javascriptcore/stress/regress-159954.js deleted file mode 100644 index 356375d97598312ea3f47cdba6a17c75d361475e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-159954.js +++ /dev/null @@ -1,23 +0,0 @@ -// Regression test for 159954. This test should not crash or throw an exception. - -function testRegExp(regexpExpression) -{ - try { - let result = eval(regexpExpression); - - throw "Expected \"" + regexpExpression + "\" to throw and it didn't"; - } catch (e) { - if (e != "SyntaxError: Invalid regular expression: pattern exceeds string length limits") - throw e; - return true; - } -} - -testRegExp("/a{2147483649,2147483650}a{2147483649,2147483650}/.exec('aaaa')"); -testRegExp("/a{2147483649,2147483650}a{2147483649,2147483650}/.exec('aa')"); -testRegExp("/(?:\1{2147483649,2147483650})+/.exec('123')"); -testRegExp("/([^]{2147483648,2147483651}(?:.){2})+?/.exec('xxx')"); -testRegExp("/(\u0004\W\u0f0b+?$[\xa7\t\t-\ue118\f]{2147483648,2147483648})+.+?/u.exec('testing')"); -testRegExp("/(.{2147483649,2147483652})+?/g.exec('xxx')"); -testRegExp("/(?:(?:[\D]{2147483649})+?.)*?/igmy.exec('123\\n123')"); -testRegExp("/(?:\1{2147483648,})+?/m.exec('xxx')"); diff --git a/implementation-contributed/javascriptcore/stress/regress-160329.js b/implementation-contributed/javascriptcore/stress/regress-160329.js deleted file mode 100644 index 156b62d1ea8537774906f09ae55abf86ba4634c9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-160329.js +++ /dev/null @@ -1,17 +0,0 @@ -// Regression test for 160329. This test should not crash or throw an exception. - -function narrow(x) { - return x << 24 >> 24; -} - -noInline(narrow); - -for (var i = 0; i < 1000000; i++) { - let expected = i << 24; - let got = narrow(i); - expected = expected >> 24; - - if (expected != got) - throw "FAILURE, expected:" + expected + ", got:" + got; -} - diff --git a/implementation-contributed/javascriptcore/stress/regress-160749.js b/implementation-contributed/javascriptcore/stress/regress-160749.js deleted file mode 100644 index 9fcd7f7e672a3c92af19d8b6288c70a48a5eb536..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-160749.js +++ /dev/null @@ -1,91 +0,0 @@ -// Regression test for 160749. This test should not exit with an error or crash. -// Check that the Baseline JIT GetByValWithCacheId and PutByValWithCahcedId stubs properly handle exceptions. - -function testCachedGetByVal() -{ - o = { }; - o['a'] = 42; - - let result = 0; - let loopCount = 100000; - let interationToChange = 90000; - let expectedResult = 42 * interationToChange; - let exceptions = 0; - let expectedExceptions = loopCount - interationToChange; - - for (let i = 0; i < loopCount; i++) { - if (i == interationToChange) { - Object.defineProperty(o, "a", { - enumerable: true, - get: function() { throw "error"; return 100; } - }); - } - - for (let v in o) { - try { - result += o[v.toString()]; - } catch(e) { - if (e == "error") - exceptions++; - else - throw "Got wrong exception \"" + e + "\""; - } - } - } - - if (result != expectedResult) - throw "Expected a result of " + expectedResult + ", but got " + result; - if (exceptions != expectedExceptions) - throw "1 Expected " + expectedExceptions + " exceptions, but got " + exceptions; -} - -noDFG(testCachedGetByVal); - -function testCachedPutByVal() -{ - o = { }; - o['a'] = 0; - - let result = 0; - let loopCount = 100000; - let iterationToChange = 90000; - let exceptions = 0; - let expectedExceptions = loopCount - iterationToChange; - - for (let i = 0; i < loopCount; i++) { - if (i == iterationToChange) { - result = o.a; - Object.defineProperty(o, "_a", { - enumerable: false, - value: -1 - }); - Object.defineProperty(o, "a", { - enumerable: true, - set: function(v) { throw "error"; o._a = v; } - }); - } - - for (let v in o) { - try { - o[v.toString()] = i + 1; - } catch(e) { - if (e == "error") - exceptions++; - else - throw "Got wrong exception \"" + e + "\""; - } - } - } - - if (result != iterationToChange) - throw "Expected a result of " + result + ", but got " + o.a; - if (o._a != -1) - throw "Expected o._b to -1, but it is " + o._a; - if (exceptions != expectedExceptions) - throw "Expected " + expectedExceptions + " exceptions, but got " + exceptions; -} - -noDFG(testCachedPutByVal); - -testCachedGetByVal(); -testCachedPutByVal(); diff --git a/implementation-contributed/javascriptcore/stress/regress-161995.js b/implementation-contributed/javascriptcore/stress/regress-161995.js deleted file mode 100644 index 604e9390cd32857c7d9e597d153974b4425d7488..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-161995.js +++ /dev/null @@ -1,14 +0,0 @@ -// Regression test for 161995. - -function testStatic() -{ - return /a/Z; -} - -try { - testStatic(); - throw "Expected a SyntaxEerror for bad RegExp flags, but didn't get one."; -} catch(e) { - if (e != "SyntaxError: Invalid regular expression: invalid flags") - throw "Incorrect exception for bad RegExp flags. Got: " + e; -} diff --git a/implementation-contributed/javascriptcore/stress/regress-163748.js b/implementation-contributed/javascriptcore/stress/regress-163748.js deleted file mode 100644 index 807798af81e7ef1d92ba4f99ce6bb48d292d9d06..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-163748.js +++ /dev/null @@ -1,24 +0,0 @@ -function assert(cond, msg = "") { - if (!cond) - throw new Error(msg); -} -noInline(assert); - -function shouldThrowSyntaxError(str) { - var hadError = false; - try { - eval(str); - } catch (e) { - if (e instanceof SyntaxError) - hadError = true; - } - assert(hadError, "Did not throw syntax error"); -} -noInline(shouldThrowSyntaxError); - -shouldThrowSyntaxError("var f = new Function('}{')"); -shouldThrowSyntaxError("var f = new Function('}}{{')"); - -var GeneratorFunction = function*(){}.constructor; -shouldThrowSyntaxError("var f = new GeneratorFunction('}{')"); -shouldThrowSyntaxError("var f = new GeneratorFunction('}}{{')"); diff --git a/implementation-contributed/javascriptcore/stress/regress-164081.js b/implementation-contributed/javascriptcore/stress/regress-164081.js deleted file mode 100644 index 96b15eda960f42814167654c87f7470361f5328a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-164081.js +++ /dev/null @@ -1,34 +0,0 @@ -//@ runFTLNoCJIT - -// Regression test for https://webkit.org/b/164081. -// This test passes if it does not crash nor throws an error. - -function shouldEqual(actual, expected) { - if (actual != expected) { - throw "ERROR: expect " + expected + ", actual " + actual; - } -} - -var count = 10000; - -var g_arr = new Array(count); -for (var z = 0; z < count; z+=2) { - testcase(z); -} -function testcase(z) { - var visited = []; - - g_arr[z]= Function('\'use strict\''); - g_arr[z][0]=5; - try { - g_arr[z+1] = new Uint32Array(8); //can skip - g_arr[z+1][6] = 0x41414141; // can skip - g_arr[z+1][7] = 0x41414141; // can skip - visited.push("set_caller"); - g_arr[z].caller= 1; - } catch (e) { - visited.push("caught_exception"); - } - shouldEqual(visited, "set_caller,caught_exception"); -} - diff --git a/implementation-contributed/javascriptcore/stress/regress-166812.js b/implementation-contributed/javascriptcore/stress/regress-166812.js deleted file mode 100644 index d55ed9a1148befa3b77849aa068106695257a855..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-166812.js +++ /dev/null @@ -1,17 +0,0 @@ -function shouldEqual(actual, expected) { - if (actual != expected) { - throw "ERROR: expect " + expected + ", actual " + actual; - } -} - -(function() { - var exception; - var x = new Uint32Array(0x10); - try { - x.set(x.__proto__, 0); - } catch (e) { - exception = e; - } - - shouldEqual(exception, "TypeError: Receiver should be a typed array view"); -})(); diff --git a/implementation-contributed/javascriptcore/stress/regress-168546.js b/implementation-contributed/javascriptcore/stress/regress-168546.js deleted file mode 100644 index fce57236dd9f84e2d279de9a28c0fc2d028548d5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-168546.js +++ /dev/null @@ -1,14 +0,0 @@ -// This test passes if it does not crash. -try { - (function () { - let a = { - get val() { - [...{a = 1.45}] = []; - a.val.x; - }, - }; - - a.val; - })(); -} catch (e) { -} diff --git a/implementation-contributed/javascriptcore/stress/regress-169445.js b/implementation-contributed/javascriptcore/stress/regress-169445.js deleted file mode 100644 index 35e455693a2d4f059c1e282c7b5c42319ef0472e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-169445.js +++ /dev/null @@ -1,44 +0,0 @@ -let args = new Array(0x10000); -args.fill(); -args = args.map((_, i) => 'a' + i).join(', '); - -let gun = eval(`(function () { - class A { - - } - - class B extends A { - constructor(${args}) { - () => { - ${args}; - super(); - }; - - class C { - constructor() { - } - - trigger() { - (() => { - super.x; - })(); - } - - triggerWithRestParameters(...args) { - (() => { - super.x; - })(); - } - } - - return new C(); - } - } - - return new B(); -})()`); - -for (let i = 0; i < 0x10000; i++) { - gun.trigger(); - gun.triggerWithRestParameters(1, 2, 3); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-169783.js b/implementation-contributed/javascriptcore/stress/regress-169783.js deleted file mode 100644 index 1555e91e4df821d9d9846e248d5da3022323886b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-169783.js +++ /dev/null @@ -1,20 +0,0 @@ -//@ skip - -function test(a) { - var x = [1337, ...a, ...a, ...a, ...a, ...a]; -} -noInline(test); - -function doTest(a, shouldThrow) { - var exception; - try { - test(a); - } catch (e) { - exception = e; - } - if (shouldThrow && exception != "Error: Out of memory") - throw("FAILED"); -} - -var a = new Array(0x40000); -doTest(a, true); diff --git a/implementation-contributed/javascriptcore/stress/regress-169889-array-concat.js b/implementation-contributed/javascriptcore/stress/regress-169889-array-concat.js deleted file mode 100644 index 1d8fb7d79ef579c9aa6678bd6c57d3275ff94a50..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-169889-array-concat.js +++ /dev/null @@ -1,28 +0,0 @@ -//@ runFTLNoCJIT - -Array.prototype.__defineGetter__(100, () => 1); - -let childGlobal = createGlobalObject(); -let a = new childGlobal.Array(2.3023e-320, 2.3023e-320); -let b = new childGlobal.Array(2.3023e-320, 2.3023e-320); - -var tierWarmUpIterations = [ - 1, // LLInt - 50, // baseline JIT - 500, // DFG - 10000, // FTL -]; - -function doTest(warmUpIterations) { - var test = new Function("a", "b", "return Array.prototype.concat.call(a, b).toString();"); - noInline(test); - - for (var i = 0; i < warmUpIterations; i++) - test([1, 2], [3, 4]); - - test(a, b); -} - -for (var warmUpIterations of tierWarmUpIterations) - doTest(warmUpIterations); - diff --git a/implementation-contributed/javascriptcore/stress/regress-169889-array-concat1.js b/implementation-contributed/javascriptcore/stress/regress-169889-array-concat1.js deleted file mode 100644 index cbb48a2525eb81b46cf30f6dd081e562746bba7c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-169889-array-concat1.js +++ /dev/null @@ -1,28 +0,0 @@ -//@ runFTLNoCJIT - -Array.prototype.__defineGetter__(100, () => 1); - -let childGlobal = createGlobalObject(); -let a = new childGlobal.Array(2.3023e-320, 2.3023e-320); -let b = 2.3023e-320; - -var tierWarmUpIterations = [ - 1, // LLInt - 50, // baseline JIT - 500, // DFG - 10000, // FTL -]; - -function doTest(warmUpIterations) { - var test = new Function("a", "b", "return Array.prototype.concat.call(a, b).toString();"); - noInline(test); - - for (var i = 0; i < warmUpIterations; i++) - test([1, 2], [3, 4]); - - test(a, b); -} - -for (var warmUpIterations of tierWarmUpIterations) - doTest(warmUpIterations); - diff --git a/implementation-contributed/javascriptcore/stress/regress-169889-array-slice.js b/implementation-contributed/javascriptcore/stress/regress-169889-array-slice.js deleted file mode 100644 index 668a807043056ac5e42b61268a1773c1f50140ea..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-169889-array-slice.js +++ /dev/null @@ -1,27 +0,0 @@ -//@ runFTLNoCJIT - -Array.prototype.__defineGetter__(100, () => 1); - -let childGlobal = createGlobalObject(); -let a = new childGlobal.Array(2.3023e-320, 2.3023e-320, 2.3023e-320, 2.3023e-320, 2.3023e-320, 2.3023e-320); - -var tierWarmUpIterations = [ - 1, // LLInt - 50, // baseline JIT - 500, // DFG - 10000, // FTL -]; - -function doTest(warmUpIterations) { - var test = new Function("a", "return Array.prototype.slice.call(a).toString();"); - noInline(test); - - for (var i = 0; i < warmUpIterations; i++) - test([1, 2, 3]); - - test(a); -} - -for (var warmUpIterations of tierWarmUpIterations) - doTest(warmUpIterations); - diff --git a/implementation-contributed/javascriptcore/stress/regress-169941.js b/implementation-contributed/javascriptcore/stress/regress-169941.js deleted file mode 100644 index f42d8f011db8b3cd7d8bc2cec8ea4179759af9cb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-169941.js +++ /dev/null @@ -1,19 +0,0 @@ -// This test should not crash. - -function gc() { - for (let i = 0; i < 0x10; i++) { - var a2 = new ArrayBuffer(0x1000000); - } -} - -Array.prototype.__defineGetter__(0x1000, () => 1); - -gc(); - -for (let i = 0; i < 0x100; i++) { - var a1 = new Array(0x100).fill(1234.5678); -} - -gc(); - -new Array(0x100).splice(0).toString(); diff --git a/implementation-contributed/javascriptcore/stress/regress-170251.js b/implementation-contributed/javascriptcore/stress/regress-170251.js deleted file mode 100644 index aa174ae97de2c27bffc1477482ec3d09cb076956..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170251.js +++ /dev/null @@ -1,32 +0,0 @@ -Object.prototype.__defineGetter__(1000, () => 2); - -let locales = [ - 'mr', 'bs', 'ee-TG', 'ms', 'kam-KE', 'mt', 'ha', 'es-HN', 'ml-IN', 'ro-MD', - 'kab-DZ', 'he', 'es-CO', 'my', 'es-PA', 'az-Latn', 'mer', 'en-NZ', 'xog-UG', - 'sg', 'fr-GP', 'sr-Cyrl-BA', 'hi', 'fil-PH', 'lt-LT', 'si', 'en-MT', 'si-LK', - 'luo-KE', 'it-CH', 'teo', 'mfe', 'sk', 'uz-Cyrl-UZ', 'sl', 'rm-CH', 'az-Cyrl-AZ', - 'fr-GQ', 'kde', 'sn', 'cgg-UG', 'so', 'fr-RW', 'es-SV', 'mas-TZ', 'en-MU', 'sq', - 'hr', 'sr', 'en-PH', 'ca', 'hu', 'mk-MK', 'fr-TD', 'nb', 'sv', 'kln-KE', 'sw', - 'nd', 'sr-Latn', 'el-GR', 'hy', 'ne', 'el-CY', 'es-CR', 'fo-FO', 'pa-Arab-PK', - 'seh', 'ar-YE', 'ja-JP', 'ur-PK', 'pa-Guru', 'gl-ES', 'zh-Hant-HK', 'ar-EG', 'nl', - 'th-TH', 'es-PE', 'fr-KM', 'nn', 'kk-Cyrl-KZ', 'kea', 'lv-LV', 'kln', 'tzm-Latn', - 'yo', 'gsw-CH', 'ha-Latn-GH', 'is-IS', 'pt-BR', 'cs', 'en-PK', 'fa-IR', 'zh-Hans-SG', - 'luo', 'ta', 'fr-TG', 'kde-TZ', 'mr-IN', 'ar-SA', 'ka-GE', 'mfe-MU', 'id', 'fr-LU', - 'de-LU', 'ru-MD', 'cy', 'zh-Hans-HK', 'te', 'bg-BG', 'shi-Latn', 'ig', 'ses', 'ii', - 'es-BO', 'th', 'ko-KR', 'ti', 'it-IT', 'shi-Latn-MA', 'pt-MZ', 'ff-SN', 'haw', - 'zh-Hans', 'so-KE', 'bn-IN', 'en-UM', 'to', 'id-ID', 'uz-Cyrl', 'en-GU', 'es-EC', - 'en-US-posix', 'sr-Latn-BA', 'is', 'luy', 'tr', 'en-NA', 'it', 'da', 'bo-IN', - 'vun-TZ', 'ar-SD', 'uz-Latn-UZ', 'az-Latn-AZ', 'de', 'es-GQ', 'ta-IN', 'de-DE', - 'fr-FR', 'rof-TZ', 'ar-LY', 'en-BW', 'asa', 'zh', 'ha-Latn', 'fr-NE', 'es-MX', - 'bem-ZM', 'zh-Hans-CN', 'bn-BD', 'pt-GW', 'om', 'jmc', 'de-AT', 'kk-Cyrl', 'sw-TZ', - 'ar-OM', 'et-EE', 'or', 'da-DK', 'ro-RO', 'zh-Hant', 'bm-ML', 'ja', 'fr-CA', 'naq', - 'zu', 'en-IE', 'ar-MA', 'es-GT', 'uz-Arab-AF', 'en-AS', 'bs-BA', 'am-ET', 'ar-TN', - 'haw-US', 'ar-JO', 'fa-AF', 'uz-Latn', 'en-BZ', 'nyn-UG', 'ebu-KE', 'te-IN', 'cy-GB', - 'uk', 'nyn', 'en-JM', 'en-US', 'fil', 'ar-KW', 'af-ZA', 'en-CA', 'fr-DJ', 'ti-ER', - 'ig-NG', 'en-AU', 'ur', 'fr-MC', 'pt-PT', 'pa', 'es-419', 'fr-CD', 'en-SG', 'bo-CN', - 'kn-IN', 'sr-Cyrl-RS', 'lg-UG', 'gu-IN', 'ee', 'nd-ZW', 'bem', 'uz', 'sw-KE', - 'sq-AL', 'hr-HR', 'mas-KE', 'el', 'ti-ET', 'es-AR', 'pl', 'en', 'eo', 'shi', 'kok', - 'fr-CF', 'fr-RE', 'mas', 'rof', 'ru-UA', 'yo-NG', 'dav-KE', 'gv-GB', 'pa-Arab', 'es', - 'teo-UG', 'ps', 'es-PR', 'fr-MF', 'et', 'pt', 'eu', 'ka', 'rwk-TZ', 'nb-NO', 'fr-CG' -]; -Intl.getCanonicalLocales(locales); diff --git a/implementation-contributed/javascriptcore/stress/regress-170412.js b/implementation-contributed/javascriptcore/stress/regress-170412.js deleted file mode 100644 index bf288b93fb62c2af9e11c7750da8e9ff1c9bfa72..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170412.js +++ /dev/null @@ -1,8 +0,0 @@ -// This test passes if it does not crash. - -arr = new Array; -Object.defineProperty(arr, 18, ({writable: true, configurable: true})); -for (var i = 0; i < 3; ++i) { - Array.prototype.push.apply(arr, ["", () => { }, {}]); - Array.prototype.sort.apply(arr, [edenGC, []]); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-170473.js b/implementation-contributed/javascriptcore/stress/regress-170473.js deleted file mode 100644 index aa9aaba8dc5e1029cd771d38a7a1f7b46baec240..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170473.js +++ /dev/null @@ -1,15 +0,0 @@ -//@ skip -var heap = new SharedArrayBuffer(4096); -var Uint8ArrayView = new Uint8Array(heap); - -function test(k) { - var d = new Float32Array(); - var c = d | 0; - var b = 1 % c; - var a = b | 0; - Uint8ArrayView[a] = 0; -} -noInline(test); - -for (var k = 0; k < 200; ++k) - test(k); diff --git a/implementation-contributed/javascriptcore/stress/regress-170661.js b/implementation-contributed/javascriptcore/stress/regress-170661.js deleted file mode 100644 index 0ee4709104377e27ce35d5b83ee7822fffab0a91..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170661.js +++ /dev/null @@ -1,18 +0,0 @@ -function f() { - (function bar() { - eval('1'); - f(); - }()); - - throw 1; -} - -var exception; -try { - f(); -} catch (e) { - exception = e; -} - -if (exception != "RangeError: Maximum call stack size exceeded.") - throw("FAILED"); diff --git a/implementation-contributed/javascriptcore/stress/regress-170732.js b/implementation-contributed/javascriptcore/stress/regress-170732.js index b4474c26c3bacb7e8462d00036819d7b2c288abd..0bd7cf8bf81f56762637d744b366d79e651fd239 100644 --- a/implementation-contributed/javascriptcore/stress/regress-170732.js +++ b/implementation-contributed/javascriptcore/stress/regress-170732.js @@ -1,3 +1,4 @@ +// Reviewed //@ runDefault("--exception=SyntaxError") async function f() { await async()=>{} diff --git a/implementation-contributed/javascriptcore/stress/regress-170896-with-contiguous-shape-profile.js b/implementation-contributed/javascriptcore/stress/regress-170896-with-contiguous-shape-profile.js deleted file mode 100644 index 77af04ada2630bcb8b0593d2b1f15233c7c5265d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170896-with-contiguous-shape-profile.js +++ /dev/null @@ -1,13 +0,0 @@ -function test() { - let a = [,,,,,,,,,]; - return a.concat(); -} -noInline(test); - -test()[0] = {}; // Set the ArrayAllocationProfile to ContiguousShape. - -for (let i = 0; i < 20000; ++i) { - var result = test(); - if (result[0]) - throw result.toString(); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-170896-with-double-shape-profile.js b/implementation-contributed/javascriptcore/stress/regress-170896-with-double-shape-profile.js deleted file mode 100644 index abda98beef0e567ab06a9659b658de10e5ef398c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170896-with-double-shape-profile.js +++ /dev/null @@ -1,13 +0,0 @@ -function test() { - let a = [,,,,,,,,,]; - return a.concat(); -} -noInline(test); - -test()[0] = 1.2345; // Set the ArrayAllocationProfile to DoubleShape. - -for (let i = 0; i < 20000; ++i) { - var result = test(); - if (result[0]) - throw result.toString(); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-170896-with-int32-shape-profile.js b/implementation-contributed/javascriptcore/stress/regress-170896-with-int32-shape-profile.js deleted file mode 100644 index e792bd1b4d082a54271e796399f2a6aa96ef3182..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170896-with-int32-shape-profile.js +++ /dev/null @@ -1,13 +0,0 @@ -function test() { - let a = [,,,,,,,,,]; - return a.concat(); -} -noInline(test); - -test()[0] = 42; // Set the ArrayAllocationProfile to Int32Shape. - -for (let i = 0; i < 20000; ++i) { - var result = test(); - if (result[0]) - throw result.toString(); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-170973.js b/implementation-contributed/javascriptcore/stress/regress-170973.js deleted file mode 100644 index f3d5b005ebd5aa7c9798b042044e3c53fb6eade0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170973.js +++ /dev/null @@ -1,16 +0,0 @@ -// This test passes if it does not crash. - -function test(i0, i1) { - i0 = i0|0; - i1 = i1|0; - if (i1 & 1) - i1 = (((i0 ? i1 : i1)-i0) ? false : 0); -} -noInline(test); - -for (var k = 0; k < 200; ++k) { - if (k < 100) - test(0, 0x80000001); - else - test(0x800, 0x80000001); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-170989.js b/implementation-contributed/javascriptcore/stress/regress-170989.js deleted file mode 100644 index 00367dce05f9f3fc79e84c7770b31eeb5f6b0f29..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170989.js +++ /dev/null @@ -1,7 +0,0 @@ -class C extends Array {} -var c = new C(); -c.push(2,4,6); -var result = c.slice(9,2); -if (result.length) - throw ("FAILED: expected 0, actual " + result.length); - diff --git a/implementation-contributed/javascriptcore/stress/regress-170990.js b/implementation-contributed/javascriptcore/stress/regress-170990.js deleted file mode 100644 index c7c457b632e012bcad710a2f3b497e8c91f693b3..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-170990.js +++ /dev/null @@ -1,15 +0,0 @@ -function getter(arr, operand, resultArr) { - resultArr[0] = arr[operand]; -} - -function test(resultArr, arr, getter) { - getter(arr, 0, resultArr); - getter(arr, 1, resultArr); - resultArr[0] == arr[1]; -} -noInline(run); - -var arr = new Uint32Array([0x80000000,1]); -var resultArr = []; -for (var i = 0; i < 10000; i++) - test(resultArr, arr, getter); diff --git a/implementation-contributed/javascriptcore/stress/regress-171079.js b/implementation-contributed/javascriptcore/stress/regress-171079.js deleted file mode 100644 index 0f02070e89d14b683653969cb5f12ce6cb8bf2b7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-171079.js +++ /dev/null @@ -1,38 +0,0 @@ -function assert(actual, expected) { - if (actual != expected) - throw("FAILED: actual " + actual + ", expected " + expected); -} - -Object.defineProperty(this, "t0", { - get: function() { - "use strict"; - return t2.subarray(4, 7); - } -}); - -t2 = new Uint16Array(); - -var exception; -function test() { - exception = void 0; - try { - return t0; - } catch (e) { - exception = e; - } -} - -for (var i = 0; i < 100; ++i) { - test(); - assert(exception, void 0); -} - -t2.__proto__ = { - subarray: 1 -}; - -test(); -assert(exception, "TypeError: t2.subarray is not a function. (In 't2.subarray(4, 7)', 't2.subarray' is 1)"); - -test(); -assert(exception, "TypeError: t2.subarray is not a function. (In 't2.subarray(4, 7)', 't2.subarray' is 1)"); diff --git a/implementation-contributed/javascriptcore/stress/regress-172346.js b/implementation-contributed/javascriptcore/stress/regress-172346.js deleted file mode 100644 index 7c2494817556d5d1e072139db7f7ceec9c8afb59..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-172346.js +++ /dev/null @@ -1,16 +0,0 @@ -function test(){ - var get = []; - var p = new Proxy(Function(), { get:function(){ return Proxy; }}); - ({}) instanceof p; -} - -var exception; -try { - test(); -} catch (e) { - exception = e; -} - -if (exception != "TypeError: calling Proxy constructor without new is invalid") - throw "FAILED"; - diff --git a/implementation-contributed/javascriptcore/stress/regress-172383.js b/implementation-contributed/javascriptcore/stress/regress-172383.js deleted file mode 100644 index fc3c032cdcbe041c2f4099e9f6ef6561b34de94e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-172383.js +++ /dev/null @@ -1,40 +0,0 @@ -// This test should not crash. - -let x = undefined; - -function foo(w, a0, a1) { - var r0 = x % a0; - var r1 = w ^ a1; - - var r4 = 3 % 7; - - var r6 = w ^ 0; - var r7 = r4 / r4; - var r9 = x - r7; - a1 = 0 + r0; - - var r11 = 0 & a0; - var r12 = r4 * a1; - var r7 = r11 & a0; - - var r15 = r11 | r4; - var r16 = 0 & r1; - var r20 = 5 * a0; - - var r2 = 0 + r9; - var r26 = r11 | r15; - var r29 = r16 + 0; - var r29 = r28 * r1; - var r34 = w / r12; - - var r28 = 0 / r7; - var r64 = r20 + 0; - var r65 = 0 + r6; - - return a1; -} -noInline(foo); - -for (var i = 0; i < 1886; i++) - foo("q"); - diff --git a/implementation-contributed/javascriptcore/stress/regress-172548.patch b/implementation-contributed/javascriptcore/stress/regress-172548.patch deleted file mode 100644 index a2f73318507eca5830d29ab58bda57e5f0e820ec..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-172548.patch +++ /dev/null @@ -1,43 +0,0 @@ -//@ run("custom-noCJIT-noConcurrentGC-noGenGC-noDFG", "--useConcurrentJIT=false", "--useConcurrentGC=false", "--useGenerationalGC=false", "--useDFGJIT=false") - -// This test should not crash. - -(function() { - function foo(x, y) { - return (( ~ (((((Math.fround(0 % y) >= y) ) / ((Math.max(((Math.atan2(((Math.pow((-Number.MAX_VALUE >>> 0), (x | 0)) | 0) >>> 0), y) >>> 0) - ( + (( ! (0 | 0)) | 0))), Math.pow(Math.fround(((x | 0) ^ y)), ( ! ( + y)))) | 0) | 0)) | 0) | 0)) | 0); - }; - - var inputs = [null, NaN, (1/0), NaN, (1/0), arguments.callee, null, (1/0), arguments.callee, NaN, (1/0), arguments.callee, (1/0), arguments.callee, NaN, null, NaN, null, (1/0), NaN, arguments.callee, (1/0), NaN, null, arguments.callee, (1/0), NaN, NaN, NaN, NaN, NaN, arguments.callee, null, (1/0), NaN, null, null, (1/0), (1/0), NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, NaN, null, null, (1/0), NaN, null, null, arguments.callee, NaN, NaN, null, null, arguments.callee, null, NaN, (1/0), NaN, NaN, arguments.callee, NaN, arguments.callee, null, NaN, NaN, null, arguments.callee, NaN, null, (1/0), NaN, arguments.callee, null, null, NaN, null, NaN, arguments.callee, arguments.callee, arguments.callee, arguments.callee, null, arguments.callee, (1/0), (1/0), (1/0), (1/0), (1/0), NaN, (1/0), arguments.callee, NaN, (1/0)]; - - for (var j = 0; j < inputs.length; ++j) { - for (var k = 0; k < inputs.length; ++k) { - foo(inputs[k], inputs[k]); - } - } - -})(); - -Math.ceil = "\uEB0D"; - -m2 = new Map; -m2.toSource = (function() { }); - -m1 = new Map; -m2.toString(); - -o2 = m1.__proto__; -m2 = new Map; - -test = function() { - Math.log1p(/x/g), Math.log1p(/x/g), Math.ceil(0x100000001); -}; - -for (var i = 0; i < 33000; i++) { - try { - test(); - } catch (e) { - } -} - -o2.g0 = this; -o2.h1 = {}; diff --git a/implementation-contributed/javascriptcore/stress/regress-173035.js b/implementation-contributed/javascriptcore/stress/regress-173035.js deleted file mode 100644 index c462f0c8c6f669215ce37e77a3d3a03795bb58eb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-173035.js +++ /dev/null @@ -1,6 +0,0 @@ -//@ skip if ($hostOS != "" || $architecture != "x86-64") - -var a = []; -for (var i=0; i<0x04001000; i++) a.push(i+0.1); -a.length = 0x20000000; -a.slice(0x1fffffff,0x20000000); diff --git a/implementation-contributed/javascriptcore/stress/regress-173053.js b/implementation-contributed/javascriptcore/stress/regress-173053.js deleted file mode 100644 index 2dae670fb2ba7657b578a2f7109becf7735ed7b5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-173053.js +++ /dev/null @@ -1,19 +0,0 @@ -var exception; - -try { - eval("'\\\r\n'"); -} catch (e) { - exception = e; -} - -if (exception) - throw "FAILED: \\r\\n should be handled as a line terminator"; - -try { - eval("'\\\n\r'"); -} catch (e) { - exception = e; -} - -if (exception != "SyntaxError: Unexpected EOF") - throw "FAILED: \\n\\r should NOT be handled as a line terminator. Expected exception: 'SyntaxError: Unexpected EOF', actual: '" + exception + "'"; diff --git a/implementation-contributed/javascriptcore/stress/regress-173321.js b/implementation-contributed/javascriptcore/stress/regress-173321.js deleted file mode 100644 index 75ca1ae30cecb4811b60c8cd2bf52fee2b681a32..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-173321.js +++ /dev/null @@ -1,56 +0,0 @@ -var checks = 0; - -function shouldBe(o, testObj) -{ - checks = checks + 1; - - if (o.a != testObj.a) - throw "Check #" + checks + " o.a should be " + testObj.a + " , is " + o.a; - - if (o.b != testObj.b) - throw "Check #" + checks + " o.b should be " + testObj.b + " , is " + o.b; - - if (o.c != testObj.c) - throw "Check #" + checks + " o.c should be " + testObj.c + " , is " + o.c; - - if (o.p != testObj.p) - throw "Check #" + checks + " o.p should be " + testObj.p + " , is " + o.p; - - if (o.x != testObj.x) - throw "Check #" + checks + " o.x should be " + testObj.x + " , is " + o.x; - - if (o.y != testObj.y) - throw "Check #" + checks + " o.y should be " + testObj.y + " , is " + o.y; -} - -var testObjInitial = { a: 0, b: 1, c: 2, p: 100, x: 10, y: 11 }; -var testObjAfterReadOnlyProperty = { a: 101, b: 1, c: 2, p: 100, x: 10, y: 11 }; - -var SimpleObject = function () { - this.a = 0; - this.b = 1; - this.c = 2; -} - -var proto = { p: 100 }; - -SimpleObject.prototype = proto; - -var test = function () { - var o = new SimpleObject(); - o.x = 10; - o.y = 11; - return o; -} - -shouldBe(test(), testObjInitial); -shouldBe(test(), testObjInitial); -shouldBe(test(), testObjInitial); - -// Change the prototype chain by making "a" read-only. -Object.defineProperty(proto, "a", { value: 101, writable: false }); - -// Run a bunch of times to tier up. -for (var i = 0; i < 10000; i++) - shouldBe(test(), testObjAfterReadOnlyProperty); - diff --git a/implementation-contributed/javascriptcore/stress/regress-174044.js b/implementation-contributed/javascriptcore/stress/regress-174044.js deleted file mode 100644 index 420eeab6e450519077ccbc3bfc8e7f95c22b5c95..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-174044.js +++ /dev/null @@ -1,37 +0,0 @@ -// Regression test for https://bugs.webkit.org/show_bug.cgi?id=174044. This test should not throw or crash. - -function test1() -{ - let expected = ["\na", "\na", "\na", "\n"]; - - let str = "\na\na\na\n"; - let re = new RegExp(".*\\s.*", "g"); - - let match = str.match(re); - - if (match.length != expected.length) - throw "Expected match.length of " + expected.length + ", got " + match.length; - - for (let i = 0; i < expected.length; i++) { - if (match[i] != expected[i]) - throw "Expected match[" + i + "] to be \"" + expected[i] + "\", got \"" + match[i] + "\""; - } -} - -function test2() -{ - let result = undefined; - - let re = new RegExp(".*\\s.*", "g"); - let str = "\na\n"; - result = str.replace(re,'x'); - - if (result != "xx") - throw "Expected result of \"xx\", got \"" + result + "\""; -} - -for (let i = 0; i < 5000; i++) - test1(); - -for (let i = 0; i < 5000; i++) - test2(); diff --git a/implementation-contributed/javascriptcore/stress/regress-174948.js b/implementation-contributed/javascriptcore/stress/regress-174948.js deleted file mode 100644 index acc0dd35e049a7d691b8e90f1526f3121ab718bc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-174948.js +++ /dev/null @@ -1,5 +0,0 @@ -+new function() {}; -new function() {}; -edenGC(); -(function() {}).prototype[0] = 0; - diff --git a/implementation-contributed/javascriptcore/stress/regress-176485.js b/implementation-contributed/javascriptcore/stress/regress-176485.js deleted file mode 100644 index 20fe84315670f2c756affbd8ea0239e438641e81..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-176485.js +++ /dev/null @@ -1,11 +0,0 @@ -var exception; -try { - a2 = {};//some method ok//what ever object//Date() - Object.defineProperty(a2, "length",{get: Int32Array});//Int32Array here wrong,need a function - new Int32Array(this.a2); -} catch (e) { - exception = e; -} - -if (exception != "TypeError: calling Int32Array constructor without new is invalid") - throw "Exception not thrown"; diff --git a/implementation-contributed/javascriptcore/stress/regress-177423.js b/implementation-contributed/javascriptcore/stress/regress-177423.js deleted file mode 100644 index ae64f36b405aa71f63c5c44e4ae1435d4cc03df4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-177423.js +++ /dev/null @@ -1,14 +0,0 @@ -// Regression test for bug 177423 -let r1 = /\k</; - -let didThrow = false; - -try { - let r2 = new RegExp("\\k<1>", "u"); - didThrow = false; -} catch(e) { - didThrow = true; -} - -if (!didThrow) - throw("Trying to create a named capture reference that starts with a number should Throw"); diff --git a/implementation-contributed/javascriptcore/stress/regress-177570.js b/implementation-contributed/javascriptcore/stress/regress-177570.js deleted file mode 100644 index 70c8e56ed2aef100ba007378b6c932ddabedf7e1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-177570.js +++ /dev/null @@ -1,4 +0,0 @@ -// Regression test for bug 177570 - -if (/(Q)+|(\S)+Z/.test("Z ")) - throw "/(Q)+|(\S)+Z/.test(\"Z \") should fail, but actually succeeds"; diff --git a/implementation-contributed/javascriptcore/stress/regress-177584.js b/implementation-contributed/javascriptcore/stress/regress-177584.js deleted file mode 100644 index 990dca75f760d3e99a5263c90ee0c3f480a55540..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-177584.js +++ /dev/null @@ -1,18 +0,0 @@ -function assertEqual(actual, expected) { - if (actual != expected) - throw "Failed: actual: " + actual + ", expected: " + expected; -} - -var a0 = [,,,,,,,,,,,,,]; - -Array.prototype.constructor = { - [Symbol.species]: function() { - return a0; - } -} - -var a1 = [1,2,3,4]; -var a2 = a1.concat(a0); - -assertEqual(a0, a2); -assertEqual(a0, "1,2,3,4,1,2,3,4,1,2,3,4,1,2,3,4,1"); diff --git a/implementation-contributed/javascriptcore/stress/regress-177600.js b/implementation-contributed/javascriptcore/stress/regress-177600.js deleted file mode 100644 index 9590c524f7380c88efa64a71ed3cb1ef76fe2295..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-177600.js +++ /dev/null @@ -1,5 +0,0 @@ -// This test passes if it does not crash. - -var regexp5 = new RegExp(/\t%%/); -Object.defineProperty(regexp5, "lastIndex" ,{value:"\w?\B", writable:false}); -Object.seal(regexp5); diff --git a/implementation-contributed/javascriptcore/stress/regress-178385.js b/implementation-contributed/javascriptcore/stress/regress-178385.js deleted file mode 100644 index 10a20483a2f7b60412aa5e48d0c70298576c7447..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-178385.js +++ /dev/null @@ -1,16 +0,0 @@ -//@ skip if $hostOS == "windows" or $memoryLimited -// FIXME: unskip this test when https://bugs.webkit.org/show_bug.cgi?id=179298 is fixed. - -var exception; -try { - var str0 = new String('@hBg'); - var collat3 = new Intl.Collator(); - str10 = str0.padEnd(0x7FFFFFFC, 1); - Object.defineProperty(collat3, Symbol.toStringTag, { value: str10 }); - collat3.toLocaleString(); -} catch (e) { - exception = e; -} - -if (exception != "Error: Out of memory") - throw "FAILED"; diff --git a/implementation-contributed/javascriptcore/stress/regress-178386.js b/implementation-contributed/javascriptcore/stress/regress-178386.js deleted file mode 100644 index 3c66e09c4a199896c7c75cf8704f0905700ae345..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-178386.js +++ /dev/null @@ -1,12 +0,0 @@ -var str1 = String.fromCharCode(136, 115, 29, 20, 15, 155, 81); -str3 = str1.padEnd(0x7FFFFFFC, '123'); - -var exception; -try { - JSON.stringify(str3); -} catch (e) { - exception = e; -} - -if (exception != "Error: Out of memory") - throw "FAILED"; diff --git a/implementation-contributed/javascriptcore/stress/regress-178420.js b/implementation-contributed/javascriptcore/stress/regress-178420.js deleted file mode 100644 index 5d585442b4ef0717baf5b08909020d814ef7ff34..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-178420.js +++ /dev/null @@ -1,17 +0,0 @@ -// This test passes if it does not crash. - -var arr0 = [42]; -var arr4 = [,,,,,,,,,,,,,,,,,,,,,,,,]; - -new Array(10000).map((function() { - arr4[-35] = 1.1; -}), this); - -arr0[0] = []; -gc(); - -Array.prototype.__proto__ = {}; -gc(); - -for(var i = 0; i < 65536; i++) - arr0['a'+i] = 1.1; diff --git a/implementation-contributed/javascriptcore/stress/regress-178890.js b/implementation-contributed/javascriptcore/stress/regress-178890.js deleted file mode 100644 index 78b566fd8619a6567005df0cb7419e1c975d5f09..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-178890.js +++ /dev/null @@ -1,4 +0,0 @@ -// Regression test for bug 178890 - -if (!/:(?:\w)+\(([']?)((?:\([^\)]+\)|[^\(\)]*){1,2})\1\)/.test(":not('.hs-processed')")) - throw "/:(?:\w)+\(([']?)((?:\([^\)]+\)|[^\(\)]*){1,2})\1\)/.test(\":not('.hs-processed')\") should succeed, but actually fails"; diff --git a/implementation-contributed/javascriptcore/stress/regress-179140.js b/implementation-contributed/javascriptcore/stress/regress-179140.js deleted file mode 100644 index 7b77821c2d1bf169a862b27dd6dedce2af43b165..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-179140.js +++ /dev/null @@ -1,38 +0,0 @@ -// Regression test for bug 179140. - -function testWithoutFTL() -{ - g=() => 0 - f=(a) => g.apply(0,a) - - noFTL(f); - - for(i=1e6;i--;) - f([]) - - try { - f({length:1e10}) - } catch(e) { - if (!(e instanceof RangeError)) - throw "Expected RangeError due to stack overflow"; - } -} - -function testWithFTL() -{ - g=() => 0 - f=(a) => g.apply(0,a) - - for(i=1e6;i--;) - f([]) - - try { - f({length:1e10}) - } catch(e) { - if (!(e instanceof RangeError)) - throw "Expected RangeError due to stack overflow"; - } -} - -testWithoutFTL(); -testWithFTL(); diff --git a/implementation-contributed/javascriptcore/stress/regress-179185.js b/implementation-contributed/javascriptcore/stress/regress-179185.js deleted file mode 100644 index be84a3d1b0ed8f756a49ba43e4de66386dd15754..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-179185.js +++ /dev/null @@ -1,3 +0,0 @@ -// This test passes if it does not fail assertions on a debug build. -str = "Hello There Quick Brown Fox"; -str.replace(/(((el)|(ui))|((Br)|(Fo)))/g, () => { }); diff --git a/implementation-contributed/javascriptcore/stress/regress-179355.js b/implementation-contributed/javascriptcore/stress/regress-179355.js deleted file mode 100644 index bde91a030d7074716a7caf7e2a79bd08f069524a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-179355.js +++ /dev/null @@ -1,25 +0,0 @@ -var arr0 = [1,2,3,4]; -var arr1 = new Array(1000); - -Array.prototype.__defineGetter__(1, function() { - [].concat(arr1); //generate to invalid JIT code here? -}); - -Array.prototype.__defineGetter__(Symbol.isConcatSpreadable, (function() { - for(var i=0;i<10000;i++) { - if(i==0) - arr1[i]; - this.x = 1.1; - arr1.legnth = 1; - } -})); - -var exception; -try { - arr1[1].toString(); -} catch (e) { - exception = e; -} - -if (exception != "RangeError: Maximum call stack size exceeded.") - throw "FAILED"; diff --git a/implementation-contributed/javascriptcore/stress/regress-179562.js b/implementation-contributed/javascriptcore/stress/regress-179562.js deleted file mode 100644 index 287e0ed6f09edbbd0c1c0d6a0f08fef52ed6db76..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-179562.js +++ /dev/null @@ -1,33 +0,0 @@ -//@ runFTLNoCJIT("--maxPerThreadStackUsage=400000") - -function runNearStackLimit(f) { - function t() { - try { - return t(); - } catch (e) { - return f(); - } - } - return t() -} - -function foo(a, b) { - return [{ - name: b + "" + a - }]; -} - -var exception; -try { - __v_25012 = [].concat( - foo(1, []), - runNearStackLimit(() => { - return foo("bla", Symbol.search); - }) - ); -} catch (e) { - exception = e; -} - -if (exception != "TypeError: Cannot convert a symbol to a string") - throw "FAILED"; diff --git a/implementation-contributed/javascriptcore/stress/regress-179634.js b/implementation-contributed/javascriptcore/stress/regress-179634.js index 3d462710354590335948fa37bcc61cf91b9ebb48..56442c65c8c67d9bf3f747822dd56785d0286f7b 100644 --- a/implementation-contributed/javascriptcore/stress/regress-179634.js +++ b/implementation-contributed/javascriptcore/stress/regress-179634.js @@ -1,3 +1,4 @@ +// Reviewed function foo() { return { get: function () { }, diff --git a/implementation-contributed/javascriptcore/stress/regress-180219.js b/implementation-contributed/javascriptcore/stress/regress-180219.js deleted file mode 100644 index 08ebb5b5cfd6d7a365f8574051aae118d5459353..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-180219.js +++ /dev/null @@ -1,3 +0,0 @@ -//@ runDefault -gc(); -flashHeapAccess({}); diff --git a/implementation-contributed/javascriptcore/stress/regress-180761.js b/implementation-contributed/javascriptcore/stress/regress-180761.js deleted file mode 100644 index ea82dd3766835ef62d939cbd0dd1b3d4803692a7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-180761.js +++ /dev/null @@ -1,6 +0,0 @@ -//@ runDefault - -// Regression test for bug 180761. This test should not crash. - -if (/(?:(?: |a)|\.a)* a*/.exec("/a.aaa") !== null) - throw "Expected /(?:(?: |a)|\.a)* a*/.exec(\"/a.aaa\") to not match"; diff --git a/implementation-contributed/javascriptcore/stress/regress-181388.js b/implementation-contributed/javascriptcore/stress/regress-181388.js deleted file mode 100644 index e5f6b4e0dc04a125ad27ed73647a2fbadf775e38..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-181388.js +++ /dev/null @@ -1,71 +0,0 @@ -function assert(x) { - if (!x) - throw "FAIL"; -} - -(function() { - var trace = []; - - var foo = { - value: 5, - get bar() { - trace.push("get"); - return this.value; - }, - set bar(x) { - throw "Should not be reached"; - }, - set bar(x) { - trace.push("set2"); - this.value = x + 10000; - return this.value; - } - } - - assert(foo.value == 5); - assert(trace == ""); - assert(foo.bar == 5); - assert(trace == "get"); - - foo.bar = 20; - assert(trace == "get,set2"); - - assert(foo.value == 10020); - assert(trace == "get,set2"); - assert(foo.bar == 10020); - assert(trace == "get,set2,get"); -})(); - -(function() { - var trace = []; - - var foo = { - value: 5, - set bar(x) { - trace.push("set"); - this.value = x; - return this.value; - }, - get bar() { - throw "Should not be reached"; - }, - get bar() { - trace.push("get2"); - this.value += 10000; - return this.value; - }, - } - - assert(foo.value == 5); - assert(trace == ""); - assert(foo.bar == 10005); - assert(trace == "get2"); - - foo.bar = 20; - assert(trace == "get2,set"); - - assert(foo.value == 20); - assert(trace == "get2,set"); - assert(foo.bar == 10020); - assert(trace == "get2,set,get2"); -})(); diff --git a/implementation-contributed/javascriptcore/stress/regress-182419.js b/implementation-contributed/javascriptcore/stress/regress-182419.js deleted file mode 100644 index 5b178dc86aaaf9d657a317075f7812a119b05377..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-182419.js +++ /dev/null @@ -1,28 +0,0 @@ -function assertEqual(actual, expected) { - if (actual != expected) - throw "FAILED: expect " + expected + ", actual " + actual; -} - -function test(index1, index2) { - function baz(a, b, c, ...args) { - return [args.length, args[index1], args[index2]]; - } - function jaz(...args) { - return baz.apply(null, args); - } - noInline(jaz); - - function check() { - let [length, a, b] = jaz(); - assertEqual(length, 0); - assertEqual(a, undefined); - assertEqual(b, undefined); - } - - for (let i = 0; i < 20000; i++) { - check(); - } -} - -test(0, 1); -test(0x7fffffff, 0); diff --git a/implementation-contributed/javascriptcore/stress/regress-185786.js b/implementation-contributed/javascriptcore/stress/regress-185786.js deleted file mode 100644 index f822e283894d31908f2797827d7a94536addc02e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-185786.js +++ /dev/null @@ -1,22 +0,0 @@ -function foo() { - return new Proxy({}, - new Proxy({}, { - get: function () { - throw "expected exception"; - } - }) - ); -} - -var a = foo(); -var b = Object.create(a); - -var exception; -try { - for (var v in b) { } -} catch (e) { - exception = e; -} - -if (exception != "expected exception") - throw "FAIL"; diff --git a/implementation-contributed/javascriptcore/stress/regress-185888.js b/implementation-contributed/javascriptcore/stress/regress-185888.js deleted file mode 100644 index 7f8570caabfd6c8ee8367bc7444563e88b22583a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-185888.js +++ /dev/null @@ -1,11 +0,0 @@ -//@skip if $memoryLimited -var exception; -try { - const str = "a".padStart(0x80000000 - 1); - new Date(str); -} catch (e) { - exception = e; -} - -if (exception != "Error: Out of memory") - throw "FAILED"; diff --git a/implementation-contributed/javascriptcore/stress/regress-185896.js b/implementation-contributed/javascriptcore/stress/regress-185896.js deleted file mode 100644 index 7742ee794b3c9ee92b5b7e8837c8a2aa6bc0f9b8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-185896.js +++ /dev/null @@ -1,14 +0,0 @@ -var exception; -function* items() { - yield { }; - yield* 42; -} - -try { - for (let i of items()) { } -} catch (e) { - exception = e; -} - -if (exception != "TypeError: undefined is not a function (near '...yield* 42...')") - throw FAILED; diff --git a/implementation-contributed/javascriptcore/stress/regress-185995.js b/implementation-contributed/javascriptcore/stress/regress-185995.js deleted file mode 100644 index e7b14bea45daf76cb6ea5689b17d98e577fff8a9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-185995.js +++ /dev/null @@ -1,13 +0,0 @@ -(function() { - var exception; - try { - var list = { 'a' : 5 }; - for(const { x = x } in list) - x(); - } catch (e) { - exception = e; - } - - if (exception != "ReferenceError: Cannot access uninitialized variable.") - throw "FAILED"; -})(); diff --git a/implementation-contributed/javascriptcore/stress/regress-186943.js b/implementation-contributed/javascriptcore/stress/regress-186943.js deleted file mode 100644 index 353841d3cd04e245facf05f789ac1bf48d1e0620..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-186943.js +++ /dev/null @@ -1,5 +0,0 @@ -// This test should not crash. -x = Reflect; -delete this.Reflect; - -for (var i = 0; i < 10000; ++i) { } diff --git a/implementation-contributed/javascriptcore/stress/regress-187006.js b/implementation-contributed/javascriptcore/stress/regress-187006.js index 91098d8df4aa5c0612a20f4148b94b434c7eae56..e55b2ab4b475c87c8f4a926142aa2d0c43b4fe6c 100644 --- a/implementation-contributed/javascriptcore/stress/regress-187006.js +++ b/implementation-contributed/javascriptcore/stress/regress-187006.js @@ -1,3 +1,4 @@ +// Reviewed Object.defineProperty(Array.prototype, '0', { get() { }, set() { throw new Error(); } diff --git a/implementation-contributed/javascriptcore/stress/regress-187010.js b/implementation-contributed/javascriptcore/stress/regress-187010.js deleted file mode 100644 index ec5d642112ed076550b066e78583e27e395b4c95..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187010.js +++ /dev/null @@ -1,7 +0,0 @@ -// This test should not crash. -var proto = Array.prototype; -class Test extends Array {} -new Test( 8, 9); - -Object.defineProperty(proto, 324800, { }); -new Test( 8, 9); diff --git a/implementation-contributed/javascriptcore/stress/regress-187060.js b/implementation-contributed/javascriptcore/stress/regress-187060.js deleted file mode 100644 index e4a820cdb1a3616f17d39010b68eab2521ecd198..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187060.js +++ /dev/null @@ -1,9 +0,0 @@ -// This test should not crash. - -for (var i = 0; i < 10000; i++) { - var arr = []; - arr.constructor = { - [Symbol.species]: function () { return ['unmodifiable']; } - } - arr.concat([1]); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-187074.js b/implementation-contributed/javascriptcore/stress/regress-187074.js deleted file mode 100644 index 78763e166aead46154e4fc615072284bbf12d0f6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187074.js +++ /dev/null @@ -1,20 +0,0 @@ -// This test should not crash. -var done = false; - -function runNearStackLimit(f) { - function t() { - try { - return t(); - } catch (e) { - if (!done) - return f(); - } - } - return t() -} - -runNearStackLimit(() => { - done = true; - eval("({ __proto__ : [], __proto__: {} })") -}); - diff --git a/implementation-contributed/javascriptcore/stress/regress-187091.js b/implementation-contributed/javascriptcore/stress/regress-187091.js deleted file mode 100644 index ac819f7e3ed3a58457834401a28ce1f31476dcec..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187091.js +++ /dev/null @@ -1,20 +0,0 @@ -// This test should not crash. - -function foo(x) { - x.a0 = 0; - Object.defineProperty(x, "a0", { value: 42 }); - x.a6 = 6; -} -noInline(foo); - -for (var i = 0; i < 10000; ++i) { - var x = { } - x.a1 = 1; - x.a2 = 2; - x.a3 = 3; - x.a4 = 4; - x.a7 = 7; - x.a5 = 5; - - foo(x); -} diff --git a/implementation-contributed/javascriptcore/stress/regress-187543-2.js b/implementation-contributed/javascriptcore/stress/regress-187543-2.js deleted file mode 100644 index 2764548ca442301dc2a2097708ce66840ec2cb6e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187543-2.js +++ /dev/null @@ -1,10 +0,0 @@ -// This test should not crash. - -Object.defineProperty(Object.prototype, 0, { set() {} }); - -var foo = Function.bind.call(new Proxy(Array, {})); -for (var i = 10; i < 50; ++i) { - var args = Array(i).fill(i); - new foo(...args); - gc() -} diff --git a/implementation-contributed/javascriptcore/stress/regress-187543-3.js b/implementation-contributed/javascriptcore/stress/regress-187543-3.js deleted file mode 100644 index 25d1b30e499609429f3ffab5c7aa83e6fe55cf92..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187543-3.js +++ /dev/null @@ -1,14 +0,0 @@ -//@ requireOptions("--useDollarVM=false") - -// This test should not crash. -Date.prototype.valueOf; -Math.abs; - -Object.prototype.__defineGetter__(0, function () {}); - -class Test extends Array {} - -for (let i = 0; i < 100; i++) - new Test(1, 2, 3, -4, 5, 6, 7, 8, 9).splice(); - -gc(); diff --git a/implementation-contributed/javascriptcore/stress/regress-187543.js b/implementation-contributed/javascriptcore/stress/regress-187543.js deleted file mode 100644 index b47fb55e2735b2737130f4dc6bc0a3c7463536e9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-187543.js +++ /dev/null @@ -1,7 +0,0 @@ -// This test should not crash. - -Object.defineProperty(Object.prototype, 0, { set() { } }); -var foo = Function.bind.call(new Proxy(Array, {})); -gc(); -new foo(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25); -gc(); diff --git a/implementation-contributed/javascriptcore/stress/regress-188065.js b/implementation-contributed/javascriptcore/stress/regress-188065.js deleted file mode 100644 index eb38938728b13feff8ad6e1d5cf9922937a7c806..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-188065.js +++ /dev/null @@ -1,8 +0,0 @@ -function test() { - var arr = new Array(400); - arr.concat([1.1]); -} -noInline(test); - -for (var i = 0; i < 10000; i++) - test(); diff --git a/implementation-contributed/javascriptcore/stress/regress-188577.js b/implementation-contributed/javascriptcore/stress/regress-188577.js deleted file mode 100644 index 46b87511b0922aaa6bc84d6330f0c75fee42c35e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-188577.js +++ /dev/null @@ -1,20 +0,0 @@ -//@ requireOptions("--maxPerThreadStackUsage=262144") - -var exception; -try { - var i = 25000; - var args = []; - var v3; - while (i--) - args[i] = "a"; - var argsList = args.join(); - setter = Function(argsList, ""); - Object.defineProperty(args, '0', {set: setter}); - args.sort(); - -} catch (e) { - exception = e; -} - -if (exception != "RangeError: Maximum call stack size exceeded.") - throw "FAILED"; diff --git a/implementation-contributed/javascriptcore/stress/regress-189124.js b/implementation-contributed/javascriptcore/stress/regress-189124.js deleted file mode 100644 index cd5532fde41a4973f56853b7fbfdf44f5344ec29..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-189124.js +++ /dev/null @@ -1,31 +0,0 @@ -//@ runDefault("--jitPolicyScale=0") - -function makeTmp() { - let tmp = {a: 1}; - gc(); - tmp.__proto__ = {}; - return tmp; -} - -function foo(tmp, obj) { - for (let k in tmp) { - tmp.__proto__ = {}; - gc(); - obj.__proto__ = {}; - - var result = obj[k]; - return result; - } -} - -foo(makeTmp(), {}); - -let memory = new Uint32Array(100); -memory[0] = 0x1234; - -let fooResult = foo(makeTmp(), memory); -var result = $vm.value(fooResult); - -if (result != "Undefined") - throw "FAIL"; - diff --git a/implementation-contributed/javascriptcore/stress/regress-189132.js b/implementation-contributed/javascriptcore/stress/regress-189132.js deleted file mode 100644 index dca0287ded5988d4c143afa3e29fe00c5380b460..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-189132.js +++ /dev/null @@ -1,12 +0,0 @@ -try { - var a0 = '\ud801'; - var a1 = []; - a2 = a0.padEnd(2147483644,'x'); - a1[a2]; -} catch (e) { - exception = e; -} - -if (exception != "Error: Out of memory") - throw "FAILED"; - diff --git a/implementation-contributed/javascriptcore/stress/regress-189184.js b/implementation-contributed/javascriptcore/stress/regress-189184.js deleted file mode 100644 index 0670c7568bc18aa978cfb71a0e6daf421baee919..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-189184.js +++ /dev/null @@ -1,3 +0,0 @@ -//@ runDefault -// This test passes if it does not crash. -['a'+0].lastIndexOf('a0'); diff --git a/implementation-contributed/javascriptcore/stress/regress-189227-watchdog-on-infinite-loop.js b/implementation-contributed/javascriptcore/stress/regress-189227-watchdog-on-infinite-loop.js deleted file mode 100644 index 38e06777ea7826d18ce2f0a0d8cbee8204b3d81c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/regress-189227-watchdog-on-infinite-loop.js +++ /dev/null @@ -1,4 +0,0 @@ -//@ requireOptions("--watchdog=20", "--jitPolicyScale=0", "--watchdog-exception-ok") - -// This test should not time out. -while (1) { } diff --git a/implementation-contributed/javascriptcore/stress/regress-189317.js b/implementation-contributed/javascriptcore/stress/regress-189317.js index 8e68ee241e7a77e07a6aacc07aa4ff042677b8cb..8d1d51360f32af712e4f8ece8450683e924c848f 100644 --- a/implementation-contributed/javascriptcore/stress/regress-189317.js +++ b/implementation-contributed/javascriptcore/stress/regress-189317.js @@ -1,3 +1,4 @@ +// Reviewed let intrinsics = [ "Array.prototype.indexOf", "Array.prototype.pop", diff --git a/implementation-contributed/javascriptcore/stress/reserved-word-with-escape.js b/implementation-contributed/javascriptcore/stress/reserved-word-with-escape.js index d6db09ac214822e6d4b2f6113442d4ac55e19ef0..703f7aa488817cc4b48ad36e54952ff8197fecb0 100644 --- a/implementation-contributed/javascriptcore/stress/reserved-word-with-escape.js +++ b/implementation-contributed/javascriptcore/stress/reserved-word-with-escape.js @@ -1,3 +1,4 @@ +// Reviewed function testSyntax(script) { try { eval(script); diff --git a/implementation-contributed/javascriptcore/stress/resources/binary-op-test.js b/implementation-contributed/javascriptcore/stress/resources/binary-op-test.js deleted file mode 100644 index f115c70413738041a68bf1bc66be9c6791c95fcb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/binary-op-test.js +++ /dev/null @@ -1,135 +0,0 @@ -// This test module provides infrastructure for generating and running tests on a binary -// operator. -// -// It works by generating test functions to exercise the specified operator using -// from permutations of operand value pairs. For each test, it computes the expected -// result by exercising the test function once (using the LLINT) at test generation time. -// The test runner later compares the result produced by the function (as it tiers up) -// against the expected result. -// -// The generated tests can exercise the operator using the following operand types. -// variable * variable -// constant * variable -// variable * constant -// -// If all goes well, this test module will terminate silently. If not, it will print -// errors. - -//============================================================================ -// Debugging options: - -var verbose = false; -var abortOnFirstFail = false; -var testFilterStr = undefined; // Define a filter string to filter tests to run. - -var verboseTestGeneration = false; - -//============================================================================ -// Test generation: - -function stringifyIfNeeded(x) { - if (typeof x == "string") - return '"' + x + '"'; - if (typeof x == "object") - return 'objWithVal:' + x; - return x; -} - -// operandTypes are "VarVar", "VarConst", and "ConstVar". -var funcIndex = 0; -function generateBinaryTests(tests, opName, op, operandTypes, leftValues, rightValues) { - var funcNamePrefix = opName + operandTypes; - for (var i = 0; i < leftValues.length; i++) { - for (var j = 0; j < rightValues.length; j++) { - var test = { }; - xStr = leftValues[i]; - yStr = rightValues[j]; - test.x = eval(xStr); - test.y = eval(yStr); - - var funcName = funcNamePrefix + funcIndex++; - if (operandTypes == "VarVar") { - test.signature = funcName + "(x, y) { return x " + op + " y }"; - test.name = test.signature + " with x:" + xStr + ", y:" + yStr; - } else if (operandTypes == "VarConst") { - test.signature = funcName + "(x, _) { return x " + op + " " + yStr + " }"; - test.name = test.signature + " with x:" + xStr; - } else if (operandTypes == "ConstVar") { - test.signature = funcName + "(_, y) { return " + xStr + " " + op + " y }"; - test.name = test.signature + " with y:" + yStr; - } - - test.func = eval("(function " + test.signature + ")"); - noInline(test.func); - - test.expectedResult = test.func(test.x, test.y); - test.name += ", expected:" + stringifyIfNeeded(test.expectedResult); - - tests.push(test); - if (verboseTestGeneration) - print("Generated " + test.name); - } - } -} - -//============================================================================ -// Test running and reporting: - -var errorReport = ""; - -function isIdentical(x, y) { - if (typeof x == "undefined" && typeof y == "undefined") - return true; - if (typeof x != typeof y) - return false; - if (x == y) { - if (x) - return true; - // Distinguish between 0 and negative 0. - if (1 / x == 1 / y) - return true; - } else if (Number.isNaN(x) && Number.isNaN(y)) - return true; - return false; -} - -function runTest(test) { - if (testFilterStr && !test.name.includes(testFilterStr)) - return; - - var firstFailed = -1; - try { - if (verbose) - print(test.name); - for (var i = 0; i < 10000; i++) { - var result = test.func(test.x, test.y); - if (isIdentical(result, test.expectedResult)) - continue; - if (firstFailed < 0) { - errorReport += "FAILED: " + test.name + " started failing on iteration " + i - + ": actual " + stringifyIfNeeded(result) + "\n"; - if (abortOnFirstFail) - throw errorReport; - firstFailed = i; - } - } - } catch(e) { - if (abortOnFirstFail) - throw e; // Negate the catch by re-throwing. - errorReport += "FAILED: Unexpected exception: " + e + "\n"; - } -} - -function run() { - if (verbose) - print("Start testing"); - - for (var test of tests) - runTest(test); - - if (errorReport !== "") - throw "Found failures:\n" + errorReport; - - if (verbose) - print("Done testing"); -} diff --git a/implementation-contributed/javascriptcore/stress/resources/binary-op-values.js b/implementation-contributed/javascriptcore/stress/resources/binary-op-values.js deleted file mode 100644 index c9c35e3f9759e2b6afb2942b537d2b60c83c0960..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/binary-op-values.js +++ /dev/null @@ -1,73 +0,0 @@ -// This file provides values that may be interesting for testing binary operations. - -var o1 = { - valueOf: function() { return 10; } -}; - -var posInfinity = 1 / 0; -var negInfinity = -1 / 0; - -var values = [ - 'o1', - 'null', - 'undefined', - 'true', - 'false', - - 'NaN', - 'posInfinity', - 'negInfinity', - '100.2', // Some random small double value. - '-100.2', - '2147483647.5', // Value that will get truncated down to 0x7fffffff (by shift ops). - '-2147483647.5', - '54294967296.2923', // Some random large double value. - '-54294967296.2923', - - '0', - '-0', - '1', - '-1', - '5', - '-5', - '31', - '-31', - '32', - '-32', - '0x3fff', - '-0x3fff', - '0x7fff', - '-0x7fff', - '0x10000', - '-0x10000', - '0x7ffffff', - '-0x7ffffff', - '0x7fffffff', - '-0x7fffffff', - '0x100000000', - '-0x100000000', - - '"abc"', - '"0"', - '"-0"', - '"1"', - '"-1"', - '"5"', - '"-5"', - '"31"', - '"-31"', - '"32"', - '"-32"', - '"0x3fff"', - '"-0x3fff"', - '"0x7fff"', - '"-0x7fff"', - '"0x10000"', - '"-0x10000"', - '"0x7ffffff"', - '"-0x7ffffff"', - '"0x7fffffff"', - '"-0x7fffffff"', - '"0x100000000"', - '"-0x100000000"', -]; diff --git a/implementation-contributed/javascriptcore/stress/resources/error-module.js b/implementation-contributed/javascriptcore/stress/resources/error-module.js deleted file mode 100644 index b68f95365a1a08c1086dba53bb8c3c013dce3964..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/error-module.js +++ /dev/null @@ -1 +0,0 @@ -import {x} from "./error-module.js" diff --git a/implementation-contributed/javascriptcore/stress/resources/literal-parser-test-case.js b/implementation-contributed/javascriptcore/stress/resources/literal-parser-test-case.js deleted file mode 100644 index 304c4e46dcfc43317bbd0a1c434df8669f9de9be..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/literal-parser-test-case.js +++ /dev/null @@ -1 +0,0 @@ -x;1234 diff --git a/implementation-contributed/javascriptcore/stress/resources/module-namespace-access-transitive-exports-2.js b/implementation-contributed/javascriptcore/stress/resources/module-namespace-access-transitive-exports-2.js deleted file mode 100644 index 54df32c0bd13f69d4b221194c2004a3734042740..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/module-namespace-access-transitive-exports-2.js +++ /dev/null @@ -1,10 +0,0 @@ -export let test = 42; -export function cocoa() -{ - return test; -} - -export function change() -{ - test = 55; -} diff --git a/implementation-contributed/javascriptcore/stress/resources/module-namespace-access-transitive-exports.js b/implementation-contributed/javascriptcore/stress/resources/module-namespace-access-transitive-exports.js deleted file mode 100644 index 68019ca7e61e4083f51dd5526d50c0b321cfee17..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/module-namespace-access-transitive-exports.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./module-namespace-access-transitive-exports-2.js" diff --git a/implementation-contributed/javascriptcore/stress/resources/module-namespace-access.js b/implementation-contributed/javascriptcore/stress/resources/module-namespace-access.js deleted file mode 100644 index 54df32c0bd13f69d4b221194c2004a3734042740..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/module-namespace-access.js +++ /dev/null @@ -1,10 +0,0 @@ -export let test = 42; -export function cocoa() -{ - return test; -} - -export function change() -{ - test = 55; -} diff --git a/implementation-contributed/javascriptcore/stress/resources/standalone-pre.js b/implementation-contributed/javascriptcore/stress/resources/standalone-pre.js deleted file mode 100644 index b96b7022749a0e8c78d3dc2571d6f0569f3d148b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/standalone-pre.js +++ /dev/null @@ -1,336 +0,0 @@ -var errorMessage; -var self = this; - -self.testRunner = { - neverInlineFunction: neverInlineFunction, - numberOfDFGCompiles: numberOfDFGCompiles -}; - -var silentMode = true; -var throwOnFirstFail = true; -var silentTestPass, didPassSomeTestsSilently, didFailSomeTests, successfullyParsed; -silentTestPass = false; -didPassSomeTestsSilenty = false; -didFailSomeTests = false; - -function description(msg) -{ - if (silentMode) - return; - print(msg); - print("\nOn success, you will see a series of \"PASS\" messages, followed by \"TEST COMPLETE\".\n"); - print(); -} - -function debug(msg) -{ - if (silentMode) - return; - print(msg); -} - -function escapeString(text) -{ - return text.replace(/\0/g, ""); -} - -function testPassed(msg) -{ - if (silentTestPass) - didPassSomeTestsSilently = true; - else if (silentMode) - return; - else - print("PASS", escapeString(msg)); -} - -function testFailed(msg) -{ - didFailSomeTests = true; - if (!silentMode) - print("FAIL", escapeString(msg)); - if (throwOnFirstFail) - throw new Error(escapeString(msg)); -} - -function areNumbersEqual(_actual, _expected) -{ - if (_expected === 0) - return _actual === _expected && (1/_actual) === (1/_expected); - if (_actual === _expected) - return true; - if (typeof(_expected) == "number" && isNaN(_expected)) - return typeof(_actual) == "number" && isNaN(_actual); - return false; -} - -function areArraysEqual(_a, _b) -{ - try { - if (_a.length !== _b.length) - return false; - for (var i = 0; i < _a.length; i++) - if (!areNumbersEqual(_a[i], _b[i])) - return false; - } catch (ex) { - return false; - } - return true; -} - -function isMinusZero(n) -{ - // the only way to tell 0 from -0 in JS is the fact that 1/-0 is - // -Infinity instead of Infinity - return n === 0 && 1/n < 0; -} - -function isTypedArray(array) -{ - return array instanceof Int8Array - || array instanceof Int16Array - || array instanceof Int32Array - || array instanceof Uint8Array - || array instanceof Uint8ClampedArray - || array instanceof Uint16Array - || array instanceof Uint32Array - || array instanceof Float32Array - || array instanceof Float64Array; -} - -function isResultCorrect(_actual, _expected) -{ - if (areNumbersEqual(_actual, _expected)) - return true; - if (_expected - && (Object.prototype.toString.call(_expected) == - Object.prototype.toString.call([]) - || isTypedArray(_expected))) - return areArraysEqual(_actual, _expected); - return false; -} - -function stringify(v) -{ - if (v === 0 && 1/v < 0) - return "-0"; - else if (isTypedArray(v)) - return v.__proto__.constructor.name + ":[" + Array.prototype.join.call(v, ",") + "]"; - else - return "" + v; -} - -function shouldBe(_a, _b, _quiet) -{ - if ((typeof _a != "function" && typeof _a != "string") || (typeof _b != "function" && typeof _b != "string")) - debug("WARN: shouldBe() expects function or string arguments"); - var _exception; - var _av; - try { - _av = (typeof _a == "function" ? _a() : eval(_a)); - } catch (e) { - _exception = e; - } - var _bv = (typeof _b == "function" ? _b() : eval(_b)); - - if (_exception) - testFailed(_a + " should be " + stringify(_bv) + ". Threw exception " + _exception); - else if (isResultCorrect(_av, _bv)) { - if (!_quiet) { - testPassed(_a + " is " + (typeof _b == "function" ? _bv : _b)); - } - } else if (typeof(_av) == typeof(_bv)) - testFailed(_a + " should be " + stringify(_bv) + ". Was " + stringify(_av) + "."); - else - testFailed(_a + " should be " + stringify(_bv) + " (of type " + typeof _bv + "). Was " + _av + " (of type " + typeof _av + ")."); -} - -function dfgShouldBe(theFunction, _a, _b) -{ - if (typeof theFunction != "function" || typeof _a != "string" || typeof _b != "string") - debug("WARN: dfgShouldBe() expects a function and two strings"); - noInline(theFunction); - var exception; - var values = []; - - // Defend against tests that muck with numeric properties on array.prototype. - values.__proto__ = null; - values.push = Array.prototype.push; - - try { - while (!dfgCompiled({f:theFunction})) - values.push(eval(_a)); - values.push(eval(_a)); - } catch (e) { - exception = e; - } - - var _bv = eval(_b); - if (exception) - testFailed(_a + " should be " + stringify(_bv) + ". On iteration " + (values.length + 1) + ", threw exception " + exception); - else { - var allPassed = true; - for (var i = 0; i < values.length; ++i) { - var _av = values[i]; - if (isResultCorrect(_av, _bv)) - continue; - if (typeof(_av) == typeof(_bv)) - testFailed(_a + " should be " + stringify(_bv) + ". On iteration " + (i + 1) + ", was " + stringify(_av) + "."); - else - testFailed(_a + " should be " + stringify(_bv) + " (of type " + typeof _bv + "). On iteration " + (i + 1) + ", was " + _av + " (of type " + typeof _av + ")."); - allPassed = false; - } - if (allPassed) - testPassed(_a + " is " + _b + " on all iterations including after DFG tier-up."); - } - - return values.length; -} - -function shouldBeType(_a, _type) { - var exception; - var _av; - try { - _av = eval(_a); - } catch (e) { - exception = e; - } - - var _typev = eval(_type); - if (_av instanceof _typev) { - testPassed(_a + " is an instance of " + _type); - } else { - testFailed(_a + " is not an instance of " + _type); - } -} - -function shouldBeTrue(_a) { shouldBe(_a, "true"); } -function shouldBeFalse(_a) { shouldBe(_a, "false"); } -function shouldBeNaN(_a) { shouldBe(_a, "NaN"); } -function shouldBeNull(_a) { shouldBe(_a, "null"); } - -function shouldBeEqualToString(a, b) -{ - if (typeof a !== "string" || typeof b !== "string") - debug("WARN: shouldBeEqualToString() expects string arguments"); - var unevaledString = JSON.stringify(b); - shouldBe(a, unevaledString); -} - -function shouldBeUndefined(_a) -{ - var exception; - var _av; - try { - _av = eval(_a); - } catch (e) { - exception = e; - } - - if (exception) - testFailed(_a + " should be undefined. Threw exception " + exception); - else if (typeof _av == "undefined") - testPassed(_a + " is undefined."); - else - testFailed(_a + " should be undefined. Was " + _av); -} - -function shouldNotThrow(_a, _message) { - try { - typeof _a == "function" ? _a() : eval(_a); - testPassed((_message ? _message : _a) + " did not throw exception."); - } catch (e) { - testFailed((_message ? _message : _a) + " should not throw exception. Threw exception " + e + "."); - } -} - -function shouldThrow(_a, _e, _message) -{ - var _exception; - var _av; - try { - _av = typeof _a == "function" ? _a() : eval(_a); - } catch (e) { - _exception = e; - } - - var _ev; - if (_e) - _ev = eval(_e); - - if (_exception) { - if (typeof _e == "undefined" || _exception == _ev) - testPassed((_message ? _message : _a) + " threw exception " + _exception + "."); - else - testFailed((_message ? _message : _a) + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Threw exception " + _exception + "."); - } else if (typeof _av == "undefined") - testFailed((_message ? _message : _a) + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was undefined."); - else - testFailed((_message ? _message : _a) + " should throw " + (typeof _e == "undefined" ? "an exception" : _ev) + ". Was " + _av + "."); -} - -function isSuccessfullyParsed() -{ - // FIXME: Remove this and only report unexpected syntax errors. - if (!errorMessage) - successfullyParsed = true; - shouldBeTrue("successfullyParsed"); - if (silentTestPass && didPassSomeTestsSilently) - debug("Passed some tests silently."); - if (silentTestPass && didFailSomeTests) - debug("Some tests failed."); - debug("\nTEST COMPLETE\n"); -} - - -function dfgCompiled(argument) -{ - var numberOfCompiles = "compiles" in argument ? argument.compiles : 1; - - if (!("f" in argument)) - throw new Error("dfgCompiled called with invalid argument."); - - if (argument.f instanceof Array) { - for (var i = 0; i < argument.f.length; ++i) { - if (testRunner.numberOfDFGCompiles(argument.f[i]) < numberOfCompiles) - return false; - } - } else { - if (testRunner.numberOfDFGCompiles(argument.f) < numberOfCompiles) - return false; - } - - return true; -} - -function dfgIncrement(argument) -{ - if (!self.testRunner) - return argument.i; - - if (argument.i < argument.n) - return argument.i; - - if (didFailSomeTests) - return argument.i; - - if (!dfgCompiled(argument)) - return "start" in argument ? argument.start : 0; - - return argument.i; -} - -function noInline(theFunction) -{ - if (!self.testRunner) - return; - - testRunner.neverInlineFunction(theFunction); -} - -function finishJSTest() -{ - isSuccessfullyParsed(); - if (didFailSomeTests) - throw new Error("Some Tests Failed"); -} diff --git a/implementation-contributed/javascriptcore/stress/resources/typedarray-constructor-helper-functions.js b/implementation-contributed/javascriptcore/stress/resources/typedarray-constructor-helper-functions.js deleted file mode 100644 index bf34db4c6ae6aefc7cf973b1b5c6187ea669b4e7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/typedarray-constructor-helper-functions.js +++ /dev/null @@ -1,60 +0,0 @@ -load("./resources/standalone-pre.js"); - -"use strict"; - -var typedArrays = ["Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array"]; - -function forEachTypedArray(constructors, testFunction, name, args) { - for (let i = 0; i < constructors.length; ++i) { - let typedArray = constructors[i]; - - let result; - if (name !== "") - result = eval(typedArray + "." + name + args) - else - result = eval("new " + typedArray + args) - - let testResult = testFunction(result, typedArray) - if (testResult !== true) - return testResult; - } - - return true; -} - -function hasSameValues(msg, array1, array2) { - if (array1.length !== array2.length) { - debug(msg + "The arrays had differing lengths, first array: " + array1 + " length: " + array1.length + " second array: " + array2 + " length" + array2.length); - return false; - } - - let allSame = true; - for (let i = 0; i < array1.length; ++i) { - allSame = allSame && Object.is(array1[i], array2[i]); - } - - if (!allSame) - debug(msg + "The array did not have all the expected elements, first array: " + array1 + " second array: " + array2); - return allSame; - -} - -function testConstructorFunction(name, args, expected) { - function foo(array, constructor) { - if (!hasSameValues(constructor + "." + name + " did not produce the correct result on " + name + args, array, expected)) - return false - return true; - } - - return forEachTypedArray(typedArrays, foo, name, args); -} - -function testConstructor(args, expected) { - function foo(array, constructor) { - if (!hasSameValues(constructor + args + " did not produce the correct result", array, expected)) - return false - return true; - } - - return forEachTypedArray(typedArrays, foo, "", args); -} diff --git a/implementation-contributed/javascriptcore/stress/resources/typedarray-test-helper-functions.js b/implementation-contributed/javascriptcore/stress/resources/typedarray-test-helper-functions.js deleted file mode 100644 index c915b2697c931be8201bca213f72bd6d181478eb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/typedarray-test-helper-functions.js +++ /dev/null @@ -1,105 +0,0 @@ -load("./resources/standalone-pre.js"); - -var typedArrays = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array]; - -var signedArrays = [Int8Array, Int16Array, Int32Array, Float32Array, Float64Array]; - -var intArrays = [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array]; - -var floatArrays = [Float32Array, Float64Array]; - -function forEachTypedArray(constructors, testFunction /* , initialValues */ ) { - let initialValues = arguments[2]; - for (let i = 0; i < constructors.length; ++i) { - let typedArray = constructors[i]; - - let array; - if (initialValues) { - array = new typedArray(initialValues); - } else - array = new typedArray(); - - let testResult = testFunction(array, typedArray) - if (testResult !== true) - return testResult; - } - - return true; -} - -function isSameFunctionForEachTypedArrayPrototype(name) { - function eq(array) { return array[name] === Int32Array.prototype[name]; } - return forEachTypedArray(typedArrays, eq); -} - -function hasSameValues(msg, array1, array2) { - if (array1.length !== array2.length) { - debug(msg + " first array: " + array1 + " second array: " + array2); - return false; - } - - let allSame = true; - for (let i = 0; i < array1.length; ++i) { - allSame = allSame && Object.is(array1[i], array2[i]); - } - - if (!allSame) - debug(msg + " first array: " + array1 + " second array: " + array2); - return allSame; - -} - -function testPrototypeFunctionHelper(constructors, name, args, init, result, expectedArray) { - - function foo(array, constructor) { - let res = eval("array." + name + args); - - if (expectedArray) { - if (!hasSameValues("array did not change correctly on " + constructor + ",", array, expectedArray)) - return false; - } - - if (typeof result === "object") - return hasSameValues(name + " returned the wrong result on " + constructor + ",", res, result); - else { - if (res !== result) { - debug(name + " returned the wrong result on " + constructor + ", returned: " + res + " but expected: " + result); - return false; - } - return true; - } - } - - return forEachTypedArray(constructors, foo, init); -} - -function testPrototypeFunctionOnSigned(name, args, init, result /* expectedArray */) { - return testPrototypeFunctionHelper(signedArrays, name, args, init, result, arguments[4]); -} - -function testPrototypeFunctionOnFloat(name, args, init, result /* expectedArray */) { - return testPrototypeFunctionHelper(floatArrays, name, args, init, result, arguments[4]); -} - -function testPrototypeFunction(name, args, init, result /* expectedArray */) { - return testPrototypeFunctionHelper(typedArrays, name, args, init, result, arguments[4]); -} - -function testPrototypeReceivesArray(name, thisValues) { - function tester (array, constructor) { - var passed = true; - for (var thisValue of thisValues) { - try { - eval("array." + name).call(thisValue); - passed = false; - debug("did not throw an error when given an invalid |this| on " + constructor); - } catch (err) {} - - } - - return passed; - } - - return forEachTypedArray(typedArrays, tester); -} - diff --git a/implementation-contributed/javascriptcore/stress/resources/unary-op-test.js b/implementation-contributed/javascriptcore/stress/resources/unary-op-test.js deleted file mode 100644 index ce55e878958d39d5c7ea9ab9962600d433c33d57..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/resources/unary-op-test.js +++ /dev/null @@ -1,134 +0,0 @@ -// This test module provides infrastructure for generating and running tests on a unary -// operator. -// -// It works by generating test functions to exercise the specified operator on operand -// values in a provided set. For each test, it computes the expected result by exercising -// the test function once (using the LLINT) at test generation time. -// The test runner later compares the result produced by the function (as it tiers up) -// against the expected result. -// -// The generated tests will exercise the operator on a variable. -// -// If all goes well, this test module will terminate silently. If not, it will print -// errors. - -//============================================================================ -// Debugging options: - -var verbose = false; -var abortOnFirstFail = false; -var testFilterStr = undefined; // Define a filter string to filter tests to run. - -var verboseTestGeneration = false; - -//============================================================================ -// Test generation: - -function stringifyIfNeeded(x) { - if (typeof x == "string") - return '"' + x + '"'; - if (typeof x == "object") - return 'objWithVal:' + x; - return x; -} - -// operatorTypes can be "Prefix" or "Postfix". -// resultTypes can be "ImmediateResult" or "PostResult". PostResult is mainly for -// checking the value of a variable on subsequent inspection, so we can confirm that the -// postfix operator did do its job. -var funcIndex = 0; -function generateBinaryTests(tests, opName, operatorType, resultType, op, inValues) { - var funcNamePrefix = opName + resultType; - for (var i = 0; i < inValues.length; i++) { - var test = { }; - xStr = inValues[i]; - test.x = eval(xStr); - - var funcName = funcNamePrefix + funcIndex++; - if (operatorType == "Prefix") { - if (resultType == "ImmediateResult") - test.signature = funcName + "(x) { return " + op + "x }"; - else if (resultType == "PostResult") - test.signature = funcName + "(x) { " + op + "x; return x; }"; - } else if (operatorType == "Postfix") { - if (resultType == "ImmediateResult") - test.signature = funcName + "(x) { return x" + op + " }"; - else if (resultType == "PostResult") - test.signature = funcName + "(x) { x" + op + "; return x; }"; - } - - test.name = test.signature + " with x:" + xStr; - - test.func = eval("(function " + test.signature + ")"); - noInline(test.func); - - test.expectedResult = test.func(test.x); - test.name += ", expected:" + stringifyIfNeeded(test.expectedResult); - - tests.push(test); - if (verboseTestGeneration) - print("Generated " + test.name); - } -} - -//============================================================================ -// Test running and reporting: - -var errorReport = ""; - -function isIdentical(x, y) { - if (typeof x == "undefined" && typeof y == "undefined") - return true; - if (typeof x != typeof y) - return false; - if (x == y) { - if (x) - return true; - // Distinguish between 0 and negative 0. - if (1 / x == 1 / y) - return true; - } else if (Number.isNaN(x) && Number.isNaN(y)) - return true; - return false; -} - -function runTest(test) { - if (testFilterStr && !test.name.includes(testFilterStr)) - return; - - var firstFailed = -1; - try { - if (verbose) - print(test.name); - for (var i = 0; i < 10000; i++) { - var result = test.func(test.x); - if (isIdentical(result, test.expectedResult)) - continue; - if (firstFailed < 0) { - errorReport += "FAILED: " + test.name + " started failing on iteration " + i - + ": actual " + stringifyIfNeeded(result) + "\n"; - if (abortOnFirstFail) - throw errorReport; - firstFailed = i; - } - } - } catch(e) { - if (abortOnFirstFail) - throw e; // Negate the catch by re-throwing. - errorReport += "FAILED: Unexpected exception: " + e + "\n"; - } -} - -function run() { - if (verbose) - print("Start testing"); - - for (var test of tests) - runTest(test); - - if (errorReport !== "") - throw "Found failures:\n" + errorReport; - - if (verbose) - print("Done testing"); -} diff --git a/implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js b/implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js deleted file mode 100644 index 8f5d428ceec7d25d067bbf74e347403231ea7f74..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/reverse-with-immutable-butterfly.js +++ /dev/null @@ -1,28 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function reverseInt() -{ - var array = [0, 1, 2, 3]; - return array.reverse(); -} - -function reverseDouble() -{ - var array = [0.0, 1.1, 2.2, 3.3]; - return array.reverse(); -} - -function reverseContiguous() -{ - var array = [0.0, 1.1, 2.2, 'hello']; - return array.reverse(); -} - -for (var i = 0; i < 1e4; ++i) { - shouldBe(JSON.stringify(reverseInt()), `[3,2,1,0]`); - shouldBe(JSON.stringify(reverseDouble()), `[3.3,2.2,1.1,0]`); - shouldBe(JSON.stringify(reverseContiguous()), `["hello",2.2,1.1,0]`); -} diff --git a/implementation-contributed/javascriptcore/stress/sampling-profiler/samplingProfiler.js b/implementation-contributed/javascriptcore/stress/sampling-profiler/samplingProfiler.js deleted file mode 100644 index 3767a230f5c6207ae8dc9d6f8b2c37c79ef13bfc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/sampling-profiler/samplingProfiler.js +++ /dev/null @@ -1,90 +0,0 @@ -if (!platformSupportsSamplingProfiler()) - throw new Error("Sampling profiler not supported"); - -startSamplingProfiler(); - -function assert(b) { - if (!b) - throw new Error("bad stack trace") -} - -let nodePrototype = { - makeChildIfNeeded: function(name) { - if (!this.children[name]) - this.children[name] = makeNode(name); - return this.children[name]; - } -}; - -function makeNode(name) { - let node = Object.create(nodePrototype); - node.name = name; - node.children = {}; - return node -} - -function updateCallingContextTree(root) { - let stacktraces = samplingProfilerStackTraces(); - for (let stackTrace of stacktraces) { - let node = root; - for (let i = stackTrace.length; i--; ) { - let functionName = stackTrace[i]; - node = node.makeChildIfNeeded(functionName); - } - } -} - -function doesTreeHaveStackTrace(tree, stackTrace, isRunFromRunTest = true, verbose = false) { - // stack trace should be top-down array with the deepest - // call frame at index 0. - if (isRunFromRunTest) - stackTrace = [...stackTrace, "runTest", "(program)"]; - else - stackTrace = [...stackTrace]; - - let node = tree; - for (let i = stackTrace.length; i--; ) { - node = node.children[stackTrace[i]]; - if (!node) { - if (verbose) - print("failing on " + i + " : " + stackTrace[i]); - return false; - } - } - return true; -} - -function makeTree() { - let root = makeNode("<root>"); - updateCallingContextTree(root); - return root; -} - -const VERBOSE = false; -// This test suite assumes that "runTest" is being called -// from the global scope. -function runTest(func, stackTrace) { - const timeToFail = 50000; - let startTime = Date.now(); - let root = makeNode("<root>"); - do { - for (let i = 0; i < 100; i++) { - for (let i = 0; i < 10; i++) { - func(); - } - updateCallingContextTree(root); - if (doesTreeHaveStackTrace(root, stackTrace)) { - if (VERBOSE) - print(`Time to finish: ${Date.now() - startTime}`); - return; - } - } - } while (Date.now() - startTime < timeToFail); - print(JSON.stringify(root, undefined, 2)); - doesTreeHaveStackTrace(root, stackTrace, true, true); - throw new Error("Bad stack trace"); -} - -function dumpTree(tree) { - print(JSON.stringify(tree, undefined, 2)); -} diff --git a/implementation-contributed/javascriptcore/stress/set-add-cse.js b/implementation-contributed/javascriptcore/stress/set-add-cse.js deleted file mode 100644 index b2252aa4865bfb53fa614048bb82fd421ffd587a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/set-add-cse.js +++ /dev/null @@ -1,21 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test() -{ - var set = new Set(); - var r1 = set.has(42); - set.add(42); - var r2 = set.has(42); - return [r1, r2]; -} -noInline(test); - -for (var i = 0; i < 1e5; ++i) { - let [r1, r2] = test(); - shouldBe(r1, false); - shouldBe(r2, true); -} diff --git a/implementation-contributed/javascriptcore/stress/setter-same-base-and-rhs-invalid-assertion-inside-access-case.js b/implementation-contributed/javascriptcore/stress/setter-same-base-and-rhs-invalid-assertion-inside-access-case.js deleted file mode 100644 index 095135791fc21ff3ed0b8e2313d2dfea38738c88..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/setter-same-base-and-rhs-invalid-assertion-inside-access-case.js +++ /dev/null @@ -1,17 +0,0 @@ -function ctor() {} -ctor.prototype.__defineSetter__("f", function () { }); - -function theFunc(o) { - o.f = o; -} -noInline(theFunc); -function run(o) { - theFunc(o); -} - -for (let i = 0; i < 100000; ++i) { - run(new ctor()) - let o = new ctor(); - o.g = 54; - run(o); -} diff --git a/implementation-contributed/javascriptcore/stress/setter.js b/implementation-contributed/javascriptcore/stress/setter.js deleted file mode 100644 index c13d8d5a15ef8d587e46d6472a539301a68a034e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/setter.js +++ /dev/null @@ -1,47 +0,0 @@ -function foo(o, v1) { - o.f = v1; - o.k = v1 * 33; -} - -noInline(foo); - -for (var i = 0; i < 100; ++i) { - var o = {g_: 5}; - o.__defineSetter__("f", function(value) { this.g_ += 42 * value; }); - o.__defineSetter__("g", function(value) { this.g_ += 43 * value; }); - o.__defineSetter__("h", function(value) { this.g_ += 44 * value; }); - o.__defineSetter__("i", function(value) { this.g_ += 45 * value; }); - o.__defineSetter__("j", function(value) { this.g_ += 46 * value; }); - o.__defineSetter__("k", function(value) { this.g_ += 47 * value; }); - foo(o, 29); - if (o.g_ != 5 + 42 * 29 + 29 * 47 * 33) - throw "Error: bad result: " + o.g_; -} - -// Test the case where those fields aren't setters anymore. -var o = {g_: 5}; -o.f = 1; -o.g = 2; -o.h = 3; -o.i = 4; -o.j = 5; -o.k = 6; -foo(o, 29); -if (o.g_ != 5) - throw "Error: bad value of g_: " + o.g_; -if (o.f != 29) - throw "Error: bad value of f: " + o.f; -if (o.k != 29 * 33) - throw "Error: bad value of k: " + o.k; - -// Test the case where they are setters but they're not the same setters. -var o = {g_: 5}; -o.__defineSetter__("f", function(value) { this.g_ += 52 * value; }); -o.__defineSetter__("g", function(value) { this.g_ += 53 * value; }); -o.__defineSetter__("h", function(value) { this.g_ += 54 * value; }); -o.__defineSetter__("i", function(value) { this.g_ += 55 * value; }); -o.__defineSetter__("j", function(value) { this.g_ += 56 * value; }); -o.__defineSetter__("k", function(value) { this.g_ += 57 * value; }); -foo(o, 29); -if (o.g_ != 5 + 52 * 29 + 29 * 57 * 33) - throw "Error: bad result at end: " + o.g_; diff --git a/implementation-contributed/javascriptcore/stress/shadow-chicken-disabled.js b/implementation-contributed/javascriptcore/stress/shadow-chicken-disabled.js deleted file mode 100644 index a731003188bd5f3a10060ff587e004fb148ef049..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/shadow-chicken-disabled.js +++ /dev/null @@ -1,56 +0,0 @@ -//@ runNoFTL; runNoLLInt; runFTLNoCJITValidate - -"use strict"; - -var verbose = false; -load("resources/shadow-chicken-support.js"); -initialize(); - -(function test1() { - function foo() { - expectStack([foo, test1]); - } - - function bar() { - return foo(); - } - - function baz() { - return bar(); - } - - baz(); -})(); - -(function test2() { - function foo() { - } - - function bar() { - return foo(); - } - - function baz() { - return bar(); - } - - baz(); -})(); - -(function test3() { - function foo() { - expectStack([foo, test3]); - } - - function bar() { - return foo(); - } - - function baz() { - return bar(); - } - - baz(); -})(); - - diff --git a/implementation-contributed/javascriptcore/stress/shadow-chicken-reading-from-scope-after-ftl-osr-exit-bytecode-liveness.js b/implementation-contributed/javascriptcore/stress/shadow-chicken-reading-from-scope-after-ftl-osr-exit-bytecode-liveness.js deleted file mode 100644 index fd918f869eb916fd69b5b55b40e406ec45f34312..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/shadow-chicken-reading-from-scope-after-ftl-osr-exit-bytecode-liveness.js +++ /dev/null @@ -1,17 +0,0 @@ -//@ runNoCJIT("--forceDebuggerBytecodeGeneration=true", "--alwaysUseShadowChicken=true") - -"use strict"; - -function foo(b) { - if (b) - throw "foo"; - return b; -} -noInline(foo); - -for (let i = 0; i < 10000; i++) - foo(false); - -try { - foo(true); -} catch(e) { } diff --git a/implementation-contributed/javascriptcore/stress/string-to-string-error.js b/implementation-contributed/javascriptcore/stress/string-to-string-error.js index 7f98113479da71a41fd46be7c437013faac698c6..a99dbcef1d73ca572dff2317fce8ab6f0a019dde 100644 --- a/implementation-contributed/javascriptcore/stress/string-to-string-error.js +++ b/implementation-contributed/javascriptcore/stress/string-to-string-error.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/string-to-string.js b/implementation-contributed/javascriptcore/stress/string-to-string.js deleted file mode 100644 index ba0e7e3d60ad6575dcaa370cc958f9daa6e476cc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/string-to-string.js +++ /dev/null @@ -1,38 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(string) -{ - return string.toString(); -} -noInline(test1); - -function test2(string) -{ - return string.toString(); -} -noInline(test2); - -function test3(string) -{ - return string.toString(); -} -noInline(test3); - -var string = "Hello"; -var stringObject = new String(string); - -for (var i = 0; i < 1e6; ++i) { - shouldBe(test1(string), string); - shouldBe(test2(stringObject), string); - if (i & 1) - shouldBe(test3(string), string); - else - shouldBe(test3(stringObject), string); -} - -shouldBe(test1({}), `[object Object]`); -shouldBe(test2({}), `[object Object]`); -shouldBe(test3({}), `[object Object]`); diff --git a/implementation-contributed/javascriptcore/stress/string-value-of-error.js b/implementation-contributed/javascriptcore/stress/string-value-of-error.js index 53bca53328c2634de6c95c71818b881762a8cf94..eec1f70cd21261529e9b9d34f7afcea6ac5e57b3 100644 --- a/implementation-contributed/javascriptcore/stress/string-value-of-error.js +++ b/implementation-contributed/javascriptcore/stress/string-value-of-error.js @@ -1,3 +1,4 @@ +// Reviewed function shouldBe(actual, expected) { if (actual !== expected) throw new Error('bad value: ' + actual); diff --git a/implementation-contributed/javascriptcore/stress/string-value-of.js b/implementation-contributed/javascriptcore/stress/string-value-of.js deleted file mode 100644 index 4f6d2fd5ec6970b5eefee5e09db66a4a83d18c28..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/string-value-of.js +++ /dev/null @@ -1,39 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test1(string) -{ - return string.valueOf(); -} -noInline(test1); - -function test2(string) -{ - return string.valueOf(); -} -noInline(test2); - -function test3(string) -{ - return string.valueOf(); -} -noInline(test3); - -var string = "Hello"; -var stringObject = new String(string); - -for (var i = 0; i < 1e6; ++i) { - shouldBe(test1(string), string); - shouldBe(test2(stringObject), string); - if (i & 1) - shouldBe(test3(string), string); - else - shouldBe(test3(stringObject), string); -} - -var object = {}; -shouldBe(test1(object), object); -shouldBe(test2(object), object); -shouldBe(test3(object), object); diff --git a/implementation-contributed/javascriptcore/stress/symbol-description.js b/implementation-contributed/javascriptcore/stress/symbol-description.js deleted file mode 100644 index f2d8c760f08d11ec5d5eb4979878074e37a43c1c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/symbol-description.js +++ /dev/null @@ -1,95 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error(`bad value: ${String(actual)}`); -} - -function shouldThrow(func, errorMessage) { - var errorThrown = false; - var error = null; - try { - func(); - } catch (e) { - errorThrown = true; - error = e; - } - if (!errorThrown) - throw new Error('not thrown'); - if (String(error) !== errorMessage) - throw new Error(`bad error: ${String(error)}`); -} - -var s0 = Symbol("Cocoa"); -var s1 = Symbol("Cappuccino"); -var s2 = Symbol(""); -var s3 = Symbol(); - -shouldBe(s0.description, "Cocoa"); -shouldBe(s0.toString(), "Symbol(Cocoa)"); -shouldBe(s1.description, "Cappuccino"); -shouldBe(s1.toString(), "Symbol(Cappuccino)"); -shouldBe(s2.description, ""); -shouldBe(s2.toString(), "Symbol()"); -shouldBe(s3.description, undefined); -shouldBe(s3.toString(), "Symbol()"); - -var o0 = Object(s0); -var o1 = Object(s1); -var o2 = Object(s2); -var o3 = Object(s3); - -shouldBe(o0.description, "Cocoa"); -shouldBe(o0.toString(), "Symbol(Cocoa)"); -shouldBe(o1.description, "Cappuccino"); -shouldBe(o1.toString(), "Symbol(Cappuccino)"); -shouldBe(o2.description, ""); -shouldBe(o2.toString(), "Symbol()"); -shouldBe(o3.description, undefined); -shouldBe(o3.toString(), "Symbol()"); - -var descriptor = Object.getOwnPropertyDescriptor(Symbol.prototype, "description"); -shouldBe(descriptor.enumerable, false); -shouldBe(descriptor.configurable, true); -shouldBe(descriptor.set, undefined); -shouldBe(typeof descriptor.get, "function"); - -shouldThrow(() => { - "use strict"; - s0.description = "Matcha"; -}, `TypeError: Attempted to assign to readonly property.`); -shouldThrow(() => { - "use strict"; - o0.description = "Matcha"; -}, `TypeError: Attempted to assign to readonly property.`); - -shouldThrow(() => { - descriptor.get.call({}); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldThrow(() => { - descriptor.get.call(null); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldThrow(() => { - descriptor.get.call(undefined); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldThrow(() => { - descriptor.get.call(42); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldThrow(() => { - descriptor.get.call("Hello"); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldThrow(() => { - descriptor.get.call(42.195); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldThrow(() => { - descriptor.get.call(false); -}, `TypeError: Symbol.prototype.description requires that |this| be a symbol or a symbol object`); - -shouldBe(descriptor.get.call(s0), "Cocoa"); -shouldBe(descriptor.get.call(o0), "Cocoa"); -o0.__proto__ = {}; -shouldBe(descriptor.get.call(o0), "Cocoa"); diff --git a/implementation-contributed/javascriptcore/stress/weakmap-set-change-get.js b/implementation-contributed/javascriptcore/stress/weakmap-set-change-get.js deleted file mode 100644 index b511e580a0ace0ff7ed4d1ba7423bb18a8473a89..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/weakmap-set-change-get.js +++ /dev/null @@ -1,27 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test() -{ - var key1 = {}; - var map = new WeakMap(); - var res1 = map.get(key1); - map.set(key1, 20); - var res2 = map.get(key1); - map.set(key1, 400); - var res3 = map.get(key1); - map.delete(key1); - var res4 = map.get(key1); - return [res1, res2, res3, res4]; -} -noInline(test); - -for (var i = 0; i < 1e5; ++i) { - var [res1, res2, res3, res4] = test(); - shouldBe(res1, undefined); - shouldBe(res2, 20); - shouldBe(res3, 400); - shouldBe(res4, undefined); -} diff --git a/implementation-contributed/javascriptcore/stress/weakset-add-change-get.js b/implementation-contributed/javascriptcore/stress/weakset-add-change-get.js deleted file mode 100644 index 78fabef8a5995f906de72452ef7fdbbdfa14acc1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/weakset-add-change-get.js +++ /dev/null @@ -1,24 +0,0 @@ -function shouldBe(actual, expected) { - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test() -{ - var key1 = {}; - var set = new WeakSet(); - var res1 = set.has(key1); - set.add(key1); - var res2 = set.has(key1); - set.delete(key1); - var res3 = set.has(key1); - return [res1, res2, res3]; -} -noInline(test); - -for (var i = 0; i < 1e5; ++i) { - var [res1, res2, res3] = test(); - shouldBe(res1, false); - shouldBe(res2, true); - shouldBe(res3, false); -} diff --git a/implementation-contributed/javascriptcore/stress/zero-to-string.js b/implementation-contributed/javascriptcore/stress/zero-to-string.js deleted file mode 100644 index 1f76620da67986c517dd128112fe1e78be2f82a8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/stress/zero-to-string.js +++ /dev/null @@ -1,43 +0,0 @@ -function shouldBe(actual, expected) -{ - if (actual !== expected) - throw new Error('bad value: ' + actual); -} - -function test2() -{ - return 0..toString(2); -} -noInline(test2); - -function test4() -{ - return 0..toString(4); -} -noInline(test4); - -function test8() -{ - return 0..toString(8); -} -noInline(test8); - -function test16() -{ - return 0..toString(16); -} -noInline(test16); - -function test32() -{ - return 0..toString(32); -} -noInline(test32); - -for (var i = 0; i < 1e5; ++i) { - shouldBe(test2(), '0'); - shouldBe(test4(), '0'); - shouldBe(test8(), '0'); - shouldBe(test16(), '0'); - shouldBe(test32(), '0'); -} diff --git a/implementation-contributed/javascriptcore/wasm/README.md b/implementation-contributed/javascriptcore/wasm/README.md deleted file mode 100644 index 06515755fb62d147ed35380e532c0372d2961c98..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/README.md +++ /dev/null @@ -1,98 +0,0 @@ -# `wasmjs`: JavaScript tooling for WebAssembly - -`wasmjs` is a self-contained collection of JavaScript tools which can create and -manipulate WebAssembly representations and binaries. At its core is `wasm.json`, -a JSON decription of the WebAssembly format and other interesting facts about -WebAssembly as used by the Webkit project (such as the names of associated -JavaScriptCore B3 opcodes). - -`wasmjs` requires modern JavaScript features such as ES6 modules, which is -acceptable because WebAssembly is itself contemporary to these other features. - - -# `Builder` API - -The current core API of `wasmjs` is the `Builder` API from `Builder.js`. It is -used to build WebAssembly modules, and assemble them to valid `.wasm` binaries -(held in an `ArrayBuffer`). The `Builder` is a small DSL which looks similar to -the WebAssembly [binary format][]. Each section is declared through a property -on the `Builder` object, and each declaration returns a proxy object which has -properties specific to that section. Proxies are "popped" back by invoking their -`.End()` property. - -The `Code` section has properties for each [WebAssembly opcode][]. Opcode which -create a scope can be nested using a lambda. - - [binary format]: https://github.com/WebAssembly/design/blob/master/BinaryEncoding.md#high-level-structure - [WebAssembly opcode]: https://github.com/WebAssembly/design/blob/master/Semantics.md - -A simple example: - -```javascript -import Builder from 'Builder.js'; - -const builder = new Builder(); - -// Construct the equivalent of: (module (func "answer" (i32.const 42) (return))) -builder - // Declare a Type section, which the builder will auto-fill as functions are defined. - .Type().End() - // Declare a Function section, which the builder will auto-fill as functions are defined. - .Function().End() - .Export() - // Export the "answer" function (defined below) to JavaScript. - .Function("answer") - .End() - .Code() - // The "answer" function takes an i32 parameters, and returns an i32. - .Function("answer", { params: ["i32"], ret: "i32" }) - // Create a block returning an i32, whose body is the enclosed lambda. - .Block("i32", b => b - .GetLocal(0) // Parameters are in the same index space as locals. - .I32Const(0) // Generate an i32 constant. - .I32Eq() // A comparison, using the two values currently on the stack. - .If("i32") // Consume the comparison result, returning an i32. - .I32Const(42) - .Else() - .I32Const(1) - .End() - ) - .Return() // Return the top of the stack: the value returned by the block. - .End() // End the current function. - .End(); // End the Code section. - -// Create an ArrayBuffer which is a valid WebAssembly `.wasm` file. -const bin = builder.WebAssembly().get(); - -// Use the standard WebAssembly JavaScript API to compile the module, and instantiate it. -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); - -// Invoke the compiled WebAssembly function. -const result0 = instance.exports.answer(0); -if (result0 !== 42) - throw new Error(`Expected 42, got ${result0}.`); - -const result1 = instance.exports.answer(1); -if (result1 !== 1) - throw new Error(`Expected 1, got ${result1}.`); -``` - - -# Testing - -* `self-test` tests `wasmjs` itself. -* `js-api` tests the [WebAssembly JavaScript API](https://github.com/WebAssembly/design/blob/master/JS.md). -* `function-tests` tests the WebAssembly compiler's implementation. - -All tests can be executed using: - -```bash -JSSHELL=/path/to/my/js-shell test.sh -``` - -They can also be executed by using WebKit's `run-javascriptcore-tests` tool: - -```bash -./Tools/Scripts/run-javascriptcore-tests --release --filter wasm -arch x86_64 -``` diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/add-12.js b/implementation-contributed/javascriptcore/wasm/function-tests/add-12.js deleted file mode 100644 index 67ac1d72db329e0169ae9a284bc5eb0ce007c9ce..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/add-12.js +++ /dev/null @@ -1,72 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export().Function("f0").Function("f1").End() - .Code() - .Function("f0", { params: ["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(1) - .I32Add() - .GetLocal(2) - .I32Add() - .GetLocal(3) - .I32Add() - .GetLocal(4) - .I32Add() - .GetLocal(5) - .I32Add() - .GetLocal(6) - .I32Add() - .GetLocal(7) - .I32Add() - .GetLocal(8) - .I32Add() - .GetLocal(9) - .I32Add() - .GetLocal(10) - .I32Add() - .GetLocal(11) - .I32Add() - .Return() - .End() - .Function("f1", { params: ["i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .GetLocal(0) - .Call(0) - .Return() - .End() - .End() - -const bin = b.WebAssembly().get(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin)); -function testWasmModuleFunctions(...tests) { - for (let i = 0; i < tests.length; i++) { - const func = instance.exports['f' + i]; - for (let test of tests[i]) { - let result = test[0].value; - let args = test[1].map(x => x.value); - assert.eq(result, func(...args)); - } - } -} - -testWasmModuleFunctions([[{ type: "i32", value: 78 }, [{ type: "i32", value: 1 }, { type: "i32", value: 2 }, { type: "i32", value: 3 }, { type: "i32", value: 4 }, { type: "i32", value: 5 }, { type: "i32", value: 6 }, { type: "i32", value: 7 }, { type: "i32", value: 8 }, { type: "i32", value: 9 }, { type: "i32", value: 10 }, { type: "i32", value: 11 }, { type: "i32", value: 12 }]], - [{ type: "i32", value: 166 }, [{ type: "i32", value: 1 }, { type: "i32", value: 2 }, { type: "i32", value: 3 }, { type: "i32", value: 4 }, { type: "i32", value: 5 }, { type: "i32", value: 6 }, { type: "i32", value: 7 }, { type: "i32", value: 8 }, { type: "i32", value: 9 }, { type: "i32", value: 10 }, { type: "i32", value: 11 }, { type: "i32", value: 100 }]] - ], - [[{ type: "i32", value: 12 }, [{ type: "i32", value: 1 }]], - [{ type: "i32", value: 1200 }, [{ type: "i32", value: 100 }]], - [{ type: "i32", value: 0 }, [{ type: "i32", value: 0 }]], - ]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/basic-element.js b/implementation-contributed/javascriptcore/wasm/function-tests/basic-element.js deleted file mode 100644 index 114f3c814c06aa5d1be516c6217e24971211a290..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/basic-element.js +++ /dev/null @@ -1,34 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - - -const tableDescription = {initial: 1, element: "anyfunc"}; -const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Element() - .Element({tableIndex: 0, offset: 0, functionIndices: [0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const table = new WebAssembly.Table(tableDescription); -new WebAssembly.Instance(module, {imp: {table}}); -const foo = table.get(0); -const objs = []; -for (let i = 0; i < 10000; i++) { - objs.push(new String("foo")); - if (foo(20) !== 20 + 42) - throw new Error("bad!!!"); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/br-as-return.js b/implementation-contributed/javascriptcore/wasm/function-tests/br-as-return.js deleted file mode 100644 index 763657fc0907576428c2360931d00a43dd3dcb89..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/br-as-return.js +++ /dev/null @@ -1,31 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("br1") - .Function("br0") - .End() - .Code() - .Function("br1", { params: [], ret: "i32" }) - .Block("void", b => { - return b.I32Const(0) - .Br(1) - }) - .Unreachable() - .End() - - .Function("br0", { params: [], ret: "i32" }) - .I32Const(0) - .Br(0) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eq(instance.exports.br1(), 0) -assert.eq(instance.exports.br0(), 0) diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/br-if-as-return.js b/implementation-contributed/javascriptcore/wasm/function-tests/br-if-as-return.js deleted file mode 100644 index ea2e6bd4a227aaf93427638b3ccc78349360fb95..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/br-if-as-return.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("br1") - .Function("br0") - .End() - .Code() - .Function("br1", { params: [], ret: "i32" }) - .Block("i32", b => { - return b.I32Const(0) - .I32Const(1) - .BrIf(1) - }) - .End() - - .Function("br0", { params: [], ret: "i32" }) - .I32Const(0) - .I32Const(1) - .BrIf(0) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eq(instance.exports.br1(), 0) -assert.eq(instance.exports.br0(), 0) diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/br-if-loop-less-than.js b/implementation-contributed/javascriptcore/wasm/function-tests/br-if-loop-less-than.js deleted file mode 100644 index ee05e159a055ecb4dd47a063cf14094e0039c465..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/br-if-loop-less-than.js +++ /dev/null @@ -1,65 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export().Function("f0").End() - .Code() - .Function("f0", { params: ["i32", "i32"], ret: "i32" }) - .Loop("void") - .Block("void", b => - b.Block("void", b => - b.GetLocal(0) - .GetLocal(1) - .I32Eq() - .BrIf(0) - .Br(1) - ) - .I32Const(0) - .Return() - ) - .Block("void", b => - b.Block("void", b => - b.GetLocal(0) - .I32Const(0) - .I32Eq() - .BrIf(0) - .Br(1) - ) - .I32Const(1) - .Return() - ) - .GetLocal(0) - .I32Const(1) - .I32Sub() - .SetLocal(0) - .Br(0) - .End() - .Unreachable() - .End() - .End() - -const bin = b.WebAssembly().get(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin)); - -function testWasmModuleFunctions(...tests) { - for (let i = 0; i < tests.length; i++) { - const func = instance.exports['f' + i]; - for (let test of tests[i]) { - let result = test[0].value; - let args = test[1].map(x => x.value); - assert.eq(result, func(...args)); - } - } -} - -testWasmModuleFunctions([[{type: "i32", value: 1 }, [{ type: "i32", value: 0 }, { type: "i32", value: 1 }]], - [{type: "i32", value: 0 }, [{ type: "i32", value: 1 }, { type: "i32", value: 0 }]], - [{type: "i32", value: 0 }, [{ type: "i32", value: 2 }, { type: "i32", value: 1 }]], - [{type: "i32", value: 1 }, [{ type: "i32", value: 1 }, { type: "i32", value: 2 }]], - [{type: "i32", value: 0 }, [{ type: "i32", value: 2 }, { type: "i32", value: 2 }]], - [{type: "i32", value: 0 }, [{ type: "i32", value: 1 }, { type: "i32", value: 1 }]], - [{type: "i32", value: 1 }, [{ type: "i32", value: 2 }, { type: "i32", value: 6 }]], - [{type: "i32", value: 0 }, [{ type: "i32", value: 100 }, { type: "i32", value: 6 }]] - ]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/br-table-as-return.js b/implementation-contributed/javascriptcore/wasm/function-tests/br-table-as-return.js deleted file mode 100644 index c7ad86b77a1b6fffd4e011829ec4efbdd3875606..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/br-table-as-return.js +++ /dev/null @@ -1,52 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("br1Default") - .Function("br0Default") - .Function("br1Case") - .Function("br0Case") - .End() - .Code() - .Function("br1Default", { params: [], ret: "i32" }) - .Block("void", b => { - return b.I32Const(0) - .I32Const(100) - .BrTable(1, 1) - }) - .Unreachable() - .End() - - .Function("br0Default", { params: [], ret: "i32" }) - .I32Const(0) - .I32Const(100) - .BrTable(0, 0) - .End() - - .Function("br1Case", { params: [], ret: "i32" }) - .Block("void", b => { - return b.I32Const(0) - .I32Const(100) - .BrTable(1, 1) - }) - .Unreachable() - .End() - - .Function("br0Case", { params: [], ret: "i32" }) - .I32Const(0) - .I32Const(0) - .BrTable(0, 0) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eq(instance.exports.br1Default(), 0) -assert.eq(instance.exports.br0Default(), 0) -assert.eq(instance.exports.br1Case(), 0) -assert.eq(instance.exports.br0Case(), 0) diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/brTableAsIf.js b/implementation-contributed/javascriptcore/wasm/function-tests/brTableAsIf.js deleted file mode 100644 index 0e3fe766854259ede9e3c1bab0e44e984c7bda2b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/brTableAsIf.js +++ /dev/null @@ -1,38 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export().Function('f0').End() - .Code() - .Function('f0', { params: ["i32"], ret: "i32" }, ["i32"]) - .Block("void", (b) => - b.Block("void", (b) => - b.GetLocal(0) - .BrTable(1, 0) - .I32Const(21) - .Return() - ).I32Const(20) - .Return() - ).I32Const(22) - .End() - .End() - -const bin = b.WebAssembly().get(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin)); -function testWasmModuleFunctions(...tests) { - for (let i = 0; i < tests.length; i++) { - const func = instance.exports['f' + i]; - for (let test of tests[i]) { - let result = test[0].value; - let args = test[1].map(x => x.value); - assert.eq(result, func(...args)); - } - } -} -testWasmModuleFunctions([[{type: "i32", value: 22 }, [{ type: "i32", value: 0 }]], - [{type: "i32", value: 20 }, [{ type: "i32", value: 1 }]], - [{type: "i32", value: 20 }, [{ type: "i32", value: 11 }]], - [{type: "i32", value: 20 }, [{ type: "i32", value: -100 }]] - ]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/brTableManyValues.js b/implementation-contributed/javascriptcore/wasm/function-tests/brTableManyValues.js deleted file mode 100644 index 2c4ef16bb7c63daeb148811df4eec18caff02992..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/brTableManyValues.js +++ /dev/null @@ -1,56 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export().Function('f0').End() - .Code() - .Function('f0', { params: ["i32"], ret: "i32" }, ["i32"]) - .Block("i32", (b) => - b.Block("i32", (b) => - b.Block("i32", (b) => - b.Block("i32", (b) => - b.Block("i32", (b) => - b.I32Const(200) - .GetLocal(0) - .BrTable(3, 2, 1, 0, 4) - ).I32Const(10) - .I32Add() - .Return() - ).I32Const(11) - .I32Add() - .Return() - ).I32Const(12) - .I32Add() - .Return() - ).I32Const(13) - .I32Add() - .Return() - ).I32Const(14) - .I32Add() - .Return() - .End() - .End() - -const bin = b.WebAssembly().get(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin)); -function testWasmModuleFunctions(...tests) { - for (let i = 0; i < tests.length; i++) { - const func = instance.exports['f' + i]; - for (let test of tests[i]) { - let result = test[0].value; - let args = test[1].map(x => x.value); - assert.eq(result, func(...args)); - } - } -} -testWasmModuleFunctions([[{type: "i32", value: 213 }, [{ type: "i32", value: 0 }]], - [{type: "i32", value: 212 }, [{ type: "i32", value: 1 }]], - [{type: "i32", value: 211 }, [{ type: "i32", value: 2 }]], - [{type: "i32", value: 210 }, [{ type: "i32", value: 3 }]], - [{type: "i32", value: 214 }, [{ type: "i32", value: 4 }]], - [{type: "i32", value: 214 }, [{ type: "i32", value: 5 }]], - [{type: "i32", value: 214 }, [{ type: "i32", value: -1 }]], - [{type: "i32", value: 214 }, [{ type: "i32", value: -1000 }]] - ]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/brTableWithLoop.js b/implementation-contributed/javascriptcore/wasm/function-tests/brTableWithLoop.js deleted file mode 100644 index 86d1811386de62f45ca5a1940d662da490fe9de7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/brTableWithLoop.js +++ /dev/null @@ -1,42 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export().Function('f0').End() - .Code() - .Function('f0', { params: ["i32"], ret: "i32" }, ["i32"]) - .Loop("void") - .Block("void", (b) => - - b.GetLocal(0) - .GetLocal(1) - .I32Const(1) - .I32Add() - .SetLocal(1) - .GetLocal(0) - .I32Const(1) - .I32Sub() - .SetLocal(0) - .BrTable(0, 1)) - .End() - .GetLocal(1) - .End() - .End() - -const bin = b.WebAssembly().get(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin)); -function testWasmModuleFunctions(...tests) { - for (let i = 0; i < tests.length; i++) { - const func = instance.exports['f' + i]; - for (let test of tests[i]) { - let result = test[0].value; - let args = test[1].map(x => x.value); - assert.eq(result, func(...args)); - } - } -} -testWasmModuleFunctions([[{type: "i32", value: 1 }, [{ type: "i32", value: 0 }]], - [{type: "i32", value: 2 }, [{ type: "i32", value: 1 }]] - ]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/context-switch.js b/implementation-contributed/javascriptcore/wasm/function-tests/context-switch.js deleted file mode 100644 index 0595e6d9eecba8850c6b6c3ce21e0eb1adefa4da..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/context-switch.js +++ /dev/null @@ -1,277 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -{ - function makeInstance() { - const tableDescription = {initial: 1, element: "anyfunc"}; - const builder = new Builder() - .Type() - .Func([], "void") - .End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params:["i32"], ret:"void"}) - .GetLocal(0) // parameter to call - .GetLocal(0) // call index - .CallIndirect(0, 0) // calling function of type [] => 'void' - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table(tableDescription); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; - } - - function makeInstance2(f) { - const builder = new Builder() - .Type() - .End() - .Import() - .Function("imp", "f", {params:[], ret:"void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "void" }) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, {imp: {f}}); - } - - const {instance: i1, table: t1} = makeInstance(); - const foo = i1.exports.foo; - - let called = false; - let shouldThrow = false; - const i2 = makeInstance2(function() { - called = true; - if (shouldThrow) - throw new Error("Threw"); - }); - - t1.set(0, i2.exports.foo); - for (let i = 0; i < 1000; ++i) { - foo(0); - assert.eq(called, true); - called = false; - } - shouldThrow = true; - for (let i = 0; i < 1000; ++i) { - assert.throws(() => foo(0), Error, "Threw"); - assert.eq(called, true); - called = false; - } -} - -{ - function makeInstance() { - const tableDescription = {initial: 1, element: "anyfunc"}; - const builder = new Builder() - .Type() - .Func(["i32"], "void") - .End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params:["i32", "i32"], ret:"void"}) - .GetLocal(1) // parameter to call - .GetLocal(0) // call index - .CallIndirect(0, 0) // calling function of type ['i32'] => 'void' - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table(tableDescription); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; - } - - function makeInstance2(memory, f) { - const builder = new Builder() - .Type() - .End() - .Import() - .Function("imp", "f", {params:['i32', 'i32'], ret:"void"}) - .Memory("imp", "memory", memoryDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "void" }) - .GetLocal(0) - .GetLocal(0) - .I32Load(2, 0) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, {imp: {f, memory}}); - } - - const {instance: i1, table: t1} = makeInstance(); - const foo = (memOffset) => i1.exports.foo(0, memOffset); - - const memoryDescription = {initial:1}; - const mem = new WebAssembly.Memory(memoryDescription); - let called = false; - - const pageSize = 64 * 1024; - let buf = new Uint32Array(mem.buffer); - const i2 = makeInstance2(mem, function(i, value) { - assert.eq(i & 3, 0); - assert.eq(buf[i/4], value); - called = true; - }); - t1.set(0, i2.exports.foo); - - for (let i = 0; i < pageSize/4; ++i) { - buf[i] = i+1; - } - - for (let i = 0; i < pageSize/4; ++i) { - foo(i*4); - assert.eq(called, true); - called = false; - } - - for (let i = pageSize/4; i < 2*pageSize/4; ++i) { - assert.throws(() => foo(i*4), WebAssembly.RuntimeError, "Out of bounds memory access"); - assert.eq(called, false); - } -} - -{ - function makeInstance() { - const tableDescription = {initial: 1, element: "anyfunc"}; - const builder = new Builder() - .Type() - .Func(["i32"], "void") - .End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params:["i32", "i32"], ret:"void"}) - .GetLocal(1) // parameter to call - .GetLocal(0) // call index - .CallIndirect(0, 0) // calling function of type ['i32'] => 'void' - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table(tableDescription); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; - } - - function makeInstance2(memory, f) { - const builder = new Builder() - .Type() - .End() - .Import() - .Function("imp", "f", {params:['i32', 'i32'], ret:"void"}) - .Memory("imp", "memory", memoryDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "void" }) - .GetLocal(0) - .GetLocal(0) - .I32Load(2, 0) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, {imp: {f, memory}}); - } - - function exportImport(f) { - let builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "f", {params: ['i32'], ret:"void"}) - .End() - .Function().End() - .Export() - .Function("func", {module: "imp", field: "f"}) - .End() - .Code().End(); - return (new WebAssembly.Instance(new WebAssembly.Module(builder.WebAssembly().get()), {imp: {f}})).exports.func; - } - - const {instance: i1, table: t1} = makeInstance(); - const foo = (memOffset) => i1.exports.foo(0, memOffset); - - const memoryDescription = {initial:1}; - const mem = new WebAssembly.Memory(memoryDescription); - let called = false; - - const pageSize = 64 * 1024; - let buf = new Uint32Array(mem.buffer); - const i2 = makeInstance2(mem, function(i, value) { - assert.eq(i & 3, 0); - assert.eq(buf[i/4], value); - called = true; - }); - - const exportedImport = exportImport(function(offset) { - i2.exports.foo(offset); - }); - t1.set(0, exportedImport); - - for (let i = 0; i < pageSize/4; ++i) { - buf[i] = i+1; - } - - for (let i = 0; i < pageSize/4; ++i) { - foo(i*4); - assert.eq(called, true); - called = false; - } - - for (let i = pageSize/4; i < 2*pageSize/4; ++i) { - assert.throws(() => foo(i*4), WebAssembly.RuntimeError, "Out of bounds memory access"); - assert.eq(called, false); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/dead-call.js b/implementation-contributed/javascriptcore/wasm/function-tests/dead-call.js deleted file mode 100644 index d56e15b11d205946ba2e24091a5eb72c39f59fa1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/dead-call.js +++ /dev/null @@ -1,29 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("dead-call") - .End() - .Code() - .Function("crash", { params: [], ret: "i32" }) - .Unreachable() - .End() - - .Function("dead-call", { params: [], ret: "i32" }) - .I32Const(0) - .If("i32", b => - b.Call(0) - .Return() - .Else() - .I32Const(1) - ) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/double-instance.js b/implementation-contributed/javascriptcore/wasm/function-tests/double-instance.js deleted file mode 100644 index 0c4eadddd1288e7131c4e846f17955ee143ca182..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/double-instance.js +++ /dev/null @@ -1,64 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -// The call sequence is as follows: -// -// js -js2wasm-> i1.callAnother() -// -wasm2wasm-> i0.callAnother() -// -wasm2js-> i1.boom() -// -calldirect-> i1.doStackCheck() -// -calldirect-> dummy() -// -calldirect-> i1.doStackCheck() -// -calldirect-> dummy() -// -// We therefore have i1 indirectly calling into itself, through another -// instance. When returning its cached stack limit should still be valid, but -// our implementation used to set it to UINTPTR_MAX causing an erroneous stack -// check failure at the second doStackCheck() call. - -const builder = new Builder() - .Type() - .End() - .Import() - .Function("imp", "boom", {params:["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret:"i32"}) - .Function("imp", "callAnother", {params:["i32"], ret:"i32"}) - .End() - .Function().End() - .Export() - .Function("boom") - .Function("callAnother") - .End() - .Code() - .Function("boom", {params:["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret:"i32"}) - /* call doStackCheck */.GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).Call(4) - .Return() - .End() - .Function("callAnother", {params:["i32"], ret:"i32"}) - /* call imp:callAnother */.GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).Call(1) - /* call doStackCheck */.GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).Call(4) - .Return() - .End() - .Function("doStackCheck", {params:["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret:"i32"}) - /* call dummy */.GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).GetLocal(0).Call(5) - .Return() - .End() - .Function("dummy", {params:["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret:"i32"}) - .GetLocal(0) - .Return() - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); - -let i1; - -const imp = { - boom: () => { throw new Error(`This boom should not get called!`); }, - callAnother: () => { i1.exports["boom"](0xdeadbeef); }, -} - -const i0 = new WebAssembly.Instance(module, { imp }); -i1 = new WebAssembly.Instance(module, { imp: i0.exports }); - -i1.exports["callAnother"](0xc0defefe); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/exceptions.js b/implementation-contributed/javascriptcore/wasm/function-tests/exceptions.js deleted file mode 100644 index 952513f265a3f06f9c679333aaefd4a976da9972..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/exceptions.js +++ /dev/null @@ -1,67 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -function makeInstance() { - const tableDescription = {initial: 1, element: "anyfunc"}; - const builder = new Builder() - .Type() - .Func(["i32", "i32"], "i32") - .Func(["i32"], "i32") - .End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", 0 /*['i32', 'i32'] => 'i32'*/) - .GetLocal(1) // parameter to call - .GetLocal(0) // call index - .CallIndirect(1, 0) // calling function of type ['i32'] => 'i32' - .Return() - .End() - .Function("bar", 1 /*['i32'] => 'i32'*/) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table(tableDescription); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; -} - -{ - const {instance, table} = makeInstance(); - const foo = instance.exports.foo; - const bar = instance.exports.bar; - assert.eq(table.get(0), null); - - for (let i = 0; i < 1000; i++) { - assert.throws(() => foo(0, i), WebAssembly.RuntimeError, "call_indirect to a null table entry"); - } - - table.set(0, foo); - assert.eq(table.get(0), foo); - - for (let i = 0; i < 1000; i++) { - assert.throws(() => foo(1 + i, i), WebAssembly.RuntimeError, "Out of bounds call_indirect"); - } - - for (let i = 0; i < 1000; i++) { - assert.throws(() => foo(0, i), WebAssembly.RuntimeError, "call_indirect to a signature that does not match"); - } - - table.set(0, bar); - assert.eq(table.get(0), bar); - for (let i = 0; i < 25; i++) { - assert.eq(foo(0, i), i + 42); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/f32-const.js b/implementation-contributed/javascriptcore/wasm/function-tests/f32-const.js deleted file mode 100644 index f76beaf909ea6827779235e5cefd63904827315d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/f32-const.js +++ /dev/null @@ -1,26 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("answer") - .Function("minInt") - .End() - .Code() - .Function("answer", { params: [], ret: "f32" }) - .F32Const(.5) - .End() - - .Function("minInt", { params: [], ret: "f32" }) - .F32Const(-1) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eq(instance.exports.answer(), .5); -assert.eq(instance.exports.minInt(), -1); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/f64-const.js b/implementation-contributed/javascriptcore/wasm/function-tests/f64-const.js deleted file mode 100644 index dedfc21ac2f8ae00a9660888695dd76f9ab47b2e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/f64-const.js +++ /dev/null @@ -1,26 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("answer") - .Function("minInt") - .End() - .Code() - .Function("answer", { params: [], ret: "f64" }) - .F64Const(42.424242) - .End() - - .Function("minInt", { params: [], ret: "f64" }) - .F64Const(-1) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eq(instance.exports.answer(), 42.424242); -assert.eq(instance.exports.minInt(), -1); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/factorial.js b/implementation-contributed/javascriptcore/wasm/function-tests/factorial.js deleted file mode 100644 index d01d37316aa537c2876320f38f587ae02ba9d651..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/factorial.js +++ /dev/null @@ -1,36 +0,0 @@ -import * as assert from '../assert.js' -import Builder from '../Builder.js' - -const b = new Builder(); -b.Type().End() - .Import().End() - .Function().End() - .Export() - .Function("fac") - .End() - .Code() - .Function("fac", { params: ["i32"], ret: "i32" }) - .GetLocal(0) - .I32Const(0) - .I32Eq() - .If("void", b => - b.I32Const(1) - .Return() - ) - .GetLocal(0) - .GetLocal(0) - .I32Const(1) - .I32Sub() - .Call(0) - .I32Mul() - .Return() - .End() - .End() - -const m = new WebAssembly.Module(b.WebAssembly().get()); -const fac = (new WebAssembly.Instance(m)).exports.fac; -assert.eq(fac(0), 1); -assert.eq(fac(1), 1); -assert.eq(fac(2), 2); -assert.eq(fac(4), 24); -assert.throws(() => fac(1e7), RangeError, "Maximum call stack size exceeded."); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/float-sub.js b/implementation-contributed/javascriptcore/wasm/function-tests/float-sub.js deleted file mode 100644 index e29ab7aa7286f58f6ca537c97c9a8b8a740cd2a7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/float-sub.js +++ /dev/null @@ -1,42 +0,0 @@ -import * as assert from '../assert.js' -import Builder from '../Builder.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("bar", { params: ["f32", "f32"], ret: "f32" }, []) - .GetLocal(0) - .GetLocal(1) - .F32Sub() - .Return() - .End() - - .Function("foo", { params: ["f32", "f32"], ret: "f32" }, []) - .GetLocal(0) - .GetLocal(1) - .Call(0) - .Return() - .End() - .End() - -const bin = b.WebAssembly() -bin.trim(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin.get())); - -let x = new Float32Array(3); -x[0] = 0; -x[1] = 1.5; -x[2] = x[0] - x[1]; -assert.eq(instance.exports.bar(x[0], x[1]), x[2]); -assert.eq(instance.exports.foo(x[0], x[1]), x[2]); - -x[0] = 100.1234 -x[1] = 12.5; -x[2] = x[0] - x[1]; -assert.eq(instance.exports.bar(x[0], x[1]), x[2]); -assert.eq(instance.exports.foo(x[0], x[1]), x[2]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/function-import-return-value.js b/implementation-contributed/javascriptcore/wasm/function-tests/function-import-return-value.js deleted file mode 100644 index 6e11782ed032906854be1ab981fc59ee0e2a4524..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/function-import-return-value.js +++ /dev/null @@ -1,247 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -{ - let called = false; - - const tests = { - i32: [ - [20, (x) => assert.eq(x, 20)], - [20.888, (x) => assert.eq(x, 20.888 | 0)], - [Math.PI, (x) => assert.eq(x, Math.PI | 0)], - [{valueOf() { assert.truthy(!called); called = true; return 25; } }, (x) => { assert.truthy(called); assert.eq(x, 25); called = false; }], - [NaN, (x) => assert.eq(x, NaN | 0)], - [-0.0, (x) => assert.eq(1/x, Infinity)], - [undefined, (x) => assert.eq(x, undefined | 0)], - [null, (x) => assert.eq(x, null | 0)], - [Number.MAX_SAFE_INTEGER, (x) => assert.eq(x, Number.MAX_SAFE_INTEGER | 0)], - [2**32 - 1, (x) => assert.eq(x, (2**32 - 1) | 0)], - [2**32 - 1000, (x) => assert.eq(x, (2**32 - 1000) | 0)], - [-1000, (x) => assert.eq(x, -1000)], - ], - f32: [ - [20, (x) => assert.eq(x, 20)], - [20.888, (x) => assert.eq(x, Math.fround(20.888))], - [Math.PI, (x) => assert.eq(x, Math.fround(Math.PI))], - [{valueOf() { assert.truthy(!called); called = true; return 25.82; } }, (x) => { assert.truthy(called); assert.eq(x, Math.fround(25.82)); called = false; }], - [NaN, (x) => assert.truthy(isNaN(x))], - [-0.0, (x) => assert.eq(1/x, -Infinity)], - [undefined, (x) => assert.truthy(isNaN(x))], - [null, (x) => assert.eq(x, 0)], - [Number.MAX_SAFE_INTEGER, (x) => assert.eq(x, Math.fround(Number.MAX_SAFE_INTEGER))], - [-1000, (x) => assert.eq(x, -1000)], - ], - f64: [ - [20, (x) => assert.eq(x, 20)], - [2**24, (x) => assert.eq(x, 2**24)], - [2**52, (x) => assert.eq(x, 2**52)], - [20.8888888, (x) => assert.eq(x, 20.8888888)], - [Math.PI, (x) => assert.eq(x, Math.PI)], - [{valueOf() { assert.truthy(!called); called = true; return 25.82; } }, (x) => { assert.truthy(called); assert.eq(x, 25.82); called = false; }], - [NaN, (x) => assert.truthy(isNaN(x))], - [-0.0, (x) => assert.eq(1/x, -Infinity)], - [undefined, (x) => assert.truthy(isNaN(x))], - [null, (x) => assert.eq(x, 0)], - [Number.MAX_SAFE_INTEGER, (x) => assert.eq(x, Number.MAX_SAFE_INTEGER)], - [-1000, (x) => assert.eq(x, -1000)], - ] - }; - - for (let type of Reflect.ownKeys(tests)) { - const builder = new Builder() - .Type().End() - .Import() - .Function("imp", "func", { params: [], ret: type}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: type}) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - - for (let test of tests[type]) { - const func = () => { - return test[0]; - }; - - const instance = new WebAssembly.Instance(module, {imp: {func}}); - const ret = instance.exports.foo(); - test[1](ret); - } - } -} - -{ - let types = ["i32", "f32", "f64"]; - for (let type of types) { - const builder = new Builder() - .Type().End() - .Import() - .Function("imp", "func", { params: [], ret: type}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: type}) - .Call(0) - .Unreachable() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - let error = null; - const func = () => { - return { - valueOf() { - error = new Error; - throw error; - } - }; - }; - - const instance = new WebAssembly.Instance(module, {imp: {func}}); - for (let i = 0; i < 100; i++) { - let threw = false; - try { - instance.exports.foo(); - } catch(e) { - assert.eq(e, error); - threw = true; - error = null; - } - assert.truthy(threw); - } - } -} - -{ - const builder = new Builder() - .Type().End() - .Import() - .Function("imp", "func", { params: [], ret: "i64"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "void"}) - .Call(0) - .Drop() - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const func = () => 20; - const instance = new WebAssembly.Instance(module, {imp: {func}}); - for (let i = 0; i < 100; i++) { - assert.throws(() => instance.exports.foo(), TypeError, "i64 not allowed as return type or argument to an imported function"); - } -} - -{ - const builder = new Builder() - .Type().End() - .Import() - .Function("imp", "func", { params: ["i64"], ret: "void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "void"}) - .I64Const(20) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const func = () => 20; - const instance = new WebAssembly.Instance(module, {imp: {func}}); - for (let i = 0; i < 100; i++) { - assert.throws(() => instance.exports.foo(), TypeError, "i64 not allowed as return type or argument to an imported function"); - } -} - -{ - const builder = new Builder() - .Type().End() - .Import() - .Function("imp", "func", { params: ["i64"], ret: "void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "void"}) - .I64Const(20) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - let called = false; - const func = () => { - called = true; - } - const instance = new WebAssembly.Instance(module, {imp: {func}}); - for (let i = 0; i < 100; i++) { - assert.throws(() => instance.exports.foo(), TypeError, "i64 not allowed as return type or argument to an imported function"); - assert.eq(called, false); - } -} - -{ - const builder = new Builder() - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: ["i64"], ret: "void"}) - .I64Const(20) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - let called = false; - let value = { - valueOf() { - called = true; - } - }; - const instance = new WebAssembly.Instance(module); - for (let i = 0; i < 100; i++) { - assert.throws(() => instance.exports.foo(value), Error, "WebAssembly function with an i64 argument can't be called from JavaScript"); - assert.eq(called, false); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-2.js b/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-2.js deleted file mode 100644 index fba01318f8a4f9879f522e7f188d7332493b1143..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-2.js +++ /dev/null @@ -1,82 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -{ - const memoryDescription = {initial: 0, maximum: 2}; - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryDescription) - .Function("imp", "func", {params: [], ret: "void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .Call(0) - .GetLocal(0) - .I32Load(0, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - - const func = () => { - memory.grow(1); - (new Uint32Array(memory.buffer))[0] = 42; - }; - - const instance = new WebAssembly.Instance(module, {imp: {memory, func}}); - assert.eq(instance.exports.foo(0), 42); -} - -{ - const memoryDescription = {initial: 0, maximum: 2}; - const tableDescription = {initial: 1, maximum: 1, element: "anyfunc"}; - const builder = (new Builder()) - .Type() - .Func([], "void") - .End() - .Import() - .Memory("imp", "memory", memoryDescription) - .Function("imp", "func", {params: [], ret: "void"}) - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .I32Const(0) - .CallIndirect(0, 0) // call [] => void - .GetLocal(0) - .I32Load(0, 0) - .Return() - .End() - .Function("bar", {params: [], ret: "void"}) - .Call(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const table = new WebAssembly.Table(tableDescription); - - const func = () => { - memory.grow(1); - (new Uint32Array(memory.buffer))[0] = 0xbadbeef; - }; - - const instance = new WebAssembly.Instance(module, {imp: {memory, func, table}}); - table.set(0, instance.exports.bar); - assert.eq(instance.exports.foo(0), 0xbadbeef); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-3.js b/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-3.js deleted file mode 100644 index d2e1145b0f436e862696bffeed73aec861be74a7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-3.js +++ /dev/null @@ -1,34 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -{ - const memoryDescription = {initial: 0, maximum: 2}; - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", {params: [], ret: "void"}) - .Unreachable() - .GrowMemory(0) - .End() - .Function("bar", {params: [], ret: "void"}) - .Unreachable() - .CurrentMemory(0) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); // Just make sure it parses. - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, {imp: {memory}}); - - assert.throws(() => instance.exports.foo(), WebAssembly.RuntimeError, "Unreachable code should not be executed") - assert.throws(() => instance.exports.bar(), WebAssembly.RuntimeError, "Unreachable code should not be executed") -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-4.js b/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-4.js deleted file mode 100644 index f26709a5eb23d938c9994fa7219307f01bc2e96b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-4.js +++ /dev/null @@ -1,34 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -{ - const memoryDescription = {initial: 0, maximum: 50}; - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryDescription) - .Function("imp", "func", {params: [], ret: "void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "i32"}) - .Call(0) - .CurrentMemory(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - - const func = () => { - memory.grow(42); - }; - - const instance = new WebAssembly.Instance(module, {imp: {memory, func}}); - assert.eq(instance.exports.foo(), 42); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-cause-gc.js b/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-cause-gc.js deleted file mode 100644 index 007aaf1a340ede5a5911cdf1321022b821d9d5f2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory-cause-gc.js +++ /dev/null @@ -1,61 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -function escape(){} -noInline(escape); - -for (let i = 0; i < 10; ++i) { - const max = 1024*2; - const memoryDescription = {initial: 0, maximum: max}; - const growMemoryAmount = 256; - - const builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "func", {params: [], ret: "void"}) - .Memory("imp", "memory", memoryDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "i32"}) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .I32Const(1) - .Call(2) - .I32Const(growMemoryAmount) - .GrowMemory(0) - .Return() - .End() - .Function("bar", {params: ["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret: "void"}) - .Call(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - - function func() { } - - const instance = new WebAssembly.Instance(module, {imp: {memory, func}}); - for (let i = 0; i < max/growMemoryAmount; ++i) { - instance.exports.foo(); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory.js b/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory.js deleted file mode 100644 index a30603a5f54ff14422018b3528e3b3a2b66b44a9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/grow-memory.js +++ /dev/null @@ -1,207 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -const pageSize = 64 * 1024; -const maxPageCount = (2**32) / pageSize; - -function binaryShouldNotParse(builder, msg = "") { - const bin = builder.WebAssembly().get(); - let threw = false; - try { - const module = new WebAssembly.Module(bin); - } catch(e) { - assert.truthy(e instanceof WebAssembly.CompileError); - if (msg) - assert.truthy(e.message.indexOf(msg) !== -1); - threw = true; - } - assert.truthy(threw); -} - -{ - // Can't grow_memory if no memory is defined. - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export().End() - .Code() - .Function({ret: "void", params: []}) - .I32Const(25) - .GrowMemory(0) - .Drop() - .End() - .End(); - - binaryShouldNotParse(builder, "grow_memory is only valid if a memory is defined or imported"); -} - -{ - // Can't current_memory if no memory is defined. - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export().End() - .Code() - .Function({ret: "void", params: []}) - .I32Const(25) - .CurrentMemory(0) - .Drop() - .End() - .End(); - - binaryShouldNotParse(builder, "current_memory is only valid if a memory is defined or imported"); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .Function({ret: "void", params: []}) - .I32Const(25) - .GrowMemory(1) - .Drop() - .End() - .End(); - - binaryShouldNotParse(builder, "reserved varUint1 for grow_memory must be zero"); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .Function({ret: "void", params: []}) - .I32Const(25) - .CurrentMemory(1) - .Drop() - .End() - .End(); - - binaryShouldNotParse(builder, "reserved varUint1 for current_memory must be zero"); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .Function({ret: "void", params: []}) - .I32Const(25) - .CurrentMemory(0xffffff00) - .Drop() - .End() - .End(); - - binaryShouldNotParse(builder, "can't parse reserved varUint1 for current_memory"); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .Function({ret: "void", params: []}) - .I32Const(25) - .GrowMemory(0xffffff00) - .Drop() - .End() - .End(); - - binaryShouldNotParse(builder, "can't parse reserved varUint1 for grow_memory"); -} - -{ - const memoryDescription = {initial: 20, maximum: 50}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["i32"], ret: "i32"}) - .GetLocal(0) - .GrowMemory(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const instance = new WebAssembly.Instance(module, {imp: {memory: new WebAssembly.Memory(memoryDescription)}}); - let currentPageSize = memoryDescription.initial; - for (let i = 0; i < memoryDescription.maximum - memoryDescription.initial; i++) { - assert.eq(instance.exports.foo(1), currentPageSize); - ++currentPageSize; - } - - for (let i = 0; i < 1000; i++) { - assert.eq(instance.exports.foo(1), -1); - assert.eq(instance.exports.foo(0), currentPageSize); - } -} - -{ - const memoryDescription = {initial: 20, maximum: 100}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32"}) - .CurrentMemory(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, {imp: {memory}}); - let currentPageSize = memoryDescription.initial; - for (let i = 0; i < memoryDescription.maximum - memoryDescription.initial; i++) { - assert.eq(instance.exports.foo(), currentPageSize); - ++currentPageSize; - memory.grow(1); - } -} - -{ - const memoryDescription = {initial: 20, maximum: 100}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32"}) - .I32Const(-1) - .GrowMemory(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, {imp: {memory}}); - for (let i = 0; i < 20; i++) { - assert.eq(instance.exports.foo(), -1); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/i32-const.js b/implementation-contributed/javascriptcore/wasm/function-tests/i32-const.js deleted file mode 100644 index aae67a252b69828eb2a8d0920436a53020fbb469..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/i32-const.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("answer") - .Function("minInt") - .Function("maxInt") - .End() - .Code() - .Function("answer", { params: [], ret: "i32" }) - .I32Const(42) - .End() - - .Function("minInt", { params: [], ret: "i32" }) - .I32Const(-1) - .End() - - .Function("maxInt", { params: [], ret: "i32" }) - .I32Const(0xffffffff) - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eq(instance.exports.answer(), 42); -assert.eq(instance.exports.minInt(), -1); -assert.eq(instance.exports.maxInt(), -1); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/i32-load.js b/implementation-contributed/javascriptcore/wasm/function-tests/i32-load.js deleted file mode 100644 index 0c220cfc7447e3acaaabeede0730596e387e3720..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/i32-load.js +++ /dev/null @@ -1,35 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().Function('f0').End() - .Code() - .Function('f0', { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(1) - .GetLocal(0) - .I32Store(2, 0) - .GetLocal(1) - .I32Load(2, 0) - .Return() - .End() - .End(); - -const bin = b.WebAssembly().get(); -const instance = new WebAssembly.Instance(new WebAssembly.Module(bin)); -function testWasmModuleFunctions(...tests) { - for (let i = 0; i < tests.length; i++) { - const func = instance.exports['f' + i]; - for (let test of tests[i]) { - let result = test[0].value; - let args = test[1].map(x => x.value); - assert.eq(result, func(...args)); - } - } -} -testWasmModuleFunctions([[{type: "i32", value: 0 }, [{ type: "i32", value: 0 }, { type: "i32", value: 10 }]], - [{type: "i32", value: 100 }, [{ type: "i32", value: 100 }, { type: "i32", value: 112 }]], - [{type: "i32", value: 1000000 }, [{ type: "i32", value: 1000000 }, { type: "i32", value: 10 }]] - ]); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/i32-load8-s.js b/implementation-contributed/javascriptcore/wasm/function-tests/i32-load8-s.js deleted file mode 100644 index 3582754e82ebccf6192d47cf70c01ec429deb218..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/i32-load8-s.js +++ /dev/null @@ -1,24 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().Function("foo").End() - .Code() - .Function("foo", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(1) - .GetLocal(0) - .I32Store(2, 0) - .GetLocal(1) - .I32Load8S(0, 0) - .Return() - .End() - .End() - -const bin = b.WebAssembly().get(); -const foo = (new WebAssembly.Instance(new WebAssembly.Module(bin))).exports.foo; -assert.eq(foo(0, 10), 0); -assert.eq(foo(100, 112), 100); -assert.eq(foo(1000000, 10), 0x40); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/i64-from-js-exceptions.js b/implementation-contributed/javascriptcore/wasm/function-tests/i64-from-js-exceptions.js deleted file mode 100644 index 4cd9cfcd22a970abffdedd601d25a45dca4724d2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/i64-from-js-exceptions.js +++ /dev/null @@ -1,40 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const builder = (new Builder()) - .Type().End() - .Import() - .Function("import", "sideEffects", {params: [], ret: "void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", {params: ["i64"], ret: "void"}) - .Call(0) - .Return() - .End() - .Function("bar", {params: [], ret: "i64"}) - .Call(0) - .I32Const(25) - .I64ExtendUI32() - .Return() - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -let called = false; -const imp = { - import: { - sideEffects() { called = true; } - } -}; - -const instance = new WebAssembly.Instance(module, imp); -assert.throws(() => instance.exports.foo(20), WebAssembly.RuntimeError, "WebAssembly function with an i64 argument can't be called from JavaScript"); -assert.throws(() => instance.exports.foo({valueOf() { throw new Error("Should not be called!"); }}), WebAssembly.RuntimeError, "WebAssembly function with an i64 argument can't be called from JavaScript"); -assert.throws(() => instance.exports.bar(), WebAssembly.RuntimeError, "WebAssembly function that returns i64 can't be called from JavaScript"); -assert.eq(called, false); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/if-no-else-non-void.js b/implementation-contributed/javascriptcore/wasm/function-tests/if-no-else-non-void.js deleted file mode 100644 index 8833164caa8a040225679cd6833a63cab317705b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/if-no-else-non-void.js +++ /dev/null @@ -1,16 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Code() - .Function("bad-if", { params: [], ret: "i32" }) - .I32Const(0) - .If("i32", b => b.I32Const(0)) - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -assert.throws(() => new WebAssembly.Module(bin), WebAssembly.CompileError, "WebAssembly.Module doesn't validate: If-block had a non-void result type: I32 but had no else-block, in function at index 0 (evaluating 'new WebAssembly.Module(bin)')"); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/invalid-duplicate-export.js b/implementation-contributed/javascriptcore/wasm/function-tests/invalid-duplicate-export.js deleted file mode 100644 index 418d51aa499019aa2469baa5f1fd8e1abd3bf291..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/invalid-duplicate-export.js +++ /dev/null @@ -1,19 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "void"}) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - assert.throws(() => new WebAssembly.Module(bin), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 31: duplicate export: 'foo'"); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/load-offset.js b/implementation-contributed/javascriptcore/wasm/function-tests/load-offset.js deleted file mode 100644 index 7419a190ac78384b20ecd4fdb61daea7e3129c27..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/load-offset.js +++ /dev/null @@ -1,165 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: 1}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Load(2, 4) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 1}); - const instance = new WebAssembly.Instance(module, {imp: {mem: memory}}); - - const number = 0x0abbccdd; - (new Uint32Array(memory.buffer))[1] = number; - assert.eq(instance.exports.foo(0), number); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: 1}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I64Load32U(2, 4) - .I64Popcnt() - .I32WrapI64() - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 1}); - const instance = new WebAssembly.Instance(module, {imp: {mem: memory}}); - - const number = 2**32 - 1; - (new Uint32Array(memory.buffer))[1] = number; - assert.eq(instance.exports.foo(0), 32); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: 1}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I64Load32S(2, 4) - .I64Popcnt() - .I32WrapI64() - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 1}); - const instance = new WebAssembly.Instance(module, {imp: {mem: memory}}); - - const number = 2**32 - 1; - (new Uint32Array(memory.buffer))[1] = number; - assert.eq(instance.exports.foo(0), 64); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: 1}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I64Load(2, 4) - .I64Popcnt() - .I32WrapI64() - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 1}); - const instance = new WebAssembly.Instance(module, {imp: {mem: memory}}); - - const number = 2**32 - 1; - (new Uint32Array(memory.buffer))[1] = number; - (new Uint32Array(memory.buffer))[2] = 0xff00ff00; - assert.eq(instance.exports.foo(0), 32 + 16); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: 1}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "f32"}) - .GetLocal(0) - .F32Load(2, 4) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 1}); - const instance = new WebAssembly.Instance(module, {imp: {mem: memory}}); - - const number = Math.PI; - (new Float32Array(memory.buffer))[1] = number; - assert.eq(instance.exports.foo(0), Math.fround(number)); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: 1}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "f64"}) - .GetLocal(0) - .F64Load(2, 8) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 1}); - const instance = new WebAssembly.Instance(module, {imp: {mem: memory}}); - - const number = Math.PI; - (new Float64Array(memory.buffer))[1] = number; - assert.eq(instance.exports.foo(0), number); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/loop-mult.js b/implementation-contributed/javascriptcore/wasm/function-tests/loop-mult.js deleted file mode 100644 index ce39696791338bcdbbb2d219908a4fbf44e0ef6d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/loop-mult.js +++ /dev/null @@ -1,43 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export() - .Function("loop") - .End() - .Code() - .Function("loop", { params: ["i32"], ret: "i32" }, ["i32"]) - .I32Const(0) - .SetLocal(1) - .Loop("void") - .Block("void", b => - b.GetLocal(0) - .I32Const(0) - .I32Eq() - .BrIf(0) - .GetLocal(0) - .GetLocal(1) - .I32Add() - .SetLocal(1) - .GetLocal(0) - .I32Const(1) - .I32Sub() - .SetLocal(0) - .Br(1) - ) - .End() - .GetLocal(1) - .Return() - .End() - .End() - -const bin = b.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); - -assert.eq(0, instance.exports.loop(0)); -assert.eq(1, instance.exports.loop(1)); -assert.eq(3, instance.exports.loop(2)); -assert.eq(5050, instance.exports.loop(100)); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/loop-sum.js b/implementation-contributed/javascriptcore/wasm/function-tests/loop-sum.js deleted file mode 100644 index ce39696791338bcdbbb2d219908a4fbf44e0ef6d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/loop-sum.js +++ /dev/null @@ -1,43 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export() - .Function("loop") - .End() - .Code() - .Function("loop", { params: ["i32"], ret: "i32" }, ["i32"]) - .I32Const(0) - .SetLocal(1) - .Loop("void") - .Block("void", b => - b.GetLocal(0) - .I32Const(0) - .I32Eq() - .BrIf(0) - .GetLocal(0) - .GetLocal(1) - .I32Add() - .SetLocal(1) - .GetLocal(0) - .I32Const(1) - .I32Sub() - .SetLocal(0) - .Br(1) - ) - .End() - .GetLocal(1) - .Return() - .End() - .End() - -const bin = b.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); - -assert.eq(0, instance.exports.loop(0)); -assert.eq(1, instance.exports.loop(1)); -assert.eq(3, instance.exports.loop(2)); -assert.eq(5050, instance.exports.loop(100)); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/many-args-tail-call-sp-restored.js b/implementation-contributed/javascriptcore/wasm/function-tests/many-args-tail-call-sp-restored.js deleted file mode 100644 index 47bb53938233ba83b39c0c0ffce01237549981bb..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/many-args-tail-call-sp-restored.js +++ /dev/null @@ -1,72 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -{ - const count = 1000; - const signature = []; - for (let i = 0; i < count; ++i) - signature.push("i32"); - - let builder = new Builder() - .Type() - .End() - .Import() - .Function("imp", "f1", {params:signature, ret:"void"}) - .Function("imp", "f2", {params:signature, ret:"void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: signature, ret: "void" }); - - for (let i = 0; i < count; ++i) - builder = builder.GetLocal(i); - - builder = builder.Call(0); - - for (let i = count; i--; ) - builder = builder.GetLocal(i); - - builder = builder.Call(1).Return().End().End(); - - let calledF1 = false; - let calledF2 = false; - - function f1(...args) { - calledF1 = true; - let realArgs = [...args, ...args]; - return end(...realArgs); - } - noInline(f1); - - function end() {} - noInline(end); - - - function f2(...args) { - calledF2 = true; - let called = false; - assert.eq(args.length, count); - for (let i = 0; i < args.length; ++i) { - assert.eq(args[i], args.length - i - 1); - } - } - noInline(f2); - - let instance = new WebAssembly.Instance(new WebAssembly.Module(builder.WebAssembly().get()), {imp: {f1, f2}}); - - const args = []; - for (let i = 0; i < count; ++i) - args.push(i); - - for (let i = 0; i < 50; ++i) { - instance.exports.foo(...args); - - assert.eq(calledF1, true); - assert.eq(calledF2, true); - calledF1 = false; - calledF2 = false; - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/many-arguments-to-function.js b/implementation-contributed/javascriptcore/wasm/function-tests/many-arguments-to-function.js deleted file mode 100644 index b14d08efa0c1fcb60661652557c13b15639b994b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/many-arguments-to-function.js +++ /dev/null @@ -1,186 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -{ - const b = new Builder() - .Type().End() - .Import().Function("imp", "func", { params: ["i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32", "i32"], ret:"i32" }).End() - .Function().End() - .Export().Function("f0").End() - .Code() - .Function("f0", { params: [], ret: "i32" }) - .I32Const(0) - .I32Const(1) - .I32Const(2) - .I32Const(3) - .I32Const(4) - .I32Const(5) - .I32Const(6) - .I32Const(7) - .I32Const(8) - .I32Const(9) - .I32Const(10) - .I32Const(11) - .I32Const(12) - .I32Const(13) - .I32Const(14) - .I32Const(15) - .I32Const(16) - .I32Const(17) - .Call(0) - .Return() - .End() - .End() - - function foo(...args) { - for (let i = 0; i < args.length; i++) { - if (args[i] !== i) - throw new Error("Bad!"); - } - } - - let imp = {imp: {func: foo}} - let instance = new WebAssembly.Instance(new WebAssembly.Module(b.WebAssembly().get()), imp); - for (let i = 0; i < 100; i++) - instance.exports.f0(); -} - -{ - const b = new Builder() - .Type().End() - .Import().Function("imp", "func", { params: ["f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32"], ret:"f32" }).End() - .Function().End() - .Export().Function("f0").End() - .Code() - .Function("f0", { params: [], ret: "f32" }) - .F32Const(0.5) - .F32Const(1.5) - .F32Const(2.5) - .F32Const(3.5) - .F32Const(4.5) - .F32Const(5.5) - .F32Const(6.5) - .F32Const(7.5) - .F32Const(8.5) - .F32Const(9.5) - .F32Const(10.5) - .F32Const(11.5) - .F32Const(12.5) - .F32Const(13.5) - .F32Const(14.5) - .F32Const(15.5) - .F32Const(16.5) - .F32Const(17.5) - .Call(0) - .Return() - .End() - .End() - - function foo(...args) { - for (let i = 0; i < args.length; i++) { - if (args[i] !== (i + 0.5)) - throw new Error("Bad!"); - } - } - - let imp = {imp: {func: foo}} - let instance = new WebAssembly.Instance(new WebAssembly.Module(b.WebAssembly().get()), imp); - for (let i = 0; i < 100; i++) - instance.exports.f0(); -} - -{ - const b = new Builder() - .Type().End() - .Import().Function("imp", "func", { params: ["f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32"], ret:"f32" }).End() - .Function().End() - .Export().Function("f0").End() - .Code() - .Function("f0", { params: ["f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32", "f32"] , ret: "f32" }) - .GetLocal(0) - .GetLocal(1) - .GetLocal(2) - .GetLocal(3) - .GetLocal(4) - .GetLocal(5) - .GetLocal(6) - .GetLocal(7) - .GetLocal(8) - .GetLocal(9) - .GetLocal(10) - .GetLocal(11) - .GetLocal(12) - .GetLocal(13) - .GetLocal(14) - .GetLocal(15) - .GetLocal(16) - .GetLocal(17) - .Call(0) - .Return() - .End() - .End() - - function foo(...args) { - for (let i = 0; i < args.length; i++) { - if (args[i] !== i) - throw new Error("Bad!"); - } - } - - let imp = {imp: {func: foo}} - let instance = new WebAssembly.Instance(new WebAssembly.Module(b.WebAssembly().get()), imp); - let arr = []; - for (let i = 0; i < 18; i++) - arr.push(i); - for (let i = 0; i < 100; i++) - instance.exports.f0(...arr); -} - - -{ - let signature = []; - function addType(t, i) { - for (let j = 0; j < i; j++) { - signature.push(t); - } - } - addType("i32", 16); - addType("f32", 16); - - let b = new Builder() - .Type().End() - .Import().Function("imp", "func", { params: signature, ret:"f32" }).End() - .Function().End() - .Export().Function("f0").End() - .Code() - .Function("f0", { params: signature , ret: "f32" }); - for (let i = 0; i < (16 + 16); i++) { - b = b.GetLocal(i); - } - - b = b.Call(0).Return().End().End(); - - function foo(...args) { - if (args.length !== 32) - throw new Error("Bad!") - - for (let i = 0; i < 16; i++) { - if (args[i] !== i) - throw new Error("Bad!"); - if (args[i + 16] !== (i + 16 + 0.5)) - throw new Error("Bad!"); - } - } - - let imp = {imp: {func: foo}} - let instance = new WebAssembly.Instance(new WebAssembly.Module(b.WebAssembly().get()), imp); - let arr = []; - for (let i = 0; i < 16; i++) - arr.push(i); - for (let i = 16; i < 32; i++) - arr.push(i + 0.5); - for (let i = 0; i < 100; i++) - instance.exports.f0(...arr); -} - - diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-access-past-4gib.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-access-past-4gib.js deleted file mode 100644 index 1d3494ddd2f86e2a5252e7902955a9434aea9b8a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-access-past-4gib.js +++ /dev/null @@ -1,130 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; -import * as LLB from '../LowLevelBinary.js'; -import * as WASM from '../WASM.js'; -import * as util from '../utilities.js'; - -const verbose = false; - -const pageSize = 64 * 1024; -const fourGiB = pageSize * 65536; -const initial = 64; -const maximum = 128; - -// When using fast memories, we allocate a redzone after the 4GiB huge -// allocation. This redzone is used to trap reg+imm accesses which exceed -// 32-bits. Anything past 4GiB must trap, but we cannot know statically that it -// will. - -const offsets = [ - 0, - 1, - 2, - 1024, - pageSize, - pageSize + pageSize / 2, - pageSize * 8, - pageSize * 16, - pageSize * 128, - pageSize * 512, - fourGiB / 4 - 4, - fourGiB / 4 - 3, - fourGiB / 4 - 2, - fourGiB / 4 - 1, - fourGiB / 4, - fourGiB / 4 + 1, - fourGiB / 4 + 2, - fourGiB / 4 + 3, - fourGiB / 4 + 4, - fourGiB / 2 - 4, - fourGiB / 2 - 3, - fourGiB / 2 - 2, - fourGiB / 2 - 1, - fourGiB / 2, - fourGiB / 2 + 1, - fourGiB / 2 + 2, - fourGiB / 2 + 3, - fourGiB / 2 + 4, - (fourGiB / 4) * 3, - fourGiB - 4, - fourGiB - 3, - fourGiB - 2, - fourGiB - 1, -]; - -for (let memoryDeclaration of [{ initial: initial }, { initial: initial, maximum: maximum }]) { - fullGC(); - - // Re-use a single memory so tests are more likely to get a fast memory. - const memory = new WebAssembly.Memory(memoryDeclaration); - if (verbose) - print(WebAssemblyMemoryMode(memory)); - const buf = new Uint8Array(memory.buffer); - - // Enumerate all memory access types. - for (const op of WASM.opcodes("memory")) { - const info = WASM.memoryAccessInfo(op); - - // The accesses should fault even if only the last byte is off the end. - let wiggles = [0]; - for (let wiggle = 0; wiggle !== info.width / 8; ++wiggle) - wiggles.push(wiggle); - - let builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDeclaration).End() - .Function().End() - .Export(); - - for (let offset of offsets) - switch (info.type) { - case "load": builder = builder.Function("get_" + offset); break; - case "store": builder = builder.Function("set_" + offset); break; - default: throw new Error(`Implementation problem: unknown memory access type ${info.type}`); - } - - builder = builder.End().Code(); - - const align = 0; // No need to be precise, it's just a hint. - const constInstr = util.toJavaScriptName(WASM.constForValueType(info.valueType)); - const instr = util.toJavaScriptName(op.name); - for (let offset of offsets) - switch (info.type) { - case "load": - builder = builder.Function("get_" + offset, { params: ["i32"] }).GetLocal(0)[instr](align, offset).Drop().End(); - break; - case "store": - builder = builder.Function("set_" + offset, { params: ["i32"] }).GetLocal(0)[constInstr](0xdead)[instr](align, offset).End(); - break; - default: - throw new Error(`Implementation problem: unknown memory access type ${info.type}`); - } - - builder = builder.End(); - - const instance = new WebAssembly.Instance(new WebAssembly.Module(builder.WebAssembly().get()), { imp: { memory: memory } }); - - for (let offset of offsets) { - for (let wiggle of wiggles) { - const address = LLB.varuint32Max - offset - wiggle; - if (verbose) - print(`${op.name.padStart(16, ' ')}: base address ${address > 0 ? '0x' : ' '}${address.toString(16).padStart(8, address > 0 ? '0' : ' ')} + offset 0x${offset.toString(16).padStart(8, '0')} - wiggle ${wiggle} = effective address 0x${(address + offset - wiggle).toString(16).padStart(16, '0')}`); - switch (info.type) { - case "load": - assert.throws(() => instance.exports["get_" + offset](address), WebAssembly.RuntimeError, `Out of bounds memory access`); - break; - case "store": - assert.throws(() => instance.exports["set_" + offset](address), WebAssembly.RuntimeError, `Out of bounds memory access`); - break; - default: throw new Error(`Implementation problem: unknown memory access type ${info.type}`); - } - } - } - - fullGC(); - } - - // Only check that the memory was untouched at the very end, before throwing it away entirely. - for (let idx = 0; idx < buf.byteLength; ++idx) - assert.eq(buf[idx], 0); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-alignment.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-alignment.js deleted file mode 100644 index e605898900aa1bed67b9d32ac6f2aa012eb299ee..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-alignment.js +++ /dev/null @@ -1,48 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; -import * as WASM from '../WASM.js'; -import * as util from '../utilities.js'; - -const offset = 0; - -const memoryDeclaration = { initial: 1 }; -const memory = new WebAssembly.Memory(memoryDeclaration); - -for (const op of WASM.opcodes("memory")) { - const info = WASM.memoryAccessInfo(op); - const maxAlignLog2 = Math.log2(info.width / 8); - const constInstr = util.toJavaScriptName(WASM.constForValueType(info.valueType)); - const instr = util.toJavaScriptName(op.name); - for (let alignLog2 = 0; alignLog2 < 16; ++alignLog2) { - let builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDeclaration).End() - .Function().End() - .Code(); - let start, end; - switch (info.type) { - case "load": - builder = builder.Function({ params: ["i32"] }).GetLocal(0)[instr](alignLog2, offset).Drop().End(); - start = 5; - end = 8; - break; - case "store": - builder = builder.Function({ params: ["i32", info.valueType] }).GetLocal(0).GetLocal(1)[instr](alignLog2, offset).End(); - start = 7; - end = 9; - break; - default: - throw new Error(`Implementation problem: unknown memory access type ${info.type}`); - } - builder = builder.End(); - const instance = () => { - const module = new WebAssembly.Module(builder.WebAssembly().get()); - return new WebAssembly.Instance(module, { imp: { memory: memory } }); - }; - if (alignLog2 <= maxAlignLog2) - instance(); - else - assert.throws(instance, WebAssembly.CompileError, `WebAssembly.Module doesn't parse at byte ${start}: byte alignment ${1 << alignLog2} exceeds ${info.type}'s natural alignment ${1 << maxAlignLog2}, in function at index 0`); - - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-grow-invalid.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-grow-invalid.js deleted file mode 100644 index ef62fd694e59f414c21a35871d6f76ffaded88cf..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-grow-invalid.js +++ /dev/null @@ -1,29 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const verbose = false; - -const initial = 0; -const max = 0; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(initial, max).End() - .Export().Function("current").Function("grow").End() - .Code() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .End(); - -let instance = new WebAssembly.Instance(new WebAssembly.Module(builder.WebAssembly().get())); - -const current = instance.exports.current(); -const by = 2; -const result = instance.exports.grow(current + by); -if (verbose) - print(`Grow from ${current} (max ${max}) to ${current + by} returned ${result}, current now ${instance.exports.current()}`); - -assert.eq(result, -1); -assert.eq(current, instance.exports.current()); -assert.le(instance.exports.current(), max); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-import-and-grow.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-import-and-grow.js deleted file mode 100644 index 1398d92b52dc03fb3e50956b7683008e5c590722..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-import-and-grow.js +++ /dev/null @@ -1,131 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -const pageSize = 64 * 1024; - -const verbose = false; - -// https://github.com/WebAssembly/design/blob/master/Modules.md#imports -// Says: -// -// A linear memory import includes the same set of fields defined in the Linear -// Memory section: initial length and optional maximum length. The host -// environment must only allow imports of WebAssembly linear memories that have -// initial length greater-or-equal than the initial length declared in the -// import and that have maximum length less-or-equal than the maximum length -// declared in the import. This ensures that separate compilation can assume: -// memory accesses below the declared initial length are always in-bounds, -// accesses above the declared maximum length are always out-of-bounds and if -// initial equals maximum, the length is fixed. - -const instantiate = (builder, importObject = undefined) => { - return new WebAssembly.Instance( - new WebAssembly.Module( - builder.WebAssembly().get()), - importObject); -}; - -const test = (memoryToImport, importedMemoryDeclaration, growMemoryToImportBy = undefined, growImportedMemoryDeclarationBy = undefined, expectedFinal) => { - const builder0 = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(memoryToImport.initial, memoryToImport.maximum).End() - .Export() - .Function("current").Function("grow").Function("get") - .Memory("memory", 0) - .End() - .Code() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .End(); - - const builder1 = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", importedMemoryDeclaration).End() - .Function().End() - .Export() - .Function("current").Function("grow").Function("get") - .Memory("memory", 0) - .End() - .Code() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .End(); - - const i0 = instantiate(builder0); - const i1 = instantiate(builder1, { imp: { memory: i0.exports.memory } }); - assert.eq(i0.exports.current(), i1.exports.current()); - assert.eq(i0.exports.current(), memoryToImport.initial); - - if (growMemoryToImportBy !== undefined) { - const grow = i0.exports.grow(growMemoryToImportBy); - if (verbose) - print(`currents: ${i0.exports.current()} and ${i1.exports.current()} -- grow result: ${grow}`); - } - - if (growImportedMemoryDeclarationBy !== undefined) { - const grow = i1.exports.grow(growImportedMemoryDeclarationBy); - if (verbose) - print(`currents: ${i0.exports.current()} and ${i1.exports.current()} -- grow result: ${grow}`); - } - - assert.eq(i0.exports.current(), i1.exports.current()); - assert.eq(i0.exports.current(), expectedFinal); -}; - -const u = undefined; - -// Identical Just Works. -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, 0, u, 2); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, 1, u, 3); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, 2, u, 4); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, 3, u, 2); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, u, 0, 2); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, u, 1, 3); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, u, 2, 4); -test({ initial: 2, maximum: 4 }, { initial: 2, maximum: 4 }, u, 3, 2); - -// Allowed: imported initial is greater than declared. -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, 0, u, 2); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, 1, u, 3); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, 2, u, 4); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, 3, u, 2); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, 0, u, 2); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, 1, u, 3); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, 2, u, 4); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, 3, u, 2); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, u, 0, 2); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, u, 1, 3); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, u, 2, 4); -test({ initial: 2, maximum: 4 }, { initial: 1, maximum: 4 }, u, 3, 2); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, u, 0, 2); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, u, 1, 3); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, u, 2, 4); -test({ initial: 2, maximum: 4 }, { initial: 0, maximum: 4 }, u, 3, 2); - -// Allowed: imported maximum is lesser than declared. -test({ initial: 2, maximum: 3 }, { initial: 2, maximum: 4 }, 0, u, 2); -test({ initial: 2, maximum: 3 }, { initial: 2, maximum: 4 }, 1, u, 3); -test({ initial: 2, maximum: 3 }, { initial: 2, maximum: 4 }, 2, u, 2); -test({ initial: 2, maximum: 2 }, { initial: 2, maximum: 4 }, 0, u, 2); -test({ initial: 2, maximum: 2 }, { initial: 2, maximum: 4 }, 1, u, 2); -test({ initial: 2, maximum: 3 }, { initial: 2, maximum: 4 }, u, 0, 2); -test({ initial: 2, maximum: 3 }, { initial: 2, maximum: 4 }, u, 1, 3); -test({ initial: 2, maximum: 3 }, { initial: 2, maximum: 4 }, u, 2, 2); -test({ initial: 2, maximum: 2 }, { initial: 2, maximum: 4 }, u, 0, 2); -test({ initial: 2, maximum: 2 }, { initial: 2, maximum: 4 }, u, 1, 2); - -// Allowed: no declared maximum, same as above. -test({ initial: 2, maximum: 4 }, { initial: 2 }, 0, u, 2); - -// Disallowed: imported initial is lesser than declared. -assert.throws(() => test({ initial: 1, maximum: 4 }, { initial: 2, maximum: 4 }, u, u, 2), WebAssembly.LinkError, `Memory import imp:memory provided an 'initial' that is smaller than the module's declared 'initial' import memory size`); -assert.throws(() => test({ initial: 0, maximum: 4 }, { initial: 2, maximum: 4 }, u, u, 2), WebAssembly.LinkError, `Memory import imp:memory provided an 'initial' that is smaller than the module's declared 'initial' import memory size`); - -// Disallowed: imported maximum is greater than declared. -assert.throws(() => test({ initial: 2, maximum: 5 }, { initial: 2, maximum: 4 }, u, u, 2), WebAssembly.LinkError, `Memory import imp:memory provided a 'maximum' that is larger than the module's declared 'maximum' import memory size`); - -// Disallowed: no imported maximum, same as above. -assert.throws(() => test({ initial: 2 }, { initial: 2, maximum: 4 }, 0, u, 2), WebAssembly.LinkError, `Memory import imp:memory did not have a 'maximum' but the module requires that it does`); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-many.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-many.js deleted file mode 100644 index ba43c62d9e89c93ab4df8eb10a6c1319a125978c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-many.js +++ /dev/null @@ -1,18 +0,0 @@ -const memories = 128; -const verbose = false; -const initial = 1; - -let types = {}; - -for (let m = 0; m < memories; ++m) { - let memory = new WebAssembly.Memory({ initial: initial }); - let type = WebAssemblyMemoryMode(memory); - types[type] = types[type] ? types[type] + 1 : 1; -} - -if (verbose) { - let got = "Got: "; - for (let p in types) - got += ` ${types[p]}: ${p}`; - print(got); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-multiagent.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-multiagent.js deleted file mode 100644 index bf98c85099925a8cb0809fd5a9ecfeb53f37971b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-multiagent.js +++ /dev/null @@ -1,125 +0,0 @@ -// This test times out, probably because of the while loop in the agent. -// https://bugs.webkit.org/show_bug.cgi?id=170958 -//@ skip - -const pageSize = 64 * 1024; - -const verbose = false; - -// Start multiple agents and create WebAssembly.Memory from each of -// them. Perform writes into each memory, and then check that the memory only -// contains that agent's writes. This would find bugs where an implementation's -// memory reuse is buggy. - -// Use the agent support from test262: https://github.com/tc39/test262/blob/master/INTERPRETING.md#host-defined-functions - -const testIterations = 2; -const numAgents = 8; -const initialPages = 64; -const numWrites = 1024; - -const stateWait = 0; -const stateReady = 1; -const stateCheck = 2; - -const startAgents = numAgentsToStart => { - for (let a = 0; a < numAgentsToStart; ++a) { - const agentScript = ` - let state = ${stateWait}; - let u8; - - if (${verbose}) - print("Agent ${a} started"); - $.agent.report("Agent ${a} started"); - - $.agent.receiveBroadcast((sab, newState) => { - if (${verbose}) - print("Agent ${a} received broadcast"); - u8 = new Uint8Array(sab); - state = newState; - }); - - const busyWaitForValue = value => { - // Busy-wait so that once the SAB write occurs all agents try to create a memory at the same time. - while (Atomics.load(u8, 0) !== value) ; - }; - - if (${verbose}) - print("Agent ${a} waits"); - $.agent.report("Agent ${a} waits"); - // FIXME: How can this work? The state variable is in the JS heap and the while loop - // prevents any JS-heap-modifying things from happening because JS is a synchronous - // language - // https://bugs.webkit.org/show_bug.cgi?id=170958 - while (state === ${stateWait}) ; - $.agent.report("Agent ${a} received SAB"); - // Use it for faster state change so all agents are more likely to execute at the same time. - busyWaitForValue(${stateReady}); - - let wasmMemory = new WebAssembly.Memory({ initial: ${initialPages} }); - let memory = new Uint8Array((wasmMemory).buffer); - if (${verbose}) - print("Agent ${a} performing writes"); - for (let write = 0; write < ${numWrites}; ++write) { - // Perform writes of our agent number at a random location. This memory should not be shared, if we see writes of other values then something went wrong. - const idx = (Math.random() * ${pageSize} * ${initialPages}) | 0; - memory[idx] = ${a}; - } - if (${verbose}) - print("Agent ${a} writes performed"); - $.agent.report("Agent ${a} performed writes"); - busyWaitForValue(${stateCheck}); - - if (${verbose}) - print("Agent ${a} checking"); - // Check that our memory only contains 0 and our agent number. - for (let idx = 0; idx < ${pageSize} * ${initialPages}; ++idx) - if (memory[idx] !== 0 && memory[idx] !== ${a}) - throw new Error("Agent ${a} found unexpected value " + memory[idx] + " at location " + idx); - $.agent.report("Agent ${a} checks out OK"); - $.agent.leaving(); - `; - - if (verbose) - print(`Starting agent ${a}`); - $.agent.start(agentScript); - } -}; - -const waitForAgents = numAgentsToWaitFor => { - for (let a = 0; a < numAgentsToWaitFor; ++a) { - while (true) { - const report = $.agent.getReport(); - if (report === null) { - $.agent.sleep(1); - continue; - } - if (verbose) - print(`Received: ${report}`); - break; - } - } -}; - -const broadcastToAgents = (sab, newState) => { - $.agent.broadcast(sab, newState); -}; - -const sab = new SharedArrayBuffer(1024); -const u8 = new Uint8Array(sab); - -for (let it = 0; it < testIterations; ++it) { - startAgents(numAgents); - waitForAgents(numAgents); - broadcastToAgents(sab, stateReady); - waitForAgents(numAgents); - $.agent.sleep(1); - Atomics.store(u8, 0, stateReady); - waitForAgents(numAgents); - $.agent.sleep(1); - Atomics.store(u8, 0, stateCheck); - waitForAgents(numAgents); - if (verbose) - print("Everyting was fine"); - $.agent.sleep(1); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-reuse.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-reuse.js deleted file mode 100644 index fecccceecd40e28a8c6d75ffca738346f3145b97..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-reuse.js +++ /dev/null @@ -1,113 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const count = 10; -const pages = 6; -const memoryDescription = {initial:1}; -const pageSize = 64 * 1024; - -function createWasmInstance(memory) { - const builder = new Builder() - .Type().End() - .Import() - .Memory("imp", "memory", memoryDescription) - .End() - .Function().End() - .Export() - .Function("current") - .Function("get") - .Function("grow") - .End() - .Code() - .Function("current", { params: [], ret: "i32" }) - .CurrentMemory(0) - .Return() - .End() - .Function("get", { params: ["i32"], ret: "i32" }) - .GetLocal(0) - .I32Load(2, 0) - .Return() - .End() - .Function("grow", { params: ["i32"], ret: "i32" }) - .GetLocal(0) - .GrowMemory(0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, {imp: {memory}}); -} - -function doFillMemory(mem, length) { - const buf = new Uint32Array(mem.buffer); - - for (let i = 0; i < length; ++i) { - buf[i * 4] = i + 1; - } -} - -function doCheckTrap(instances, mem, numPages, length) { - const buf = new Uint32Array(mem.buffer); - - for (let instance of instances) { - const foo = instance.exports.get; - for (let i = 0; i < length; i++) { - assert.eq(foo(i * 4), buf[i]); - } - assert.throws(() => foo(numPages * pageSize + 1), WebAssembly.RuntimeError, "Out of bounds memory access"); - } -} - -function doCheckNoTrap(instances, mem, numPages, length) { - const buf = new Uint32Array(mem.buffer); - - for (let instance of instances) { - const foo = instance.exports.get; - for (let i = 0; i < length; i++) { - assert.eq(foo(i * 4), buf[i]); - } - assert.eq(foo(numPages * pageSize + 1), 0); - } -} - -function doMemoryGrow(instances) { - const instance = instances[0]; // Take first instance and grow shared memory - instance.exports.grow(1); -} - -function doCheck(mem, instances, numPages) { - const length = mem.buffer.byteLength / 4; - - doFillMemory(mem, length); - doCheckTrap(instances, mem, numPages, length); - doMemoryGrow(instances); - doCheckNoTrap(instances, mem, numPages, length); -} - -function checkWasmInstancesWithSharedMemory() { - const mem = new WebAssembly.Memory(memoryDescription); - - const instances = []; - for (let i = 0; i < count; i++) { - instances.push(createWasmInstance(mem)); - } - - for(let i = 1; i < pages; i++) { - doCheck(mem, instances, i); - } - - let instance; - for (let i = 0; i < count; i++) { - instance = instances.shift(); - } - - fullGC(); - - const survivedInstances = [ instance ]; // Should survive only one instance after full GC - - doCheck(mem, survivedInstances, pages); // Recheck only for survie instances -} - -checkWasmInstancesWithSharedMemory(); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/memory-section-and-import.js b/implementation-contributed/javascriptcore/wasm/function-tests/memory-section-and-import.js deleted file mode 100644 index 15207ef7188efa0f6923573c1dfea5a3ea5b71ff..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/memory-section-and-import.js +++ /dev/null @@ -1,31 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -const instantiate = (builder, importObject = undefined) => { - return new WebAssembly.Instance( - new WebAssembly.Module( - builder.WebAssembly().get()), - importObject); -}; - -const initial = 0; -const maximum = 2; - -const builder0 = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(initial, maximum).End() - .Export() - .Memory("memory", 0) - .End() - .Code().End(); - -const builder1 = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", { initial: initial, maximum: maximum }).End() - .Function().End() - .Memory().InitialMaxPages(initial, maximum).End() - .Code().End(); - -const i0 = instantiate(builder0); -assert.throws(() => instantiate(builder1, { imp: { memory: i0.exports.memory } }), WebAssembly.CompileError, `WebAssembly.Module doesn't parse at byte 35: there can at most be one Memory section for now`); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/nameSection.js b/implementation-contributed/javascriptcore/wasm/function-tests/nameSection.js deleted file mode 100644 index d4dcd35976905b1736684d8a5fedc4815f2b3174..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/nameSection.js +++ /dev/null @@ -1,72 +0,0 @@ -import * as assert from '../assert.js' - -/* -This test loads a WebAssembly file compiled by Emscripten with: - ./emsdk-portable/emscripten/incoming/em++ ./nameSection.cc -O2 -g4 -s WASM=1 -o nameSection.js -s EXPORTED_FUNCTIONS="['_parrot']" - -From the following C++ source file: - extern "C" { - int silly(int); - __attribute__((noinline)) int eggs(int i) { return silly(i); } - __attribute__((noinline)) int bacon(int i) { return eggs(i); } - __attribute__((noinline)) int spam(int i) { return bacon(i); } - __attribute__((noinline)) int parrot(int i) { return spam(i); } - } -*/ - -const verbose = false; -const wasmFile = 'nameSection.wasm'; - -const compile = (location, importObject = {}) => { - if (verbose) - print(`Processing ${location}`); - let buf = typeof readbuffer !== "undefined"? readbuffer(location) : read(location, 'binary'); - if (verbose) - print(` Size: ${buf.byteLength}`); - - let t0 = Date.now(); - let module = new WebAssembly.Module(buf); - let t1 = Date.now(); - if (verbose) - print(`new WebAssembly.Module(buf) took ${t1-t0} ms.`); - - if (verbose) - print(`Creating fake import object with ${WebAssembly.Module.imports(module).length} imports`); - for (let imp of WebAssembly.Module.imports(module)) { - if (typeof importObject[imp.module] === "undefined") - importObject[imp.module] = {}; - if (typeof importObject[imp.module][imp.name] === "undefined") { - switch (imp.kind) { - case "function": importObject[imp.module][imp.name] = () => {}; break; - case "table": importObject[imp.module][imp.name] = new WebAssembly.Table({ initial: 6, maximum: 6, element: "anyfunc" }); break; - case "memory": importObject[imp.module][imp.name] = new WebAssembly.Memory({ initial: 16777216 / (64 * 1024), maximum: 16777216 / (64 * 1024) }); break; - case "global": importObject[imp.module][imp.name] = 0; break; - } - } - - } - - let t2 = Date.now(); - let instance = new WebAssembly.Instance(module, importObject); - let t3 = Date.now(); - if (verbose) - print(`new WebAssembly.Module(buf) took ${t3-t2} ms.`); - - return instance; -}; - -let stacktrace; -const importObject = { env: { _silly: i => { stacktrace = (new Error).stack; return i + 42; } } }; -const instance = compile(wasmFile, importObject); -const result = instance.exports._parrot(1); -assert.eq(result, 1 + 42); - -assert.truthy(stacktrace); -stacktrace = stacktrace.split("\n"); -assert.falsy(stacktrace[0].indexOf("_silly") === -1); -assert.eq(stacktrace[1], "wasm-stub@[wasm code]"); // the wasm->js stub -assert.eq(stacktrace[2], "<?>.wasm-function[_eggs]@[wasm code]"); -assert.eq(stacktrace[3], "<?>.wasm-function[_bacon]@[wasm code]"); -assert.eq(stacktrace[4], "<?>.wasm-function[_spam]@[wasm code]"); -assert.eq(stacktrace[5], "<?>.wasm-function[_parrot]@[wasm code]"); -assert.eq(stacktrace[6], "wasm-stub@[wasm code]"); // wasm entry diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/ret5.js b/implementation-contributed/javascriptcore/wasm/function-tests/ret5.js deleted file mode 100644 index bc08e878ae75b8363a4ebdcc40e987a267ed263c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/ret5.js +++ /dev/null @@ -1,21 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const b = new Builder(); -b.Type().End() - .Function().End() - .Export() - .Function("ret5") - .End() - .Code() - .Function("ret5", { params: [], ret: "i32" }) - .I32Const(5) - .Return() - .End() - .End(); - -const bin = b.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); - -assert.eq(instance.exports.ret5(), 5); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/rotl.js b/implementation-contributed/javascriptcore/wasm/function-tests/rotl.js deleted file mode 100644 index e978219be0e4877ca37211aa14e3c87f4d88912b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/rotl.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("i32Rotl") - .Function("i64Rotl") - .End() - .Code() - .Function("i32Rotl", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(1) - .I32Rotl() - .End() - - .Function("i64Rotl", { params: ["i64", "i64"], ret: "i64" }) - .GetLocal(0) - .GetLocal(1) - .I64Rotl() - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eqI32(instance.exports.i32Rotl(1, 1), 2); -assert.eqI32(instance.exports.i32Rotl(1, 2), 4); -assert.eqI32(instance.exports.i32Rotl(0xf, 2), 0x3c); -assert.eqI32(instance.exports.i32Rotl(0xf0000000, 1), 0xe0000001); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/rotr.js b/implementation-contributed/javascriptcore/wasm/function-tests/rotr.js deleted file mode 100644 index 14f8d4532991417bad951f9182e1b6cc695596df..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/rotr.js +++ /dev/null @@ -1,31 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("i32Rotr") - .Function("i64Rotr") - .End() - .Code() - .Function("i32Rotr", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(1) - .I32Rotr() - .End() - - .Function("i64Rotr", { params: ["i64", "i64"], ret: "i64" }) - .GetLocal(0) - .GetLocal(1) - .I64Rotr() - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eqI32(instance.exports.i32Rotr(1, 1), 0x80000000); -assert.eqI32(instance.exports.i32Rotr(1, 2), 0x40000000); -assert.eqI32(instance.exports.i32Rotr(0xf, 2), 0xc0000003); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/shl.js b/implementation-contributed/javascriptcore/wasm/function-tests/shl.js deleted file mode 100644 index 41ac11659d3d078b4328320439b45260a56e9f2e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/shl.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("i32Shl") - .Function("i64Shl") - .End() - .Code() - .Function("i32Shl", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(1) - .I32Shl() - .End() - - .Function("i64Shl", { params: ["i64", "i64"], ret: "i64" }) - .GetLocal(0) - .GetLocal(1) - .I64Shl() - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eqI32(instance.exports.i32Shl(1, 1), 2); -assert.eqI32(instance.exports.i32Shl(1, 2), 4); -assert.eqI32(instance.exports.i32Shl(0xf, 2), 0x3c); -assert.eqI32(instance.exports.i32Shl(0xf0000000, 1), 0xe0000000); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/shr-s.js b/implementation-contributed/javascriptcore/wasm/function-tests/shr-s.js deleted file mode 100644 index ec55d3536ad81b70e1ec68bd92802d1046f48c5b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/shr-s.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("i32ShrS") - .Function("i64ShrS") - .End() - .Code() - .Function("i32ShrS", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(1) - .I32ShrS() - .End() - - .Function("i64ShrS", { params: ["i64", "i64"], ret: "i64" }) - .GetLocal(0) - .GetLocal(1) - .I64ShrS() - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eqI32(instance.exports.i32ShrS(1, 1), 0); -assert.eqI32(instance.exports.i32ShrS(1, 2), 0); -assert.eqI32(instance.exports.i32ShrS(0xf, 2), 0x3); -assert.eqI32(instance.exports.i32ShrS(0xf0000000, 1), 0xf8000000); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/shr-u.js b/implementation-contributed/javascriptcore/wasm/function-tests/shr-u.js deleted file mode 100644 index 05ab2730e3af332550a8e4ca3e0320bd485108d9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/shr-u.js +++ /dev/null @@ -1,32 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("i32ShrU") - .Function("i64ShrU") - .End() - .Code() - .Function("i32ShrU", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(0) - .GetLocal(1) - .I32ShrU() - .End() - - .Function("i64ShrU", { params: ["i64", "i64"], ret: "i64" }) - .GetLocal(0) - .GetLocal(1) - .I64ShrU() - .End() - - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); -assert.eqI32(instance.exports.i32ShrU(1, 1), 0); -assert.eqI32(instance.exports.i32ShrU(1, 2), 0); -assert.eqI32(instance.exports.i32ShrU(0xf, 2), 0x3); -assert.eqI32(instance.exports.i32ShrU(0xf0000000, 1), 0x78000000); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/stack-overflow.js b/implementation-contributed/javascriptcore/wasm/function-tests/stack-overflow.js deleted file mode 100644 index cfbb5eed4649a5ae45cb5e34b122342086fc076d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/stack-overflow.js +++ /dev/null @@ -1,221 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -{ - function makeInstance() { - const tableDescription = {initial: 1, element: "anyfunc"}; - const builder = new Builder() - .Type() - .Func(["i32"], "void") - .End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", 0 /*['i32'] => 'void'*/) - .GetLocal(0) // parameter to call - .GetLocal(0) // call index - .CallIndirect(0, 0) // calling function of type ['i32'] => 'i32' - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table(tableDescription); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; - } - - const {instance: i1, table: t1} = makeInstance(); - const {instance: i2, table: t2} = makeInstance(); - t2.set(0, i1.exports.foo); - t1.set(0, i2.exports.foo); - - function assertOverflows(instance) { - let stack; - try { - instance.exports.foo(0) - } catch(e) { - stack = e.stack; - } - stack = stack.split("\n"); - assert.truthy(stack.length > 50); - for (let i = 0; i < 50; ++i) { - let item = stack[stack.length - i - 1]; - assert.eq(item, '<?>.wasm-function[0]@[wasm code]'); - } - } - assertOverflows(i1); - assertOverflows(i2); - -} - -{ - function makeInstance() { - const tableDescription = {initial: 1, element: "anyfunc"}; - const builder = new Builder() - .Type() - .Func([], "void") - .End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params:["i32"], ret:"void"}) - .GetLocal(0) // parameter to call - .GetLocal(0) // call index - .CallIndirect(0, 0) // calling function of type [] => 'void' - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table(tableDescription); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; - } - - function makeInstance2(f) { - const builder = new Builder() - .Type() - .End() - .Import() - .Function("imp", "f", {params:['i32'], ret:"void"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: [], ret: "void" }) - .I32Const(0) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, {imp: {f}}); - } - - const {instance: i1, table: t1} = makeInstance(); - const foo = i1.exports.foo; - const i2 = makeInstance2(i1.exports.foo); - t1.set(0, i2.exports.foo); - - function assertThrows(instance) { - let stack; - try { - instance.exports.foo(); - } catch(e) { - stack = e.stack; - } - assert.truthy(stack); - - stack = stack.split("\n"); - assert.truthy(stack.length > 50); - const one = '<?>.wasm-function[1]@[wasm code]'; - const zero = '<?>.wasm-function[0]@[wasm code]'; - let currentIndex = (one === stack[stack.length - 1]) ? 1 : 0; - for (let i = 0; i < 50; ++i) { - let item = stack[stack.length - 1 - i]; - if (currentIndex === 1) { - assert.eq(item, one); - currentIndex = 0; - } else { - assert.eq(currentIndex, 0); - assert.eq(item, zero); - currentIndex = 1; - } - } - } - - for (let i = 0; i < 20; ++i) { - assertThrows(i2); - assertThrows(i1); - } - - for (let i = 0; i < 20; ++i) { - assertThrows(i1); - assertThrows(i2); - } -} - -{ - function test(numArgs) { - function makeSignature() { - let args = []; - for (let i = 0; i < numArgs; ++i) { - args.push("i32"); - } - return {params: args}; - } - function makeInstance(f) { - let builder = new Builder() - .Type() - .Func([], "void") - .End() - .Import() - .Function("imp", "f", makeSignature()) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params:[], ret:"void"}); - for (let i = 0; i < numArgs; ++i) { - builder = builder.I32Const(i); - } - - builder = builder.Call(0).Return().End().End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, {imp: {f}}); - } - - function f(...args) { - assert.eq(args.length, numArgs); - for (let i = 0; i < args.length; ++i) - assert.eq(args[i], i); - - instance.exports.foo(); - } - let instance = makeInstance(f); - - let stack; - try { - instance.exports.foo(); - } catch(e) { - stack = e.stack; - } - assert.truthy(stack.split("\n").length > 25); - } - - for (let i = 0; i < 70; ++i) { - let r = Math.random() * 1000 | 0; - test(r); - } - - test(20); - test(20); - test(1000); - test(2); - test(1); - test(0); - test(700); - test(433); - test(42); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/stack-trace.js b/implementation-contributed/javascriptcore/wasm/function-tests/stack-trace.js deleted file mode 100644 index 76e849d2e5988e4e1c372d49413150d5a158fd63..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/stack-trace.js +++ /dev/null @@ -1,53 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "f", { params: [], ret: "void" }) - .End() - .Function().End() - .Export().Function("entry").End() - .Code() - // idx 1 - .Function("entry", {params: []}) - .Call(3) - .End() - // idx 2 - .Function({params: []}) - .Call(4) - .End() - // idx 3 - .Function({params: []}) - .Call(2) - .End() - // idx 4 - .Function({params: []}) - .Call(0) - .End() - .End(); - -let stacktrace; -let imp = () => { - stacktrace = (new Error).stack; -} - - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -let instance = new WebAssembly.Instance(module, {imp: {f: imp}}); -assert.falsy(stacktrace); -for (let i = 0; i < 10000; ++i) { - instance.exports.entry(); - assert.truthy(stacktrace); - stacktrace = stacktrace.split("\n"); - assert.truthy(stacktrace[0].indexOf("imp") !== -1); // the arrow function import named "imp". - assert.eq(stacktrace[1], "wasm-stub@[wasm code]"); // the wasm->js stub - assert.eq(stacktrace[2], "<?>.wasm-function[4]@[wasm code]"); - assert.eq(stacktrace[3], "<?>.wasm-function[2]@[wasm code]"); - assert.eq(stacktrace[4], "<?>.wasm-function[3]@[wasm code]"); - assert.eq(stacktrace[5], "<?>.wasm-function[1]@[wasm code]"); - assert.eq(stacktrace[6], "wasm-stub@[wasm code]"); // wasm entry - - stacktrace = null; -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/struct.js b/implementation-contributed/javascriptcore/wasm/function-tests/struct.js deleted file mode 100644 index cc5e21fd954ce9f5ed4f2d0c49b578fc21996957..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/struct.js +++ /dev/null @@ -1,28 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - -builder.Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export() - .Function("callFunc") - .End() - .Code() - .Function("callFunc", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(0) - .If("void", b => { - return b.GetLocal(0) - .GetLocal(1) - .I32Load(0, 4) - .I32Sub() - .Return() - }) - .I32Const(42) - .Return() - .End() - .End(); -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/table-basic-2.js b/implementation-contributed/javascriptcore/wasm/function-tests/table-basic-2.js deleted file mode 100644 index 27361f4939b9c1131991646d07ef612c384c3c7a..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/table-basic-2.js +++ /dev/null @@ -1,57 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -function makeInstance(func) { - const builder = new Builder() - .Type() - .Func(["i32", "i32"], "i32") - .Func(["i32"], "i32") - .End() - .Import() - .Table("imp", "table", {initial: 20, element: "anyfunc"}) - .Function("imp", "func", { params: ["i32"], ret: "i32" }) - .End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", 0 /*['i32', 'i32'] => 'i32'*/) - .GetLocal(1) // parameter to call - .GetLocal(0) // call index - .CallIndirect(1, 0) // calling function of type ['i32'] => 'i32' - .Return() - .End() - .Function("bar", 1 /*['i32'] => 'i32'*/) - .GetLocal(0) - .Call(0) - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table({initial: 20, element: "anyfunc"}); - return {instance: new WebAssembly.Instance(module, {imp: {table, func}}), table}; -} - -{ - let i; - function func(x) { - if (x !== i) - throw new Error("Bad argument"); - return x + 44; - } - const {instance, table} = makeInstance(func); - const exports = instance.exports; - const foo = exports.foo; - table.set(0, exports.bar); - assert.eq(table.get(0), exports.bar); - - for (i = 0; i < 10000; i++) { - if (foo(0, i) !== i + 44) - throw new Error("Bad call indirect"); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/table-basic.js b/implementation-contributed/javascriptcore/wasm/function-tests/table-basic.js deleted file mode 100644 index 0ff3b4766423d372e5b9723dd2d7c83d8ff4284c..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/table-basic.js +++ /dev/null @@ -1,58 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -function makeInstance() { - const builder = new Builder() - .Type() - .Func(["i32", "i32"], "i32") - .Func(["i32"], "i32") - .End() - .Import() - .Table("imp", "table", {initial: 20, element: "anyfunc"}) - .End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", 0 /*['i32', 'i32'] => 'i32'*/) - .GetLocal(1) // parameter to call - .GetLocal(0) // call index - .CallIndirect(1, 0) // calling function of type ['i32'] => 'i32' - .Return() - .End() - .Function("bar", 1 /*['i32'] => 'i32'*/) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const table = new WebAssembly.Table({initial: 20, element: "anyfunc"}); - return {instance: new WebAssembly.Instance(module, {imp: {table}}), table}; -} - -{ - const {instance, table} = makeInstance(); - const exports = instance.exports; - const foo = exports.foo; - table.set(0, exports.bar); - assert.eq(table.get(0), exports.bar); - - for (let i = 0; i < 1000; i++) - assert.eq(foo(0, i), i + 42, "call_indirect"); -} - -{ - const {instance, table} = makeInstance(); - const foo = instance.exports.foo; - table.set(0, makeInstance().instance.exports.bar); // Cross instance function. - - for (let i = 0; i < 1000; i++) - assert.eq(foo(0, i), i + 42, "call_indirect"); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-after-cross-instance-call.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-after-cross-instance-call.js deleted file mode 100644 index 196334582a2a636668162775795f9cb085fa62a5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-after-cross-instance-call.js +++ /dev/null @@ -1,64 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const pageSize = 64 * 1024; -const numPages = 10; - -const builder = (new Builder()) - .Type().End() - .Import() - .Memory("a", "b", {initial: numPages}) - .Function("foo", "bar", { params: [], ret: "void" }) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .Call(0) - .GetLocal(0) - .I32Load(2, 0) - .Return() - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); - -let importObject = {a: {b: new WebAssembly.Memory({initial: numPages})}}; - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("a", "b", {initial: numPages}) - .End() - .Function().End() - .Export().Function("bar").End() - .Code() - .Function("bar", { params: [], ret: "void" }) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - - importObject.foo = new WebAssembly.Instance(module, {a: {b: new WebAssembly.Memory({initial: numPages})}}).exports -} - -let foo1 = new WebAssembly.Instance(module, importObject).exports.foo; -importObject.foo = { bar() { } }; -let foo2 = new WebAssembly.Instance(module, importObject).exports.foo; - - -function wasmFrameCountFromError(e) { - let stackFrames = e.stack.split("\n").filter((s) => s.indexOf("wasm-") !== -1); - return stackFrames.length; -} - -for (let i = 0; i < 1000; i++) { - const e1 = assert.throws(() => foo1(numPages * pageSize + 1), WebAssembly.RuntimeError, "Out of bounds memory access"); - assert.eq(wasmFrameCountFromError(e1), 2); - const e2 = assert.throws(() => foo2(numPages * pageSize + 1), WebAssembly.RuntimeError, "Out of bounds memory access"); - assert.eq(wasmFrameCountFromError(e2), 2); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-from-start-async.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-from-start-async.js deleted file mode 100644 index 83c7f8921a79fd06fedc7603983b6fd2a6aa6eec..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-from-start-async.js +++ /dev/null @@ -1,83 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const memoryInfo = { initial: 2 }; -const tableInfo = { element: "anyfunc", initial: 8 }; - -async function StartTrapsAsync() { - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryInfo) - .Table("imp", "table", tableInfo) - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Start("startMeUp").End() - .Element() - .Element({ offset: 4, functionIndices: [0, 1] }) - .End() - .Code() - .Function("startMeUp", { params: [] }) - .I32Const(0).I32Load(2, 0).I32Const(0xfeedface).I32Store(2, 0) - .I32Const(4).I32Load(2, 0).I32Const(0xc0fec0fe).I32Store(2, 0) // This will trap. - // This is unreachable: - .I32Const(42).Call(0) // Calls func(42). - .End() - .End() - .Data() - .Segment([0xef, 0xbe, 0xad, 0xde]).Offset(1024).End() - .End(); - - const memory = new WebAssembly.Memory(memoryInfo); - const buffer = new Uint32Array(memory.buffer); - - const table = new WebAssembly.Table(tableInfo); - - // The instance will use these as addresses for stores. - buffer[0] = 128; - buffer[1] = 0xc0defefe; // This is out of bounds. - - // This function shouldn't get called because the trap occurs before the call. - let value = 0; - const func = v => value = v; - - const module = new WebAssembly.Module(builder.WebAssembly().get()); - const imp = { imp: { memory, table, func } }; - - const promise = WebAssembly.instantiate(module, imp); - await assert.throwsAsync(promise, WebAssembly.RuntimeError, `Out of bounds memory access`); - - assert.eq(value, 0); - - for (let i = 0; i < buffer.length; ++i) { - switch (i) { - case 0: assert.eq(buffer[i], 128); break; // Initial ArrayBuffer store. - case 1: assert.eq(buffer[i], 0xc0defefe); break; // Initial ArrayBuffer store. - case 32: assert.eq(buffer[i], 0xfeedface); break; // First store from start function. - case 256: assert.eq(buffer[i], 0xdeadbeef); break; // Data segment. - default: assert.eq(buffer[i], 0); break; // The rest. - } - } - - for (let i = 0; i < table.length; ++i) { - switch (i) { - case 4: assert.isFunction(table.get(i)); break; - case 5: assert.isFunction(table.get(i)); break; - default: assert.eq(table.get(i), null); break; - } - } - - // Call the imported `func`. - table.get(4)(0xf00f); - assert.eq(value, 0xf00f); - value = 0; - - // Call the start function again on the instance. The instance is otherwise inaccessible! - buffer[32] = 0; // Reset the location which will be set by the first store. - assert.throws(() => table.get(5)(), WebAssembly.RuntimeError, `Out of bounds memory access`); - assert.eq(buffer[32], 0xfeedface); // The first store should still succeed. - assert.eq(value, 0); -} - -assert.asyncTest(StartTrapsAsync()); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-from-start.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-from-start.js deleted file mode 100644 index ea5a0ac716c04acd911c01547841df0cc9828bfa..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-from-start.js +++ /dev/null @@ -1,80 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const memoryInfo = { initial: 2 }; -const tableInfo = { element: "anyfunc", initial: 8 }; - -(function StartTraps() { - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryInfo) - .Table("imp", "table", tableInfo) - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Start("startMeUp").End() - .Element() - .Element({ offset: 4, functionIndices: [0, 1] }) - .End() - .Code() - .Function("startMeUp", { params: [] }) - .I32Const(0).I32Load(2, 0).I32Const(0xfeedface).I32Store(2, 0) - .I32Const(4).I32Load(2, 0).I32Const(0xc0fec0fe).I32Store(2, 0) // This will trap. - // This is unreachable: - .I32Const(42).Call(0) // Calls func(42). - .End() - .End() - .Data() - .Segment([0xef, 0xbe, 0xad, 0xde]).Offset(1024).End() - .End(); - - const memory = new WebAssembly.Memory(memoryInfo); - const buffer = new Uint32Array(memory.buffer); - - const table = new WebAssembly.Table(tableInfo); - - // The instance will use these as addresses for stores. - buffer[0] = 128; - buffer[1] = 0xc0defefe; // This is out of bounds. - - // This function shouldn't get called because the trap occurs before the call. - let value = 0; - const func = v => value = v; - - const module = new WebAssembly.Module(builder.WebAssembly().get()); - const imp = { imp: { memory, table, func } }; - - assert.throws(() => new WebAssembly.Instance(module, imp), WebAssembly.RuntimeError, `Out of bounds memory access`); - - assert.eq(value, 0); - - for (let i = 0; i < buffer.length; ++i) { - switch (i) { - case 0: assert.eq(buffer[i], 128); break; // Initial ArrayBuffer store. - case 1: assert.eq(buffer[i], 0xc0defefe); break; // Initial ArrayBuffer store. - case 32: assert.eq(buffer[i], 0xfeedface); break; // First store from start function. - case 256: assert.eq(buffer[i], 0xdeadbeef); break; // Data segment. - default: assert.eq(buffer[i], 0); break; // The rest. - } - } - - for (let i = 0; i < table.length; ++i) { - switch (i) { - case 4: assert.isFunction(table.get(i)); break; - case 5: assert.isFunction(table.get(i)); break; - default: assert.eq(table.get(i), null); break; - } - } - - // Call the imported `func`. - table.get(4)(0xf00f); - assert.eq(value, 0xf00f); - value = 0; - - // Call the start function again on the instance. The instance is otherwise inaccessible! - buffer[32] = 0; // Reset the location which will be set by the first store. - assert.throws(() => table.get(5)(), WebAssembly.RuntimeError, `Out of bounds memory access`); - assert.eq(buffer[32], 0xfeedface); // The first store should still succeed. - assert.eq(value, 0); -})(); diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-load-2.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-load-2.js deleted file mode 100644 index a6a8973a9bffbc09d2cf1cc2ab4376a1b789bbc7..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-load-2.js +++ /dev/null @@ -1,75 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const pageSize = 64 * 1024; -const numPages = 10; - -const builder = (new Builder()) - .Type().End() - .Import() - .Memory("a", "b", {initial: numPages}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Load(2, 0) - .Return() - .End() - .End(); - -function wasmFrameCountFromError(e) { - let stackFrames = e.stack.split("\n").filter((s) => s.indexOf("wasm-") !== -1); - return stackFrames.length; -} - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: numPages}) - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32", "i32"]}) - .GetLocal(0) - .I32Const(0) - .I32Eq() - .If("void", b => - b.GetLocal(1) - .GetLocal(1) - .I32Load(2, 0) - .Br(0) - .Else() - .GetLocal(0) - .Call(0) - .Br(0) - ) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const imp = { - imp: { - mem: new WebAssembly.Memory({initial: numPages}), - func: continuation - } - }; - const foo = new WebAssembly.Instance(module, imp).exports.foo; - const address = numPages*pageSize + 1; - function continuation(x) { - foo(x - 1, address); - } - - for (let i = 0; i < 5000; i++) { - const e = assert.throws(() => foo(5, address), WebAssembly.RuntimeError, "Out of bounds memory access (evaluating 'foo(x - 1, address)')"); - // There are 5 total calls, and each call does: - // JS entry, wasm entry, js call stub. - // The last call that traps just has JS entry and wasm entry. - assert.eq(wasmFrameCountFromError(e), 5 * 3 + 2); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-load.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-load.js deleted file mode 100644 index 7cf0e980aa5edf7a0e59a9e05abe3e7f7a8d3aa2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-load.js +++ /dev/null @@ -1,34 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const pageSize = 64 * 1024; -const numPages = 10; - -const builder = (new Builder()) - .Type().End() - .Import() - .Memory("a", "b", {initial: numPages}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Load(2, 0) - .Return() - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const foo = new WebAssembly.Instance(module, {a: {b: new WebAssembly.Memory({initial: numPages})}}).exports.foo; - -function wasmFrameCountFromError(e) { - let stackFrames = e.stack.split("\n").filter((s) => s.indexOf("wasm-") !== -1); - return stackFrames.length; -} - -for (let i = 0; i < 1000; i++) { - const e = assert.throws(() => foo(numPages * pageSize + 1), WebAssembly.RuntimeError, "Out of bounds memory access"); - assert.eq(wasmFrameCountFromError(e), 2); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-store-2.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-store-2.js deleted file mode 100644 index cc550d7774a78f5658d5eece279a23a479b8532d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-store-2.js +++ /dev/null @@ -1,50 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const pageSize = 64 * 1024; -const numPages = 10; - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "mem", {initial: numPages}) - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32", "i32"]}) - .GetLocal(0) - .I32Const(0) - .I32Eq() - .If("void", b => - b.GetLocal(1) - .GetLocal(0) - .I32Store(2, 0) - .Br(0) - .Else() - .GetLocal(0) - .Call(0) - .Br(0) - ) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const imp = { - imp: { - mem: new WebAssembly.Memory({initial: numPages}), - func: continuation - } - }; - const foo = new WebAssembly.Instance(module, imp).exports.foo; - const address = numPages*pageSize + 1; - function continuation(x) { - foo(x - 1, address); - } - - for (let i = 0; i < 5000; i++) - assert.throws(() => foo(6, address), WebAssembly.RuntimeError, "Out of bounds memory access"); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/trap-store.js b/implementation-contributed/javascriptcore/wasm/function-tests/trap-store.js deleted file mode 100644 index 365713a3058fa6dfddcf053922d31260f0e39fa2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/trap-store.js +++ /dev/null @@ -1,29 +0,0 @@ -import Builder from '../Builder.js' -import * as assert from '../assert.js' - -const pageSize = 64 * 1024; -const numPages = 10; - -{ - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("a", "b", {initial: numPages}) - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", {params: ["i32", "i32"]}) - .GetLocal(1) - .GetLocal(0) - .I32Store(2, 0) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const foo = new WebAssembly.Instance(module, {a: {b: new WebAssembly.Memory({initial: numPages})}}).exports.foo; - - for (let i = 0; i < 10000; i++) - assert.throws(() => foo(i, numPages * pageSize + 1), WebAssembly.RuntimeError, "Out of bounds memory access"); -} diff --git a/implementation-contributed/javascriptcore/wasm/function-tests/void-argument-type-should-be-a-validation-error.js b/implementation-contributed/javascriptcore/wasm/function-tests/void-argument-type-should-be-a-validation-error.js deleted file mode 100644 index 2178810a7817d97335e62f78b3fc517e3fe77e41..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/function-tests/void-argument-type-should-be-a-validation-error.js +++ /dev/null @@ -1,22 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -function getBinary(params) { - const builder = (new Builder()) - builder.Type().End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export() - .Function("callFunc") - .End() - .Code() - .Function("callFunc", { params, ret: "void" }) - .Return() - .End() - .End(); - return builder.WebAssembly().get(); -} - -assert.throws(() => new WebAssembly.Module(getBinary(["i32", "void"])), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 15: can't get 1th argument Type"); -assert.throws(() => new WebAssembly.Module(getBinary(["void"])), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 14: can't get 0th argument Type"); -assert.throws(() => new WebAssembly.Module(getBinary(["i32", "void", "i32"])), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 15: can't get 1th argument Type"); diff --git a/implementation-contributed/javascriptcore/wasm/fuzz/export-function.js b/implementation-contributed/javascriptcore/wasm/fuzz/export-function.js deleted file mode 100644 index e4e286d88f2332cdea815920ba67377fe091ea34..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/fuzz/export-function.js +++ /dev/null @@ -1,80 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const numRandomIterations = 128; - -// Generate wasm export functions of arity [0, max), using each valid -// WebAssembly type as parameters. Make sure this number is high enough to force -// non-register calls. -const maxArities = 64; - -// Calls a "check" function for each parameter received. -const paramExporter = (params, returnedParam, imports) => { - const ret = params.length ? params[returnedParam] : "void"; - let builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "checki32", { params: ["i32"] }) - .Function("imp", "checkf32", { params: ["f32"] }) - .Function("imp", "checkf64", { params: ["f64"] }) - .End() - .Function().End() - .Export() - .Function("func") - .End() - .Code() - .Function("func", { params: params, ret: ret }); - for (let i = 0; i < params.length; ++i) { - builder = builder.GetLocal(i); - switch (params[i]) { - case "i32": builder = builder.Call(0); break; - case "f32": builder = builder.Call(1); break; - case "f64": builder = builder.Call(2); break; - default: throw new Error(`Unexpected type`); - } - } - if (ret !== "void") - builder = builder.GetLocal(returnedParam); - builder = builder.Return().End().End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, { imp: imports }); -}; - -var buffer = new ArrayBuffer(8); -var viewi16 = new Int16Array(buffer); -var viewi32 = new Int32Array(buffer); -var viewf32 = new Float32Array(buffer); -var viewf64 = new Float64Array(buffer); -const random16 = () => (Math.random() * (1 + 0xffff)) | 0; -const setBuffer = () => { - for (let i = 0; i < 4; ++i) - viewi16[i] = random16(); -}; -const types = [ - { type: "i32", generate: () => { setBuffer(); return viewi32[0]; } }, - // i64 isn't supported. - { type: "f32", generate: () => { setBuffer(); return viewf32[0]; } }, - { type: "f64", generate: () => { setBuffer(); return viewf64[0]; } }, -]; - -for (let iteration = 0; iteration < numRandomIterations; ++iteration) { - const arity = (Math.random() * (maxArities + 1)) | 0; - let params = []; - let args = []; - for (let a = 0; a < arity; ++a) { - const type =( Math.random() * types.length) | 0; - params.push(types[type].type); - args.push(types[type].generate()); - } - let numChecked = 0; - const imports = { - checki32: v => assert.eq(v, args[numChecked++]), - checkf32: v => assert.eq(v, args[numChecked++]), - checkf64: v => assert.eq(v, args[numChecked++]), - }; - const returnedParam = (Math.random() * params.length) | 0; - const instance = paramExporter(params, returnedParam, imports); - const result = instance.exports.func(...args); - assert.eq(result, args.length ? args[returnedParam] : undefined); -} diff --git a/implementation-contributed/javascriptcore/wasm/fuzz/memory.js b/implementation-contributed/javascriptcore/wasm/fuzz/memory.js deleted file mode 100644 index c5db2e9f8722acc8b19857f98a7a2875eb692d8d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/fuzz/memory.js +++ /dev/null @@ -1,301 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -// FIXME: add the following: https://bugs.webkit.org/show_bug.cgi?id=171936 -// - add set() and shadow memory, this requires tracking when memory is shared -// - Support: empty, exported -// - Imported memory created through the JS API (both before and after instantiation, to cause recompilation) -// - recursive calls (randomly call other instance's exports, potentially exhausting stack) -// - Simplify code by allowing .Code().ExportFunction(...) in builder - -const tune = { - numRandomIterations: 64, - numRandomInvokes: 4, - maxInitial: 8, - maxMax: 8, - maxGrow: 8, - memoryGetCount: 1024, -}; - -const pageSize = 64 * 1024; // As determined by the WebAssembly specification. - -let logString = ""; -let log = what => logString += '\n' + what; - -let instances = []; - -const insert = (builder, importObject = undefined) => { - const location = (Math.random() * instances.length) | 0; - instances.splice(location, 0, new WebAssembly.Instance(new WebAssembly.Module(builder.WebAssembly().get()), importObject)); -} -const initialMaxObject = hasMax => { - const initial = (Math.random() * tune.maxInitial) | 0; - if (!hasMax) - return { initial: initial, max: undefined }; - const max = initial + ((Math.random() * tune.maxMax) | 0); - return { initial: initial, max: max }; -}; -const initialMaxObjectFrom = instance => { - const hasMax = instance.exports["max"] !== undefined; - const initial = (Math.random() * instance.exports.initial()) | 0; - if (!hasMax) - return { initial: initial }; - const max = Math.max(initial, instance.exports.max()) + ((Math.random() * tune.maxMax) | 0); - return { initial: initial, max: max }; -}; - -const action = { - '- delete': () => { - for (let count = 1 + (Math.random() * instances.length) | 0; instances.length && count; --count) { - const which = (Math.random() * instances.length) | 0; - log(` delete ${which} / ${instances.length}`); - instances.splice(which, 1); - } - }, - '^ invoke': () => { - if (!instances.length) { - log(` nothing to invoke`); - return; - } - for (let iterations = 0; iterations < tune.numRandomInvokes; ++iterations) { - const whichInstance = (Math.random() * instances.length) | 0; - const instance = instances[whichInstance]; - const whichExport = (Math.random() * Object.keys(instance.exports).length) | 0; - log(` instances[${whichInstance}].${Object.keys(instance.exports)[whichExport]}()`); - switch (Object.keys(instance.exports)[whichExport]) { - default: - throw new Error(`Implementation problem for key '${Object.keys(instance.exports)[whichExport]}'`); - case 'func': - assert.eq(instance.exports.func(), 42); - break; - case 'throws': { - let threw = false; - let address = 0; - if (instance.exports["current"]) { - // The instance has a memory. - const current = instance.exports.current(); - const max = instance.exports["max"] ? instance.exports.max() : (1 << 15); - address = pageSize * (current + ((Math.random() * (max - current)) | 0)); - } - // No memory in this instance. - try { instance.exports.throws(address); } - catch (e) { threw = true; } - assert.truthy(threw); - } break; - case 'get': { - const current = instance.exports.current(); - for (let access = tune.memoryGetCount; current && access; --access) { - const address = (Math.random() * (current * pageSize - 4)) | 0; - assert.eq(instance.exports.get(address), 0); - } - } break; - case 'current': - assert.le(instance.exports.initial(), instance.exports.current()); - break; - case 'initial': - assert.le(0, instance.exports.initial()); - break; - case 'max': - assert.le(instance.exports.initial(), instance.exports.max()); - assert.le(instance.exports.current(), instance.exports.max()); - break; - case 'memory': { - const current = instance.exports.current(); - const buffer = new Uint32Array(instance.exports.memory.buffer); - assert.eq(buffer.byteLength, current * pageSize); - for (let access = tune.memoryGetCount; current && access; --access) { - const address = (Math.random() * (current * pageSize - 4)) | 0; - assert.eq(instance.exports.get(address), 0); - } - } break; - case 'grow': { - const current = instance.exports.current(); - const by = (Math.random() * tune.maxGrow) | 0; - const hasMax = instance.exports["max"] !== undefined; - const result = instance.exports.grow(current + by); - log(` Grow from ${current} (max ${hasMax ? instance.exports.max() : "none"}) to ${current + by} returned ${result}, current now ${instance.exports.current()}`); - assert.le(current, instance.exports.current()); - if (result === -1) - assert.eq(current, instance.exports.current()); - if (hasMax) - assert.le(instance.exports.current(), instance.exports.max()); - } break; - } - } - }, - '+ memory: none': () => { - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export().Function("func").Function("throws").End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).Unreachable().Return().End() - .End(); - insert(builder); - }, - '+ memory: empty, section': () => { - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(0, 0).End() - .Export().Function("func").Function("throws").Function("current").Function("initial").Function("grow").Function("max").End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(0).Return().End() - .Function("max", { params: [], ret: "i32" }).I32Const(0).Return().End() - .End(); - insert(builder); - }, - '+ memory: section': () => { - const initialMax = initialMaxObject(false); - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(initialMax.initial, initialMax.max).End() - .Export().Function("func").Function("throws").Function("get").Function("current").Function("initial").Function("grow").End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(initialMax.initial).Return().End() - .End(); - insert(builder); - }, - '+ memory: section, max': () => { - const initialMax = initialMaxObject(true); - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(initialMax.initial, initialMax.max).End() - .Export().Function("func").Function("throws").Function("get").Function("current").Function("initial").Function("grow").Function("max").End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(initialMax.initial).Return().End() - .Function("max", { params: [], ret: "i32" }).I32Const(initialMax.max).Return().End() - .End(); - insert(builder); - }, - '+ memory: section, exported': () => { - const initialMax = initialMaxObject(false); - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(initialMax.initial, initialMax.max).End() - .Export() - .Function("func").Function("throws").Function("get").Function("current").Function("initial") - .Memory("memory", 0) - .End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(initialMax.initial).Return().End() - .End(); - insert(builder); - }, - '+ memory: section, exported, max': () => { - const initialMax = initialMaxObject(true); - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(initialMax.initial, initialMax.max).End() - .Export() - .Function("func").Function("throws").Function("get").Function("current").Function("initial").Function("grow").Function("max") - .Memory("memory", 0) - .End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(initialMax.initial).Return().End() - .Function("max", { params: [], ret: "i32" }).I32Const(initialMax.max).Return().End() - .End(); - insert(builder); - }, - '+ memory: imported, exported': () => { - let importFrom; - for (let idx = 0; idx < instances.length; ++idx) - if (instances[idx].exports.memory) { - importFrom = instances[idx]; - break; - } - if (!importFrom) - return; // No memory could be imported. - const initialMax = initialMaxObjectFrom(importFrom); - if (importFrom.exports["max"] === undefined) { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", initialMax).End() - .Function().End() - .Export() - .Function("func").Function("throws").Function("get").Function("current").Function("initial") - .Memory("memory", 0) - .End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(initialMax.initial).Return().End() - .End(); - insert(builder, { imp: { memory: importFrom.exports.memory } }); - } else { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", initialMax).End() - .Function().End() - .Export() - .Function("func").Function("throws").Function("get").Function("current").Function("initial").Function("grow").Function("max") - .Memory("memory", 0) - .End() - .Code() - .Function("func", { params: [], ret: "i32" }).I32Const(42).Return().End() - .Function("throws", { params: ["i32"] }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("get", { params: ["i32"], ret: "i32" }).GetLocal(0).I32Load(2, 0).Return().End() - .Function("current", { params: [], ret: "i32" }).CurrentMemory(0).Return().End() - .Function("grow", { params: ["i32"], ret: "i32" }).GetLocal(0).GrowMemory(0).Return().End() - .Function("initial", { params: [], ret: "i32" }).I32Const(initialMax.initial).Return().End() - .Function("max", { params: [], ret: "i32" }).I32Const(initialMax.max).Return().End() - .End(); - insert(builder, { imp: { memory: importFrom.exports.memory } }); - } - }, -}; -const numActions = Object.keys(action).length; -const performAction = () => { - const which = (Math.random() * numActions) | 0; - const key = Object.keys(action)[which]; - log(`${key}:`); - action[key](); -}; - -try { - for (let iteration = 0; iteration < tune.numRandomIterations; ++iteration) - performAction(); - log(`Finalizing:`); - // Finish by deleting the instances in a random order. - while (instances.length) - action["- delete"](); -} catch (e) { - // Ignore OOM while fuzzing. It can just happen. - if (e.message !== "Out of memory") { - print(`Failed: ${e}`); - print(logString); - throw e; - } -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/Instance.imports.exports.unicode.js b/implementation-contributed/javascriptcore/wasm/js-api/Instance.imports.exports.unicode.js deleted file mode 100644 index e86c209ecd4f22610c7f9096952b5dc85256425f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/Instance.imports.exports.unicode.js +++ /dev/null @@ -1,96 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -// Interesting Unicode corner cases. - -const names = [ - "", // Empty string. - "\u0000", // NUL - "â€", // SYMBOL FOR NUL - "\ufeff", // BYTE ORDER MARK - "\ufffc", // OBJECT REPLACEMENT CHARACTER - "�", // REPLACEMENT CHARACTER in case anything gets substituted this would be a duplicate, which WebAssembly disallows. - "\ufffe", // NONCHARACTER-FFFE - "\uffff", // NONCHARACTER-FFFF - "\u200e", // LEFT-TO-RIGHT MARK - "\u200f", // RIGHT-TO-LEFT MARK - "\u202a", // LEFT-TO-RIGHT EMBEDDING - "\u202b", // RIGHT-TO-LEFT EMBEDDING - "\u202d", // LEFT-TO-RIGHT OVERRIDE - "\u202e", // RIGHT-TO-LEFT OVERRIDE - "\u202c", // POP DIRECTIONAL FORMATTING - "🇨🇦", // REGIONAL INDICATOR SYMBOL LETTER C + REGIONAL INDICATOR SYMBOL LETTER A - "🈹", // PLAYING CARD BLACK JOKER - "👨â€â¤ï¸â€ðŸ’‹â€ðŸ‘¨", // Combine a bunch of emoji - - // Duplicate entries are invalid, so normalization would cause issues. We want to catch those issues. - "한글", - "한글", // Normalized version of the above. - "Ã…", // LATIN CAPITAL LETTER A WITH RING ABOVE - "â„«", // ANGSTROM SIGN - "AÌŠ", // LATIN CAPITAL LETTER A + COMBINING RING ABOVE - "AÌ€", // LATIN CAPITAL LETTER A + COMBINING GRAVE ACCENT - "À", // LATIN CAPITAL LETTER A WITH GRAVE - "ą̂́", // LATIN SMALL LETTER A WITH CIRCUMFLEX AND ACUTE + COMBINING OGONEK - "Ä…Ì‚Ì", // LATIN SMALL LETTER A WITH OGONEK + COMBINING CIRCUMFLEX ACCENT + COMBINING ACUTE ACCENT - "Q̣̀", // LATIN CAPITAL LETTER Q + COMBINING GRAVE ACCENT + COMBINING DOT BELOW - "Q̣̀", // LATIN CAPITAL LETTER + COMBINING DOT BELOW + COMBINING GRAVE ACCENT - - // Combine way too many things: - - - - "ĴͯĮ̸̛͙̙̱̯̺̖͔͎̣͓̬͉͓͙͔͈̥̖͎̀̂͆̓̂̑ͥͧͤ͋̔ͥaÌ€Í‚Í«Ì…Í¦Í¦ÌˆÌ„Ì‰Ì…Ì¾ÌŠÌ½Í‘ÌšÍ¬Ì›Ì·Í ÍŸÌ¤Ì»Ì¦Í“Í“Ì–ÌªÌŸÍ“v͆̿ͩ͗ͩ̀ͧ͂͆̾Ì͑ͦÍ̡͙͕̟͎̰̽ͦ̀͘a̧̻͖͓̗̻̩͌ͮ͗̈́͊̊̑̉̚̕SͪͧÌ͒̔̿̈ͫͥ̇ͦÌÍ̃ÍÌÍ̡͢Í͖̱͈͚͉̩̺͎cͫ̽ͤ̓̊̇͆̀ͫ͂̒Í̧̧͎̮̤̙̗̻̯͖̮̙̰̞ͬ̇͂̉͒ͫ̚͘͞ͅṙ̓͛̅̑̉ÌÍ‚Í£ÌÌÍ‹Ì̷͓̹͈̮̪͔͓̫̓̚ͅiÌͪͩ̚Ì̽ͣ̊ͮ͞ÍÌ´Í€ÌµÌ¯Ì¹Ì Í–ÍˆÌ ÍŽÌ¦pÌÌͯÍͧ͋̊̃̈̈͢ÍÍ™Ì̗̥̻̯̰͚̫t̓Ìͫ̀̋̓ÍÌ·ÍÍŽÌ»Ì©Ì Ì¬Ì™Ì¦Ì°Í“Ì©Ì—Ì̱̣", - - - - -]; - -// WebAssembly import objects have a two-level namespace with module and field. Both must be UTF-8. -let importObject = {}; -for (let idxModule = 0; idxModule < names.length; ++idxModule) { - assert.falsy(importObject.hasOwnProperty(names[idxModule])); - importObject[names[idxModule]] = {}; - for (let idxField = 0; idxField < names.length; ++idxField) { - assert.falsy(importObject[names[idxModule]].hasOwnProperty(names[idxField])); - importObject[names[idxModule]][names[idxField]] = () => 10000 * idxModule + idxField; - } -} - -let b = (new Builder()) - .Type().End(); - -b = b.Import(); -for (let idxModule = 0; idxModule < names.length; ++idxModule) - for (let idxField = 0; idxField < names.length; ++idxField) - b = b.Function(names[idxModule], names[idxField], { params: [], ret: "i32" }); -b = b.End(); - -b = b.Function().End(); - -b = b.Export(); -for (let idx = 0; idx < names.length; ++idx) - b = b.Function(names[idx]); -b = b.End(); - -b = b.Code(); -for (let idx = 0; idx < names.length; ++idx) - b = b.Function(names[idx], { params: [], ret: "i32" }).I32Const(idx).Return().End(); -b = b.End(); - -const module = new WebAssembly.Module(b.WebAssembly().get()); - -for (let idxModule = 0; idxModule < names.length; ++idxModule) - for (let idxField = 0; idxField < names.length; ++idxField) { - assert.eq(WebAssembly.Module.imports(module)[idxModule * names.length + idxField].module, names[idxModule]); - assert.eq(WebAssembly.Module.imports(module)[idxModule * names.length + idxField].name, names[idxField]); - } - -for (let idx = 0; idx < names.length; ++idx) - assert.eq(WebAssembly.Module.exports(module)[idx].name, names[idx]); - -const instance = new WebAssembly.Instance(module, importObject); - -for (let idx = 0; idx < names.length; ++idx) - assert.eq(instance.exports[names[idx]](), idx); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/Module-compile.js b/implementation-contributed/javascriptcore/wasm/js-api/Module-compile.js deleted file mode 100644 index d723bf4d70b49c49a1365fdc67b45242b38272e6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/Module-compile.js +++ /dev/null @@ -1,60 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -assert.isFunction(WebAssembly.compile); -assert.isFunction(WebAssembly.__proto__.compile); -assert.eq(WebAssembly.compile.length, 1); - -async function testPromiseAPI() { - { - // Can't declare more than one memory. - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .End(); - - try { - await WebAssembly.compile(builder.WebAssembly().get()); - } catch(e) { - assert.truthy(e instanceof WebAssembly.CompileError); - assert.truthy(e.message === "WebAssembly.Module doesn't parse at byte 34: there can at most be one Memory section for now"); - } - } - - { - try { - await WebAssembly.compile(); - } catch(e) { - assert.truthy(e instanceof TypeError); - assert.eq(e.message, "first argument must be an ArrayBufferView or an ArrayBuffer (evaluating 'WebAssembly.compile()')"); - } - } - - { - try { - await WebAssembly.compile(20); - } catch(e) { - assert.truthy(e instanceof TypeError); - assert.eq(e.message, "first argument must be an ArrayBufferView or an ArrayBuffer (evaluating 'WebAssembly.compile(20)')"); - } - } - - { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Export().End() - .Code() - .End(); - - let module = await WebAssembly.compile(builder.WebAssembly().get()); - assert.truthy(module instanceof WebAssembly.Module); - } -} - -assert.asyncTest(testPromiseAPI()); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/Module.customSection.js b/implementation-contributed/javascriptcore/wasm/js-api/Module.customSection.js deleted file mode 100644 index ccd1a724a9a2f146c6b26950395d4a7c856ea6a9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/Module.customSection.js +++ /dev/null @@ -1,77 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -assert.throws(() => WebAssembly.Module.customSections(undefined, ""), TypeError, `WebAssembly.Module.customSections called with non WebAssembly.Module argument`); -assert.eq(WebAssembly.Module.customSections.length, 2); - -{ - const empty = new WebAssembly.Module((new Builder()).WebAssembly().get()); - assert.isArray(WebAssembly.Module.customSections(empty, "")); - assert.eq(WebAssembly.Module.customSections(empty, "").length, 0); -} - -{ - const single = new WebAssembly.Module((new Builder()) - .Unknown("hello").Byte(0x00).Byte(0x42).Byte(0xFF).End() - .WebAssembly().get()); - assert.eq(WebAssembly.Module.customSections(single, "").length, 0); - const hello = WebAssembly.Module.customSections(single, "hello"); - assert.eq(hello.length, 1); - assert.eq(hello[0].byteLength, 3); - const helloI8 = new Int8Array(hello[0]); - assert.eq(helloI8[0], 0x00); - assert.eq(helloI8[1], 0x42); - assert.eq(helloI8[2], -1); -} - -{ - const unicode = new WebAssembly.Module((new Builder()) - .Unknown("👨â€â¤ï¸â€ðŸ’‹â€ðŸ‘¨").Byte(42).End() - .WebAssembly().get()); - const family = WebAssembly.Module.customSections(unicode, "👨â€â¤ï¸â€ðŸ’‹â€ðŸ‘¨"); - assert.eq(family.length, 1); - assert.eq(family[0].byteLength, 1); - const familyI8 = new Int8Array(family[0]); - assert.eq(familyI8[0], 42); -} - -{ - const many = new WebAssembly.Module((new Builder()) - .Unknown("zero").Byte(0).End() - .Unknown("one").Byte(1).Byte(1).End() - .Unknown("one").Byte(2).Byte(2).Byte(2).End() - .Unknown("two").Byte(3).Byte(3).Byte(3).Byte(3).End() - .Unknown("one").Byte(4).Byte(4).Byte(4).Byte(4).Byte(4).End() - .WebAssembly().get()); - - const zero = WebAssembly.Module.customSections(many, "zero"); - assert.eq(zero.length, 1); - assert.eq(zero[0].byteLength, 1); - const zeroI8 = new Int8Array(zero[0]); - assert.eq(zeroI8[0], 0); - - const two = WebAssembly.Module.customSections(many, "two"); - assert.eq(two.length, 1); - assert.eq(two[0].byteLength, 4); - const twoI8 = new Int8Array(two[0]); - assert.eq(twoI8[0], 3); - assert.eq(twoI8[1], 3); - assert.eq(twoI8[2], 3); - assert.eq(twoI8[3], 3); - - const one = WebAssembly.Module.customSections(many, "one"); - assert.eq(one.length, 3); - let seen = 0; - const expect = [ - [1, 1], - [2, 2, 2], - [4, 4, 4, 4, 4], - ]; - for (const section of one) { - assert.eq(section.byteLength, expect[seen].length); - const I8 = new Int8Array(section); - for (let i = 0; i < expect[seen].length; ++i) - assert.eq(I8[i], expect[seen][i]); - ++seen; - } -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/Module.exports.js b/implementation-contributed/javascriptcore/wasm/js-api/Module.exports.js deleted file mode 100644 index 76e3fd3fa5c0ea2c66c64db49564b3115e0af59d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/Module.exports.js +++ /dev/null @@ -1,43 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -assert.throws(() => WebAssembly.Module.exports(undefined), TypeError, `WebAssembly.Module.exports called with non WebAssembly.Module argument`); -assert.eq(WebAssembly.Module.exports.length, 1); - -{ - const m = new WebAssembly.Module((new Builder()).WebAssembly().get()); - assert.isArray(WebAssembly.Module.exports(m)); - assert.eq(WebAssembly.Module.exports(m).length, 0); - assert.truthy(WebAssembly.Module.exports(m) !== WebAssembly.Module.exports(m)); -} - -{ - const m = new WebAssembly.Module( - (new Builder()) - .Type().End() - .Function().End() - .Table() - .Table({initial: 20, maximum: 30, element: "anyfunc"}) - .End() - .Memory().InitialMaxPages(1, 1).End() - .Global().I32(42, "immutable").End() - .Export() - .Function("func") - .Table("tab", 0) - .Memory("mem", 0) - .Global("glob", 0) - .End() - .Code() - .Function("func", { params: [] }).Return().End() - .End() - .WebAssembly().get()); - assert.eq(WebAssembly.Module.exports(m).length, 4); - assert.eq(WebAssembly.Module.exports(m)[0].name, "func"); - assert.eq(WebAssembly.Module.exports(m)[0].kind, "function"); - assert.eq(WebAssembly.Module.exports(m)[1].name, "tab"); - assert.eq(WebAssembly.Module.exports(m)[1].kind, "table"); - assert.eq(WebAssembly.Module.exports(m)[2].name, "mem"); - assert.eq(WebAssembly.Module.exports(m)[2].kind, "memory"); - assert.eq(WebAssembly.Module.exports(m)[3].name, "glob"); - assert.eq(WebAssembly.Module.exports(m)[3].kind, "global"); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/Module.imports.js b/implementation-contributed/javascriptcore/wasm/js-api/Module.imports.js deleted file mode 100644 index 1fc2dd56b7a706ef9db7d40c1a42dc18d6bb4f33..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/Module.imports.js +++ /dev/null @@ -1,38 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -assert.throws(() => WebAssembly.Module.imports(undefined), TypeError, `WebAssembly.Module.imports called with non WebAssembly.Module argument`); -assert.eq(WebAssembly.Module.imports.length, 1); - -{ - const m = new WebAssembly.Module((new Builder()).WebAssembly().get()); - assert.isArray(WebAssembly.Module.imports(m)); - assert.eq(WebAssembly.Module.imports(m).length, 0); - assert.truthy(WebAssembly.Module.imports(m) !== WebAssembly.Module.imports(m)); -} - -{ - const m = new WebAssembly.Module( - (new Builder()) - .Type().End() - .Import() - .Function("fooFunction", "barFunction", { params: [] }) - .Table("fooTable", "barTable", {initial: 20, element: "anyfunc"}) - .Memory("fooMemory", "barMemory", {initial: 20}) - .Global().I32("fooGlobal", "barGlobal", "immutable").End() - .End() - .WebAssembly().get()); - assert.eq(WebAssembly.Module.imports(m).length, 4); - assert.eq(WebAssembly.Module.imports(m)[0].module, "fooFunction"); - assert.eq(WebAssembly.Module.imports(m)[0].name, "barFunction"); - assert.eq(WebAssembly.Module.imports(m)[0].kind, "function"); - assert.eq(WebAssembly.Module.imports(m)[1].module, "fooTable"); - assert.eq(WebAssembly.Module.imports(m)[1].name, "barTable"); - assert.eq(WebAssembly.Module.imports(m)[1].kind, "table"); - assert.eq(WebAssembly.Module.imports(m)[2].module, "fooMemory"); - assert.eq(WebAssembly.Module.imports(m)[2].name, "barMemory"); - assert.eq(WebAssembly.Module.imports(m)[2].kind, "memory"); - assert.eq(WebAssembly.Module.imports(m)[3].module, "fooGlobal"); - assert.eq(WebAssembly.Module.imports(m)[3].name, "barGlobal"); - assert.eq(WebAssembly.Module.imports(m)[3].kind, "global"); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/call-indirect.js b/implementation-contributed/javascriptcore/wasm/js-api/call-indirect.js deleted file mode 100644 index 01cd42f9b79a921b1bbaa5ab576fc0d910438328..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/call-indirect.js +++ /dev/null @@ -1,106 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const wasmModuleWhichImportJS = () => { - const builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "func", { params: ["i32"] }) - .Table("imp", "table", { initial: 1, maximum: 1, element: "anyfunc"}) - .End() - .Function().End() - .Export() - .Function("changeCounter") - .Function("callFunc") - .End() - .Code() - .Function("changeCounter", { params: ["i32", "i32"] }) - .I32Const(42) - .GetLocal(0) - .I32Add() - .GetLocal(1) - .CallIndirect(0, 0) // Calls table[0](param[0] + 42). - .End() - .Function("callFunc", { params: ["i32"] }) - .GetLocal(0) - .Call(0) // Calls func(param[0] + 42) - .End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return module; -}; - -const makeTable = () => { - return new WebAssembly.Table({initial: 1, maximum: 1, element: "anyfunc"}); -}; - -(function MonomorphicImport() { - let counter = 0; - const counterSetter = v => counter = v; - const table = makeTable(); - const module = wasmModuleWhichImportJS(); - const instance = new WebAssembly.Instance(module, { imp: { func: counterSetter, table} }); - table.set(0, instance.exports.callFunc); - for (let i = 0; i < 4096; ++i) { - // Invoke this a bunch of times to make sure the IC in the wasm -> JS stub works correctly. - instance.exports.changeCounter(i, 0); - assert.eq(counter, i + 42); - } -})(); - -(function Polyphic2Import() { - let counterA = 0; - let counterB = undefined; - const counterASetter = v => counterA = v; - const counterBSetter = v => counterB = { valueB: v }; - const module = wasmModuleWhichImportJS(); - - const tableA = makeTable(); - const instanceA = new WebAssembly.Instance(module, { imp: { func: counterASetter, table: tableA} }); - tableA.set(0, instanceA.exports.callFunc); - - const tableB = makeTable(); - const instanceB = new WebAssembly.Instance(module, { imp: { func: counterBSetter, table: tableB} }); - tableB.set(0, instanceB.exports.callFunc); - for (let i = 0; i < 2048; ++i) { - instanceA.exports.changeCounter(i, 0); - assert.isA(counterA, "number"); - assert.eq(counterA, i + 42); - instanceB.exports.changeCounter(i, 0); - assert.isA(counterB, "object"); - assert.eq(counterB.valueB, i + 42); - } -})(); - -(function VirtualImport() { - const counterSetters = [ - v => counters[0] = v, - v => counters[1] = v + 1, - v => counters[2] = v + 2, - v => counters[3] = v + 3, - v => counters[4] = v + 4, - v => counters[5] = v + 5, - v => counters[6] = v + 6, - v => counters[7] = v + 7, - v => counters[8] = v + 8, - v => counters[9] = v + 9, - ]; - const num = counterSetters.length; - let counters = counterSetters.map(() => 0); - assert.eq(counters.length, num); - const module = wasmModuleWhichImportJS(); - let instances = []; - for (let i = 0; i < num; ++i) { - let table = makeTable(); - instances[i] = new WebAssembly.Instance(module, { imp: { func: counterSetters[i], table} }); - table.set(0, instances[i].exports.callFunc); - } - for (let i = 0; i < 2048; ++i) { - for (let j = 0; j < num; ++j) { - instances[j].exports.changeCounter(i, 0); - assert.isA(counters[j], "number"); - assert.eq(counters[j], i + 42 + j); - } - } -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/dont-mmap-zero-byte-memory.js b/implementation-contributed/javascriptcore/wasm/js-api/dont-mmap-zero-byte-memory.js deleted file mode 100644 index c4ec097c2fbe5f96d5ebeba318c282ba2a654d5f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/dont-mmap-zero-byte-memory.js +++ /dev/null @@ -1,54 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -let mems = []; -function makeMem(initial) { - const desc = {initial}; - mems.push([desc, new WebAssembly.Memory(desc)]); -} -for (let i = 0; i < 100; ++i) { - makeMem(1); -} - -// This loop should not OOM! This tests a bug where we -// would call mmap with zero bytes if we ran out of -// fast memories but created a slow memory with zero -// initial page count. -for (let i = 0; i < 100; ++i) { - makeMem(0); -} - -function testMems() { - for (const [memDesc, mem] of mems) { - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memDesc) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(0) - .I32Load8U(0, 0) - .Return() - .End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const instance = new WebAssembly.Instance(module, {imp: {memory: mem}}); - if (mem.buffer.byteLength > 0) - assert.eq(instance.exports.foo(), 0); - else - assert.throws(() => instance.exports.foo(), WebAssembly.RuntimeError, "Out of bounds memory access"); - } -} - -testMems(); - -for (const [_, mem] of mems) - mem.grow(1); - -testMems(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/element-data.js b/implementation-contributed/javascriptcore/wasm/js-api/element-data.js deleted file mode 100644 index cb43f4f1ff4492a7be2f4ff6468f1f45af33f176..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/element-data.js +++ /dev/null @@ -1,47 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -const memSizeInPages = 1; -const pageSizeInBytes = 64 * 1024; -const memoryDescription = { initial: memSizeInPages, maximum: memSizeInPages }; - -(function ElementBeforeData() { - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryDescription) - .Table("imp", "table", {element: "anyfunc", initial: 19}) // unspecified maximum. - .End() - .Function().End() - .Element() - .Element({offset: 19, functionIndices: [0, 0, 0, 0, 0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End() - .Data() - .Segment([0xde, 0xad, 0xbe, 0xef]).Offset(0).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const table = new WebAssembly.Table({element: "anyfunc", initial: 19}); - const imports = { - imp: { - memory: memory, - table: table, - } - }; - assert.throws(() => new WebAssembly.Instance(module, imports), WebAssembly.LinkError, `Element is trying to set an out of bounds table index (evaluating 'new WebAssembly.Instance(module, imports)')`); - // On Element failure, the Data section shouldn't have executed. - const buffer = new Uint8Array(memory.buffer); - for (let idx = 0; idx < memSizeInPages * pageSizeInBytes; ++idx) { - const value = buffer[idx]; - assert.eq(value, 0x00); - } -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/element.js b/implementation-contributed/javascriptcore/wasm/js-api/element.js deleted file mode 100644 index fcbe2827f371663aa84fdf5c10100b8178177390..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/element.js +++ /dev/null @@ -1,219 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -{ - // Bad element section b/c no Table section/import. - const builder = new Builder() - .Type().End() - .Function().End() - .Element() - .Element({tableIndex: 0, offset: 0, functionIndices: [0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 24: Element section for Table 0 exceeds available Table 0"); -} - -{ - // Bad table index. - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({element: "anyfunc", initial: 20}) - .End() - .Element() - .Element({tableIndex: 1, offset: 0, functionIndices: [0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 30: Element section for Table 1 exceeds available Table 1"); -} - -{ - // Overflow table maximum size. - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({element: "anyfunc", initial: 20, maximum: 20}) - .End() - .Element() - .Element({offset: 19, functionIndices: [0, 0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - const module = new WebAssembly.Module(builder.WebAssembly().get()); - assert.throws(() => new WebAssembly.Instance(module), WebAssembly.LinkError, "Element is trying to set an out of bounds table index"); -} - -{ - // Overflow table maximum size. - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({element: "anyfunc", initial: 20, maximum: 20}) - .End() - .Element() - .Element({offset: 20, functionIndices: [0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - const module = new WebAssembly.Module(builder.WebAssembly().get()); - assert.throws(() => new WebAssembly.Instance(module), WebAssembly.LinkError, "Element is trying to set an out of bounds table index"); -} - -{ - // Overflow function index space. - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({element: "anyfunc", initial: 20, maximum: 20}) - .End() - .Element() - .Element({offset: 0, functionIndices: [0, 0, 1]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 38: Element section's 0th element's 2th index is 1 which exceeds the function index space size of 1 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"); -} - -{ - function badInstantiation(actualTable, errorType, msg) { - // Overflow function index space. - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {element: "anyfunc", initial: 19}) // unspecified maximum. - .End() - .Function().End() - .Element() - .Element({offset: 19, functionIndices: [0, 0, 0, 0, 0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - assert.throws(() => new WebAssembly.Instance(module, {imp: {table: actualTable}}), errorType, msg); - } - - for (let i = 19; i < 19 + 5; i++) { - const table = new WebAssembly.Table({element: "anyfunc", initial: i}); - badInstantiation(table, WebAssembly.LinkError, "Element is trying to set an out of bounds table index (evaluating 'new WebAssembly.Instance(module, {imp: {table: actualTable}})')"); - } -} - -{ - function makeModule() { - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {element: "anyfunc", initial: 19}) // unspecified maximum. - .Global().I32("imp", "global", "immutable").End() - .End() - .Function().End() - .Element() - .Element({offset: {op: "get_global", initValue: 0}, functionIndices: [0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - return new WebAssembly.Module(bin); - } - - function test(i) { - const table = new WebAssembly.Table({element: "anyfunc", initial: 19}); - const global = i; - const module = makeModule(); - const instance = new WebAssembly.Instance(module, {imp: {table, global}}); - for (let j = 0; j < 19; j++) { - if (j === i) - assert.eq(table.get(j)(i*2), i*2 + 42); - else - assert.throws(() => table.get(j)(i*2), TypeError, "table.get(j) is not a function. (In 'table.get(j)(i*2)', 'table.get(j)' is null)"); - } - } - for (let i = 0; i < 19; i++) - test(i); - - assert.throws(() => test(19), Error, "Element is trying to set an out of bounds table index"); -} - -{ - function badModule() { - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {element: "anyfunc", initial: 19}) // unspecified maximum. - .Global().F32("imp", "global", "immutable").End() - .End() - .Function().End() - .Element() - .Element({offset: {op: "get_global", initValue: 0}, functionIndices: [0]}) - .End() - .Code() - .Function("foo", {params: ["i32"], ret: "i32"}) - .GetLocal(0) - .I32Const(42) - .I32Add() - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - return new WebAssembly.Module(bin); - } - - assert.throws(() => badModule(), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 58: Element init_expr must produce an i32"); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/export-arity.js b/implementation-contributed/javascriptcore/wasm/js-api/export-arity.js deleted file mode 100644 index 41579532e67f9537caa83a97904c22900ba90601..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/export-arity.js +++ /dev/null @@ -1,65 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -// Generate wasm export functions of arity [0, max), and call each of these -// export functions from JS with [0, max) parameters, for each valid WebAssembly -// type. Make sure this number is high enough to force non-register calls. -const maxArities = 64; - -const paramExporter = (numParams, paramType, imports) => { - let builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "check", { params: [paramType] }) - .End() - .Function().End() - .Export() - .Function("func") - .End() - .Code() - .Function("func", { params: Array(numParams).fill(paramType) }); - for (let i = 0; i < numParams; ++i) - builder = builder.GetLocal(i).Call(0); // Call the import for each received parameter. - builder = builder.Return().End().End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return new WebAssembly.Instance(module, { imp: imports }); -}; - -const types = [ - { type: "i32", value: 42, defaultWhenArityMismatch: 0 }, - // i64 isn't supported. - { type: "f32", value: 32.0, defaultWhenArityMismatch: NaN }, - { type: "f64", value: 64.0, defaultWhenArityMismatch: NaN }, -]; - -for (let type of types) { - for (let wasmArity = 0; wasmArity < maxArities; ++wasmArity) { - let numParamsCallingWith = undefined; - let numChecked = 0; - const check = value => { - assert.isNumber(value); - if (numParamsCallingWith <= wasmArity) { - if (numChecked < numParamsCallingWith) - assert.eq(value, type.value); - else - assert.eq(value, type.defaultWhenArityMismatch); - } else { - if (numChecked < wasmArity) - assert.eq(value, type.value); - else - assert.eq(value, type.defaultWhenArityMismatch); - } - ++numChecked; - }; - const instance = paramExporter(wasmArity, type.type, { check: check }); - for (let callerArity = 0; callerArity < maxArities; ++callerArity) { - numParamsCallingWith = callerArity; - const params = Array(callerArity).fill(type.value); - const result = instance.exports.func(...params); - assert.isUndef(result); - assert.eq(numChecked, wasmArity); // check() should be called as many times as the wasm function's arity. - numChecked = 0; // Reset the check counter for each arity iteration. - } - } -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/export-void-is-undef.js b/implementation-contributed/javascriptcore/wasm/js-api/export-void-is-undef.js deleted file mode 100644 index f9c93acb9abd8bf3b313a812e93c5fd283153008..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/export-void-is-undef.js +++ /dev/null @@ -1,19 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -let builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("func") - .End() - .Code() - .Function("func", { params: [] }) - .Return() - .End() -.End(); -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); - -assert.isUndef(instance.exports.func()); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/extension-MemoryMode.js b/implementation-contributed/javascriptcore/wasm/js-api/extension-MemoryMode.js deleted file mode 100644 index 5608526bc2fa905203e274c42a6d6be2e161b443..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/extension-MemoryMode.js +++ /dev/null @@ -1,117 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -const iterations = 32; -const verbose = false; - -// This API isn't part of WebAssembly's official spec. It is use for testing within the shell. - -const version = 0x01; -const emptyModuleArray = Uint8Array.of(0x0, 0x61, 0x73, 0x6d, version, 0x00, 0x00, 0x00); - -assert.isFunction(WebAssemblyMemoryMode); - -const message = `WebAssemblyMemoryMode expects either a WebAssembly.Memory or WebAssembly.Instance`; -assert.throws(() => WebAssemblyMemoryMode(null), TypeError, message); -assert.throws(() => WebAssemblyMemoryMode(undefined), TypeError, message); -assert.throws(() => WebAssemblyMemoryMode(1), TypeError, message); -assert.throws(() => WebAssemblyMemoryMode(""), TypeError, message); -assert.throws(() => WebAssemblyMemoryMode({}), TypeError, message); -assert.throws(() => WebAssemblyMemoryMode(new WebAssembly.Module(emptyModuleArray)), TypeError, message); -assert.throws(() => WebAssemblyMemoryMode(new WebAssembly.Table({initial: 1, element: "anyfunc"})), TypeError, message); - -const validateMode = what => { - const mode = WebAssemblyMemoryMode(what); - if (verbose) - print(` ${mode}`); - switch (mode) { - case "Signaling": - break; - case "BoundsChecking": - break; - default: - throw new Error(`Unexpected WebAssembly.Memory mode '${mode}'`); - } - return what; -} - -const instantiate = builder => { - const bin = builder.WebAssembly(); - const module = new WebAssembly.Module(bin.get()); - return new WebAssembly.Instance(module); -}; - -(function testMemoryNoMax() { - if (verbose) - print(`testMemoryNoMax`); - let memories = []; - for (let i = 0; i != iterations; ++i) - memories.push(validateMode(new WebAssembly.Memory({ initial: i }))); - return memories; -})(); - -fullGC(); - -(function testMemory() { - if (verbose) - print(`testMemory`); - let memories = []; - for (let i = 0; i != iterations; ++i) - memories.push(validateMode(new WebAssembly.Memory({ initial: i, maximum: i }))); - return memories; -})(); - -fullGC(); - -(function testInstanceNoMemory() { - if (verbose) - print(`testInstanceNoMemory`); - let instances = []; - for (let i = 0; i != iterations; ++i) { - const builder = (new Builder()) - .Type().End() - .Function().End() - .Code().End(); - const instance = instantiate(builder); - // No-memory instances should never be Signaling: it would be wasteful. - assert.eq(WebAssemblyMemoryMode(instance), "BoundsChecking"); - if (verbose) - print(` ${WebAssemblyMemoryMode(instance)}`); - instances.push(instance); - } - return instances; -})(); - -fullGC(); - -(function testInstanceNoMax() { - if (verbose) - print(`testInstanceNoMax`); - let instances = []; - for (let i = 0; i != iterations; ++i) { - // Note: not exported! The internal API can still access. - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(i).End() - .Code().End(); - instances.push(validateMode(instantiate(builder))); - } -})(); - -fullGC(); - -(function testInstance() { - if (verbose) - print(`testInstance`); - let instances = []; - for (let i = 0; i != iterations; ++i) { - // Note: not exported! The internal API can still access. - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(i, i).End() - .Code().End(); - instances.push(validateMode(instantiate(builder))); - } -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/global-error.js b/implementation-contributed/javascriptcore/wasm/js-api/global-error.js deleted file mode 100644 index d3edf898e7d9fa07e470cfc32c6ab36f1731b513..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/global-error.js +++ /dev/null @@ -1,212 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -{ - // Test init from non-import. - const builder = new Builder(); - - builder.Type().End() - .Function().End() - .Global().GetGlobal("i32", 0, "immutable").End() - .Export() - .Function("getGlobal") - .Global("global", 1) - .End() - .Code() - - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(1) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - assert.throws(() => new WebAssembly.Module(bin.get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 26: get_global's index 0 exceeds the number of globals 0 (evaluating 'new WebAssembly.Module(bin.get())')"); -} - - -{ - // Test import mutable. - const builder = new Builder(); - - builder.Type().End() - .Import() - .Global().I32("imp", "global", "mutable").End() - .End() - .Function().End() - .Global().GetGlobal("i32", 0, "immutable").End() - .Export() - .Function("getGlobal") - .Global("global", 1) - .End() - .Code() - - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(1) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - assert.throws(() => new WebAssembly.Module(bin.get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 32: Mutable Globals aren't supported (evaluating 'new WebAssembly.Module(bin.get())')"); -} - -{ - // Test export mutable. - const builder = new Builder(); - - builder.Type().End() - .Function().End() - .Global().I32(0, "mutable").End() - .Export() - .Function("setGlobal") - .Global("global", 0) - .End() - .Code() - - .Function("setGlobal", { params: [], ret: "i32" }) - .GetGlobal(1) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - assert.throws(() => new WebAssembly.Module(bin.get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 51: 1th Export isn't immutable, named 'global' (evaluating 'new WebAssembly.Module(bin.get())')"); -} - -{ - // Test set immutable. - const builder = new Builder(); - - builder.Type().End() - .Function().End() - .Global().I32(0, "immutable").End() - .Export() - .Function("setGlobal") - .Global("global", 0) - .End() - .Code() - - .Function("setGlobal", { params: [], ret: "i32" }) - .I32Const(0) - .SetGlobal(0) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - assert.throws(() => new WebAssembly.Module(bin.get()), WebAssembly.CompileError, "WebAssembly.Module doesn't validate: set_global 0 is immutable, in function at index 0 (evaluating 'new WebAssembly.Module(bin.get())')"); -} - - -{ - // Test set non-existant global. - const builder = new Builder(); - - builder.Type().End() - .Function().End() - .Global().I32(0, "immutable").End() - .Export() - .Function("setGlobal") - .Global("global", 0) - .End() - .Code() - - .Function("setGlobal", { params: [], ret: "i32" }) - .I32Const(0) - .SetGlobal(1) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - assert.throws(() => new WebAssembly.Module(bin.get()), WebAssembly.CompileError, "WebAssembly.Module doesn't validate: set_global 1 of unknown global, limit is 1, in function at index 0 (evaluating 'new WebAssembly.Module(bin.get())')"); -} - - -{ - // Test set to incorrect type - const builder = new Builder(); - - builder.Type().End() - .Function().End() - .Global().F32(0, "mutable").End() - .Export() - .Function("setGlobal") - .End() - .Code() - - .Function("setGlobal", { params: [], ret: "i32" }) - .I32Const(0) - .SetGlobal(0) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - assert.throws(() => new WebAssembly.Module(bin.get()), WebAssembly.CompileError, "WebAssembly.Module doesn't validate: set_global 0 with type F32 with a variable of type I32, in function at index 0 (evaluating 'new WebAssembly.Module(bin.get())')"); -} - -for ( let imp of [undefined, null, {}, () => {}, "number", new Number(4)]) { - // Test import non-number. - const builder = new Builder(); - - builder.Type().End() - .Import() - .Global().I32("imp", "global", "immutable").End() - .End() - .Function().End() - .Global().GetGlobal("i32", 0, "immutable").End() - .Export() - .Function("getGlobal") - .Global("global", 1) - .End() - .Code() - - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(1) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - const module = new WebAssembly.Module(bin.get()); - assert.throws(() => new WebAssembly.Instance(module, { imp: { global: imp } }), WebAssembly.LinkError, "imported global imp:global must be a number (evaluating 'new WebAssembly.Instance(module, { imp: { global: imp } })')"); -} - -{ - const builder = new Builder() - .Type().End() - .Global().I64(0, "immutable").End() - .Export() - .Global("bigInt", 0) - .End(); - const module = new WebAssembly.Module(builder.WebAssembly().get()); - assert.throws(() => new WebAssembly.Instance(module), WebAssembly.LinkError, "exported global cannot be an i64 (evaluating 'new WebAssembly.Instance(module)')"); -} - -{ - const builder = new Builder() - .Type().End() - .Import() - .Global().I64("imp", "global", "immutable").End() - .End() - .Function().End() - .Global().GetGlobal("i64", 0, "immutable").End(); - const module = new WebAssembly.Module(builder.WebAssembly().get()); - assert.throws(() => new WebAssembly.Instance(module, { imp: { global: undefined } }), WebAssembly.LinkError, "imported global imp:global cannot be an i64 (evaluating 'new WebAssembly.Instance(module, { imp: { global: undefined } })')"); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/global-external-init-from-import.js b/implementation-contributed/javascriptcore/wasm/js-api/global-external-init-from-import.js deleted file mode 100644 index 41fc6fa252f36469ed20d33cb293d6425113291d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/global-external-init-from-import.js +++ /dev/null @@ -1,30 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = new Builder(); - -builder.Type().End() - .Import() - .Global().I32("imp", "global", "immutable").End() - .End() - .Function().End() - .Global().GetGlobal("i32", 0, "immutable").End() - .Export() - .Function("getGlobal") - .Global("global", 1) - .End() - .Code() - - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(1) - .End() - - .End() - -const bin = builder.WebAssembly(); -bin.trim(); - -const module = new WebAssembly.Module(bin.get()); -const instance = new WebAssembly.Instance(module, { imp: { global: 5 } }); -assert.eq(instance.exports.getGlobal(), 5); -assert.eq(instance.exports.global, 5); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/global-internal-init-from-import.js b/implementation-contributed/javascriptcore/wasm/js-api/global-internal-init-from-import.js deleted file mode 100644 index 91bf35ba7aedffaa7265d586de17623cdfdca07e..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/global-internal-init-from-import.js +++ /dev/null @@ -1,26 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = new Builder(); - -builder.Type().End() - .Import() - .Global().I32("imp", "global", "immutable").End() - .End() - .Function().End() - .Global().GetGlobal("i32", 0, "mutable").End() - .Export().Function("getGlobal").End() - .Code() - - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(1) - .End() - - .End() - -const bin = builder.WebAssembly(); -bin.trim(); - -const module = new WebAssembly.Module(bin.get()); -const instance = new WebAssembly.Instance(module, { imp: { global: 5 } }); -assert.eq(instance.exports.getGlobal(), 5); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/global-mutate.js b/implementation-contributed/javascriptcore/wasm/js-api/global-mutate.js deleted file mode 100644 index 06f7f2288d3f2ab611f5c1566f411e127690a1c5..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/global-mutate.js +++ /dev/null @@ -1,39 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -function createInternalGlobalModule() { - const builder = new Builder(); - - builder.Type().End() - .Function().End() - .Global().I32(5, "mutable").End() - .Export() - .Function("getGlobal") - .Function("setGlobal") - .End() - .Code() - - // GetGlobal - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(0) - .End() - - // SetGlobal - .Function("setGlobal", { params: ["i32"] }) - .GetLocal(0) - .SetGlobal(0) - .End() - - .End() - - const bin = builder.WebAssembly(); - bin.trim(); - - const module = new WebAssembly.Module(bin.get()); - const instance = new WebAssembly.Instance(module); - assert.eq(instance.exports.getGlobal(), 5); - instance.exports.setGlobal(3); - assert.eq(instance.exports.getGlobal(), 3); -} - -createInternalGlobalModule(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/globals-export.js b/implementation-contributed/javascriptcore/wasm/js-api/globals-export.js deleted file mode 100644 index 66682694eb60e91e0708a9838782cb7d9305edf8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/globals-export.js +++ /dev/null @@ -1,28 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = new Builder(); - -builder.Type().End() - .Import() - .Global().I32("imp", "global", "immutable").End() - .End() - .Function().End() - .Export() - .Function("getGlobal") - .Global("global", 0) - .End() - .Code() - - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(0) - .End() - - .End() - -const bin = builder.WebAssembly(); -bin.trim(); - -const module = new WebAssembly.Module(bin.get()); -const instance = new WebAssembly.Instance(module, { imp: { global: 5 } }); -assert.eq(instance.exports.global, 5); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/globals-import.js b/implementation-contributed/javascriptcore/wasm/js-api/globals-import.js deleted file mode 100644 index 29223234475aa928af7c9c965e4bb4ca9156ee2f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/globals-import.js +++ /dev/null @@ -1,29 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = new Builder(); - -builder.Type().End() - .Import() - .Global().I32("imp", "global", "immutable").End() - .End() - .Function().End() - .Global().I32(5, "mutable").End() - .Export() - .Function("getGlobal") - .End() - .Code() - - // GetGlobal - .Function("getGlobal", { params: [], ret: "i32" }) - .GetGlobal(0) - .End() - - .End() - -const bin = builder.WebAssembly(); -bin.trim(); - -const module = new WebAssembly.Module(bin.get()); -const instance = new WebAssembly.Instance(module, { imp: { global: 5 } }); -assert.eq(instance.exports.getGlobal(), 5); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/memory-grow.js b/implementation-contributed/javascriptcore/wasm/js-api/memory-grow.js deleted file mode 100644 index 0f8fc96a38b37a6f11f9578c0ea93a9efe4177af..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/memory-grow.js +++ /dev/null @@ -1,51 +0,0 @@ -import { eq as assertEq, throws as assertThrows } from "../assert.js"; -const pageSize = 64*1024; - -let buffers = []; -for (let i = 0; i < 100; i++) { - const max = 5; - let pageCount = 1; - let x = new WebAssembly.Memory({initial: 1, maximum: max}); - for (let i = 0; i < (max - 1); i++) { - let int8Array = new Uint8Array(x.buffer); - - for (let i = 0; i < pageSize; i++) { - assertEq(int8Array[pageSize*(pageCount - 1) + i], 0); - int8Array[pageSize*(pageCount - 1) + i] = pageCount; - } - - for (let i = 0; i < pageCount; i++) { - for (let j = 0; j < pageSize; j++) { - assertEq(int8Array[i * pageSize + j], i + 1); - } - } - - let buffer = x.buffer; - assertEq(buffer.byteLength, pageCount * pageSize); - buffers.push(buffer); - let previousPageSize = x.grow(1); - assertEq(buffer.byteLength, 0); - assertEq(previousPageSize, pageCount); - ++pageCount; - } -} - -for (let buffer of buffers) { - assertEq(buffer.byteLength, 0); -} - -{ - const memory = new WebAssembly.Memory({initial: 1, maximum: 5}); - let buffer = memory.buffer; - assertEq(buffer.byteLength, 1*64*1024); - memory.grow(1); - assertEq(buffer.byteLength, 0); - - buffer = memory.buffer; - assertEq(buffer.byteLength, 2*64*1024); - - // This shouldn't neuter the buffer since it fails. - assertThrows(() => memory.grow(1000), RangeError, "WebAssembly.Memory.grow would exceed the memory's declared maximum size"); - assertEq(buffer.byteLength, 2*64*1024); - assertEq(memory.buffer, buffer); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/table.js b/implementation-contributed/javascriptcore/wasm/js-api/table.js deleted file mode 100644 index cf68b440495f6be6f8b27947712456d7ca7c8c6f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/table.js +++ /dev/null @@ -1,322 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -{ - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {initial: 20, element: "anyfunc"}) - .End() - .Function().End() - .Table() - .Table({initial: 20, maximum: 30, element: "anyfunc"}) - .End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 34: Cannot have more than one Table for now"); -} - -{ - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - // Table count is zero. - .End() - .Code() - .End(); - new WebAssembly.Module(builder.WebAssembly().get()); -} - -{ - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({initial: 20, maximum: 30, element: "anyfunc"}) - .Table({initial: 20, maximum: 30, element: "anyfunc"}) - .End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 17: Table count of 2 is invalid, at most 1 is allowed for now (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"); -} - -{ - const builder = new Builder() - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: ["i32"]}) - .GetLocal(0) - .CallIndirect(0, 0) - .End() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 4: call_indirect is only valid when a table is defined or imported, in function at index 0 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"); -} - -{ - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({initial:20, element:"anyfunc"}) - .End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", {params: ["i32"]}) - .GetLocal(0) - .CallIndirect(0, 1) - .End() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 6: call_indirect's 'reserved' varuint1 must be 0x0, in function at index 0 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"); -} - -{ - // Can't export an undefined table - const builder = new Builder() - .Type().End() - .Function().End() - .Export() - .Table("foo", 0) - .End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 23: can't export Table 0 there are 0 Tables"); -} - -{ - // Can't export a table at index 1. - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({initial: 20, maximum: 30, element: "anyfunc"}) - .End() - .Export() - .Table("foo", 1) - .End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 30: can't export Table 1 there are 1 Tables"); -} - -function assertBadTable(tableDescription, message) { - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table(tableDescription) - .End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, message); -} - -function assertBadTableImport(tableDescription, message) { - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, message); -} - -{ - let badDescriptions = [ - [{initial: 10, element: "i32"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -1 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -1 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, element: "f32"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -3 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -3 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, element: "f64"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -4 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -4 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, element: "i64"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -2 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -2 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, maximum: 20, element: "i32"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -1 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -1 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, maximum: 20, element: "f32"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -3 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -3 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, maximum: 20, element: "f64"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -4 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -4 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 10, maximum: 20, element: "i64"}, - "WebAssembly.Module doesn't parse at byte 18: Table type should be anyfunc, got -2 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 26: Table type should be anyfunc, got -2 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - - [{initial: 10, maximum: 9, element: "anyfunc"}, - "WebAssembly.Module doesn't parse at byte 21: resizable limits has a initial page count of 10 which is greater than its maximum 9 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 29: resizable limits has a initial page count of 10 which is greater than its maximum 9 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 1, maximum: 0, element: "anyfunc"}, - "WebAssembly.Module doesn't parse at byte 21: resizable limits has a initial page count of 1 which is greater than its maximum 0 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 29: resizable limits has a initial page count of 1 which is greater than its maximum 0 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 2**32 - 1, maximum: 2**32 - 2, element: "anyfunc"}, - "WebAssembly.Module doesn't parse at byte 29: resizable limits has a initial page count of 4294967295 which is greater than its maximum 4294967294 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 37: resizable limits has a initial page count of 4294967295 which is greater than its maximum 4294967294 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - [{initial: 2**31, element: "anyfunc"}, - "WebAssembly.Module doesn't parse at byte 24: Table's initial page count of 2147483648 is too big, maximum 10000000 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')", - "WebAssembly.Module doesn't parse at byte 32: Table's initial page count of 2147483648 is too big, maximum 10000000 (evaluating 'new WebAssembly.Module(builder.WebAssembly().get())')"], - ]; - - for (const d of badDescriptions) { - assertBadTable(d[0], d[1]); - assertBadTableImport(d[0], d[2]); - } -} - -{ - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {initial: 20, element: "anyfunc"}) - .Table("imp", "table", {initial: 20, element: "anyfunc"}) - .End() - .Function().End() - .Code() - .End(); - assert.throws(() => new WebAssembly.Module(builder.WebAssembly().get()), WebAssembly.CompileError, "WebAssembly.Module doesn't parse at byte 39: Cannot have more than one Table for now"); -} - - -{ - function assertBadTableInstance(tableDescription, table, message) { - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", tableDescription) - .End() - .Function().End() - .Code() - .End(); - const module = new WebAssembly.Module(builder.WebAssembly().get()); - assert.throws(() => new WebAssembly.Instance(module, {imp: {table}}), WebAssembly.LinkError, message); - } - - const badTables = [ - [{initial: 100, maximum:100, element:"anyfunc"}, new WebAssembly.Table({initial:100, element: "anyfunc"}), "Table import imp:table does not have a 'maximum' but the module requires that it does (evaluating 'new WebAssembly.Instance(module, {imp: {table}})')"], - [{initial: 100, maximum:100, element:"anyfunc"}, new WebAssembly.Table({initial:100, maximum:101, element: "anyfunc"}), "Imported Table imp:table 'maximum' is larger than the module's expected 'maximum' (evaluating 'new WebAssembly.Instance(module, {imp: {table}})')"], - [{initial: 100, element:"anyfunc"}, new WebAssembly.Table({initial:10, element: "anyfunc"}), "Table import imp:table provided an 'initial' that is too small (evaluating 'new WebAssembly.Instance(module, {imp: {table}})')"], - [{initial: 10, element:"anyfunc"}, new WebAssembly.Table({initial:9, element: "anyfunc"}), "Table import imp:table provided an 'initial' that is too small (evaluating 'new WebAssembly.Instance(module, {imp: {table}})')"], - ]; - for (const [d, t, m] of badTables) { - assertBadTableInstance(d, t, m); - } -} - -assert.throws(() => WebAssembly.Table.prototype.grow(undefined), TypeError, `expected |this| value to be an instance of WebAssembly.Table`); - -{ - { - const table = new WebAssembly.Table({element: "anyfunc", initial: 20, maximum: 30}); - assert.eq(20, table.grow(0)); - assert.eq(20, table.length); - assert.eq(20, table.grow(1)); - assert.eq(21, table.length); - } - - { - const table = new WebAssembly.Table({element: "anyfunc", initial: 20, maximum: 30}); - assert.eq(20, table.grow(10)); - assert.eq(30, table.grow(0)); - assert.throws(() => table.grow(1), RangeError, "WebAssembly.Table.prototype.grow could not grow the table"); - } - - { - const table = new WebAssembly.Table({element: "anyfunc", initial: 20}); - let called = false; - table.grow({valueOf() { called = true; return 42; }}); - assert.truthy(called); - assert.eq(62, table.length); - } - - { - const table = new WebAssembly.Table({element: "anyfunc", initial: 20}); - assert.throws(() => table.get(20), RangeError, "WebAssembly.Table.prototype.get expects an integer less than the length of the table"); - for (let i = 0; i < 20; i++) - assert.eq(table.get(i), null); - } - - { - const table = new WebAssembly.Table({element: "anyfunc", initial: 20}); - assert.throws(() => table.set(20, null), RangeError, "WebAssembly.Table.prototype.set expects an integer less than the length of the table"); - for (let i = 0; i < 20; i++) - table.set(i, null); - } - - { - // This should not throw - new WebAssembly.Table({initial: 2**20, maximum: 2**32 - 1, element: "anyfunc"}); - } -} - -{ - - function assertBadTable(table) { - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {initial: 25, element: "anyfunc"}) - .End() - .Function().End() - .Code() - .End(); - const module = new WebAssembly.Module(builder.WebAssembly().get()); - assert.throws(() => new WebAssembly.Instance(module, {imp: {table}}), WebAssembly.LinkError, "Table import imp:table is not an instance of WebAssembly.Table (evaluating 'new WebAssembly.Instance(module, {imp: {table}})')"); - } - assertBadTable(25); - assertBadTable(new Object); - assertBadTable([]); - assertBadTable(new WebAssembly.Memory({initial:1})); -} - -{ - const builder = new Builder() - .Type().End() - .Import() - .Table("imp", "table", {initial: 25, element: "anyfunc"}) - .End() - .Function().End() - .Export() - .Table("table", 0) - .Table("table2", 0) - .End() - .Code().End(); - - const module = new WebAssembly.Module(builder.WebAssembly().get()); - const table = new WebAssembly.Table({element: "anyfunc", initial: 25}); - const instance = new WebAssembly.Instance(module, {imp: {table}}); - assert.truthy(table === instance.exports.table); - assert.truthy(table === instance.exports.table2); -} - -{ - const builder = new Builder() - .Type().End() - .Function().End() - .Table() - .Table({initial: 20, maximum: 30, element: "anyfunc"}) - .End() - .Export() - .Table("table", 0) - .Table("table2", 0) - .End() - .Code().End(); - - const module = new WebAssembly.Module(builder.WebAssembly().get()); - const instance = new WebAssembly.Instance(module); - assert.eq(instance.exports.table, instance.exports.table2); - assert.eq(instance.exports.table.length, 20); - assert.truthy(instance.exports.table instanceof WebAssembly.Table); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_Data.js b/implementation-contributed/javascriptcore/wasm/js-api/test_Data.js deleted file mode 100644 index 4171435128a084d5949d8ff2b8b12570b7f23375..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_Data.js +++ /dev/null @@ -1,180 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const memSizeInPages = 1; -const pageSizeInBytes = 64 * 1024; -const memoryDescription = { initial: memSizeInPages, maximum: memSizeInPages }; -const emptyMemory = { initial: 0, maximum: 2 }; - -// FIXME Some corner cases are ill-specified: https://github.com/WebAssembly/design/issues/897 - -const assertMemoryAllZero = memory => { - const buffer = new Uint8Array(memory.buffer); - for (let idx = 0; idx < buffer.length; ++idx) { - const value = buffer[idx]; - assert.eq(value, 0x00); - } -}; - -(function DataSection() { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Data() - .Segment([0xff, 0x2a]).Offset(4).End() - .Segment([0xde, 0xad, 0xbe, 0xef]).Offset(24).End() - .Segment([0xca, 0xfe]).Offset(25).End() // Overwrite. - .Segment([]).Offset(4).End() // Empty. - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, { imp: { memory: memory } }); - const buffer = new Uint8Array(memory.buffer); - for (let idx = 0; idx < memSizeInPages * pageSizeInBytes; ++idx) { - const value = buffer[idx]; - switch (idx) { - case 4: assert.eq(value, 0xff); break; - case 5: assert.eq(value, 0x2a); break; - case 24: assert.eq(value, 0xde); break; - case 25: assert.eq(value, 0xca); break; - case 26: assert.eq(value, 0xfe); break; - case 27: assert.eq(value, 0xef); break; - default: assert.eq(value, 0x00); break; - } - } -})(); - -(function DataSectionWithoutMemory() { - const builder = (new Builder()) - .Type().End() - .Data() - .Segment([0xff]).Offset(0).End() - .End(); - const bin = builder.WebAssembly().get(); - assert.throws(() => new WebAssembly.Module(bin), WebAssembly.CompileError, `WebAssembly.Module doesn't parse at byte 15: 0th Data segment has index 0 which exceeds the number of Memories 0`); -})(); - -(function EmptyDataSectionWithoutMemory() { - const builder = (new Builder()) - .Type().End() - .Data() - .Segment([]).Offset(0).End() - .End(); - const bin = builder.WebAssembly().get(); - assert.throws(() => new WebAssembly.Module(bin), WebAssembly.CompileError, `WebAssembly.Module doesn't parse at byte 15: 0th Data segment has index 0 which exceeds the number of Memories 0`); -})(); - -(function DataSectionBiggerThanMemory() { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Data() - .Segment(Array(memSizeInPages * pageSizeInBytes + 1).fill(0xff)).Offset(0).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - assert.throws(() => new WebAssembly.Instance(module, { imp: { memory: memory } }), WebAssembly.LinkError, `Invalid data segment initialization: segment of 65537 bytes memory of 65536 bytes, at offset 0, segment is too big (evaluating 'new WebAssembly.Instance(module, { imp: { memory: memory } })')`); - assertMemoryAllZero(memory); -})(); - -(function DataSectionOffTheEnd() { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Data() - .Segment([0xff]).Offset(memSizeInPages * pageSizeInBytes).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - assert.throws(() => new WebAssembly.Instance(module, { imp: { memory: memory } }), WebAssembly.LinkError, `Invalid data segment initialization: segment of 1 bytes memory of 65536 bytes, at offset 65536, segment writes outside of memory (evaluating 'new WebAssembly.Instance(module, { imp: { memory: memory } })')`); - assertMemoryAllZero(memory); -})(); - -(function DataSectionPartlyOffTheEnd() { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Data() - .Segment([0xff, 0xff]).Offset(memSizeInPages * pageSizeInBytes - 1).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - assert.throws(() => new WebAssembly.Instance(module, { imp: { memory: memory } }), WebAssembly.LinkError, `Invalid data segment initialization: segment of 2 bytes memory of 65536 bytes, at offset 65535, segment writes outside of memory (evaluating 'new WebAssembly.Instance(module, { imp: { memory: memory } })')`); - assertMemoryAllZero(memory); -})(); - -(function DataSectionEmptyOffTheEnd() { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Data() - .Segment([]).Offset(memSizeInPages * pageSizeInBytes).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, { imp: { memory: memory } }); - assertMemoryAllZero(memory); -})(); - -(function DataSectionEmptyOffTheEndWithEmptyMemory() { - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", emptyMemory).End() - .Data() - .Segment([]).Offset(memSizeInPages * pageSizeInBytes).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(emptyMemory); - assert.throws(() => new WebAssembly.Instance(module, { imp: { memory: memory } }), WebAssembly.LinkError, `Invalid data segment initialization: segment of 0 bytes memory of 0 bytes, at offset 65536, segment writes outside of memory`); - assertMemoryAllZero(memory); -})(); - -(function DataSectionSeenByStart() { - const offset = 1024; - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", memoryDescription) - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Start("foo").End() - .Code() - .Function("foo", { params: [] }) - .I32Const(offset) - .I32Load8U(0, 0) - .Call(0) // Calls func((i8.load(offset), align=2, offset=0). This should observe 0xff as set by the data section. - .End() - .End() - .Data() - .Segment([0xff]).Offset(offset).End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - let value = 0; - const setter = v => value = v; - const instance = new WebAssembly.Instance( - module, - { - imp: { - memory: memory, - func: setter - } - }); - assert.eq(value, 0xff); - const buffer = new Uint8Array(memory.buffer); - for (let idx = 0; idx < memSizeInPages * pageSizeInBytes; ++idx) { - const value = buffer[idx]; - if (idx == offset) - assert.eq(value, 0xff); - else - assert.eq(value, 0x00); - } -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_Instance.js b/implementation-contributed/javascriptcore/wasm/js-api/test_Instance.js deleted file mode 100644 index 8d63be82852559aa68a3c1aa56712169fca66eee..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_Instance.js +++ /dev/null @@ -1,162 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -(function EmptyModule() { - const builder = new Builder(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const instance = new WebAssembly.Instance(module); - assert.instanceof(instance, WebAssembly.Instance); -})(); - -(function ExportedAnswerI32() { - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("answer") - .End() - .Code() - .Function("answer", { params: [], ret: "i32" }) - .I32Const(42) - .Return() - .End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const instance = new WebAssembly.Instance(module); - const result = instance.exports.answer(); - assert.isA(result, "number"); - assert.eq(result, 42); -})(); - -(function ExportedNumber() { - for (let i = 0; i <= 129; ++i) { - const name = i.toString(); - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function(name) - .End() - .Code() - .Function(name, { params: [], ret: "i32" }) - .I32Const(i) - .Return() - .End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const instance = new WebAssembly.Instance(module); - const result = instance.exports[name](); - assert.isA(result, "number"); - assert.eq(result, i); - } -})(); - -const wasmModuleWhichImportJS = () => { - const builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Export() - .Function("changeCounter") - .End() - .Code() - .Function("changeCounter", { params: ["i32"] }) - .I32Const(42) - .GetLocal(0) - .I32Add() - .Call(0) // Calls func(param[0] + 42). - .End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - return module; -}; - -(function MonomorphicImport() { - let counter = 0; - const counterSetter = v => counter = v; - const module = wasmModuleWhichImportJS(); - const instance = new WebAssembly.Instance(module, { imp: { func: counterSetter } }); - for (let i = 0; i < 4096; ++i) { - // Invoke this a bunch of times to make sure the IC in the wasm -> JS stub works correctly. - instance.exports.changeCounter(i); - assert.eq(counter, i + 42); - } -})(); - -(function Polyphic2Import() { - let counterA = 0; - let counterB = undefined; - const counterASetter = v => counterA = v; - const counterBSetter = v => counterB = { valueB: v }; - const module = wasmModuleWhichImportJS(); - const instanceA = new WebAssembly.Instance(module, { imp: { func: counterASetter } }); - const instanceB = new WebAssembly.Instance(module, { imp: { func: counterBSetter } }); - for (let i = 0; i < 2048; ++i) { - instanceA.exports.changeCounter(i); - assert.isA(counterA, "number"); - assert.eq(counterA, i + 42); - instanceB.exports.changeCounter(i); - assert.isA(counterB, "object"); - assert.eq(counterB.valueB, i + 42); - } -})(); - -(function Polyphic3Import() { - let counterA = 0; - let counterB = undefined; - let counterC = undefined; - const counterASetter = v => counterA = v; - const counterBSetter = v => counterB = { valueB: v }; - const counterCSetter = v => counterC = { valueC: v }; - const module = wasmModuleWhichImportJS(); - const instanceA = new WebAssembly.Instance(module, { imp: { func: counterASetter } }); - const instanceB = new WebAssembly.Instance(module, { imp: { func: counterBSetter } }); - const instanceC = new WebAssembly.Instance(module, { imp: { func: counterCSetter } }); - for (let i = 0; i < 2048; ++i) { - instanceA.exports.changeCounter(i); - assert.isA(counterA, "number"); - assert.eq(counterA, i + 42); - instanceB.exports.changeCounter(i); - assert.isA(counterB, "object"); - assert.eq(counterB.valueB, i + 42); - instanceC.exports.changeCounter(i); - assert.isA(counterC, "object"); - assert.eq(counterC.valueC, i + 42); - } -})(); - -(function VirtualImport() { - const num = 10; // It's definitely going virtual at 10! - let counters = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; - const counterSetters = [ - v => counters[0] = v, - v => counters[1] = v + 1, - v => counters[2] = v + 2, - v => counters[3] = v + 3, - v => counters[4] = v + 4, - v => counters[5] = v + 5, - v => counters[6] = v + 6, - v => counters[7] = v + 7, - v => counters[8] = v + 8, - v => counters[9] = v + 9, - ]; - assert.eq(counters.length, num); - assert.eq(counterSetters.length, num); - const module = wasmModuleWhichImportJS(); - let instances = []; - for (let i = 0; i < num; ++i) - instances[i] = new WebAssembly.Instance(module, { imp: { func: counterSetters[i] } }); - for (let i = 0; i < 2048; ++i) { - for (let j = 0; j < num; ++j) { - instances[j].exports.changeCounter(i); - assert.isA(counters[j], "number"); - assert.eq(counters[j], i + 42 + j); - } - } -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_Module.js b/implementation-contributed/javascriptcore/wasm/js-api/test_Module.js deleted file mode 100644 index 94db1a436a387d08bb48fdfd3b1c1fc637348eee..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_Module.js +++ /dev/null @@ -1,19 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -(function EmptyModule() { - const builder = new Builder(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - assert.instanceof(module, WebAssembly.Module); -})(); - -(function ModuleWithImports() { - const builder = (new Builder()) - .Type().End() - .Import() - .Function("foo", "bar", { params: [] }) - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_Start.js b/implementation-contributed/javascriptcore/wasm/js-api/test_Start.js deleted file mode 100644 index 5c3150e1cabebfb84333ef71423a8886cde0eae8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_Start.js +++ /dev/null @@ -1,35 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -(function StartNamedFunction() { - const b = (new Builder()) - .Type().End() - .Import() - .Function("imp", "func", { params: ["i32"] }) - .End() - .Function().End() - .Start("foo").End() - .Code() - .Function("foo", { params: [] }) - .I32Const(42) - .Call(0) // Calls func(42). - .End() - .End(); - const bin = b.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - let value = 0; - const setter = v => value = v; - const instance = new WebAssembly.Instance(module, { imp: { func: setter } }); - assert.eq(value, 42); -})(); - -(function InvalidStartFunctionIndex() { - const b = (new Builder()) - .setChecked(false) - .Type().End() - .Function().End() - .Start(0).End() // Invalid index. - .Code().End(); - const bin = b.WebAssembly().get(); - assert.throws(() => new WebAssembly.Module(bin), Error, `WebAssembly.Module doesn't parse at byte 17: Start index 0 exceeds function index space 0 (evaluating 'new WebAssembly.Module(bin)')`); -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_basic_api.js b/implementation-contributed/javascriptcore/wasm/js-api/test_basic_api.js deleted file mode 100644 index 1a2d2221030451df0645b30ea31bb2748f5536d0..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_basic_api.js +++ /dev/null @@ -1,128 +0,0 @@ -import * as assert from '../assert.js'; -import * as utilities from '../utilities.js'; - -const version = 0x01; -const emptyModuleArray = Uint8Array.of(0x0, 0x61, 0x73, 0x6d, version, 0x00, 0x00, 0x00); -const invalidConstructorInputs = [undefined, null, "", 1, {}, []]; -const invalidInstanceImports = [null, "", 1]; - -const checkOwnPropertyDescriptor = (obj, prop, expect) => { - const descriptor = Object.getOwnPropertyDescriptor(obj, prop); - assert.eq(typeof descriptor.value, expect.typeofvalue); - assert.eq(descriptor.writable, expect.writable); - assert.eq(descriptor.configurable, expect.configurable); - assert.eq(descriptor.enumerable, expect.enumerable); -}; - -const checkAccessorOwnPropertyDescriptor = (obj, prop, expect) => { - const descriptor = Object.getOwnPropertyDescriptor(obj, prop); - assert.eq(typeof descriptor.value, "undefined"); - assert.eq(typeof descriptor.writable, "undefined"); - assert.eq(descriptor.configurable, expect.configurable); - assert.eq(descriptor.enumerable, expect.enumerable); -}; - -const functionProperties = { - "validate": { length: 1 }, - "compile": { length: 1 }, -}; -const constructorProperties = { - "Module": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, - "Instance": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, - "Memory": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, - "Table": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, - "CompileError": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, - "LinkError": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, - "RuntimeError": { typeofvalue: "function", writable: true, configurable: true, enumerable: false, length: 1 }, -}; - - -assert.isNotUndef(WebAssembly); -checkOwnPropertyDescriptor(utilities.global, "WebAssembly", { typeofvalue: "object", writable: true, configurable: true, enumerable: false }); -assert.eq(String(WebAssembly), "[object WebAssembly]"); -assert.isUndef(WebAssembly.length); -assert.eq(WebAssembly instanceof Object, true); -assert.throws(() => WebAssembly(), TypeError, `WebAssembly is not a function. (In 'WebAssembly()', 'WebAssembly' is an instance of WebAssembly)`); -assert.throws(() => new WebAssembly(), TypeError, `WebAssembly is not a constructor (evaluating 'new WebAssembly()')`); - -for (const f in functionProperties) { - assert.isNotUndef(WebAssembly[f]); - assert.eq(WebAssembly[f].name, f); - assert.eq(WebAssembly[f].length, functionProperties[f].length); -} - -for (const c in constructorProperties) { - assert.isNotUndef(WebAssembly[c]); - assert.eq(WebAssembly[c].name, c); - assert.eq(WebAssembly[c].length, constructorProperties[c].length); - checkOwnPropertyDescriptor(WebAssembly, c, constructorProperties[c]); - checkOwnPropertyDescriptor(WebAssembly[c], "prototype", { typeofvalue: "object", writable: false, configurable: false, enumerable: false }); - if (["CompileError", "LinkError", "RuntimeError"].indexOf(c) >= 0) - WebAssembly[c](); // Per spec, the WebAssembly.*Error types match ye olden JavaScript NativeError behavior: they can be constructed without `new`. - else - assert.throws(() => WebAssembly[c](), TypeError, `calling WebAssembly.${c} constructor without new is invalid`); - switch (c) { - case "Module": - for (const invalid of invalidConstructorInputs) - assert.throws(() => new WebAssembly[c](invalid), TypeError, `first argument must be an ArrayBufferView or an ArrayBuffer (evaluating 'new WebAssembly[c](invalid)')`); - for (const buffer of [new ArrayBuffer(), new DataView(new ArrayBuffer()), new Int8Array(), new Uint8Array(), new Uint8ClampedArray(), new Int16Array(), new Uint16Array(), new Int32Array(), new Uint32Array(), new Float32Array(), new Float64Array()]) - // FIXME the following should be WebAssembly.CompileError. https://bugs.webkit.org/show_bug.cgi?id=163768 - assert.throws(() => new WebAssembly[c](buffer), Error, `WebAssembly.Module doesn't parse at byte 0: expected a module of at least 8 bytes (evaluating 'new WebAssembly[c](buffer)')`); - assert.instanceof(new WebAssembly[c](emptyModuleArray), WebAssembly.Module); - break; - case "Instance": - for (const invalid of invalidConstructorInputs) - assert.throws(() => new WebAssembly[c](invalid), TypeError, `first argument to WebAssembly.Instance must be a WebAssembly.Module (evaluating 'new WebAssembly[c](invalid)')`); - const instance = new WebAssembly[c](new WebAssembly.Module(emptyModuleArray)); - assert.instanceof(instance, WebAssembly.Instance); - for (const invalid of invalidInstanceImports) - assert.throws(() => new WebAssembly[c](new WebAssembly.Module(emptyModuleArray), invalid), TypeError, `second argument to WebAssembly.Instance must be undefined or an Object (evaluating 'new WebAssembly[c](new WebAssembly.Module(emptyModuleArray), invalid)')`); - assert.isNotUndef(instance.exports); - checkAccessorOwnPropertyDescriptor(WebAssembly.Instance.prototype, "exports", { configurable: true, enumerable: false }); - assert.throws(() => WebAssembly.Instance.prototype.exports = undefined, TypeError, `Attempted to assign to readonly property.`); - assert.throws(() => WebAssembly.Instance.prototype.exports, TypeError, `expected |this| value to be an instance of WebAssembly.Instance`); - assert.isUndef(instance.exports.__proto__); - assert.eq(Reflect.isExtensible(instance.exports), false); - assert.eq(Symbol.iterator in instance.exports, false); - assert.eq(Symbol.toStringTag in instance.exports, true); - assert.eq(Object.getOwnPropertySymbols(instance.exports).length, 1); - assert.eq(Object.getOwnPropertySymbols(instance.exports)[0], Symbol.toStringTag); - assert.throws(() => instance.exports[Symbol.toStringTag] = 42, TypeError, `Attempted to assign to readonly property.`); - break; - case "Memory": - new WebAssembly.Memory({initial: 20}); - break; - case "Table": - new WebAssembly.Table({initial: 20, element: "anyfunc"}); - new WebAssembly.Table({initial: 20, maximum: 20, element: "anyfunc"}); - new WebAssembly.Table({initial: 20, maximum: 25, element: "anyfunc"}); - break; - case "CompileError": - case "LinkError": - case "RuntimeError": { - { - const e = new WebAssembly[c]; - assert.eq(e instanceof WebAssembly[c], true); - assert.eq(e instanceof Error, true); - assert.eq(e instanceof TypeError, false); - assert.eq(e.message, ""); - assert.eq(typeof e.stack, "string"); - const sillyString = "uh-oh!"; - const e2 = new WebAssembly[c](sillyString); - assert.eq(e2.message, sillyString + " (evaluating 'new WebAssembly[c](sillyString)')"); - } - { - const e = WebAssembly[c](); - assert.eq(e instanceof WebAssembly[c], true); - assert.eq(e instanceof Error, true); - assert.eq(e instanceof TypeError, false); - assert.eq(e.message, ""); - assert.eq(typeof e.stack, "string"); - const sillyString = "uh-oh!"; - const e2 = WebAssembly[c](sillyString); - assert.eq(e2.message, sillyString); - } - } break; - default: throw new Error(`Implementation error: unexpected constructor property "${c}"`); - } -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_memory.js b/implementation-contributed/javascriptcore/wasm/js-api/test_memory.js deleted file mode 100644 index 520599270c50bdc8ec2a5e1a5195e1cccb09c948..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_memory.js +++ /dev/null @@ -1,401 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - -const pageSize = 64 * 1024; -const maxPageCount = (2**32) / pageSize; - -function binaryShouldNotParse(builder) { - const bin = builder.WebAssembly().get(); - let threw = false; - try { - const module = new WebAssembly.Module(bin); - } catch(e) { - threw = true; - } - assert.truthy(threw); -} - -{ - // Can't declare more than one memory. - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .End(); - binaryShouldNotParse(builder); -} - -{ - // Can't declare more than one memory. - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", {initial: 20}) - .Memory("imp", "memory", {initial: 30}) - .End() - .Function().End() - .Export().End() - .Code() - .End(); - binaryShouldNotParse(builder); -} - -{ - // initial must be <= maximum. - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", {initial: 20, maximum: 19}) - .End() - .Function().End() - .Export().End() - .Code() - .End(); - binaryShouldNotParse(builder); -} - -{ - // No loads when no memory defined. - const builder = (new Builder()) - .Type().End() - .Import().End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", { params: ["i32"], ret: "i32" }) - .GetLocal(0) - .I32Load(2, 0) - .Return() - .End() - .End(); - - binaryShouldNotParse(builder); -} - -{ - // No stores when no memory defined. - const builder = (new Builder()) - .Type().End() - .Import() - .End() - .Function().End() - .Export().Function("foo").End() - .Code() - .Function("foo", { params: ["i32"] }) - .GetLocal(0) - .GetLocal(0) - .I32Store(2, 0) - .Return() - .End() - .End(); - - binaryShouldNotParse(builder); -} - -{ - // Can't export an undefined memory. - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Memory("memory", 0) - .End() - .Code() - .End(); - binaryShouldNotParse(builder); -} - -{ - // Can't export a non-zero memory index. - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Export() - .Memory("memory", 1) - .End() - .Code() - .End(); - binaryShouldNotParse(builder); -} - -{ - assert.throws(() => new WebAssembly.Memory(20), TypeError, "WebAssembly.Memory expects its first argument to be an object"); - assert.throws(() => new WebAssembly.Memory({}, {}), TypeError, "WebAssembly.Memory expects exactly one argument"); -} - -function test(f) { - noInline(f); - for (let i = 0; i < 2; i++) { - f(i); - } -} - -test(function() { - const memoryDescription = {initial: 2, maximum: 2}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["i32", "i32"], ret: "i32" }) - .GetLocal(1) - .GetLocal(0) - .I32Store(2, 0) - .GetLocal(1) - .I32Load(2, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, { imp: { memory: memory } }); - const foo = instance.exports.foo; - // foo(value, address) - - const bytes = memoryDescription.initial * pageSize; - for (let i = 0; i < (bytes/4); i++) { - let value = i + 1; - let address = i * 4; - let result = foo(value, address); - assert.truthy(result === value); - let arrayBuffer = memory.buffer; - let buffer = new Uint32Array(arrayBuffer); - assert.truthy(buffer[i] === value); - } -}); - -test(function() { - const memoryDescription = {initial: 2, maximum: 2}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["i32", "i32"], ret: "i32"}) - .GetLocal(1) - .GetLocal(0) - .I32Store8(0, 0) - .GetLocal(1) - .I32Load8U(0, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, { imp: { memory: memory } }); - const foo = instance.exports.foo; - // foo(value, address) - - const bytes = memoryDescription.initial * pageSize; - for (let i = 0; i < bytes; i++) { - let value = (i + 1); - let address = i; - let result = foo(value, address); - let expectedValue = (value & ((2**8) - 1)); - assert.truthy(result === expectedValue); - let arrayBuffer = memory.buffer; - let buffer = new Uint8Array(arrayBuffer); - assert.truthy(buffer[i] === expectedValue); - } -}); - -test(function() { - const memoryDescription = {initial: 2, maximum: 2}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["f32", "i32"], ret: "f32"}) - .GetLocal(1) - .GetLocal(0) - .F32Store(2, 0) - .GetLocal(1) - .F32Load(2, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, { imp: { memory: memory } }); - const foo = instance.exports.foo; - // foo(value, address) - - const bytes = memoryDescription.initial * pageSize; - for (let i = 0; i < (bytes/4); i++) { - let value = i + 1 + .0128213781289; - assert.truthy(value !== Math.fround(value)); - let address = i * 4; - let result = foo(value, address); - let expectedValue = Math.fround(result); - assert.truthy(result === expectedValue); - let arrayBuffer = memory.buffer; - let buffer = new Float32Array(arrayBuffer); - assert.truthy(buffer[i] === expectedValue); - } -}); - -test(function() { - const memoryDescription = {initial: 2, maximum: 2}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["f64", "i32"], ret: "f64"}) - .GetLocal(1) - .GetLocal(0) - .F64Store(3, 0) - .GetLocal(1) - .F64Load(3, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory(memoryDescription); - const instance = new WebAssembly.Instance(module, { imp: { memory: memory } }); - const foo = instance.exports.foo; - // foo(value, address) - - const bytes = memoryDescription.initial * pageSize; - for (let i = 0; i < (bytes/8); i++) { - let value = i + 1 + .0128213781289; - let address = i * 8; - let result = foo(value, address); - let expectedValue = result; - assert.truthy(result === expectedValue); - let arrayBuffer = memory.buffer; - let buffer = new Float64Array(arrayBuffer); - assert.truthy(buffer[i] === expectedValue); - } -}); - -test(function() { - const memoryDescription = {initial: 20, maximum: 25}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["f64", "i32"], ret: "f64"}) - .GetLocal(1) - .GetLocal(0) - .F64Store(3, 0) - .GetLocal(1) - .F64Load(3, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - - assert.throws(() => new WebAssembly.Instance(module, 20), TypeError, `second argument to WebAssembly.Instance must be undefined or an Object`); - assert.throws(() => new WebAssembly.Instance(module, {}), TypeError, `import imp:memory must be an object`); - assert.throws(() => new WebAssembly.Instance(module, {imp: { } }), WebAssembly.LinkError, `Memory import imp:memory is not an instance of WebAssembly.Memory`); - assert.throws(() => new WebAssembly.Instance(module, {imp: { memory: 20 } }), WebAssembly.LinkError, `Memory import imp:memory is not an instance of WebAssembly.Memory`); - assert.throws(() => new WebAssembly.Instance(module, {imp: { memory: [] } }), WebAssembly.LinkError, `Memory import imp:memory is not an instance of WebAssembly.Memory`); - assert.throws(() => new WebAssembly.Instance(module, {imp: { memory: new WebAssembly.Memory({initial: 19, maximum: 25}) } }), WebAssembly.LinkError, `Memory import imp:memory provided an 'initial' that is smaller than the module's declared 'initial' import memory size`); - assert.throws(() => new WebAssembly.Instance(module, {imp: { memory: new WebAssembly.Memory({initial: 20}) } }), WebAssembly.LinkError, `Memory import imp:memory did not have a 'maximum' but the module requires that it does`); - assert.throws(() => new WebAssembly.Instance(module, {imp: { memory: new WebAssembly.Memory({initial: 20, maximum: 26}) } }), WebAssembly.LinkError, `Memory import imp:memory provided a 'maximum' that is larger than the module's declared 'maximum' import memory size`); -}); - -test(function() { - const memoryDescription = {initial: 20}; - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", memoryDescription).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["f64", "i32"], ret: "f64"}) - .GetLocal(1) - .GetLocal(0) - .F64Store(3, 0) - .GetLocal(1) - .F64Load(3, 0) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - - function testMemImportError(instanceObj, expectedError) { - assert.throws(() => new WebAssembly.Instance(module, instanceObj), WebAssembly.LinkError, expectedError); - } - - testMemImportError({imp: { memory: new WebAssembly.Memory({initial: 19, maximum: 25}) } }, `Memory import imp:memory provided an 'initial' that is smaller than the module's declared 'initial' import memory size`); - testMemImportError({imp: { memory: new WebAssembly.Memory({initial: 19}) } }, `Memory import imp:memory provided an 'initial' that is smaller than the module's declared 'initial' import memory size`); - - // This should not throw. - new WebAssembly.Instance(module, {imp: {memory: new WebAssembly.Memory({initial:20})}}); - new WebAssembly.Instance(module, {imp: {memory: new WebAssembly.Memory({initial:20, maximum:20})}}); -}); - -{ - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Export() - .Memory("memory", 0) - .Memory("memory2", 0) - .End() - .Code() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const memory = new WebAssembly.Memory({initial: 20}); - const instance = new WebAssembly.Instance(module, {imp: {memory}}); - assert.truthy(memory === instance.exports.memory); - assert.truthy(memory === instance.exports.memory2); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Memory().InitialMaxPages(20, 25).End() - .Export() - .Memory("memory", 0) - .Memory("memory2", 0) - .End() - .Code() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - const instance = new WebAssembly.Instance(module); - assert.eq(instance.exports.memory, instance.exports.memory2); - assert.eq(instance.exports.memory.buffer.byteLength, 20 * pageSize); - assert.truthy(instance.exports.memory instanceof WebAssembly.Memory); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/test_memory_constructor.js b/implementation-contributed/javascriptcore/wasm/js-api/test_memory_constructor.js deleted file mode 100644 index b8893eab7af2fac0ea348c5ee52567c3ce54c6d9..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/test_memory_constructor.js +++ /dev/null @@ -1,83 +0,0 @@ -// FIXME: use the assert library: https://bugs.webkit.org/show_bug.cgi?id=165684 -//@ skip if $memoryLimited -import Builder from '../Builder.js'; - -function assert(b) { - if (!b) { - throw new Error("Bad assertion"); - } -} - -{ - let threw = false; - try { - new WebAssembly.Memory({initial: 20, maximum: 19}); - } catch(e) { - assert(e instanceof RangeError); - assert(e.message === "'maximum' page count must be than greater than or equal to the 'initial' page count"); - threw = true; - } - assert(threw); -} - -const pageSize = 64 * 1024; -const maxPageCount = (2**32) / pageSize; - -function testInvalidSize(description, propName) { - let threw = false; - try { - new WebAssembly.Memory(description); - } catch(e) { - threw = true; - assert(e instanceof RangeError); - assert(e.message === `WebAssembly.Memory '${propName}' page count is too large`); - } - assert(threw); -} - -{ - function testInvalidInitial(v) { - testInvalidSize({initial: v}, "initial"); - } - - try { - new WebAssembly.Memory({initial: maxPageCount}); - new WebAssembly.Memory({initial: maxPageCount, maximum: maxPageCount}); - } catch(e) { - // These might throw, since we're asking for a lot of memory. - } - - testInvalidInitial(2**31); - testInvalidInitial(maxPageCount + 1); -} - -{ - function testInvalidMaximum(v) { - testInvalidSize({initial: 1, maximum: v}, "maximum"); - } - - testInvalidMaximum(2**31); - testInvalidMaximum(maxPageCount + 1); -} - -{ - for (let i = 0; i < 5; i++) { - let x = Math.random() * (2**10); - x |= 0; - const mem = new WebAssembly.Memory({initial: x, maximum: x + 100}); - assert(mem.buffer.byteLength === x * pageSize); - } -} - -{ - let bufferGetter = Object.getOwnPropertyDescriptor((new WebAssembly.Memory({initial:1})).__proto__, "buffer").get; - let threw = false; - try { - bufferGetter.call({}); - } catch(e) { - assert(e instanceof TypeError); - assert(e.message === "WebAssembly.Memory.prototype.buffer getter called with non WebAssembly.Memory |this| value"); - threw = true; - } - assert(threw); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/unique-signature.js b/implementation-contributed/javascriptcore/wasm/js-api/unique-signature.js deleted file mode 100644 index 8f5a55fca368b35c976db5c5611b4fe094f88285..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/unique-signature.js +++ /dev/null @@ -1,49 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -(function CallIndirectWithDuplicateSignatures() { - const builder = (new Builder()) - .Type() - .Func(["i32"], "i32") // 0 - .Func(["i32"], "i32") // 1 - .Func(["i32", "i32"], "i32") // 2 - .Func(["i32"], "i32") // 3 - .Func(["i32"], "i32") // 4 - .Func(["i32", "i32"], "i32") // 5 - .Func(["f64", "f64"], "f64") // 6 - .Func(["i32"], "f64") // 7 - .Func(["i32"], "f64") // 8 - .End() - .Function().End() - .Table() - .Table({initial: 4, maximum: 4, element: "anyfunc"}) - .End() - .Export() - .Function("entry") - .Table("table", 0) - .Function("callMe") - .End() - .Code() - .Function("entry", 1) - .I32Const(42) - .GetLocal(0) - .I32Add() - .I32Const(0) // Function index 0. - .CallIndirect(4, 0) // Different signature index, but same signature. - .Return() - .End() - .Function("callMe", 3) - .I32Const(3) - .GetLocal(0) - .I32Add() - .Return() - .End() - .End(); - const bin = builder.WebAssembly().get(); - const module = new WebAssembly.Module(bin); - let value0 = undefined; - const instance = new WebAssembly.Instance(module); - let table = instance.exports.table; - table.set(0, instance.exports.callMe); - assert.eq(instance.exports.entry(5), 5 + 42 + 3); -}()); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/validate.js b/implementation-contributed/javascriptcore/wasm/js-api/validate.js deleted file mode 100644 index 4fe83c2869c5bb241db91de0ca8666f925859a98..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/validate.js +++ /dev/null @@ -1,47 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -assert.isFunction(WebAssembly.validate); -assert.isFunction(WebAssembly.__proto__.validate); -assert.eq(WebAssembly.validate.length, 1); - -{ - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Memory().InitialMaxPages(1, 1).End() - .Export().End() - .Code() - .End(); - - assert.truthy(!WebAssembly.validate(builder.WebAssembly().get())); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Export().End() - .Code() - .End(); - - assert.truthy(WebAssembly.validate(builder.WebAssembly().get())); -} - -{ - const builder = (new Builder()); - builder.setChecked(false); - - builder.Type().End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Unknown("test").End() - .Import().Memory("imp", "memory", {initial: 20}).End() - .Function().End() - .Export().End() - .Code() - .End(); - - assert.falsy(WebAssembly.validate(builder.WebAssembly().get())); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/version.js b/implementation-contributed/javascriptcore/wasm/js-api/version.js deleted file mode 100644 index 0486fcfddefd0821d39246cb6408734bfebf22e2..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/version.js +++ /dev/null @@ -1,9 +0,0 @@ -import * as assert from '../assert.js'; -import * as utilities from '../utilities.js'; - -for (let version = 0; version < 256; ++version) { - if (version === 1) - continue; - const emptyModuleArray = Uint8Array.of(0x0, 0x61, 0x73, 0x6d, version, 0x00, 0x00, 0x00); - assert.throws(() => new WebAssembly.Module(emptyModuleArray), WebAssembly.CompileError, `WebAssembly.Module doesn't parse at byte 8: unexpected version number ${version} expected 1`); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/wasm-to-wasm-bad-signature.js b/implementation-contributed/javascriptcore/wasm/js-api/wasm-to-wasm-bad-signature.js deleted file mode 100644 index 169411ba5cf03418ee6afc9de430e96fc9940d84..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/wasm-to-wasm-bad-signature.js +++ /dev/null @@ -1,105 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const importName = "pierOne"; -const types = ["i32", "i64", "f32", "f64", "void"]; -const typesNonVoid = ["i32", "i64", "f32", "f64"]; -const swapType = (type, index) => types[(types.indexOf(type) + index) % types.length]; -const swapTypeNonVoid = (type, index) => typesNonVoid[(typesNonVoid.indexOf(type) + index) % typesNonVoid.length]; - -const signatures = [ - { params: ["i32"], ret: "void" }, - { params: ["i64"], ret: "void" }, - { params: ["f32"], ret: "void" }, - { params: ["f64"], ret: "void" }, - { params: ["i32"], ret: "i32" }, - { params: ["i64"], ret: "i64" }, - { params: ["f32"], ret: "f32" }, - { params: ["f64"], ret: "f64" }, - { params: ["i32", "f32"], ret: "i32" }, - { params: ["f32", "i32"], ret: "i32" }, - { params: ["i64", "f64"], ret: "i64" }, - { params: ["f64", "i64"], ret: "i64" }, - { params: ["i32", "f32", "i32"], ret: "i32" }, - { params: ["i32", "f32", "i32"], ret: "i32" }, - { params: ["i64", "f64", "i64"], ret: "i64" }, - { params: ["i64", "f64", "i64"], ret: "i64" }, - { params: Array(32).fill("i32"), ret: "i64" }, - { params: Array(32).fill("i64"), ret: "i64" }, - { params: Array(32).fill("f32"), ret: "i64" }, - { params: Array(32).fill("f64"), ret: "i64" }, -]; - -const makeImporter = signature => { - const builder = (new Builder()) - .Type().End() - .Import().Function("exports", importName, signature).End(); - return new WebAssembly.Module(builder.WebAssembly().get()); -}; - -const makeImportee = signature => { - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function(importName) - .End() - .Code() - .Function(importName, signature); - switch (signature.ret) { - case "i32": builder.I32Const(0); break; - case "i64": builder.I64Const(0); break; - case "f32": builder.F32Const(0); break; - case "f64": builder.F64Const(0); break; - case "void": break; - } - return new WebAssembly.Instance(new WebAssembly.Module(builder.Return().End().End().WebAssembly().get())); -}; - -(function BadSignatureDropStartParams() { - for (let signature of signatures) { - const importee = makeImportee(signature); - for (let i = 1; i <= signature.params.length; ++i) { - const badParamSignature = { params: signature.params.slice(i, signature.params.length), ret: signature.ret }; - const importer = makeImporter(badParamSignature); - assert.throws(() => new WebAssembly.Instance(importer, importee), WebAssembly.LinkError, `imported function exports:${importName} signature doesn't match the provided WebAssembly function's signature (evaluating 'new WebAssembly.Instance(importer, importee)')`); - } - } -})(); - -(function BadSignatureDropEndParams() { - for (let signature of signatures) { - const importee = makeImportee(signature); - for (let i = 1; i < signature.params.length; ++i) { - const badParamSignature = { params: signature.params.slice(0, i), ret: signature.ret }; - const importer = makeImporter(badParamSignature); - assert.throws(() => new WebAssembly.Instance(importer, importee), WebAssembly.LinkError, `imported function exports:${importName} signature doesn't match the provided WebAssembly function's signature (evaluating 'new WebAssembly.Instance(importer, importee)')`); - } - } -})(); - -(function BadSignatureSwapParam() { - for (let signature of signatures) { - const importee = makeImportee(signature); - for (let signatureIndex = 0; signatureIndex < signature.length; ++signatureIndex) { - for (let typeIndex = 1; typeIndex < typesNonVoid.length; ++typeIndex) { - let badParams = signature.params.slice(); - badParams[signatureIndex] = swapTypeNonVoid(badParams[signatureIndex], typeIndex); - const badParamSignature = { params: badParams, ret: signature.ret }; - const importer = makeImporter(badParamSignature); - assert.throws(() => new WebAssembly.Instance(importer, importee), WebAssembly.LinkError, `imported function exports:${importName} signature doesn't match the provided WebAssembly function's signature (evaluating 'new WebAssembly.Instance(importer, importee)')`); - } - } - } -})(); - -(function BadSignatureRet() { - for (let signature of signatures) { - const importee = makeImportee(signature); - for (let typeIndex = 1; typeIndex < types.length; ++typeIndex) { - const badParamSignature = { params: signature.params, ret: swapType(signature.ret, typeIndex) }; - const importer = makeImporter(badParamSignature); - assert.throws(() => new WebAssembly.Instance(importer, importee), WebAssembly.LinkError, `imported function exports:${importName} signature doesn't match the provided WebAssembly function's signature (evaluating 'new WebAssembly.Instance(importer, importee)')`); - } - } -})(); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/wasm-to-wasm.js b/implementation-contributed/javascriptcore/wasm/js-api/wasm-to-wasm.js deleted file mode 100644 index 2df46e68f7ded88a7a257dc3890e5212a4c4e92b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/wasm-to-wasm.js +++ /dev/null @@ -1,72 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const callerTopBits = 0xC0FEBEEF; -const innerReturnHi = 0xDEADFACE; -const innerReturnLo = 0xC0FEC0FE; - -const callerModule = () => { - const builder = (new Builder()) - .Type().End() - .Import() - .Function("exports", "callMe", { params: ["i64"], ret: "i64" }) - .End() - .Function().End() - .Export() - .Function("entry") - .End() - .Code() - .Function("entry", { params: ["i32"], ret: "i32" }, ["i64"]) - .I32Const(callerTopBits).I64ExtendUI32().I32Const(32).I64ExtendUI32().I64Shl() // ((i64)callerTopBits) << 32 - .GetLocal(0).I64ExtendUI32() - .I64Or() // value: param | (((i64)callerTopBits << 32)) - .Call(0) // Calls exports.callMe(param | (((i64)callerTopBits) << 32)). - .TeeLocal(1).I32WrapI64() // lo: (i32)callResult - .GetLocal(1).I32Const(32).I64ExtendUI32().I64ShrU().I32WrapI64() // hi: (i32)(callResult >> 32) - .I32Xor() - .Return() - .End() - .End(); - return new WebAssembly.Module(builder.WebAssembly().get()); -}; - -const calleeModule = () => { - const builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "func", { params: ["i32", "i32"], ret: "i32" }) - .End() - .Function().End() - .Export() - .Function("callMe") - .End() - .Code() - .Function("callMe", { params: ["i64"], ret: "i64" }) - .GetLocal(0).I32WrapI64() // lo: (i32)param - .GetLocal(0).I32Const(32).I64ExtendUI32().I64ShrU().I32WrapI64() // hi: (i32)(param >> 32) - .Call(0) // Calls imp.func with the 64-bit value as i32 { hi, lo }. - .Drop() - .I32Const(innerReturnHi).I64ExtendUI32().I32Const(32).I64ExtendUI32().I64Shl().I32Const(innerReturnLo).I64ExtendUI32().I64Or() // ((i64)hi << 32) | (i64)lo - .Return() - .End() - .End(); - return new WebAssembly.Module(builder.WebAssembly().get()); -}; - -(function WasmToWasm() { - let value; - const func = (hi, lo) => { value = { hi: hi, lo: lo }; return hi ^ lo; }; - const callee = new WebAssembly.Instance(calleeModule(), { imp: { func: func } }); - const caller = new WebAssembly.Instance(callerModule(), callee); - for (let i = 0; i < 4096; ++i) { - assert.eq(caller.exports.entry(i), innerReturnHi ^ innerReturnLo); - assert.eq(value.lo >>> 0, callerTopBits); - assert.eq(value.hi >>> 0, i); - } -})(); - -// FIXME test the following https://bugs.webkit.org/show_bug.cgi?id=166625 -// - wasm->wasm using 32-bit things (including float), as well as 64-bit NaNs that don't get canonicalized -// - Do a throw two-deep -// - Check that the first wasm's instance is back in OK state (with table or global?) -// - Test calling through a Table diff --git a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-compile-parallel.js b/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-compile-parallel.js deleted file mode 100644 index 12feaecb9e8417283ec4a9aa74982b94cb409d68..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-compile-parallel.js +++ /dev/null @@ -1,58 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -async function throwExn() { - throw new Error(); -} - -async function test() { - const loopDepth = 10; - const numCompilations = 1; - const numVars = 30; - const params = []; - params.length = numVars; - params.fill("i32"); - - let builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params, ret: "i32" }); - - const makeLoop = (builder, depth) => { - if (depth === 0) - return builder; - - builder = builder - .Loop("i32", (b) => { - b.GetLocal(0) - .I32Const(1) - .I32Sub() - .TeeLocal(0) - .GetLocal(0) - .I32Eqz() - .BrIf(1); - - return makeLoop(b, depth - 1).Br(0); - }); - return builder - - } - - builder = makeLoop(builder, loopDepth); - builder = builder.End().End(); - - const bin = builder.WebAssembly().get(); - - let compilations = []; - for (let i = 0; i < numCompilations; ++i) { - compilations.push(WebAssembly.compile(bin)); - } - - await Promise.all(compilations); -} - -assert.asyncTest(test()); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-function.js b/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-function.js deleted file mode 100644 index 3195662f20985497a3771b3ab8b4792b7adaada1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-function.js +++ /dev/null @@ -1,25 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - -const bin = builder.WebAssembly().get(); -const module = new WebAssembly.Module(bin); -const instance = new WebAssembly.Instance(module); - -assert.eq(Object.getPrototypeOf(instance.exports.foo), Function.prototype); -{ - assert.truthy(typeof instance.exports.foo === "function", "is_function bytecode should handle wasm function."); - let value = typeof instance.exports.foo; - assert.eq(value, "function", "the result of typeof should be 'function'"); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-instantiate-parallel.js b/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-instantiate-parallel.js deleted file mode 100644 index b447bcad0b8880476a783bddc1a941cea4260dce..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-instantiate-parallel.js +++ /dev/null @@ -1,75 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -async function test() { - const loopDepth = 100; - const numCompilations = 1; - const numVars = 30; - const params = []; - params.length = numVars; - params.fill("i32"); - - let builder = (new Builder()) - .Type().End() - .Import() - .Memory("imp", "memory", { initial: 0 }) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params, ret: "i32" }); - - const makeLoop = (builder, depth) => { - if (depth === 0) - return builder; - - builder = builder - .Loop("i32", (b) => { - b.GetLocal(0) - .I32Const(1) - .I32Sub() - .TeeLocal(0) - .GetLocal(0) - .I32Eqz() - .BrIf(1); - - return makeLoop(b, depth - 1).Br(0); - }); - return builder; - } - - builder = makeLoop(builder, loopDepth); - builder = builder.End().End(); - - const bin = builder.WebAssembly().get(); - const memory = new WebAssembly.Memory({ initial: 0 }); - const importObject = { "imp": { "memory": memory } }; - - // Compile a bunch of instances in parallel. - let compilations = []; - for (let i = 0; i < numCompilations; ++i) { - compilations.push(WebAssembly.instantiate(bin, importObject)); - } - - let [inst] = await Promise.all(compilations); - let module = inst.module; - - // Compile a bunch of instances from modules in parallel. - compilations = []; - for (let i = 0; i < numCompilations; ++i) { - compilations.push(WebAssembly.instantiate(module, importObject)); - } - - await Promise.all(compilations); - - // Compile an instance from a module in parallel, have sync compilation steal it. - compilations = []; - compilations.push(WebAssembly.instantiate(module, importObject)); - inst = new WebAssembly.Instance(module, importObject); - - await Promise.all(compilations); -} - -assert.asyncTest(test()); diff --git a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-instantiate.js b/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-instantiate.js deleted file mode 100644 index f60672521e54431cfa11d5dcb3f793ff526d288b..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/web-assembly-instantiate.js +++ /dev/null @@ -1,192 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -assert.isFunction(WebAssembly.instantiate); -assert.isFunction(WebAssembly.__proto__.instantiate); -assert.eq(WebAssembly.instantiate.length, 1); - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - let {module, instance} = await WebAssembly.instantiate(bin); - assert.truthy(module instanceof WebAssembly.Module); - assert.truthy(instance instanceof WebAssembly.Instance); - assert.eq(instance.exports.foo(20), 1); - } - - assert.asyncTest(test()); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - try { - let {module, instance} = await WebAssembly.instantiate(bin, null); - } catch(e) { - assert.eq(e.message, "second argument to WebAssembly.instantiate must be undefined or an Object (evaluating 'WebAssembly.instantiate(bin, null)')"); - } - } - - assert.asyncTest(test()); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .F32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - try { - let {module, instance} = await WebAssembly.instantiate(bin); - } catch(e) { - assert.truthy(e instanceof WebAssembly.CompileError); - assert.eq(e.message, "WebAssembly.Module doesn't validate: control flow returns with unexpected type, in function at index 0"); - } - } - - assert.asyncTest(test()); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial:100}).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - try { - let {module, instance} = await WebAssembly.instantiate(bin, {imp: {memory: 20}}); - } catch(e) { - assert.eq(e.message, "Memory import imp:memory is not an instance of WebAssembly.Memory"); - } - } - - assert.asyncTest(test()); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial:100}).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - try { - const module = new WebAssembly.Module(bin); - let instance = await WebAssembly.instantiate(bin, {imp: {memory: 20}}); - } catch(e) { - assert.eq(e.message, "Memory import imp:memory is not an instance of WebAssembly.Memory"); - } - } - - assert.asyncTest(test()); -} - -{ - const builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - let module = new WebAssembly.Module(bin); - let instance = await WebAssembly.instantiate(module); - assert.truthy(instance instanceof WebAssembly.Instance); - assert.eq(instance.exports.foo(20), 1); - } - - assert.asyncTest(test()); -} - -{ - const builder = (new Builder()) - .Type().End() - .Import().Memory("imp", "memory", {initial:100}).End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(1) - .End() - .End(); - - const bin = builder.WebAssembly().get(); - - async function test() { - try { - await WebAssembly.instantiate(25); - } catch(e) { - // FIXME: Better error message here. - assert.eq(e.message, "first argument must be an ArrayBufferView or an ArrayBuffer (evaluating 'WebAssembly.instantiate(25)')"); - } - } - - assert.asyncTest(test()); -} diff --git a/implementation-contributed/javascriptcore/wasm/js-api/wrapper-function.js b/implementation-contributed/javascriptcore/wasm/js-api/wrapper-function.js deleted file mode 100644 index e3bc398653e9aa59ea1596421ea4c5d7b2ad4d0d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/js-api/wrapper-function.js +++ /dev/null @@ -1,151 +0,0 @@ -import Builder from '../Builder.js'; -import * as assert from '../assert.js'; - - -function exportImport(type) { - let builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "f", type) - .End() - .Function().End() - .Export() - .Function("func", {module: "imp", field: "f"}) - .End() - .Code().End(); - return new WebAssembly.Module(builder.WebAssembly().get()); -} - -{ - let type = { params: ["i32"], ret: "i32" }; - let module = exportImport(type); - let called = false; - let foo = (i) => { - called = true; - return i + 42; - }; - let instance = new WebAssembly.Instance(module, {imp: {f: foo}}); - assert.truthy(instance.exports.func !== foo); - for (let i = 0; i < 100; i++) { - let r1 = instance.exports.func(i); - assert.truthy(called); - called = false; - let r2 = foo(i); - called = false; - assert.eq(r1, r2); - } - - { - let builder = (new Builder()) - .Type().End() - .Import() - .Function("imp", "f", {params: []}) - .End() - .Function().End() - .Code().End(); - let module = new WebAssembly.Module(builder.WebAssembly().get()); - // This should not type check. - assert.throws(() => new WebAssembly.Instance(module, {imp: {f: instance.exports.func}}), WebAssembly.LinkError, "imported function imp:f signature doesn't match the provided WebAssembly function's signature"); - } - - { - assert.truthy(typeof instance.exports.func === "function", "is_function bytecode should handle wrapper function."); - let value = typeof instance.exports.func; - assert.eq(value, "function", "the result of typeof should be 'function'"); - } -} - -{ - const tableDescription = {element: "anyfunc", initial: 2}; - function makeInstance(type, imp) { - const builder = new Builder() - .Type() - .Func(["i32"], "i32") - .Func(["i32", "i32"], "i32") - .End() - .Import() - .Table("imp", "table", tableDescription) - .Function("imp", "f1", {params: ["i32"], ret:"i32"}) - .Function("imp", "f2", {params: ["i32", "i32"], ret:"i32"}) - .End() - .Function().End() - .Export() - .Function("foo") - .End() - .Element() - .Element({offset: 0, functionIndices: [0, 1]}) - .End() - .Code() - .Function("foo", 1) - .GetLocal(1) // parameter to call - .GetLocal(0) // call index - .CallIndirect(0, 0) // calling function of type ['i32'] => 'i32' - .Return() - .End() - .End(); - let module = new WebAssembly.Module(builder.WebAssembly().get()); - return new WebAssembly.Instance(module, imp); - } - - function Bar(){}; - noInline(Bar); - let called = false; - let foo = (i) => { - called = true; - new Bar; - return i*42; - } - let table = new WebAssembly.Table(tableDescription); - let inst = makeInstance({params:['i32'], ret:"i32"}, {imp: {f1: foo, f2:foo, table}}); - for (let i = 0; i < 1000; i++) { - let r1 = inst.exports.foo(0, i); - assert.truthy(called); - called = false; - let r2 = foo(i); - assert.truthy(called); - called = false; - assert.eq(r1, r2); - } - for (let i = 0; i < 1000; i++) { - assert.throws(() => inst.exports.foo(1, i), WebAssembly.RuntimeError, "call_indirect to a signature that does not match"); - assert.truthy(!called); - } - for (let i = 0; i < 1000; i++) { - let r1 = table.get(0)(i); - table.set(0, table.get(0)); // just make sure setting a wrapper function works. - assert.truthy(called); - called = false; - let r2 = table.get(1)(i); - assert.truthy(called); - called = false; - assert.eq(r1, r2); - } - - { - let nextInst = makeInstance({params:['i32'], ret:"i32"}, {imp: {f1: table.get(0), f2:inst.exports.foo, table}}); - for (let i = 0; i < 1000; i++) { - let r1 = nextInst.exports.foo(0, i); - assert.truthy(called); - called = false; - let r2 = foo(i); - assert.truthy(called); - called = false; - assert.eq(r1, r2); - } - - for (let i = 0; i < 1000; i++) { - assert.throws(() => nextInst.exports.foo(1, i), WebAssembly.RuntimeError, "call_indirect to a signature that does not match"); - assert.truthy(!called); - } - - for (let i = 0; i < 1000; i++) { - let r1 = table.get(1)(0, i); - assert.truthy(called); - called = false; - let r2 = foo(i); - assert.truthy(called); - called = false; - assert.eq(r1, r2); - } - } -} diff --git a/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/executable-memory-oom.js b/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/executable-memory-oom.js deleted file mode 100644 index e00aada8f158971584149b906f32091794680102..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/executable-memory-oom.js +++ /dev/null @@ -1,121 +0,0 @@ -import * as assert from '../assert.js' -import Builder from '../Builder.js' - -const verbose = false; -const maxInstructionCount = 500; -const instancesTotal = 8; -const invocationsTotal = 8; -const tierUpCalls = 20000; // Call enough to trigger tier up and get it to compile. - -// This test starts running with a few bytes of executable memory available. Try -// to create and instantiate a module which will fail to fit. - -const randomProgram = instructionCount => { - let b = new Builder() - .Type().End() - .Function().End() - .Export() - .Function("foo") - .Function("bar") - .End() - .Code() - .Function("foo", { params: [], ret: "f32" }) - .F32Const(2.0) - .Return() - .End() - .Function("bar", { params: ["f32", "f32"], ret: "f32" }) - .GetLocal(0); - - // Insert a bunch of dependent instructions in a single basic block so that - // our compiler won't be able to strength-reduce. - const actions = [ - b => b.GetLocal(0).F32Sub(), - b => b.GetLocal(1).F32Sub(), - b => b.GetLocal(0).F32Add(), - b => b.GetLocal(1).F32Add(), - b => b.GetLocal(0).F32Mul(), - b => b.GetLocal(1).F32Mul(), - ]; - - while (--instructionCount) - b = actions[(Math.random() * actions.length) | 0](b); - - b = b.Return().End().End(); - - return b.WebAssembly().get(); -} - -let failCount = 0; -let callCount = 0; -let instances = []; - -const invoke = (instance, count) => { - if (verbose) - print(`Invoking`); - for (let i = 0; i < count; ++i) - assert.eq(instance.exports["foo"](), 2.0); - for (let i = 0; i < count; ++i) - instance.exports["bar"](2.0, 6.0); - ++callCount; -}; - -while (failCount === 0) { - const instructionCount = (Math.random() * maxInstructionCount + 1) | 0; - - if (verbose) - print(`Trying module with ${instructionCount} instructions.`); - - const buf = randomProgram(instructionCount); - let module; - - try { - module = new WebAssembly.Module(buf); - } catch (e) { - if (e instanceof WebAssembly.CompileError) { - if (verbose) - print(`Caught: ${e}`); - ++failCount; - } - else - throw new Error(`Expected a WebAssembly.CompileError, got ${e}`); - } - - if (module !== undefined) { - if (verbose) - print(`Creating instance`); - - let instance; - try { - instance = new WebAssembly.Instance(module); - } catch (e) { - if (e instanceof WebAssembly.LinkError) { - if (verbose) - print(`Caught: ${e}`); - ++failCount; - } - else - throw new Error(`Expected a WebAssembly.LinkError, got ${e}`); - } - - if (instance !== undefined) { - instances.push(instance); - invoke(instance, 1); - } - } -} - -if (callCount === 0) - throw new Error(`Expected to be able to allocate a WebAssembly module, instantiate it, and call its exports at least once`); - -// Make sure we can still call all the instances we create, even after going -// OOM. This will try to force tier-up as well, which should fail. - -if (verbose) - print(`Invoking all previously created instances`); - -for (let instance of instances) - invoke(instance, tierUpCalls); - -// Do it twice to revisit what should have gotten tiered up. -for (let instance of instances) - invoke(instance, 1); diff --git a/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/exports-oom.js b/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/exports-oom.js deleted file mode 100644 index 0c3270ada0bef1fb470341bff9940e8cf8edbcd1..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/exports-oom.js +++ /dev/null @@ -1,107 +0,0 @@ -import * as assert from '../assert.js' -import Builder from '../Builder.js' - -const verbose = false; -const numFunctions = 2; -const maxParams = 128; - -// This test starts running with a few bytes of executable memory available. Try -// to create and instantiate modules which have way more exports than anything -// else. Hopefully they'll fail when trying to instantiate their entrypoints. - -const type = () => { - const types = ["i32", "f32", "f64"]; // Can't export i64. - return types[(Math.random() * types.length) | 0]; -}; - -const params = () => { - let p = []; - let count = (Math.random() * maxParams) | 0; - while (count--) - p.push(type()); - return p; -}; - -const randomProgram = () => { - let b = new Builder() - .Type().End() - .Function().End() - .Export(); - for (let f = 0; f < numFunctions; ++f) - b = b.Function(`f${f}`); - b = b.End().Code(); - for (let f = 0; f < numFunctions; ++f) - b = b.Function(`f${f}`, { params: params() }).Return().End(); - b = b.End(); - return b.WebAssembly().get(); -} - -let failCount = 0; -let callCount = 0; -let instances = []; - -const invoke = instance => { - let result = 0; - for (let f = 0; f < numFunctions; ++f) { - const name = `f${f}`; - if (verbose) - print(`Invoking ${name}`); - result += instance.exports[name](); - ++callCount; - } - return result; -}; - -while (failCount === 0) { - if (verbose) - print(`Trying...`); - - const buf = randomProgram(); - let module; - - try { - module = new WebAssembly.Module(buf); - } catch (e) { - if (e instanceof WebAssembly.CompileError) { - if (verbose) - print(`Caught: ${e}`); - ++failCount; - } - else - throw new Error(`Expected a WebAssembly.CompileError, got ${e}`); - } - - if (module !== undefined) { - if (verbose) - print(`Creating instance`); - - let instance; - try { - instance = new WebAssembly.Instance(module); - } catch (e) { - if (e instanceof WebAssembly.LinkError) { - if (verbose) - print(`Caught: ${e}`); - ++failCount; - } - else - throw new Error(`Expected a WebAssembly.LinkError, got ${e}`); - } - - if (instance !== undefined) { - instances.push(instance); - invoke(instance); - } - } -} - -if (callCount === 0) - throw new Error(`Expected to be able to allocate a WebAssembly module, instantiate it, and call its exports at least once`); - -// Make sure we can still call all the instances we create, even after going OOM. - -if (verbose) - print(`Invoking all previously created instances`); - -for (let instance of instances) - invoke(instance); diff --git a/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/imports-oom.js b/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/imports-oom.js deleted file mode 100644 index 44cd9737404ee8ae433c71290ace9a09711c903f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/lowExecutableMemory/imports-oom.js +++ /dev/null @@ -1,124 +0,0 @@ -import * as assert from '../assert.js' -import Builder from '../Builder.js' - -const verbose = false; -const numFunctions = 2; -const maxParams = 32; - -// This test starts running with a few bytes of executable memory available. Try -// to create and instantiate modules which have way more imports than anything -// else. Hopefully they'll fail when trying to instantiate their entrypoints. - -const type = () => { - const types = ["i32", "f32", "f64"]; - return types[(Math.random() * types.length) | 0]; -}; - -const params = () => { - let p = []; - let count = (Math.random() * maxParams) | 0; - while (count--) - p.push(type()); - return p; -}; - -const randomProgram = () => { - let b = new Builder() - .Type().End() - .Import(); - const ps = params(); - for (let f = 0; f < numFunctions; ++f) - b = b.Function("imp", `${f}`, { params: ps }); - b = b.End() - .Function().End() - .Export(); - for (let f = 0; f < numFunctions; ++f) - b = b.Function(`call${f}`); - b = b.End() - .Code(); - for (let f = 0; f < numFunctions; ++f) { - b = b.Function(`call${f}`, { params: ps }); - for (let p = 0; p < ps.length; ++p) - b = b.GetLocal(p); - b = b.Call(f).End(); - } - b = b.End(); - return b.WebAssembly().get(); -} - -let failCount = 0; -let callCount = 0; -let instances = []; - -let imports = []; -for (let f = 0; f < numFunctions; ++f) - imports.push((...args) => { - if (verbose) - print(`Invoked ${f} with: ${args}`); - ++callCount; - }); - -const invoke = instance => { - let result = 0; - for (let f = 0; f < numFunctions; ++f) { - const name = `call${f}`; - if (verbose) - print(`Invoking ${name}`); - result += instance.exports[name](); - } - return result; -}; - -while (failCount === 0) { - if (verbose) - print(`Trying...`); - - const buf = randomProgram(); - let module; - - try { - module = new WebAssembly.Module(buf); - } catch (e) { - if (e instanceof WebAssembly.CompileError) { - if (verbose) - print(`Caught: ${e}`); - ++failCount; - } - else - throw new Error(`Expected a WebAssembly.CompileError, got ${e}`); - } - - if (module !== undefined) { - if (verbose) - print(`Creating instance`); - - let instance; - try { - instance = new WebAssembly.Instance(module, { imp: imports }); - } catch (e) { - if (e instanceof WebAssembly.LinkError) { - if (verbose) - print(`Caught: ${e}`); - ++failCount; - } - else - throw new Error(`Expected a WebAssembly.LinkError, got ${e}`); - } - - if (instance !== undefined) { - instances.push(instance); - invoke(instance); - } - } -} - -if (callCount === 0) - throw new Error(`Expected to be able to allocate a WebAssembly module, instantiate it, and call its exports at least once`); - -// Make sure we can still call all the instances we create, even after going OOM. - -if (verbose) - print(`Invoking all previously created instances`); - -for (let instance of instances) - invoke(instance); diff --git a/implementation-contributed/javascriptcore/wasm/regress/175693.js b/implementation-contributed/javascriptcore/wasm/regress/175693.js deleted file mode 100644 index b1ec7388b10d1b965db14397e5f52eea507e4c60..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/regress/175693.js +++ /dev/null @@ -1,46 +0,0 @@ -const file = "175693.wasm"; - -const verbose = false; - -if (typeof console === 'undefined') { - console = { log: print }; -} -var binary; -if (typeof process === 'object' && typeof require === 'function' /* node.js detection */) { - var args = process.argv.slice(2); - binary = require('fs').readFileSync(file); - if (!binary.buffer) binary = new Uint8Array(binary); -} else { - var args; - if (typeof scriptArgs != 'undefined') { - args = scriptArgs; - } else if (typeof arguments != 'undefined') { - args = arguments; - } - if (typeof readbuffer === 'function') { - binary = new Uint8Array(readbuffer(file)); - } else { - binary = read(file, 'binary'); - } -} -var instance = new WebAssembly.Instance(new WebAssembly.Module(binary), {}); -if (instance.exports.hangLimitInitializer) instance.exports.hangLimitInitializer(); -try { - if (verbose) - console.log('calling: func_0'); - instance.exports.func_0(); -} catch (e) { - if (verbose) - console.log(' exception: ' + e); -} -if (instance.exports.hangLimitInitializer) instance.exports.hangLimitInitializer(); -try { - if (verbose) - console.log('calling: hangLimitInitializer'); - instance.exports.hangLimitInitializer(); -} catch (e) { - if (verbose) - console.log(' exception: ' + e); -} -if (verbose) - console.log('done.') diff --git a/implementation-contributed/javascriptcore/wasm/regress/183342.js b/implementation-contributed/javascriptcore/wasm/regress/183342.js deleted file mode 100644 index 3e485fd176921891af3b923a921968932d9a087d..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/regress/183342.js +++ /dev/null @@ -1,57 +0,0 @@ -const verbose = false; - -{ - // The simplest module with a DataView offset. - let buffer = new Uint8Array(16); - buffer[ 8] = 0x00; // \0 - buffer[ 9] = 0x61; // a - buffer[10] = 0x73; // s - buffer[11] = 0x6d; // m - buffer[12] = 0x01; // version - buffer[13] = 0x00; // version - buffer[14] = 0x00; // version - buffer[15] = 0x00; // version - const view = new DataView(buffer.buffer, 8); - const module = new WebAssembly.Module(view); - const instance = new WebAssembly.Instance(module); -} - -{ - // A bunch of random offsets into large buffers with mostly valid content. - const headerSize = 16; - const roundToHeaderSize = s => Math.round(s / headerSize) * headerSize; - for (let attempt = 0; attempt < 100; ++attempt) { - const bufferSize = Math.max(roundToHeaderSize(Math.random() * 0xffff), headerSize * 2); - let buffer = new Uint8Array(bufferSize); - for (let i = 0; i < bufferSize; i += headerSize) { - buffer[ 0 + i] = 0x00; // \0 - buffer[ 1 + i] = 0x61; // a - buffer[ 2 + i] = 0x73; // s - buffer[ 3 + i] = 0x6d; // m - buffer[ 4 + i] = 0x01; // version - buffer[ 5 + i] = 0x00; // version - buffer[ 6 + i] = 0x00; // version - buffer[ 7 + i] = 0x00; // version - buffer[ 8 + i] = 0x00; // ID = custom - buffer[ 9 + i] = 0x80 | Math.round(Math.random() * 0x7f); // section byte size, LEB128 - buffer[10 + i] = 0x80 | Math.round(Math.random() * 0x7f); // section byte size, LEB128 - buffer[11 + i] = 0x00 | Math.round(Math.random() * 0x7f); // section byte size, LEB128 - buffer[12 + i] = 0x04; // custom section name length, LEB128 - buffer[13 + i] = 0x42; // B - buffer[14 + i] = 0x4f; // O - buffer[15 + i] = 0X4f; // O - buffer[16 + i] = 0x4d; // M - } - const viewOffset = roundToHeaderSize(Math.random() * bufferSize); - if (verbose) - print("Buffer size: ", bufferSize, " view offset: ", viewOffset, " view size: ", bufferSize - viewOffset); - const view = new DataView(buffer.buffer, viewOffset); - try { - const module = new WebAssembly.Module(view); - const instance = new WebAssembly.Instance(module); - } catch (e) { - if (verbose) - print(e); - } - } -} diff --git a/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js b/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js deleted file mode 100644 index d2588ad31f90062f58138c62e8768a3fe5b0616f..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js +++ /dev/null @@ -1,7 +0,0 @@ -//@ runWebAssembly -// This passes if it does not crash. -new WebAssembly.CompileError({ - valueOf() { - throw new Error(); - } -}); diff --git a/implementation-contributed/javascriptcore/wasm/self-test/test_BuilderJSON.js b/implementation-contributed/javascriptcore/wasm/self-test/test_BuilderJSON.js deleted file mode 100644 index bb1b97b19d5cc1c78b5f007dc690aadbd70d20f8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/self-test/test_BuilderJSON.js +++ /dev/null @@ -1,673 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -const assertOpThrows = (opFn, message) => { - let f = (new Builder()).Type().End().Code().Function(); - assert.throws(opFn, Error, message, f); -}; - -(function EmptyModule() { - const b = new Builder(); - const j = JSON.parse(b.json()); - assert.isNotUndef(j.preamble); - assert.isNotUndef(j.preamble["magic number"]); - assert.isNotUndef(j.preamble.version); - assert.isNotUndef(j.section); - assert.eq(j.section.length, 0); -})(); - -(function CustomMagicNumber() { - const b = (new Builder()).setPreamble({ "magic number": 1337 }); - const j = JSON.parse(b.json()); - assert.eq(j.preamble["magic number"], 1337); - assert.isNotUndef(j.preamble.version); -})(); - -(function CustomVersion() { - const b = (new Builder()).setPreamble({ "version": 1337 }); - const j = JSON.parse(b.json()); - assert.eq(j.preamble["version"], 1337); - assert.isNotUndef(j.preamble.version); -})(); - -(function CustomSection() { - const b = new Builder(); - b.Unknown("custom section") - .Byte(0x00) - .Byte(0x42) - .Byte(0xFF); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 1); - assert.eq(j.section[0].name, "custom section"); - assert.eq(j.section[0].data.length, 3); - assert.eq(j.section[0].data[0], 0x00); - assert.eq(j.section[0].data[1], 0x42); - assert.eq(j.section[0].data[2], 0xFF); -})(); - -(function CustomSectionAllBytes() { - const b = new Builder(); - let u = b.Unknown("custom section"); - for (let i = 0; i !== 0xFF + 1; ++i) - u.Byte(i); - const j = JSON.parse(b.json()); - assert.eq(j.section[0].data.length, 256); - for (let i = 0; i !== 0xFF + 1; ++i) - assert.eq(j.section[0].data[i], i); -})(); - -(function CustomSectionInvalidByte() { - const u = (new Builder()).Unknown("custom section"); - assert.throws(() => u.Byte(0xFF + 1), Error, `Not the same: "0" and "256": Unknown section expected byte, got: "256"`); -})(); - -(function TwoCustomSections() { - const b = new Builder(); - b.Unknown("custom section") - .Byte(0x00) - .Byte(0x42) - .Byte(0xFF) - .End() - .Unknown("☃") - .Byte(0x11); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 2); - assert.eq(j.section[0].name, "custom section"); - assert.eq(j.section[0].data.length, 3); - assert.eq(j.section[1].name, "☃"); - assert.eq(j.section[1].data.length, 1); - assert.eq(j.section[1].data[0], 0x11); -})(); - -(function SectionsWithSameCustomName() { - const b = (new Builder()).Unknown("foo").Byte(42).End().Unknown("foo").Byte(100).End(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 2); - assert.eq(j.section[0].name, "foo"); - assert.eq(j.section[0].data.length, 1); - assert.eq(j.section[0].data[0], 42); - assert.eq(j.section[1].name, "foo"); - assert.eq(j.section[1].data.length, 1); - assert.eq(j.section[1].data[0], 100); -})(); - -(function EmptyTypeSection() { - const b = (new Builder()).Type().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 1); - assert.eq(j.section[0].name, "Type"); - assert.eq(j.section[0].data.length, 0); -})(); - -(function TwoTypeSections() { - const b = (new Builder()).Type().End(); - assert.throws(() => b.Type(), Error, `Expected falsy: Cannot have two sections with the same name "Type" and ID 1`); -})(); - -(function SimpleTypeSection() { - const b = (new Builder()).Type() - .Func([]) - .Func([], "void") - .Func([], "i32") - .Func([], "i64") - .Func([], "f32") - .Func([], "f64") - .Func(["i32", "i64", "f32", "f64"]) - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[0].data.length, 7); - assert.eq(j.section[0].data[0].params, []); - assert.eq(j.section[0].data[0].ret, "void"); - assert.eq(j.section[0].data[1].params, []); - assert.eq(j.section[0].data[1].ret, "void"); - assert.eq(j.section[0].data[2].params, []); - assert.eq(j.section[0].data[2].ret, "i32"); - assert.eq(j.section[0].data[3].params, []); - assert.eq(j.section[0].data[3].ret, "i64"); - assert.eq(j.section[0].data[4].params, []); - assert.eq(j.section[0].data[4].ret, "f32"); - assert.eq(j.section[0].data[5].params, []); - assert.eq(j.section[0].data[5].ret, "f64"); - assert.eq(j.section[0].data[6].params, ["i32", "i64", "f32", "f64"]); - assert.eq(j.section[0].data[6].ret, "void"); -})(); - -(function EmptyImportSection() { - const b = (new Builder()).Import().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 1); - assert.eq(j.section[0].name, "Import"); - assert.eq(j.section[0].data.length, 0); -})(); - -(function ImportBeforeTypeSections() { - const b = (new Builder()).Import().End(); - assert.throws(() => b.Type(), Error, `Expected: "2" > "1": Bad section ordering: "Import" cannot precede "Type"`); -})(); - -(function ImportFunctionWithoutTypeSection() { - const i = (new Builder()).Import(); - assert.throws(() => i.Function("foo", "bar", 0), Error, `Shouldn't be undefined: Can not use type 0 if a type section is not present`); -})(); - -(function ImportFunctionWithInvalidType() { - const i = (new Builder()).Type().End().Import(); - assert.throws(() => i.Function("foo", "bar", 0), Error, `Shouldn't be undefined: Type 0 does not exist in type section`); -})(); - -(function ImportFunction() { - const b = (new Builder()) - .Type().Func([]).End() - .Import() - .Function("foo", "bar", 0) - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data.length, 1); - assert.eq(j.section[1].data[0].module, "foo"); - assert.eq(j.section[1].data[0].field, "bar"); - assert.eq(j.section[1].data[0].type, 0); - assert.eq(j.section[1].data[0].kind, "Function"); -})(); - -(function ImportFunctionsWithExistingTypes() { - const b = (new Builder()) - .Type() - .Func([]) - .Func([], "i32") - .Func(["i64", "i32"]) - .Func(["i64", "i64"]) - .End() - .Import() - .Function("foo", "bar", { params: [] }) - .Function("foo", "baz", { params: [], ret: "i32" }) - .Function("foo", "boo", { params: ["i64", "i64"] }) - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[0].data.length, 4); - assert.eq(j.section[1].data.length, 3); - assert.eq(j.section[1].data[0].type, 0); - assert.eq(j.section[1].data[1].type, 1); - assert.eq(j.section[1].data[2].type, 3); -})(); - -(function ImportFunctionWithNewType() { - const b = (new Builder()) - .Type().End() - .Import() - .Function("foo", "bar", { params: [] }) - .Function("foo", "baz", { params: [], ret: "i32" }) - .Function("foo", "boo", { params: ["i64", "i64"] }) - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[0].data.length, 3); - assert.eq(j.section[0].data[0].ret, "void"); - assert.eq(j.section[0].data[0].params, []); - assert.eq(j.section[0].data[1].ret, "i32"); - assert.eq(j.section[0].data[1].params, []); - assert.eq(j.section[0].data[2].ret, "void"); - assert.eq(j.section[0].data[2].params, ["i64", "i64"]); -})(); - -(function EmptyExportSection() { - const b = (new Builder()).Export().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 1); - assert.eq(j.section[0].name, "Export"); - assert.eq(j.section[0].data.length, 0); -})(); - -(function ExportFunctionWithoutTypeSection() { - const e = (new Builder()).Export(); - assert.throws(() => e.Function("foo", 0, 0), Error, `Shouldn't be undefined: Can not use type 0 if a type section is not present`); -})(); - -(function ExportFunctionWithInvalidType() { - const e = (new Builder()).Type().End().Export(); - assert.throws(() => e.Function("foo", 0, 0), Error, `Shouldn't be undefined: Type 0 does not exist in type section`); -})(); - -(function ExportAnImport() { - const b = (new Builder()) - .Type().End() - .Import().Function("foo", "bar", { params: [] }).End() - .Export().Function("ExportAnImport", { module: "foo", field: "bar" }).End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[2].name, "Export"); - assert.eq(j.section[2].data.length, 1); - assert.eq(j.section[2].data[0].field, "ExportAnImport"); - assert.eq(j.section[2].data[0].type, 0); - assert.eq(j.section[2].data[0].index, 0); - assert.eq(j.section[2].data[0].kind, "Function"); -})(); - -(function ExportMismatchedImport() { - const e = (new Builder()) - .Type().End() - .Import().Function("foo", "bar", { params: [] }).End() - .Export(); - assert.throws(() => e.Function("foo", 0, { params: ["i32"] }), Error, `Not the same: "1" and "0": Re-exporting import "bar" as "foo" has mismatching type`); -})(); - -(function StartInvalidNumberedFunction() { - const b = (new Builder()) - .Type().End() - .Function().End() - .Start(0).End() - assert.throws(() => b.Code().End(), Error, `Start section refers to non-existant function '0'`); -})(); - -(function StartInvalidNamedFunction() { - const b = (new Builder()) - .Type().End() - .Function().End() - .Start("foo").End(); - assert.throws(() => b.Code().End(), Error, `Start section refers to non-existant function 'foo'`); -})(); - -(function StartNamedFunction() { - const b = (new Builder()) - .Type().End() - .Function().End() - .Start("foo").End() - .Code() - .Function("foo", { params: [] }).End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 4); - assert.eq(j.section[2].name, "Start"); - assert.eq(j.section[2].data.length, 1); - assert.eq(j.section[2].data[0], 0); -})(); - -/* FIXME implement checking of signature https://bugs.webkit.org/show_bug.cgi?id=165658 -(function StartInvalidTypeArg() { - const b = (new Builder()) - .Type().End() - .Function().End() - .Start("foo").End() - assert.throws(() => b.Code().Function("foo", { params: ["i32"] }).End(), Error, `???`); -})(); - -(function StartInvalidTypeReturn() { - const b = (new Builder()) - .Type().End() - .Function().End() - .Start("foo").End() - assert.throws(() => b.Code().Function("foo", { params: [], ret: "i32" }).I32Const(42).Ret().End(), Error, `???`); -})(); -*/ - -// FIXME test start of import or table. https://bugs.webkit.org/show_bug.cgi?id=165658 - -(function EmptyCodeSection() { - const b = new Builder(); - b.Code(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 1); - assert.eq(j.section[0].name, "Code"); - assert.eq(j.section[0].data.length, 0); -})(); - -(function CodeSectionWithEmptyFunction() { - const b = new Builder(); - b.Type().End() - .Code() - .Function(); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 2); - assert.eq(j.section[0].name, "Type"); - assert.eq(j.section[0].data.length, 1); - assert.eq(j.section[0].data[0].params, []); - assert.eq(j.section[0].data[0].ret, "void"); - assert.eq(j.section[1].name, "Code"); - assert.eq(j.section[1].data.length, 1); - assert.eq(j.section[1].data[0].name, undefined); - assert.eq(j.section[1].data[0].type, 0); - assert.eq(j.section[1].data[0].parameterCount, 0); - assert.eq(j.section[1].data[0].locals.length, 0); - assert.eq(j.section[1].data[0].code.length, 0); -})(); - -(function CodeSectionWithEmptyFunctionWithParameters() { - const b = new Builder(); - b.Type().End() - .Code() - .Function({ params: ["i32", "i64", "f32", "f64"] }); - const j = JSON.parse(b.json()); - assert.eq(j.section.length, 2); - assert.eq(j.section[0].data.length, 1); - assert.eq(j.section[0].data[0].params, ["i32", "i64", "f32", "f64"]); - assert.eq(j.section[0].data[0].ret, "void"); - assert.eq(j.section[1].data.length, 1); - assert.eq(j.section[1].data[0].type, 0); - assert.eq(j.section[1].data[0].parameterCount, 4); - assert.eq(j.section[1].data[0].locals[0], "i32"); - assert.eq(j.section[1].data[0].locals[1], "i64"); - assert.eq(j.section[1].data[0].locals[2], "f32"); - assert.eq(j.section[1].data[0].locals[3], "f64"); - assert.eq(j.section[1].data[0].code.length, 0); -})(); - -(function InvalidFunctionParameters() { - for (let invalid of ["", "bool", "any", "struct", 0, 3.14, undefined, [], {}]) { - const c = (new Builder()).Code(); - assert.throws(() => c.Function({ params: [invalid] }), Error, `Expected truthy: Type parameter ${invalid} needs a valid value type`); - } -})(); - -(function SimpleFunction() { - const b = new Builder(); - b.Type().End() - .Code() - .Function() - .Nop() - .Nop() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data.length, 1); - assert.eq(j.section[1].data[0].locals.length, 0); - assert.eq(j.section[1].data[0].code.length, 3); - assert.eq(j.section[1].data[0].code[0].name, "nop"); - assert.eq(j.section[1].data[0].code[1].name, "nop"); - assert.eq(j.section[1].data[0].code[2].name, "end"); -})(); - -(function TwoSimpleFunctions() { - const b = new Builder(); - b.Type().End() - .Code() - .Function() - .Nop() - .Nop() - .End() - .Function() - .Return() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data.length, 2); - assert.eq(j.section[1].data[0].locals.length, 0); - assert.eq(j.section[1].data[0].code.length, 3); - assert.eq(j.section[1].data[0].code[0].name, "nop"); - assert.eq(j.section[1].data[0].code[1].name, "nop"); - assert.eq(j.section[1].data[0].code[2].name, "end"); - assert.eq(j.section[1].data[1].locals.length, 0); - assert.eq(j.section[1].data[1].code.length, 2); - assert.eq(j.section[1].data[1].code[0].name, "return"); - assert.eq(j.section[1].data[1].code[1].name, "end"); -})(); - -(function NamedFunctions() { - const b = new Builder().Type().End().Code() - .Function("hello").End() - .Function("world", { params: ["i32"] }).End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].name, "hello"); - assert.eq(j.section[1].data[0].parameterCount, 0); - assert.eq(j.section[1].data[1].name, "world"); - assert.eq(j.section[1].data[1].parameterCount, 1); -})(); - -(function ExportSimpleFunctions() { - const b = (new Builder()) - .Type().End() - .Export() - .Function("foo", 0, { params: [] }) - .Function("bar") - .Function("betterNameForBar", "bar") - .End() - .Code() - .Function({ params: [] }).Nop().End() - .Function("bar", { params: [] }).Nop().End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[0].data.length, 1); - assert.eq(j.section[0].data[0].ret, "void"); - assert.eq(j.section[0].data[0].params, []); - assert.eq(j.section[1].data.length, 3); - assert.eq(j.section[1].data[0].field, "foo"); - assert.eq(j.section[1].data[0].type, 0); - assert.eq(j.section[1].data[0].index, 0); - assert.eq(j.section[1].data[0].kind, "Function"); - assert.eq(j.section[1].data[1].field, "bar"); - assert.eq(j.section[1].data[1].type, 0); - assert.eq(j.section[1].data[1].index, 1); - assert.eq(j.section[1].data[1].kind, "Function"); - assert.eq(j.section[1].data[2].field, "betterNameForBar"); - assert.eq(j.section[1].data[2].type, 0); - assert.eq(j.section[1].data[2].index, 1); - assert.eq(j.section[1].data[2].kind, "Function"); -})(); - -(function ExportUndefinedFunction() { - const c = (new Builder()).Type().End().Export().Function("foo").End().Code(); - assert.throws(() => c.End(), Error, `Should be number, got undefined: Export section contains undefined function "foo"`); -})(); - -(function TwoBuildersAtTheSameTime() { - const b = [new Builder(), new Builder()]; - const f = b.map(builder => builder.Type().End().Code().Function()); - f[0].Nop(); - f[1].Return().End().End(); - f[0].Nop().End().End(); - const j = b.map(builder => JSON.parse(builder.json())); - assert.eq(j[0].section[1].data[0].code.length, 3); - assert.eq(j[0].section[1].data[0].code[0].name, "nop"); - assert.eq(j[0].section[1].data[0].code[1].name, "nop"); - assert.eq(j[0].section[1].data[0].code[2].name, "end"); - assert.eq(j[1].section[1].data[0].code.length, 2); - assert.eq(j[1].section[1].data[0].code[0].name, "return"); - assert.eq(j[1].section[1].data[0].code[1].name, "end"); -})(); - -(function CheckedOpcodeArgumentsTooMany() { - assertOpThrows(f => f.Nop("uh-oh!"), `Not the same: "1" and "0": "nop" expects exactly 0 immediates, got 1`); -})(); - -(function UncheckedOpcodeArgumentsTooMany() { - (new Builder()).setChecked(false).Type().End().Code().Function().Nop("This is fine.", "I'm OK with the events that are unfolding currently."); -})(); - -(function CheckedOpcodeArgumentsNotEnough() { - assertOpThrows(f => f.I32Const(), `Not the same: "0" and "1": "i32.const" expects exactly 1 immediate, got 0`); -})(); - -(function UncheckedOpcodeArgumentsNotEnough() { - (new Builder()).setChecked(false).Type().End().Code().Function().I32Const(); -})(); - -(function CallNoArguments() { - const b = (new Builder()).Type().End().Code().Function().Call(0).End().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code.length, 2); - assert.eq(j.section[1].data[0].code[0].name, "call"); - assert.eq(j.section[1].data[0].code[0].arguments.length, 0); - assert.eq(j.section[1].data[0].code[0].immediates.length, 1); - assert.eq(j.section[1].data[0].code[0].immediates[0], 0); - assert.eq(j.section[1].data[0].code[1].name, "end"); -})(); - -(function CallInvalid() { - for (let c of [-1, 0x100000000, "0", {}, Infinity, -Infinity, NaN, -NaN, null]) - assertOpThrows(f => f.Call(c), `Expected truthy: Invalid value on call: got "${c}", expected non-negative i32`); -})(); - -(function I32ConstValid() { - for (let c of [-100, -1, 0, 1, 2, 42, 1337, 0xFF, 0xFFFF, 0x7FFFFFFF, 0xFFFFFFFE, 0xFFFFFFFF]) { - const b = (new Builder()).Type().End().Code().Function().I32Const(c).Return().End().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code[0].name, "i32.const"); - assert.eq(j.section[1].data[0].code[0].arguments.length, 0); - assert.eq(j.section[1].data[0].code[0].immediates.length, 1); - assert.eq(j.section[1].data[0].code[0].immediates[0], c); - } -})(); - -(function I32ConstInvalid() { - for (let c of [0x100000000, 0.1, -0.1, "0", {}, Infinity, null]) - assertOpThrows(f => f.I32Const(c), `Expected truthy: Invalid value on i32.const: got "${c}", expected i32`); -})(); - -// FIXME: test i64. https://bugs.webkit.org/show_bug.cgi?id=163420 - -(function F32ConstValid() { - for (let c of [0, -0., 0.2, Math.PI, 0x100000000]) { - const b = (new Builder()).Type().End().Code().Function().F32Const(c).Return().End().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code[0].name, "f32.const"); - assert.eq(j.section[1].data[0].code[0].arguments.length, 0); - assert.eq(j.section[1].data[0].code[0].immediates.length, 1); - assert.eq(j.section[1].data[0].code[0].immediates[0] === "NEGATIVE_ZERO" ? -0.0 : j.section[1].data[0].code[0].immediates[0], c); - } -})(); - -(function F32ConstInvalid() { - for (let c of ["0", {}, Infinity, -Infinity, NaN, -NaN, null]) - assertOpThrows(f => f.F32Const(c), `Expected truthy: Invalid value on f32.const: got "${c}", expected f32`); -})(); - -(function F64ConstValid() { - for (let c of [0, -0., 0.2, Math.PI, 0x100000000]) { - const b = (new Builder()).Type().End().Code().Function().F64Const(c).Return().End().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code[0].name, "f64.const"); - assert.eq(j.section[1].data[0].code[0].arguments.length, 0); - assert.eq(j.section[1].data[0].code[0].immediates.length, 1); - assert.eq(j.section[1].data[0].code[0].immediates[0] === "NEGATIVE_ZERO" ? -0.0 : j.section[1].data[0].code[0].immediates[0], c); - } -})(); - -(function F64ConstInvalid() { - for (let c of ["0", {}, Infinity, -Infinity, NaN, -NaN, null]) - assertOpThrows(f => f.F64Const(c), `Expected truthy: Invalid value on f64.const: got "${c}", expected f64`); -})(); - -(function CallOneFromStack() { - const b = (new Builder()).Type().End().Code() - .Function({ params: ["i32"] }) - .I32Const(42) - .Call(0) - .End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code.length, 3); - assert.eq(j.section[1].data[0].code[0].name, "i32.const"); - assert.eq(j.section[1].data[0].code[0].immediates[0], 42); - assert.eq(j.section[1].data[0].code[1].name, "call"); - // FIXME: assert.eq(j.section[1].data[0].code[1].arguments.length, 1); https://bugs.webkit.org/show_bug.cgi?id=163267 - assert.eq(j.section[1].data[0].code[1].immediates.length, 1); - assert.eq(j.section[1].data[0].code[1].immediates[0], 0); - assert.eq(j.section[1].data[0].code[2].name, "end"); -})(); - -// FIXME https://bugs.webkit.org/show_bug.cgi?id=163267 all of these: -// test too many pops. -// test not enough pops (function has non-empty stack at the end). -// test mismatched pop types. -// test mismatched function signature (calling with wrong arg types). -// test invalid function index. -// test function names (both setting and calling them). - -(function CallManyFromStack() { - const b = (new Builder()).Type().End().Code() - .Function({ params: ["i32", "i32", "i32", "i32"] }) - .I32Const(42).I32Const(1337).I32Const(0xBEEF).I32Const(0xFFFF) - .Call(0) - .End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code.length, 6); - assert.eq(j.section[1].data[0].code[4].name, "call"); - // FIXME: assert.eq(j.section[1].data[0].code[4].arguments.length, 4); https://bugs.webkit.org/show_bug.cgi?id=163267 - assert.eq(j.section[1].data[0].code[4].immediates.length, 1); - assert.eq(j.section[1].data[0].code[4].immediates[0], 0); -})(); - -(function OpcodeAdd() { - const b = (new Builder()).Type().End().Code() - .Function() - .I32Const(42).I32Const(1337) - .I32Add() - .Return() - .End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code.length, 5); - assert.eq(j.section[1].data[0].code[2].name, "i32.add"); - // FIXME: assert.eq(j.section[1].data[0].code[2].arguments.length, 2); https://bugs.webkit.org/show_bug.cgi?id=163267 - assert.eq(j.section[1].data[0].code[3].name, "return"); - // FIXME check return. https://bugs.webkit.org/show_bug.cgi?id=163267 -})(); - -(function OpcodeUnreachable() { - const b = (new Builder()).Type().End().Code().Function().Unreachable().End().End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code.length, 2); - assert.eq(j.section[1].data[0].code[0].name, "unreachable"); -})(); - -(function OpcodeUnreachableCombinations() { - (new Builder()).Type().End().Code().Function().Nop().Unreachable().End().End().json(); - (new Builder()).Type().End().Code().Function().Unreachable().Nop().End().End().json(); - (new Builder()).Type().End().Code().Function().Return().Unreachable().End().End().json(); - (new Builder()).Type().End().Code().Function().Unreachable().Return().End().End().json(); - (new Builder()).Type().End().Code().Function().Call(0).Unreachable().End().End().json(); - (new Builder()).Type().End().Code().Function().Unreachable().Call(0).End().End().json(); -})(); - -(function OpcodeSelect() { - const b = (new Builder()).Type().End().Code().Function() - .I32Const(1).I32Const(2).I32Const(0) - .Select() - .Return() - .End() - .End(); - const j = JSON.parse(b.json()); - assert.eq(j.section[1].data[0].code.length, 6); - assert.eq(j.section[1].data[0].code[3].name, "select"); -})(); -// FIXME test type mismatch with select. https://bugs.webkit.org/show_bug.cgi?id=163267 - -(function MemoryImport() { - const builder = (new Builder()) - .Type().End() - .Import() - .Memory("__module__", "__field__", {initial: 30, maximum: 31}) - .End() - .Code().End(); - - const json = JSON.parse(builder.json()); - assert.eq(json.section.length, 3); - assert.eq(json.section[1].name, "Import"); - assert.eq(json.section[1].data.length, 1); - assert.eq(json.section[1].data[0].module, "__module__"); - assert.eq(json.section[1].data[0].field, "__field__"); - assert.eq(json.section[1].data[0].kind, "Memory"); - assert.eq(json.section[1].data[0].memoryDescription.initial, 30); - assert.eq(json.section[1].data[0].memoryDescription.maximum, 31); -})(); - -(function DataSection() { - const builder = (new Builder()) - .Memory().InitialMaxPages(64, 64).End() - .Data() - .Segment([0xff, 0x2a]).Offset(4).End() - .Segment([0xde, 0xad, 0xbe, 0xef]).Index(0).Offset(24).End() - .End(); - const json = JSON.parse(builder.json()); - assert.eq(json.section.length, 2); - assert.eq(json.section[1].name, "Data"); - assert.eq(json.section[1].data.length, 2); - assert.eq(json.section[1].data[0].index, 0); - assert.eq(json.section[1].data[0].offset, 4); - assert.eq(json.section[1].data[0].data.length, 2); - assert.eq(json.section[1].data[0].data[0], 0xff); - assert.eq(json.section[1].data[0].data[1], 0x2a); - assert.eq(json.section[1].data[1].index, 0); - assert.eq(json.section[1].data[1].offset, 24); - assert.eq(json.section[1].data[1].data.length, 4); - assert.eq(json.section[1].data[1].data[0], 0xde); - assert.eq(json.section[1].data[1].data[1], 0xad); - assert.eq(json.section[1].data[1].data[2], 0xbe); - assert.eq(json.section[1].data[1].data[3], 0xef); -})(); diff --git a/implementation-contributed/javascriptcore/wasm/self-test/test_BuilderWebAssembly.js b/implementation-contributed/javascriptcore/wasm/self-test/test_BuilderWebAssembly.js deleted file mode 100644 index 9d6dc1baf266e80ba230e4a788c8219d04216df8..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/self-test/test_BuilderWebAssembly.js +++ /dev/null @@ -1,31 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -(function EmptyModule() { - const builder = new Builder(); - const bin = builder.WebAssembly(); - assert.eq(bin.hexdump().trim(), - "00000000 00 61 73 6d 01 00 00 00 |·asm···· |"); -})(); - -(function EmptyModule() { - const bin = (new Builder()) - .setPreamble({ "magic number": 0x45464F43, version: 0xFFFFFFFF }) - .WebAssembly(); - assert.eq(bin.hexdump().trim(), - "00000000 43 4f 46 45 ff ff ff ff |COFE···· |"); -})(); - -(function CustomSection() { - const bin = (new Builder()) - .Unknown("OHHAI") - .Byte(0xDE) - .Byte(0xAD) - .Byte(0xC0) - .Byte(0xFE) - .End() - .WebAssembly(); - assert.eq(bin.hexdump().trim(), - ["00000000 00 61 73 6d 01 00 00 00 00 0a 05 4f 48 48 41 49 |·asm·······OHHAI|", - "00000010 de ad c0 fe |···· |"].join("\n")); -})(); diff --git a/implementation-contributed/javascriptcore/wasm/spec-harness/index.js b/implementation-contributed/javascriptcore/wasm/spec-harness/index.js deleted file mode 100644 index bc298d200a07b1d569708adf80e04b3ab96a14cc..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/spec-harness/index.js +++ /dev/null @@ -1,344 +0,0 @@ -/* - * Copyright 2017 WebAssembly Community Group participants - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. -*/ - -'use strict'; - -let testNum = (function() { - let count = 1; - return function() { - return `#${count++} `; - } -})(); - -// WPT's assert_throw uses a list of predefined, hardcoded known errors. Since -// it is not aware of the WebAssembly error types (yet), implement our own -// version. -function assertThrows(func, err) { - let caught = false; - try { - func(); - } catch(e) { - assert_true(e instanceof err, `expected ${err.name}, observed ${e.constructor.name}`); - caught = true; - } - assert_true(caught, testNum() + "assertThrows must catch any error.") -} - -/****************************************************************************** -***************************** WAST HARNESS ************************************ -******************************************************************************/ - -// For assertions internal to our test harness. -function _assert(x) { - if (!x) { - throw new Error(`Assertion failure: ${x}`); - } -} - -// A simple sum type that can either be a valid Value or an Error. -function Result(type, maybeValue) { - this.value = maybeValue; - this.type = type; -}; - -Result.VALUE = 'VALUE'; -Result.ERROR = 'ERROR'; - -function ValueResult(val) { return new Result(Result.VALUE, val); } -function ErrorResult(err) { return new Result(Result.ERROR, err); } - -Result.prototype.isError = function() { return this.type === Result.ERROR; } - -const EXPECT_INVALID = false; - -/* DATA **********************************************************************/ - -let soft_validate = true; - -let $$; - -// Default imports. -var registry = {}; - -// Resets the registry between two different WPT tests. -function reinitializeRegistry() { - if (typeof WebAssembly === 'undefined') - return; - - registry = { - spectest: { - print: print, - global: 666, - table: new WebAssembly.Table({initial: 10, maximum: 20, element: 'anyfunc'}), - memory: new WebAssembly.Memory({initial: 1, maximum: 2}) - } - }; -} - -reinitializeRegistry(); - -/* WAST POLYFILL *************************************************************/ - -function binary(bytes) { - let buffer = new ArrayBuffer(bytes.length); - let view = new Uint8Array(buffer); - for (let i = 0; i < bytes.length; ++i) { - view[i] = bytes.charCodeAt(i); - } - return buffer; -} - -/** - * Returns a compiled module, or throws if there was an error at compilation. - */ -function module(bytes, valid = true) { - let buffer = binary(bytes); - let validated; - - try { - validated = WebAssembly.validate(buffer); - } catch (e) { - throw new Error(`WebAssembly.validate throws ${typeof e}: ${e}${e.stack}`); - } - - if (validated !== valid) { - // Try to get a more precise error message from the WebAssembly.CompileError. - let err = ''; - try { - new WebAssembly.Module(buffer); - } catch (e) { - if (e instanceof WebAssembly.CompileError) - throw new WebAssembly.CompileError(`WebAssembly.validate error: ${e.toString()}${e.stack}\n`); - else - throw new Error(`WebAssembly.validate throws ${typeof e}: ${e}${e.stack}`); - } - throw new Error(`WebAssembly.validate was expected to fail, but didn't`); - } - - let module; - try { - module = new WebAssembly.Module(buffer); - } catch(e) { - if (valid) - throw new Error('WebAssembly.Module ctor unexpectedly throws ${typeof e}: ${e}${e.stack}'); - throw e; - } - - return module; -} - -function uniqueTest(func, desc) { - test(func, testNum() + desc); -} - -function assert_invalid(bytes) { - uniqueTest(() => { - try { - module(bytes, /* valid */ false); - throw new Error('did not fail'); - } catch(e) { - assert_true(e instanceof WebAssembly.CompileError, "expected invalid failure:"); - } - }, "A wast module that should be invalid or malformed."); -} - -const assert_malformed = assert_invalid; - -function assert_soft_invalid(bytes) { - uniqueTest(() => { - try { - module(bytes, /* valid */ soft_validate); - if (soft_validate) - throw new Error('did not fail'); - } catch(e) { - if (soft_validate) - assert_true(e instanceof WebAssembly.CompileError, "expected soft invalid failure:"); - } - }, "A wast module that *could* be invalid under certain engines."); -} - -function instance(bytes, imports = registry, valid = true) { - if (imports instanceof Result) { - if (imports.isError()) - return imports; - imports = imports.value; - } - - let err = null; - - let m, i; - try { - let m = module(bytes); - i = new WebAssembly.Instance(m, imports); - } catch(e) { - err = e; - } - - if (valid) { - uniqueTest(() => { - let instantiated = err === null; - assert_true(instantiated, err); - }, "module successfully instantiated"); - } - - return err !== null ? ErrorResult(err) : ValueResult(i); -} - -function register(name, instance) { - _assert(instance instanceof Result); - - if (instance.isError()) - return; - - registry[name] = instance.value.exports; -} - -function call(instance, name, args) { - _assert(instance instanceof Result); - - if (instance.isError()) - return instance; - - let err = null; - let result; - try { - result = instance.value.exports[name](...args); - } catch(e) { - err = e; - } - - return err !== null ? ErrorResult(err) : ValueResult(result); -}; - -function get(instance, name) { - _assert(instance instanceof Result); - - if (instance.isError()) - return instance; - - return ValueResult(instance.value.exports[name]); -} - -function exports(name, instance) { - _assert(instance instanceof Result); - - if (instance.isError()) - return instance; - - return ValueResult({ [name]: instance.value.exports }); -} - -function run(action) { - let result = action(); - - _assert(result instanceof Result); - - uniqueTest(() => { - if (result.isError()) - throw result.value; - }, "A wast test that runs without any special assertion."); -} - -function assert_unlinkable(bytes) { - let result = instance(bytes, registry, EXPECT_INVALID); - - _assert(result instanceof Result); - - uniqueTest(() => { - assert_true(result.isError(), 'expected error result'); - if (result.isError()) { - let e = result.value; - assert_true(e instanceof WebAssembly.LinkError, `expected link error, observed ${e}:`); - } - }, "A wast module that is unlinkable."); -} - -function assert_uninstantiable(bytes) { - let result = instance(bytes, registry, EXPECT_INVALID); - - _assert(result instanceof Result); - - uniqueTest(() => { - assert_true(result.isError(), 'expected error result'); - if (result.isError()) { - let e = result.value; - assert_true(e instanceof WebAssembly.RuntimeError, `expected runtime error, observed ${e}:`); - } - }, "A wast module that is uninstantiable."); -} - -function assert_trap(action) { - let result = action(); - - _assert(result instanceof Result); - - uniqueTest(() => { - assert_true(result.isError(), 'expected error result'); - if (result.isError()) { - let e = result.value; - assert_true(e instanceof WebAssembly.RuntimeError, `expected runtime error, observed ${e}:`); - } - }, "A wast module that must trap at runtime."); -} - -let StackOverflow; -try { (function f() { 1 + f() })() } catch (e) { StackOverflow = e.constructor } - -function assert_exhaustion(action) { - let result = action(); - - _assert(result instanceof Result); - - uniqueTest(() => { - assert_true(result.isError(), 'expected error result'); - if (result.isError()) { - let e = result.value; - assert_true(e instanceof StackOverflow, `expected stack overflow error, observed ${e}:`); - } - }, "A wast module that must exhaust the stack space."); -} - -function assert_return(action, expected) { - if (expected instanceof Result) { - if (expected.isError()) - return; - expected = expected.value; - } - - let result = action(); - - _assert(result instanceof Result); - - uniqueTest(() => { - assert_true(!result.isError(), `expected success result, got: ${result.value}.`); - if (!result.isError()) { - assert_equals(result.value, expected); - }; - }, "A wast module that must return a particular value."); -}; - -function assert_return_nan(action) { - let result = action(); - - _assert(result instanceof Result); - - uniqueTest(() => { - assert_true(!result.isError(), 'expected success result'); - if (!result.isError()) { - assert_true(Number.isNaN(result.value), `expected NaN, observed ${result.value}.`); - }; - }, "A wast module that must return NaN."); -} diff --git a/implementation-contributed/javascriptcore/wasm/spec-harness/wasm-module-builder.js b/implementation-contributed/javascriptcore/wasm/spec-harness/wasm-module-builder.js deleted file mode 100644 index 68fab8985c76ed12f9455254d6536cc4ce669335..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/spec-harness/wasm-module-builder.js +++ /dev/null @@ -1,583 +0,0 @@ -// Copyright 2016 the V8 project authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -// Used for encoding f32 and double constants to bits. -let __buffer = new ArrayBuffer(8); -let byte_view = new Int8Array(__buffer); -let f32_view = new Float32Array(__buffer); -let f64_view = new Float64Array(__buffer); - -class Binary extends Array { - emit_u8(val) { - this.push(val); - } - - emit_u16(val) { - this.push(val & 0xff); - this.push((val >> 8) & 0xff); - } - - emit_u32(val) { - this.push(val & 0xff); - this.push((val >> 8) & 0xff); - this.push((val >> 16) & 0xff); - this.push((val >> 24) & 0xff); - } - - emit_u32v(val) { - while (true) { - let v = val & 0xff; - val = val >>> 7; - if (val == 0) { - this.push(v); - break; - } - this.push(v | 0x80); - } - } - - emit_bytes(data) { - for (let i = 0; i < data.length; i++) { - this.push(data[i] & 0xff); - } - } - - emit_string(string) { - // When testing illegal names, we pass a byte array directly. - if (string instanceof Array) { - this.emit_u32v(string.length); - this.emit_bytes(string); - return; - } - - // This is the hacky way to convert a JavaScript string to a UTF8 encoded - // string only containing single-byte characters. - let string_utf8 = unescape(encodeURIComponent(string)); - this.emit_u32v(string_utf8.length); - for (let i = 0; i < string_utf8.length; i++) { - this.emit_u8(string_utf8.charCodeAt(i)); - } - } - - emit_header() { - this.push(kWasmH0, kWasmH1, kWasmH2, kWasmH3, - kWasmV0, kWasmV1, kWasmV2, kWasmV3); - } - - emit_section(section_code, content_generator) { - // Emit section name. - this.emit_u8(section_code); - // Emit the section to a temporary buffer: its full length isn't know yet. - let section = new Binary; - content_generator(section); - // Emit section length. - this.emit_u32v(section.length); - // Copy the temporary buffer. - for (const sectionByte of section) { - this.push(sectionByte); - } - } -} - -class WasmFunctionBuilder { - constructor(module, name, type_index) { - this.module = module; - this.name = name; - this.type_index = type_index; - this.body = []; - } - - exportAs(name) { - this.module.addExport(name, this.index); - return this; - } - - exportFunc() { - this.exportAs(this.name); - return this; - } - - addBody(body) { - for (let b of body) { - if (typeof b != 'number') - throw new Error('invalid body (entries have to be numbers): ' + body); - } - this.body = body.slice(); - // Automatically add the end for the function block to the body. - this.body.push(kExprEnd); - return this; - } - - addLocals(locals) { - this.locals = locals; - return this; - } - - end() { - this.body.push(kExprEnd); - return this.module; - } -} - -class WasmGlobalBuilder { - constructor(module, type, mutable) { - this.module = module; - this.type = type; - this.mutable = mutable; - this.init = 0; - } - - exportAs(name) { - this.module.exports.push({name: name, kind: kExternalGlobal, - index: this.index}); - return this; - } -} - -class WasmModuleBuilder { - constructor() { - this.types = []; - this.imports = []; - this.exports = []; - this.globals = []; - this.functions = []; - this.function_table = []; - this.function_table_length = 0; - this.function_table_inits = []; - this.segments = []; - this.explicit = []; - this.num_imported_funcs = 0; - this.num_imported_globals = 0; - return this; - } - - addStart(start_index) { - this.start_index = start_index; - return this; - } - - addMemory(min, max, exp) { - this.memory = {min: min, max: max, exp: exp}; - return this; - } - - addExplicitSection(bytes) { - this.explicit.push(bytes); - return this; - } - - stringToBytes(name) { - var result = new Binary(); - result.emit_u32v(name.length); - for (var i = 0; i < name.length; i++) { - result.emit_u8(name.charCodeAt(i)); - } - return result; - } - - addCustomSection(name, bytes) { - name = this.stringToBytes(name); - var length = new Binary(); - length.emit_u32v(name.length + bytes.length); - this.explicit.push([0, ...length, ...name, ...bytes]); - } - - addType(type) { - // TODO: canonicalize types? - this.types.push(type); - return this.types.length - 1; - } - - addGlobal(local_type, mutable) { - let glob = new WasmGlobalBuilder(this, local_type, mutable); - glob.index = this.globals.length + this.num_imported_globals; - this.globals.push(glob); - return glob; - } - - addFunction(name, type) { - let type_index = (typeof type) == "number" ? type : this.addType(type); - let func = new WasmFunctionBuilder(this, name, type_index); - func.index = this.functions.length + this.num_imported_funcs; - this.functions.push(func); - return func; - } - - addImport(module = "", name, type) { - let type_index = (typeof type) == "number" ? type : this.addType(type); - this.imports.push({module: module, name: name, kind: kExternalFunction, - type: type_index}); - return this.num_imported_funcs++; - } - - addImportedGlobal(module = "", name, type) { - let o = {module: module, name: name, kind: kExternalGlobal, type: type, - mutable: false} - this.imports.push(o); - return this.num_imported_globals++; - } - - addImportedMemory(module = "", name, initial = 0, maximum) { - let o = {module: module, name: name, kind: kExternalMemory, - initial: initial, maximum: maximum}; - this.imports.push(o); - return this; - } - - addImportedTable(module = "", name, initial, maximum) { - let o = {module: module, name: name, kind: kExternalTable, initial: initial, - maximum: maximum}; - this.imports.push(o); - } - - addExport(name, index) { - this.exports.push({name: name, kind: kExternalFunction, index: index}); - return this; - } - - addExportOfKind(name, kind, index) { - this.exports.push({name: name, kind: kind, index: index}); - return this; - } - - addDataSegment(addr, data, is_global = false) { - this.segments.push({addr: addr, data: data, is_global: is_global}); - return this.segments.length - 1; - } - - exportMemoryAs(name) { - this.exports.push({name: name, kind: kExternalMemory, index: 0}); - } - - addFunctionTableInit(base, is_global, array, is_import = false) { - this.function_table_inits.push({base: base, is_global: is_global, - array: array}); - if (!is_global) { - var length = base + array.length; - if (length > this.function_table_length && !is_import) { - this.function_table_length = length; - } - } - return this; - } - - appendToTable(array) { - for (let n of array) { - if (typeof n != 'number') - throw new Error('invalid table (entries have to be numbers): ' + array); - } - return this.addFunctionTableInit(this.function_table.length, false, array); - } - - setFunctionTableLength(length) { - this.function_table_length = length; - return this; - } - - toArray(debug = false) { - let binary = new Binary; - let wasm = this; - - // Add header - binary.emit_header(); - - // Add type section - if (wasm.types.length > 0) { - if (debug) print("emitting types @ " + binary.length); - binary.emit_section(kTypeSectionCode, section => { - section.emit_u32v(wasm.types.length); - for (let type of wasm.types) { - section.emit_u8(kWasmFunctionTypeForm); - section.emit_u32v(type.params.length); - for (let param of type.params) { - section.emit_u8(param); - } - section.emit_u32v(type.results.length); - for (let result of type.results) { - section.emit_u8(result); - } - } - }); - } - - // Add imports section - if (wasm.imports.length > 0) { - if (debug) print("emitting imports @ " + binary.length); - binary.emit_section(kImportSectionCode, section => { - section.emit_u32v(wasm.imports.length); - for (let imp of wasm.imports) { - section.emit_string(imp.module); - section.emit_string(imp.name || ''); - section.emit_u8(imp.kind); - if (imp.kind == kExternalFunction) { - section.emit_u32v(imp.type); - } else if (imp.kind == kExternalGlobal) { - section.emit_u32v(imp.type); - section.emit_u8(imp.mutable); - } else if (imp.kind == kExternalMemory) { - var has_max = (typeof imp.maximum) != "undefined"; - section.emit_u8(has_max ? 1 : 0); // flags - section.emit_u32v(imp.initial); // initial - if (has_max) section.emit_u32v(imp.maximum); // maximum - } else if (imp.kind == kExternalTable) { - section.emit_u8(kWasmAnyFunctionTypeForm); - var has_max = (typeof imp.maximum) != "undefined"; - section.emit_u8(has_max ? 1 : 0); // flags - section.emit_u32v(imp.initial); // initial - if (has_max) section.emit_u32v(imp.maximum); // maximum - } else { - throw new Error("unknown/unsupported import kind " + imp.kind); - } - } - }); - } - - // Add functions declarations - let num_function_names = 0; - let names = false; - if (wasm.functions.length > 0) { - if (debug) print("emitting function decls @ " + binary.length); - binary.emit_section(kFunctionSectionCode, section => { - section.emit_u32v(wasm.functions.length); - for (let func of wasm.functions) { - if (func.name !== undefined) { - ++num_function_names; - } - section.emit_u32v(func.type_index); - } - }); - } - - // Add function_table. - if (wasm.function_table_length > 0) { - if (debug) print("emitting table @ " + binary.length); - binary.emit_section(kTableSectionCode, section => { - section.emit_u8(1); // one table entry - section.emit_u8(kWasmAnyFunctionTypeForm); - section.emit_u8(1); - section.emit_u32v(wasm.function_table_length); - section.emit_u32v(wasm.function_table_length); - }); - } - - // Add memory section - if (wasm.memory !== undefined) { - if (debug) print("emitting memory @ " + binary.length); - binary.emit_section(kMemorySectionCode, section => { - section.emit_u8(1); // one memory entry - const has_max = wasm.memory.max !== undefined; - section.emit_u32v(has_max ? kResizableMaximumFlag : 0); - section.emit_u32v(wasm.memory.min); - if (has_max) section.emit_u32v(wasm.memory.max); - }); - } - - // Add global section. - if (wasm.globals.length > 0) { - if (debug) print ("emitting globals @ " + binary.length); - binary.emit_section(kGlobalSectionCode, section => { - section.emit_u32v(wasm.globals.length); - for (let global of wasm.globals) { - section.emit_u8(global.type); - section.emit_u8(global.mutable); - if ((typeof global.init_index) == "undefined") { - // Emit a constant initializer. - switch (global.type) { - case kWasmI32: - section.emit_u8(kExprI32Const); - section.emit_u32v(global.init); - break; - case kWasmI64: - section.emit_u8(kExprI64Const); - section.emit_u32v(global.init); - break; - case kWasmF32: - section.emit_u8(kExprF32Const); - f32_view[0] = global.init; - section.emit_u8(byte_view[0]); - section.emit_u8(byte_view[1]); - section.emit_u8(byte_view[2]); - section.emit_u8(byte_view[3]); - break; - case kWasmF64: - section.emit_u8(kExprF64Const); - f64_view[0] = global.init; - section.emit_u8(byte_view[0]); - section.emit_u8(byte_view[1]); - section.emit_u8(byte_view[2]); - section.emit_u8(byte_view[3]); - section.emit_u8(byte_view[4]); - section.emit_u8(byte_view[5]); - section.emit_u8(byte_view[6]); - section.emit_u8(byte_view[7]); - break; - } - } else { - // Emit a global-index initializer. - section.emit_u8(kExprGetGlobal); - section.emit_u32v(global.init_index); - } - section.emit_u8(kExprEnd); // end of init expression - } - }); - } - - // Add export table. - var mem_export = (wasm.memory !== undefined && wasm.memory.exp); - var exports_count = wasm.exports.length + (mem_export ? 1 : 0); - if (exports_count > 0) { - if (debug) print("emitting exports @ " + binary.length); - binary.emit_section(kExportSectionCode, section => { - section.emit_u32v(exports_count); - for (let exp of wasm.exports) { - section.emit_string(exp.name); - section.emit_u8(exp.kind); - section.emit_u32v(exp.index); - } - if (mem_export) { - section.emit_string("memory"); - section.emit_u8(kExternalMemory); - section.emit_u8(0); - } - }); - } - - // Add start function section. - if (wasm.start_index !== undefined) { - if (debug) print("emitting start function @ " + binary.length); - binary.emit_section(kStartSectionCode, section => { - section.emit_u32v(wasm.start_index); - }); - } - - // Add table elements. - if (wasm.function_table_inits.length > 0) { - if (debug) print("emitting table @ " + binary.length); - binary.emit_section(kElementSectionCode, section => { - var inits = wasm.function_table_inits; - section.emit_u32v(inits.length); - - for (let init of inits) { - section.emit_u8(0); // table index - if (init.is_global) { - section.emit_u8(kExprGetGlobal); - } else { - section.emit_u8(kExprI32Const); - } - section.emit_u32v(init.base); - section.emit_u8(kExprEnd); - section.emit_u32v(init.array.length); - for (let index of init.array) { - section.emit_u32v(index); - } - } - }); - } - - // Add function bodies. - if (wasm.functions.length > 0) { - // emit function bodies - if (debug) print("emitting code @ " + binary.length); - binary.emit_section(kCodeSectionCode, section => { - section.emit_u32v(wasm.functions.length); - for (let func of wasm.functions) { - // Function body length will be patched later. - let local_decls = []; - let l = func.locals; - if (l !== undefined) { - let local_decls_count = 0; - if (l.i32_count > 0) { - local_decls.push({count: l.i32_count, type: kWasmI32}); - } - if (l.i64_count > 0) { - local_decls.push({count: l.i64_count, type: kWasmI64}); - } - if (l.f32_count > 0) { - local_decls.push({count: l.f32_count, type: kWasmF32}); - } - if (l.f64_count > 0) { - local_decls.push({count: l.f64_count, type: kWasmF64}); - } - } - - let header = new Binary; - header.emit_u32v(local_decls.length); - for (let decl of local_decls) { - header.emit_u32v(decl.count); - header.emit_u8(decl.type); - } - - section.emit_u32v(header.length + func.body.length); - section.emit_bytes(header); - section.emit_bytes(func.body); - } - }); - } - - // Add data segments. - if (wasm.segments.length > 0) { - if (debug) print("emitting data segments @ " + binary.length); - binary.emit_section(kDataSectionCode, section => { - section.emit_u32v(wasm.segments.length); - for (let seg of wasm.segments) { - section.emit_u8(0); // linear memory index 0 - if (seg.is_global) { - // initializer is a global variable - section.emit_u8(kExprGetGlobal); - section.emit_u32v(seg.addr); - } else { - // initializer is a constant - section.emit_u8(kExprI32Const); - section.emit_u32v(seg.addr); - } - section.emit_u8(kExprEnd); - section.emit_u32v(seg.data.length); - section.emit_bytes(seg.data); - } - }); - } - - // Add any explicitly added sections - for (let exp of wasm.explicit) { - if (debug) print("emitting explicit @ " + binary.length); - binary.emit_bytes(exp); - } - - // Add function names. - if (num_function_names > 0) { - if (debug) print('emitting names @ ' + binary.length); - binary.emit_section(kUnknownSectionCode, section => { - section.emit_string('name'); - section.emit_section(kFunctionNamesCode, name_section => { - name_section.emit_u32v(num_function_names); - for (let func of wasm.functions) { - if (func.name === undefined) continue; - name_section.emit_u32v(func.index); - name_section.emit_string(func.name); - } - }); - }); - } - - return binary; - } - - toBuffer(debug = false) { - let bytes = this.toArray(debug); - let buffer = new ArrayBuffer(bytes.length); - let view = new Uint8Array(buffer); - for (let i = 0; i < bytes.length; i++) { - let val = bytes[i]; - if ((typeof val) == "string") val = val.charCodeAt(0); - view[i] = val | 0; - } - return buffer; - } - - instantiate(ffi) { - let module = new WebAssembly.Module(this.toBuffer()); - let instance = new WebAssembly.Instance(module, ffi); - return instance; - } -} diff --git a/implementation-contributed/javascriptcore/wasm/spec-tests/jsapi.js b/implementation-contributed/javascriptcore/wasm/spec-tests/jsapi.js deleted file mode 100644 index 179e4fe975cdaae90852bd221ca7f7dcbd034fe6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/spec-tests/jsapi.js +++ /dev/null @@ -1,792 +0,0 @@ -/* - * Copyright 2017 WebAssembly Community Group participants - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. -*/ - -(function testJSAPI() { - -const WasmPage = 64 * 1024; - -const emptyModuleBinary = new WasmModuleBuilder().toBuffer(); - -const importingModuleBinary = (() => { - let builder = new WasmModuleBuilder(); - - builder.addImport('', 'f', kSig_v_v); - - return builder.toBuffer(); -})(); - -const complexImportingModuleBinary = (() => { - let builder = new WasmModuleBuilder(); - - builder.addImport('a', 'b', kSig_v_v); - builder.addImportedMemory('c', 'd', 1); - builder.addImportedTable('e', 'f', 1); - builder.addImportedGlobal('g', 'âš¡', kWasmI32); - - return builder.toBuffer(); -})(); - -const exportingModuleBinary = (() => { - let builder = new WasmModuleBuilder(); - - builder - .addFunction('f', kSig_i_v) - .addBody([ - kExprI32Const, - 42 - ]) - .exportFunc(); - - return builder.toBuffer(); -})(); - -const complexExportingModuleBinary = (() => { - let builder = new WasmModuleBuilder(); - - builder - .addFunction('a', kSig_v_v) - .addBody([]) - .exportFunc(); - - builder.addMemory(1, 1, /* exported */ false); - builder.exportMemoryAs('b'); - - builder.setFunctionTableLength(1); - builder.addExportOfKind('c', kExternalTable, 0); - - // Default init for global values is 0. Keep that. - builder.addGlobal(kWasmI32, /* mutable */ false) - .exportAs("âš¡"); - - return builder.toBuffer(); -})(); - -const moduleBinaryImporting2Memories = (() => { - var builder = new WasmModuleBuilder(); - builder.addImportedMemory("", "memory1"); - builder.addImportedMemory("", "memory2"); - return builder.toBuffer(); -})(); - -const moduleBinaryWithMemSectionAndMemImport = (() => { - var builder = new WasmModuleBuilder(); - builder.addMemory(1, 1, false); - builder.addImportedMemory("", "memory1"); - return builder.toBuffer(); -})(); - -let Module; -let Instance; -let CompileError; -let LinkError; -let RuntimeError; -let Memory; -let instanceProto; -let memoryProto; -let mem1; -let Table; -let tbl1; -let tableProto; - -let emptyModule; -let exportingModule; -let exportingInstance; -let exportsObj; -let importingModule; - -// Start of tests. - -test(() => { - const wasmDesc = Object.getOwnPropertyDescriptor(this, 'WebAssembly'); - assert_equals(typeof wasmDesc.value, "object"); - assert_true(wasmDesc.writable); - assert_false(wasmDesc.enumerable); - assert_true(wasmDesc.configurable); -}, "'WebAssembly' data property on global object"); - -test(() => { - const wasmDesc = Object.getOwnPropertyDescriptor(this, 'WebAssembly'); - assert_equals(WebAssembly, wasmDesc.value); - assert_equals(String(WebAssembly), "[object WebAssembly]"); -}, "'WebAssembly' object"); - -test(() => { - const compileErrorDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'CompileError'); - const linkErrorDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'LinkError'); - const runtimeErrorDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'RuntimeError'); - assert_equals(typeof compileErrorDesc.value, "function"); - assert_equals(typeof linkErrorDesc.value, "function"); - assert_equals(typeof runtimeErrorDesc.value, "function"); - assert_equals(compileErrorDesc.writable, true); - assert_equals(linkErrorDesc.writable, true); - assert_equals(runtimeErrorDesc.writable, true); - assert_equals(compileErrorDesc.enumerable, false); - assert_equals(linkErrorDesc.enumerable, false); - assert_equals(runtimeErrorDesc.enumerable, false); - assert_equals(compileErrorDesc.configurable, true); - assert_equals(linkErrorDesc.configurable, true); - assert_equals(runtimeErrorDesc.configurable, true); - - CompileError = WebAssembly.CompileError; - LinkError = WebAssembly.LinkError; - RuntimeError = WebAssembly.RuntimeError; -}, "'WebAssembly.(Compile|Link|Runtime)Error' data property"); - -test(() => { - const compileErrorDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'CompileError'); - const linkErrorDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'LinkError'); - const runtimeErrorDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'RuntimeError'); - assert_equals(CompileError, compileErrorDesc.value); - assert_equals(LinkError, linkErrorDesc.value); - assert_equals(RuntimeError, runtimeErrorDesc.value); - assert_equals(CompileError.length, 1); - assert_equals(LinkError.length, 1); - assert_equals(RuntimeError.length, 1); - assert_equals(CompileError.name, "CompileError"); - assert_equals(LinkError.name, "LinkError"); - assert_equals(RuntimeError.name, "RuntimeError"); -}, "'WebAssembly.(Compile|Runtime)Error' constructor function"); - -test(() => { - const compileError = new CompileError; - const runtimeError = new RuntimeError; - assert_equals(compileError instanceof CompileError, true); - assert_equals(runtimeError instanceof RuntimeError, true); - assert_equals(compileError instanceof Error, true); - assert_equals(runtimeError instanceof Error, true); - assert_equals(compileError instanceof TypeError, false); - assert_equals(runtimeError instanceof TypeError, false); - assert_equals(compileError.message, ""); - assert_equals(runtimeError.message, ""); -// FIXME https://bugs.webkit.org/show_bug.cgi?id=173159 assert_equals(new CompileError("hi").message, "hi"); -// FIXME https://bugs.webkit.org/show_bug.cgi?id=173159 assert_equals(new RuntimeError("hi").message, "hi"); -}, "'WebAssembly.(Compile|Runtime)Error' instance objects"); - -test(() => { - const moduleDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Module'); - assert_equals(typeof moduleDesc.value, "function"); - assert_equals(moduleDesc.writable, true); - assert_equals(moduleDesc.enumerable, false); - assert_equals(moduleDesc.configurable, true); - Module = WebAssembly.Module; -}, "'WebAssembly.Module' data property"); - -test(() => { - const moduleDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Module'); - assert_equals(Module, moduleDesc.value); - assert_equals(Module.length, 1); - assert_equals(Module.name, "Module"); - assertThrows(() => Module(), TypeError); - assertThrows(() => new Module(), TypeError); - assertThrows(() => new Module(undefined), TypeError); - assertThrows(() => new Module(1), TypeError); - assertThrows(() => new Module({}), TypeError); - assertThrows(() => new Module(new Uint8Array()), CompileError); - assertThrows(() => new Module(new ArrayBuffer()), CompileError); - assert_equals(new Module(emptyModuleBinary) instanceof Module, true); - assert_equals(new Module(new Uint8Array(emptyModuleBinary)) instanceof Module, true); -}, "'WebAssembly.Module' constructor function"); - -test(() => { - const moduleProtoDesc = Object.getOwnPropertyDescriptor(Module, 'prototype'); - assert_equals(typeof moduleProtoDesc.value, "object"); - assert_equals(moduleProtoDesc.writable, false); - assert_equals(moduleProtoDesc.enumerable, false); - assert_equals(moduleProtoDesc.configurable, false); -}, "'WebAssembly.Module.prototype' data property"); - -test(() => { - const moduleProtoDesc = Object.getOwnPropertyDescriptor(Module, 'prototype'); - const moduleProto = Module.prototype; - assert_equals(moduleProto, moduleProtoDesc.value); - assert_equals(String(moduleProto), "[object WebAssembly.Module]"); - assert_equals(Object.getPrototypeOf(moduleProto), Object.prototype); -}, "'WebAssembly.Module.prototype' object"); - -test(() => { - const moduleProto = Module.prototype; - emptyModule = new Module(emptyModuleBinary); - exportingModule = new Module(exportingModuleBinary); - importingModule = new Module(importingModuleBinary); - assert_equals(typeof emptyModule, "object"); - assert_equals(String(emptyModule), "[object WebAssembly.Module]"); - assert_equals(Object.getPrototypeOf(emptyModule), moduleProto); -}, "'WebAssembly.Module' instance objects"); - -test(() => { - const moduleImportsDesc = Object.getOwnPropertyDescriptor(Module, 'imports'); - assert_equals(typeof moduleImportsDesc.value, "function"); - assert_equals(moduleImportsDesc.writable, true); - assert_equals(moduleImportsDesc.enumerable, false); - assert_equals(moduleImportsDesc.configurable, true); -}, "'WebAssembly.Module.imports' data property"); - -test(() => { - const moduleImportsDesc = Object.getOwnPropertyDescriptor(Module, 'imports'); - const moduleImports = moduleImportsDesc.value; - assert_equals(moduleImports.length, 1); - assertThrows(() => moduleImports(), TypeError); - assertThrows(() => moduleImports(undefined), TypeError); - assertThrows(() => moduleImports({}), TypeError); - var arr = moduleImports(emptyModule); - assert_equals(arr instanceof Array, true); - assert_equals(arr.length, 0); - var arr = moduleImports(new Module(complexImportingModuleBinary)); - assert_equals(arr instanceof Array, true); - assert_equals(arr.length, 4); - assert_equals(arr[0].kind, "function"); - assert_equals(arr[0].module, "a"); - assert_equals(arr[0].name, "b"); - assert_equals(arr[1].kind, "memory"); - assert_equals(arr[1].module, "c"); - assert_equals(arr[1].name, "d"); - assert_equals(arr[2].kind, "table"); - assert_equals(arr[2].module, "e"); - assert_equals(arr[2].name, "f"); - assert_equals(arr[3].kind, "global"); - assert_equals(arr[3].module, "g"); - assert_equals(arr[3].name, "âš¡"); -}, "'WebAssembly.Module.imports' method"); - -test(() => { - const moduleExportsDesc = Object.getOwnPropertyDescriptor(Module, 'exports'); - assert_equals(typeof moduleExportsDesc.value, "function"); - assert_equals(moduleExportsDesc.writable, true); - assert_equals(moduleExportsDesc.enumerable, false); - assert_equals(moduleExportsDesc.configurable, true); -}, "'WebAssembly.Module.exports' data property"); - -test(() => { - const moduleExportsDesc = Object.getOwnPropertyDescriptor(Module, 'exports'); - const moduleExports = moduleExportsDesc.value; - assert_equals(moduleExports.length, 1); - assertThrows(() => moduleExports(), TypeError); - assertThrows(() => moduleExports(undefined), TypeError); - assertThrows(() => moduleExports({}), TypeError); - var arr = moduleExports(emptyModule); - assert_equals(arr instanceof Array, true); - assert_equals(arr.length, 0); - var arr = moduleExports(new Module(complexExportingModuleBinary)); - assert_equals(arr instanceof Array, true); - assert_equals(arr.length, 4); - assert_equals(arr[0].kind, "function"); - assert_equals(arr[0].name, "a"); - assert_equals(arr[1].kind, "memory"); - assert_equals(arr[1].name, "b"); - assert_equals(arr[2].kind, "table"); - assert_equals(arr[2].name, "c"); - assert_equals(arr[3].kind, "global"); - assert_equals(arr[3].name, "âš¡"); -}, "'WebAssembly.Module.exports' method"); - -test(() => { - const customSectionsDesc = Object.getOwnPropertyDescriptor(Module, 'customSections'); - assert_equals(typeof customSectionsDesc.value, "function"); - assert_equals(customSectionsDesc.writable, true); - assert_equals(customSectionsDesc.enumerable, false); - assert_equals(customSectionsDesc.configurable, true); -}, "'WebAssembly.Module.customSections' data property"); - -test(() => { - const customSectionsDesc = Object.getOwnPropertyDescriptor(Module, 'customSections'); - const moduleCustomSections = customSectionsDesc.value; - assert_equals(moduleCustomSections.length, 2); - assertThrows(() => moduleCustomSections(), TypeError); - assertThrows(() => moduleCustomSections(undefined), TypeError); - assertThrows(() => moduleCustomSections({}), TypeError); - var arr = moduleCustomSections(emptyModule); - assert_equals(arr instanceof Array, true); - assert_equals(arr.length, 0); -}, "'WebAssembly.Module.customSections' method"); - -test(() => { - const instanceDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Instance'); - assert_equals(typeof instanceDesc.value, "function"); - assert_equals(instanceDesc.writable, true); - assert_equals(instanceDesc.enumerable, false); - assert_equals(instanceDesc.configurable, true); - Instance = WebAssembly.Instance; -}, "'WebAssembly.Instance' data property"); - -test(() => { - const instanceDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Instance'); - assert_equals(Instance, instanceDesc.value); - assert_equals(Instance.length, 1); - assert_equals(Instance.name, "Instance"); - assertThrows(() => Instance(), TypeError); - assertThrows(() => new Instance(1), TypeError); - assertThrows(() => new Instance({}), TypeError); - assertThrows(() => new Instance(emptyModule, null), TypeError); - assertThrows(() => new Instance(importingModule, null), TypeError); - assertThrows(() => new Instance(importingModule, undefined), TypeError); - assertThrows(() => new Instance(importingModule, {}), TypeError); - assertThrows(() => new Instance(importingModule, {"":{g:()=>{}}}), LinkError); - assertThrows(() => new Instance(importingModule, {t:{f:()=>{}}}), TypeError); - assert_equals(new Instance(emptyModule) instanceof Instance, true); - assert_equals(new Instance(emptyModule, {}) instanceof Instance, true); -}, "'WebAssembly.Instance' constructor function"); - -test(() => { - const instanceProtoDesc = Object.getOwnPropertyDescriptor(Instance, 'prototype'); - assert_equals(typeof instanceProtoDesc.value, "object"); - assert_equals(instanceProtoDesc.writable, false); - assert_equals(instanceProtoDesc.enumerable, false); - assert_equals(instanceProtoDesc.configurable, false); -}, "'WebAssembly.Instance.prototype' data property"); - -test(() => { - instanceProto = Instance.prototype; - const instanceProtoDesc = Object.getOwnPropertyDescriptor(Instance, 'prototype'); - assert_equals(instanceProto, instanceProtoDesc.value); - assert_equals(String(instanceProto), "[object WebAssembly.Instance]"); - assert_equals(Object.getPrototypeOf(instanceProto), Object.prototype); -}, "'WebAssembly.Instance.prototype' object"); - -test(() => { - const instanceProto = Instance.prototype; - exportingInstance = new Instance(exportingModule); - assert_equals(typeof exportingInstance, "object"); - assert_equals(String(exportingInstance), "[object WebAssembly.Instance]"); - assert_equals(Object.getPrototypeOf(exportingInstance), instanceProto); -}, "'WebAssembly.Instance' instance objects"); - -test(() => { - const exportsDesc = Object.getOwnPropertyDescriptor(instanceProto, 'exports'); - assert_equals(typeof exportsDesc.get, "function"); - assert_equals(exportsDesc.set, undefined); - assert_equals(exportsDesc.enumerable, false); - assert_equals(exportsDesc.configurable, true); - const exportsGetter = exportsDesc.get; - assertThrows(() => exportsGetter.call(), TypeError); - assertThrows(() => exportsGetter.call({}), TypeError); - assert_equals(typeof exportsGetter.call(exportingInstance), "object"); -}, "'WebAssembly.Instance.prototype.exports' accessor property"); - -test(() => { - exportsObj = exportingInstance.exports; - assert_equals(typeof exportsObj, "object"); - assert_equals(Object.isExtensible(exportsObj), false); - assert_equals(Object.getPrototypeOf(exportsObj), null); - assert_equals(Object.keys(exportsObj).join(), "f"); - exportsObj.g = 1; - assert_equals(Object.keys(exportsObj).join(), "f"); - assertThrows(() => Object.setPrototypeOf(exportsObj, {}), TypeError); - assert_equals(Object.getPrototypeOf(exportsObj), null); - assertThrows(() => Object.defineProperty(exportsObj, 'g', {}), TypeError); - assert_equals(Object.keys(exportsObj).join(), "f"); -}, "exports object"); - -test(() => { - const f = exportsObj.f; - assert_equals(f instanceof Function, true); - assert_equals(f.length, 0); - assert_equals('name' in f, true); - assert_equals(Function.prototype.call.call(f), 42); - assertThrows(() => new f(), TypeError); -}, "Exported WebAssembly functions"); - -test(() => { - const memoryDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Memory'); - assert_equals(typeof memoryDesc.value, "function"); - assert_equals(memoryDesc.writable, true); - assert_equals(memoryDesc.enumerable, false); - assert_equals(memoryDesc.configurable, true); - Memory = WebAssembly.Memory; -}, "'WebAssembly.Memory' data property"); - -test(() => { - const memoryDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Memory'); - assert_equals(Memory, memoryDesc.value); - assert_equals(Memory.length, 1); - assert_equals(Memory.name, "Memory"); - assertThrows(() => Memory(), TypeError); - assertThrows(() => new Memory(1), TypeError); - assertThrows(() => new Memory({initial:{valueOf() { throw new Error("here")}}}), Error); - assertThrows(() => new Memory({initial:-1}), RangeError); - assertThrows(() => new Memory({initial:Math.pow(2,32)}), RangeError); - assertThrows(() => new Memory({initial:1, maximum: Math.pow(2,32)/Math.pow(2,14) }), RangeError); - assertThrows(() => new Memory({initial:2, maximum:1 }), RangeError); - assertThrows(() => new Memory({maximum: -1 }), RangeError); - assert_equals(new Memory({initial:1}) instanceof Memory, true); - assert_equals(new Memory({initial:1.5}).buffer.byteLength, WasmPage); -}, "'WebAssembly.Memory' constructor function"); - -test(() => { - const memoryProtoDesc = Object.getOwnPropertyDescriptor(Memory, 'prototype'); - assert_equals(typeof memoryProtoDesc.value, "object"); - assert_equals(memoryProtoDesc.writable, false); - assert_equals(memoryProtoDesc.enumerable, false); - assert_equals(memoryProtoDesc.configurable, false); -}, "'WebAssembly.Memory.prototype' data property"); - -test(() => { - memoryProto = Memory.prototype; - const memoryProtoDesc = Object.getOwnPropertyDescriptor(Memory, 'prototype'); - assert_equals(memoryProto, memoryProtoDesc.value); - assert_equals(String(memoryProto), "[object WebAssembly.Memory]"); - assert_equals(Object.getPrototypeOf(memoryProto), Object.prototype); -}, "'WebAssembly.Memory.prototype' object"); - -test(() => { - mem1 = new Memory({initial:1}); - assert_equals(typeof mem1, "object"); - assert_equals(String(mem1), "[object WebAssembly.Memory]"); - assert_equals(Object.getPrototypeOf(mem1), memoryProto); -}, "'WebAssembly.Memory' instance objects"); - -test(() => { - const bufferDesc = Object.getOwnPropertyDescriptor(memoryProto, 'buffer'); - assert_equals(typeof bufferDesc.get, "function"); - assert_equals(bufferDesc.set, undefined); - assert_equals(bufferDesc.enumerable, false); - assert_equals(bufferDesc.configurable, true); -}, "'WebAssembly.Memory.prototype.buffer' accessor property"); - -test(() => { - const bufferDesc = Object.getOwnPropertyDescriptor(memoryProto, 'buffer'); - const bufferGetter = bufferDesc.get; - assertThrows(() => bufferGetter.call(), TypeError); - assertThrows(() => bufferGetter.call({}), TypeError); - assert_equals(bufferGetter.call(mem1) instanceof ArrayBuffer, true); - assert_equals(bufferGetter.call(mem1).byteLength, WasmPage); -}, "'WebAssembly.Memory.prototype.buffer' getter"); - -test(() => { - const memGrowDesc = Object.getOwnPropertyDescriptor(memoryProto, 'grow'); - assert_equals(typeof memGrowDesc.value, "function"); - assert_equals(memGrowDesc.enumerable, false); - assert_equals(memGrowDesc.configurable, true); -}, "'WebAssembly.Memory.prototype.grow' data property"); - -test(() => { - const memGrowDesc = Object.getOwnPropertyDescriptor(memoryProto, 'grow'); - const memGrow = memGrowDesc.value; - assert_equals(memGrow.length, 1); - assertThrows(() => memGrow.call(), TypeError); - assertThrows(() => memGrow.call({}), TypeError); - assertThrows(() => memGrow.call(mem1, -1), RangeError); - assertThrows(() => memGrow.call(mem1, Math.pow(2,32)), RangeError); - var mem = new Memory({initial:1, maximum:2}); - var buf = mem.buffer; - assert_equals(buf.byteLength, WasmPage); - assert_equals(mem.grow(0), 1); - assert_equals(buf !== mem.buffer, true); - assert_equals(buf.byteLength, 0); - buf = mem.buffer; - assert_equals(buf.byteLength, WasmPage); - assert_equals(mem.grow(1), 1); - assert_equals(buf !== mem.buffer, true); - assert_equals(buf.byteLength, 0); - buf = mem.buffer; - assert_equals(buf.byteLength, 2 * WasmPage); - assertThrows(() => mem.grow(1), Error); - assert_equals(buf, mem.buffer); -}, "'WebAssembly.Memory.prototype.grow' method"); - -test(() => { - const tableDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Table'); - assert_equals(typeof tableDesc.value, "function"); - assert_equals(tableDesc.writable, true); - assert_equals(tableDesc.enumerable, false); - assert_equals(tableDesc.configurable, true); - Table = WebAssembly.Table; -}, "'WebAssembly.Table' data property"); - -test(() => { - const tableDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'Table'); - assert_equals(Table, tableDesc.value); - assert_equals(Table.length, 1); - assert_equals(Table.name, "Table"); - assertThrows(() => Table(), TypeError); - assertThrows(() => new Table(1), TypeError); - assertThrows(() => new Table({initial:1, element:1}), TypeError); - assertThrows(() => new Table({initial:1, element:"any"}), TypeError); - assertThrows(() => new Table({initial:1, element:{valueOf() { return "anyfunc" }}}), TypeError); - assertThrows(() => new Table({initial:{valueOf() { throw new Error("here")}}, element:"anyfunc"}), Error); - assertThrows(() => new Table({initial:-1, element:"anyfunc"}), RangeError); - assertThrows(() => new Table({initial:Math.pow(2,32), element:"anyfunc"}), RangeError); - assertThrows(() => new Table({initial:2, maximum:1, element:"anyfunc"}), RangeError); - assertThrows(() => new Table({initial:2, maximum:Math.pow(2,32), element:"anyfunc"}), RangeError); - assert_equals(new Table({initial:1, element:"anyfunc"}) instanceof Table, true); - assert_equals(new Table({initial:1.5, element:"anyfunc"}) instanceof Table, true); - assert_equals(new Table({initial:1, maximum:1.5, element:"anyfunc"}) instanceof Table, true); - assert_equals(new Table({initial:1, maximum:Math.pow(2,32)-1, element:"anyfunc"}) instanceof Table, true); -}, "'WebAssembly.Table' constructor function"); - -test(() => { - const tableProtoDesc = Object.getOwnPropertyDescriptor(Table, 'prototype'); - assert_equals(typeof tableProtoDesc.value, "object"); - assert_equals(tableProtoDesc.writable, false); - assert_equals(tableProtoDesc.enumerable, false); - assert_equals(tableProtoDesc.configurable, false); -}, "'WebAssembly.Table.prototype' data property"); - -test(() => { - const tableProtoDesc = Object.getOwnPropertyDescriptor(Table, 'prototype'); - tableProto = Table.prototype; - assert_equals(tableProto, tableProtoDesc.value); - assert_equals(String(tableProto), "[object WebAssembly.Table]"); - assert_equals(Object.getPrototypeOf(tableProto), Object.prototype); -}, "'WebAssembly.Table.prototype' object"); - -test(() => { - tbl1 = new Table({initial:2, element:"anyfunc"}); - assert_equals(typeof tbl1, "object"); - assert_equals(String(tbl1), "[object WebAssembly.Table]"); - assert_equals(Object.getPrototypeOf(tbl1), tableProto); -}, "'WebAssembly.Table' instance objects"); - -test(() => { - const lengthDesc = Object.getOwnPropertyDescriptor(tableProto, 'length'); - assert_equals(typeof lengthDesc.get, "function"); - assert_equals(lengthDesc.set, undefined); - assert_equals(lengthDesc.enumerable, false); - assert_equals(lengthDesc.configurable, true); -}, "'WebAssembly.Table.prototype.length' accessor data property"); - -test(() => { - const lengthDesc = Object.getOwnPropertyDescriptor(tableProto, 'length'); - const lengthGetter = lengthDesc.get; - assert_equals(lengthGetter.length, 0); - assertThrows(() => lengthGetter.call(), TypeError); - assertThrows(() => lengthGetter.call({}), TypeError); - assert_equals(typeof lengthGetter.call(tbl1), "number"); - assert_equals(lengthGetter.call(tbl1), 2); -}, "'WebAssembly.Table.prototype.length' getter"); - -test(() => { - const getDesc = Object.getOwnPropertyDescriptor(tableProto, 'get'); - assert_equals(typeof getDesc.value, "function"); - assert_equals(getDesc.enumerable, false); - assert_equals(getDesc.configurable, true); -}, "'WebAssembly.Table.prototype.get' data property"); - -test(() => { - const getDesc = Object.getOwnPropertyDescriptor(tableProto, 'get'); - const get = getDesc.value; - assert_equals(get.length, 1); - assertThrows(() => get.call(), TypeError); - assertThrows(() => get.call({}), TypeError); - assert_equals(get.call(tbl1, 0), null); - assert_equals(get.call(tbl1, 1), null); - assert_equals(get.call(tbl1, 1.5), null); - assertThrows(() => get.call(tbl1, 2), RangeError); - assertThrows(() => get.call(tbl1, 2.5), RangeError); - assertThrows(() => get.call(tbl1, -1), RangeError); - assertThrows(() => get.call(tbl1, Math.pow(2,33)), RangeError); - assertThrows(() => get.call(tbl1, {valueOf() { throw new Error("hi") }}), Error); -}, "'WebAssembly.Table.prototype.get' method"); - -test(() => { - const setDesc = Object.getOwnPropertyDescriptor(tableProto, 'set'); - assert_equals(typeof setDesc.value, "function"); - assert_equals(setDesc.enumerable, false); - assert_equals(setDesc.configurable, true); -}, "'WebAssembly.Table.prototype.set' data property"); - -test(() => { - const setDesc = Object.getOwnPropertyDescriptor(tableProto, 'set'); - const set = setDesc.value; - assert_equals(set.length, 2); - assertThrows(() => set.call(), TypeError); - assertThrows(() => set.call({}), TypeError); - assertThrows(() => set.call(tbl1, 0), TypeError); - assertThrows(() => set.call(tbl1, 2, null), RangeError); - assertThrows(() => set.call(tbl1, -1, null), RangeError); - assertThrows(() => set.call(tbl1, Math.pow(2,33), null), RangeError); - assertThrows(() => set.call(tbl1, 0, undefined), TypeError); - assertThrows(() => set.call(tbl1, 0, {}), TypeError); - assertThrows(() => set.call(tbl1, 0, function() {}), TypeError); - assertThrows(() => set.call(tbl1, 0, Math.sin), TypeError); - assertThrows(() => set.call(tbl1, {valueOf() { throw Error("hai") }}, null), Error); - assert_equals(set.call(tbl1, 0, null), undefined); - assert_equals(set.call(tbl1, 1, null), undefined); -}, "'WebAssembly.Table.prototype.set' method"); - -test(() => { - const tblGrowDesc = Object.getOwnPropertyDescriptor(tableProto, 'grow'); - assert_equals(typeof tblGrowDesc.value, "function"); - assert_equals(tblGrowDesc.enumerable, false); - assert_equals(tblGrowDesc.configurable, true); -}, "'WebAssembly.Table.prototype.grow' data property"); - -test(() => { - const tblGrowDesc = Object.getOwnPropertyDescriptor(tableProto, 'grow'); - const tblGrow = tblGrowDesc.value; - assert_equals(tblGrow.length, 1); - assertThrows(() => tblGrow.call(), TypeError); - assertThrows(() => tblGrow.call({}), TypeError); - assertThrows(() => tblGrow.call(tbl1, -1), RangeError); - assertThrows(() => tblGrow.call(tbl1, Math.pow(2,32)), RangeError); - var tbl = new Table({element:"anyfunc", initial:1, maximum:2}); - assert_equals(tbl.length, 1); - assert_equals(tbl.grow(0), 1); - assert_equals(tbl.length, 1); - assert_equals(tbl.grow(1), 1); - assert_equals(tbl.length, 2); - assertThrows(() => tbl.grow(1), Error); -}, "'WebAssembly.Table.prototype.grow' method"); - -test(() => { - assertThrows(() => WebAssembly.validate(), TypeError); - assertThrows(() => WebAssembly.validate("hi"), TypeError); - assert_true(WebAssembly.validate(emptyModuleBinary)); - assert_true(WebAssembly.validate(complexImportingModuleBinary)); - assert_false(WebAssembly.validate(moduleBinaryImporting2Memories)); - assert_false(WebAssembly.validate(moduleBinaryWithMemSectionAndMemImport)); -}, "'WebAssembly.validate' method"); - -/* FIXME https://bugs.webkit.org/show_bug.cgi?id=173180 -test(() => { - const compileDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'compile'); - assert_equals(typeof compileDesc.value, "function"); - assert_equals(compileDesc.writable, true); - assert_equals(compileDesc.enumerable, false); - assert_equals(compileDesc.configurable, true); -}, "'WebAssembly.compile' data property"); - -test(() => { - const compile = WebAssembly.compile; - const compileDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'compile'); - - assert_equals(compile, compileDesc.value); - assert_equals(compile.length, 1); - assert_equals(compile.name, "compile"); -}, "'WebAssembly.compile' function"); */ - -var num_tests = 1; -function assertCompileError(args, err) { - promise_test(() => { - return WebAssembly.compile(...args) - .then(_ => { - throw null; - }) - .catch(error => { - assert_equals(error instanceof err, true); - return Promise.resolve() - }); - }, `assertCompileError ${num_tests++}`); -} - -assertCompileError([], TypeError); -assertCompileError([undefined], TypeError); -assertCompileError([1], TypeError); -assertCompileError([{}], TypeError); -assertCompileError([new Uint8Array()], CompileError); -assertCompileError([new ArrayBuffer()], CompileError); -// FIXME: https://github.com/WebAssembly/spec/pull/503 -//assertCompileError([new Uint8Array("hi!")], CompileError); -//assertCompileError([new ArrayBuffer("hi!")], CompileError); - -num_tests = 1; -function assertCompileSuccess(bytes) { - promise_test(() => { - return WebAssembly.compile(bytes) - .then(module => { - assert_equals(module instanceof Module, true); - }); - }, `assertCompileSuccess ${num_tests++}`); -} - -assertCompileSuccess(emptyModuleBinary); -assertCompileSuccess(new Uint8Array(emptyModuleBinary)); - -/* FIXME https://bugs.webkit.org/show_bug.cgi?id=173180 -test(() => { - const instantiateDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'instantiate'); - assert_equals(typeof instantiateDesc.value, "function"); - assert_equals(instantiateDesc.writable, true); - assert_equals(instantiateDesc.enumerable, false); - assert_equals(instantiateDesc.configurable, true); -}, "'WebAssembly.instantiate' data property");*/ - -test(() => { - const instantiateDesc = Object.getOwnPropertyDescriptor(WebAssembly, 'instantiate'); - const instantiate = WebAssembly.instantiate; -/* FIXME https://bugs.webkit.org/show_bug.cgi?id=173180 - assert_equals(instantiate, instantiateDesc.value); - assert_equals(instantiate.length, 1); - assert_equals(instantiate.name, "instantiate");*/ - function assertInstantiateError(args, err) { - promise_test(() => { - return instantiate(...args) - .then(m => { - throw null; - }) - .catch(error => { - assert_equals(error instanceof err, true); - }) - }, 'unexpected success in assertInstantiateError'); - } - var scratch_memory = new WebAssembly.Memory({initial:1}); - var scratch_table = new WebAssembly.Table({element:"anyfunc", initial:1, maximum:1}); - assertInstantiateError([], TypeError); - assertInstantiateError([undefined], TypeError); - assertInstantiateError([1], TypeError); - assertInstantiateError([{}], TypeError); - assertInstantiateError([new Uint8Array()], CompileError); - assertInstantiateError([new ArrayBuffer()], CompileError); -// FIXME: https://github.com/WebAssembly/spec/pull/503 -// assertInstantiateError([new Uint8Array("hi!")], CompileError); -// assertInstantiateError([new ArrayBuffer("hi!")], CompileError); - assertInstantiateError([importingModule], TypeError); - assertInstantiateError([importingModule, null], TypeError); - assertInstantiateError([importingModuleBinary, null], TypeError); - assertInstantiateError([emptyModule, null], TypeError); - assertInstantiateError([importingModuleBinary, null], TypeError); - assertInstantiateError([importingModuleBinary, undefined], TypeError); - assertInstantiateError([importingModuleBinary, {}], TypeError); - assertInstantiateError([importingModuleBinary, {"":{g:()=>{}}}], LinkError); - assertInstantiateError([importingModuleBinary, {t:{f:()=>{}}}], TypeError); - assertInstantiateError([complexImportingModuleBinary, null], TypeError); - assertInstantiateError([complexImportingModuleBinary, undefined], TypeError); - assertInstantiateError([complexImportingModuleBinary, {}], TypeError); - assertInstantiateError([complexImportingModuleBinary, {"c": {"d": scratch_memory}}], TypeError); - - function assertInstantiateSuccess(module, imports) { - promise_test(()=> { - return instantiate(module, imports) - .then(result => { - if (module instanceof Module) { - assert_equals(result instanceof Instance, true); - } else { - assert_equals(result.module instanceof Module, true); - assert_equals(result.instance instanceof Instance, true); - var desc = Object.getOwnPropertyDescriptor(result, 'module'); - assert_equals(desc.writable, true); - assert_equals(desc.enumerable, true); - assert_equals(desc.configurable, true); - desc = Object.getOwnPropertyDescriptor(result, 'instance'); - assert_equals(desc.writable, true); - assert_equals(desc.enumerable, true); - assert_equals(desc.configurable, true); - } - })}, 'unexpected failure in assertInstantiateSuccess'); - } - assertInstantiateSuccess(emptyModule); - assertInstantiateSuccess(emptyModuleBinary); - assertInstantiateSuccess(new Uint8Array(emptyModuleBinary)); - assertInstantiateSuccess(importingModule, {"":{f:()=>{}}}); - assertInstantiateSuccess(importingModuleBinary, {"":{f:()=>{}}}); - assertInstantiateSuccess(new Uint8Array(importingModuleBinary), {"":{f:()=>{}}}); - assertInstantiateSuccess(complexImportingModuleBinary, { - a:{b:()=>{}}, - c:{d:scratch_memory}, - e:{f:scratch_table}, - g:{'âš¡':1}}); -}, "'WebAssembly.instantiate' function"); - -})(); diff --git a/implementation-contributed/javascriptcore/wasm/stress/oom.js b/implementation-contributed/javascriptcore/wasm/stress/oom.js deleted file mode 100644 index c00bc653e1460a0bafe31094752552216b95feba..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/stress/oom.js +++ /dev/null @@ -1,25 +0,0 @@ -// We don't need N versions of this simultaneously filling up RAM. -//@ skip - -const verbose = false; - -// Use a full 4GiB so that exhaustion is likely to occur faster. We're not -// guaranteed that we'll get that much virtually allocated to the memory so we -// can't actually check that exhaustion occurs at a particular number of -// memories. -const maximumPages = 65536; - -let memories = []; -try { - while (true) { - let m = new WebAssembly.Memory({ initial: 64, maximum: maximumPages }); - memories.push(m); - if (verbose) - print(`${WebAssemblyMemoryMode(m)} ${memories.length}`); - } -} catch (e) { - if (verbose) - print(`Caught: ${e}`); - if (e.message !== "Out of memory") - throw new Error(`Expected an out of memory error, got ${e} of type ${typeof e}`); -} diff --git a/implementation-contributed/javascriptcore/wasm/tier-up/js-to-wasm.js b/implementation-contributed/javascriptcore/wasm/tier-up/js-to-wasm.js deleted file mode 100644 index a93913970a4a50d2626ec1ba625dd20df8c32de6..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/tier-up/js-to-wasm.js +++ /dev/null @@ -1,25 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -async function test() { - let builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: [], ret: "i32" }) - .I32Const(42) - .Return() - .End() - .End(); - - const bin = builder.WebAssembly().get(); - const {instance} = await WebAssembly.instantiate(bin, {}); - - for (let i = 0; i < 1000000; i++) - assert.eq(instance.exports.foo(), 42); -} - -assert.asyncTest(test()); diff --git a/implementation-contributed/javascriptcore/wasm/tier-up/wasm-to-wasm.js b/implementation-contributed/javascriptcore/wasm/tier-up/wasm-to-wasm.js deleted file mode 100644 index 227d90d7f94584450ba24017313522d487d8cbd4..0000000000000000000000000000000000000000 --- a/implementation-contributed/javascriptcore/wasm/tier-up/wasm-to-wasm.js +++ /dev/null @@ -1,47 +0,0 @@ -import * as assert from '../assert.js'; -import Builder from '../Builder.js'; - -async function test() { - let builder = (new Builder()) - .Type().End() - .Function().End() - .Export() - .Function("foo") - .End() - .Code() - .Function("foo", { params: ["i32"], ret: "i32" }, ["i32"]) - .Block("i32") - .Loop("i32", b => - b.GetLocal(1) - .GetLocal(0) - .I32Eqz() - .BrIf(1) - - .Call(1) - .GetLocal(1) - .I32Add() - .SetLocal(1) - .GetLocal(0) - .I32Const(1) - .I32Sub() - .SetLocal(0) - .Br(0) - - ) - .End() - .End() - .Function("bar", { params: [], ret: "i32" }) - .I32Const(42) - .Return() - .End() - .End() - - const bin = builder.WebAssembly().get(); - const {instance} = await WebAssembly.instantiate(bin, {}); - - const iters = 100000 - for (let i = 0; i < 100; i++) - assert.eq(instance.exports.foo(iters), 42 * iters); -} - -assert.asyncTest(test());