// |jit-test| error:ReferenceError

function fannkuch(n) {
   var perm1 = Array(n);
   while (true) {
      if (check < 30){
         for(var i=0; i<n; i++) s += (perm1[i]+1).toString();
         while (i < r) {
            var j = this.abstract + 1;
            perm1[i] = perm1[j];
         }
      }
   }
}
fannkuch(8);
