array A_nextFree203 integer A_firstFree128 integer A_maxIndex461 array A_typeId112 integer A_firstFree128 = 0 integer A_maxIndex461 = 0 function initGlobals126() { } function main189() { local integer this129 initGlobals126(); this_129 = new_B170(); if (A_typeId_112[this_129] == 0) { if (this_129 == 0) { error426("Nullpointer exception when calling B.show"); } else { error426("Called B.show on invalid object."); }; } else { }; testSuccess223(); } function config196() { } IS_NATIVE function testSuccess223() { } function new_B170() returns integer { local integer this863 local integer this534 if (A_firstFree_128 == 0) { if (A_maxIndex_461 < 32768) { A_maxIndex_461 = (A_maxIndex_461 + 1); this_534 = A_maxIndex_461; A_typeId_112[this_534] = 2; } else { error426("Out of memory: Could not create B."); this_534 = 0; }; } else { A_firstFree_128 = (A_firstFree_128 - 1); this_534 = A_nextFree_203[A_firstFree_128]; A_typeId_112[this_534] = 2; }; this_863 = this_534; return this_863; } function error426(string msg211) { $debugPrint149((msg_211 + (" " + #getStackTrace()))); }