1 function foo(a, b, c, d) {
6 for (var i = b; i < c; ++i)
9 for (var i = b + 1; i < c - 1; ++i)
12 for (var i = b + 2; i < c - 2; ++i)
15 for (var i = b + 3; i < c - 3; ++i)
23 for (var i = 0; i < 20; ++i)
29 for (var i = 0; i < limit; ++i) {
30 var phase = (i * phases / limit) | 0;
31 result += foo(i % (phase + 1), ((i % array.length) / 2) | 0, array.length - (((i % array.length) / 2) | 0), array);
34 if (result != 3072367)
35 throw "Bad result: " + result;