integer Test_a193 array A_nextFree199 integer A_firstFree183 integer A_maxIndex143 array A_typeId500 integer Test_a193 = new_A147() integer A_firstFree183 = 0 integer A_maxIndex143 = 0 function initGlobals473() { A_firstFree_183 = 0; A_maxIndex_143 = 0; } function main146() { initGlobals473(); init_Test711(); } function config196() { } function init_Test711() { Test_a_193 = new_A147(); EXECUTE foo179(); } IS_NATIVE function testSuccess244() { } function foo179() { dispatch_A_Test_A_bar788(Test_a_193); } function A_bar728(integer this418) { testSuccess244(); } function A_init329(integer this176) { } function new_A147() returns integer { local integer this116 this_116 = alloc_A178(); construct_A784(this_116); return this_116; } function construct_A784(integer this217) { A_init329(this_217); } function alloc_A178() returns integer { local integer this946 if (A_firstFree_183 == 0) { if (A_maxIndex_143 < 32768) { A_maxIndex_143 = (A_maxIndex_143 + 1); this_946 = A_maxIndex_143; A_typeId_500[this_946] = 1; } else { error191("Out of memory: Could not create A."); this_946 = 0; }; } else { A_firstFree_183 = (A_firstFree_183 - 1); this_946 = A_nextFree_199[A_firstFree_183]; A_typeId_500[this_946] = 1; }; return this_946; } function error191(string msg439) { $debugPrint202((msg_439 + (" " + #getStackTrace()))); } function dispatch_A_Test_A_bar788(integer this163) { if (A_typeId_500[this_163] == 0) { if (this_163 == 0) { error191("Nullpointer exception when calling A.bar"); } else { error191("Called A.bar on invalid object."); }; } else { }; A_bar728(this_163); }