array A_nextFree131 integer A_firstFree753 integer A_maxIndex108 array A_typeId126 integer A_firstFree753 = 0 integer A_maxIndex108 = 0 function initGlobals159() { A_firstFree_753 = 0; A_maxIndex_108 = 0; } function main153() { initGlobals159(); init_test192(); } function config807() { } function init_test192() { local integer a728 local integer instanceOfTemp207 a_728 = new_B2a476(); instanceOfTemp_207 = A_typeId_126[a_728]; if ((instanceOfTemp_207 >= 2) and (instanceOfTemp_207 <= 10)) { testSuccess522(); } else { }; } IS_NATIVE function testSuccess522() { } function A_init869(integer this161) { } function construct_A664(integer this136) { A_init869(this_136); } function B_init194(integer this148) { } function construct_B163(integer this160) { construct_A664(this_160); B_init194(this_160); } function B2_init429(integer this346) { } function construct_B2874(integer this132) { construct_B163(this_132); B2_init429(this_132); } function B2a_init394(integer this109) { } function new_B2a476() returns integer { local integer this146 this_146 = alloc_B2a101(); construct_B2a108(this_146); return this_146; } function construct_B2a108(integer this169) { construct_B2874(this_169); B2a_init394(this_169); } function error654(string msg139) { $debugPrint141((msg_139 + (" " + #getStackTrace()))); } function alloc_B2a101() returns integer { local integer this198 if (A_firstFree_753 == 0) { if (A_maxIndex_108 < 32768) { A_maxIndex_108 = (A_maxIndex_108 + 1); this_198 = A_maxIndex_108; A_typeId_126[this_198] = 5; } else { error654("Out of memory: Could not create B2a."); this_198 = 0; }; } else { A_firstFree_753 = (A_firstFree_753 - 1); this_198 = A_nextFree_131[A_firstFree_753]; A_typeId_126[this_198] = 5; }; return this_198; }