array A_nextFree213 integer A_firstFree108 integer A_maxIndex167 array A_typeId930 integer A_firstFree108 = 0 integer A_maxIndex167 = 0 function initGlobals116() { } function main168() { initGlobals116(); init_test158(); } function config197() { } function init_test158() { new_B120(); } IS_NATIVE function testSuccess111() { } function A_someInt286(integer this115) { testSuccess111(); } function A_init115(integer this827) { } function construct_A161(integer this969) { A_init115(this_969); } function B_init158(integer this815) { } function new_B120() returns integer { local integer this188 this_188 = alloc_B125(); construct_B157(this_188); return this_188; } function construct_B157(integer this574) { construct_A161(this_574); B_init158(this_574); dispatch_A_test_A_someInt116(this_574); } function error832(string msg372) { $debugPrint157((msg_372 + (" " + #getStackTrace()))); } function alloc_B125() returns integer { local integer this178 if (A_firstFree_108 == 0) { if (A_maxIndex_167 < 32768) { A_maxIndex_167 = (A_maxIndex_167 + 1); this_178 = A_maxIndex_167; A_typeId_930[this_178] = 2; } else { error832("Out of memory: Could not create B."); this_178 = 0; }; } else { A_firstFree_108 = (A_firstFree_108 - 1); this_178 = A_nextFree_213[A_firstFree_108]; A_typeId_930[this_178] = 2; }; return this_178; } function dispatch_A_test_A_someInt116(integer this147) { if (A_typeId_930[this_147] == 0) { if (this_147 == 0) { error832("Nullpointer exception when calling A.someInt"); } else { error832("Called A.someInt on invalid object."); }; } else { }; A_someInt286(this_147); }