array I_nextFree107 integer I_firstFree195 integer I_maxIndex180 integer I_firstFree195 = 0 integer I_maxIndex180 = 0 function initGlobals634() { } function main913() { initGlobals634(); init_test361(); } function config153() { } function init_test361() { local integer a147 a_147 = new_C625(); if (((a_147 castTo integer) castTo integer) == a_147) { testSuccess192(); } else { }; } IS_NATIVE function testSuccess192() { } function C_init207(integer this208) { } function new_C625() returns integer { local integer this709 this_709 = alloc_C149(); construct_C126(this_709); return this_709; } function construct_C126(integer this747) { C_init207(this_747); } function error193(string msg101) { $debugPrint541((msg_101 + (" " + #getStackTrace()))); } function alloc_C149() returns integer { local integer this192 if (I_firstFree_195 == 0) { if (I_maxIndex_180 < 32768) { I_maxIndex_180 = (I_maxIndex_180 + 1); this_192 = I_maxIndex_180; } else { error193("Out of memory: Could not create C."); this_192 = 0; }; } else { I_firstFree_195 = (I_firstFree_195 - 1); this_192 = I_nextFree_107[I_firstFree_195]; }; return this_192; }