array I_nextFree195 integer I_firstFree110 integer I_maxIndex172 integer I_firstFree110 = 0 integer I_maxIndex172 = 0 function initGlobals148() { I_firstFree_110 = 0; I_maxIndex_172 = 0; } function main156() { initGlobals148(); init_test150(); } function config278() { } function init_test150() { local integer a207 local integer b496 local integer c201 a_207 = new_C202(); b_496 = (a_207 castTo integer); c_201 = (b_496 castTo integer); if (c_201 == a_207) { testSuccess130(); } else { }; } IS_NATIVE function testSuccess130() { } function C_init204(integer this459) { } function new_C202() returns integer { local integer this697 this_697 = alloc_C847(); construct_C139(this_697); return this_697; } function construct_C139(integer this120) { C_init204(this_120); } function error170(string msg194) { $debugPrint196((msg_194 + (" " + #getStackTrace()))); } function alloc_C847() returns integer { local integer this138 if (I_firstFree_110 == 0) { if (I_maxIndex_172 < 32768) { I_maxIndex_172 = (I_maxIndex_172 + 1); this_138 = I_maxIndex_172; } else { error170("Out of memory: Could not create C."); this_138 = 0; }; } else { I_firstFree_110 = (I_firstFree_110 - 1); this_138 = I_nextFree_195[I_firstFree_110]; }; return this_138; }