integer Test_a199 array A_nextFree228 integer A_firstFree438 integer A_maxIndex161 array A_typeId487 integer Test_a199 = new_A178() integer A_firstFree438 = 0 integer A_maxIndex161 = 0 function initGlobals500() { A_firstFree_438 = 0; A_maxIndex_161 = 0; } function main113() { initGlobals500(); init_Test788(); } function config939() { } function init_Test788() { Test_a_199 = new_A178(); EXECUTE foo669(); } IS_NATIVE function testSuccess151() { } function foo669() { dispatch_A_Test_A_bar168(Test_a_199); } function A_bar874(integer this134) { testSuccess151(); } function A_init376(integer this163) { } function new_A178() returns integer { local integer this147 this_147 = alloc_A138(); construct_A130(this_147); return this_147; } function construct_A130(integer this165) { A_init376(this_165); } function alloc_A138() returns integer { local integer this865 if (A_firstFree_438 == 0) { if (A_maxIndex_161 < 32768) { A_maxIndex_161 = (A_maxIndex_161 + 1); this_865 = A_maxIndex_161; A_typeId_487[this_865] = 1; } else { error307("Out of memory: Could not create A."); this_865 = 0; }; } else { A_firstFree_438 = (A_firstFree_438 - 1); this_865 = A_nextFree_228[A_firstFree_438]; A_typeId_487[this_865] = 1; }; return this_865; } function error307(string msg190) { $debugPrint314((msg_190 + (" " + #getStackTrace()))); } function dispatch_A_Test_A_bar168(integer this952) { if (A_typeId_487[this_952] == 0) { if (this_952 == 0) { error307("Nullpointer exception when calling A.bar"); } else { error307("Called A.bar on invalid object."); }; } else { }; A_bar874(this_952); }