integer Test_a191 array A_nextFree137 integer A_firstFree207 integer A_maxIndex166 array A_typeId167 integer Test_a191 = new_A559() integer A_firstFree207 = 0 integer A_maxIndex166 = 0 function initGlobals208() { } function main128() { initGlobals208(); Test_a_191 = new_A559(); EXECUTE foo125(); } function config173() { } IS_NATIVE function testSuccess197() { } function foo125() { local integer this606 this_606 = Test_a_191; if (A_typeId_167[this_606] == 0) { if (this_606 == 0) { error690("Nullpointer exception when calling A.bar"); } else { error690("Called A.bar on invalid object."); }; } else { }; testSuccess197(); } function new_A559() returns integer { local integer this475 local integer this826 if (A_firstFree_207 == 0) { if (A_maxIndex_166 < 32768) { A_maxIndex_166 = (A_maxIndex_166 + 1); this_826 = A_maxIndex_166; A_typeId_167[this_826] = 1; } else { error690("Out of memory: Could not create A."); this_826 = 0; }; } else { A_firstFree_207 = (A_firstFree_207 - 1); this_826 = A_nextFree_137[A_firstFree_207]; A_typeId_167[this_826] = 1; }; this_475 = this_826; return this_475; } function error690(string msg125) { $debugPrint114((msg_125 + (" " + #getStackTrace()))); }