array I_nextFree387 integer I_firstFree145 integer I_maxIndex705 array I_typeId666 array C_nextFree108 integer C_firstFree168 integer C_maxIndex125 array D_nextFree183 integer D_firstFree569 integer D_maxIndex107 integer I_firstFree145 = 0 integer I_maxIndex705 = 0 integer C_firstFree168 = 0 integer C_maxIndex125 = 0 integer D_firstFree569 = 0 integer D_maxIndex107 = 0 function initGlobals155() { } function main769() { initGlobals155(); init_Test177(); } function config151() { } function init_Test177() { local integer b261 local integer this655 b_261 = new_B129(); this_655 = b_261; new_D533(); new_C158(); if (I_typeId_666[this_655] == 0) { if (this_655 == 0) { error121("Nullpointer exception when calling I.bla"); } else { error121("Called I.bla on invalid object."); }; } else { }; } function new_B129() returns integer { local integer this924 local integer this330 if (I_firstFree_145 == 0) { if (I_maxIndex_705 < 32768) { I_maxIndex_705 = (I_maxIndex_705 + 1); this_330 = I_maxIndex_705; I_typeId_666[this_330] = 5; } else { error121("Out of memory: Could not create B."); this_330 = 0; }; } else { I_firstFree_145 = (I_firstFree_145 - 1); this_330 = I_nextFree_387[I_firstFree_145]; I_typeId_666[this_330] = 5; }; this_924 = this_330; return this_924; } function new_C158() returns integer { local integer this189 local integer this837 if (C_firstFree_168 == 0) { if (C_maxIndex_125 < 32768) { C_maxIndex_125 = (C_maxIndex_125 + 1); this_837 = C_maxIndex_125; } else { error121("Out of memory: Could not create C."); this_837 = 0; }; } else { C_firstFree_168 = (C_firstFree_168 - 1); this_837 = C_nextFree_108[C_firstFree_168]; }; this_189 = this_837; return this_189; } function new_D533() returns integer { local integer this668 local integer this121 if (D_firstFree_569 == 0) { if (D_maxIndex_107 < 32768) { D_maxIndex_107 = (D_maxIndex_107 + 1); this_121 = D_maxIndex_107; } else { error121("Out of memory: Could not create D."); this_121 = 0; }; } else { D_firstFree_569 = (D_firstFree_569 - 1); this_121 = D_nextFree_183[D_firstFree_569]; }; this_668 = this_121; return this_668; } function error121(string msg126) { $debugPrint400((msg_126 + (" " + #getStackTrace()))); }