blob: 3680bfd5e0255ca0c7fe50d47a3ce381296ec8ee [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.5; i < 1000; i++)
result = result ^ f(i, i);
if (result != 574687104)
throw "Bad result: " + result;