array A_nextFree139 integer A_firstFree179 integer A_maxIndex187 array A_typeId162 integer A_firstFree179 = 0 integer A_maxIndex187 = 0 function initGlobals137() { } function main384() { local integer this621 initGlobals137(); this_621 = new_A164(); if (A_typeId_162[this_621] == 0) { if (this_621 == 0) { error153("Nullpointer exception when calling A.foo"); } else { error153("Called A.foo on invalid object."); }; } else { }; } function config863() { } function new_A164() returns integer { local integer this500 if (A_firstFree_179 == 0) { if (A_maxIndex_187 < 32768) { A_maxIndex_187 = (A_maxIndex_187 + 1); this_500 = A_maxIndex_187; A_typeId_162[this_500] = 1; } else { error153("Out of memory: Could not create A."); this_500 = 0; }; } else { A_firstFree_179 = (A_firstFree_179 - 1); this_500 = A_nextFree_139[A_firstFree_179]; A_typeId_162[this_500] = 1; }; return this_500; } function error153(string msg557) { $debugPrint143((msg_557 + (" " + #getStackTrace()))); }