integer test_x347 array A_nextFree101 integer A_firstFree182 integer A_maxIndex131 array A_typeId144 integer test_x347 = 2 integer A_firstFree182 = 0 integer A_maxIndex131 = 0 function initGlobals110() { } function main583() { initGlobals110(); test_x_347 = 2; dispatch_A_test_A_foo149(new_B187()); if (test_x_347 == 5) { testSuccess976(); } else { }; } function config176() { } IS_NATIVE function testSuccess976() { } function new_B187() returns integer { local integer this783 if (A_firstFree_182 == 0) { if (A_maxIndex_131 < 32768) { A_maxIndex_131 = (A_maxIndex_131 + 1); this_783 = A_maxIndex_131; A_typeId_144[this_783] = 2; } else { error176("Out of memory: Could not create B."); this_783 = 0; }; } else { A_firstFree_182 = (A_firstFree_182 - 1); this_783 = A_nextFree_101[A_firstFree_182]; A_typeId_144[this_783] = 2; }; return this_783; } function error176(string msg816) { $debugPrint207((msg_816 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo149(integer this104) { if (A_typeId_144[this_104] == 0) { if (this_104 == 0) { error176("Nullpointer exception when calling A.foo"); } else { error176("Called A.foo on invalid object."); }; } else { }; if (A_typeId_144[this_104] <= 2) { if (A_typeId_144[this_104] <= 1) { test_x_347 = 4; } else { test_x_347 = 5; }; } else { test_x_347 = 6; }; }