array A_nextFree187 integer A_firstFree179 integer A_maxIndex190 array A_typeId194 integer A_firstFree179 = 0 integer A_maxIndex190 = 0 function initGlobals213() { } function main536() { local integer this145 initGlobals213(); this_145 = new_B196(); if (A_typeId_194[this_145] == 0) { if (this_145 == 0) { error288("Nullpointer exception when calling B.show"); } else { error288("Called B.show on invalid object."); }; } else { }; testSuccess185(); } function config133() { } IS_NATIVE function testSuccess185() { } function new_B196() returns integer { local integer this159 local integer this997 if (A_firstFree_179 == 0) { if (A_maxIndex_190 < 32768) { A_maxIndex_190 = (A_maxIndex_190 + 1); this_997 = A_maxIndex_190; A_typeId_194[this_997] = 2; } else { error288("Out of memory: Could not create B."); this_997 = 0; }; } else { A_firstFree_179 = (A_firstFree_179 - 1); this_997 = A_nextFree_187[A_firstFree_179]; A_typeId_194[this_997] = 2; }; this_159 = this_997; return this_159; } function error288(string msg591) { $debugPrint207((msg_591 + (" " + #getStackTrace()))); }