integer test_x157 array A_nextFree112 integer A_firstFree107 integer A_maxIndex161 array A_typeId683 integer test_x157 = 2 integer A_firstFree107 = 0 integer A_maxIndex161 = 0 function initGlobals174() { } function main185() { initGlobals174(); test_x_157 = 2; dispatch_A_test_A_foo212(new_B969()); if (test_x_157 == 5) { testSuccess671(); } else { }; } function config199() { } IS_NATIVE function testSuccess671() { } function new_B969() returns integer { local integer this160 if (A_firstFree_107 == 0) { if (A_maxIndex_161 < 32768) { A_maxIndex_161 = (A_maxIndex_161 + 1); this_160 = A_maxIndex_161; A_typeId_683[this_160] = 2; } else { error658("Out of memory: Could not create B."); this_160 = 0; }; } else { A_firstFree_107 = (A_firstFree_107 - 1); this_160 = A_nextFree_112[A_firstFree_107]; A_typeId_683[this_160] = 2; }; return this_160; } function error658(string msg783) { $debugPrint209((msg_783 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo212(integer this112) { if (A_typeId_683[this_112] == 0) { if (this_112 == 0) { error658("Nullpointer exception when calling A.foo"); } else { error658("Called A.foo on invalid object."); }; } else { }; if (A_typeId_683[this_112] <= 2) { if (A_typeId_683[this_112] <= 1) { test_x_157 = 4; } else { test_x_157 = 5; }; } else { test_x_157 = 6; }; }