integer Test_a177 array A_nextFree143 integer A_firstFree784 integer A_maxIndex329 array A_typeId146 integer Test_a177 = new_A773() integer A_firstFree784 = 0 integer A_maxIndex329 = 0 function initGlobals194() { } function main206() { initGlobals194(); Test_a_177 = new_A773(); EXECUTE foo146(); } function config219() { } IS_NATIVE function testSuccess824() { } function foo146() { local integer this151 this_151 = Test_a_177; if (A_typeId_146[this_151] == 0) { if (this_151 == 0) { error217("Nullpointer exception when calling A.bar"); } else { error217("Called A.bar on invalid object."); }; } else { }; testSuccess824(); } function new_A773() returns integer { local integer this711 local integer this788 if (A_firstFree_784 == 0) { if (A_maxIndex_329 < 32768) { A_maxIndex_329 = (A_maxIndex_329 + 1); this_788 = A_maxIndex_329; A_typeId_146[this_788] = 1; } else { error217("Out of memory: Could not create A."); this_788 = 0; }; } else { A_firstFree_784 = (A_firstFree_784 - 1); this_788 = A_nextFree_143[A_firstFree_784]; A_typeId_146[this_788] = 1; }; this_711 = this_788; return this_711; } function error217(string msg132) { $debugPrint517((msg_132 + (" " + #getStackTrace()))); }