integer Test_a130 array A_nextFree135 integer A_firstFree207 integer A_maxIndex800 array A_typeId211 integer Test_a130 = new_A187() integer A_firstFree207 = 0 integer A_maxIndex800 = 0 function initGlobals484() { } function main198() { initGlobals484(); init_Test173(); } function config291() { } function init_Test173() { Test_a_130 = new_A187(); EXECUTE foo534(); } IS_NATIVE function testSuccess196() { } function foo534() { dispatch_A_Test_A_bar125(Test_a_130); } function A_bar144(integer this132) { testSuccess196(); } function A_init589(integer this877) { } function new_A187() returns integer { local integer this712 this_712 = alloc_A194(); construct_A173(this_712); return this_712; } function construct_A173(integer this404) { A_init589(this_404); } function alloc_A194() returns integer { local integer this196 if (A_firstFree_207 == 0) { if (A_maxIndex_800 < 32768) { A_maxIndex_800 = (A_maxIndex_800 + 1); this_196 = A_maxIndex_800; A_typeId_211[this_196] = 1; } else { error148("Out of memory: Could not create A."); this_196 = 0; }; } else { A_firstFree_207 = (A_firstFree_207 - 1); this_196 = A_nextFree_135[A_firstFree_207]; A_typeId_211[this_196] = 1; }; return this_196; } function error148(string msg982) { $debugPrint138((msg_982 + (" " + #getStackTrace()))); } function dispatch_A_Test_A_bar125(integer this178) { if (A_typeId_211[this_178] == 0) { if (this_178 == 0) { error148("Nullpointer exception when calling A.bar"); } else { error148("Called A.bar on invalid object."); }; } else { }; A_bar144(this_178); }