array I_nextFree191 integer I_firstFree781 integer I_maxIndex857 array I_typeId196 array C_nextFree127 integer C_firstFree161 integer C_maxIndex508 array D_nextFree122 integer D_firstFree178 integer D_maxIndex142 integer I_firstFree781 = 0 integer I_maxIndex857 = 0 integer C_firstFree161 = 0 integer C_maxIndex508 = 0 integer D_firstFree178 = 0 integer D_maxIndex142 = 0 function initGlobals503() { } function main209() { initGlobals503(); init_Test137(); } function config107() { } function init_Test137() { local integer b288 local integer this146 b_288 = new_B196(); this_146 = b_288; new_D158(); new_C615(); if (I_typeId_196[this_146] == 0) { if (this_146 == 0) { error116("Nullpointer exception when calling I.bla"); } else { error116("Called I.bla on invalid object."); }; } else { }; } function new_B196() returns integer { local integer this211 local integer this140 if (I_firstFree_781 == 0) { if (I_maxIndex_857 < 32768) { I_maxIndex_857 = (I_maxIndex_857 + 1); this_140 = I_maxIndex_857; I_typeId_196[this_140] = 6; } else { error116("Out of memory: Could not create B."); this_140 = 0; }; } else { I_firstFree_781 = (I_firstFree_781 - 1); this_140 = I_nextFree_191[I_firstFree_781]; I_typeId_196[this_140] = 6; }; this_211 = this_140; return this_211; } function new_C615() returns integer { local integer this849 local integer this128 if (C_firstFree_161 == 0) { if (C_maxIndex_508 < 32768) { C_maxIndex_508 = (C_maxIndex_508 + 1); this_128 = C_maxIndex_508; } else { error116("Out of memory: Could not create C."); this_128 = 0; }; } else { C_firstFree_161 = (C_firstFree_161 - 1); this_128 = C_nextFree_127[C_firstFree_161]; }; this_849 = this_128; return this_849; } function new_D158() returns integer { local integer this163 local integer this158 if (D_firstFree_178 == 0) { if (D_maxIndex_142 < 32768) { D_maxIndex_142 = (D_maxIndex_142 + 1); this_158 = D_maxIndex_142; } else { error116("Out of memory: Could not create D."); this_158 = 0; }; } else { D_firstFree_178 = (D_firstFree_178 - 1); this_158 = D_nextFree_122[D_firstFree_178]; }; this_163 = this_158; return this_163; } function error116(string msg157) { $debugPrint771((msg_157 + (" " + #getStackTrace()))); }