integer test_i714 array A_nextFree727 integer A_firstFree181 integer A_maxIndex299 array A_typeId127 integer A_firstFree181 = 0 integer A_maxIndex299 = 0 function initGlobals438() { } function main214() { local integer b745 initGlobals438(); b_745 = new_B123(); dispatch_A_test_A_foo179(b_745); if (test_i_714 == 8) { testSuccess362(); } else { }; } function config584() { } IS_NATIVE function testSuccess362() { } function new_B123() returns integer { local integer this504 local integer this191 if (A_firstFree_181 == 0) { if (A_maxIndex_299 < 32768) { A_maxIndex_299 = (A_maxIndex_299 + 1); this_191 = A_maxIndex_299; A_typeId_127[this_191] = 2; } else { error232("Out of memory: Could not create B."); this_191 = 0; }; } else { A_firstFree_181 = (A_firstFree_181 - 1); this_191 = A_nextFree_727[A_firstFree_181]; A_typeId_127[this_191] = 2; }; this_504 = this_191; return this_504; } function error232(string msg152) { $debugPrint181((msg_152 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo179(integer this288) { if (A_typeId_127[this_288] == 0) { if (this_288 == 0) { error232("Nullpointer exception when calling A.foo"); } else { error232("Called A.foo on invalid object."); }; } else { }; if (A_typeId_127[this_288] <= 1) { test_i_714 = 7; } else { test_i_714 = 8; }; }