array I_nextFree198 integer I_firstFree109 integer I_maxIndex172 array I_typeId125 array C_nextFree978 integer C_firstFree993 integer C_maxIndex377 array D_nextFree168 integer D_firstFree184 integer D_maxIndex258 integer I_firstFree109 = 0 integer I_maxIndex172 = 0 integer C_firstFree993 = 0 integer C_maxIndex377 = 0 integer D_firstFree184 = 0 integer D_maxIndex258 = 0 function initGlobals863() { } function main132() { initGlobals863(); init_Test212(); } function config167() { } function init_Test212() { local integer b105 local integer this428 b_105 = new_B202(); this_428 = b_105; new_D710(); new_C203(); if (I_typeId_125[this_428] == 0) { if (this_428 == 0) { error196("Nullpointer exception when calling I.bla"); } else { error196("Called I.bla on invalid object."); }; } else { }; } function new_B202() returns integer { local integer this529 local integer this182 if (I_firstFree_109 == 0) { if (I_maxIndex_172 < 32768) { I_maxIndex_172 = (I_maxIndex_172 + 1); this_182 = I_maxIndex_172; I_typeId_125[this_182] = 6; } else { error196("Out of memory: Could not create B."); this_182 = 0; }; } else { I_firstFree_109 = (I_firstFree_109 - 1); this_182 = I_nextFree_198[I_firstFree_109]; I_typeId_125[this_182] = 6; }; this_529 = this_182; return this_529; } function new_C203() returns integer { local integer this108 local integer this398 if (C_firstFree_993 == 0) { if (C_maxIndex_377 < 32768) { C_maxIndex_377 = (C_maxIndex_377 + 1); this_398 = C_maxIndex_377; } else { error196("Out of memory: Could not create C."); this_398 = 0; }; } else { C_firstFree_993 = (C_firstFree_993 - 1); this_398 = C_nextFree_978[C_firstFree_993]; }; this_108 = this_398; return this_108; } function new_D710() returns integer { local integer this186 local integer this116 if (D_firstFree_184 == 0) { if (D_maxIndex_258 < 32768) { D_maxIndex_258 = (D_maxIndex_258 + 1); this_116 = D_maxIndex_258; } else { error196("Out of memory: Could not create D."); this_116 = 0; }; } else { D_firstFree_184 = (D_firstFree_184 - 1); this_116 = D_nextFree_168[D_firstFree_184]; }; this_186 = this_116; return this_186; } function error196(string msg150) { $debugPrint199((msg_150 + (" " + #getStackTrace()))); }