integer test_x646 array A_nextFree131 integer A_firstFree206 integer A_maxIndex229 array A_typeId132 integer test_x646 = 2 integer A_firstFree206 = 0 integer A_maxIndex229 = 0 function initGlobals125() { } function main213() { local integer a170 initGlobals125(); test_x_646 = 2; a_170 = new_B209(); dispatch_A_test_A_foo950(a_170); if (test_x_646 == 5) { testSuccess834(); } else { }; } function config631() { } IS_NATIVE function testSuccess834() { } function new_B209() returns integer { local integer this768 local integer this866 if (A_firstFree_206 == 0) { if (A_maxIndex_229 < 32768) { A_maxIndex_229 = (A_maxIndex_229 + 1); this_866 = A_maxIndex_229; A_typeId_132[this_866] = 2; } else { error188("Out of memory: Could not create B."); this_866 = 0; }; } else { A_firstFree_206 = (A_firstFree_206 - 1); this_866 = A_nextFree_131[A_firstFree_206]; A_typeId_132[this_866] = 2; }; this_768 = this_866; return this_768; } function error188(string msg104) { $debugPrint408((msg_104 + (" " + #getStackTrace()))); } function dispatch_A_test_A_foo950(integer this630) { if (A_typeId_132[this_630] == 0) { if (this_630 == 0) { error188("Nullpointer exception when calling A.foo"); } else { error188("Called A.foo on invalid object."); }; } else { }; if (A_typeId_132[this_630] <= 2) { if (A_typeId_132[this_630] <= 1) { test_x_646 = 4; } else { test_x_646 = 5; }; } else { test_x_646 = 6; }; }