array A_nextFree592 integer A_firstFree163 integer A_maxIndex534 array A_typeId586 integer A_firstFree163 = 0 integer A_maxIndex534 = 0 function initGlobals101() { A_firstFree_163 = 0; A_maxIndex_534 = 0; } function main209() { initGlobals101(); init_test109(); } function config198() { } function init_test109() { new_B403(); } IS_NATIVE function testSuccess204() { } function A_someInt209(integer this980) { testSuccess204(); } function A_init159(integer this928) { } function construct_A476(integer this733) { A_init159(this_733); } function B_init212(integer this340) { } function new_B403() returns integer { local integer this825 this_825 = alloc_B141(); construct_B656(this_825); return this_825; } function construct_B656(integer this580) { construct_A476(this_580); B_init212(this_580); dispatch_A_test_A_someInt291(this_580); } function error130(string msg719) { $debugPrint175((msg_719 + (" " + #getStackTrace()))); } function alloc_B141() returns integer { local integer this863 if (A_firstFree_163 == 0) { if (A_maxIndex_534 < 32768) { A_maxIndex_534 = (A_maxIndex_534 + 1); this_863 = A_maxIndex_534; A_typeId_586[this_863] = 2; } else { error130("Out of memory: Could not create B."); this_863 = 0; }; } else { A_firstFree_163 = (A_firstFree_163 - 1); this_863 = A_nextFree_592[A_firstFree_163]; A_typeId_586[this_863] = 2; }; return this_863; } function dispatch_A_test_A_someInt291(integer this442) { if (A_typeId_586[this_442] == 0) { if (this_442 == 0) { error130("Nullpointer exception when calling A.someInt"); } else { error130("Called A.someInt on invalid object."); }; } else { }; A_someInt209(this_442); }