1 //@ skip if $architecture == "x86"
3 function sumOfArithSeries(limit) {
4 return limit * (limit + 1) / 2;
11 for (var i = 0; i < n; ++i) {
13 var p = {f: {f:i + 1}};
14 result += o.f.f + p.f.f;
20 if (result != sumOfArithSeries(n - 1) + sumOfArithSeries(n))
21 throw "Error: bad result: " + result;