array A_nextFree179 integer A_firstFree121 integer A_maxIndex791 array A_typeId175 integer A_firstFree121 = 0 integer A_maxIndex791 = 0 function initGlobals832() { } function main106() { initGlobals832(); init_test159(); } function config914() { } function init_test159() { new_B159(); } IS_NATIVE function testSuccess722() { } function A_someInt762(integer this733) { testSuccess722(); } function A_init662(integer this294) { } function construct_A143(integer this120) { A_init662(this_120); } function B_init153(integer this119) { } function new_B159() returns integer { local integer this167 this_167 = alloc_B179(); construct_B947(this_167); return this_167; } function construct_B947(integer this814) { construct_A143(this_814); B_init153(this_814); dispatch_A_test_A_someInt397(this_814); } function error200(string msg185) { $debugPrint168((msg_185 + (" " + #getStackTrace()))); } function alloc_B179() returns integer { local integer this437 if (A_firstFree_121 == 0) { if (A_maxIndex_791 < 32768) { A_maxIndex_791 = (A_maxIndex_791 + 1); this_437 = A_maxIndex_791; A_typeId_175[this_437] = 2; } else { error200("Out of memory: Could not create B."); this_437 = 0; }; } else { A_firstFree_121 = (A_firstFree_121 - 1); this_437 = A_nextFree_179[A_firstFree_121]; A_typeId_175[this_437] = 2; }; return this_437; } function dispatch_A_test_A_someInt397(integer this211) { if (A_typeId_175[this_211] == 0) { if (this_211 == 0) { error200("Nullpointer exception when calling A.someInt"); } else { error200("Called A.someInt on invalid object."); }; } else { }; A_someInt762(this_211); }