array A_nextFree146 integer A_firstFree195 integer A_maxIndex868 array A_typeId190 integer A_firstFree195 = 0 integer A_maxIndex868 = 0 function initGlobals549() { } function main372() { initGlobals549(); init_test194(); } function config593() { } function init_test194() { local integer clVar965 clVar_965 = alloc_B_test805(); construct_B127(clVar_965); dispatch_B_test_B_bar712(clVar_965); } IS_NATIVE function testSuccess165() { } function bar_test363(integer this127) { testSuccess165(); } function A_init979(integer this142) { } function construct_A681(integer this537) { A_init979(this_537); } function B_init185(integer this671) { } function construct_B127(integer this609) { construct_A681(this_609); B_init185(this_609); } function alloc_B_test805() returns integer { local integer this100 if (A_firstFree_195 == 0) { if (A_maxIndex_868 < 32768) { A_maxIndex_868 = (A_maxIndex_868 + 1); this_100 = A_maxIndex_868; A_typeId_190[this_100] = 3; } else { error182("Out of memory: Could not create B_test."); this_100 = 0; }; } else { A_firstFree_195 = (A_firstFree_195 - 1); this_100 = A_nextFree_146[A_firstFree_195]; A_typeId_190[this_100] = 3; }; return this_100; } function error182(string msg640) { $debugPrint134((msg_640 + (" " + #getStackTrace()))); } function dispatch_B_test_B_bar712(integer this743) { if (A_typeId_190[this_743] == 0) { if (this_743 == 0) { error182("Nullpointer exception when calling B.bar"); } else { error182("Called B.bar on invalid object."); }; } else { }; bar_test363(this_743); }