blob: 00699a971e476f0fda0be8d5296c82f0f22ec92e [file] [log] [blame]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
function foo(a,b) {
var c = (a + b) / 2;
var d = a - b;
for (var i = 0; i < 50000; ++i) {
c *= d;
c += d;
c /= d;
}
return c - d;
}
var result = 0;
for (var i = 0; i < 50; ++i) {
result += foo(5,6);
}
if (result != 2500325)
throw "Bad result: " + result;