array A_nextFree166 integer A_firstFree509 integer A_maxIndex200 array A_typeId171 integer A_firstFree509 = 0 integer A_maxIndex200 = 0 function initGlobals200() { } function main213() { local integer a197 initGlobals200(); a_197 = new_B108(); if (A_typeId_171[a_197] == 2) { testSuccess112(); } else { }; } function config189() { } IS_NATIVE function testSuccess112() { } function new_B108() returns integer { local integer this165 local integer this172 if (A_firstFree_509 == 0) { if (A_maxIndex_200 < 32768) { A_maxIndex_200 = (A_maxIndex_200 + 1); this_172 = A_maxIndex_200; A_typeId_171[this_172] = 2; } else { error165("Out of memory: Could not create B."); this_172 = 0; }; } else { A_firstFree_509 = (A_firstFree_509 - 1); this_172 = A_nextFree_166[A_firstFree_509]; A_typeId_171[this_172] = 2; }; this_165 = this_172; return this_165; } function error165(string msg136) { $debugPrint952((msg_136 + (" " + #getStackTrace()))); }