array A_nextFree130 integer A_firstFree514 integer A_maxIndex116 array A_typeId164 integer A_firstFree514 = 0 integer A_maxIndex116 = 0 function initGlobals123() { A_firstFree_514 = 0; A_maxIndex_116 = 0; } function main974() { initGlobals123(); init_test867(); } function config458() { } function init_test867() { local integer b641 local integer clVar155 clVar_155 = alloc_B_test611(); construct_B201(clVar_155); b_641 = clVar_155; dispatch_B_test_B_bar188(b_641); } IS_NATIVE function testSuccess880() { } function bar_test147(integer this550) { testSuccess880(); } function A_init195(integer this189) { } function construct_A800(integer this185) { A_init195(this_185); } function B_init123(integer this919) { } function construct_B201(integer this113) { construct_A800(this_113); B_init123(this_113); } function alloc_B_test611() returns integer { local integer this588 if (A_firstFree_514 == 0) { if (A_maxIndex_116 < 32768) { A_maxIndex_116 = (A_maxIndex_116 + 1); this_588 = A_maxIndex_116; A_typeId_164[this_588] = 3; } else { error212("Out of memory: Could not create B_test."); this_588 = 0; }; } else { A_firstFree_514 = (A_firstFree_514 - 1); this_588 = A_nextFree_130[A_firstFree_514]; A_typeId_164[this_588] = 3; }; return this_588; } function error212(string msg182) { $debugPrint107((msg_182 + (" " + #getStackTrace()))); } function dispatch_B_test_B_bar188(integer this144) { if (A_typeId_164[this_144] == 0) { if (this_144 == 0) { error212("Nullpointer exception when calling B.bar"); } else { error212("Called B.bar on invalid object."); }; } else { }; bar_test147(this_144); }