array A_nextFree121 integer A_firstFree811 integer A_maxIndex164 array A_typeId184 integer A_firstFree811 = 0 integer A_maxIndex164 = 0 function initGlobals344() { A_firstFree_811 = 0; A_maxIndex_164 = 0; } function main135() { initGlobals344(); init_test523(); } function config367() { } function init_test523() { local integer b136 local integer clVar649 clVar_649 = alloc_B_test113(); construct_B203(clVar_649); b_136 = clVar_649; dispatch_B_test_B_bar477(b_136); } IS_NATIVE function testSuccess718() { } function bar_test150(integer this733) { testSuccess718(); } function A_init149(integer this192) { } function construct_A183(integer this197) { A_init149(this_197); } function B_init609(integer this553) { } function construct_B203(integer this434) { construct_A183(this_434); B_init609(this_434); } function alloc_B_test113() returns integer { local integer this246 if (A_firstFree_811 == 0) { if (A_maxIndex_164 < 32768) { A_maxIndex_164 = (A_maxIndex_164 + 1); this_246 = A_maxIndex_164; A_typeId_184[this_246] = 3; } else { error884("Out of memory: Could not create B_test."); this_246 = 0; }; } else { A_firstFree_811 = (A_firstFree_811 - 1); this_246 = A_nextFree_121[A_firstFree_811]; A_typeId_184[this_246] = 3; }; return this_246; } function error884(string msg180) { $debugPrint202((msg_180 + (" " + #getStackTrace()))); } function dispatch_B_test_B_bar477(integer this974) { if (A_typeId_184[this_974] == 0) { if (this_974 == 0) { error884("Nullpointer exception when calling B.bar"); } else { error884("Called B.bar on invalid object."); }; } else { }; bar_test150(this_974); }