integer C_count281 array C_nextFree717 integer C_firstFree132 integer C_maxIndex209 array C_x132 integer C_count281 = 0 integer C_firstFree132 = 0 integer C_maxIndex209 = 0 function initGlobals125() { C_firstFree_132 = 0; C_maxIndex_209 = 0; } function main126() { initGlobals125(); init_test126(); } function config103() { } function init_test126() { local integer from143 C_count_281 = 0; from_143 = new_C722(); loop { exitwhen (not C_hasNext187(from_143)); C_next211(from_143); }; if (C_count_281 == 1) { testSuccess169(); } else { }; } IS_NATIVE function testSuccess169() { } function C_next211(integer this191) returns integer { C_x_132[this_191] = (C_x_132[this_191] + 1); return C_x_132[this_191]; } function C_hasNext187(integer this212) returns boolean { return (C_x_132[this_212] < 10); } function C_init313(integer this959) { C_x_132[this_959] = 0; } function new_C722() returns integer { local integer this204 this_204 = alloc_C189(); construct_C111(this_204); return this_204; } function construct_C111(integer this110) { C_init313(this_110); C_count_281 = (C_count_281 + 1); } function alloc_C189() returns integer { local integer this148 if (C_firstFree_132 == 0) { if (C_maxIndex_209 < 32768) { C_maxIndex_209 = (C_maxIndex_209 + 1); this_148 = C_maxIndex_209; } else { error156("Out of memory: Could not create C."); this_148 = 0; }; } else { C_firstFree_132 = (C_firstFree_132 - 1); this_148 = C_nextFree_717[C_firstFree_132]; }; return this_148; } function error156(string msg239) { $debugPrint226((msg_239 + (" " + #getStackTrace()))); }