integer Test_a953 array A_nextFree197 integer A_firstFree213 integer A_maxIndex161 array A_typeId231 integer Test_a953 = new_A228() integer A_firstFree213 = 0 integer A_maxIndex161 = 0 function initGlobals438() { } function main206() { initGlobals438(); Test_a_953 = new_A228(); EXECUTE foo487(); } function config115() { } IS_NATIVE function testSuccess168() { } function foo487() { local integer this197 this_197 = Test_a_953; if (A_typeId_231[this_197] == 0) { if (this_197 == 0) { error987("Nullpointer exception when calling A.bar"); } else { error987("Called A.bar on invalid object."); }; } else { }; testSuccess168(); } function new_A228() returns integer { local integer this130 if (A_firstFree_213 == 0) { if (A_maxIndex_161 < 32768) { A_maxIndex_161 = (A_maxIndex_161 + 1); this_130 = A_maxIndex_161; A_typeId_231[this_130] = 1; } else { error987("Out of memory: Could not create A."); this_130 = 0; }; } else { A_firstFree_213 = (A_firstFree_213 - 1); this_130 = A_nextFree_197[A_firstFree_213]; A_typeId_231[this_130] = 1; }; return this_130; } function error987(string msg426) { $debugPrint912((msg_426 + (" " + #getStackTrace()))); }