array C_nextFree129 integer C_firstFree179 integer C_maxIndex150 integer C_firstFree179 = 0 integer C_maxIndex150 = 0 function initGlobals413() { C_firstFree_179 = 0; C_maxIndex_150 = 0; } function main157() { initGlobals413(); init_test516(); } function config184() { } function init_test516() { local integer a186 local integer b284 a_186 = new_C149(); b_284 = identity541(a_186); if (a_186 == b_284) { testSuccess134(); } else { }; } function identity541(any a192) returns any { return a_192; } IS_NATIVE function testSuccess134() { } function C_init287(integer this688) { } function new_C149() returns integer { local integer this396 this_396 = alloc_C156(); construct_C962(this_396); return this_396; } function construct_C962(integer this865) { C_init287(this_865); } function alloc_C156() returns integer { local integer this240 if (C_firstFree_179 == 0) { if (C_maxIndex_150 < 32768) { C_maxIndex_150 = (C_maxIndex_150 + 1); this_240 = C_maxIndex_150; } else { error886("Out of memory: Could not create C."); this_240 = 0; }; } else { C_firstFree_179 = (C_firstFree_179 - 1); this_240 = C_nextFree_129[C_firstFree_179]; }; return this_240; } function error886(string msg405) { $debugPrint590((msg_405 + (" " + #getStackTrace()))); }