array Blub_nextFree104 integer Blub_firstFree190 integer Blub_maxIndex180 array Blub_typeId142 integer Blub_firstFree190 = 0 integer Blub_maxIndex180 = 0 function initGlobals130() { } function main212() { local integer blub137 initGlobals130(); blub_137 = new_Blub208(); if (Blub_typeId_142[blub_137] == 0) { if (blub_137 == 0) { error332("Nullpointer exception when calling Blub.foo"); } else { error332("Called Blub.foo on invalid object."); }; } else { }; } function config593() { } function new_Blub208() returns integer { local integer this170 if (Blub_firstFree_190 == 0) { if (Blub_maxIndex_180 < 32768) { Blub_maxIndex_180 = (Blub_maxIndex_180 + 1); this_170 = Blub_maxIndex_180; Blub_typeId_142[this_170] = 1; } else { error332("Out of memory: Could not create Blub."); this_170 = 0; }; } else { Blub_firstFree_190 = (Blub_firstFree_190 - 1); this_170 = Blub_nextFree_104[Blub_firstFree_190]; Blub_typeId_142[this_170] = 1; }; return this_170; } function error332(string msg112) { $debugPrint531((msg_112 + (" " + #getStackTrace()))); }