array I_nextFree651 integer I_firstFree143 integer I_maxIndex880 integer I_firstFree143 = 0 integer I_maxIndex880 = 0 function initGlobals194() { I_firstFree_143 = 0; I_maxIndex_880 = 0; } function main124() { initGlobals194(); init_test174(); } function config108() { } function init_test174() { local integer a660 local integer b704 local integer c935 a_660 = new_C139(); b_704 = (a_660 castTo integer); c_935 = (b_704 castTo integer); if (c_935 == a_660) { testSuccess200(); } else { }; } IS_NATIVE function testSuccess200() { } function C_init110(integer this765) { } function new_C139() returns integer { local integer this380 this_380 = alloc_C735(); construct_C162(this_380); return this_380; } function construct_C162(integer this870) { C_init110(this_870); } function error140(string msg117) { $debugPrint447((msg_117 + (" " + #getStackTrace()))); } function alloc_C735() returns integer { local integer this581 if (I_firstFree_143 == 0) { if (I_maxIndex_880 < 32768) { I_maxIndex_880 = (I_maxIndex_880 + 1); this_581 = I_maxIndex_880; } else { error140("Out of memory: Could not create C."); this_581 = 0; }; } else { I_firstFree_143 = (I_firstFree_143 - 1); this_581 = I_nextFree_651[I_firstFree_143]; }; return this_581; }