integer Test_a177 array A_nextFree112 integer A_firstFree212 integer A_maxIndex155 array A_typeId145 integer Test_a177 = new_A141() integer A_firstFree212 = 0 integer A_maxIndex155 = 0 function initGlobals153() { } function main661() { initGlobals153(); Test_a_177 = new_A141(); EXECUTE foo200(); } function config129() { } IS_NATIVE function testSuccess616() { } function foo200() { local integer this497 this_497 = Test_a_177; if (A_typeId_145[this_497] == 0) { if (this_497 == 0) { error132("Nullpointer exception when calling A.bar"); } else { error132("Called A.bar on invalid object."); }; } else { }; testSuccess616(); } function new_A141() returns integer { local integer this960 if (A_firstFree_212 == 0) { if (A_maxIndex_155 < 32768) { A_maxIndex_155 = (A_maxIndex_155 + 1); this_960 = A_maxIndex_155; A_typeId_145[this_960] = 1; } else { error132("Out of memory: Could not create A."); this_960 = 0; }; } else { A_firstFree_212 = (A_firstFree_212 - 1); this_960 = A_nextFree_112[A_firstFree_212]; A_typeId_145[this_960] = 1; }; return this_960; } function error132(string msg200) { $debugPrint177((msg_200 + (" " + #getStackTrace()))); }