array A_nextFree173 integer A_firstFree153 integer A_maxIndex219 array A_typeId142 integer A_firstFree153 = 0 integer A_maxIndex219 = 0 function initGlobals160() { } function main420() { local integer a202 initGlobals160(); a_202 = new_B172(); if (A_typeId_142[a_202] == 2) { testSuccess374(); } else { }; } function config116() { } IS_NATIVE function testSuccess374() { } function new_B172() returns integer { local integer this114 local integer this197 if (A_firstFree_153 == 0) { if (A_maxIndex_219 < 32768) { A_maxIndex_219 = (A_maxIndex_219 + 1); this_197 = A_maxIndex_219; A_typeId_142[this_197] = 2; } else { error465("Out of memory: Could not create B."); this_197 = 0; }; } else { A_firstFree_153 = (A_firstFree_153 - 1); this_197 = A_nextFree_173[A_firstFree_153]; A_typeId_142[this_197] = 2; }; this_114 = this_197; return this_114; } function error465(string msg909) { $debugPrint104((msg_909 + (" " + #getStackTrace()))); }