array I_nextFree190 integer I_firstFree214 integer I_maxIndex525 array I_typeId771 array C_nextFree178 integer C_firstFree506 integer C_maxIndex131 array D_nextFree125 integer D_firstFree175 integer D_maxIndex388 integer I_firstFree214 = 0 integer I_maxIndex525 = 0 integer C_firstFree506 = 0 integer C_maxIndex131 = 0 integer D_firstFree175 = 0 integer D_maxIndex388 = 0 function initGlobals157() { } function main925() { initGlobals157(); init_Test170(); } function config180() { } function init_Test170() { local integer b180 b_180 = new_B176(); new_D217(); new_C203(); if (I_typeId_771[b_180] == 0) { if (b_180 == 0) { error686("Nullpointer exception when calling I.bla"); } else { error686("Called I.bla on invalid object."); }; } else { }; } function new_B176() returns integer { local integer this214 if (I_firstFree_214 == 0) { if (I_maxIndex_525 < 32768) { I_maxIndex_525 = (I_maxIndex_525 + 1); this_214 = I_maxIndex_525; I_typeId_771[this_214] = 5; } else { error686("Out of memory: Could not create B."); this_214 = 0; }; } else { I_firstFree_214 = (I_firstFree_214 - 1); this_214 = I_nextFree_190[I_firstFree_214]; I_typeId_771[this_214] = 5; }; return this_214; } function new_C203() returns integer { local integer this164 if (C_firstFree_506 == 0) { if (C_maxIndex_131 < 32768) { C_maxIndex_131 = (C_maxIndex_131 + 1); this_164 = C_maxIndex_131; } else { error686("Out of memory: Could not create C."); this_164 = 0; }; } else { C_firstFree_506 = (C_firstFree_506 - 1); this_164 = C_nextFree_178[C_firstFree_506]; }; return this_164; } function new_D217() returns integer { local integer this129 if (D_firstFree_175 == 0) { if (D_maxIndex_388 < 32768) { D_maxIndex_388 = (D_maxIndex_388 + 1); this_129 = D_maxIndex_388; } else { error686("Out of memory: Could not create D."); this_129 = 0; }; } else { D_firstFree_175 = (D_firstFree_175 - 1); this_129 = D_nextFree_125[D_firstFree_175]; }; return this_129; } function error686(string msg135) { $debugPrint126((msg_135 + (" " + #getStackTrace()))); }