Debian Codegraph @

js/src/jit-test/tests/ion/bug1130679.js

raw
1
2 function f(x) {
3 return x >>> 0 !== Math.imul(1, x >>> 0);
4 }
5 f(0)
6 assertEq(f(-1),true)
7
8 function g(x) {
9 return 2147483647+x !== Math.imul(1, 2147483647+x);
10 }
11 g(0)
12 assertEq(g(1),true)
13
14 function h(x) {
15 if (2147483647+x !== Math.imul(1, 2147483647+x))
16 return true;
17 return (2147483647+x)|0
18 }
19 h(0)
20 assertEq(h(1), true)
21
22 function i2(x) {
23 return x === x
24 }
25 function i(x) {
26 return i2(0 / Math.sign(x > 0))
27 }
28 i(1)
29 assertEq(i(-1), false)