array A_nextFree140 integer A_firstFree813 integer A_maxIndex171 array A_typeId877 integer A_firstFree813 = 0 integer A_maxIndex171 = 0 function initGlobals899() { } function main192() { local integer this127 initGlobals899(); this_127 = new_B165(); if (A_typeId_877[this_127] == 0) { if (this_127 == 0) { error197("Nullpointer exception when calling B.show"); } else { error197("Called B.show on invalid object."); }; } else { }; testSuccess191(); } function config183() { } IS_NATIVE function testSuccess191() { } function new_B165() returns integer { local integer this655 if (A_firstFree_813 == 0) { if (A_maxIndex_171 < 32768) { A_maxIndex_171 = (A_maxIndex_171 + 1); this_655 = A_maxIndex_171; A_typeId_877[this_655] = 2; } else { error197("Out of memory: Could not create B."); this_655 = 0; }; } else { A_firstFree_813 = (A_firstFree_813 - 1); this_655 = A_nextFree_140[A_firstFree_813]; A_typeId_877[this_655] = 2; }; return this_655; } function error197(string msg292) { $debugPrint180((msg_292 + (" " + #getStackTrace()))); }