{"ScriptPreparationCode":"var as = [];\r\nvar as2 = [];\r\n(function () {\r\n function A() {\r\n this.x = Math.random();\r\n }\r\n A.prototype.y = function (){};\r\n A.prototype.z = function (){};\r\n for (var i = 0; i \u003C 15; \u002B\u002Bi) {\r\n var a = new A();\r\n as.push(a);\r\n if (a.x \u003C 0.5) {\r\n as2.push(a);\r\n }\r\n }\r\n})();","TestCases":[{"Name":"1","Code":"function f1 (run) {\r\n for (var i = 0; i \u003C as.length; \u002B\u002Bi) {\r\n if (run.length \u0026\u0026 as2.indexOf(as[1]) === -1) {\r\n as[i].y();\r\n } else {\r\n as[i].z();\r\n }\r\n }\r\n as = run.length ? as2 : as;\r\n};\r\nf1([]);\r\nf1([1]);","IsDeferred":false},{"Name":"2","Code":"function f2 (run) {\r\n if (run.length) {\r\n for (var i = 0; i \u003C as.length; \u002B\u002Bi) {\r\n if (as2.indexOf(as[1]) === -1) {\r\n as[i].y();\r\n }\r\n }\r\n as = as2;\r\n }\r\n for (var i = 0; i \u003C as.length; \u002B\u002Bi) {\r\n as[i].z();\r\n }\r\n};\r\nf2([]);\r\nf2([1]);","IsDeferred":false}]}