integer C_count115 array C_nextFree196 integer C_firstFree191 integer C_maxIndex181 array C_x161 integer C_count115 = 0 integer C_firstFree191 = 0 integer C_maxIndex181 = 0 function initGlobals447() { C_firstFree_191 = 0; C_maxIndex_181 = 0; } function main124() { initGlobals447(); init_test664(); } function config169() { } function init_test664() { local integer from520 C_count_115 = 0; from_520 = new_C566(); loop { exitwhen (not C_hasNext162(from_520)); C_next939(from_520); }; if (C_count_115 == 1) { testSuccess199(); } else { }; } IS_NATIVE function testSuccess199() { } function C_next939(integer this165) returns integer { C_x_161[this_165] = (C_x_161[this_165] + 1); return C_x_161[this_165]; } function C_hasNext162(integer this212) returns boolean { return (C_x_161[this_212] < 10); } function C_init757(integer this202) { C_x_161[this_202] = 0; } function new_C566() returns integer { local integer this168 this_168 = alloc_C847(); construct_C156(this_168); return this_168; } function construct_C156(integer this888) { C_init757(this_888); C_count_115 = (C_count_115 + 1); } function alloc_C847() returns integer { local integer this150 if (C_firstFree_191 == 0) { if (C_maxIndex_181 < 32768) { C_maxIndex_181 = (C_maxIndex_181 + 1); this_150 = C_maxIndex_181; } else { error168("Out of memory: Could not create C."); this_150 = 0; }; } else { C_firstFree_191 = (C_firstFree_191 - 1); this_150 = C_nextFree_196[C_firstFree_191]; }; return this_150; } function error168(string msg165) { $debugPrint114((msg_165 + (" " + #getStackTrace()))); }