integer C_count206 array C_nextFree495 integer C_firstFree135 integer C_maxIndex648 array C_x163 integer C_count206 = 0 integer C_firstFree135 = 0 integer C_maxIndex648 = 0 function initGlobals184() { C_firstFree_135 = 0; C_maxIndex_648 = 0; } function main165() { initGlobals184(); init_test174(); } function config713() { } function init_test174() { local integer from166 C_count_206 = 0; from_166 = new_C177(); loop { exitwhen (not C_hasNext204(from_166)); C_next152(from_166); }; if (C_count_206 == 1) { testSuccess126(); } else { }; } IS_NATIVE function testSuccess126() { } function C_next152(integer this195) returns integer { C_x_163[this_195] = (C_x_163[this_195] + 1); return C_x_163[this_195]; } function C_hasNext204(integer this276) returns boolean { return (C_x_163[this_276] < 10); } function C_init585(integer this765) { C_x_163[this_765] = 0; } function new_C177() returns integer { local integer this309 this_309 = alloc_C743(); construct_C891(this_309); return this_309; } function construct_C891(integer this135) { C_init585(this_135); C_count_206 = (C_count_206 + 1); } function alloc_C743() returns integer { local integer this129 if (C_firstFree_135 == 0) { if (C_maxIndex_648 < 32768) { C_maxIndex_648 = (C_maxIndex_648 + 1); this_129 = C_maxIndex_648; } else { error157("Out of memory: Could not create C."); this_129 = 0; }; } else { C_firstFree_135 = (C_firstFree_135 - 1); this_129 = C_nextFree_495[C_firstFree_135]; }; return this_129; } function error157(string msg101) { $debugPrint156((msg_101 + (" " + #getStackTrace()))); }