array A_nextFree775 integer A_firstFree498 integer A_maxIndex160 array A_typeId136 integer A_firstFree498 = 0 integer A_maxIndex160 = 0 function initGlobals107() { } function main173() { local integer a138 initGlobals107(); a_138 = new_B110(); if (A_typeId_136[a_138] == 2) { testSuccess692(); } else { }; } function config328() { } IS_NATIVE function testSuccess692() { } function new_B110() returns integer { local integer this146 local integer this122 if (A_firstFree_498 == 0) { if (A_maxIndex_160 < 32768) { A_maxIndex_160 = (A_maxIndex_160 + 1); this_122 = A_maxIndex_160; A_typeId_136[this_122] = 2; } else { error748("Out of memory: Could not create B."); this_122 = 0; }; } else { A_firstFree_498 = (A_firstFree_498 - 1); this_122 = A_nextFree_775[A_firstFree_498]; A_typeId_136[this_122] = 2; }; this_146 = this_122; return this_146; } function error748(string msg145) { $debugPrint428((msg_145 + (" " + #getStackTrace()))); }