array I_nextFree349 integer I_firstFree166 integer I_maxIndex185 integer I_firstFree166 = 0 integer I_maxIndex185 = 0 function initGlobals118() { } function main201() { local integer a100 initGlobals118(); a_100 = new_C197(); if (((a_100 castTo integer) castTo integer) == a_100) { testSuccess136(); } else { }; } function config571() { } IS_NATIVE function testSuccess136() { } function new_C197() returns integer { local integer this198 if (I_firstFree_166 == 0) { if (I_maxIndex_185 < 32768) { I_maxIndex_185 = (I_maxIndex_185 + 1); this_198 = I_maxIndex_185; } else { error623("Out of memory: Could not create C."); this_198 = 0; }; } else { I_firstFree_166 = (I_firstFree_166 - 1); this_198 = I_nextFree_349[I_firstFree_166]; }; return this_198; } function error623(string msg871) { $debugPrint734((msg_871 + (" " + #getStackTrace()))); }