array A_nextFree202 integer A_firstFree490 integer A_maxIndex198 array A_typeId208 integer A_firstFree490 = 0 integer A_maxIndex198 = 0 function initGlobals269() { } function main163() { initGlobals269(); init_test946(); } function config139() { } function init_test946() { dispatch_A_test_A_foo134(new_A113()); } function A_foo108(integer this109) { } function A_init106(integer this915) { } function new_A113() returns integer { local integer this345 this_345 = alloc_A824(); construct_A917(this_345); return this_345; } function construct_A917(integer this114) { A_init106(this_114); } function alloc_A824() returns integer { local integer this209 if (A_firstFree_490 == 0) { if (A_maxIndex_198 < 32768) { A_maxIndex_198 = (A_maxIndex_198 + 1); this_209 = A_maxIndex_198; A_typeId_208[this_209] = 1; } else { error179("Out of memory: Could not create A."); this_209 = 0; }; } else { A_firstFree_490 = (A_firstFree_490 - 1); this_209 = A_nextFree_202[A_firstFree_490]; A_typeId_208[this_209] = 1; }; return this_209; } function error179(string msg119) { $debugPrint199((msg_119 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo134(integer this132) { if (A_typeId_208[this_132] == 0) { if (this_132 == 0) { error179("Nullpointer exception when calling A.foo"); } else { error179("Called A.foo on invalid object."); }; } else { }; A_foo108(this_132); }