blob: 7788b9aaa8381d3439bd7d8965c3df34682be667 [file] [log] [blame]
function f(a,b) {
var result = 0;
for (var i = 0; i < 1000; i++)
result = (result + Math.imul(a,b)) | 0
return result;
}
var result = 0;
for (var i = 0; i < 1000; i++)
result = result + f(result | 1, i+0.5) ^ f(i+1.3, result | 1);
if (result != -1567919232)
throw "Bad result: " + result;